OSDN Git Service

* dwarf2out.c, fold-const.c, ipa-type-escape.c,
[pf3gnuchains/gcc-fork.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tree.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical build_subdir host_subdir target_subdir GENINSRC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT NO_MINUS_C_MINUS_O OUTPUT_OPTION CPP EGREP strict1_warn warn_cflags WERROR nocommon_flag TREEBROWSER 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_S LN RANLIB ac_ct_RANLIB ranlib_flags INSTALL INSTALL_PROGRAM INSTALL_DATA make_compare_target have_mktemp_command MAKEINFO BUILD_INFO GENERATED_MANPAGES FLEX BISON NM AR stage1_cflags COLLECT2_LIBS GNAT_LIBEXC LDEXP_LIB TARGET_GETGROUPS_T LIBICONV LTLIBICONV LIBICONV_DEP manext objext gthread_flags extra_modes_file extra_opt_files USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS host_cc_for_libada CROSS ALL SYSTEM_HEADER_DIR inhibit_libc CC_FOR_BUILD BUILD_CFLAGS STMP_FIXINC STMP_FIXPROTO collect2 gcc_cv_as ORIGINAL_AS_FOR_TARGET gcc_cv_ld ORIGINAL_LD_FOR_TARGET gcc_cv_nm ORIGINAL_NM_FOR_TARGET libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_boot_languages all_compilers all_gtfiles all_gtfiles_files_langs all_gtfiles_files_files all_lang_makefrags all_lang_makefiles all_languages all_stagestuff build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages cc_set_by_configure quoted_cc_set_by_configure cpp_install_dir xmake_file tmake_file extra_gcc_objs extra_headers_list extra_objs extra_parts extra_passes extra_programs float_h_file gcc_config_arguments gcc_gxx_include_dir libstdcxx_incdir host_exeext host_xm_file_list host_xm_include_list host_xm_defines out_host_hook_obj install lang_opt_files lang_specs_files lang_tree_files local_prefix md_file objc_boehm_gc out_file out_object_file stage_prefix_set_by_configure quoted_stage_prefix_set_by_configure thread_file tm_file_list tm_include_list tm_defines tm_p_file_list tm_p_include_list xm_file_list xm_include_list xm_defines c_target_objs cxx_target_objs target_cpu_default GMPLIBS GMPINC LIBOBJS LTLIBOBJS'
313 ac_subst_files='language_hooks'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_GMPLIBS_set=${GMPLIBS+set}
774 ac_env_GMPLIBS_value=$GMPLIBS
775 ac_cv_env_GMPLIBS_set=${GMPLIBS+set}
776 ac_cv_env_GMPLIBS_value=$GMPLIBS
777 ac_env_GMPINC_set=${GMPINC+set}
778 ac_env_GMPINC_value=$GMPINC
779 ac_cv_env_GMPINC_set=${GMPINC+set}
780 ac_cv_env_GMPINC_value=$GMPINC
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 Program names:
843   --program-prefix=PREFIX            prepend PREFIX to installed program names
844   --program-suffix=SUFFIX            append SUFFIX to installed program names
845   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
846
847 System types:
848   --build=BUILD     configure for building on BUILD [guessed]
849   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
850   --target=TARGET   configure for building compilers for TARGET [HOST]
851 _ACEOF
852 fi
853
854 if test -n "$ac_init_help"; then
855
856   cat <<\_ACEOF
857
858 Optional Features:
859   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
860   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
861   --enable-generated-files-in-srcdir
862                           put copies of generated files in source dir
863                           intended for creating source tarballs for users
864                           without texinfo bison or flex.
865   --enable-werror-always         enable -Werror always
866   --enable-werror         enable -Werror in bootstrap stage2 and later
867   --enable-checking=LIST
868                           enable expensive run-time checks.  With LIST,
869                           enable only specific categories of checks.
870                           Categories are: yes,no,all,none,release.
871                           Flags are: assert,fold,gc,gcac,misc,
872                           rtlflag,rtl,runtime,tree,valgrind.
873   --enable-mapped-location   location_t is fileline integer cookie
874   --enable-coverage=LEVEL
875                           enable compiler's code coverage collection.
876                           Use to measure compiler performance and locate
877                           unused parts of the compiler. With LEVEL, specify
878                           optimization. Values are opt, noopt,
879                           default is noopt
880   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
881   --enable-multilib       enable library support for multiple ABIs
882   --enable-__cxa_atexit   enable __cxa_atexit for C++
883   --enable-threads        enable thread usage for target GCC
884   --enable-threads=LIB    use LIB thread package for target GCC
885   --enable-objc-gc        enable the use of Boehm's garbage collector with
886                           the GNU Objective-C runtime
887   --disable-shared        don't provide a shared libgcc
888   --enable-intermodule    build the compiler in one step
889   --enable-languages=LIST specify which front-ends to build
890   --disable-rpath         do not hardcode runtime library paths
891   --enable-initfini-array       use .init_array/.fini_array sections
892   --enable-sjlj-exceptions
893                           arrange to use setjmp/longjmp exception handling
894   --enable-secureplt      enable -msecure-plt by default for PowerPC
895   --disable-win32-registry
896                           disable lookup of installation paths in the
897                           Registry on Windows hosts
898   --enable-win32-registry enable registry lookup (default)
899   --enable-win32-registry=KEY
900                           use KEY instead of GCC version as the last portion
901                           of the registry key
902   --enable-maintainer-mode
903                           enable make rules and dependencies not useful
904                           (and sometimes confusing) to the casual installer
905   --enable-version-specific-runtime-libs
906                           specify that runtime libraries should be
907                           installed in a compiler-specific directory
908
909 Optional Packages:
910   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
911   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
912   --with-local-prefix=DIR specifies directory to put local include
913   --with-gxx-include-dir=DIR
914                           specifies directory to put g++ header files
915   --with-cpp-install-dir=DIR
916                           install the user visible C preprocessor in DIR
917                           (relative to PREFIX) as well as PREFIX/bin
918   --with-gnu-ld           arrange to work with GNU ld.
919   --with-ld               arrange to use the specified ld (full pathname)
920   --with-demangler-in-ld  try to use demangler in GNU ld.
921   --with-gnu-as           arrange to work with GNU as
922   --with-as               arrange to use the specified as (full pathname)
923   --with-stabs            arrange to use stabs instead of host debug format
924   --with-dwarf2           force the default debug format to be DWARF 2
925   --with-build-sysroot=sysroot
926                           use sysroot as the system root during the build
927   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
928   --with-gnu-ld           assume the C compiler uses GNU ld default=no
929   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
930   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
931   --with-system-libunwind use installed libunwind
932   --with-gc={page,zone}   choose the garbage collection mechanism to use
933                           with the compiler
934   --with-system-zlib      use installed libz
935   --with-slibdir=DIR      shared libraries in DIR LIBDIR
936
937 Some influential environment variables:
938   CC          C compiler command
939   CFLAGS      C compiler flags
940   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
941               nonstandard directory <lib dir>
942   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
943               headers in a nonstandard directory <include dir>
944   CPP         C preprocessor
945   GMPLIBS     How to link GMP
946   GMPINC      How to find GMP include files
947
948 Use these variables to override the choices made by `configure' or to help
949 it to find libraries and programs with nonstandard names/locations.
950
951 _ACEOF
952 fi
953
954 if test "$ac_init_help" = "recursive"; then
955   # If there are subdirs, report their specific --help.
956   ac_popdir=`pwd`
957   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
958     test -d $ac_dir || continue
959     ac_builddir=.
960
961 if test "$ac_dir" != .; then
962   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
963   # A "../" for each directory in $ac_dir_suffix.
964   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
965 else
966   ac_dir_suffix= ac_top_builddir=
967 fi
968
969 case $srcdir in
970   .)  # No --srcdir option.  We are building in place.
971     ac_srcdir=.
972     if test -z "$ac_top_builddir"; then
973        ac_top_srcdir=.
974     else
975        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
976     fi ;;
977   [\\/]* | ?:[\\/]* )  # Absolute path.
978     ac_srcdir=$srcdir$ac_dir_suffix;
979     ac_top_srcdir=$srcdir ;;
980   *) # Relative path.
981     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
982     ac_top_srcdir=$ac_top_builddir$srcdir ;;
983 esac
984
985 # Do not use `cd foo && pwd` to compute absolute paths, because
986 # the directories may not exist.
987 case `pwd` in
988 .) ac_abs_builddir="$ac_dir";;
989 *)
990   case "$ac_dir" in
991   .) ac_abs_builddir=`pwd`;;
992   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
993   *) ac_abs_builddir=`pwd`/"$ac_dir";;
994   esac;;
995 esac
996 case $ac_abs_builddir in
997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *)
999   case ${ac_top_builddir}. in
1000   .) ac_abs_top_builddir=$ac_abs_builddir;;
1001   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1002   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1003   esac;;
1004 esac
1005 case $ac_abs_builddir in
1006 .) ac_abs_srcdir=$ac_srcdir;;
1007 *)
1008   case $ac_srcdir in
1009   .) ac_abs_srcdir=$ac_abs_builddir;;
1010   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1011   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1012   esac;;
1013 esac
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *)
1017   case $ac_top_srcdir in
1018   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1020   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1021   esac;;
1022 esac
1023
1024     cd $ac_dir
1025     # Check for guested configure; otherwise get Cygnus style configure.
1026     if test -f $ac_srcdir/configure.gnu; then
1027       echo
1028       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1029     elif test -f $ac_srcdir/configure; then
1030       echo
1031       $SHELL $ac_srcdir/configure  --help=recursive
1032     elif test -f $ac_srcdir/configure.ac ||
1033            test -f $ac_srcdir/configure.in; then
1034       echo
1035       $ac_configure --help
1036     else
1037       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1038     fi
1039     cd $ac_popdir
1040   done
1041 fi
1042
1043 test -n "$ac_init_help" && exit 0
1044 if $ac_init_version; then
1045   cat <<\_ACEOF
1046
1047 Copyright (C) 2003 Free Software Foundation, Inc.
1048 This configure script is free software; the Free Software Foundation
1049 gives unlimited permission to copy, distribute and modify it.
1050 _ACEOF
1051   exit 0
1052 fi
1053 exec 5>config.log
1054 cat >&5 <<_ACEOF
1055 This file contains any messages produced by compilers while
1056 running configure, to aid debugging if configure makes a mistake.
1057
1058 It was created by $as_me, which was
1059 generated by GNU Autoconf 2.59.  Invocation command line was
1060
1061   $ $0 $@
1062
1063 _ACEOF
1064 {
1065 cat <<_ASUNAME
1066 ## --------- ##
1067 ## Platform. ##
1068 ## --------- ##
1069
1070 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1071 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1072 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1073 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1074 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1075
1076 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1077 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1078
1079 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1080 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1081 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1082 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1083 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1084 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1085 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1086
1087 _ASUNAME
1088
1089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 for as_dir in $PATH
1091 do
1092   IFS=$as_save_IFS
1093   test -z "$as_dir" && as_dir=.
1094   echo "PATH: $as_dir"
1095 done
1096
1097 } >&5
1098
1099 cat >&5 <<_ACEOF
1100
1101
1102 ## ----------- ##
1103 ## Core tests. ##
1104 ## ----------- ##
1105
1106 _ACEOF
1107
1108
1109 # Keep a trace of the command line.
1110 # Strip out --no-create and --no-recursion so they do not pile up.
1111 # Strip out --silent because we don't want to record it for future runs.
1112 # Also quote any args containing shell meta-characters.
1113 # Make two passes to allow for proper duplicate-argument suppression.
1114 ac_configure_args=
1115 ac_configure_args0=
1116 ac_configure_args1=
1117 ac_sep=
1118 ac_must_keep_next=false
1119 for ac_pass in 1 2
1120 do
1121   for ac_arg
1122   do
1123     case $ac_arg in
1124     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1125     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126     | -silent | --silent | --silen | --sile | --sil)
1127       continue ;;
1128     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1129       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1130     esac
1131     case $ac_pass in
1132     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1133     2)
1134       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1135       if test $ac_must_keep_next = true; then
1136         ac_must_keep_next=false # Got value, back to normal.
1137       else
1138         case $ac_arg in
1139           *=* | --config-cache | -C | -disable-* | --disable-* \
1140           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1141           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1142           | -with-* | --with-* | -without-* | --without-* | --x)
1143             case "$ac_configure_args0 " in
1144               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1145             esac
1146             ;;
1147           -* ) ac_must_keep_next=true ;;
1148         esac
1149       fi
1150       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1151       # Get rid of the leading space.
1152       ac_sep=" "
1153       ;;
1154     esac
1155   done
1156 done
1157 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1158 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1159
1160 # When interrupted or exit'd, cleanup temporary files, and complete
1161 # config.log.  We remove comments because anyway the quotes in there
1162 # would cause problems or look ugly.
1163 # WARNING: Be sure not to use single quotes in there, as some shells,
1164 # such as our DU 5.0 friend, will then `close' the trap.
1165 trap 'exit_status=$?
1166   # Save into config.log some information that might help in debugging.
1167   {
1168     echo
1169
1170     cat <<\_ASBOX
1171 ## ---------------- ##
1172 ## Cache variables. ##
1173 ## ---------------- ##
1174 _ASBOX
1175     echo
1176     # The following way of writing the cache mishandles newlines in values,
1177 {
1178   (set) 2>&1 |
1179     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1180     *ac_space=\ *)
1181       sed -n \
1182         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1183           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184       ;;
1185     *)
1186       sed -n \
1187         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1188       ;;
1189     esac;
1190 }
1191     echo
1192
1193     cat <<\_ASBOX
1194 ## ----------------- ##
1195 ## Output variables. ##
1196 ## ----------------- ##
1197 _ASBOX
1198     echo
1199     for ac_var in $ac_subst_vars
1200     do
1201       eval ac_val=$`echo $ac_var`
1202       echo "$ac_var='"'"'$ac_val'"'"'"
1203     done | sort
1204     echo
1205
1206     if test -n "$ac_subst_files"; then
1207       cat <<\_ASBOX
1208 ## ------------- ##
1209 ## Output files. ##
1210 ## ------------- ##
1211 _ASBOX
1212       echo
1213       for ac_var in $ac_subst_files
1214       do
1215         eval ac_val=$`echo $ac_var`
1216         echo "$ac_var='"'"'$ac_val'"'"'"
1217       done | sort
1218       echo
1219     fi
1220
1221     if test -s confdefs.h; then
1222       cat <<\_ASBOX
1223 ## ----------- ##
1224 ## confdefs.h. ##
1225 ## ----------- ##
1226 _ASBOX
1227       echo
1228       sed "/^$/d" confdefs.h | sort
1229       echo
1230     fi
1231     test "$ac_signal" != 0 &&
1232       echo "$as_me: caught signal $ac_signal"
1233     echo "$as_me: exit $exit_status"
1234   } >&5
1235   rm -f core *.core &&
1236   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1237     exit $exit_status
1238      ' 0
1239 for ac_signal in 1 2 13 15; do
1240   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 done
1242 ac_signal=0
1243
1244 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1245 rm -rf conftest* confdefs.h
1246 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1247 echo >confdefs.h
1248
1249 # Predefined preprocessor variables.
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 _ACEOF
1274
1275
1276 # Let the site file select an alternate cache file if it wants to.
1277 # Prefer explicitly selected file to automatically selected ones.
1278 if test -z "$CONFIG_SITE"; then
1279   if test "x$prefix" != xNONE; then
1280     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1281   else
1282     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1283   fi
1284 fi
1285 for ac_site_file in $CONFIG_SITE; do
1286   if test -r "$ac_site_file"; then
1287     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1288 echo "$as_me: loading site script $ac_site_file" >&6;}
1289     sed 's/^/| /' "$ac_site_file" >&5
1290     . "$ac_site_file"
1291   fi
1292 done
1293
1294 if test -r "$cache_file"; then
1295   # Some versions of bash will fail to source /dev/null (special
1296   # files actually), so we avoid doing that.
1297   if test -f "$cache_file"; then
1298     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1299 echo "$as_me: loading cache $cache_file" >&6;}
1300     case $cache_file in
1301       [\\/]* | ?:[\\/]* ) . $cache_file;;
1302       *)                      . ./$cache_file;;
1303     esac
1304   fi
1305 else
1306   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1307 echo "$as_me: creating cache $cache_file" >&6;}
1308   >$cache_file
1309 fi
1310
1311 # Check that the precious variables saved in the cache have kept the same
1312 # value.
1313 ac_cache_corrupted=false
1314 for ac_var in `(set) 2>&1 |
1315                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1316   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1317   eval ac_new_set=\$ac_env_${ac_var}_set
1318   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1319   eval ac_new_val="\$ac_env_${ac_var}_value"
1320   case $ac_old_set,$ac_new_set in
1321     set,)
1322       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1323 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1324       ac_cache_corrupted=: ;;
1325     ,set)
1326       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1327 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1328       ac_cache_corrupted=: ;;
1329     ,);;
1330     *)
1331       if test "x$ac_old_val" != "x$ac_new_val"; then
1332         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1333 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1334         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1335 echo "$as_me:   former value:  $ac_old_val" >&2;}
1336         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1337 echo "$as_me:   current value: $ac_new_val" >&2;}
1338         ac_cache_corrupted=:
1339       fi;;
1340   esac
1341   # Pass precious variables to config.status.
1342   if test "$ac_new_set" = set; then
1343     case $ac_new_val in
1344     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1345       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1346     *) ac_arg=$ac_var=$ac_new_val ;;
1347     esac
1348     case " $ac_configure_args " in
1349       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1350       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351     esac
1352   fi
1353 done
1354 if $ac_cache_corrupted; then
1355   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1356 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1357   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1358 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1359    { (exit 1); exit 1; }; }
1360 fi
1361
1362 ac_ext=c
1363 ac_cpp='$CPP $CPPFLAGS'
1364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1388
1389
1390 gcc_version=`cat $srcdir/BASE-VER`
1391
1392 # Determine the host, build, and target systems
1393 ac_aux_dir=
1394 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1395   if test -f $ac_dir/install-sh; then
1396     ac_aux_dir=$ac_dir
1397     ac_install_sh="$ac_aux_dir/install-sh -c"
1398     break
1399   elif test -f $ac_dir/install.sh; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/install.sh -c"
1402     break
1403   elif test -f $ac_dir/shtool; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/shtool install -c"
1406     break
1407   fi
1408 done
1409 if test -z "$ac_aux_dir"; then
1410   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1411 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1412    { (exit 1); exit 1; }; }
1413 fi
1414 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1415 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1416 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417
1418 # Make sure we can run config.sub.
1419 $ac_config_sub sun4 >/dev/null 2>&1 ||
1420   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1421 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422    { (exit 1); exit 1; }; }
1423
1424 echo "$as_me:$LINENO: checking build system type" >&5
1425 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426 if test "${ac_cv_build+set}" = set; then
1427   echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429   ac_cv_build_alias=$build_alias
1430 test -z "$ac_cv_build_alias" &&
1431   ac_cv_build_alias=`$ac_config_guess`
1432 test -z "$ac_cv_build_alias" &&
1433   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1434 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435    { (exit 1); exit 1; }; }
1436 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1437   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1439    { (exit 1); exit 1; }; }
1440
1441 fi
1442 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1443 echo "${ECHO_T}$ac_cv_build" >&6
1444 build=$ac_cv_build
1445 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
1449
1450 echo "$as_me:$LINENO: checking host system type" >&5
1451 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452 if test "${ac_cv_host+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   ac_cv_host_alias=$host_alias
1456 test -z "$ac_cv_host_alias" &&
1457   ac_cv_host_alias=$ac_cv_build_alias
1458 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1459   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1460 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461    { (exit 1); exit 1; }; }
1462
1463 fi
1464 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1465 echo "${ECHO_T}$ac_cv_host" >&6
1466 host=$ac_cv_host
1467 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
1471
1472 echo "$as_me:$LINENO: checking target system type" >&5
1473 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1474 if test "${ac_cv_target+set}" = set; then
1475   echo $ECHO_N "(cached) $ECHO_C" >&6
1476 else
1477   ac_cv_target_alias=$target_alias
1478 test "x$ac_cv_target_alias" = "x" &&
1479   ac_cv_target_alias=$ac_cv_host_alias
1480 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1481   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1483    { (exit 1); exit 1; }; }
1484
1485 fi
1486 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1487 echo "${ECHO_T}$ac_cv_target" >&6
1488 target=$ac_cv_target
1489 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
1493
1494 # The aliases save the names the user supplied, while $host etc.
1495 # will get canonicalized.
1496 test -n "$target_alias" &&
1497   test "$program_prefix$program_suffix$program_transform_name" = \
1498     NONENONEs,x,x, &&
1499   program_prefix=${target_alias}-
1500
1501 # Determine the noncanonical target name, for directory use.
1502  case ${build_alias} in
1503   "") build_noncanonical=${build} ;;
1504   *) build_noncanonical=${build_alias} ;;
1505 esac
1506
1507  case ${host_alias} in
1508   "") host_noncanonical=${build_noncanonical} ;;
1509   *) host_noncanonical=${host_alias} ;;
1510 esac
1511
1512  case ${target_alias} in
1513   "") target_noncanonical=${host_noncanonical} ;;
1514   *) target_noncanonical=${target_alias} ;;
1515 esac
1516
1517
1518
1519
1520 # Determine the target- and build-specific subdirectories
1521   # Prefix 'build-' so this never conflicts with target_subdir.
1522 build_subdir="build-${build_noncanonical}"
1523 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1524 if ( test $srcdir = . && test -d gcc ) \
1525    || test -d $srcdir/../host-${host_noncanonical}; then
1526   host_subdir="host-${host_noncanonical}"
1527 else
1528   host_subdir=.
1529 fi
1530 # No prefix.
1531 target_subdir=${target_noncanonical}
1532
1533
1534 # Set program_transform_name
1535 test "$program_prefix" != NONE &&
1536   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $.  echo might interpret backslashes.
1541 # By default was `s,x,x', remove it if useless.
1542 cat <<\_ACEOF >conftest.sed
1543 s/[\\$]/&&/g;s/;s,x,x,$//
1544 _ACEOF
1545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1546 rm conftest.sed
1547
1548
1549 # Check for bogus environment variables.
1550 # Test if LIBRARY_PATH contains the notation for the current directory
1551 # since this would lead to problems installing/building glibc.
1552 # LIBRARY_PATH contains the current directory if one of the following
1553 # is true:
1554 # - one of the terminals (":" and ";") is the first or last sign
1555 # - two terminals occur directly after each other
1556 # - the path contains an element with a dot in it
1557 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1558 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1559 case ${LIBRARY_PATH} in
1560   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1561     library_path_setting="contains current directory"
1562     ;;
1563   *)
1564     library_path_setting="ok"
1565     ;;
1566 esac
1567 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1568 echo "${ECHO_T}$library_path_setting" >&6
1569 if test "$library_path_setting" != "ok"; then
1570 { { echo "$as_me:$LINENO: error:
1571 *** LIBRARY_PATH shouldn't contain the current directory when
1572 *** building gcc. Please change the environment variable
1573 *** and run configure again." >&5
1574 echo "$as_me: error:
1575 *** LIBRARY_PATH shouldn't contain the current directory when
1576 *** building gcc. Please change the environment variable
1577 *** and run configure again." >&2;}
1578    { (exit 1); exit 1; }; }
1579 fi
1580
1581 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1582 # since this would lead to problems installing/building glibc.
1583 # GCC_EXEC_PREFIX contains the current directory if one of the following
1584 # is true:
1585 # - one of the terminals (":" and ";") is the first or last sign
1586 # - two terminals occur directly after each other
1587 # - the path contains an element with a dot in it
1588 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1589 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1590 case ${GCC_EXEC_PREFIX} in
1591   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1592     gcc_exec_prefix_setting="contains current directory"
1593     ;;
1594   *)
1595     gcc_exec_prefix_setting="ok"
1596     ;;
1597 esac
1598 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1599 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1600 if test "$gcc_exec_prefix_setting" != "ok"; then
1601 { { echo "$as_me:$LINENO: error:
1602 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1603 *** building gcc. Please change the environment variable
1604 *** and run configure again." >&5
1605 echo "$as_me: error:
1606 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1607 *** building gcc. Please change the environment variable
1608 *** and run configure again." >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611
1612 # -----------
1613 # Directories
1614 # -----------
1615
1616 # Specify the local prefix
1617 local_prefix=
1618
1619 # Check whether --with-local-prefix or --without-local-prefix was given.
1620 if test "${with_local_prefix+set}" = set; then
1621   withval="$with_local_prefix"
1622   case "${withval}" in
1623 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1624 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1625    { (exit 1); exit 1; }; } ;;
1626 no)     ;;
1627 *)      local_prefix=$with_local_prefix ;;
1628 esac
1629 fi;
1630
1631 # Default local prefix if it is empty
1632 if test x$local_prefix = x; then
1633         local_prefix=/usr/local
1634 fi
1635
1636 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1637 # passed in by the toplevel make and thus we'd get different behavior
1638 # depending on where we built the sources.
1639 gcc_gxx_include_dir=
1640 # Specify the g++ header file directory
1641
1642 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1643 if test "${with_gxx_include_dir+set}" = set; then
1644   withval="$with_gxx_include_dir"
1645   case "${withval}" in
1646 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1647 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1648    { (exit 1); exit 1; }; } ;;
1649 no)     ;;
1650 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1651 esac
1652 fi;
1653
1654 if test x${gcc_gxx_include_dir} = x; then
1655   if test x${enable_version_specific_runtime_libs} = xyes; then
1656     gcc_gxx_include_dir='${libsubdir}/include/c++'
1657   else
1658     libstdcxx_incdir='c++/$(version)'
1659     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1660   fi
1661 fi
1662
1663
1664 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1665 if test "${with_cpp_install_dir+set}" = set; then
1666   withval="$with_cpp_install_dir"
1667   if test x$withval = xyes; then
1668   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1669 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1670    { (exit 1); exit 1; }; }
1671 elif test x$withval != xno; then
1672   cpp_install_dir=$withval
1673 fi
1674 fi;
1675
1676 # We would like to our source tree to be readonly.  However when releases or
1677 # pre-releases are generated, the flex/bison generated files as well as the
1678 # various formats of manuals need to be included along with the rest of the
1679 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1680 # just that.
1681
1682 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1683 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1684     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1685 if test "${enable_generated_files_in_srcdir+set}" = set; then
1686   enableval="$enable_generated_files_in_srcdir"
1687   generated_files_in_srcdir=$enableval
1688 else
1689   generated_files_in_srcdir=no
1690 fi;
1691
1692 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1693 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1694
1695 if test "$generated_files_in_srcdir" = "yes"; then
1696   GENINSRC=''
1697 else
1698   GENINSRC='#'
1699 fi
1700
1701
1702 # -------------------
1703 # Find default linker
1704 # -------------------
1705
1706 # With GNU ld
1707
1708 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1709 if test "${with_gnu_ld+set}" = set; then
1710   withval="$with_gnu_ld"
1711   gnu_ld_flag="$with_gnu_ld"
1712 else
1713   gnu_ld_flag=no
1714 fi;
1715
1716 # With pre-defined ld
1717
1718 # Check whether --with-ld or --without-ld was given.
1719 if test "${with_ld+set}" = set; then
1720   withval="$with_ld"
1721   DEFAULT_LINKER="$with_ld"
1722 fi;
1723 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1724   if test ! -x "$DEFAULT_LINKER"; then
1725     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1726 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1727    { (exit 1); exit 1; }; }
1728   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1729     gnu_ld_flag=yes
1730   fi
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1734 _ACEOF
1735
1736 fi
1737
1738 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1739 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1740 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1741   if test x"$gnu_ld_flag" = x"no"; then
1742     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1743 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1744   else
1745     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1747   fi
1748 else
1749   echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 fi
1752
1753 # With demangler in GNU ld
1754
1755 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1756 if test "${with_demangler_in_ld+set}" = set; then
1757   withval="$with_demangler_in_ld"
1758   demangler_in_ld="$with_demangler_in_ld"
1759 else
1760   demangler_in_ld=no
1761 fi;
1762
1763 # ----------------------
1764 # Find default assembler
1765 # ----------------------
1766
1767 # With GNU as
1768
1769 # Check whether --with-gnu-as or --without-gnu-as was given.
1770 if test "${with_gnu_as+set}" = set; then
1771   withval="$with_gnu_as"
1772   gas_flag="$with_gnu_as"
1773 else
1774   gas_flag=no
1775 fi;
1776
1777
1778 # Check whether --with-as or --without-as was given.
1779 if test "${with_as+set}" = set; then
1780   withval="$with_as"
1781   DEFAULT_ASSEMBLER="$with_as"
1782 fi;
1783 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1784   if test ! -x "$DEFAULT_ASSEMBLER"; then
1785     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1786 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1787    { (exit 1); exit 1; }; }
1788   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1789     gas_flag=yes
1790   fi
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1794 _ACEOF
1795
1796 fi
1797
1798 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1799 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1800 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1801   if test x"$gas_flag" = x"no"; then
1802     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1803 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1804   else
1805     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1807   fi
1808 else
1809   echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6
1811 fi
1812
1813 # ---------------
1814 # Find C compiler
1815 # ---------------
1816
1817 # If a non-executable a.out is present (e.g. created by GNU as above even if
1818 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1819 # file, even when creating an executable, so an execution test fails.
1820 # Remove possible default executable files to avoid this.
1821 #
1822 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1823 # Autoconf includes it.
1824 rm -f a.out a.exe b.out
1825
1826 # Find the native compiler
1827 ac_ext=c
1828 ac_cpp='$CPP $CPPFLAGS'
1829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 if test -n "$ac_tool_prefix"; then
1833   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_CC+set}" = set; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   if test -n "$CC"; then
1841   ac_cv_prog_CC="$CC" # Let the user override the test.
1842 else
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846   IFS=$as_save_IFS
1847   test -z "$as_dir" && as_dir=.
1848   for ac_exec_ext in '' $ac_executable_extensions; do
1849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852     break 2
1853   fi
1854 done
1855 done
1856
1857 fi
1858 fi
1859 CC=$ac_cv_prog_CC
1860 if test -n "$CC"; then
1861   echo "$as_me:$LINENO: result: $CC" >&5
1862 echo "${ECHO_T}$CC" >&6
1863 else
1864   echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1866 fi
1867
1868 fi
1869 if test -z "$ac_cv_prog_CC"; then
1870   ac_ct_CC=$CC
1871   # Extract the first word of "gcc", so it can be a program name with args.
1872 set dummy gcc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876   echo $ECHO_N "(cached) $ECHO_C" >&6
1877 else
1878   if test -n "$ac_ct_CC"; then
1879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 else
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1882 for as_dir in $PATH
1883 do
1884   IFS=$as_save_IFS
1885   test -z "$as_dir" && as_dir=.
1886   for ac_exec_ext in '' $ac_executable_extensions; do
1887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888     ac_cv_prog_ac_ct_CC="gcc"
1889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890     break 2
1891   fi
1892 done
1893 done
1894
1895 fi
1896 fi
1897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1898 if test -n "$ac_ct_CC"; then
1899   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1900 echo "${ECHO_T}$ac_ct_CC" >&6
1901 else
1902   echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1904 fi
1905
1906   CC=$ac_ct_CC
1907 else
1908   CC="$ac_cv_prog_CC"
1909 fi
1910
1911 if test -z "$CC"; then
1912   if test -n "$ac_tool_prefix"; then
1913   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   if test -n "$CC"; then
1921   ac_cv_prog_CC="$CC" # Let the user override the test.
1922 else
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 for as_dir in $PATH
1925 do
1926   IFS=$as_save_IFS
1927   test -z "$as_dir" && as_dir=.
1928   for ac_exec_ext in '' $ac_executable_extensions; do
1929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930     ac_cv_prog_CC="${ac_tool_prefix}cc"
1931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1932     break 2
1933   fi
1934 done
1935 done
1936
1937 fi
1938 fi
1939 CC=$ac_cv_prog_CC
1940 if test -n "$CC"; then
1941   echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948 fi
1949 if test -z "$ac_cv_prog_CC"; then
1950   ac_ct_CC=$CC
1951   # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956   echo $ECHO_N "(cached) $ECHO_C" >&6
1957 else
1958   if test -n "$ac_ct_CC"; then
1959   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1960 else
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     ac_cv_prog_ac_ct_CC="cc"
1969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970     break 2
1971   fi
1972 done
1973 done
1974
1975 fi
1976 fi
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1981 else
1982   echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1984 fi
1985
1986   CC=$ac_ct_CC
1987 else
1988   CC="$ac_cv_prog_CC"
1989 fi
1990
1991 fi
1992 if test -z "$CC"; then
1993   # Extract the first word of "cc", so it can be a program name with args.
1994 set dummy cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998   echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000   if test -n "$CC"; then
2001   ac_cv_prog_CC="$CC" # Let the user override the test.
2002 else
2003   ac_prog_rejected=no
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2012        ac_prog_rejected=yes
2013        continue
2014      fi
2015     ac_cv_prog_CC="cc"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021
2022 if test $ac_prog_rejected = yes; then
2023   # We found a bogon in the path, so make sure we never use it.
2024   set dummy $ac_cv_prog_CC
2025   shift
2026   if test $# != 0; then
2027     # We chose a different compiler from the bogus one.
2028     # However, it has the same basename, so the bogon will be chosen
2029     # first if we set CC to just the basename; use the full file name.
2030     shift
2031     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2032   fi
2033 fi
2034 fi
2035 fi
2036 CC=$ac_cv_prog_CC
2037 if test -n "$CC"; then
2038   echo "$as_me:$LINENO: result: $CC" >&5
2039 echo "${ECHO_T}$CC" >&6
2040 else
2041   echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6
2043 fi
2044
2045 fi
2046 if test -z "$CC"; then
2047   if test -n "$ac_tool_prefix"; then
2048   for ac_prog in cl
2049   do
2050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055   echo $ECHO_N "(cached) $ECHO_C" >&6
2056 else
2057   if test -n "$CC"; then
2058   ac_cv_prog_CC="$CC" # Let the user override the test.
2059 else
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   for ac_exec_ext in '' $ac_executable_extensions; do
2066   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2069     break 2
2070   fi
2071 done
2072 done
2073
2074 fi
2075 fi
2076 CC=$ac_cv_prog_CC
2077 if test -n "$CC"; then
2078   echo "$as_me:$LINENO: result: $CC" >&5
2079 echo "${ECHO_T}$CC" >&6
2080 else
2081   echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2083 fi
2084
2085     test -n "$CC" && break
2086   done
2087 fi
2088 if test -z "$CC"; then
2089   ac_ct_CC=$CC
2090   for ac_prog in cl
2091 do
2092   # Extract the first word of "$ac_prog", so it can be a program name with args.
2093 set dummy $ac_prog; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$ac_ct_CC"; then
2100   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109     ac_cv_prog_ac_ct_CC="$ac_prog"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115
2116 fi
2117 fi
2118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2119 if test -n "$ac_ct_CC"; then
2120   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2121 echo "${ECHO_T}$ac_ct_CC" >&6
2122 else
2123   echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2125 fi
2126
2127   test -n "$ac_ct_CC" && break
2128 done
2129
2130   CC=$ac_ct_CC
2131 fi
2132
2133 fi
2134
2135
2136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2137 See \`config.log' for more details." >&5
2138 echo "$as_me: error: no acceptable C compiler found in \$PATH
2139 See \`config.log' for more details." >&2;}
2140    { (exit 1); exit 1; }; }
2141
2142 # Provide some information about the compiler.
2143 echo "$as_me:$LINENO:" \
2144      "checking for C compiler version" >&5
2145 ac_compiler=`set X $ac_compile; echo $2`
2146 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2147   (eval $ac_compiler --version </dev/null >&5) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }
2151 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2152   (eval $ac_compiler -v </dev/null >&5) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }
2156 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2157   (eval $ac_compiler -V </dev/null >&5) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }
2161
2162 cat >conftest.$ac_ext <<_ACEOF
2163 /* confdefs.h.  */
2164 _ACEOF
2165 cat confdefs.h >>conftest.$ac_ext
2166 cat >>conftest.$ac_ext <<_ACEOF
2167 /* end confdefs.h.  */
2168
2169 int
2170 main ()
2171 {
2172
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 ac_clean_files_save=$ac_clean_files
2178 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2179 # Try to create an executable without -o first, disregard a.out.
2180 # It will help us diagnose broken compilers, and finding out an intuition
2181 # of exeext.
2182 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2183 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2184 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2186   (eval $ac_link_default) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; then
2190   # Find the output, starting from the most likely.  This scheme is
2191 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2192 # resort.
2193
2194 # Be careful to initialize this variable, since it used to be cached.
2195 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2196 ac_cv_exeext=
2197 # b.out is created by i960 compilers.
2198 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2199 do
2200   test -f "$ac_file" || continue
2201   case $ac_file in
2202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2203         ;;
2204     conftest.$ac_ext )
2205         # This is the source file.
2206         ;;
2207     [ab].out )
2208         # We found the default executable, but exeext='' is most
2209         # certainly right.
2210         break;;
2211     *.* )
2212         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213         # FIXME: I believe we export ac_cv_exeext for Libtool,
2214         # but it would be cool to find out if it's true.  Does anybody
2215         # maintain Libtool? --akim.
2216         export ac_cv_exeext
2217         break;;
2218     * )
2219         break;;
2220   esac
2221 done
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: C compiler cannot create executables
2229 See \`config.log' for more details." >&2;}
2230    { (exit 77); exit 77; }; }
2231 fi
2232
2233 ac_exeext=$ac_cv_exeext
2234 echo "$as_me:$LINENO: result: $ac_file" >&5
2235 echo "${ECHO_T}$ac_file" >&6
2236
2237 # Check the compiler produces executables we can run.  If not, either
2238 # the compiler is broken, or we cross compile.
2239 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2240 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2241 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2242 # If not cross compiling, check that we can run a simple program.
2243 if test "$cross_compiling" != yes; then
2244   if { ac_try='./$ac_file'
2245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246   (eval $ac_try) 2>&5
2247   ac_status=$?
2248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249   (exit $ac_status); }; }; then
2250     cross_compiling=no
2251   else
2252     if test "$cross_compiling" = maybe; then
2253         cross_compiling=yes
2254     else
2255         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details." >&5
2258 echo "$as_me: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&2;}
2261    { (exit 1); exit 1; }; }
2262     fi
2263   fi
2264 fi
2265 echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6
2267
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check the compiler produces executables we can run.  If not, either
2271 # the compiler is broken, or we cross compile.
2272 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2274 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6
2276
2277 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2280   (eval $ac_link) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; then
2284   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2285 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2286 # work properly (i.e., refer to `conftest.exe'), while it won't with
2287 # `rm'.
2288 for ac_file in conftest.exe conftest conftest.*; do
2289   test -f "$ac_file" || continue
2290   case $ac_file in
2291     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2292     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293           export ac_cv_exeext
2294           break;;
2295     * ) break;;
2296   esac
2297 done
2298 else
2299   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2302 See \`config.log' for more details." >&2;}
2303    { (exit 1); exit 1; }; }
2304 fi
2305
2306 rm -f conftest$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2308 echo "${ECHO_T}$ac_cv_exeext" >&6
2309
2310 rm -f conftest.$ac_ext
2311 EXEEXT=$ac_cv_exeext
2312 ac_exeext=$EXEEXT
2313 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2314 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2315 if test "${ac_cv_objext+set}" = set; then
2316   echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318   cat >conftest.$ac_ext <<_ACEOF
2319 /* confdefs.h.  */
2320 _ACEOF
2321 cat confdefs.h >>conftest.$ac_ext
2322 cat >>conftest.$ac_ext <<_ACEOF
2323 /* end confdefs.h.  */
2324
2325 int
2326 main ()
2327 {
2328
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 rm -f conftest.o conftest.obj
2334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2335   (eval $ac_compile) 2>&5
2336   ac_status=$?
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); }; then
2339   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2340   case $ac_file in
2341     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2342     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2343        break;;
2344   esac
2345 done
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2351 See \`config.log' for more details." >&5
2352 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2353 See \`config.log' for more details." >&2;}
2354    { (exit 1); exit 1; }; }
2355 fi
2356
2357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2358 fi
2359 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2360 echo "${ECHO_T}$ac_cv_objext" >&6
2361 OBJEXT=$ac_cv_objext
2362 ac_objext=$OBJEXT
2363 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2364 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2365 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h.  */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h.  */
2374
2375 int
2376 main ()
2377 {
2378 #ifndef __GNUC__
2379        choke me
2380 #endif
2381
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388   (eval $ac_compile) 2>conftest.er1
2389   ac_status=$?
2390   grep -v '^ *+' conftest.er1 >conftest.err
2391   rm -f conftest.er1
2392   cat conftest.err >&5
2393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394   (exit $ac_status); } &&
2395          { ac_try='test -z "$ac_c_werror_flag"
2396                          || test ! -s conftest.err'
2397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398   (eval $ac_try) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); }; } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_compiler_gnu=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_compiler_gnu=no
2414 fi
2415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417
2418 fi
2419 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2421 GCC=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS=${CFLAGS+set}
2423 ac_save_CFLAGS=$CFLAGS
2424 CFLAGS="-g"
2425 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2426 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2427 if test "${ac_cv_prog_cc_g+set}" = set; then
2428   echo $ECHO_N "(cached) $ECHO_C" >&6
2429 else
2430   cat >conftest.$ac_ext <<_ACEOF
2431 /* confdefs.h.  */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h.  */
2436
2437 int
2438 main ()
2439 {
2440
2441   ;
2442   return 0;
2443 }
2444 _ACEOF
2445 rm -f conftest.$ac_objext
2446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447   (eval $ac_compile) 2>conftest.er1
2448   ac_status=$?
2449   grep -v '^ *+' conftest.er1 >conftest.err
2450   rm -f conftest.er1
2451   cat conftest.err >&5
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); } &&
2454          { ac_try='test -z "$ac_c_werror_flag"
2455                          || test ! -s conftest.err'
2456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457   (eval $ac_try) 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; } &&
2461          { ac_try='test -s conftest.$ac_objext'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; }; then
2467   ac_cv_prog_cc_g=yes
2468 else
2469   echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2471
2472 ac_cv_prog_cc_g=no
2473 fi
2474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475 fi
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2477 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2478 if test "$ac_test_CFLAGS" = set; then
2479   CFLAGS=$ac_save_CFLAGS
2480 elif test $ac_cv_prog_cc_g = yes; then
2481   if test "$GCC" = yes; then
2482     CFLAGS="-g -O2"
2483   else
2484     CFLAGS="-g"
2485   fi
2486 else
2487   if test "$GCC" = yes; then
2488     CFLAGS="-O2"
2489   else
2490     CFLAGS=
2491   fi
2492 fi
2493 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2494 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2495 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   ac_cv_prog_cc_stdc=no
2499 ac_save_CC=$CC
2500 cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506 #include <stdarg.h>
2507 #include <stdio.h>
2508 #include <sys/types.h>
2509 #include <sys/stat.h>
2510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2511 struct buf { int x; };
2512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2513 static char *e (p, i)
2514      char **p;
2515      int i;
2516 {
2517   return p[i];
2518 }
2519 static char *f (char * (*g) (char **, int), char **p, ...)
2520 {
2521   char *s;
2522   va_list v;
2523   va_start (v,p);
2524   s = g (p, va_arg (v,int));
2525   va_end (v);
2526   return s;
2527 }
2528
2529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2530    function prototypes and stuff, but not '\xHH' hex character constants.
2531    These don't provoke an error unfortunately, instead are silently treated
2532    as 'x'.  The following induces an error, until -std1 is added to get
2533    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2534    array size at least.  It's necessary to write '\x00'==0 to get something
2535    that's true only with -std1.  */
2536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2537
2538 int test (int i, double x);
2539 struct s1 {int (*f) (int a);};
2540 struct s2 {int (*f) (double a);};
2541 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2542 int argc;
2543 char **argv;
2544 int
2545 main ()
2546 {
2547 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 # Don't try gcc -ansi; that turns off useful extensions and
2553 # breaks some systems' header files.
2554 # AIX                   -qlanglvl=ansi
2555 # Ultrix and OSF/1      -std1
2556 # HP-UX 10.20 and later -Ae
2557 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2558 # SVR4                  -Xc -D__EXTENSIONS__
2559 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2560 do
2561   CC="$ac_save_CC $ac_arg"
2562   rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag"
2572                          || test ! -s conftest.err'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; } &&
2578          { ac_try='test -s conftest.$ac_objext'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; }; then
2584   ac_cv_prog_cc_stdc=$ac_arg
2585 break
2586 else
2587   echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2589
2590 fi
2591 rm -f conftest.err conftest.$ac_objext
2592 done
2593 rm -f conftest.$ac_ext conftest.$ac_objext
2594 CC=$ac_save_CC
2595
2596 fi
2597
2598 case "x$ac_cv_prog_cc_stdc" in
2599   x|xno)
2600     echo "$as_me:$LINENO: result: none needed" >&5
2601 echo "${ECHO_T}none needed" >&6 ;;
2602   *)
2603     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2604 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2605     CC="$CC $ac_cv_prog_cc_stdc" ;;
2606 esac
2607
2608 # Some people use a C++ compiler to compile C.  Since we use `exit',
2609 # in C++ we need to declare it.  In case someone uses the same compiler
2610 # for both compiling C and C++ we need to have the C++ compiler decide
2611 # the declaration of exit, since it's the most demanding environment.
2612 cat >conftest.$ac_ext <<_ACEOF
2613 #ifndef __cplusplus
2614   choke me
2615 #endif
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   for ac_declaration in \
2640    '' \
2641    'extern "C" void std::exit (int) throw (); using std::exit;' \
2642    'extern "C" void std::exit (int); using std::exit;' \
2643    'extern "C" void exit (int) throw ();' \
2644    'extern "C" void exit (int);' \
2645    'void exit (int);'
2646 do
2647   cat >conftest.$ac_ext <<_ACEOF
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653 $ac_declaration
2654 #include <stdlib.h>
2655 int
2656 main ()
2657 {
2658 exit (42);
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"
2673                          || test ! -s conftest.err'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   :
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 continue
2691 fi
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693   cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699 $ac_declaration
2700 int
2701 main ()
2702 {
2703 exit (42);
2704   ;
2705   return 0;
2706 }
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2710   (eval $ac_compile) 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_c_werror_flag"
2718                          || test ! -s conftest.err'
2719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }; } &&
2724          { ac_try='test -s conftest.$ac_objext'
2725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726   (eval $ac_try) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; }; then
2730   break
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 fi
2736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 done
2738 rm -f conftest*
2739 if test -n "$ac_declaration"; then
2740   echo '#ifdef __cplusplus' >>confdefs.h
2741   echo $ac_declaration      >>confdefs.h
2742   echo '#endif'             >>confdefs.h
2743 fi
2744
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749 fi
2750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756
2757 if test "x$CC" != xcc; then
2758   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2759 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2760 else
2761   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2762 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2763 fi
2764 set dummy $CC; ac_cc=`echo $2 |
2765                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2766 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775
2776 int
2777 main ()
2778 {
2779
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 # Make sure it works both with $CC and with simple cc.
2785 # We do the test twice because some compilers refuse to overwrite an
2786 # existing .o file with -o, though they will create one.
2787 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2788 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); };
2798 then
2799   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2800   if test "x$CC" != xcc; then
2801     # Test first that cc exists at all.
2802     if { ac_try='cc -c conftest.$ac_ext >&5'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; }; then
2808       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2809       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810   (eval $ac_try) 2>&5
2811   ac_status=$?
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); } &&
2814          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); };
2819       then
2820         # cc works too.
2821         :
2822       else
2823         # cc exists but doesn't like -o.
2824         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2825       fi
2826     fi
2827   fi
2828 else
2829   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2830 fi
2831 rm -f conftest*
2832
2833 fi
2834 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2835   echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6
2837 else
2838   echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6
2840
2841 cat >>confdefs.h <<\_ACEOF
2842 #define NO_MINUS_C_MINUS_O 1
2843 _ACEOF
2844
2845 fi
2846
2847 # expand $ac_aux_dir to an absolute path
2848 am_aux_dir=`cd $ac_aux_dir && pwd`
2849
2850 # FIXME: we rely on the cache variable name because
2851 # there is no other way.
2852 set dummy $CC
2853 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2854 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2855    # Losing compiler, so override with the script.
2856    # FIXME: It is wrong to rewrite CC.
2857    # But if we don't then we get into trouble of one sort or another.
2858    # A longer-term fix would be to have automake use am__CC in this case,
2859    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2860    CC="$am_aux_dir/compile $CC"
2861 fi
2862
2863 # autoconf is lame and doesn't give us any substitution variable for this.
2864 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2865   NO_MINUS_C_MINUS_O=yes
2866 else
2867   OUTPUT_OPTION='-o $@'
2868 fi
2869
2870
2871
2872 # -------------------------
2873 # Check C compiler features
2874 # -------------------------
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2885   CPP=
2886 fi
2887 if test -z "$CPP"; then
2888   if test "${ac_cv_prog_CPP+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891       # Double quotes because CPP needs to be expanded
2892     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893     do
2894       ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2896 do
2897   # Use a header file that comes with gcc, so configuring glibc
2898   # with a fresh cross-compiler works.
2899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900   # <limits.h> exists even on freestanding compilers.
2901   # On the NeXT, cc -E runs the code through the compiler's parser,
2902   # not just through cpp. "Syntax error" is here to catch this case.
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914                      Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } >/dev/null; then
2924   if test -s conftest.err; then
2925     ac_cpp_err=$ac_c_preproc_warn_flag
2926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927   else
2928     ac_cpp_err=
2929   fi
2930 else
2931   ac_cpp_err=yes
2932 fi
2933 if test -z "$ac_cpp_err"; then
2934   :
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939   # Broken: fails on valid input.
2940 continue
2941 fi
2942 rm -f conftest.err conftest.$ac_ext
2943
2944   # OK, works on sane cases.  Now check whether non-existent headers
2945   # can be detected and how.
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   # Broken: success on invalid input.
2973 continue
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988   break
2989 fi
2990
2991     done
2992     ac_cv_prog_CPP=$CPP
2993
2994 fi
2995   CPP=$ac_cv_prog_CPP
2996 else
2997   ac_cv_prog_CPP=$CPP
2998 fi
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3003 do
3004   # Use a header file that comes with gcc, so configuring glibc
3005   # with a fresh cross-compiler works.
3006   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007   # <limits.h> exists even on freestanding compilers.
3008   # On the NeXT, cc -E runs the code through the compiler's parser,
3009   # not just through cpp. "Syntax error" is here to catch this case.
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021                      Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } >/dev/null; then
3031   if test -s conftest.err; then
3032     ac_cpp_err=$ac_c_preproc_warn_flag
3033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034   else
3035     ac_cpp_err=
3036   fi
3037 else
3038   ac_cpp_err=yes
3039 fi
3040 if test -z "$ac_cpp_err"; then
3041   :
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046   # Broken: fails on valid input.
3047 continue
3048 fi
3049 rm -f conftest.err conftest.$ac_ext
3050
3051   # OK, works on sane cases.  Now check whether non-existent headers
3052   # can be detected and how.
3053   cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } >/dev/null; then
3069   if test -s conftest.err; then
3070     ac_cpp_err=$ac_c_preproc_warn_flag
3071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072   else
3073     ac_cpp_err=
3074   fi
3075 else
3076   ac_cpp_err=yes
3077 fi
3078 if test -z "$ac_cpp_err"; then
3079   # Broken: success on invalid input.
3080 continue
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3095   :
3096 else
3097   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101    { (exit 1); exit 1; }; }
3102 fi
3103
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110
3111 echo "$as_me:$LINENO: checking for inline" >&5
3112 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3113 if test "${ac_cv_c_inline+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   ac_cv_c_inline=no
3117 for ac_kw in inline __inline__ __inline; do
3118   cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 #ifndef __cplusplus
3125 typedef int foo_t;
3126 static $ac_kw foo_t static_foo () {return 0; }
3127 $ac_kw foo_t foo () {return 0; }
3128 #endif
3129
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133   (eval $ac_compile) 2>conftest.er1
3134   ac_status=$?
3135   grep -v '^ *+' conftest.er1 >conftest.err
3136   rm -f conftest.er1
3137   cat conftest.err >&5
3138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139   (exit $ac_status); } &&
3140          { ac_try='test -z "$ac_c_werror_flag"
3141                          || test ! -s conftest.err'
3142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143   (eval $ac_try) 2>&5
3144   ac_status=$?
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }; } &&
3147          { ac_try='test -s conftest.$ac_objext'
3148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149   (eval $ac_try) 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   ac_cv_c_inline=$ac_kw; break
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 fi
3159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3160 done
3161
3162 fi
3163 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3164 echo "${ECHO_T}$ac_cv_c_inline" >&6
3165
3166
3167 case $ac_cv_c_inline in
3168   inline | yes) ;;
3169   *)
3170     case $ac_cv_c_inline in
3171       no) ac_val=;;
3172       *) ac_val=$ac_cv_c_inline;;
3173     esac
3174     cat >>confdefs.h <<_ACEOF
3175 #ifndef __cplusplus
3176 #define inline $ac_val
3177 #endif
3178 _ACEOF
3179     ;;
3180 esac
3181
3182
3183 # sizeof(char) is 1 by definition.
3184
3185 echo "$as_me:$LINENO: checking for egrep" >&5
3186 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3187 if test "${ac_cv_prog_egrep+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3191     then ac_cv_prog_egrep='grep -E'
3192     else ac_cv_prog_egrep='egrep'
3193     fi
3194 fi
3195 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3196 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3197  EGREP=$ac_cv_prog_egrep
3198
3199
3200 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3202 if test "${ac_cv_header_stdc+set}" = set; then
3203   echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205   cat >conftest.$ac_ext <<_ACEOF
3206 /* confdefs.h.  */
3207 _ACEOF
3208 cat confdefs.h >>conftest.$ac_ext
3209 cat >>conftest.$ac_ext <<_ACEOF
3210 /* end confdefs.h.  */
3211 #include <stdlib.h>
3212 #include <stdarg.h>
3213 #include <string.h>
3214 #include <float.h>
3215
3216 int
3217 main ()
3218 {
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226   (eval $ac_compile) 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -z "$ac_c_werror_flag"
3234                          || test ! -s conftest.err'
3235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236   (eval $ac_try) 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; } &&
3240          { ac_try='test -s conftest.$ac_objext'
3241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242   (eval $ac_try) 2>&5
3243   ac_status=$?
3244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245   (exit $ac_status); }; }; then
3246   ac_cv_header_stdc=yes
3247 else
3248   echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 ac_cv_header_stdc=no
3252 fi
3253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254
3255 if test $ac_cv_header_stdc = yes; then
3256   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3257   cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263 #include <string.h>
3264
3265 _ACEOF
3266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267   $EGREP "memchr" >/dev/null 2>&1; then
3268   :
3269 else
3270   ac_cv_header_stdc=no
3271 fi
3272 rm -f conftest*
3273
3274 fi
3275
3276 if test $ac_cv_header_stdc = yes; then
3277   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #include <stdlib.h>
3285
3286 _ACEOF
3287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3288   $EGREP "free" >/dev/null 2>&1; then
3289   :
3290 else
3291   ac_cv_header_stdc=no
3292 fi
3293 rm -f conftest*
3294
3295 fi
3296
3297 if test $ac_cv_header_stdc = yes; then
3298   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3299   if test "$cross_compiling" = yes; then
3300   :
3301 else
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ctype.h>
3309 #if ((' ' & 0x0FF) == 0x020)
3310 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3311 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3312 #else
3313 # define ISLOWER(c) \
3314                    (('a' <= (c) && (c) <= 'i') \
3315                      || ('j' <= (c) && (c) <= 'r') \
3316                      || ('s' <= (c) && (c) <= 'z'))
3317 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3318 #endif
3319
3320 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3321 int
3322 main ()
3323 {
3324   int i;
3325   for (i = 0; i < 256; i++)
3326     if (XOR (islower (i), ISLOWER (i))
3327         || toupper (i) != TOUPPER (i))
3328       exit(2);
3329   exit (0);
3330 }
3331 _ACEOF
3332 rm -f conftest$ac_exeext
3333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3334   (eval $ac_link) 2>&5
3335   ac_status=$?
3336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339   (eval $ac_try) 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; }; then
3343   :
3344 else
3345   echo "$as_me: program exited with status $ac_status" >&5
3346 echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349 ( exit $ac_status )
3350 ac_cv_header_stdc=no
3351 fi
3352 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3353 fi
3354 fi
3355 fi
3356 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3357 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3358 if test $ac_cv_header_stdc = yes; then
3359
3360 cat >>confdefs.h <<\_ACEOF
3361 #define STDC_HEADERS 1
3362 _ACEOF
3363
3364 fi
3365
3366 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3377                   inttypes.h stdint.h unistd.h
3378 do
3379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3380 echo "$as_me:$LINENO: checking for $ac_header" >&5
3381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   cat >conftest.$ac_ext <<_ACEOF
3386 /* confdefs.h.  */
3387 _ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h.  */
3391 $ac_includes_default
3392
3393 #include <$ac_header>
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397   (eval $ac_compile) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } &&
3404          { ac_try='test -z "$ac_c_werror_flag"
3405                          || test ! -s conftest.err'
3406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407   (eval $ac_try) 2>&5
3408   ac_status=$?
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); }; } &&
3411          { ac_try='test -s conftest.$ac_objext'
3412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413   (eval $ac_try) 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; }; then
3417   eval "$as_ac_Header=yes"
3418 else
3419   echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 eval "$as_ac_Header=no"
3423 fi
3424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3429   cat >>confdefs.h <<_ACEOF
3430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3431 _ACEOF
3432
3433 fi
3434
3435 done
3436
3437
3438 echo "$as_me:$LINENO: checking for void *" >&5
3439 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3440 if test "${ac_cv_type_void_p+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   cat >conftest.$ac_ext <<_ACEOF
3444 /* confdefs.h.  */
3445 _ACEOF
3446 cat confdefs.h >>conftest.$ac_ext
3447 cat >>conftest.$ac_ext <<_ACEOF
3448 /* end confdefs.h.  */
3449 $ac_includes_default
3450 int
3451 main ()
3452 {
3453 if ((void * *) 0)
3454   return 0;
3455 if (sizeof (void *))
3456   return 0;
3457   ;
3458   return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3463   (eval $ac_compile) 2>conftest.er1
3464   ac_status=$?
3465   grep -v '^ *+' conftest.er1 >conftest.err
3466   rm -f conftest.er1
3467   cat conftest.err >&5
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); } &&
3470          { ac_try='test -z "$ac_c_werror_flag"
3471                          || test ! -s conftest.err'
3472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473   (eval $ac_try) 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }; } &&
3477          { ac_try='test -s conftest.$ac_objext'
3478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479   (eval $ac_try) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; }; then
3483   ac_cv_type_void_p=yes
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 ac_cv_type_void_p=no
3489 fi
3490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3491 fi
3492 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3493 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3494
3495 echo "$as_me:$LINENO: checking size of void *" >&5
3496 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3497 if test "${ac_cv_sizeof_void_p+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if test "$ac_cv_type_void_p" = yes; then
3501   # The cast to unsigned long works around a bug in the HP C Compiler
3502   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3503   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3504   # This bug is HP SR number 8606223364.
3505   if test "$cross_compiling" = yes; then
3506   # Depending upon the size, compute the lo and hi bounds.
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 $ac_includes_default
3514 int
3515 main ()
3516 {
3517 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3518 test_array [0] = 0
3519
3520   ;
3521   return 0;
3522 }
3523 _ACEOF
3524 rm -f conftest.$ac_objext
3525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3526   (eval $ac_compile) 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } &&
3533          { ac_try='test -z "$ac_c_werror_flag"
3534                          || test ! -s conftest.err'
3535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536   (eval $ac_try) 2>&5
3537   ac_status=$?
3538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539   (exit $ac_status); }; } &&
3540          { ac_try='test -s conftest.$ac_objext'
3541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542   (eval $ac_try) 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }; }; then
3546   ac_lo=0 ac_mid=0
3547   while :; do
3548     cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h.  */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h.  */
3554 $ac_includes_default
3555 int
3556 main ()
3557 {
3558 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3559 test_array [0] = 0
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 rm -f conftest.$ac_objext
3566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567   (eval $ac_compile) 2>conftest.er1
3568   ac_status=$?
3569   grep -v '^ *+' conftest.er1 >conftest.err
3570   rm -f conftest.er1
3571   cat conftest.err >&5
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); } &&
3574          { ac_try='test -z "$ac_c_werror_flag"
3575                          || test ! -s conftest.err'
3576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577   (eval $ac_try) 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); }; } &&
3581          { ac_try='test -s conftest.$ac_objext'
3582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583   (eval $ac_try) 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; }; then
3587   ac_hi=$ac_mid; break
3588 else
3589   echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592 ac_lo=`expr $ac_mid + 1`
3593                     if test $ac_lo -le $ac_mid; then
3594                       ac_lo= ac_hi=
3595                       break
3596                     fi
3597                     ac_mid=`expr 2 '*' $ac_mid + 1`
3598 fi
3599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600   done
3601 else
3602   echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3604
3605 cat >conftest.$ac_ext <<_ACEOF
3606 /* confdefs.h.  */
3607 _ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h.  */
3611 $ac_includes_default
3612 int
3613 main ()
3614 {
3615 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3616 test_array [0] = 0
3617
3618   ;
3619   return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624   (eval $ac_compile) 2>conftest.er1
3625   ac_status=$?
3626   grep -v '^ *+' conftest.er1 >conftest.err
3627   rm -f conftest.er1
3628   cat conftest.err >&5
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); } &&
3631          { ac_try='test -z "$ac_c_werror_flag"
3632                          || test ! -s conftest.err'
3633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3634   (eval $ac_try) 2>&5
3635   ac_status=$?
3636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); }; } &&
3638          { ac_try='test -s conftest.$ac_objext'
3639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640   (eval $ac_try) 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; }; then
3644   ac_hi=-1 ac_mid=-1
3645   while :; do
3646     cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 $ac_includes_default
3653 int
3654 main ()
3655 {
3656 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3657 test_array [0] = 0
3658
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665   (eval $ac_compile) 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } &&
3672          { ac_try='test -z "$ac_c_werror_flag"
3673                          || test ! -s conftest.err'
3674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675   (eval $ac_try) 2>&5
3676   ac_status=$?
3677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678   (exit $ac_status); }; } &&
3679          { ac_try='test -s conftest.$ac_objext'
3680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681   (eval $ac_try) 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   ac_lo=$ac_mid; break
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_hi=`expr '(' $ac_mid ')' - 1`
3691                        if test $ac_mid -le $ac_hi; then
3692                          ac_lo= ac_hi=
3693                          break
3694                        fi
3695                        ac_mid=`expr 2 '*' $ac_mid`
3696 fi
3697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3698   done
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703 ac_lo= ac_hi=
3704 fi
3705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3706 fi
3707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3708 # Binary search between lo and hi bounds.
3709 while test "x$ac_lo" != "x$ac_hi"; do
3710   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3711   cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h.  */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h.  */
3717 $ac_includes_default
3718 int
3719 main ()
3720 {
3721 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3722 test_array [0] = 0
3723
3724   ;
3725   return 0;
3726 }
3727 _ACEOF
3728 rm -f conftest.$ac_objext
3729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3730   (eval $ac_compile) 2>conftest.er1
3731   ac_status=$?
3732   grep -v '^ *+' conftest.er1 >conftest.err
3733   rm -f conftest.er1
3734   cat conftest.err >&5
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } &&
3737          { ac_try='test -z "$ac_c_werror_flag"
3738                          || test ! -s conftest.err'
3739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740   (eval $ac_try) 2>&5
3741   ac_status=$?
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); }; } &&
3744          { ac_try='test -s conftest.$ac_objext'
3745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746   (eval $ac_try) 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750   ac_hi=$ac_mid
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 ac_lo=`expr '(' $ac_mid ')' + 1`
3756 fi
3757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3758 done
3759 case $ac_lo in
3760 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: cannot compute sizeof (void *), 77
3764 See \`config.log' for more details." >&2;}
3765    { (exit 1); exit 1; }; } ;;
3766 esac
3767 else
3768   if test "$cross_compiling" = yes; then
3769   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3770 See \`config.log' for more details." >&5
3771 echo "$as_me: error: cannot run test program while cross compiling
3772 See \`config.log' for more details." >&2;}
3773    { (exit 1); exit 1; }; }
3774 else
3775   cat >conftest.$ac_ext <<_ACEOF
3776 /* confdefs.h.  */
3777 _ACEOF
3778 cat confdefs.h >>conftest.$ac_ext
3779 cat >>conftest.$ac_ext <<_ACEOF
3780 /* end confdefs.h.  */
3781 $ac_includes_default
3782 long longval () { return (long) (sizeof (void *)); }
3783 unsigned long ulongval () { return (long) (sizeof (void *)); }
3784 #include <stdio.h>
3785 #include <stdlib.h>
3786 int
3787 main ()
3788 {
3789
3790   FILE *f = fopen ("conftest.val", "w");
3791   if (! f)
3792     exit (1);
3793   if (((long) (sizeof (void *))) < 0)
3794     {
3795       long i = longval ();
3796       if (i != ((long) (sizeof (void *))))
3797         exit (1);
3798       fprintf (f, "%ld\n", i);
3799     }
3800   else
3801     {
3802       unsigned long i = ulongval ();
3803       if (i != ((long) (sizeof (void *))))
3804         exit (1);
3805       fprintf (f, "%lu\n", i);
3806     }
3807   exit (ferror (f) || fclose (f) != 0);
3808
3809   ;
3810   return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest$ac_exeext
3814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815   (eval $ac_link) 2>&5
3816   ac_status=$?
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820   (eval $ac_try) 2>&5
3821   ac_status=$?
3822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823   (exit $ac_status); }; }; then
3824   ac_cv_sizeof_void_p=`cat conftest.val`
3825 else
3826   echo "$as_me: program exited with status $ac_status" >&5
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 ( exit $ac_status )
3831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3832 See \`config.log' for more details." >&5
3833 echo "$as_me: error: cannot compute sizeof (void *), 77
3834 See \`config.log' for more details." >&2;}
3835    { (exit 1); exit 1; }; }
3836 fi
3837 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3838 fi
3839 fi
3840 rm -f conftest.val
3841 else
3842   ac_cv_sizeof_void_p=0
3843 fi
3844 fi
3845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3846 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3847 cat >>confdefs.h <<_ACEOF
3848 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3849 _ACEOF
3850
3851
3852 echo "$as_me:$LINENO: checking for short" >&5
3853 echo $ECHO_N "checking for short... $ECHO_C" >&6
3854 if test "${ac_cv_type_short+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863 $ac_includes_default
3864 int
3865 main ()
3866 {
3867 if ((short *) 0)
3868   return 0;
3869 if (sizeof (short))
3870   return 0;
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 rm -f conftest.$ac_objext
3876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3877   (eval $ac_compile) 2>conftest.er1
3878   ac_status=$?
3879   grep -v '^ *+' conftest.er1 >conftest.err
3880   rm -f conftest.er1
3881   cat conftest.err >&5
3882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); } &&
3884          { ac_try='test -z "$ac_c_werror_flag"
3885                          || test ! -s conftest.err'
3886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3887   (eval $ac_try) 2>&5
3888   ac_status=$?
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); }; } &&
3891          { ac_try='test -s conftest.$ac_objext'
3892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893   (eval $ac_try) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; }; then
3897   ac_cv_type_short=yes
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 ac_cv_type_short=no
3903 fi
3904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3907 echo "${ECHO_T}$ac_cv_type_short" >&6
3908
3909 echo "$as_me:$LINENO: checking size of short" >&5
3910 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3911 if test "${ac_cv_sizeof_short+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test "$ac_cv_type_short" = yes; then
3915   # The cast to unsigned long works around a bug in the HP C Compiler
3916   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3917   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3918   # This bug is HP SR number 8606223364.
3919   if test "$cross_compiling" = yes; then
3920   # Depending upon the size, compute the lo and hi bounds.
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h.  */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h.  */
3927 $ac_includes_default
3928 int
3929 main ()
3930 {
3931 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3932 test_array [0] = 0
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 rm -f conftest.$ac_objext
3939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940   (eval $ac_compile) 2>conftest.er1
3941   ac_status=$?
3942   grep -v '^ *+' conftest.er1 >conftest.err
3943   rm -f conftest.er1
3944   cat conftest.err >&5
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); } &&
3947          { ac_try='test -z "$ac_c_werror_flag"
3948                          || test ! -s conftest.err'
3949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950   (eval $ac_try) 2>&5
3951   ac_status=$?
3952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953   (exit $ac_status); }; } &&
3954          { ac_try='test -s conftest.$ac_objext'
3955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956   (eval $ac_try) 2>&5
3957   ac_status=$?
3958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959   (exit $ac_status); }; }; then
3960   ac_lo=0 ac_mid=0
3961   while :; do
3962     cat >conftest.$ac_ext <<_ACEOF
3963 /* confdefs.h.  */
3964 _ACEOF
3965 cat confdefs.h >>conftest.$ac_ext
3966 cat >>conftest.$ac_ext <<_ACEOF
3967 /* end confdefs.h.  */
3968 $ac_includes_default
3969 int
3970 main ()
3971 {
3972 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3973 test_array [0] = 0
3974
3975   ;
3976   return 0;
3977 }
3978 _ACEOF
3979 rm -f conftest.$ac_objext
3980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981   (eval $ac_compile) 2>conftest.er1
3982   ac_status=$?
3983   grep -v '^ *+' conftest.er1 >conftest.err
3984   rm -f conftest.er1
3985   cat conftest.err >&5
3986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987   (exit $ac_status); } &&
3988          { ac_try='test -z "$ac_c_werror_flag"
3989                          || test ! -s conftest.err'
3990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991   (eval $ac_try) 2>&5
3992   ac_status=$?
3993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994   (exit $ac_status); }; } &&
3995          { ac_try='test -s conftest.$ac_objext'
3996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997   (eval $ac_try) 2>&5
3998   ac_status=$?
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); }; }; then
4001   ac_hi=$ac_mid; break
4002 else
4003   echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 ac_lo=`expr $ac_mid + 1`
4007                     if test $ac_lo -le $ac_mid; then
4008                       ac_lo= ac_hi=
4009                       break
4010                     fi
4011                     ac_mid=`expr 2 '*' $ac_mid + 1`
4012 fi
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014   done
4015 else
4016   echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019 cat >conftest.$ac_ext <<_ACEOF
4020 /* confdefs.h.  */
4021 _ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h.  */
4025 $ac_includes_default
4026 int
4027 main ()
4028 {
4029 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4030 test_array [0] = 0
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038   (eval $ac_compile) 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -z "$ac_c_werror_flag"
4046                          || test ! -s conftest.err'
4047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048   (eval $ac_try) 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; } &&
4052          { ac_try='test -s conftest.$ac_objext'
4053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4054   (eval $ac_try) 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; }; then
4058   ac_hi=-1 ac_mid=-1
4059   while :; do
4060     cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h.  */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h.  */
4066 $ac_includes_default
4067 int
4068 main ()
4069 {
4070 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4071 test_array [0] = 0
4072
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext
4078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4079   (eval $ac_compile) 2>conftest.er1
4080   ac_status=$?
4081   grep -v '^ *+' conftest.er1 >conftest.err
4082   rm -f conftest.er1
4083   cat conftest.err >&5
4084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085   (exit $ac_status); } &&
4086          { ac_try='test -z "$ac_c_werror_flag"
4087                          || test ! -s conftest.err'
4088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089   (eval $ac_try) 2>&5
4090   ac_status=$?
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); }; } &&
4093          { ac_try='test -s conftest.$ac_objext'
4094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095   (eval $ac_try) 2>&5
4096   ac_status=$?
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); }; }; then
4099   ac_lo=$ac_mid; break
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104 ac_hi=`expr '(' $ac_mid ')' - 1`
4105                        if test $ac_mid -le $ac_hi; then
4106                          ac_lo= ac_hi=
4107                          break
4108                        fi
4109                        ac_mid=`expr 2 '*' $ac_mid`
4110 fi
4111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4112   done
4113 else
4114   echo "$as_me: failed program was:" >&5
4115 sed 's/^/| /' conftest.$ac_ext >&5
4116
4117 ac_lo= ac_hi=
4118 fi
4119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120 fi
4121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4122 # Binary search between lo and hi bounds.
4123 while test "x$ac_lo" != "x$ac_hi"; do
4124   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4125   cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h.  */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h.  */
4131 $ac_includes_default
4132 int
4133 main ()
4134 {
4135 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4136 test_array [0] = 0
4137
4138   ;
4139   return 0;
4140 }
4141 _ACEOF
4142 rm -f conftest.$ac_objext
4143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144   (eval $ac_compile) 2>conftest.er1
4145   ac_status=$?
4146   grep -v '^ *+' conftest.er1 >conftest.err
4147   rm -f conftest.er1
4148   cat conftest.err >&5
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } &&
4151          { ac_try='test -z "$ac_c_werror_flag"
4152                          || test ! -s conftest.err'
4153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154   (eval $ac_try) 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
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   ac_hi=$ac_mid
4165 else
4166   echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 ac_lo=`expr '(' $ac_mid ')' + 1`
4170 fi
4171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172 done
4173 case $ac_lo in
4174 ?*) ac_cv_sizeof_short=$ac_lo;;
4175 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4176 See \`config.log' for more details." >&5
4177 echo "$as_me: error: cannot compute sizeof (short), 77
4178 See \`config.log' for more details." >&2;}
4179    { (exit 1); exit 1; }; } ;;
4180 esac
4181 else
4182   if test "$cross_compiling" = yes; then
4183   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4184 See \`config.log' for more details." >&5
4185 echo "$as_me: error: cannot run test program while cross compiling
4186 See \`config.log' for more details." >&2;}
4187    { (exit 1); exit 1; }; }
4188 else
4189   cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 $ac_includes_default
4196 long longval () { return (long) (sizeof (short)); }
4197 unsigned long ulongval () { return (long) (sizeof (short)); }
4198 #include <stdio.h>
4199 #include <stdlib.h>
4200 int
4201 main ()
4202 {
4203
4204   FILE *f = fopen ("conftest.val", "w");
4205   if (! f)
4206     exit (1);
4207   if (((long) (sizeof (short))) < 0)
4208     {
4209       long i = longval ();
4210       if (i != ((long) (sizeof (short))))
4211         exit (1);
4212       fprintf (f, "%ld\n", i);
4213     }
4214   else
4215     {
4216       unsigned long i = ulongval ();
4217       if (i != ((long) (sizeof (short))))
4218         exit (1);
4219       fprintf (f, "%lu\n", i);
4220     }
4221   exit (ferror (f) || fclose (f) != 0);
4222
4223   ;
4224   return 0;
4225 }
4226 _ACEOF
4227 rm -f conftest$ac_exeext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4229   (eval $ac_link) 2>&5
4230   ac_status=$?
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4234   (eval $ac_try) 2>&5
4235   ac_status=$?
4236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237   (exit $ac_status); }; }; then
4238   ac_cv_sizeof_short=`cat conftest.val`
4239 else
4240   echo "$as_me: program exited with status $ac_status" >&5
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244 ( exit $ac_status )
4245 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4246 See \`config.log' for more details." >&5
4247 echo "$as_me: error: cannot compute sizeof (short), 77
4248 See \`config.log' for more details." >&2;}
4249    { (exit 1); exit 1; }; }
4250 fi
4251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4252 fi
4253 fi
4254 rm -f conftest.val
4255 else
4256   ac_cv_sizeof_short=0
4257 fi
4258 fi
4259 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4260 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4261 cat >>confdefs.h <<_ACEOF
4262 #define SIZEOF_SHORT $ac_cv_sizeof_short
4263 _ACEOF
4264
4265
4266 echo "$as_me:$LINENO: checking for int" >&5
4267 echo $ECHO_N "checking for int... $ECHO_C" >&6
4268 if test "${ac_cv_type_int+set}" = set; then
4269   echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271   cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277 $ac_includes_default
4278 int
4279 main ()
4280 {
4281 if ((int *) 0)
4282   return 0;
4283 if (sizeof (int))
4284   return 0;
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4291   (eval $ac_compile) 2>conftest.er1
4292   ac_status=$?
4293   grep -v '^ *+' conftest.er1 >conftest.err
4294   rm -f conftest.er1
4295   cat conftest.err >&5
4296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297   (exit $ac_status); } &&
4298          { ac_try='test -z "$ac_c_werror_flag"
4299                          || test ! -s conftest.err'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   ac_cv_type_int=yes
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 ac_cv_type_int=no
4317 fi
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4321 echo "${ECHO_T}$ac_cv_type_int" >&6
4322
4323 echo "$as_me:$LINENO: checking size of int" >&5
4324 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4325 if test "${ac_cv_sizeof_int+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   if test "$ac_cv_type_int" = yes; then
4329   # The cast to unsigned long works around a bug in the HP C Compiler
4330   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4331   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4332   # This bug is HP SR number 8606223364.
4333   if test "$cross_compiling" = yes; then
4334   # Depending upon the size, compute the lo and hi bounds.
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 $ac_includes_default
4342 int
4343 main ()
4344 {
4345 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4346 test_array [0] = 0
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.$ac_objext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354   (eval $ac_compile) 2>conftest.er1
4355   ac_status=$?
4356   grep -v '^ *+' conftest.er1 >conftest.err
4357   rm -f conftest.er1
4358   cat conftest.err >&5
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -z "$ac_c_werror_flag"
4362                          || test ! -s conftest.err'
4363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364   (eval $ac_try) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest.$ac_objext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   ac_lo=0 ac_mid=0
4375   while :; do
4376     cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382 $ac_includes_default
4383 int
4384 main ()
4385 {
4386 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4387 test_array [0] = 0
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext
4394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4395   (eval $ac_compile) 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } &&
4402          { ac_try='test -z "$ac_c_werror_flag"
4403                          || test ! -s conftest.err'
4404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4405   (eval $ac_try) 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; } &&
4409          { ac_try='test -s conftest.$ac_objext'
4410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411   (eval $ac_try) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; }; then
4415   ac_hi=$ac_mid; break
4416 else
4417   echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4419
4420 ac_lo=`expr $ac_mid + 1`
4421                     if test $ac_lo -le $ac_mid; then
4422                       ac_lo= ac_hi=
4423                       break
4424                     fi
4425                     ac_mid=`expr 2 '*' $ac_mid + 1`
4426 fi
4427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428   done
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 cat >conftest.$ac_ext <<_ACEOF
4434 /* confdefs.h.  */
4435 _ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h.  */
4439 $ac_includes_default
4440 int
4441 main ()
4442 {
4443 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4444 test_array [0] = 0
4445
4446   ;
4447   return 0;
4448 }
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>conftest.er1
4453   ac_status=$?
4454   grep -v '^ *+' conftest.er1 >conftest.err
4455   rm -f conftest.er1
4456   cat conftest.err >&5
4457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458   (exit $ac_status); } &&
4459          { ac_try='test -z "$ac_c_werror_flag"
4460                          || test ! -s conftest.err'
4461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462   (eval $ac_try) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); }; } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_hi=-1 ac_mid=-1
4473   while :; do
4474     cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480 $ac_includes_default
4481 int
4482 main ()
4483 {
4484 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4485 test_array [0] = 0
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493   (eval $ac_compile) 2>conftest.er1
4494   ac_status=$?
4495   grep -v '^ *+' conftest.er1 >conftest.err
4496   rm -f conftest.er1
4497   cat conftest.err >&5
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); } &&
4500          { ac_try='test -z "$ac_c_werror_flag"
4501                          || test ! -s conftest.err'
4502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503   (eval $ac_try) 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); }; } &&
4507          { ac_try='test -s conftest.$ac_objext'
4508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509   (eval $ac_try) 2>&5
4510   ac_status=$?
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); }; }; then
4513   ac_lo=$ac_mid; break
4514 else
4515   echo "$as_me: failed program was:" >&5
4516 sed 's/^/| /' conftest.$ac_ext >&5
4517
4518 ac_hi=`expr '(' $ac_mid ')' - 1`
4519                        if test $ac_mid -le $ac_hi; then
4520                          ac_lo= ac_hi=
4521                          break
4522                        fi
4523                        ac_mid=`expr 2 '*' $ac_mid`
4524 fi
4525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4526   done
4527 else
4528   echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_lo= ac_hi=
4532 fi
4533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534 fi
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536 # Binary search between lo and hi bounds.
4537 while test "x$ac_lo" != "x$ac_hi"; do
4538   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4539   cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 $ac_includes_default
4546 int
4547 main ()
4548 {
4549 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4550 test_array [0] = 0
4551
4552   ;
4553   return 0;
4554 }
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558   (eval $ac_compile) 2>conftest.er1
4559   ac_status=$?
4560   grep -v '^ *+' conftest.er1 >conftest.err
4561   rm -f conftest.er1
4562   cat conftest.err >&5
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } &&
4565          { ac_try='test -z "$ac_c_werror_flag"
4566                          || test ! -s conftest.err'
4567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568   (eval $ac_try) 2>&5
4569   ac_status=$?
4570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571   (exit $ac_status); }; } &&
4572          { ac_try='test -s conftest.$ac_objext'
4573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574   (eval $ac_try) 2>&5
4575   ac_status=$?
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); }; }; then
4578   ac_hi=$ac_mid
4579 else
4580   echo "$as_me: failed program was:" >&5
4581 sed 's/^/| /' conftest.$ac_ext >&5
4582
4583 ac_lo=`expr '(' $ac_mid ')' + 1`
4584 fi
4585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586 done
4587 case $ac_lo in
4588 ?*) ac_cv_sizeof_int=$ac_lo;;
4589 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4590 See \`config.log' for more details." >&5
4591 echo "$as_me: error: cannot compute sizeof (int), 77
4592 See \`config.log' for more details." >&2;}
4593    { (exit 1); exit 1; }; } ;;
4594 esac
4595 else
4596   if test "$cross_compiling" = yes; then
4597   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4598 See \`config.log' for more details." >&5
4599 echo "$as_me: error: cannot run test program while cross compiling
4600 See \`config.log' for more details." >&2;}
4601    { (exit 1); exit 1; }; }
4602 else
4603   cat >conftest.$ac_ext <<_ACEOF
4604 /* confdefs.h.  */
4605 _ACEOF
4606 cat confdefs.h >>conftest.$ac_ext
4607 cat >>conftest.$ac_ext <<_ACEOF
4608 /* end confdefs.h.  */
4609 $ac_includes_default
4610 long longval () { return (long) (sizeof (int)); }
4611 unsigned long ulongval () { return (long) (sizeof (int)); }
4612 #include <stdio.h>
4613 #include <stdlib.h>
4614 int
4615 main ()
4616 {
4617
4618   FILE *f = fopen ("conftest.val", "w");
4619   if (! f)
4620     exit (1);
4621   if (((long) (sizeof (int))) < 0)
4622     {
4623       long i = longval ();
4624       if (i != ((long) (sizeof (int))))
4625         exit (1);
4626       fprintf (f, "%ld\n", i);
4627     }
4628   else
4629     {
4630       unsigned long i = ulongval ();
4631       if (i != ((long) (sizeof (int))))
4632         exit (1);
4633       fprintf (f, "%lu\n", i);
4634     }
4635   exit (ferror (f) || fclose (f) != 0);
4636
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 rm -f conftest$ac_exeext
4642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4643   (eval $ac_link) 2>&5
4644   ac_status=$?
4645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648   (eval $ac_try) 2>&5
4649   ac_status=$?
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); }; }; then
4652   ac_cv_sizeof_int=`cat conftest.val`
4653 else
4654   echo "$as_me: program exited with status $ac_status" >&5
4655 echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ( exit $ac_status )
4659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4660 See \`config.log' for more details." >&5
4661 echo "$as_me: error: cannot compute sizeof (int), 77
4662 See \`config.log' for more details." >&2;}
4663    { (exit 1); exit 1; }; }
4664 fi
4665 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 fi
4668 rm -f conftest.val
4669 else
4670   ac_cv_sizeof_int=0
4671 fi
4672 fi
4673 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4674 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4675 cat >>confdefs.h <<_ACEOF
4676 #define SIZEOF_INT $ac_cv_sizeof_int
4677 _ACEOF
4678
4679
4680 echo "$as_me:$LINENO: checking for long" >&5
4681 echo $ECHO_N "checking for long... $ECHO_C" >&6
4682 if test "${ac_cv_type_long+set}" = set; then
4683   echo $ECHO_N "(cached) $ECHO_C" >&6
4684 else
4685   cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691 $ac_includes_default
4692 int
4693 main ()
4694 {
4695 if ((long *) 0)
4696   return 0;
4697 if (sizeof (long))
4698   return 0;
4699   ;
4700   return 0;
4701 }
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4705   (eval $ac_compile) 2>conftest.er1
4706   ac_status=$?
4707   grep -v '^ *+' conftest.er1 >conftest.err
4708   rm -f conftest.er1
4709   cat conftest.err >&5
4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711   (exit $ac_status); } &&
4712          { ac_try='test -z "$ac_c_werror_flag"
4713                          || test ! -s conftest.err'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; } &&
4719          { ac_try='test -s conftest.$ac_objext'
4720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721   (eval $ac_try) 2>&5
4722   ac_status=$?
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); }; }; then
4725   ac_cv_type_long=yes
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 ac_cv_type_long=no
4731 fi
4732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4735 echo "${ECHO_T}$ac_cv_type_long" >&6
4736
4737 echo "$as_me:$LINENO: checking size of long" >&5
4738 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4739 if test "${ac_cv_sizeof_long+set}" = set; then
4740   echo $ECHO_N "(cached) $ECHO_C" >&6
4741 else
4742   if test "$ac_cv_type_long" = yes; then
4743   # The cast to unsigned long works around a bug in the HP C Compiler
4744   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4745   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4746   # This bug is HP SR number 8606223364.
4747   if test "$cross_compiling" = yes; then
4748   # Depending upon the size, compute the lo and hi bounds.
4749 cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755 $ac_includes_default
4756 int
4757 main ()
4758 {
4759 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4760 test_array [0] = 0
4761
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768   (eval $ac_compile) 2>conftest.er1
4769   ac_status=$?
4770   grep -v '^ *+' conftest.er1 >conftest.err
4771   rm -f conftest.er1
4772   cat conftest.err >&5
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); } &&
4775          { ac_try='test -z "$ac_c_werror_flag"
4776                          || test ! -s conftest.err'
4777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778   (eval $ac_try) 2>&5
4779   ac_status=$?
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); }; } &&
4782          { ac_try='test -s conftest.$ac_objext'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   ac_lo=0 ac_mid=0
4789   while :; do
4790     cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h.  */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h.  */
4796 $ac_includes_default
4797 int
4798 main ()
4799 {
4800 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4801 test_array [0] = 0
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809   (eval $ac_compile) 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -z "$ac_c_werror_flag"
4817                          || test ! -s conftest.err'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; } &&
4823          { ac_try='test -s conftest.$ac_objext'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   ac_hi=$ac_mid; break
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_lo=`expr $ac_mid + 1`
4835                     if test $ac_lo -le $ac_mid; then
4836                       ac_lo= ac_hi=
4837                       break
4838                     fi
4839                     ac_mid=`expr 2 '*' $ac_mid + 1`
4840 fi
4841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842   done
4843 else
4844   echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h.  */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h.  */
4853 $ac_includes_default
4854 int
4855 main ()
4856 {
4857 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4858 test_array [0] = 0
4859
4860   ;
4861   return 0;
4862 }
4863 _ACEOF
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866   (eval $ac_compile) 2>conftest.er1
4867   ac_status=$?
4868   grep -v '^ *+' conftest.er1 >conftest.err
4869   rm -f conftest.er1
4870   cat conftest.err >&5
4871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872   (exit $ac_status); } &&
4873          { ac_try='test -z "$ac_c_werror_flag"
4874                          || test ! -s conftest.err'
4875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876   (eval $ac_try) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; } &&
4880          { ac_try='test -s conftest.$ac_objext'
4881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882   (eval $ac_try) 2>&5
4883   ac_status=$?
4884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); }; }; then
4886   ac_hi=-1 ac_mid=-1
4887   while :; do
4888     cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h.  */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h.  */
4894 $ac_includes_default
4895 int
4896 main ()
4897 {
4898 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4899 test_array [0] = 0
4900
4901   ;
4902   return 0;
4903 }
4904 _ACEOF
4905 rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907   (eval $ac_compile) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -z "$ac_c_werror_flag"
4915                          || test ! -s conftest.err'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_lo=$ac_mid; break
4928 else
4929   echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ac_hi=`expr '(' $ac_mid ')' - 1`
4933                        if test $ac_mid -le $ac_hi; then
4934                          ac_lo= ac_hi=
4935                          break
4936                        fi
4937                        ac_mid=`expr 2 '*' $ac_mid`
4938 fi
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4940   done
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_lo= ac_hi=
4946 fi
4947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4950 # Binary search between lo and hi bounds.
4951 while test "x$ac_lo" != "x$ac_hi"; do
4952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4953   cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h.  */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h.  */
4959 $ac_includes_default
4960 int
4961 main ()
4962 {
4963 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4964 test_array [0] = 0
4965
4966   ;
4967   return 0;
4968 }
4969 _ACEOF
4970 rm -f conftest.$ac_objext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4972   (eval $ac_compile) 2>conftest.er1
4973   ac_status=$?
4974   grep -v '^ *+' conftest.er1 >conftest.err
4975   rm -f conftest.er1
4976   cat conftest.err >&5
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); } &&
4979          { ac_try='test -z "$ac_c_werror_flag"
4980                          || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest.$ac_objext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_hi=$ac_mid
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 ac_lo=`expr '(' $ac_mid ')' + 1`
4998 fi
4999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000 done
5001 case $ac_lo in
5002 ?*) ac_cv_sizeof_long=$ac_lo;;
5003 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: cannot compute sizeof (long), 77
5006 See \`config.log' for more details." >&2;}
5007    { (exit 1); exit 1; }; } ;;
5008 esac
5009 else
5010   if test "$cross_compiling" = yes; then
5011   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5012 See \`config.log' for more details." >&5
5013 echo "$as_me: error: cannot run test program while cross compiling
5014 See \`config.log' for more details." >&2;}
5015    { (exit 1); exit 1; }; }
5016 else
5017   cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h.  */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h.  */
5023 $ac_includes_default
5024 long longval () { return (long) (sizeof (long)); }
5025 unsigned long ulongval () { return (long) (sizeof (long)); }
5026 #include <stdio.h>
5027 #include <stdlib.h>
5028 int
5029 main ()
5030 {
5031
5032   FILE *f = fopen ("conftest.val", "w");
5033   if (! f)
5034     exit (1);
5035   if (((long) (sizeof (long))) < 0)
5036     {
5037       long i = longval ();
5038       if (i != ((long) (sizeof (long))))
5039         exit (1);
5040       fprintf (f, "%ld\n", i);
5041     }
5042   else
5043     {
5044       unsigned long i = ulongval ();
5045       if (i != ((long) (sizeof (long))))
5046         exit (1);
5047       fprintf (f, "%lu\n", i);
5048     }
5049   exit (ferror (f) || fclose (f) != 0);
5050
5051   ;
5052   return 0;
5053 }
5054 _ACEOF
5055 rm -f conftest$ac_exeext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5057   (eval $ac_link) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062   (eval $ac_try) 2>&5
5063   ac_status=$?
5064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065   (exit $ac_status); }; }; then
5066   ac_cv_sizeof_long=`cat conftest.val`
5067 else
5068   echo "$as_me: program exited with status $ac_status" >&5
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ( exit $ac_status )
5073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5074 See \`config.log' for more details." >&5
5075 echo "$as_me: error: cannot compute sizeof (long), 77
5076 See \`config.log' for more details." >&2;}
5077    { (exit 1); exit 1; }; }
5078 fi
5079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5080 fi
5081 fi
5082 rm -f conftest.val
5083 else
5084   ac_cv_sizeof_long=0
5085 fi
5086 fi
5087 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5088 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5089 cat >>confdefs.h <<_ACEOF
5090 #define SIZEOF_LONG $ac_cv_sizeof_long
5091 _ACEOF
5092
5093
5094 echo "$as_me:$LINENO: checking for long long" >&5
5095 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5096 if test "${ac_cv_type_long_long+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h.  */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h.  */
5105 $ac_includes_default
5106 int
5107 main ()
5108 {
5109 if ((long long *) 0)
5110   return 0;
5111 if (sizeof (long long))
5112   return 0;
5113   ;
5114   return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119   (eval $ac_compile) 2>conftest.er1
5120   ac_status=$?
5121   grep -v '^ *+' conftest.er1 >conftest.err
5122   rm -f conftest.er1
5123   cat conftest.err >&5
5124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125   (exit $ac_status); } &&
5126          { ac_try='test -z "$ac_c_werror_flag"
5127                          || test ! -s conftest.err'
5128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129   (eval $ac_try) 2>&5
5130   ac_status=$?
5131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132   (exit $ac_status); }; } &&
5133          { ac_try='test -s conftest.$ac_objext'
5134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135   (eval $ac_try) 2>&5
5136   ac_status=$?
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); }; }; then
5139   ac_cv_type_long_long=yes
5140 else
5141   echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144 ac_cv_type_long_long=no
5145 fi
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5147 fi
5148 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5149 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5150 if test $ac_cv_type_long_long = yes; then
5151
5152 cat >>confdefs.h <<_ACEOF
5153 #define HAVE_LONG_LONG 1
5154 _ACEOF
5155
5156 echo "$as_me:$LINENO: checking for long long" >&5
5157 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5158 if test "${ac_cv_type_long_long+set}" = set; then
5159   echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161   cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 $ac_includes_default
5168 int
5169 main ()
5170 {
5171 if ((long long *) 0)
5172   return 0;
5173 if (sizeof (long long))
5174   return 0;
5175   ;
5176   return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181   (eval $ac_compile) 2>conftest.er1
5182   ac_status=$?
5183   grep -v '^ *+' conftest.er1 >conftest.err
5184   rm -f conftest.er1
5185   cat conftest.err >&5
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } &&
5188          { ac_try='test -z "$ac_c_werror_flag"
5189                          || test ! -s conftest.err'
5190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191   (eval $ac_try) 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); }; } &&
5195          { ac_try='test -s conftest.$ac_objext'
5196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197   (eval $ac_try) 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; }; then
5201   ac_cv_type_long_long=yes
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206 ac_cv_type_long_long=no
5207 fi
5208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5211 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5212
5213 echo "$as_me:$LINENO: checking size of long long" >&5
5214 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5215 if test "${ac_cv_sizeof_long_long+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   if test "$ac_cv_type_long_long" = yes; then
5219   # The cast to unsigned long works around a bug in the HP C Compiler
5220   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5221   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5222   # This bug is HP SR number 8606223364.
5223   if test "$cross_compiling" = yes; then
5224   # Depending upon the size, compute the lo and hi bounds.
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h.  */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h.  */
5231 $ac_includes_default
5232 int
5233 main ()
5234 {
5235 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5236 test_array [0] = 0
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5244   (eval $ac_compile) 2>conftest.er1
5245   ac_status=$?
5246   grep -v '^ *+' conftest.er1 >conftest.err
5247   rm -f conftest.er1
5248   cat conftest.err >&5
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); } &&
5251          { ac_try='test -z "$ac_c_werror_flag"
5252                          || test ! -s conftest.err'
5253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254   (eval $ac_try) 2>&5
5255   ac_status=$?
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); }; } &&
5258          { ac_try='test -s conftest.$ac_objext'
5259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260   (eval $ac_try) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); }; }; then
5264   ac_lo=0 ac_mid=0
5265   while :; do
5266     cat >conftest.$ac_ext <<_ACEOF
5267 /* confdefs.h.  */
5268 _ACEOF
5269 cat confdefs.h >>conftest.$ac_ext
5270 cat >>conftest.$ac_ext <<_ACEOF
5271 /* end confdefs.h.  */
5272 $ac_includes_default
5273 int
5274 main ()
5275 {
5276 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5277 test_array [0] = 0
5278
5279   ;
5280   return 0;
5281 }
5282 _ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285   (eval $ac_compile) 2>conftest.er1
5286   ac_status=$?
5287   grep -v '^ *+' conftest.er1 >conftest.err
5288   rm -f conftest.er1
5289   cat conftest.err >&5
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } &&
5292          { ac_try='test -z "$ac_c_werror_flag"
5293                          || test ! -s conftest.err'
5294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5295   (eval $ac_try) 2>&5
5296   ac_status=$?
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); }; } &&
5299          { ac_try='test -s conftest.$ac_objext'
5300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5301   (eval $ac_try) 2>&5
5302   ac_status=$?
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); }; }; then
5305   ac_hi=$ac_mid; break
5306 else
5307   echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5309
5310 ac_lo=`expr $ac_mid + 1`
5311                     if test $ac_lo -le $ac_mid; then
5312                       ac_lo= ac_hi=
5313                       break
5314                     fi
5315                     ac_mid=`expr 2 '*' $ac_mid + 1`
5316 fi
5317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5318   done
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 $ac_includes_default
5330 int
5331 main ()
5332 {
5333 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5334 test_array [0] = 0
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342   (eval $ac_compile) 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } &&
5349          { ac_try='test -z "$ac_c_werror_flag"
5350                          || test ! -s conftest.err'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; } &&
5356          { ac_try='test -s conftest.$ac_objext'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   ac_hi=-1 ac_mid=-1
5363   while :; do
5364     cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 $ac_includes_default
5371 int
5372 main ()
5373 {
5374 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5375 test_array [0] = 0
5376
5377   ;
5378   return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383   (eval $ac_compile) 2>conftest.er1
5384   ac_status=$?
5385   grep -v '^ *+' conftest.er1 >conftest.err
5386   rm -f conftest.er1
5387   cat conftest.err >&5
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); } &&
5390          { ac_try='test -z "$ac_c_werror_flag"
5391                          || test ! -s conftest.err'
5392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393   (eval $ac_try) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); }; } &&
5397          { ac_try='test -s conftest.$ac_objext'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_lo=$ac_mid; break
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_hi=`expr '(' $ac_mid ')' - 1`
5409                        if test $ac_mid -le $ac_hi; then
5410                          ac_lo= ac_hi=
5411                          break
5412                        fi
5413                        ac_mid=`expr 2 '*' $ac_mid`
5414 fi
5415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5416   done
5417 else
5418   echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 ac_lo= ac_hi=
5422 fi
5423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5426 # Binary search between lo and hi bounds.
5427 while test "x$ac_lo" != "x$ac_hi"; do
5428   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5429   cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h.  */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h.  */
5435 $ac_includes_default
5436 int
5437 main ()
5438 {
5439 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5440 test_array [0] = 0
5441
5442   ;
5443   return 0;
5444 }
5445 _ACEOF
5446 rm -f conftest.$ac_objext
5447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5448   (eval $ac_compile) 2>conftest.er1
5449   ac_status=$?
5450   grep -v '^ *+' conftest.er1 >conftest.err
5451   rm -f conftest.er1
5452   cat conftest.err >&5
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); } &&
5455          { ac_try='test -z "$ac_c_werror_flag"
5456                          || test ! -s conftest.err'
5457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458   (eval $ac_try) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); }; } &&
5462          { ac_try='test -s conftest.$ac_objext'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   ac_hi=$ac_mid
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_lo=`expr '(' $ac_mid ')' + 1`
5474 fi
5475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5476 done
5477 case $ac_lo in
5478 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5479 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5480 See \`config.log' for more details." >&5
5481 echo "$as_me: error: cannot compute sizeof (long long), 77
5482 See \`config.log' for more details." >&2;}
5483    { (exit 1); exit 1; }; } ;;
5484 esac
5485 else
5486   if test "$cross_compiling" = yes; then
5487   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5488 See \`config.log' for more details." >&5
5489 echo "$as_me: error: cannot run test program while cross compiling
5490 See \`config.log' for more details." >&2;}
5491    { (exit 1); exit 1; }; }
5492 else
5493   cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h.  */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h.  */
5499 $ac_includes_default
5500 long longval () { return (long) (sizeof (long long)); }
5501 unsigned long ulongval () { return (long) (sizeof (long long)); }
5502 #include <stdio.h>
5503 #include <stdlib.h>
5504 int
5505 main ()
5506 {
5507
5508   FILE *f = fopen ("conftest.val", "w");
5509   if (! f)
5510     exit (1);
5511   if (((long) (sizeof (long long))) < 0)
5512     {
5513       long i = longval ();
5514       if (i != ((long) (sizeof (long long))))
5515         exit (1);
5516       fprintf (f, "%ld\n", i);
5517     }
5518   else
5519     {
5520       unsigned long i = ulongval ();
5521       if (i != ((long) (sizeof (long long))))
5522         exit (1);
5523       fprintf (f, "%lu\n", i);
5524     }
5525   exit (ferror (f) || fclose (f) != 0);
5526
5527   ;
5528   return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest$ac_exeext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533   (eval $ac_link) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; }; then
5542   ac_cv_sizeof_long_long=`cat conftest.val`
5543 else
5544   echo "$as_me: program exited with status $ac_status" >&5
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ( exit $ac_status )
5549 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5550 See \`config.log' for more details." >&5
5551 echo "$as_me: error: cannot compute sizeof (long long), 77
5552 See \`config.log' for more details." >&2;}
5553    { (exit 1); exit 1; }; }
5554 fi
5555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 fi
5558 rm -f conftest.val
5559 else
5560   ac_cv_sizeof_long_long=0
5561 fi
5562 fi
5563 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5564 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5565 cat >>confdefs.h <<_ACEOF
5566 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5567 _ACEOF
5568
5569
5570 fi
5571
5572 echo "$as_me:$LINENO: checking for __int64" >&5
5573 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5574 if test "${ac_cv_type___int64+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h.  */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h.  */
5583 $ac_includes_default
5584 int
5585 main ()
5586 {
5587 if ((__int64 *) 0)
5588   return 0;
5589 if (sizeof (__int64))
5590   return 0;
5591   ;
5592   return 0;
5593 }
5594 _ACEOF
5595 rm -f conftest.$ac_objext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597   (eval $ac_compile) 2>conftest.er1
5598   ac_status=$?
5599   grep -v '^ *+' conftest.er1 >conftest.err
5600   rm -f conftest.er1
5601   cat conftest.err >&5
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } &&
5604          { ac_try='test -z "$ac_c_werror_flag"
5605                          || test ! -s conftest.err'
5606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607   (eval $ac_try) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); }; } &&
5611          { ac_try='test -s conftest.$ac_objext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_cv_type___int64=yes
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_cv_type___int64=no
5623 fi
5624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5625 fi
5626 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5627 echo "${ECHO_T}$ac_cv_type___int64" >&6
5628 if test $ac_cv_type___int64 = yes; then
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define HAVE___INT64 1
5632 _ACEOF
5633
5634 echo "$as_me:$LINENO: checking for __int64" >&5
5635 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5636 if test "${ac_cv_type___int64+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h.  */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h.  */
5645 $ac_includes_default
5646 int
5647 main ()
5648 {
5649 if ((__int64 *) 0)
5650   return 0;
5651 if (sizeof (__int64))
5652   return 0;
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659   (eval $ac_compile) 2>conftest.er1
5660   ac_status=$?
5661   grep -v '^ *+' conftest.er1 >conftest.err
5662   rm -f conftest.er1
5663   cat conftest.err >&5
5664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665   (exit $ac_status); } &&
5666          { ac_try='test -z "$ac_c_werror_flag"
5667                          || test ! -s conftest.err'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; } &&
5673          { ac_try='test -s conftest.$ac_objext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_cv_type___int64=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_cv_type___int64=no
5685 fi
5686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5687 fi
5688 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5689 echo "${ECHO_T}$ac_cv_type___int64" >&6
5690
5691 echo "$as_me:$LINENO: checking size of __int64" >&5
5692 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5693 if test "${ac_cv_sizeof___int64+set}" = set; then
5694   echo $ECHO_N "(cached) $ECHO_C" >&6
5695 else
5696   if test "$ac_cv_type___int64" = yes; then
5697   # The cast to unsigned long works around a bug in the HP C Compiler
5698   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5699   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5700   # This bug is HP SR number 8606223364.
5701   if test "$cross_compiling" = yes; then
5702   # Depending upon the size, compute the lo and hi bounds.
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h.  */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h.  */
5709 $ac_includes_default
5710 int
5711 main ()
5712 {
5713 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5714 test_array [0] = 0
5715
5716   ;
5717   return 0;
5718 }
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5722   (eval $ac_compile) 2>conftest.er1
5723   ac_status=$?
5724   grep -v '^ *+' conftest.er1 >conftest.err
5725   rm -f conftest.er1
5726   cat conftest.err >&5
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); } &&
5729          { ac_try='test -z "$ac_c_werror_flag"
5730                          || test ! -s conftest.err'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; } &&
5736          { ac_try='test -s conftest.$ac_objext'
5737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738   (eval $ac_try) 2>&5
5739   ac_status=$?
5740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741   (exit $ac_status); }; }; then
5742   ac_lo=0 ac_mid=0
5743   while :; do
5744     cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5750 $ac_includes_default
5751 int
5752 main ()
5753 {
5754 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5755 test_array [0] = 0
5756
5757   ;
5758   return 0;
5759 }
5760 _ACEOF
5761 rm -f conftest.$ac_objext
5762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5763   (eval $ac_compile) 2>conftest.er1
5764   ac_status=$?
5765   grep -v '^ *+' conftest.er1 >conftest.err
5766   rm -f conftest.er1
5767   cat conftest.err >&5
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); } &&
5770          { ac_try='test -z "$ac_c_werror_flag"
5771                          || test ! -s conftest.err'
5772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773   (eval $ac_try) 2>&5
5774   ac_status=$?
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); }; } &&
5777          { ac_try='test -s conftest.$ac_objext'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; }; then
5783   ac_hi=$ac_mid; break
5784 else
5785   echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788 ac_lo=`expr $ac_mid + 1`
5789                     if test $ac_lo -le $ac_mid; then
5790                       ac_lo= ac_hi=
5791                       break
5792                     fi
5793                     ac_mid=`expr 2 '*' $ac_mid + 1`
5794 fi
5795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796   done
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 cat >conftest.$ac_ext <<_ACEOF
5802 /* confdefs.h.  */
5803 _ACEOF
5804 cat confdefs.h >>conftest.$ac_ext
5805 cat >>conftest.$ac_ext <<_ACEOF
5806 /* end confdefs.h.  */
5807 $ac_includes_default
5808 int
5809 main ()
5810 {
5811 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5812 test_array [0] = 0
5813
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820   (eval $ac_compile) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag"
5828                          || test ! -s conftest.err'
5829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830   (eval $ac_try) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; } &&
5834          { ac_try='test -s conftest.$ac_objext'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   ac_hi=-1 ac_mid=-1
5841   while :; do
5842     cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 $ac_includes_default
5849 int
5850 main ()
5851 {
5852 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5853 test_array [0] = 0
5854
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_c_werror_flag"
5869                          || test ! -s conftest.err'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest.$ac_objext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_lo=$ac_mid; break
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_hi=`expr '(' $ac_mid ')' - 1`
5887                        if test $ac_mid -le $ac_hi; then
5888                          ac_lo= ac_hi=
5889                          break
5890                        fi
5891                        ac_mid=`expr 2 '*' $ac_mid`
5892 fi
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5894   done
5895 else
5896   echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_lo= ac_hi=
5900 fi
5901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5902 fi
5903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5904 # Binary search between lo and hi bounds.
5905 while test "x$ac_lo" != "x$ac_hi"; do
5906   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5907   cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h.  */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h.  */
5913 $ac_includes_default
5914 int
5915 main ()
5916 {
5917 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5918 test_array [0] = 0
5919
5920   ;
5921   return 0;
5922 }
5923 _ACEOF
5924 rm -f conftest.$ac_objext
5925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5926   (eval $ac_compile) 2>conftest.er1
5927   ac_status=$?
5928   grep -v '^ *+' conftest.er1 >conftest.err
5929   rm -f conftest.er1
5930   cat conftest.err >&5
5931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932   (exit $ac_status); } &&
5933          { ac_try='test -z "$ac_c_werror_flag"
5934                          || test ! -s conftest.err'
5935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936   (eval $ac_try) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; } &&
5940          { ac_try='test -s conftest.$ac_objext'
5941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942   (eval $ac_try) 2>&5
5943   ac_status=$?
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); }; }; then
5946   ac_hi=$ac_mid
5947 else
5948   echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5950
5951 ac_lo=`expr '(' $ac_mid ')' + 1`
5952 fi
5953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5954 done
5955 case $ac_lo in
5956 ?*) ac_cv_sizeof___int64=$ac_lo;;
5957 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5958 See \`config.log' for more details." >&5
5959 echo "$as_me: error: cannot compute sizeof (__int64), 77
5960 See \`config.log' for more details." >&2;}
5961    { (exit 1); exit 1; }; } ;;
5962 esac
5963 else
5964   if test "$cross_compiling" = yes; then
5965   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5966 See \`config.log' for more details." >&5
5967 echo "$as_me: error: cannot run test program while cross compiling
5968 See \`config.log' for more details." >&2;}
5969    { (exit 1); exit 1; }; }
5970 else
5971   cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h.  */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h.  */
5977 $ac_includes_default
5978 long longval () { return (long) (sizeof (__int64)); }
5979 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5980 #include <stdio.h>
5981 #include <stdlib.h>
5982 int
5983 main ()
5984 {
5985
5986   FILE *f = fopen ("conftest.val", "w");
5987   if (! f)
5988     exit (1);
5989   if (((long) (sizeof (__int64))) < 0)
5990     {
5991       long i = longval ();
5992       if (i != ((long) (sizeof (__int64))))
5993         exit (1);
5994       fprintf (f, "%ld\n", i);
5995     }
5996   else
5997     {
5998       unsigned long i = ulongval ();
5999       if (i != ((long) (sizeof (__int64))))
6000         exit (1);
6001       fprintf (f, "%lu\n", i);
6002     }
6003   exit (ferror (f) || fclose (f) != 0);
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest$ac_exeext
6010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6011   (eval $ac_link) 2>&5
6012   ac_status=$?
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; }; then
6020   ac_cv_sizeof___int64=`cat conftest.val`
6021 else
6022   echo "$as_me: program exited with status $ac_status" >&5
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026 ( exit $ac_status )
6027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6028 See \`config.log' for more details." >&5
6029 echo "$as_me: error: cannot compute sizeof (__int64), 77
6030 See \`config.log' for more details." >&2;}
6031    { (exit 1); exit 1; }; }
6032 fi
6033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 fi
6036 rm -f conftest.val
6037 else
6038   ac_cv_sizeof___int64=0
6039 fi
6040 fi
6041 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6042 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6043 cat >>confdefs.h <<_ACEOF
6044 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6045 _ACEOF
6046
6047
6048 fi
6049
6050
6051 # ---------------------
6052 # Warnings and checking
6053 # ---------------------
6054
6055 # Check $CC warning features (if it's GCC).
6056 # We want to use -pedantic, but we don't want warnings about
6057 # * 'long long'
6058 # * variadic macros
6059 # So, we only use -pedantic if we can disable those warnings.
6060
6061 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6062 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6063 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   save_CFLAGS="$CFLAGS"
6067   CFLAGS="-Wno-long-long"
6068   cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074
6075 _ACEOF
6076 rm -f conftest.$ac_objext
6077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } &&
6085          { ac_try='test -z "$ac_c_werror_flag"
6086                          || test ! -s conftest.err'
6087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088   (eval $ac_try) 2>&5
6089   ac_status=$?
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); }; } &&
6092          { ac_try='test -s conftest.$ac_objext'
6093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094   (eval $ac_try) 2>&5
6095   ac_status=$?
6096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097   (exit $ac_status); }; }; then
6098   ac_cv_prog_cc_w_no_long_long=yes
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_cv_prog_cc_w_no_long_long=no
6104 fi
6105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106   CFLAGS="$save_CFLAGS"
6107
6108 fi
6109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6110 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6111
6112 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6113 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6114 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6115   echo $ECHO_N "(cached) $ECHO_C" >&6
6116 else
6117   save_CFLAGS="$CFLAGS"
6118   CFLAGS="-Wno-variadic-macros"
6119   cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>conftest.er1
6130   ac_status=$?
6131   grep -v '^ *+' conftest.er1 >conftest.err
6132   rm -f conftest.er1
6133   cat conftest.err >&5
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); } &&
6136          { ac_try='test -z "$ac_c_werror_flag"
6137                          || test ! -s conftest.err'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; } &&
6143          { ac_try='test -s conftest.$ac_objext'
6144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145   (eval $ac_try) 2>&5
6146   ac_status=$?
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); }; }; then
6149   ac_cv_prog_cc_w_no_variadic_macros=yes
6150 else
6151   echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_prog_cc_w_no_variadic_macros=no
6155 fi
6156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6157   CFLAGS="$save_CFLAGS"
6158
6159 fi
6160 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6161 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6162
6163 strict1_warn=
6164 if test $ac_cv_prog_cc_w_no_long_long = yes \
6165    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6166   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6167 fi
6168
6169 # Add -Wold-style-definition if it's accepted
6170 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6171 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6172 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   save_CFLAGS="$CFLAGS"
6176   CFLAGS="-Wold-style-definition"
6177   cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6187   (eval $ac_compile) 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } &&
6194          { ac_try='test -z "$ac_c_werror_flag"
6195                          || test ! -s conftest.err'
6196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197   (eval $ac_try) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }; } &&
6201          { ac_try='test -s conftest.$ac_objext'
6202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203   (eval $ac_try) 2>&5
6204   ac_status=$?
6205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206   (exit $ac_status); }; }; then
6207   ac_cv_prog_cc_w_old_style_definition=yes
6208 else
6209   echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 ac_cv_prog_cc_w_old_style_definition=no
6213 fi
6214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215   CFLAGS="$save_CFLAGS"
6216
6217 fi
6218 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6219 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6220 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6221   strict1_warn="${strict1_warn} -Wold-style-definition"
6222 fi
6223
6224 # Add -Wmissing-format-attribute if it's accepted
6225 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6226 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6227 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   save_CFLAGS="$CFLAGS"
6231   CFLAGS="-Wmissing-format-attribute"
6232   cat >conftest.$ac_ext <<_ACEOF
6233 /* confdefs.h.  */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h.  */
6238
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242   (eval $ac_compile) 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } &&
6249          { ac_try='test -z "$ac_c_werror_flag"
6250                          || test ! -s conftest.err'
6251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; } &&
6256          { ac_try='test -s conftest.$ac_objext'
6257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258   (eval $ac_try) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; }; then
6262   ac_cv_prog_cc_w_missing_format_attribute=yes
6263 else
6264   echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6266
6267 ac_cv_prog_cc_w_missing_format_attribute=no
6268 fi
6269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6270   CFLAGS="$save_CFLAGS"
6271
6272 fi
6273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6274 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6275 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6276   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6277 fi
6278
6279 # Enable -Werror, period.
6280 # Check whether --enable-werror_always or --disable-werror_always was given.
6281 if test "${enable_werror_always+set}" = set; then
6282   enableval="$enable_werror_always"
6283
6284 else
6285   enable_werror_always=no
6286 fi;
6287 if test x${enable_werror_always} = xyes ; then
6288   strict1_warn="${strict1_warn} -Werror"
6289   WERROR=-Werror
6290 fi
6291
6292
6293
6294 # If the native compiler is GCC, we can enable warnings even in stage1.
6295 # That's useful for people building cross-compilers, or just running a
6296 # quick `make'.
6297 warn_cflags=
6298 if test "x$GCC" = "xyes"; then
6299   warn_cflags='$(GCC_WARN_CFLAGS)'
6300 fi
6301
6302
6303 # Enable -Werror in bootstrap stage2 and later.
6304 is_release=
6305 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6306   is_release=yes
6307 fi
6308 # Check whether --enable-werror or --disable-werror was given.
6309 if test "${enable_werror+set}" = set; then
6310   enableval="$enable_werror"
6311
6312 else
6313   if test x$is_release = x ; then
6314   # Default to "yes" on development branches.
6315   enable_werror=yes
6316 else
6317   # Default to "no" on release branches.
6318   enable_werror=no
6319 fi
6320 fi;
6321 if test x$enable_werror = xyes ; then
6322   WERROR=-Werror
6323 fi
6324
6325
6326 # Enable expensive internal checks
6327 # Check whether --enable-checking or --disable-checking was given.
6328 if test "${enable_checking+set}" = set; then
6329   enableval="$enable_checking"
6330   ac_checking_flags="${enableval}"
6331 else
6332
6333 # Determine the default checks.
6334 if test x$is_release = x ; then
6335   ac_checking_flags=yes
6336 else
6337   ac_checking_flags=release
6338 fi
6339 fi;
6340 ac_assert_checking=1
6341 ac_checking=
6342 ac_fold_checking=
6343 ac_gc_checking=
6344 ac_gc_always_collect=
6345 ac_rtl_checking=
6346 ac_rtlflag_checking=
6347 ac_runtime_checking=1
6348 ac_tree_checking=
6349 ac_valgrind_checking=
6350 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6351 for check in $ac_checking_flags
6352 do
6353         case $check in
6354         # these set all the flags to specific states
6355         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6356                         ac_fold_checking= ; ac_gc_checking=1 ;
6357                         ac_gc_always_collect= ; ac_rtl_checking= ;
6358                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6359                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6360         no|none)        ac_assert_checking= ; ac_checking= ;
6361                         ac_fold_checking= ; ac_gc_checking= ;
6362                         ac_gc_always_collect= ; ac_rtl_checking= ;
6363                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6364                         ac_tree_checking= ; ac_valgrind_checking= ;;
6365         all)            ac_assert_checking=1 ; ac_checking=1 ;
6366                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6367                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6368                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6369                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6370         release)        ac_assert_checking=1 ; ac_checking= ;
6371                         ac_fold_checking= ; ac_gc_checking= ;
6372                         ac_gc_always_collect= ; ac_rtl_checking= ;
6373                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6374                         ac_tree_checking= ; ac_valgrind_checking= ;;
6375         # these enable particular checks
6376         assert)         ac_assert_checking=1 ;;
6377         fold)           ac_fold_checking=1 ;;
6378         gc)             ac_gc_checking=1 ;;
6379         gcac)           ac_gc_always_collect=1 ;;
6380         misc)           ac_checking=1 ;;
6381         rtl)            ac_rtl_checking=1 ;;
6382         rtlflag)        ac_rtlflag_checking=1 ;;
6383         runtime)        ac_runtime_checking=1 ;;
6384         tree)           ac_tree_checking=1 ;;
6385         valgrind)       ac_valgrind_checking=1 ;;
6386         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6387 echo "$as_me: error: unknown check category $check" >&2;}
6388    { (exit 1); exit 1; }; } ;;
6389         esac
6390 done
6391 IFS="$ac_save_IFS"
6392
6393 nocommon_flag=""
6394 if test x$ac_checking != x ; then
6395
6396 cat >>confdefs.h <<\_ACEOF
6397 #define ENABLE_CHECKING 1
6398 _ACEOF
6399
6400   nocommon_flag=-fno-common
6401 fi
6402
6403 if test x$ac_assert_checking != x ; then
6404
6405 cat >>confdefs.h <<\_ACEOF
6406 #define ENABLE_ASSERT_CHECKING 1
6407 _ACEOF
6408
6409 fi
6410
6411 if test x$ac_runtime_checking != x ; then
6412
6413 cat >>confdefs.h <<\_ACEOF
6414 #define ENABLE_RUNTIME_CHECKING 1
6415 _ACEOF
6416
6417 fi
6418 if test x$ac_tree_checking != x ; then
6419
6420 cat >>confdefs.h <<\_ACEOF
6421 #define ENABLE_TREE_CHECKING 1
6422 _ACEOF
6423
6424   TREEBROWSER=tree-browser.o
6425 fi
6426
6427 if test x$ac_rtl_checking != x ; then
6428
6429 cat >>confdefs.h <<\_ACEOF
6430 #define ENABLE_RTL_CHECKING 1
6431 _ACEOF
6432
6433 fi
6434 if test x$ac_rtlflag_checking != x ; then
6435
6436 cat >>confdefs.h <<\_ACEOF
6437 #define ENABLE_RTL_FLAG_CHECKING 1
6438 _ACEOF
6439
6440 fi
6441 if test x$ac_gc_checking != x ; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define ENABLE_GC_CHECKING 1
6445 _ACEOF
6446
6447 fi
6448 if test x$ac_gc_always_collect != x ; then
6449
6450 cat >>confdefs.h <<\_ACEOF
6451 #define ENABLE_GC_ALWAYS_COLLECT 1
6452 _ACEOF
6453
6454 fi
6455 if test x$ac_fold_checking != x ; then
6456
6457 cat >>confdefs.h <<\_ACEOF
6458 #define ENABLE_FOLD_CHECKING 1
6459 _ACEOF
6460
6461 fi
6462 valgrind_path_defines=
6463 valgrind_command=
6464
6465 if test "${ac_cv_header_valgrind_h+set}" = set; then
6466   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6467 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6468 if test "${ac_cv_header_valgrind_h+set}" = set; then
6469   echo $ECHO_N "(cached) $ECHO_C" >&6
6470 fi
6471 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6472 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6473 else
6474   # Is the header compilable?
6475 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6476 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483 $ac_includes_default
6484 #include <valgrind.h>
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488   (eval $ac_compile) 2>conftest.er1
6489   ac_status=$?
6490   grep -v '^ *+' conftest.er1 >conftest.err
6491   rm -f conftest.er1
6492   cat conftest.err >&5
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -z "$ac_c_werror_flag"
6496                          || test ! -s conftest.err'
6497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498   (eval $ac_try) 2>&5
6499   ac_status=$?
6500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501   (exit $ac_status); }; } &&
6502          { ac_try='test -s conftest.$ac_objext'
6503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6504   (eval $ac_try) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; }; then
6508   ac_header_compiler=yes
6509 else
6510   echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6512
6513 ac_header_compiler=no
6514 fi
6515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6517 echo "${ECHO_T}$ac_header_compiler" >&6
6518
6519 # Is the header present?
6520 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6521 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528 #include <valgrind.h>
6529 _ACEOF
6530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6532   ac_status=$?
6533   grep -v '^ *+' conftest.er1 >conftest.err
6534   rm -f conftest.er1
6535   cat conftest.err >&5
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); } >/dev/null; then
6538   if test -s conftest.err; then
6539     ac_cpp_err=$ac_c_preproc_warn_flag
6540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6541   else
6542     ac_cpp_err=
6543   fi
6544 else
6545   ac_cpp_err=yes
6546 fi
6547 if test -z "$ac_cpp_err"; then
6548   ac_header_preproc=yes
6549 else
6550   echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6552
6553   ac_header_preproc=no
6554 fi
6555 rm -f conftest.err conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6557 echo "${ECHO_T}$ac_header_preproc" >&6
6558
6559 # So?  What about this header?
6560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6561   yes:no: )
6562     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6563 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6564     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6565 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6566     ac_header_preproc=yes
6567     ;;
6568   no:yes:* )
6569     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6570 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6571     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6572 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6573     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6574 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6575     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6576 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6577     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6578 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6579     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6580 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6581     (
6582       cat <<\_ASBOX
6583 ## ------------------------------------------ ##
6584 ## Report this to the AC_PACKAGE_NAME lists.  ##
6585 ## ------------------------------------------ ##
6586 _ASBOX
6587     ) |
6588       sed "s/^/$as_me: WARNING:     /" >&2
6589     ;;
6590 esac
6591 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6592 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6593 if test "${ac_cv_header_valgrind_h+set}" = set; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   ac_cv_header_valgrind_h=$ac_header_preproc
6597 fi
6598 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6599 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6600
6601 fi
6602 if test $ac_cv_header_valgrind_h = yes; then
6603   have_valgrind_h=yes
6604 else
6605   have_valgrind_h=no
6606 fi
6607
6608
6609
6610 if test x$ac_valgrind_checking != x ; then
6611   # It is certainly possible that there's valgrind but no valgrind.h.
6612   # GCC relies on making annotations so we must have both.
6613   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6614 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6615   cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h.  */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h.  */
6621 #include <valgrind/memcheck.h>
6622 #ifndef VALGRIND_DISCARD
6623 #error VALGRIND_DISCARD not defined
6624 #endif
6625 _ACEOF
6626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6628   ac_status=$?
6629   grep -v '^ *+' conftest.er1 >conftest.err
6630   rm -f conftest.er1
6631   cat conftest.err >&5
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); } >/dev/null; then
6634   if test -s conftest.err; then
6635     ac_cpp_err=$ac_c_preproc_warn_flag
6636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6637   else
6638     ac_cpp_err=
6639   fi
6640 else
6641   ac_cpp_err=yes
6642 fi
6643 if test -z "$ac_cpp_err"; then
6644   gcc_cv_header_valgrind_memcheck_h=yes
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649   gcc_cv_header_valgrind_memcheck_h=no
6650 fi
6651 rm -f conftest.err conftest.$ac_ext
6652   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6653 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6654   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6655 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6656   cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h.  */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h.  */
6662 #include <memcheck.h>
6663 #ifndef VALGRIND_DISCARD
6664 #error VALGRIND_DISCARD not defined
6665 #endif
6666 _ACEOF
6667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6668   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6669   ac_status=$?
6670   grep -v '^ *+' conftest.er1 >conftest.err
6671   rm -f conftest.er1
6672   cat conftest.err >&5
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } >/dev/null; then
6675   if test -s conftest.err; then
6676     ac_cpp_err=$ac_c_preproc_warn_flag
6677     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6678   else
6679     ac_cpp_err=
6680   fi
6681 else
6682   ac_cpp_err=yes
6683 fi
6684 if test -z "$ac_cpp_err"; then
6685   gcc_cv_header_memcheck_h=yes
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690   gcc_cv_header_memcheck_h=no
6691 fi
6692 rm -f conftest.err conftest.$ac_ext
6693   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6694 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6695
6696 # Prepare PATH_SEPARATOR.
6697 # The user is always right.
6698 if test "${PATH_SEPARATOR+set}" != set; then
6699   echo "#! /bin/sh" >conf$$.sh
6700   echo  "exit 0"   >>conf$$.sh
6701   chmod +x conf$$.sh
6702   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6703     PATH_SEPARATOR=';'
6704   else
6705     PATH_SEPARATOR=:
6706   fi
6707   rm -f conf$$.sh
6708 fi
6709
6710 # Find out how to test for executable files. Don't use a zero-byte file,
6711 # as systems may use methods other than mode bits to determine executability.
6712 cat >conf$$.file <<_ASEOF
6713 #! /bin/sh
6714 exit 0
6715 _ASEOF
6716 chmod +x conf$$.file
6717 if test -x conf$$.file >/dev/null 2>&1; then
6718   ac_executable_p="test -x"
6719 else
6720   ac_executable_p="test -f"
6721 fi
6722 rm -f conf$$.file
6723
6724 # Extract the first word of "valgrind", so it can be a program name with args.
6725 set dummy valgrind; ac_word=$2
6726 echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6728 if test "${ac_cv_path_valgrind_path+set}" = set; then
6729   echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731   case "$valgrind_path" in
6732   [\\/]* | ?:[\\/]*)
6733     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6734     ;;
6735   *)
6736     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6737     for ac_dir in $PATH; do
6738       IFS="$ac_save_IFS"
6739       test -z "$ac_dir" && ac_dir=.
6740       for ac_exec_ext in '' $ac_executable_extensions; do
6741         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6742           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6743             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6744             break 2
6745           fi
6746         fi
6747       done
6748     done
6749     IFS="$ac_save_IFS"
6750     ;;
6751 esac
6752 fi
6753 valgrind_path="$ac_cv_path_valgrind_path"
6754 if test -n "$valgrind_path"; then
6755   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6756 echo "${ECHO_T}$valgrind_path" >&6
6757 else
6758   echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760 fi
6761
6762   if test "x$valgrind_path" = "x" \
6763     || (test $have_valgrind_h = no \
6764         && test $gcc_cv_header_memcheck_h = no \
6765         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6766         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6767 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6768    { (exit 1); exit 1; }; }
6769   fi
6770   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6771   valgrind_command="$valgrind_path -q"
6772
6773 cat >>confdefs.h <<\_ACEOF
6774 #define ENABLE_VALGRIND_CHECKING 1
6775 _ACEOF
6776
6777   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6778
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_VALGRIND_MEMCHECK_H 1
6781 _ACEOF
6782
6783   fi
6784   if test $gcc_cv_header_memcheck_h = yes; then
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define HAVE_MEMCHECK_H 1
6788 _ACEOF
6789
6790   fi
6791 fi
6792
6793
6794
6795 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6796 if test "${enable_mapped_location+set}" = set; then
6797   enableval="$enable_mapped_location"
6798
6799 else
6800   enable_mapped_location=no
6801 fi;
6802
6803 if test "$enable_mapped_location" = yes ; then
6804
6805 cat >>confdefs.h <<\_ACEOF
6806 #define USE_MAPPED_LOCATION 1
6807 _ACEOF
6808
6809 fi
6810
6811 # Enable code coverage collection
6812 # Check whether --enable-coverage or --disable-coverage was given.
6813 if test "${enable_coverage+set}" = set; then
6814   enableval="$enable_coverage"
6815   case "${enableval}" in
6816   yes|noopt)
6817     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6818     ;;
6819   opt)
6820     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6821     ;;
6822   no)
6823     # a.k.a. --disable-coverage
6824     coverage_flags=""
6825     ;;
6826   *)
6827     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6828 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6829    { (exit 1); exit 1; }; }
6830     ;;
6831 esac
6832 else
6833   coverage_flags=""
6834 fi;
6835
6836
6837 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6838 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6839   enableval="$enable_gather_detailed_mem_stats"
6840
6841 else
6842   enable_gather_detailed_mem_stats=no
6843 fi;
6844 if test x$enable_gather_detailed_mem_stats = xyes ; then
6845
6846 cat >>confdefs.h <<\_ACEOF
6847 #define GATHER_STATISTICS 1
6848 _ACEOF
6849
6850 fi
6851
6852 # -------------------------------
6853 # Miscenalleous configure options
6854 # -------------------------------
6855
6856 # With stabs
6857
6858 # Check whether --with-stabs or --without-stabs was given.
6859 if test "${with_stabs+set}" = set; then
6860   withval="$with_stabs"
6861   stabs="$with_stabs"
6862 else
6863   stabs=no
6864 fi;
6865
6866 # Determine whether or not multilibs are enabled.
6867 # Check whether --enable-multilib or --disable-multilib was given.
6868 if test "${enable_multilib+set}" = set; then
6869   enableval="$enable_multilib"
6870
6871 else
6872   enable_multilib=yes
6873 fi;
6874
6875
6876 # Enable __cxa_atexit for C++.
6877 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6878 if test "${enable___cxa_atexit+set}" = set; then
6879   enableval="$enable___cxa_atexit"
6880
6881 fi;
6882
6883 # Enable threads
6884 # Pass with no value to take the default
6885 # Pass with a value to specify a thread package
6886 # Check whether --enable-threads or --disable-threads was given.
6887 if test "${enable_threads+set}" = set; then
6888   enableval="$enable_threads"
6889
6890 else
6891   enable_threads=''
6892 fi;
6893
6894 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6895 if test "${enable_objc_gc+set}" = set; then
6896   enableval="$enable_objc_gc"
6897   if test x$enable_objc_gc = xno; then
6898         objc_boehm_gc=''
6899 else
6900         objc_boehm_gc=1
6901 fi
6902 else
6903   objc_boehm_gc=''
6904 fi;
6905
6906
6907 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6908 if test "${with_dwarf2+set}" = set; then
6909   withval="$with_dwarf2"
6910   dwarf2="$with_dwarf2"
6911 else
6912   dwarf2=no
6913 fi;
6914
6915 # Check whether --enable-shared or --disable-shared was given.
6916 if test "${enable_shared+set}" = set; then
6917   enableval="$enable_shared"
6918
6919   case $enable_shared in
6920   yes | no) ;;
6921   *)
6922     enable_shared=no
6923     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6924     for pkg in $enableval; do
6925       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6926         enable_shared=yes
6927       fi
6928     done
6929     IFS="$ac_save_ifs"
6930     ;;
6931   esac
6932
6933 else
6934   enable_shared=yes
6935 fi;
6936
6937
6938
6939 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6940 if test "${with_build_sysroot+set}" = set; then
6941   withval="$with_build_sysroot"
6942
6943 fi;
6944
6945
6946 # Check whether --with-sysroot or --without-sysroot was given.
6947 if test "${with_sysroot+set}" = set; then
6948   withval="$with_sysroot"
6949
6950  case ${with_sysroot} in
6951  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6952  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6953  esac
6954
6955  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6956  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
6957
6958  if test "x$exec_prefix" = xNONE; then
6959   if test "x$prefix" = xNONE; then
6960    test_prefix=/usr/local
6961   else
6962    test_prefix=$prefix
6963   fi
6964  else
6965   test_prefix=$exec_prefix
6966  fi
6967  case ${TARGET_SYSTEM_ROOT} in
6968  "${test_prefix}"|"${test_prefix}/"*|\
6969  '${exec_prefix}'|'${exec_prefix}/'*)
6970    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6971    TARGET_SYSTEM_ROOT_DEFINE="$t"
6972    ;;
6973  esac
6974
6975 else
6976
6977  TARGET_SYSTEM_ROOT=
6978  TARGET_SYSTEM_ROOT_DEFINE=
6979  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6980
6981 fi;
6982
6983
6984
6985
6986 # Build with intermodule optimisations
6987 # Check whether --enable-intermodule or --disable-intermodule was given.
6988 if test "${enable_intermodule+set}" = set; then
6989   enableval="$enable_intermodule"
6990   case ${enable_intermodule} in
6991   yes) onestep="-onestep";;
6992   *) onestep="";;
6993 esac
6994 else
6995   onestep=""
6996 fi;
6997
6998
6999 # Sanity check enable_languages in case someone does not run the toplevel
7000 # configure # script.
7001 # Check whether --enable-languages or --disable-languages was given.
7002 if test "${enable_languages+set}" = set; then
7003   enableval="$enable_languages"
7004   case ,${enable_languages}, in
7005        ,,|,yes,)
7006                 # go safe -- we cannot be much sure without the toplevel
7007                 # configure's
7008                 # analysis of which target libs are present and usable
7009                 enable_languages=c
7010                 ;;
7011          *,all,*)
7012                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7013 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7014    { (exit 1); exit 1; }; }
7015                 ;;
7016         *,c,*)
7017                 ;;
7018         *)
7019                 enable_languages=c,${enable_languages}
7020                 ;;
7021 esac
7022 else
7023   enable_languages=c
7024 fi;
7025
7026 subdirs=
7027 for lang in ${srcdir}/*/config-lang.in
7028 do
7029         case $lang in
7030         # The odd quoting in the next line works around
7031         # an apparent bug in bash 1.12 on linux.
7032         ${srcdir}/[*]/config-lang.in) ;;
7033         *)
7034           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
7035           if test "x$lang_alias" = x
7036           then
7037                 echo "$lang doesn't set \$language." 1>&2
7038                 exit 1
7039           fi
7040           case ",$enable_languages," in
7041           *,$lang_alias,*)
7042             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7043           esac
7044           ;;
7045         esac
7046 done
7047
7048
7049 # -------------------------
7050 # Checks for other programs
7051 # -------------------------
7052
7053 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7054 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7055 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7056 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   cat >conftest.make <<\_ACEOF
7060 all:
7061         @echo 'ac_maketemp="$(MAKE)"'
7062 _ACEOF
7063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7064 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7065 if test -n "$ac_maketemp"; then
7066   eval ac_cv_prog_make_${ac_make}_set=yes
7067 else
7068   eval ac_cv_prog_make_${ac_make}_set=no
7069 fi
7070 rm -f conftest.make
7071 fi
7072 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7073   echo "$as_me:$LINENO: result: yes" >&5
7074 echo "${ECHO_T}yes" >&6
7075   SET_MAKE=
7076 else
7077   echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6
7079   SET_MAKE="MAKE=${MAKE-make}"
7080 fi
7081
7082
7083 # Find some useful tools
7084 for ac_prog in gawk mawk nawk awk
7085 do
7086   # Extract the first word of "$ac_prog", so it can be a program name with args.
7087 set dummy $ac_prog; ac_word=$2
7088 echo "$as_me:$LINENO: checking for $ac_word" >&5
7089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7090 if test "${ac_cv_prog_AWK+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   if test -n "$AWK"; then
7094   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099   IFS=$as_save_IFS
7100   test -z "$as_dir" && as_dir=.
7101   for ac_exec_ext in '' $ac_executable_extensions; do
7102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7103     ac_cv_prog_AWK="$ac_prog"
7104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7105     break 2
7106   fi
7107 done
7108 done
7109
7110 fi
7111 fi
7112 AWK=$ac_cv_prog_AWK
7113 if test -n "$AWK"; then
7114   echo "$as_me:$LINENO: result: $AWK" >&5
7115 echo "${ECHO_T}$AWK" >&6
7116 else
7117   echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6
7119 fi
7120
7121   test -n "$AWK" && break
7122 done
7123
7124 # We need awk to create options.c and options.h.
7125 # Bail out if it's missing.
7126 case ${AWK} in
7127   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7128 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7129    { (exit 1); exit 1; }; } ;;
7130 esac
7131
7132 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7133 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7134 if test "${gcc_cv_prog_LN_S+set}" = set; then
7135   echo $ECHO_N "(cached) $ECHO_C" >&6
7136 else
7137   rm -f conftestdata_t
7138 echo >conftestdata_f
7139 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7140 then
7141   gcc_cv_prog_LN_S="ln -s"
7142 else
7143   if ln conftestdata_f conftestdata_t 2>/dev/null
7144   then
7145     gcc_cv_prog_LN_S=ln
7146   else
7147     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7148     then
7149       gcc_cv_prog_LN_S="cp -p"
7150     else
7151       gcc_cv_prog_LN_S=cp
7152     fi
7153   fi
7154 fi
7155 rm -f conftestdata_f conftestdata_t
7156
7157 fi
7158 LN_S="$gcc_cv_prog_LN_S"
7159 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7160   echo "$as_me:$LINENO: result: yes" >&5
7161 echo "${ECHO_T}yes" >&6
7162 else
7163   if test "$gcc_cv_prog_LN_S" = "ln"; then
7164     echo "$as_me:$LINENO: result: no, using ln" >&5
7165 echo "${ECHO_T}no, using ln" >&6
7166   else
7167     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7168 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7169   fi
7170 fi
7171
7172 echo "$as_me:$LINENO: checking whether ln works" >&5
7173 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7174 if test "${acx_cv_prog_LN+set}" = set; then
7175   echo $ECHO_N "(cached) $ECHO_C" >&6
7176 else
7177   rm -f conftestdata_t
7178 echo >conftestdata_f
7179 if ln conftestdata_f conftestdata_t 2>/dev/null
7180 then
7181   acx_cv_prog_LN=ln
7182 else
7183   acx_cv_prog_LN=no
7184 fi
7185 rm -f conftestdata_f conftestdata_t
7186
7187 fi
7188 if test $acx_cv_prog_LN = no; then
7189   LN="$LN_S"
7190   echo "$as_me:$LINENO: result: no, using $LN" >&5
7191 echo "${ECHO_T}no, using $LN" >&6
7192 else
7193   LN="$acx_cv_prog_LN"
7194   echo "$as_me:$LINENO: result: yes" >&5
7195 echo "${ECHO_T}yes" >&6
7196 fi
7197
7198 if test -n "$ac_tool_prefix"; then
7199   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_prog_RANLIB+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   if test -n "$RANLIB"; then
7207   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222
7223 fi
7224 fi
7225 RANLIB=$ac_cv_prog_RANLIB
7226 if test -n "$RANLIB"; then
7227   echo "$as_me:$LINENO: result: $RANLIB" >&5
7228 echo "${ECHO_T}$RANLIB" >&6
7229 else
7230   echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7232 fi
7233
7234 fi
7235 if test -z "$ac_cv_prog_RANLIB"; then
7236   ac_ct_RANLIB=$RANLIB
7237   # Extract the first word of "ranlib", so it can be a program name with args.
7238 set dummy ranlib; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   if test -n "$ac_ct_RANLIB"; then
7245   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252   for ac_exec_ext in '' $ac_executable_extensions; do
7253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_ac_ct_RANLIB="ranlib"
7255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259 done
7260
7261   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7262 fi
7263 fi
7264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7265 if test -n "$ac_ct_RANLIB"; then
7266   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7267 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7268 else
7269   echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271 fi
7272
7273   RANLIB=$ac_ct_RANLIB
7274 else
7275   RANLIB="$ac_cv_prog_RANLIB"
7276 fi
7277
7278 case "${host}" in
7279 *-*-darwin*)
7280   # By default, the Darwin ranlib will not treat common symbols as
7281   # definitions when  building the archive table of contents.  Other
7282   # ranlibs do that; pass an option to the Darwin ranlib that makes
7283   # it behave similarly.
7284   ranlib_flags="-c"
7285   ;;
7286 *)
7287   ranlib_flags=""
7288 esac
7289
7290
7291 # Find a good install program.  We prefer a C program (faster),
7292 # so one script is as good as another.  But avoid the broken or
7293 # incompatible versions:
7294 # SysV /etc/install, /usr/sbin/install
7295 # SunOS /usr/etc/install
7296 # IRIX /sbin/install
7297 # AIX /bin/install
7298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7300 # ./install, which can be erroneously created by make from ./install.sh.
7301 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7302 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7303 if test -z "$INSTALL"; then
7304 if test "${ac_cv_path_install+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7308   for ac_dir in $PATH; do
7309     # Account for people who put trailing slashes in PATH elements.
7310     case "$ac_dir/" in
7311     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7312     *)
7313       # OSF1 and SCO ODT 3.0 have their own names for install.
7314       for ac_prog in ginstall scoinst install; do
7315         if test -f $ac_dir/$ac_prog; then
7316           if test $ac_prog = install &&
7317             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7318             # AIX install.  It has an incompatible calling convention.
7319             # OSF/1 installbsd also uses dspmsg, but is usable.
7320             :
7321           else
7322             ac_cv_path_install="$ac_dir/$ac_prog -c"
7323             break 2
7324           fi
7325         fi
7326       done
7327       ;;
7328     esac
7329   done
7330   IFS="$ac_save_IFS"
7331
7332 fi
7333   if test "${ac_cv_path_install+set}" = set; then
7334     INSTALL="$ac_cv_path_install"
7335   else
7336     # As a last resort, use the slow shell script.  We don't cache a
7337     # path for INSTALL within a source directory, because that will
7338     # break other packages using the cache if that directory is
7339     # removed, or if the path is relative.
7340     INSTALL="$ac_install_sh"
7341   fi
7342 fi
7343 echo "$as_me:$LINENO: result: $INSTALL" >&5
7344 echo "${ECHO_T}$INSTALL" >&6
7345
7346 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7347 # It thinks the first close brace ends the variable substitution.
7348 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7349
7350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7351
7352
7353 # See if cmp has --ignore-initial.
7354 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7355 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7356 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359    echo abfoo >t1
7360   echo cdfoo >t2
7361   gcc_cv_prog_cmp_skip=slowcompare
7362   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7363     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7364       :
7365     else
7366       gcc_cv_prog_cmp_skip=gnucompare
7367     fi
7368   fi
7369   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7370     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7371       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7372         :
7373       else
7374         gcc_cv_prog_cmp_skip=fastcompare
7375       fi
7376     fi
7377   fi
7378   rm t1 t2
7379
7380 fi
7381 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7382 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7383 make_compare_target=$gcc_cv_prog_cmp_skip
7384
7385
7386
7387 # See if we have the mktemp command.
7388 # Extract the first word of "mktemp", so it can be a program name with args.
7389 set dummy mktemp; ac_word=$2
7390 echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7392 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   if test -n "$have_mktemp_command"; then
7396   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7397 else
7398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 for as_dir in $PATH
7400 do
7401   IFS=$as_save_IFS
7402   test -z "$as_dir" && as_dir=.
7403   for ac_exec_ext in '' $ac_executable_extensions; do
7404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405     ac_cv_prog_have_mktemp_command="yes"
7406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7407     break 2
7408   fi
7409 done
7410 done
7411
7412   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7413 fi
7414 fi
7415 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7416 if test -n "$have_mktemp_command"; then
7417   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7418 echo "${ECHO_T}$have_mktemp_command" >&6
7419 else
7420   echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6
7422 fi
7423
7424
7425 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7426
7427 # See if makeinfo has been installed and is modern enough
7428 # that we can use it.
7429
7430 ac_executable_extensions="$build_exeext"
7431
7432 # Extract the first word of "makeinfo", so it can be a program name with args.
7433 set dummy makeinfo; ac_word=$2
7434 echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7436 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   if test -n "$MAKEINFO"; then
7440   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449     ac_cv_prog_MAKEINFO="makeinfo"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455
7456 fi
7457 fi
7458 MAKEINFO=$ac_cv_prog_MAKEINFO
7459 if test -n "$MAKEINFO"; then
7460   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7461 echo "${ECHO_T}$MAKEINFO" >&6
7462 else
7463   echo "$as_me:$LINENO: result: no" >&5
7464 echo "${ECHO_T}no" >&6
7465 fi
7466
7467 if test -n "$MAKEINFO"; then
7468   # Found it, now check the version.
7469   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7470 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7471 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7472   echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474     ac_prog_version=`$MAKEINFO --version 2>&1 |
7475                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7476   echo "configure:7476: version of makeinfo is $ac_prog_version" >&5
7477   case $ac_prog_version in
7478     '')     gcc_cv_prog_makeinfo_modern=no;;
7479     4.[2-9]*)
7480             gcc_cv_prog_makeinfo_modern=yes;;
7481     *)      gcc_cv_prog_makeinfo_modern=no;;
7482   esac
7483
7484 fi
7485 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7486 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7487 else
7488   gcc_cv_prog_makeinfo_modern=no
7489 fi
7490
7491 if test $gcc_cv_prog_makeinfo_modern = no; then
7492   MAKEINFO="$MISSING makeinfo"
7493   { echo "$as_me:$LINENO: WARNING:
7494 *** Makeinfo is missing or too old.
7495 *** Info documentation will not be built." >&5
7496 echo "$as_me: WARNING:
7497 *** Makeinfo is missing or too old.
7498 *** Info documentation will not be built." >&2;}
7499   BUILD_INFO=
7500 else
7501   BUILD_INFO=info
7502 fi
7503
7504
7505 # Is pod2man recent enough to regenerate manpages?
7506 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7507 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7508 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7509   echo "$as_me:$LINENO: result: yes" >&5
7510 echo "${ECHO_T}yes" >&6
7511   GENERATED_MANPAGES=generated-manpages
7512 else
7513   echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515   GENERATED_MANPAGES=
7516 fi
7517
7518
7519 # How about lex?
7520 for ac_prog in flex
7521 do
7522   # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; ac_word=$2
7524 echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526 if test "${ac_cv_prog_FLEX+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   if test -n "$FLEX"; then
7530   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7531 else
7532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537   for ac_exec_ext in '' $ac_executable_extensions; do
7538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539     ac_cv_prog_FLEX="$ac_prog"
7540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544 done
7545
7546 fi
7547 fi
7548 FLEX=$ac_cv_prog_FLEX
7549 if test -n "$FLEX"; then
7550   echo "$as_me:$LINENO: result: $FLEX" >&5
7551 echo "${ECHO_T}$FLEX" >&6
7552 else
7553   echo "$as_me:$LINENO: result: no" >&5
7554 echo "${ECHO_T}no" >&6
7555 fi
7556
7557   test -n "$FLEX" && break
7558 done
7559 test -n "$FLEX" || FLEX="$MISSING flex"
7560
7561
7562 # Bison?
7563 for ac_prog in bison
7564 do
7565   # Extract the first word of "$ac_prog", so it can be a program name with args.
7566 set dummy $ac_prog; ac_word=$2
7567 echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7569 if test "${ac_cv_prog_BISON+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   if test -n "$BISON"; then
7573   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_exec_ext in '' $ac_executable_extensions; do
7581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582     ac_cv_prog_BISON="$ac_prog"
7583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584     break 2
7585   fi
7586 done
7587 done
7588
7589 fi
7590 fi
7591 BISON=$ac_cv_prog_BISON
7592 if test -n "$BISON"; then
7593   echo "$as_me:$LINENO: result: $BISON" >&5
7594 echo "${ECHO_T}$BISON" >&6
7595 else
7596   echo "$as_me:$LINENO: result: no" >&5
7597 echo "${ECHO_T}no" >&6
7598 fi
7599
7600   test -n "$BISON" && break
7601 done
7602 test -n "$BISON" || BISON="$MISSING bison"
7603
7604
7605 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7606 # check for build == host before using them.
7607
7608 # NM
7609 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7610   && test -d ../binutils ; then
7611   NM='$(objdir)/../binutils/nm-new'
7612 else
7613   # Extract the first word of "nm", so it can be a program name with args.
7614 set dummy nm; ac_word=$2
7615 echo "$as_me:$LINENO: checking for $ac_word" >&5
7616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7617 if test "${ac_cv_prog_NM+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   if test -n "$NM"; then
7621   ac_cv_prog_NM="$NM" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628   for ac_exec_ext in '' $ac_executable_extensions; do
7629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630     ac_cv_prog_NM="nm"
7631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635 done
7636
7637   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7638 fi
7639 fi
7640 NM=$ac_cv_prog_NM
7641 if test -n "$NM"; then
7642   echo "$as_me:$LINENO: result: $NM" >&5
7643 echo "${ECHO_T}$NM" >&6
7644 else
7645   echo "$as_me:$LINENO: result: no" >&5
7646 echo "${ECHO_T}no" >&6
7647 fi
7648
7649 fi
7650
7651 # AR
7652 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7653   && test -d ../binutils ; then
7654   AR='$(objdir)/../binutils/ar'
7655 else
7656   # Extract the first word of "ar", so it can be a program name with args.
7657 set dummy ar; ac_word=$2
7658 echo "$as_me:$LINENO: checking for $ac_word" >&5
7659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7660 if test "${ac_cv_prog_AR+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   if test -n "$AR"; then
7664   ac_cv_prog_AR="$AR" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671   for ac_exec_ext in '' $ac_executable_extensions; do
7672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673     ac_cv_prog_AR="ar"
7674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678 done
7679
7680   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7681 fi
7682 fi
7683 AR=$ac_cv_prog_AR
7684 if test -n "$AR"; then
7685   echo "$as_me:$LINENO: result: $AR" >&5
7686 echo "${ECHO_T}$AR" >&6
7687 else
7688   echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6
7690 fi
7691
7692 fi
7693
7694
7695 # --------------------
7696 # Checks for C headers
7697 # --------------------
7698
7699 echo "$as_me:$LINENO: checking for GNU C library" >&5
7700 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7701 if test "${gcc_cv_glibc+set}" = set; then
7702   echo $ECHO_N "(cached) $ECHO_C" >&6
7703 else
7704   cat >conftest.$ac_ext <<_ACEOF
7705 /* confdefs.h.  */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h.  */
7710 #include <features.h>
7711 int
7712 main ()
7713 {
7714
7715 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7716 #error Not a GNU C library system
7717 #endif
7718   ;
7719   return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7724   (eval $ac_compile) 2>conftest.er1
7725   ac_status=$?
7726   grep -v '^ *+' conftest.er1 >conftest.err
7727   rm -f conftest.er1
7728   cat conftest.err >&5
7729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); } &&
7731          { ac_try='test -z "$ac_c_werror_flag"
7732                          || test ! -s conftest.err'
7733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734   (eval $ac_try) 2>&5
7735   ac_status=$?
7736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; } &&
7738          { ac_try='test -s conftest.$ac_objext'
7739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740   (eval $ac_try) 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); }; }; then
7744   gcc_cv_glibc=yes
7745 else
7746   echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 gcc_cv_glibc=no
7750 fi
7751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753
7754 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7755 echo "${ECHO_T}$gcc_cv_glibc" >&6
7756 if test $gcc_cv_glibc = yes; then
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define _GNU_SOURCE 1
7760 _ACEOF
7761
7762 fi
7763
7764 # Need to reject headers which give warnings, so that the -Werror bootstrap
7765 # works later. *sigh*  This needs to come before all header checks.
7766
7767 ac_c_preproc_warn_flag=yes
7768
7769 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7771 if test "${ac_cv_header_stdc+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780 #include <stdlib.h>
7781 #include <stdarg.h>
7782 #include <string.h>
7783 #include <float.h>
7784
7785 int
7786 main ()
7787 {
7788
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795   (eval $ac_compile) 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } &&
7802          { ac_try='test -z "$ac_c_werror_flag"
7803                          || test ! -s conftest.err'
7804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805   (eval $ac_try) 2>&5
7806   ac_status=$?
7807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808   (exit $ac_status); }; } &&
7809          { ac_try='test -s conftest.$ac_objext'
7810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; }; then
7815   ac_cv_header_stdc=yes
7816 else
7817   echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_cv_header_stdc=no
7821 fi
7822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7823
7824 if test $ac_cv_header_stdc = yes; then
7825   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832 #include <string.h>
7833
7834 _ACEOF
7835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7836   $EGREP "memchr" >/dev/null 2>&1; then
7837   :
7838 else
7839   ac_cv_header_stdc=no
7840 fi
7841 rm -f conftest*
7842
7843 fi
7844
7845 if test $ac_cv_header_stdc = yes; then
7846   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853 #include <stdlib.h>
7854
7855 _ACEOF
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857   $EGREP "free" >/dev/null 2>&1; then
7858   :
7859 else
7860   ac_cv_header_stdc=no
7861 fi
7862 rm -f conftest*
7863
7864 fi
7865
7866 if test $ac_cv_header_stdc = yes; then
7867   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7868   if test "$cross_compiling" = yes; then
7869   :
7870 else
7871   cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877 #include <ctype.h>
7878 #if ((' ' & 0x0FF) == 0x020)
7879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7881 #else
7882 # define ISLOWER(c) \
7883                    (('a' <= (c) && (c) <= 'i') \
7884                      || ('j' <= (c) && (c) <= 'r') \
7885                      || ('s' <= (c) && (c) <= 'z'))
7886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7887 #endif
7888
7889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7890 int
7891 main ()
7892 {
7893   int i;
7894   for (i = 0; i < 256; i++)
7895     if (XOR (islower (i), ISLOWER (i))
7896         || toupper (i) != TOUPPER (i))
7897       exit(2);
7898   exit (0);
7899 }
7900 _ACEOF
7901 rm -f conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903   (eval $ac_link) 2>&5
7904   ac_status=$?
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; }; then
7912   :
7913 else
7914   echo "$as_me: program exited with status $ac_status" >&5
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ( exit $ac_status )
7919 ac_cv_header_stdc=no
7920 fi
7921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7922 fi
7923 fi
7924 fi
7925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7927 if test $ac_cv_header_stdc = yes; then
7928
7929 cat >>confdefs.h <<\_ACEOF
7930 #define STDC_HEADERS 1
7931 _ACEOF
7932
7933 fi
7934
7935 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7936 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7937 if test "${ac_cv_header_time+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h.  */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h.  */
7946 #include <sys/types.h>
7947 #include <sys/time.h>
7948 #include <time.h>
7949
7950 int
7951 main ()
7952 {
7953 if ((struct tm *) 0)
7954 return 0;
7955   ;
7956   return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961   (eval $ac_compile) 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -z "$ac_c_werror_flag"
7969                          || test ! -s conftest.err'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; } &&
7975          { ac_try='test -s conftest.$ac_objext'
7976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7977   (eval $ac_try) 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   ac_cv_header_time=yes
7982 else
7983   echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7985
7986 ac_cv_header_time=no
7987 fi
7988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7991 echo "${ECHO_T}$ac_cv_header_time" >&6
7992 if test $ac_cv_header_time = yes; then
7993
7994 cat >>confdefs.h <<\_ACEOF
7995 #define TIME_WITH_SYS_TIME 1
7996 _ACEOF
7997
7998 fi
7999
8000 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8001 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8002 if test "${gcc_cv_header_string+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h.  */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h.  */
8011 #include <string.h>
8012 #include <strings.h>
8013 int
8014 main ()
8015 {
8016
8017   ;
8018   return 0;
8019 }
8020 _ACEOF
8021 rm -f conftest.$ac_objext
8022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8023   (eval $ac_compile) 2>conftest.er1
8024   ac_status=$?
8025   grep -v '^ *+' conftest.er1 >conftest.err
8026   rm -f conftest.er1
8027   cat conftest.err >&5
8028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8029   (exit $ac_status); } &&
8030          { ac_try='test -z "$ac_c_werror_flag"
8031                          || test ! -s conftest.err'
8032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033   (eval $ac_try) 2>&5
8034   ac_status=$?
8035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036   (exit $ac_status); }; } &&
8037          { ac_try='test -s conftest.$ac_objext'
8038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039   (eval $ac_try) 2>&5
8040   ac_status=$?
8041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042   (exit $ac_status); }; }; then
8043   gcc_cv_header_string=yes
8044 else
8045   echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8047
8048 gcc_cv_header_string=no
8049 fi
8050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8051 fi
8052 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8053 echo "${ECHO_T}$gcc_cv_header_string" >&6
8054 if test $gcc_cv_header_string = yes; then
8055
8056 cat >>confdefs.h <<\_ACEOF
8057 #define STRING_WITH_STRINGS 1
8058 _ACEOF
8059
8060 fi
8061
8062 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8063 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8064 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8065   echo $ECHO_N "(cached) $ECHO_C" >&6
8066 else
8067   cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <sys/types.h>
8074 #include <sys/wait.h>
8075 #ifndef WEXITSTATUS
8076 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8077 #endif
8078 #ifndef WIFEXITED
8079 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8080 #endif
8081
8082 int
8083 main ()
8084 {
8085   int s;
8086   wait (&s);
8087   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8088   ;
8089   return 0;
8090 }
8091 _ACEOF
8092 rm -f conftest.$ac_objext
8093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8094   (eval $ac_compile) 2>conftest.er1
8095   ac_status=$?
8096   grep -v '^ *+' conftest.er1 >conftest.err
8097   rm -f conftest.er1
8098   cat conftest.err >&5
8099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8100   (exit $ac_status); } &&
8101          { ac_try='test -z "$ac_c_werror_flag"
8102                          || test ! -s conftest.err'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; } &&
8108          { ac_try='test -s conftest.$ac_objext'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; }; then
8114   ac_cv_header_sys_wait_h=yes
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 ac_cv_header_sys_wait_h=no
8120 fi
8121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8124 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8125 if test $ac_cv_header_sys_wait_h = yes; then
8126
8127 cat >>confdefs.h <<\_ACEOF
8128 #define HAVE_SYS_WAIT_H 1
8129 _ACEOF
8130
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8156                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8157                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8158                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8159 do
8160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8161 echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #include <$ac_header>
8173 _ACEOF
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8182   if test -s conftest.err; then
8183     ac_cpp_err=$ac_c_preproc_warn_flag
8184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8185   else
8186     ac_cpp_err=
8187   fi
8188 else
8189   ac_cpp_err=yes
8190 fi
8191 if test -z "$ac_cpp_err"; then
8192   eval "$as_ac_Header=yes"
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197   eval "$as_ac_Header=no"
8198 fi
8199 rm -f conftest.err conftest.$ac_ext
8200 fi
8201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204   cat >>confdefs.h <<_ACEOF
8205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8206 _ACEOF
8207
8208 fi
8209 done
8210
8211
8212 # Check for thread headers.
8213 echo "$as_me:$LINENO: checking for thread.h" >&5
8214 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8215 if test "${ac_cv_header_thread_h+set}" = set; then
8216   echo $ECHO_N "(cached) $ECHO_C" >&6
8217 else
8218   cat >conftest.$ac_ext <<_ACEOF
8219 /* confdefs.h.  */
8220 _ACEOF
8221 cat confdefs.h >>conftest.$ac_ext
8222 cat >>conftest.$ac_ext <<_ACEOF
8223 /* end confdefs.h.  */
8224 #include <thread.h>
8225 _ACEOF
8226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8228   ac_status=$?
8229   grep -v '^ *+' conftest.er1 >conftest.err
8230   rm -f conftest.er1
8231   cat conftest.err >&5
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); } >/dev/null; then
8234   if test -s conftest.err; then
8235     ac_cpp_err=$ac_c_preproc_warn_flag
8236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8237   else
8238     ac_cpp_err=
8239   fi
8240 else
8241   ac_cpp_err=yes
8242 fi
8243 if test -z "$ac_cpp_err"; then
8244   ac_cv_header_thread_h=yes
8245 else
8246   echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249   ac_cv_header_thread_h=no
8250 fi
8251 rm -f conftest.err conftest.$ac_ext
8252 fi
8253 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8254 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8255 if test $ac_cv_header_thread_h = yes; then
8256   have_thread_h=yes
8257 else
8258   have_thread_h=
8259 fi
8260
8261 echo "$as_me:$LINENO: checking for pthread.h" >&5
8262 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8263 if test "${ac_cv_header_pthread_h+set}" = set; then
8264   echo $ECHO_N "(cached) $ECHO_C" >&6
8265 else
8266   cat >conftest.$ac_ext <<_ACEOF
8267 /* confdefs.h.  */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h.  */
8272 #include <pthread.h>
8273 _ACEOF
8274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } >/dev/null; then
8282   if test -s conftest.err; then
8283     ac_cpp_err=$ac_c_preproc_warn_flag
8284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8285   else
8286     ac_cpp_err=
8287   fi
8288 else
8289   ac_cpp_err=yes
8290 fi
8291 if test -z "$ac_cpp_err"; then
8292   ac_cv_header_pthread_h=yes
8293 else
8294   echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297   ac_cv_header_pthread_h=no
8298 fi
8299 rm -f conftest.err conftest.$ac_ext
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8302 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8303 if test $ac_cv_header_pthread_h = yes; then
8304   have_pthread_h=yes
8305 else
8306   have_pthread_h=
8307 fi
8308
8309
8310 # These tests can't be done till we know if we have limits.h.
8311 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8312 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8313 if test "${gcc_cv_decl_char_bit+set}" = set; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #ifdef HAVE_LIMITS_H
8323 #include <limits.h>
8324 #endif
8325 #ifdef CHAR_BIT
8326 found
8327 #endif
8328 _ACEOF
8329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8330   $EGREP "found" >/dev/null 2>&1; then
8331   gcc_cv_decl_char_bit=yes
8332 else
8333   gcc_cv_decl_char_bit=no
8334 fi
8335 rm -f conftest*
8336
8337
8338 fi
8339 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8340 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8341 if test $gcc_cv_decl_char_bit = no; then
8342   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8343 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8344 if test "${gcc_cv_c_nbby+set}" = set; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   i=8
8348  gcc_cv_c_nbby=
8349  while test $i -lt 65; do
8350    cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h.  */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h.  */
8356
8357 int
8358 main ()
8359 {
8360 switch(0) {
8361   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8362   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8363   ; }
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8370   (eval $ac_compile) 2>conftest.er1
8371   ac_status=$?
8372   grep -v '^ *+' conftest.er1 >conftest.err
8373   rm -f conftest.er1
8374   cat conftest.err >&5
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -z "$ac_c_werror_flag"
8378                          || test ! -s conftest.err'
8379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380   (eval $ac_try) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; } &&
8384          { ac_try='test -s conftest.$ac_objext'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   gcc_cv_c_nbby=$i; break
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 fi
8396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8397    i=`expr $i + 1`
8398  done
8399  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8400
8401 fi
8402 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8403 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8404 if test $gcc_cv_c_nbby = failed; then
8405   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8406 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8407    { (exit 1); exit 1; }; }
8408 else
8409
8410 cat >>confdefs.h <<_ACEOF
8411 #define CHAR_BIT $gcc_cv_c_nbby
8412 _ACEOF
8413
8414 fi
8415 fi
8416 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8417 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8418 if test "${ac_cv_c_bigendian+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   # See if sys/param.h defines the BYTE_ORDER macro.
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 #include <sys/types.h>
8429 #include <sys/param.h>
8430
8431 int
8432 main ()
8433 {
8434 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8435  bogus endian macros
8436 #endif
8437
8438   ;
8439   return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8444   (eval $ac_compile) 2>conftest.er1
8445   ac_status=$?
8446   grep -v '^ *+' conftest.er1 >conftest.err
8447   rm -f conftest.er1
8448   cat conftest.err >&5
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); } &&
8451          { ac_try='test -z "$ac_c_werror_flag"
8452                          || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8464   # It does; now see whether it defined to BIG_ENDIAN or not.
8465 cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 #include <sys/types.h>
8472 #include <sys/param.h>
8473
8474 int
8475 main ()
8476 {
8477 #if BYTE_ORDER != BIG_ENDIAN
8478  not big endian
8479 #endif
8480
8481   ;
8482   return 0;
8483 }
8484 _ACEOF
8485 rm -f conftest.$ac_objext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8487   (eval $ac_compile) 2>conftest.er1
8488   ac_status=$?
8489   grep -v '^ *+' conftest.er1 >conftest.err
8490   rm -f conftest.er1
8491   cat conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); } &&
8494          { ac_try='test -z "$ac_c_werror_flag"
8495                          || test ! -s conftest.err'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; } &&
8501          { ac_try='test -s conftest.$ac_objext'
8502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503   (eval $ac_try) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; }; then
8507   ac_cv_c_bigendian=yes
8508 else
8509   echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 ac_cv_c_bigendian=no
8513 fi
8514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8515 else
8516   echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 # It does not; compile a test program.
8520 if test "$cross_compiling" = yes; then
8521   # try to guess the endianness by grepping values into an object file
8522   ac_cv_c_bigendian=unknown
8523   cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8530 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8531 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8532 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8533 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8534 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8535 int
8536 main ()
8537 {
8538  _ascii (); _ebcdic ();
8539   ;
8540   return 0;
8541 }
8542 _ACEOF
8543 rm -f conftest.$ac_objext
8544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8545   (eval $ac_compile) 2>conftest.er1
8546   ac_status=$?
8547   grep -v '^ *+' conftest.er1 >conftest.err
8548   rm -f conftest.er1
8549   cat conftest.err >&5
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); } &&
8552          { ac_try='test -z "$ac_c_werror_flag"
8553                          || test ! -s conftest.err'
8554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555   (eval $ac_try) 2>&5
8556   ac_status=$?
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); }; } &&
8559          { ac_try='test -s conftest.$ac_objext'
8560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561   (eval $ac_try) 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; }; then
8565   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8566   ac_cv_c_bigendian=yes
8567 fi
8568 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8569   if test "$ac_cv_c_bigendian" = unknown; then
8570     ac_cv_c_bigendian=no
8571   else
8572     # finding both strings is unlikely to happen, but who knows?
8573     ac_cv_c_bigendian=unknown
8574   fi
8575 fi
8576 else
8577   echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8579
8580 fi
8581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582 else
8583   cat >conftest.$ac_ext <<_ACEOF
8584 /* confdefs.h.  */
8585 _ACEOF
8586 cat confdefs.h >>conftest.$ac_ext
8587 cat >>conftest.$ac_ext <<_ACEOF
8588 /* end confdefs.h.  */
8589 int
8590 main ()
8591 {
8592   /* Are we little or big endian?  From Harbison&Steele.  */
8593   union
8594   {
8595     long l;
8596     char c[sizeof (long)];
8597   } u;
8598   u.l = 1;
8599   exit (u.c[sizeof (long) - 1] == 1);
8600 }
8601 _ACEOF
8602 rm -f conftest$ac_exeext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8604   (eval $ac_link) 2>&5
8605   ac_status=$?
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; }; then
8613   ac_cv_c_bigendian=no
8614 else
8615   echo "$as_me: program exited with status $ac_status" >&5
8616 echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619 ( exit $ac_status )
8620 ac_cv_c_bigendian=yes
8621 fi
8622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8623 fi
8624 fi
8625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8626 fi
8627 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8628 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8629 case $ac_cv_c_bigendian in
8630   yes)
8631
8632 cat >>confdefs.h <<\_ACEOF
8633 #define WORDS_BIGENDIAN 1
8634 _ACEOF
8635  ;;
8636   no)
8637      ;;
8638   *)
8639     { { echo "$as_me:$LINENO: error: unknown endianness
8640 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8641 echo "$as_me: error: unknown endianness
8642 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8643    { (exit 1); exit 1; }; } ;;
8644 esac
8645
8646
8647 # --------
8648 # UNSORTED
8649 # --------
8650
8651 # Stage specific cflags for build.
8652 stage1_cflags=
8653 case $build in
8654 vax-*-*)
8655   if test x$GCC = xyes
8656   then
8657     stage1_cflags="-Wa,-J"
8658   else
8659     stage1_cflags="-J"
8660   fi
8661   ;;
8662 powerpc-*-darwin*)
8663   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8664   # sources; use -no-cpp-precomp to get to GNU cpp.
8665   # Apple's GCC has bugs in designated initializer handling, so disable
8666   # that too.
8667   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8668   ;;
8669 esac
8670
8671
8672 # These libraries may be used by collect2.
8673 # We may need a special search path to get them linked.
8674 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8675 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8676 if test "${gcc_cv_collect2_libs+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   save_LIBS="$LIBS"
8680 for libs in '' -lld -lmld \
8681                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8682                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8683 do
8684         LIBS="$libs"
8685         cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h.  */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h.  */
8691
8692 /* Override any gcc2 internal prototype to avoid an error.  */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 /* We use char because int might match the return type of a gcc2
8697    builtin and then its argument prototype would still apply.  */
8698 char ldopen ();
8699 int
8700 main ()
8701 {
8702 ldopen ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709   (eval $ac_link) 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag"
8717                          || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   gcc_cv_collect2_libs="$libs"; break
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 fi
8735 rm -f conftest.err conftest.$ac_objext \
8736       conftest$ac_exeext conftest.$ac_ext
8737 done
8738 LIBS="$save_LIBS"
8739 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8740 fi
8741 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8742 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8743 case $gcc_cv_collect2_libs in
8744         "none required")        ;;
8745         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8746 esac
8747
8748
8749 # When building Ada code on Alpha, we need exc_resume which is usually in
8750 # -lexc.  So test for it.
8751 save_LIBS="$LIBS"
8752 LIBS=
8753 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8754 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8755 if test "${ac_cv_search_exc_resume+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   ac_func_search_save_LIBS=$LIBS
8759 ac_cv_search_exc_resume=no
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766
8767 /* Override any gcc2 internal prototype to avoid an error.  */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 /* We use char because int might match the return type of a gcc2
8772    builtin and then its argument prototype would still apply.  */
8773 char exc_resume ();
8774 int
8775 main ()
8776 {
8777 exc_resume ();
8778   ;
8779   return 0;
8780 }
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784   (eval $ac_link) 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } &&
8791          { ac_try='test -z "$ac_c_werror_flag"
8792                          || test ! -s conftest.err'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; } &&
8798          { ac_try='test -s conftest$ac_exeext'
8799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800   (eval $ac_try) 2>&5
8801   ac_status=$?
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); }; }; then
8804   ac_cv_search_exc_resume="none required"
8805 else
8806   echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8808
8809 fi
8810 rm -f conftest.err conftest.$ac_objext \
8811       conftest$ac_exeext conftest.$ac_ext
8812 if test "$ac_cv_search_exc_resume" = no; then
8813   for ac_lib in exc; do
8814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8815     cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822 /* Override any gcc2 internal prototype to avoid an error.  */
8823 #ifdef __cplusplus
8824 extern "C"
8825 #endif
8826 /* We use char because int might match the return type of a gcc2
8827    builtin and then its argument prototype would still apply.  */
8828 char exc_resume ();
8829 int
8830 main ()
8831 {
8832 exc_resume ();
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839   (eval $ac_link) 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -z "$ac_c_werror_flag"
8847                          || test ! -s conftest.err'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; } &&
8853          { ac_try='test -s conftest$ac_exeext'
8854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855   (eval $ac_try) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; }; then
8859   ac_cv_search_exc_resume="-l$ac_lib"
8860 break
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 fi
8866 rm -f conftest.err conftest.$ac_objext \
8867       conftest$ac_exeext conftest.$ac_ext
8868   done
8869 fi
8870 LIBS=$ac_func_search_save_LIBS
8871 fi
8872 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8873 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8874 if test "$ac_cv_search_exc_resume" != no; then
8875   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8876
8877 fi
8878
8879 GNAT_LIBEXC="$LIBS"
8880 LIBS="$save_LIBS"
8881
8882
8883 # Some systems put ldexp and frexp in libm instead of libc; assume
8884 # they're both in the same place.  jcf-dump needs them.
8885 save_LIBS="$LIBS"
8886 LIBS=
8887 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8888 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8889 if test "${ac_cv_search_ldexp+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   ac_func_search_save_LIBS=$LIBS
8893 ac_cv_search_ldexp=no
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any gcc2 internal prototype to avoid an error.  */
8902 #ifdef __cplusplus
8903 extern "C"
8904 #endif
8905 /* We use char because int might match the return type of a gcc2
8906    builtin and then its argument prototype would still apply.  */
8907 char ldexp ();
8908 int
8909 main ()
8910 {
8911 ldexp ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8918   (eval $ac_link) 2>conftest.er1
8919   ac_status=$?
8920   grep -v '^ *+' conftest.er1 >conftest.err
8921   rm -f conftest.er1
8922   cat conftest.err >&5
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } &&
8925          { ac_try='test -z "$ac_c_werror_flag"
8926                          || test ! -s conftest.err'
8927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8928   (eval $ac_try) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); }; } &&
8932          { ac_try='test -s conftest$ac_exeext'
8933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934   (eval $ac_try) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; }; then
8938   ac_cv_search_ldexp="none required"
8939 else
8940   echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 fi
8944 rm -f conftest.err conftest.$ac_objext \
8945       conftest$ac_exeext conftest.$ac_ext
8946 if test "$ac_cv_search_ldexp" = no; then
8947   for ac_lib in m; do
8948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8949     cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955
8956 /* Override any gcc2 internal prototype to avoid an error.  */
8957 #ifdef __cplusplus
8958 extern "C"
8959 #endif
8960 /* We use char because int might match the return type of a gcc2
8961    builtin and then its argument prototype would still apply.  */
8962 char ldexp ();
8963 int
8964 main ()
8965 {
8966 ldexp ();
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973   (eval $ac_link) 2>conftest.er1
8974   ac_status=$?
8975   grep -v '^ *+' conftest.er1 >conftest.err
8976   rm -f conftest.er1
8977   cat conftest.err >&5
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } &&
8980          { ac_try='test -z "$ac_c_werror_flag"
8981                          || test ! -s conftest.err'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; } &&
8987          { ac_try='test -s conftest$ac_exeext'
8988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989   (eval $ac_try) 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_search_ldexp="-l$ac_lib"
8994 break
8995 else
8996   echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8998
8999 fi
9000 rm -f conftest.err conftest.$ac_objext \
9001       conftest$ac_exeext conftest.$ac_ext
9002   done
9003 fi
9004 LIBS=$ac_func_search_save_LIBS
9005 fi
9006 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9007 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9008 if test "$ac_cv_search_ldexp" != no; then
9009   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9010
9011 fi
9012
9013 LDEXP_LIB="$LIBS"
9014 LIBS="$save_LIBS"
9015
9016
9017 # Use <inttypes.h> only if it exists,
9018 # doesn't clash with <sys/types.h>, and declares intmax_t.
9019 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9020 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9021 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030 #include <sys/types.h>
9031 #include <inttypes.h>
9032 int
9033 main ()
9034 {
9035 intmax_t i = -1;
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042   (eval $ac_compile) 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } &&
9049          { ac_try='test -z "$ac_c_werror_flag"
9050                          || test ! -s conftest.err'
9051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052   (eval $ac_try) 2>&5
9053   ac_status=$?
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); }; } &&
9056          { ac_try='test -s conftest.$ac_objext'
9057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058   (eval $ac_try) 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; }; then
9062   gcc_cv_header_inttypes_h=yes
9063 else
9064   echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 gcc_cv_header_inttypes_h=no
9068 fi
9069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9070 fi
9071
9072 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9073 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9074 if test $gcc_cv_header_inttypes_h = yes; then
9075
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_INTTYPES_H 1
9078 _ACEOF
9079
9080 fi
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \
9121         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9122         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9123         clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
9124 do
9125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9126 echo "$as_me:$LINENO: checking for $ac_func" >&5
9127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9128 if eval "test \"\${$as_ac_var+set}\" = set"; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131   cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9139 #define $ac_func innocuous_$ac_func
9140
9141 /* System header to define __stub macros and hopefully few prototypes,
9142     which can conflict with char $ac_func (); below.
9143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9144     <limits.h> exists even on freestanding compilers.  */
9145
9146 #ifdef __STDC__
9147 # include <limits.h>
9148 #else
9149 # include <assert.h>
9150 #endif
9151
9152 #undef $ac_func
9153
9154 /* Override any gcc2 internal prototype to avoid an error.  */
9155 #ifdef __cplusplus
9156 extern "C"
9157 {
9158 #endif
9159 /* We use char because int might match the return type of a gcc2
9160    builtin and then its argument prototype would still apply.  */
9161 char $ac_func ();
9162 /* The GNU C library defines this for functions which it implements
9163     to always fail with ENOSYS.  Some functions are actually named
9164     something starting with __ and the normal name is an alias.  */
9165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9166 choke me
9167 #else
9168 char (*f) () = $ac_func;
9169 #endif
9170 #ifdef __cplusplus
9171 }
9172 #endif
9173
9174 int
9175 main ()
9176 {
9177 return f != $ac_func;
9178   ;
9179   return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184   (eval $ac_link) 2>conftest.er1
9185   ac_status=$?
9186   grep -v '^ *+' conftest.er1 >conftest.err
9187   rm -f conftest.er1
9188   cat conftest.err >&5
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } &&
9191          { ac_try='test -z "$ac_c_werror_flag"
9192                          || test ! -s conftest.err'
9193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194   (eval $ac_try) 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; } &&
9198          { ac_try='test -s conftest$ac_exeext'
9199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200   (eval $ac_try) 2>&5
9201   ac_status=$?
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); }; }; then
9204   eval "$as_ac_var=yes"
9205 else
9206   echo "$as_me: failed program was:" >&5
9207 sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 eval "$as_ac_var=no"
9210 fi
9211 rm -f conftest.err conftest.$ac_objext \
9212       conftest$ac_exeext conftest.$ac_ext
9213 fi
9214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9216 if test `eval echo '${'$as_ac_var'}'` = yes; then
9217   cat >>confdefs.h <<_ACEOF
9218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9219 _ACEOF
9220
9221 fi
9222 done
9223
9224
9225 if test x$ac_cv_func_mbstowcs = xyes; then
9226   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9227 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9228 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9229   echo $ECHO_N "(cached) $ECHO_C" >&6
9230 else
9231       if test "$cross_compiling" = yes; then
9232   gcc_cv_func_mbstowcs_works=yes
9233 else
9234   cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240 #include <stdlib.h>
9241 int main()
9242 {
9243   mbstowcs(0, "", 0);
9244   return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest$ac_exeext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249   (eval $ac_link) 2>&5
9250   ac_status=$?
9251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   gcc_cv_func_mbstowcs_works=yes
9259 else
9260   echo "$as_me: program exited with status $ac_status" >&5
9261 echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9263
9264 ( exit $ac_status )
9265 gcc_cv_func_mbstowcs_works=no
9266 fi
9267 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9268 fi
9269 fi
9270 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9271 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9272   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9273
9274 cat >>confdefs.h <<\_ACEOF
9275 #define HAVE_WORKING_MBSTOWCS 1
9276 _ACEOF
9277
9278   fi
9279 fi
9280
9281 echo "$as_me:$LINENO: checking for ssize_t" >&5
9282 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9283 if test "${ac_cv_type_ssize_t+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 $ac_includes_default
9293 int
9294 main ()
9295 {
9296 if ((ssize_t *) 0)
9297   return 0;
9298 if (sizeof (ssize_t))
9299   return 0;
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9306   (eval $ac_compile) 2>conftest.er1
9307   ac_status=$?
9308   grep -v '^ *+' conftest.er1 >conftest.err
9309   rm -f conftest.er1
9310   cat conftest.err >&5
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } &&
9313          { ac_try='test -z "$ac_c_werror_flag"
9314                          || test ! -s conftest.err'
9315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316   (eval $ac_try) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); }; } &&
9320          { ac_try='test -s conftest.$ac_objext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   ac_cv_type_ssize_t=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 ac_cv_type_ssize_t=no
9332 fi
9333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9334 fi
9335 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9336 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9337 if test $ac_cv_type_ssize_t = yes; then
9338   :
9339 else
9340
9341 cat >>confdefs.h <<_ACEOF
9342 #define ssize_t int
9343 _ACEOF
9344
9345 fi
9346
9347
9348 # Try to determine the array type of the second argument of getgroups
9349 # for the target system (int or gid_t).
9350 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9351 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9352 if test "${ac_cv_type_uid_t+set}" = set; then
9353   echo $ECHO_N "(cached) $ECHO_C" >&6
9354 else
9355   cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361 #include <sys/types.h>
9362
9363 _ACEOF
9364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9365   $EGREP "uid_t" >/dev/null 2>&1; then
9366   ac_cv_type_uid_t=yes
9367 else
9368   ac_cv_type_uid_t=no
9369 fi
9370 rm -f conftest*
9371
9372 fi
9373 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9374 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9375 if test $ac_cv_type_uid_t = no; then
9376
9377 cat >>confdefs.h <<\_ACEOF
9378 #define uid_t int
9379 _ACEOF
9380
9381
9382 cat >>confdefs.h <<\_ACEOF
9383 #define gid_t int
9384 _ACEOF
9385
9386 fi
9387
9388 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9389 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9390 if test "${ac_cv_type_getgroups+set}" = set; then
9391   echo $ECHO_N "(cached) $ECHO_C" >&6
9392 else
9393   if test "$cross_compiling" = yes; then
9394   ac_cv_type_getgroups=cross
9395 else
9396   cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402 /* Thanks to Mike Rendell for this test.  */
9403 #include <sys/types.h>
9404 #define NGID 256
9405 #undef MAX
9406 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9407
9408 int
9409 main ()
9410 {
9411   gid_t gidset[NGID];
9412   int i, n;
9413   union { gid_t gval; long lval; }  val;
9414
9415   val.lval = -1;
9416   for (i = 0; i < NGID; i++)
9417     gidset[i] = val.gval;
9418   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9419                  gidset);
9420   /* Exit non-zero if getgroups seems to require an array of ints.  This
9421      happens when gid_t is short but getgroups modifies an array of ints.  */
9422   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9423 }
9424 _ACEOF
9425 rm -f conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427   (eval $ac_link) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   ac_cv_type_getgroups=gid_t
9437 else
9438   echo "$as_me: program exited with status $ac_status" >&5
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442 ( exit $ac_status )
9443 ac_cv_type_getgroups=int
9444 fi
9445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 if test $ac_cv_type_getgroups = cross; then
9448         cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h.  */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h.  */
9454 #include <unistd.h>
9455
9456 _ACEOF
9457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9458   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9459   ac_cv_type_getgroups=gid_t
9460 else
9461   ac_cv_type_getgroups=int
9462 fi
9463 rm -f conftest*
9464
9465 fi
9466 fi
9467 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9468 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9469
9470 cat >>confdefs.h <<_ACEOF
9471 #define GETGROUPS_T $ac_cv_type_getgroups
9472 _ACEOF
9473
9474
9475 if test "${target}" = "${build}"; then
9476   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9477 else
9478   case "${target}" in
9479         # This condition may need some tweaking.  It should include all
9480         # targets where the array type of the second argument of getgroups
9481         # is int and the type of gid_t is not equivalent to int.
9482         *-*-sunos* | *-*-ultrix*)
9483                 TARGET_GETGROUPS_T=int
9484                 ;;
9485         *)
9486                 TARGET_GETGROUPS_T=gid_t
9487                 ;;
9488   esac
9489 fi
9490
9491
9492 echo "$as_me:$LINENO: checking whether the printf functions support %p" >&5
9493 echo $ECHO_N "checking whether the printf functions support %p... $ECHO_C" >&6
9494 if test "${gcc_cv_func_printf_ptr+set}" = set; then
9495   echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497   if test "$cross_compiling" = yes; then
9498   gcc_cv_func_printf_ptr=no
9499 else
9500   cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h.  */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h.  */
9506 #include <stdio.h>
9507
9508 int main()
9509 {
9510   char buf[64];
9511   char *p = buf, *q = NULL;
9512   sprintf(buf, "%p", p);
9513   sscanf(buf, "%p", &q);
9514   return (p != q);
9515 }
9516 _ACEOF
9517 rm -f conftest$ac_exeext
9518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519   (eval $ac_link) 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524   (eval $ac_try) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; }; then
9528   gcc_cv_func_printf_ptr=yes
9529 else
9530   echo "$as_me: program exited with status $ac_status" >&5
9531 echo "$as_me: failed program was:" >&5
9532 sed 's/^/| /' conftest.$ac_ext >&5
9533
9534 ( exit $ac_status )
9535 gcc_cv_func_printf_ptr=no
9536 fi
9537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9538 fi
9539 rm -f core core.* *.core
9540 fi
9541 echo "$as_me:$LINENO: result: $gcc_cv_func_printf_ptr" >&5
9542 echo "${ECHO_T}$gcc_cv_func_printf_ptr" >&6
9543 if test $gcc_cv_func_printf_ptr = yes ; then
9544
9545 cat >>confdefs.h <<\_ACEOF
9546 #define HAVE_PRINTF_PTR 1
9547 _ACEOF
9548
9549 fi
9550
9551
9552 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9553 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9554 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563 #include <sys/mman.h>
9564 _ACEOF
9565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9567   ac_status=$?
9568   grep -v '^ *+' conftest.er1 >conftest.err
9569   rm -f conftest.er1
9570   cat conftest.err >&5
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } >/dev/null; then
9573   if test -s conftest.err; then
9574     ac_cpp_err=$ac_c_preproc_warn_flag
9575     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9576   else
9577     ac_cpp_err=
9578   fi
9579 else
9580   ac_cpp_err=yes
9581 fi
9582 if test -z "$ac_cpp_err"; then
9583   ac_cv_header_sys_mman_h=yes
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588   ac_cv_header_sys_mman_h=no
9589 fi
9590 rm -f conftest.err conftest.$ac_ext
9591 fi
9592 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9593 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9594 if test $ac_cv_header_sys_mman_h = yes; then
9595   gcc_header_sys_mman_h=yes
9596 else
9597   gcc_header_sys_mman_h=no
9598 fi
9599
9600 echo "$as_me:$LINENO: checking for mmap" >&5
9601 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9602 if test "${ac_cv_func_mmap+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9613 #define mmap innocuous_mmap
9614
9615 /* System header to define __stub macros and hopefully few prototypes,
9616     which can conflict with char mmap (); below.
9617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9618     <limits.h> exists even on freestanding compilers.  */
9619
9620 #ifdef __STDC__
9621 # include <limits.h>
9622 #else
9623 # include <assert.h>
9624 #endif
9625
9626 #undef mmap
9627
9628 /* Override any gcc2 internal prototype to avoid an error.  */
9629 #ifdef __cplusplus
9630 extern "C"
9631 {
9632 #endif
9633 /* We use char because int might match the return type of a gcc2
9634    builtin and then its argument prototype would still apply.  */
9635 char mmap ();
9636 /* The GNU C library defines this for functions which it implements
9637     to always fail with ENOSYS.  Some functions are actually named
9638     something starting with __ and the normal name is an alias.  */
9639 #if defined (__stub_mmap) || defined (__stub___mmap)
9640 choke me
9641 #else
9642 char (*f) () = mmap;
9643 #endif
9644 #ifdef __cplusplus
9645 }
9646 #endif
9647
9648 int
9649 main ()
9650 {
9651 return f != mmap;
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658   (eval $ac_link) 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } &&
9665          { ac_try='test -z "$ac_c_werror_flag"
9666                          || test ! -s conftest.err'
9667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668   (eval $ac_try) 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest$ac_exeext'
9673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674   (eval $ac_try) 2>&5
9675   ac_status=$?
9676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677   (exit $ac_status); }; }; then
9678   ac_cv_func_mmap=yes
9679 else
9680   echo "$as_me: failed program was:" >&5
9681 sed 's/^/| /' conftest.$ac_ext >&5
9682
9683 ac_cv_func_mmap=no
9684 fi
9685 rm -f conftest.err conftest.$ac_objext \
9686       conftest$ac_exeext conftest.$ac_ext
9687 fi
9688 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9689 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9690 if test $ac_cv_func_mmap = yes; then
9691   gcc_func_mmap=yes
9692 else
9693   gcc_func_mmap=no
9694 fi
9695
9696 if test "$gcc_header_sys_mman_h" != yes \
9697  || test "$gcc_func_mmap" != yes; then
9698    gcc_cv_func_mmap_file=no
9699    gcc_cv_func_mmap_dev_zero=no
9700    gcc_cv_func_mmap_anon=no
9701 else
9702    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9703 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9704 if test "${gcc_cv_func_mmap_file+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   # Add a system to this blacklist if
9708    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9709    # memory area containing the same data that you'd get if you applied
9710    # read() to the same fd.  The only system known to have a problem here
9711    # is VMS, where text files have record structure.
9712    case "$host_os" in
9713      vms* | ultrix*)
9714         gcc_cv_func_mmap_file=no ;;
9715      *)
9716         gcc_cv_func_mmap_file=yes;;
9717    esac
9718 fi
9719 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9720 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9721    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9722 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9723 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   # Add a system to this blacklist if it has mmap() but /dev/zero
9727    # does not exist, or if mmapping /dev/zero does not give anonymous
9728    # zeroed pages with both the following properties:
9729    # 1. If you map N consecutive pages in with one call, and then
9730    #    unmap any subset of those pages, the pages that were not
9731    #    explicitly unmapped remain accessible.
9732    # 2. If you map two adjacent blocks of memory and then unmap them
9733    #    both at once, they must both go away.
9734    # Systems known to be in this category are Windows (all variants),
9735    # VMS, and Darwin.
9736    case "$host_os" in
9737      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9738         gcc_cv_func_mmap_dev_zero=no ;;
9739      *)
9740         gcc_cv_func_mmap_dev_zero=yes;;
9741    esac
9742 fi
9743 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9744 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9745
9746    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9747    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9748 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9749 if test "${gcc_cv_decl_map_anon+set}" = set; then
9750   echo $ECHO_N "(cached) $ECHO_C" >&6
9751 else
9752   cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h.  */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h.  */
9758 #include <sys/types.h>
9759 #include <sys/mman.h>
9760 #include <unistd.h>
9761
9762 #ifndef MAP_ANONYMOUS
9763 #define MAP_ANONYMOUS MAP_ANON
9764 #endif
9765
9766 int
9767 main ()
9768 {
9769 int n = MAP_ANONYMOUS;
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 rm -f conftest.$ac_objext
9775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9776   (eval $ac_compile) 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } &&
9783          { ac_try='test -z "$ac_c_werror_flag"
9784                          || test ! -s conftest.err'
9785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; } &&
9790          { ac_try='test -s conftest.$ac_objext'
9791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792   (eval $ac_try) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   gcc_cv_decl_map_anon=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 gcc_cv_decl_map_anon=no
9802 fi
9803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9804 fi
9805 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9806 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9807
9808    if test $gcc_cv_decl_map_anon = no; then
9809      gcc_cv_func_mmap_anon=no
9810    else
9811      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9812 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9813 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9817    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9818    # doesn't give anonymous zeroed pages with the same properties listed
9819    # above for use of /dev/zero.
9820    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9821    case "$host_os" in
9822      vms* | cygwin* | pe | mingw* | sco* | udk* )
9823         gcc_cv_func_mmap_anon=no ;;
9824      *)
9825         gcc_cv_func_mmap_anon=yes;;
9826    esac
9827 fi
9828 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9829 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9830    fi
9831 fi
9832
9833 if test $gcc_cv_func_mmap_file = yes; then
9834
9835 cat >>confdefs.h <<\_ACEOF
9836 #define HAVE_MMAP_FILE 1
9837 _ACEOF
9838
9839 fi
9840 if test $gcc_cv_func_mmap_dev_zero = yes; then
9841
9842 cat >>confdefs.h <<\_ACEOF
9843 #define HAVE_MMAP_DEV_ZERO 1
9844 _ACEOF
9845
9846 fi
9847 if test $gcc_cv_func_mmap_anon = yes; then
9848
9849 cat >>confdefs.h <<\_ACEOF
9850 #define HAVE_MMAP_ANON 1
9851 _ACEOF
9852
9853 fi
9854
9855
9856 case "${host}" in
9857 *-*-*vms*)
9858   # Under VMS, vfork works very differently than on Unix. The standard test
9859   # won't work, and it isn't easily adaptable. It makes more sense to
9860   # just force it.
9861   ac_cv_func_vfork_works=yes
9862   ;;
9863 esac
9864 echo "$as_me:$LINENO: checking for pid_t" >&5
9865 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9866 if test "${ac_cv_type_pid_t+set}" = set; then
9867   echo $ECHO_N "(cached) $ECHO_C" >&6
9868 else
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 $ac_includes_default
9876 int
9877 main ()
9878 {
9879 if ((pid_t *) 0)
9880   return 0;
9881 if (sizeof (pid_t))
9882   return 0;
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889   (eval $ac_compile) 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -z "$ac_c_werror_flag"
9897                          || test ! -s conftest.err'
9898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899   (eval $ac_try) 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; } &&
9903          { ac_try='test -s conftest.$ac_objext'
9904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905   (eval $ac_try) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; }; then
9909   ac_cv_type_pid_t=yes
9910 else
9911   echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_cv_type_pid_t=no
9915 fi
9916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9917 fi
9918 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9919 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9920 if test $ac_cv_type_pid_t = yes; then
9921   :
9922 else
9923
9924 cat >>confdefs.h <<_ACEOF
9925 #define pid_t int
9926 _ACEOF
9927
9928 fi
9929
9930
9931
9932 for ac_header in unistd.h vfork.h
9933 do
9934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9935 echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   cat >conftest.$ac_ext <<_ACEOF
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946 #include <$ac_header>
9947 _ACEOF
9948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9950   ac_status=$?
9951   grep -v '^ *+' conftest.er1 >conftest.err
9952   rm -f conftest.er1
9953   cat conftest.err >&5
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); } >/dev/null; then
9956   if test -s conftest.err; then
9957     ac_cpp_err=$ac_c_preproc_warn_flag
9958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9959   else
9960     ac_cpp_err=
9961   fi
9962 else
9963   ac_cpp_err=yes
9964 fi
9965 if test -z "$ac_cpp_err"; then
9966   eval "$as_ac_Header=yes"
9967 else
9968   echo "$as_me: failed program was:" >&5
9969 sed 's/^/| /' conftest.$ac_ext >&5
9970
9971   eval "$as_ac_Header=no"
9972 fi
9973 rm -f conftest.err conftest.$ac_ext
9974 fi
9975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9978   cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9980 _ACEOF
9981
9982 fi
9983 done
9984
9985
9986
9987 for ac_func in fork vfork
9988 do
9989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9990 echo "$as_me:$LINENO: checking for $ac_func" >&5
9991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9992 if eval "test \"\${$as_ac_var+set}\" = set"; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h.  */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h.  */
10001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10003 #define $ac_func innocuous_$ac_func
10004
10005 /* System header to define __stub macros and hopefully few prototypes,
10006     which can conflict with char $ac_func (); below.
10007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008     <limits.h> exists even on freestanding compilers.  */
10009
10010 #ifdef __STDC__
10011 # include <limits.h>
10012 #else
10013 # include <assert.h>
10014 #endif
10015
10016 #undef $ac_func
10017
10018 /* Override any gcc2 internal prototype to avoid an error.  */
10019 #ifdef __cplusplus
10020 extern "C"
10021 {
10022 #endif
10023 /* We use char because int might match the return type of a gcc2
10024    builtin and then its argument prototype would still apply.  */
10025 char $ac_func ();
10026 /* The GNU C library defines this for functions which it implements
10027     to always fail with ENOSYS.  Some functions are actually named
10028     something starting with __ and the normal name is an alias.  */
10029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10030 choke me
10031 #else
10032 char (*f) () = $ac_func;
10033 #endif
10034 #ifdef __cplusplus
10035 }
10036 #endif
10037
10038 int
10039 main ()
10040 {
10041 return f != $ac_func;
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10048   (eval $ac_link) 2>conftest.er1
10049   ac_status=$?
10050   grep -v '^ *+' conftest.er1 >conftest.err
10051   rm -f conftest.er1
10052   cat conftest.err >&5
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } &&
10055          { ac_try='test -z "$ac_c_werror_flag"
10056                          || test ! -s conftest.err'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest$ac_exeext'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   eval "$as_ac_var=yes"
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 eval "$as_ac_var=no"
10074 fi
10075 rm -f conftest.err conftest.$ac_objext \
10076       conftest$ac_exeext conftest.$ac_ext
10077 fi
10078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10080 if test `eval echo '${'$as_ac_var'}'` = yes; then
10081   cat >>confdefs.h <<_ACEOF
10082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10083 _ACEOF
10084
10085 fi
10086 done
10087
10088 if test "x$ac_cv_func_fork" = xyes; then
10089   echo "$as_me:$LINENO: checking for working fork" >&5
10090 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10091 if test "${ac_cv_func_fork_works+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094   if test "$cross_compiling" = yes; then
10095   ac_cv_func_fork_works=cross
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 /* By Ruediger Kuhlmann. */
10099       #include <sys/types.h>
10100       #if HAVE_UNISTD_H
10101       # include <unistd.h>
10102       #endif
10103       /* Some systems only have a dummy stub for fork() */
10104       int main ()
10105       {
10106         if (fork() < 0)
10107           exit (1);
10108         exit (0);
10109       }
10110 _ACEOF
10111 rm -f conftest$ac_exeext
10112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10113   (eval $ac_link) 2>&5
10114   ac_status=$?
10115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_cv_func_fork_works=yes
10123 else
10124   echo "$as_me: program exited with status $ac_status" >&5
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ( exit $ac_status )
10129 ac_cv_func_fork_works=no
10130 fi
10131 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10132 fi
10133 fi
10134 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10135 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10136
10137 else
10138   ac_cv_func_fork_works=$ac_cv_func_fork
10139 fi
10140 if test "x$ac_cv_func_fork_works" = xcross; then
10141   case $host in
10142     *-*-amigaos* | *-*-msdosdjgpp*)
10143       # Override, as these systems have only a dummy fork() stub
10144       ac_cv_func_fork_works=no
10145       ;;
10146     *)
10147       ac_cv_func_fork_works=yes
10148       ;;
10149   esac
10150   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10151 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10152 fi
10153 ac_cv_func_vfork_works=$ac_cv_func_vfork
10154 if test "x$ac_cv_func_vfork" = xyes; then
10155   echo "$as_me:$LINENO: checking for working vfork" >&5
10156 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10157 if test "${ac_cv_func_vfork_works+set}" = set; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   if test "$cross_compiling" = yes; then
10161   ac_cv_func_vfork_works=cross
10162 else
10163   cat >conftest.$ac_ext <<_ACEOF
10164 /* confdefs.h.  */
10165 _ACEOF
10166 cat confdefs.h >>conftest.$ac_ext
10167 cat >>conftest.$ac_ext <<_ACEOF
10168 /* end confdefs.h.  */
10169 /* Thanks to Paul Eggert for this test.  */
10170 #include <stdio.h>
10171 #include <stdlib.h>
10172 #include <sys/types.h>
10173 #include <sys/stat.h>
10174 #include <sys/wait.h>
10175 #if HAVE_UNISTD_H
10176 # include <unistd.h>
10177 #endif
10178 #if HAVE_VFORK_H
10179 # include <vfork.h>
10180 #endif
10181 /* On some sparc systems, changes by the child to local and incoming
10182    argument registers are propagated back to the parent.  The compiler
10183    is told about this with #include <vfork.h>, but some compilers
10184    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10185    static variable whose address is put into a register that is
10186    clobbered by the vfork.  */
10187 static void
10188 #ifdef __cplusplus
10189 sparc_address_test (int arg)
10190 # else
10191 sparc_address_test (arg) int arg;
10192 #endif
10193 {
10194   static pid_t child;
10195   if (!child) {
10196     child = vfork ();
10197     if (child < 0) {
10198       perror ("vfork");
10199       _exit(2);
10200     }
10201     if (!child) {
10202       arg = getpid();
10203       write(-1, "", 0);
10204       _exit (arg);
10205     }
10206   }
10207 }
10208
10209 int
10210 main ()
10211 {
10212   pid_t parent = getpid ();
10213   pid_t child;
10214
10215   sparc_address_test (0);
10216
10217   child = vfork ();
10218
10219   if (child == 0) {
10220     /* Here is another test for sparc vfork register problems.  This
10221        test uses lots of local variables, at least as many local
10222        variables as main has allocated so far including compiler
10223        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10224        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10225        reuse the register of parent for one of the local variables,
10226        since it will think that parent can't possibly be used any more
10227        in this routine.  Assigning to the local variable will thus
10228        munge parent in the parent process.  */
10229     pid_t
10230       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10231       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10232     /* Convince the compiler that p..p7 are live; otherwise, it might
10233        use the same hardware register for all 8 local variables.  */
10234     if (p != p1 || p != p2 || p != p3 || p != p4
10235         || p != p5 || p != p6 || p != p7)
10236       _exit(1);
10237
10238     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10239        from child file descriptors.  If the child closes a descriptor
10240        before it execs or exits, this munges the parent's descriptor
10241        as well.  Test for this by closing stdout in the child.  */
10242     _exit(close(fileno(stdout)) != 0);
10243   } else {
10244     int status;
10245     struct stat st;
10246
10247     while (wait(&status) != child)
10248       ;
10249     exit(
10250          /* Was there some problem with vforking?  */
10251          child < 0
10252
10253          /* Did the child fail?  (This shouldn't happen.)  */
10254          || status
10255
10256          /* Did the vfork/compiler bug occur?  */
10257          || parent != getpid()
10258
10259          /* Did the file descriptor bug occur?  */
10260          || fstat(fileno(stdout), &st) != 0
10261          );
10262   }
10263 }
10264 _ACEOF
10265 rm -f conftest$ac_exeext
10266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267   (eval $ac_link) 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272   (eval $ac_try) 2>&5
10273   ac_status=$?
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); }; }; then
10276   ac_cv_func_vfork_works=yes
10277 else
10278   echo "$as_me: program exited with status $ac_status" >&5
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ( exit $ac_status )
10283 ac_cv_func_vfork_works=no
10284 fi
10285 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10286 fi
10287 fi
10288 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10289 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10290
10291 fi;
10292 if test "x$ac_cv_func_fork_works" = xcross; then
10293   ac_cv_func_vfork_works=$ac_cv_func_vfork
10294   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10295 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10296 fi
10297
10298 if test "x$ac_cv_func_vfork_works" = xyes; then
10299
10300 cat >>confdefs.h <<\_ACEOF
10301 #define HAVE_WORKING_VFORK 1
10302 _ACEOF
10303
10304 else
10305
10306 cat >>confdefs.h <<\_ACEOF
10307 #define vfork fork
10308 _ACEOF
10309
10310 fi
10311 if test "x$ac_cv_func_fork_works" = xyes; then
10312
10313 cat >>confdefs.h <<\_ACEOF
10314 #define HAVE_WORKING_FORK 1
10315 _ACEOF
10316
10317 fi
10318
10319
10320
10321       if test "X$prefix" = "XNONE"; then
10322     acl_final_prefix="$ac_default_prefix"
10323   else
10324     acl_final_prefix="$prefix"
10325   fi
10326   if test "X$exec_prefix" = "XNONE"; then
10327     acl_final_exec_prefix='${prefix}'
10328   else
10329     acl_final_exec_prefix="$exec_prefix"
10330   fi
10331   acl_save_prefix="$prefix"
10332   prefix="$acl_final_prefix"
10333   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10334   prefix="$acl_save_prefix"
10335
10336
10337 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10338 if test "${with_gnu_ld+set}" = set; then
10339   withval="$with_gnu_ld"
10340   test "$withval" = no || with_gnu_ld=yes
10341 else
10342   with_gnu_ld=no
10343 fi;
10344 # Prepare PATH_SEPARATOR.
10345 # The user is always right.
10346 if test "${PATH_SEPARATOR+set}" != set; then
10347   echo "#! /bin/sh" >conf$$.sh
10348   echo  "exit 0"   >>conf$$.sh
10349   chmod +x conf$$.sh
10350   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10351     PATH_SEPARATOR=';'
10352   else
10353     PATH_SEPARATOR=:
10354   fi
10355   rm -f conf$$.sh
10356 fi
10357 ac_prog=ld
10358 if test "$GCC" = yes; then
10359   # Check if gcc -print-prog-name=ld gives a path.
10360   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10361 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10362   case $host in
10363   *-*-mingw*)
10364     # gcc leaves a trailing carriage return which upsets mingw
10365     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10366   *)
10367     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10368   esac
10369   case $ac_prog in
10370     # Accept absolute paths.
10371     [\\/]* | [A-Za-z]:[\\/]*)
10372       re_direlt='/[^/][^/]*/\.\./'
10373       # Canonicalize the path of ld
10374       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10375       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10376         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10377       done
10378       test -z "$LD" && LD="$ac_prog"
10379       ;;
10380   "")
10381     # If it fails, then pretend we aren't using GCC.
10382     ac_prog=ld
10383     ;;
10384   *)
10385     # If it is relative, then search for the first ld in PATH.
10386     with_gnu_ld=unknown
10387     ;;
10388   esac
10389 elif test "$with_gnu_ld" = yes; then
10390   echo "$as_me:$LINENO: checking for GNU ld" >&5
10391 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10392 else
10393   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10394 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10395 fi
10396 if test "${acl_cv_path_LD+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   if test -z "$LD"; then
10400   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10401   for ac_dir in $PATH; do
10402     test -z "$ac_dir" && ac_dir=.
10403     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10404       acl_cv_path_LD="$ac_dir/$ac_prog"
10405       # Check to see if the program is GNU ld.  I'd rather use --version,
10406       # but apparently some GNU ld's only accept -v.
10407       # Break only if it was the GNU/non-GNU ld that we prefer.
10408       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10409         test "$with_gnu_ld" != no && break
10410       else
10411         test "$with_gnu_ld" != yes && break
10412       fi
10413     fi
10414   done
10415   IFS="$ac_save_ifs"
10416 else
10417   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10418 fi
10419 fi
10420
10421 LD="$acl_cv_path_LD"
10422 if test -n "$LD"; then
10423   echo "$as_me:$LINENO: result: $LD" >&5
10424 echo "${ECHO_T}$LD" >&6
10425 else
10426   echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6
10428 fi
10429 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10430 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10431    { (exit 1); exit 1; }; }
10432 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10433 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10434 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10438 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10439   acl_cv_prog_gnu_ld=yes
10440 else
10441   acl_cv_prog_gnu_ld=no
10442 fi
10443 fi
10444 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10445 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10446 with_gnu_ld=$acl_cv_prog_gnu_ld
10447
10448
10449
10450                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10451 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10452 if test "${acl_cv_rpath+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455
10456     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10457     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10458     . ./conftest.sh
10459     rm -f ./conftest.sh
10460     acl_cv_rpath=done
10461
10462 fi
10463 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10464 echo "${ECHO_T}$acl_cv_rpath" >&6
10465   wl="$acl_cv_wl"
10466   libext="$acl_cv_libext"
10467   shlibext="$acl_cv_shlibext"
10468   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10469   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10470   hardcode_direct="$acl_cv_hardcode_direct"
10471   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10472     # Check whether --enable-rpath or --disable-rpath was given.
10473 if test "${enable_rpath+set}" = set; then
10474   enableval="$enable_rpath"
10475   :
10476 else
10477   enable_rpath=yes
10478 fi;
10479
10480
10481
10482
10483
10484
10485
10486     use_additional=yes
10487
10488   acl_save_prefix="$prefix"
10489   prefix="$acl_final_prefix"
10490   acl_save_exec_prefix="$exec_prefix"
10491   exec_prefix="$acl_final_exec_prefix"
10492
10493     eval additional_includedir=\"$includedir\"
10494     eval additional_libdir=\"$libdir\"
10495
10496   exec_prefix="$acl_save_exec_prefix"
10497   prefix="$acl_save_prefix"
10498
10499
10500 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10501 if test "${with_libiconv_prefix+set}" = set; then
10502   withval="$with_libiconv_prefix"
10503
10504     if test "X$withval" = "Xno"; then
10505       use_additional=no
10506     else
10507       if test "X$withval" = "X"; then
10508
10509   acl_save_prefix="$prefix"
10510   prefix="$acl_final_prefix"
10511   acl_save_exec_prefix="$exec_prefix"
10512   exec_prefix="$acl_final_exec_prefix"
10513
10514           eval additional_includedir=\"$includedir\"
10515           eval additional_libdir=\"$libdir\"
10516
10517   exec_prefix="$acl_save_exec_prefix"
10518   prefix="$acl_save_prefix"
10519
10520       else
10521         additional_includedir="$withval/include"
10522         additional_libdir="$withval/lib"
10523       fi
10524     fi
10525
10526 fi;
10527       LIBICONV=
10528   LTLIBICONV=
10529   INCICONV=
10530   rpathdirs=
10531   ltrpathdirs=
10532   names_already_handled=
10533   names_next_round='iconv '
10534   while test -n "$names_next_round"; do
10535     names_this_round="$names_next_round"
10536     names_next_round=
10537     for name in $names_this_round; do
10538       already_handled=
10539       for n in $names_already_handled; do
10540         if test "$n" = "$name"; then
10541           already_handled=yes
10542           break
10543         fi
10544       done
10545       if test -z "$already_handled"; then
10546         names_already_handled="$names_already_handled $name"
10547                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10548         eval value=\"\$HAVE_LIB$uppername\"
10549         if test -n "$value"; then
10550           if test "$value" = yes; then
10551             eval value=\"\$LIB$uppername\"
10552             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10553             eval value=\"\$LTLIB$uppername\"
10554             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10555           else
10556                                     :
10557           fi
10558         else
10559                               found_dir=
10560           found_la=
10561           found_so=
10562           found_a=
10563           if test $use_additional = yes; then
10564             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10565               found_dir="$additional_libdir"
10566               found_so="$additional_libdir/lib$name.$shlibext"
10567               if test -f "$additional_libdir/lib$name.la"; then
10568                 found_la="$additional_libdir/lib$name.la"
10569               fi
10570             else
10571               if test -f "$additional_libdir/lib$name.$libext"; then
10572                 found_dir="$additional_libdir"
10573                 found_a="$additional_libdir/lib$name.$libext"
10574                 if test -f "$additional_libdir/lib$name.la"; then
10575                   found_la="$additional_libdir/lib$name.la"
10576                 fi
10577               fi
10578             fi
10579           fi
10580           if test "X$found_dir" = "X"; then
10581             for x in $LDFLAGS $LTLIBICONV; do
10582
10583   acl_save_prefix="$prefix"
10584   prefix="$acl_final_prefix"
10585   acl_save_exec_prefix="$exec_prefix"
10586   exec_prefix="$acl_final_exec_prefix"
10587   eval x=\"$x\"
10588   exec_prefix="$acl_save_exec_prefix"
10589   prefix="$acl_save_prefix"
10590
10591               case "$x" in
10592                 -L*)
10593                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10594                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10595                     found_dir="$dir"
10596                     found_so="$dir/lib$name.$shlibext"
10597                     if test -f "$dir/lib$name.la"; then
10598                       found_la="$dir/lib$name.la"
10599                     fi
10600                   else
10601                     if test -f "$dir/lib$name.$libext"; then
10602                       found_dir="$dir"
10603                       found_a="$dir/lib$name.$libext"
10604                       if test -f "$dir/lib$name.la"; then
10605                         found_la="$dir/lib$name.la"
10606                       fi
10607                     fi
10608                   fi
10609                   ;;
10610               esac
10611               if test "X$found_dir" != "X"; then
10612                 break
10613               fi
10614             done
10615           fi
10616           if test "X$found_dir" != "X"; then
10617                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10618             if test "X$found_so" != "X"; then
10619                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10620                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10621               else
10622                                                                                 haveit=
10623                 for x in $ltrpathdirs; do
10624                   if test "X$x" = "X$found_dir"; then
10625                     haveit=yes
10626                     break
10627                   fi
10628                 done
10629                 if test -z "$haveit"; then
10630                   ltrpathdirs="$ltrpathdirs $found_dir"
10631                 fi
10632                                 if test "$hardcode_direct" = yes; then
10633                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10634                 else
10635                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10636                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10637                                                             haveit=
10638                     for x in $rpathdirs; do
10639                       if test "X$x" = "X$found_dir"; then
10640                         haveit=yes
10641                         break
10642                       fi
10643                     done
10644                     if test -z "$haveit"; then
10645                       rpathdirs="$rpathdirs $found_dir"
10646                     fi
10647                   else
10648                                                                                 haveit=
10649                     for x in $LDFLAGS $LIBICONV; do
10650
10651   acl_save_prefix="$prefix"
10652   prefix="$acl_final_prefix"
10653   acl_save_exec_prefix="$exec_prefix"
10654   exec_prefix="$acl_final_exec_prefix"
10655   eval x=\"$x\"
10656   exec_prefix="$acl_save_exec_prefix"
10657   prefix="$acl_save_prefix"
10658
10659                       if test "X$x" = "X-L$found_dir"; then
10660                         haveit=yes
10661                         break
10662                       fi
10663                     done
10664                     if test -z "$haveit"; then
10665                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10666                     fi
10667                     if test "$hardcode_minus_L" != no; then
10668                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10669                     else
10670                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10671                     fi
10672                   fi
10673                 fi
10674               fi
10675             else
10676               if test "X$found_a" != "X"; then
10677                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10678               else
10679                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10680               fi
10681             fi
10682                         additional_includedir=
10683             case "$found_dir" in
10684               */lib | */lib/)
10685                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10686                 additional_includedir="$basedir/include"
10687                 ;;
10688             esac
10689             if test "X$additional_includedir" != "X"; then
10690                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10691                 haveit=
10692                 if test "X$additional_includedir" = "X/usr/local/include"; then
10693                   if test -n "$GCC"; then
10694                     case $host_os in
10695                       linux*) haveit=yes;;
10696                     esac
10697                   fi
10698                 fi
10699                 if test -z "$haveit"; then
10700                   for x in $CPPFLAGS $INCICONV; do
10701
10702   acl_save_prefix="$prefix"
10703   prefix="$acl_final_prefix"
10704   acl_save_exec_prefix="$exec_prefix"
10705   exec_prefix="$acl_final_exec_prefix"
10706   eval x=\"$x\"
10707   exec_prefix="$acl_save_exec_prefix"
10708   prefix="$acl_save_prefix"
10709
10710                     if test "X$x" = "X-I$additional_includedir"; then
10711                       haveit=yes
10712                       break
10713                     fi
10714                   done
10715                   if test -z "$haveit"; then
10716                     if test -d "$additional_includedir"; then
10717                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10718                     fi
10719                   fi
10720                 fi
10721               fi
10722             fi
10723                         if test -n "$found_la"; then
10724                                                         save_libdir="$libdir"
10725               case "$found_la" in
10726                 */* | *\\*) . "$found_la" ;;
10727                 *) . "./$found_la" ;;
10728               esac
10729               libdir="$save_libdir"
10730                             for dep in $dependency_libs; do
10731                 case "$dep" in
10732                   -L*)
10733                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10734                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10735                       haveit=
10736                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10737                         if test -n "$GCC"; then
10738                           case $host_os in
10739                             linux*) haveit=yes;;
10740                           esac
10741                         fi
10742                       fi
10743                       if test -z "$haveit"; then
10744                         haveit=
10745                         for x in $LDFLAGS $LIBICONV; do
10746
10747   acl_save_prefix="$prefix"
10748   prefix="$acl_final_prefix"
10749   acl_save_exec_prefix="$exec_prefix"
10750   exec_prefix="$acl_final_exec_prefix"
10751   eval x=\"$x\"
10752   exec_prefix="$acl_save_exec_prefix"
10753   prefix="$acl_save_prefix"
10754
10755                           if test "X$x" = "X-L$additional_libdir"; then
10756                             haveit=yes
10757                             break
10758                           fi
10759                         done
10760                         if test -z "$haveit"; then
10761                           if test -d "$additional_libdir"; then
10762                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10763                           fi
10764                         fi
10765                         haveit=
10766                         for x in $LDFLAGS $LTLIBICONV; do
10767
10768   acl_save_prefix="$prefix"
10769   prefix="$acl_final_prefix"
10770   acl_save_exec_prefix="$exec_prefix"
10771   exec_prefix="$acl_final_exec_prefix"
10772   eval x=\"$x\"
10773   exec_prefix="$acl_save_exec_prefix"
10774   prefix="$acl_save_prefix"
10775
10776                           if test "X$x" = "X-L$additional_libdir"; then
10777                             haveit=yes
10778                             break
10779                           fi
10780                         done
10781                         if test -z "$haveit"; then
10782                           if test -d "$additional_libdir"; then
10783                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10784                           fi
10785                         fi
10786                       fi
10787                     fi
10788                     ;;
10789                   -R*)
10790                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10791                     if test "$enable_rpath" != no; then
10792                                                                   haveit=
10793                       for x in $rpathdirs; do
10794                         if test "X$x" = "X$dir"; then
10795                           haveit=yes
10796                           break
10797                         fi
10798                       done
10799                       if test -z "$haveit"; then
10800                         rpathdirs="$rpathdirs $dir"
10801                       fi
10802                                                                   haveit=
10803                       for x in $ltrpathdirs; do
10804                         if test "X$x" = "X$dir"; then
10805                           haveit=yes
10806                           break
10807                         fi
10808                       done
10809                       if test -z "$haveit"; then
10810                         ltrpathdirs="$ltrpathdirs $dir"
10811                       fi
10812                     fi
10813                     ;;
10814                   -l*)
10815                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10816                     ;;
10817                   *.la)
10818                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10819                     ;;
10820                   *)
10821                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10822                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10823                     ;;
10824                 esac
10825               done
10826             fi
10827           else
10828                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10829             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10830           fi
10831         fi
10832       fi
10833     done
10834   done
10835   if test "X$rpathdirs" != "X"; then
10836     if test -n "$hardcode_libdir_separator"; then
10837                         alldirs=
10838       for found_dir in $rpathdirs; do
10839         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10840       done
10841             acl_save_libdir="$libdir"
10842       libdir="$alldirs"
10843       eval flag=\"$hardcode_libdir_flag_spec\"
10844       libdir="$acl_save_libdir"
10845       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10846     else
10847             for found_dir in $rpathdirs; do
10848         acl_save_libdir="$libdir"
10849         libdir="$found_dir"
10850         eval flag=\"$hardcode_libdir_flag_spec\"
10851         libdir="$acl_save_libdir"
10852         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10853       done
10854     fi
10855   fi
10856   if test "X$ltrpathdirs" != "X"; then
10857             for found_dir in $ltrpathdirs; do
10858       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10859     done
10860   fi
10861
10862
10863
10864
10865
10866
10867
10868           am_save_CPPFLAGS="$CPPFLAGS"
10869
10870   for element in $INCICONV; do
10871     haveit=
10872     for x in $CPPFLAGS; do
10873
10874   acl_save_prefix="$prefix"
10875   prefix="$acl_final_prefix"
10876   acl_save_exec_prefix="$exec_prefix"
10877   exec_prefix="$acl_final_exec_prefix"
10878   eval x=\"$x\"
10879   exec_prefix="$acl_save_exec_prefix"
10880   prefix="$acl_save_prefix"
10881
10882       if test "X$x" = "X$element"; then
10883         haveit=yes
10884         break
10885       fi
10886     done
10887     if test -z "$haveit"; then
10888       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10889     fi
10890   done
10891
10892
10893   echo "$as_me:$LINENO: checking for iconv" >&5
10894 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10895 if test "${am_cv_func_iconv+set}" = set; then
10896   echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898
10899     am_cv_func_iconv="no, consider installing GNU libiconv"
10900     am_cv_lib_iconv=no
10901     cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 #include <stdlib.h>
10908 #include <iconv.h>
10909 int
10910 main ()
10911 {
10912 iconv_t cd = iconv_open("","");
10913        iconv(cd,NULL,NULL,NULL,NULL);
10914        iconv_close(cd);
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext conftest$ac_exeext
10920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10921   (eval $ac_link) 2>conftest.er1
10922   ac_status=$?
10923   grep -v '^ *+' conftest.er1 >conftest.err
10924   rm -f conftest.er1
10925   cat conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } &&
10928          { ac_try='test -z "$ac_c_werror_flag"
10929                          || test ! -s conftest.err'
10930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931   (eval $ac_try) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; } &&
10935          { ac_try='test -s conftest$ac_exeext'
10936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937   (eval $ac_try) 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; }; then
10941   am_cv_func_iconv=yes
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 fi
10947 rm -f conftest.err conftest.$ac_objext \
10948       conftest$ac_exeext conftest.$ac_ext
10949     if test "$am_cv_func_iconv" != yes; then
10950       am_save_LIBS="$LIBS"
10951       LIBS="$LIBS $LIBICONV"
10952       cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 #include <stdlib.h>
10959 #include <iconv.h>
10960 int
10961 main ()
10962 {
10963 iconv_t cd = iconv_open("","");
10964          iconv(cd,NULL,NULL,NULL,NULL);
10965          iconv_close(cd);
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972   (eval $ac_link) 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } &&
10979          { ac_try='test -z "$ac_c_werror_flag"
10980                          || test ! -s conftest.err'
10981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982   (eval $ac_try) 2>&5
10983   ac_status=$?
10984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985   (exit $ac_status); }; } &&
10986          { ac_try='test -s conftest$ac_exeext'
10987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10988   (eval $ac_try) 2>&5
10989   ac_status=$?
10990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991   (exit $ac_status); }; }; then
10992   am_cv_lib_iconv=yes
10993         am_cv_func_iconv=yes
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 fi
10999 rm -f conftest.err conftest.$ac_objext \
11000       conftest$ac_exeext conftest.$ac_ext
11001       LIBS="$am_save_LIBS"
11002     fi
11003
11004 fi
11005 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11006 echo "${ECHO_T}$am_cv_func_iconv" >&6
11007   if test "$am_cv_func_iconv" = yes; then
11008
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_ICONV 1
11011 _ACEOF
11012
11013   fi
11014   if test "$am_cv_lib_iconv" = yes; then
11015     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11016 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11017     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11018 echo "${ECHO_T}$LIBICONV" >&6
11019   else
11020             CPPFLAGS="$am_save_CPPFLAGS"
11021     LIBICONV=
11022     LTLIBICONV=
11023   fi
11024
11025
11026
11027   if test "$am_cv_func_iconv" = yes; then
11028     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11029 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11030     if test "${am_cv_proto_iconv+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033
11034       cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040
11041 #include <stdlib.h>
11042 #include <iconv.h>
11043 extern
11044 #ifdef __cplusplus
11045 "C"
11046 #endif
11047 #if defined(__STDC__) || defined(__cplusplus)
11048 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11049 #else
11050 size_t iconv();
11051 #endif
11052
11053 int
11054 main ()
11055 {
11056
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 rm -f conftest.$ac_objext
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063   (eval $ac_compile) 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -z "$ac_c_werror_flag"
11071                          || test ! -s conftest.err'
11072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073   (eval $ac_try) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); }; } &&
11077          { ac_try='test -s conftest.$ac_objext'
11078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079   (eval $ac_try) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }; then
11083   am_cv_proto_iconv_arg1=""
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 am_cv_proto_iconv_arg1="const"
11089 fi
11090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11091       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);"
11092 fi
11093
11094     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11095     echo "$as_me:$LINENO: result: ${ac_t:-
11096          }$am_cv_proto_iconv" >&5
11097 echo "${ECHO_T}${ac_t:-
11098          }$am_cv_proto_iconv" >&6
11099
11100 cat >>confdefs.h <<_ACEOF
11101 #define ICONV_CONST $am_cv_proto_iconv_arg1
11102 _ACEOF
11103
11104   fi
11105
11106 # Until we have in-tree GNU iconv:
11107 LIBICONV_DEP=
11108
11109
11110
11111   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11112 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11113 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h.  */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h.  */
11122 #include <locale.h>
11123 int
11124 main ()
11125 {
11126 return LC_MESSAGES
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133   (eval $ac_link) 2>conftest.er1
11134   ac_status=$?
11135   grep -v '^ *+' conftest.er1 >conftest.err
11136   rm -f conftest.er1
11137   cat conftest.err >&5
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } &&
11140          { ac_try='test -z "$ac_c_werror_flag"
11141                          || test ! -s conftest.err'
11142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143   (eval $ac_try) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; } &&
11147          { ac_try='test -s conftest$ac_exeext'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   am_cv_val_LC_MESSAGES=yes
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 am_cv_val_LC_MESSAGES=no
11159 fi
11160 rm -f conftest.err conftest.$ac_objext \
11161       conftest$ac_exeext conftest.$ac_ext
11162 fi
11163 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11164 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11165   if test $am_cv_val_LC_MESSAGES = yes; then
11166
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_LC_MESSAGES 1
11169 _ACEOF
11170
11171   fi
11172
11173
11174
11175   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11176 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11177 if test "${am_cv_langinfo_codeset+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #include <langinfo.h>
11187 int
11188 main ()
11189 {
11190 char* cs = nl_langinfo(CODESET);
11191   ;
11192   return 0;
11193 }
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197   (eval $ac_link) 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } &&
11204          { ac_try='test -z "$ac_c_werror_flag"
11205                          || test ! -s conftest.err'
11206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207   (eval $ac_try) 2>&5
11208   ac_status=$?
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); }; } &&
11211          { ac_try='test -s conftest$ac_exeext'
11212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11213   (eval $ac_try) 2>&5
11214   ac_status=$?
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); }; }; then
11217   am_cv_langinfo_codeset=yes
11218 else
11219   echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 am_cv_langinfo_codeset=no
11223 fi
11224 rm -f conftest.err conftest.$ac_objext \
11225       conftest$ac_exeext conftest.$ac_ext
11226
11227 fi
11228 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11229 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11230   if test $am_cv_langinfo_codeset = yes; then
11231
11232 cat >>confdefs.h <<\_ACEOF
11233 #define HAVE_LANGINFO_CODESET 1
11234 _ACEOF
11235
11236   fi
11237
11238
11239 # We will need to find libiberty.h and ansidecl.h
11240 saved_CFLAGS="$CFLAGS"
11241 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11282         strsignal strstr strverscmp \
11283         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11284         free basename getopt clock getpagesize clearerr_unlocked feof_unlocked   ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked   fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked   fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked   putchar_unlocked putc_unlocked
11285 do
11286   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11287 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11288 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11289 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11290   echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292   cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h.  */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h.  */
11298 #undef $ac_tr_decl
11299 #define $ac_tr_decl 1
11300
11301 #include "ansidecl.h"
11302 #include "system.h"
11303
11304 int
11305 main ()
11306 {
11307 #ifndef $ac_func
11308 char *(*pfn) = (char *(*)) $ac_func ;
11309 #endif
11310   ;
11311   return 0;
11312 }
11313 _ACEOF
11314 rm -f conftest.$ac_objext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11316   (eval $ac_compile) 2>conftest.er1
11317   ac_status=$?
11318   grep -v '^ *+' conftest.er1 >conftest.err
11319   rm -f conftest.er1
11320   cat conftest.err >&5
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } &&
11323          { ac_try='test -z "$ac_c_werror_flag"
11324                          || test ! -s conftest.err'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; } &&
11330          { ac_try='test -s conftest.$ac_objext'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; }; then
11336   eval "gcc_cv_have_decl_$ac_func=yes"
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 eval "gcc_cv_have_decl_$ac_func=no"
11342 fi
11343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11344 fi
11345
11346 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11347   echo "$as_me:$LINENO: result: yes" >&5
11348 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11349 #define $ac_tr_decl 1
11350 _ACEOF
11351
11352 else
11353   echo "$as_me:$LINENO: result: no" >&5
11354 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11355 #define $ac_tr_decl 0
11356 _ACEOF
11357
11358 fi
11359
11360 done
11361
11362
11363
11364
11365
11366 for ac_func in getrlimit setrlimit getrusage
11367 do
11368   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11369 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11370 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11371 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 #undef $ac_tr_decl
11381 #define $ac_tr_decl 1
11382
11383 #include "ansidecl.h"
11384 #include "system.h"
11385 #ifdef HAVE_SYS_RESOURCE_H
11386 #include <sys/resource.h>
11387 #endif
11388
11389
11390 int
11391 main ()
11392 {
11393 #ifndef $ac_func
11394 char *(*pfn) = (char *(*)) $ac_func ;
11395 #endif
11396   ;
11397   return 0;
11398 }
11399 _ACEOF
11400 rm -f conftest.$ac_objext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11402   (eval $ac_compile) 2>conftest.er1
11403   ac_status=$?
11404   grep -v '^ *+' conftest.er1 >conftest.err
11405   rm -f conftest.er1
11406   cat conftest.err >&5
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); } &&
11409          { ac_try='test -z "$ac_c_werror_flag"
11410                          || test ! -s conftest.err'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; } &&
11416          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11422   eval "gcc_cv_have_decl_$ac_func=yes"
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 eval "gcc_cv_have_decl_$ac_func=no"
11428 fi
11429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11430 fi
11431
11432 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11433   echo "$as_me:$LINENO: result: yes" >&5
11434 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11435 #define $ac_tr_decl 1
11436 _ACEOF
11437
11438 else
11439   echo "$as_me:$LINENO: result: no" >&5
11440 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11441 #define $ac_tr_decl 0
11442 _ACEOF
11443
11444 fi
11445
11446 done
11447
11448
11449 cat >conftest.$ac_ext <<_ACEOF
11450 /* confdefs.h.  */
11451 _ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h.  */
11455
11456 #include "ansidecl.h"
11457 #include "system.h"
11458 #ifdef HAVE_SYS_RESOURCE_H
11459 #include <sys/resource.h>
11460 #endif
11461
11462 int
11463 main ()
11464 {
11465 rlim_t l = 0;
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 rm -f conftest.$ac_objext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472   (eval $ac_compile) 2>conftest.er1
11473   ac_status=$?
11474   grep -v '^ *+' conftest.er1 >conftest.err
11475   rm -f conftest.er1
11476   cat conftest.err >&5
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } &&
11479          { ac_try='test -z "$ac_c_werror_flag"
11480                          || test ! -s conftest.err'
11481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482   (eval $ac_try) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); }; } &&
11486          { ac_try='test -s conftest.$ac_objext'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   :
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497
11498 cat >>confdefs.h <<\_ACEOF
11499 #define rlim_t long
11500 _ACEOF
11501
11502 fi
11503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11504
11505 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11506 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11507 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11508 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11509
11510 for ac_func in ldgetname
11511 do
11512   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11513 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11514 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11515 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   cat >conftest.$ac_ext <<_ACEOF
11519 /* confdefs.h.  */
11520 _ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h.  */
11524 #undef $ac_tr_decl
11525 #define $ac_tr_decl 1
11526
11527 #include "ansidecl.h"
11528 #include "system.h"
11529 #ifdef HAVE_LDFCN_H
11530 #undef FREAD
11531 #undef FWRITE
11532 #include <ldfcn.h>
11533 #endif
11534
11535
11536 int
11537 main ()
11538 {
11539 #ifndef $ac_func
11540 char *(*pfn) = (char *(*)) $ac_func ;
11541 #endif
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11548   (eval $ac_compile) 2>conftest.er1
11549   ac_status=$?
11550   grep -v '^ *+' conftest.er1 >conftest.err
11551   rm -f conftest.er1
11552   cat conftest.err >&5
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); } &&
11555          { ac_try='test -z "$ac_c_werror_flag"
11556                          || test ! -s conftest.err'
11557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558   (eval $ac_try) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; } &&
11562          { ac_try='test -s conftest.$ac_objext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   eval "gcc_cv_have_decl_$ac_func=yes"
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 eval "gcc_cv_have_decl_$ac_func=no"
11574 fi
11575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11576 fi
11577
11578 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11579   echo "$as_me:$LINENO: result: yes" >&5
11580 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11581 #define $ac_tr_decl 1
11582 _ACEOF
11583
11584 else
11585   echo "$as_me:$LINENO: result: no" >&5
11586 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11587 #define $ac_tr_decl 0
11588 _ACEOF
11589
11590 fi
11591
11592 done
11593
11594
11595
11596 for ac_func in times
11597 do
11598   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11599 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11600 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11601 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604   cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h.  */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h.  */
11610 #undef $ac_tr_decl
11611 #define $ac_tr_decl 1
11612
11613 #include "ansidecl.h"
11614 #include "system.h"
11615 #ifdef HAVE_SYS_TIMES_H
11616 #include <sys/times.h>
11617 #endif
11618
11619
11620 int
11621 main ()
11622 {
11623 #ifndef $ac_func
11624 char *(*pfn) = (char *(*)) $ac_func ;
11625 #endif
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_c_werror_flag"
11640                          || test ! -s conftest.err'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   eval "gcc_cv_have_decl_$ac_func=yes"
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 eval "gcc_cv_have_decl_$ac_func=no"
11658 fi
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 fi
11661
11662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11663   echo "$as_me:$LINENO: result: yes" >&5
11664 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11665 #define $ac_tr_decl 1
11666 _ACEOF
11667
11668 else
11669   echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11671 #define $ac_tr_decl 0
11672 _ACEOF
11673
11674 fi
11675
11676 done
11677
11678
11679 # More time-related stuff.
11680 echo "$as_me:$LINENO: checking for struct tms" >&5
11681 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11682 if test "${ac_cv_struct_tms+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692
11693 #include "ansidecl.h"
11694 #include "system.h"
11695 #ifdef HAVE_SYS_TIMES_H
11696 #include <sys/times.h>
11697 #endif
11698
11699 int
11700 main ()
11701 {
11702 struct tms tms;
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709   (eval $ac_compile) 2>conftest.er1
11710   ac_status=$?
11711   grep -v '^ *+' conftest.er1 >conftest.err
11712   rm -f conftest.er1
11713   cat conftest.err >&5
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } &&
11716          { ac_try='test -z "$ac_c_werror_flag"
11717                          || test ! -s conftest.err'
11718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719   (eval $ac_try) 2>&5
11720   ac_status=$?
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); }; } &&
11723          { ac_try='test -s conftest.$ac_objext'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; }; then
11729   ac_cv_struct_tms=yes
11730 else
11731   echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 ac_cv_struct_tms=no
11735 fi
11736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11737 fi
11738 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11739 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11740 if test $ac_cv_struct_tms = yes; then
11741
11742 cat >>confdefs.h <<\_ACEOF
11743 #define HAVE_STRUCT_TMS 1
11744 _ACEOF
11745
11746 fi
11747
11748 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11749 # revisit after autoconf 2.50.
11750 echo "$as_me:$LINENO: checking for clock_t" >&5
11751 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11752 if test "${gcc_cv_type_clock_t+set}" = set; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755
11756 cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 #include "ansidecl.h"
11764 #include "system.h"
11765
11766 int
11767 main ()
11768 {
11769 clock_t x;
11770   ;
11771   return 0;
11772 }
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11776   (eval $ac_compile) 2>conftest.er1
11777   ac_status=$?
11778   grep -v '^ *+' conftest.er1 >conftest.err
11779   rm -f conftest.er1
11780   cat conftest.err >&5
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -z "$ac_c_werror_flag"
11784                          || test ! -s conftest.err'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; } &&
11790          { ac_try='test -s conftest.$ac_objext'
11791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11792   (eval $ac_try) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); }; }; then
11796   gcc_cv_type_clock_t=yes
11797 else
11798   echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 gcc_cv_type_clock_t=no
11802 fi
11803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11804 fi
11805 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11806 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11807 if test $gcc_cv_type_clock_t = yes; then
11808
11809 cat >>confdefs.h <<\_ACEOF
11810 #define HAVE_CLOCK_T 1
11811 _ACEOF
11812
11813 fi
11814
11815 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11816 CFLAGS="$saved_CFLAGS"
11817
11818 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11819 if test "${enable_initfini_array+set}" = set; then
11820   enableval="$enable_initfini_array"
11821
11822 else
11823
11824 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11825 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11826 if test "${gcc_cv_initfini_array+set}" = set; then
11827   echo $ECHO_N "(cached) $ECHO_C" >&6
11828 else
11829     if test "$cross_compiling" = yes; then
11830   gcc_cv_initfini_array=no
11831 else
11832   cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838
11839 static int x = -1;
11840 int main (void) { return x; }
11841 int foo (void) { x = 0; }
11842 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11843 _ACEOF
11844 rm -f conftest$ac_exeext
11845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11846   (eval $ac_link) 2>&5
11847   ac_status=$?
11848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   gcc_cv_initfini_array=yes
11856 else
11857   echo "$as_me: program exited with status $ac_status" >&5
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11860
11861 ( exit $ac_status )
11862 gcc_cv_initfini_array=no
11863 fi
11864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11865 fi
11866 fi
11867 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11868 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11869   enable_initfini_array=$gcc_cv_initfini_array
11870
11871 fi;
11872 if test $enable_initfini_array = yes; then
11873
11874 cat >>confdefs.h <<\_ACEOF
11875 #define HAVE_INITFINI_ARRAY 1
11876 _ACEOF
11877
11878 fi
11879
11880 # mkdir takes a single argument on some systems.
11881 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11882 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11883 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11884   echo $ECHO_N "(cached) $ECHO_C" >&6
11885 else
11886   cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892
11893 #include <sys/types.h>
11894 #ifdef HAVE_SYS_STAT_H
11895 # include <sys/stat.h>
11896 #endif
11897 #ifdef HAVE_UNISTD_H
11898 # include <unistd.h>
11899 #endif
11900 #ifdef HAVE_DIRECT_H
11901 # include <direct.h>
11902 #endif
11903 int
11904 main ()
11905 {
11906 mkdir ("foo", 0);
11907   ;
11908   return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11913   (eval $ac_compile) 2>conftest.er1
11914   ac_status=$?
11915   grep -v '^ *+' conftest.er1 >conftest.err
11916   rm -f conftest.er1
11917   cat conftest.err >&5
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } &&
11920          { ac_try='test -z "$ac_c_werror_flag"
11921                          || test ! -s conftest.err'
11922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923   (eval $ac_try) 2>&5
11924   ac_status=$?
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); }; } &&
11927          { ac_try='test -s conftest.$ac_objext'
11928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929   (eval $ac_try) 2>&5
11930   ac_status=$?
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); }; }; then
11933   gcc_cv_mkdir_takes_one_arg=no
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938 gcc_cv_mkdir_takes_one_arg=yes
11939 fi
11940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11941 fi
11942 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11943 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11944 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11945
11946 cat >>confdefs.h <<\_ACEOF
11947 #define MKDIR_TAKES_ONE_ARG 1
11948 _ACEOF
11949
11950 fi
11951
11952
11953 # File extensions
11954 manext='.1'
11955 objext='.o'
11956
11957
11958
11959 # With Setjmp/Longjmp based exception handling.
11960 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11961 if test "${enable_sjlj_exceptions+set}" = set; then
11962   enableval="$enable_sjlj_exceptions"
11963   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11964
11965 cat >>confdefs.h <<_ACEOF
11966 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11967 _ACEOF
11968
11969 fi;
11970
11971 # For platforms with the unwind ABI which includes an unwind library,
11972 # libunwind, we can choose to use the system libunwind.
11973
11974 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11975 if test "${with_system_libunwind+set}" = set; then
11976   withval="$with_system_libunwind"
11977
11978 fi;
11979
11980 # --------------------------------------------------------
11981 # Build, host, and target specific configuration fragments
11982 # --------------------------------------------------------
11983
11984 # Collect build-machine-specific information.
11985 . ${srcdir}/config.build
11986
11987 # Collect host-machine-specific information.
11988 . ${srcdir}/config.host
11989
11990 target_gtfiles=
11991
11992 # Collect target-machine-specific information.
11993 . ${srcdir}/config.gcc
11994
11995 extra_objs="${host_extra_objs} ${extra_objs}"
11996 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11997
11998 # Default the target-machine variables that were not explicitly set.
11999 if test x"$tm_file" = x
12000 then tm_file=$cpu_type/$cpu_type.h; fi
12001
12002 if test x"$extra_headers" = x
12003 then extra_headers=; fi
12004
12005 if test x$md_file = x
12006 then md_file=$cpu_type/$cpu_type.md; fi
12007
12008 if test x$out_file = x
12009 then out_file=$cpu_type/$cpu_type.c; fi
12010
12011 if test x"$tmake_file" = x
12012 then tmake_file=$cpu_type/t-$cpu_type
12013 fi
12014
12015 if test x"$dwarf2" = xyes
12016 then tm_file="$tm_file tm-dwarf2.h"
12017 fi
12018
12019 # Say what files are being used for the output code and MD file.
12020 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12021 echo "Using \`$srcdir/config/$md_file' as machine description file."
12022
12023 # If any of the xm_file variables contain nonexistent files, warn
12024 # about them and drop them.
12025
12026 bx=
12027 for x in $build_xm_file; do
12028   if    test -f $srcdir/config/$x
12029   then      bx="$bx $x"
12030   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12031 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12032   fi
12033 done
12034 build_xm_file="$bx"
12035
12036 hx=
12037 for x in $host_xm_file; do
12038   if    test -f $srcdir/config/$x
12039   then      hx="$hx $x"
12040   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12041 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12042   fi
12043 done
12044 host_xm_file="$hx"
12045
12046 tx=
12047 for x in $xm_file; do
12048   if    test -f $srcdir/config/$x
12049   then      tx="$tx $x"
12050   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12051 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12052   fi
12053 done
12054 xm_file="$tx"
12055
12056 count=a
12057 for f in $tm_file; do
12058         count=${count}x
12059 done
12060 if test $count = ax; then
12061         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12062 else
12063         echo "Using the following target machine macro files:"
12064         for f in $tm_file; do
12065                 echo "  $srcdir/config/$f"
12066         done
12067 fi
12068
12069 if test x$need_64bit_hwint = xyes; then
12070
12071 cat >>confdefs.h <<\_ACEOF
12072 #define NEED_64BIT_HOST_WIDE_INT 1
12073 _ACEOF
12074
12075 fi
12076
12077 if test x$use_long_long_for_widest_fast_int = xyes; then
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12081 _ACEOF
12082
12083 fi
12084
12085 count=a
12086 for f in $host_xm_file; do
12087         count=${count}x
12088 done
12089 if test $count = a; then
12090         :
12091 elif test $count = ax; then
12092         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12093 else
12094         echo "Using the following host machine macro files:"
12095         for f in $host_xm_file; do
12096                 echo "  $srcdir/config/$f"
12097         done
12098 fi
12099 echo "Using ${out_host_hook_obj} for host machine hooks."
12100
12101 if test "$host_xm_file" != "$build_xm_file"; then
12102         count=a
12103         for f in $build_xm_file; do
12104                 count=${count}x
12105         done
12106         if test $count = a; then
12107                 :
12108         elif test $count = ax; then
12109                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12110         else
12111                 echo "Using the following build machine macro files:"
12112                 for f in $build_xm_file; do
12113                         echo "  $srcdir/config/$f"
12114                 done
12115         fi
12116 fi
12117
12118 # ---------
12119 # Threading
12120 # ---------
12121
12122 # Check if a valid thread package
12123 case ${enable_threads} in
12124   "" | no)
12125     # No threads
12126     target_thread_file='single'
12127     ;;
12128   yes)
12129     # default
12130     target_thread_file='single'
12131     ;;
12132   aix | dce | gnat | irix | posix | posix95 | rtems | \
12133   single | solaris | vxworks | win32 )
12134     target_thread_file=${enable_threads}
12135     ;;
12136   *)
12137     echo "${enable_threads} is an unknown thread package" 1>&2
12138     exit 1
12139     ;;
12140 esac
12141
12142 if test x${thread_file} = x; then
12143   # No thread file set by target-specific clauses in config.gcc,
12144   # so use file chosen by default logic above
12145   thread_file=${target_thread_file}
12146 fi
12147
12148 # Make gthr-default.h if we have a thread file.
12149 gthread_flags=
12150 if test $thread_file != single; then
12151   rm -f gthr-default.h
12152   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12153   gthread_flags=-DHAVE_GTHR_DEFAULT
12154 fi
12155
12156
12157 # --------
12158 # UNSORTED
12159 # --------
12160
12161 use_cxa_atexit=no
12162 if test x$enable___cxa_atexit = xyes || \
12163    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12164   if test x$host = x$target; then
12165     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12166 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12167 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12168   echo $ECHO_N "(cached) $ECHO_C" >&6
12169 else
12170   cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h.  */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h.  */
12176 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12177    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12178 #define __cxa_atexit innocuous___cxa_atexit
12179
12180 /* System header to define __stub macros and hopefully few prototypes,
12181     which can conflict with char __cxa_atexit (); below.
12182     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12183     <limits.h> exists even on freestanding compilers.  */
12184
12185 #ifdef __STDC__
12186 # include <limits.h>
12187 #else
12188 # include <assert.h>
12189 #endif
12190
12191 #undef __cxa_atexit
12192
12193 /* Override any gcc2 internal prototype to avoid an error.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 {
12197 #endif
12198 /* We use char because int might match the return type of a gcc2
12199    builtin and then its argument prototype would still apply.  */
12200 char __cxa_atexit ();
12201 /* The GNU C library defines this for functions which it implements
12202     to always fail with ENOSYS.  Some functions are actually named
12203     something starting with __ and the normal name is an alias.  */
12204 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12205 choke me
12206 #else
12207 char (*f) () = __cxa_atexit;
12208 #endif
12209 #ifdef __cplusplus
12210 }
12211 #endif
12212
12213 int
12214 main ()
12215 {
12216 return f != __cxa_atexit;
12217   ;
12218   return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext conftest$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223   (eval $ac_link) 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -z "$ac_c_werror_flag"
12231                          || test ! -s conftest.err'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; } &&
12237          { ac_try='test -s conftest$ac_exeext'
12238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12239   (eval $ac_try) 2>&5
12240   ac_status=$?
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); }; }; then
12243   ac_cv_func___cxa_atexit=yes
12244 else
12245   echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248 ac_cv_func___cxa_atexit=no
12249 fi
12250 rm -f conftest.err conftest.$ac_objext \
12251       conftest$ac_exeext conftest.$ac_ext
12252 fi
12253 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12254 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12255 if test $ac_cv_func___cxa_atexit = yes; then
12256   use_cxa_atexit=yes
12257 else
12258   echo "__cxa_atexit can't be enabled on this target"
12259 fi
12260
12261   else
12262     # We can't check for __cxa_atexit when building a cross, so assume
12263     # it is available
12264     use_cxa_atexit=yes
12265   fi
12266   if test x$use_cxa_atexit = xyes; then
12267
12268 cat >>confdefs.h <<\_ACEOF
12269 #define DEFAULT_USE_CXA_ATEXIT 1
12270 _ACEOF
12271
12272   fi
12273 fi
12274
12275 # Look for a file containing extra machine modes.
12276 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12277   extra_modes_file='$(srcdir)'/config/${extra_modes}
12278
12279
12280 cat >>confdefs.h <<_ACEOF
12281 #define EXTRA_MODES_FILE "config/$extra_modes"
12282 _ACEOF
12283
12284 fi
12285
12286 # Convert extra_options into a form suitable for Makefile use.
12287 extra_opt_files=
12288 for f in $extra_options; do
12289   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12290 done
12291
12292
12293 # auto-host.h is the file containing items generated by autoconf and is
12294 # the first file included by config.h.
12295 # If host=build, it is correct to have bconfig include auto-host.h
12296 # as well.  If host!=build, we are in error and need to do more
12297 # work to find out the build config parameters.
12298 if test x$host = x$build
12299 then
12300         build_auto=auto-host.h
12301 else
12302         # We create a subdir, then run autoconf in the subdir.
12303         # To prevent recursion we set host and build for the new
12304         # invocation of configure to the build for this invocation
12305         # of configure.
12306         tempdir=build.$$
12307         rm -rf $tempdir
12308         mkdir $tempdir
12309         cd $tempdir
12310         case ${srcdir} in
12311         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12312         *) realsrcdir=../${srcdir};;
12313         esac
12314         saved_CFLAGS="${CFLAGS}"
12315         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12316         ${realsrcdir}/configure \
12317                 --enable-languages=${enable_languages-all} \
12318                 --target=$target_alias --host=$build_alias --build=$build_alias
12319         CFLAGS="${saved_CFLAGS}"
12320
12321         # We just finished tests for the build machine, so rename
12322         # the file auto-build.h in the gcc directory.
12323         mv auto-host.h ../auto-build.h
12324         cd ..
12325         rm -rf $tempdir
12326         build_auto=auto-build.h
12327 fi
12328
12329
12330 tm_file="${tm_file} defaults.h"
12331 tm_p_file="${tm_p_file} tm-preds.h"
12332 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12333 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12334 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12335 # put this back in temporarily.
12336 xm_file="auto-host.h ansidecl.h ${xm_file}"
12337
12338 # --------
12339 # UNSORTED
12340 # --------
12341
12342 # Compile in configure arguments.
12343 if test -f configargs.h ; then
12344         # Being re-configured.
12345         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12346         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12347 else
12348         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12349 fi
12350
12351 # Double all backslashes and backslash all quotes to turn
12352 # gcc_config_arguments into a C string.
12353 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12354 $gcc_config_arguments
12355 EOF
12356 gcc_config_arguments_str=`cat conftest.out`
12357 rm -f conftest.out
12358
12359 cat > configargs.h <<EOF
12360 /* Generated automatically. */
12361 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12362 static const char thread_model[] = "$thread_file";
12363
12364 static const struct {
12365   const char *name, *value;
12366 } configure_default_options[] = $configure_default_options;
12367 EOF
12368
12369 # Internationalization
12370 # If we haven't got the data from the intl directory,
12371 # assume NLS is disabled.
12372 USE_NLS=no
12373 LIBINTL=
12374 LIBINTL_DEP=
12375 INCINTL=
12376 XGETTEXT=
12377 GMSGFMT=
12378 POSUB=
12379 if test -f ../intl/config.intl; then
12380   . ../intl/config.intl
12381 fi
12382 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12383 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12384 if test x"$USE_NLS" != xyes; then
12385   echo "$as_me:$LINENO: result: no" >&5
12386 echo "${ECHO_T}no" >&6
12387 else
12388   echo "$as_me:$LINENO: result: yes" >&5
12389 echo "${ECHO_T}yes" >&6
12390
12391 cat >>confdefs.h <<\_ACEOF
12392 #define ENABLE_NLS 1
12393 _ACEOF
12394
12395
12396   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12397 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12398   # Look for .po and .gmo files in the source directory.
12399   CATALOGS=
12400   XLINGUAS=
12401   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12402     # If there aren't any .gmo files the shell will give us the
12403     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12404     # weeded out.
12405     case "$cat" in *\**)
12406       continue;;
12407     esac
12408     # The quadruple backslash is collapsed to a double backslash
12409     # by the backticks, then collapsed again by the double quotes,
12410     # leaving us with one backslash in the sed expression (right
12411     # before the dot that mustn't act as a wildcard).
12412     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12413     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12414     # The user is allowed to set LINGUAS to a list of languages to
12415     # install catalogs for.  If it's empty that means "all of them."
12416     if test "x$LINGUAS" = x; then
12417       CATALOGS="$CATALOGS $cat"
12418       XLINGUAS="$XLINGUAS $lang"
12419     else
12420       case "$LINGUAS" in *$lang*)
12421         CATALOGS="$CATALOGS $cat"
12422         XLINGUAS="$XLINGUAS $lang"
12423         ;;
12424       esac
12425     fi
12426   done
12427   LINGUAS="$XLINGUAS"
12428   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12429 echo "${ECHO_T}$LINGUAS" >&6
12430 fi
12431
12432 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12433 # -liconv on the link line twice.
12434 case "$LIBINTL" in *$LIBICONV*)
12435         LIBICONV= ;;
12436 esac
12437
12438 # Check whether --enable-secureplt or --disable-secureplt was given.
12439 if test "${enable_secureplt+set}" = set; then
12440   enableval="$enable_secureplt"
12441
12442 fi;
12443
12444 # Windows32 Registry support for specifying GCC installation paths.
12445 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12446 if test "${enable_win32_registry+set}" = set; then
12447   enableval="$enable_win32_registry"
12448
12449 fi;
12450
12451 case $host_os in
12452   win32 | pe | cygwin* | mingw32* | uwin*)
12453     if test "x$enable_win32_registry" != xno; then
12454       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12455 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12456 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   ac_func_search_save_LIBS=$LIBS
12460 ac_cv_search_RegOpenKeyExA=no
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467
12468 /* Override any gcc2 internal prototype to avoid an error.  */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 /* We use char because int might match the return type of a gcc2
12473    builtin and then its argument prototype would still apply.  */
12474 char RegOpenKeyExA ();
12475 int
12476 main ()
12477 {
12478 RegOpenKeyExA ();
12479   ;
12480   return 0;
12481 }
12482 _ACEOF
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485   (eval $ac_link) 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } &&
12492          { ac_try='test -z "$ac_c_werror_flag"
12493                          || test ! -s conftest.err'
12494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495   (eval $ac_try) 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; } &&
12499          { ac_try='test -s conftest$ac_exeext'
12500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501   (eval $ac_try) 2>&5
12502   ac_status=$?
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); }; }; then
12505   ac_cv_search_RegOpenKeyExA="none required"
12506 else
12507   echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510 fi
12511 rm -f conftest.err conftest.$ac_objext \
12512       conftest$ac_exeext conftest.$ac_ext
12513 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12514   for ac_lib in advapi32; do
12515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12516     cat >conftest.$ac_ext <<_ACEOF
12517 /* confdefs.h.  */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h.  */
12522
12523 /* Override any gcc2 internal prototype to avoid an error.  */
12524 #ifdef __cplusplus
12525 extern "C"
12526 #endif
12527 /* We use char because int might match the return type of a gcc2
12528    builtin and then its argument prototype would still apply.  */
12529 char RegOpenKeyExA ();
12530 int
12531 main ()
12532 {
12533 RegOpenKeyExA ();
12534   ;
12535   return 0;
12536 }
12537 _ACEOF
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12540   (eval $ac_link) 2>conftest.er1
12541   ac_status=$?
12542   grep -v '^ *+' conftest.er1 >conftest.err
12543   rm -f conftest.er1
12544   cat conftest.err >&5
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); } &&
12547          { ac_try='test -z "$ac_c_werror_flag"
12548                          || test ! -s conftest.err'
12549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550   (eval $ac_try) 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }; } &&
12554          { ac_try='test -s conftest$ac_exeext'
12555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12556   (eval $ac_try) 2>&5
12557   ac_status=$?
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); }; }; then
12560   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12561 break
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 fi
12567 rm -f conftest.err conftest.$ac_objext \
12568       conftest$ac_exeext conftest.$ac_ext
12569   done
12570 fi
12571 LIBS=$ac_func_search_save_LIBS
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12574 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12575 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12576   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12577
12578 else
12579   enable_win32_registry=no
12580 fi
12581
12582     fi
12583
12584     if test "x$enable_win32_registry" != xno; then
12585
12586 cat >>confdefs.h <<\_ACEOF
12587 #define ENABLE_WIN32_REGISTRY 1
12588 _ACEOF
12589
12590
12591       if test "x$enable_win32_registry" != xyes \
12592          && test "x$enable_win32_registry" != x; then
12593
12594 cat >>confdefs.h <<_ACEOF
12595 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12596 _ACEOF
12597
12598       fi
12599     fi
12600   ;;
12601 esac
12602
12603 # Get an absolute path to the GCC top-level source directory
12604 holddir=`${PWDCMD-pwd}`
12605 cd $srcdir
12606 topdir=`${PWDCMD-pwd}`
12607 cd $holddir
12608
12609 # Conditionalize the makefile for this host machine.
12610 xmake_file=
12611 for f in ${host_xmake_file}
12612 do
12613         if test -f ${srcdir}/config/$f
12614         then
12615                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12616         fi
12617 done
12618
12619 # Conditionalize the makefile for this target machine.
12620 tmake_file_=
12621 for f in ${tmake_file}
12622 do
12623         if test -f ${srcdir}/config/$f
12624         then
12625                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12626         fi
12627 done
12628 tmake_file="${tmake_file_}"
12629
12630 # If the host doesn't support symlinks, modify CC in
12631 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12632 # Otherwise, we can use "CC=$(CC)".
12633 rm -f symtest.tem
12634 case "$LN_S" in
12635         *-s*)
12636                 cc_set_by_configure="\$(CC)"
12637                 quoted_cc_set_by_configure="\$(CC)"
12638                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12639                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12640                 ;;
12641         *)
12642                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12643                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12644                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12645                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12646                 ;;
12647 esac
12648
12649 # This is a terrible hack which will go away some day.
12650 host_cc_for_libada=${CC}
12651
12652
12653 out_object_file=`basename $out_file .c`.o
12654
12655 tm_file_list="options.h"
12656 tm_include_list="options.h"
12657 for f in $tm_file; do
12658   case $f in
12659     defaults.h )
12660        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12661        tm_include_list="${tm_include_list} $f"
12662        ;;
12663     * )
12664        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12665        tm_include_list="${tm_include_list} config/$f"
12666        ;;
12667   esac
12668 done
12669
12670 tm_p_file_list=
12671 tm_p_include_list=
12672 for f in $tm_p_file; do
12673   case $f in
12674     tm-preds.h )
12675        tm_p_file_list="${tm_p_file_list} $f"
12676        tm_p_include_list="${tm_p_include_list} $f"
12677        ;;
12678     * )
12679        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12680        tm_p_include_list="${tm_p_include_list} config/$f"
12681   esac
12682 done
12683
12684 xm_file_list=
12685 xm_include_list=
12686 for f in $xm_file; do
12687   case $f in
12688     ansidecl.h )
12689        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12690        xm_include_list="${xm_include_list} $f"
12691        ;;
12692     auto-host.h )
12693        xm_file_list="${xm_file_list} $f"
12694        xm_include_list="${xm_include_list} $f"
12695        ;;
12696     * )
12697        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12698        xm_include_list="${xm_include_list} config/$f"
12699        ;;
12700   esac
12701 done
12702
12703 host_xm_file_list=
12704 host_xm_include_list=
12705 for f in $host_xm_file; do
12706   case $f in
12707     ansidecl.h )
12708        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12709        host_xm_include_list="${host_xm_include_list} $f"
12710        ;;
12711     auto-host.h )
12712        host_xm_file_list="${host_xm_file_list} $f"
12713        host_xm_include_list="${host_xm_include_list} $f"
12714        ;;
12715     * )
12716        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12717        host_xm_include_list="${host_xm_include_list} config/$f"
12718        ;;
12719   esac
12720 done
12721
12722 build_xm_file_list=
12723 for f in $build_xm_file; do
12724   case $f in
12725     ansidecl.h )
12726        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12727        build_xm_include_list="${build_xm_include_list} $f"
12728        ;;
12729     auto-build.h | auto-host.h )
12730        build_xm_file_list="${build_xm_file_list} $f"
12731        build_xm_include_list="${build_xm_include_list} $f"
12732        ;;
12733     * )
12734        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12735        build_xm_include_list="${build_xm_include_list} config/$f"
12736        ;;
12737   esac
12738 done
12739
12740 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12741 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12742 CROSS=
12743 ALL=all.internal
12744 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12745
12746 if test "x$with_build_sysroot" != x; then
12747   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12748 else
12749   # This value is used, even on a native system, because
12750   # CROSS_SYSTEM_HEADER_DIR is just
12751   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12752   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12753 fi
12754
12755 if test x$host != x$target
12756 then
12757         CROSS="-DCROSS_COMPILE"
12758         ALL=all.cross
12759         SYSTEM_HEADER_DIR=$build_system_header_dir
12760         case "$host","$target" in
12761         # Darwin crosses can use the host system's libraries and headers,
12762         # because of the fat library support.  Of course, it must be the
12763         # same version of Darwin on both sides.  Allow the user to
12764         # just say --target=foo-darwin without a version number to mean
12765         # "the version on this system".
12766             *-*-darwin*,*-*-darwin*)
12767                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12768                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12769                 if test $hostos = $targetos -o $targetos = darwin ; then
12770                     CROSS=
12771                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12772                     with_headers=yes
12773                 fi
12774                 ;;
12775
12776             i?86-*-*,x86_64-*-* \
12777             | powerpc*-*-*,powerpc64*-*-*)
12778                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12779         esac
12780 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12781         SYSTEM_HEADER_DIR=$build_system_header_dir
12782 fi
12783
12784 # If this is a cross-compiler that does not
12785 # have its own set of headers then define
12786 # inhibit_libc
12787
12788 # If this is using newlib, without having the headers available now,
12789 # then define inhibit_libc in LIBGCC2_CFLAGS.
12790 # This prevents libgcc2 from containing any code which requires libc
12791 # support.
12792 inhibit_libc=false
12793 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12794        test x$with_newlib = xyes ; } &&
12795      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12796        inhibit_libc=true
12797 fi
12798
12799
12800 # When building gcc with a cross-compiler, we need to adjust things so
12801 # that the generator programs are still built with the native compiler.
12802 # Also, we cannot run fixincludes or fix-header.
12803
12804 # These are the normal (build=host) settings:
12805 CC_FOR_BUILD='$(CC)'
12806 BUILD_CFLAGS='$(ALL_CFLAGS)'
12807 STMP_FIXINC=stmp-fixinc
12808
12809 # Possibly disable fixproto, on a per-target basis.
12810 case ${use_fixproto} in
12811   no)
12812     STMP_FIXPROTO=
12813     ;;
12814   yes)
12815     STMP_FIXPROTO=stmp-fixproto
12816     ;;
12817 esac
12818
12819
12820 # And these apply if build != host, or we are generating coverage data
12821 if test x$build != x$host || test "x$coverage_flags" != x
12822 then
12823     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12824
12825     if test "x$TARGET_SYSTEM_ROOT" = x; then
12826         if test "x$STMP_FIXPROTO" != x; then
12827           STMP_FIXPROTO=stmp-install-fixproto
12828         fi
12829     fi
12830 fi
12831
12832 # Expand extra_headers to include complete path.
12833 # This substitutes for lots of t-* files.
12834 extra_headers_list=
12835 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12836 for file in ${extra_headers} ; do
12837   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12838 done
12839
12840 # Define collect2 in Makefile.
12841 case $host_can_use_collect2 in
12842   no) collect2= ;;
12843   *) collect2='collect2$(exeext)' ;;
12844 esac
12845
12846
12847 # Add a definition of USE_COLLECT2 if system wants one.
12848 case $use_collect2 in
12849   no) use_collect2= ;;
12850   "") ;;
12851   *)
12852     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12853     xm_defines="${xm_defines} USE_COLLECT2"
12854     case $host_can_use_collect2 in
12855       no)
12856         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12857 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12858    { (exit 1); exit 1; }; }
12859         ;;
12860     esac
12861     ;;
12862 esac
12863
12864 # ---------------------------
12865 # Assembler & linker features
12866 # ---------------------------
12867
12868 # Identify the assembler which will work hand-in-glove with the newly
12869 # built GCC, so that we can examine its features.  This is the assembler
12870 # which will be driven by the driver program.
12871 #
12872 # If build != host, and we aren't building gas in-tree, we identify a
12873 # build->target assembler and hope that it will have the same features
12874 # as the host->target assembler we'll be using.
12875 in_tree_gas=no
12876 gcc_cv_as=
12877 gcc_cv_gas_major_version=
12878 gcc_cv_gas_minor_version=
12879 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12880 if test -x "$DEFAULT_ASSEMBLER"; then
12881         gcc_cv_as="$DEFAULT_ASSEMBLER"
12882 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12883      && test -f ../gas/Makefile \
12884      && test x$build = x$host; then
12885   # Single tree build which includes gas.  We want to prefer it
12886   # over whatever linker top-level may have detected, since
12887   # we'll use what we're building after installation anyway.
12888   in_tree_gas=yes
12889   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12890 for f in $gcc_cv_as_bfd_srcdir/configure \
12891          $gcc_cv_as_gas_srcdir/configure \
12892          $gcc_cv_as_gas_srcdir/configure.in \
12893          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12894   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12895   if test x$gcc_cv_gas_version != x; then
12896     break
12897   fi
12898 done
12899 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12900 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12901 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12902 case $gcc_cv_gas_patch_version in
12903   "") gcc_cv_gas_patch_version="0" ;;
12904 esac
12905 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12906                             + $gcc_cv_gas_minor_version \) \* 1000 \
12907                             + $gcc_cv_gas_patch_version`
12908
12909   gcc_cv_as=../gas/as-new$build_exeext
12910   in_tree_gas_is_elf=no
12911   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12912      || (grep 'obj_format = multi' ../gas/Makefile \
12913          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12914   then
12915     in_tree_gas_is_elf=yes
12916   fi
12917 elif test -x as$build_exeext; then
12918         # Build using assembler in the current directory.
12919         gcc_cv_as=./as$build_exeext
12920 elif test -x "$AS_FOR_TARGET"; then
12921         gcc_cv_as="$AS_FOR_TARGET"
12922 elif test -x "$AS" && test x$host = x$target; then
12923         gcc_cv_as="$AS"
12924 fi
12925
12926
12927 # When searching for the assembler or linker, search the same directories
12928 # that the installed compiler will search.  Else we may find the wrong
12929 # assembler or linker and lose.  If we do not find a suitable binary,
12930 # then try the user's path.
12931 #
12932 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12933 if test "x$exec_prefix" = xNONE; then
12934         if test "x$prefix" = xNONE; then
12935                 gcc_cv_tool_prefix=/usr/local
12936         else
12937                 gcc_cv_tool_prefix=$prefix
12938         fi
12939 else
12940         gcc_cv_tool_prefix=$exec_prefix
12941 fi
12942
12943 if test x$host = x$build; then
12944     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12945     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12946     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12947     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12948     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12949     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12950 else
12951     gcc_cv_tool_dirs=
12952 fi
12953
12954 if test x$build = x$target; then
12955     # Rummage through tm_files looking for MD_EXEC_PREFIX
12956     md_dirs=
12957     for f in ${tm_file_list}; do
12958         if test -f $f; then
12959             if grep '^#[        ]*undef[        ]*MD_EXEC_PREFIX' $f > /dev/null; then
12960                 md_dirs=
12961             fi
12962             md_dirs="$md_dirs "`sed -n -e 's@^#[        ]*define[       ]*MD_EXEC_PREFIX[       ]*"\(.*\)/"@\1@p' < $f`
12963         fi
12964     done
12965     for f in ${md_dirs}; do
12966         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12967     done
12968 fi
12969
12970
12971
12972
12973 exec 6>/dev/null
12974 if test "x$gcc_cv_as" = x; then
12975         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
12976         # is empty.
12977         if test "x$gcc_cv_tool_dirs" = x; then
12978                 gcc_cv_as=
12979         else
12980                 for ac_prog in as
12981 do
12982   # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 echo "$as_me:$LINENO: checking for $ac_word" >&5
12985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12986 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12987   echo $ECHO_N "(cached) $ECHO_C" >&6
12988 else
12989   case $gcc_cv_as in
12990   [\\/]* | ?:[\\/]*)
12991   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12992   ;;
12993   *)
12994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $gcc_cv_tool_dirs
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999   for ac_exec_ext in '' $ac_executable_extensions; do
13000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13003     break 2
13004   fi
13005 done
13006 done
13007
13008   ;;
13009 esac
13010 fi
13011 gcc_cv_as=$ac_cv_path_gcc_cv_as
13012
13013 if test -n "$gcc_cv_as"; then
13014   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13015 echo "${ECHO_T}$gcc_cv_as" >&6
13016 else
13017   echo "$as_me:$LINENO: result: no" >&5
13018 echo "${ECHO_T}no" >&6
13019 fi
13020
13021   test -n "$gcc_cv_as" && break
13022 done
13023
13024         fi
13025 fi
13026 if test "x$gcc_cv_as" = x; then
13027         # If the loop above did not find a tool, then use whatever
13028         # one we can find in the users's path.  We are looking for a
13029         # ${build} -> ${target} tool.
13030         if test "x$program_prefix" != xNONE; then
13031                 default_tool_name=${program_prefix}as
13032         elif test x$build != x$host && test x$build != x$target; then
13033                 default_tool_name=${target_noncanonical}-as
13034         else
13035                 default_tool_name=`echo as | sed "${program_transform_name}"`
13036         fi
13037         for ac_prog in $default_tool_name
13038 do
13039   # Extract the first word of "$ac_prog", so it can be a program name with args.
13040 set dummy $ac_prog; ac_word=$2
13041 echo "$as_me:$LINENO: checking for $ac_word" >&5
13042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13043 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046   case $gcc_cv_as in
13047   [\\/]* | ?:[\\/]*)
13048   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13049   ;;
13050   *)
13051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054   IFS=$as_save_IFS
13055   test -z "$as_dir" && as_dir=.
13056   for ac_exec_ext in '' $ac_executable_extensions; do
13057   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13058     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13060     break 2
13061   fi
13062 done
13063 done
13064
13065   ;;
13066 esac
13067 fi
13068 gcc_cv_as=$ac_cv_path_gcc_cv_as
13069
13070 if test -n "$gcc_cv_as"; then
13071   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13072 echo "${ECHO_T}$gcc_cv_as" >&6
13073 else
13074   echo "$as_me:$LINENO: result: no" >&5
13075 echo "${ECHO_T}no" >&6
13076 fi
13077
13078   test -n "$gcc_cv_as" && break
13079 done
13080 test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13081
13082 fi
13083 test "$silent" != yes && exec 6>&1
13084
13085 ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13086
13087 echo "$as_me:$LINENO: checking what assembler to use" >&5
13088 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13089 case $in_tree_gas in
13090   yes)
13091     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13092 echo "${ECHO_T}\"newly built gas\"" >&6
13093     ;;
13094   no)
13095     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13096 echo "${ECHO_T}$gcc_cv_as" >&6
13097     ;;
13098 esac
13099
13100 # Identify the linker which will work hand-in-glove with the newly
13101 # built GCC, so that we can examine its features.  This is the linker
13102 # which will be driven by the driver program.
13103 #
13104 # If build != host, and we aren't building gas in-tree, we identify a
13105 # build->target linker and hope that it will have the same features
13106 # as the host->target linker we'll be using.
13107 in_tree_ld=no
13108 gcc_cv_ld=
13109 gcc_cv_gld_major_version=
13110 gcc_cv_gld_minor_version=
13111 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13112 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13113 if test -x "$DEFAULT_LINKER"; then
13114         gcc_cv_ld="$DEFAULT_LINKER"
13115 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13116      && test -f ../ld/Makefile \
13117      && test x$build = x$host; then
13118         # Single tree build which includes ld.  We want to prefer it
13119         # over whatever linker top-level may have detected, since
13120         # we'll use what we're building after installation anyway.
13121         in_tree_ld=yes
13122         in_tree_ld_is_elf=no
13123         if (grep 'EMUL = .*elf' ../ld/Makefile \
13124             || grep 'EMUL = .*linux' ../ld/Makefile \
13125             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13126           in_tree_ld_is_elf=yes
13127         fi
13128         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
13129         do
13130                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13131                 if test x$gcc_cv_gld_version != x; then
13132                         break
13133                 fi
13134         done
13135         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13136         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13137         gcc_cv_ld=../ld/ld-new$build_exeext
13138 elif test -x collect-ld$build_exeext; then
13139         # Build using linker in the current directory.
13140         gcc_cv_ld=./collect-ld$build_exeext
13141 elif test -x "$LD_FOR_TARGET"; then
13142         gcc_cv_ld="$LD_FOR_TARGET"
13143 elif test -x "$LD" && test x$host = x$target; then
13144         gcc_cv_ld="$LD"
13145 fi
13146
13147
13148
13149
13150
13151 exec 6>/dev/null
13152 if test "x$gcc_cv_ld" = x; then
13153         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13154         # is empty.
13155         if test "x$gcc_cv_tool_dirs" = x; then
13156                 gcc_cv_ld=
13157         else
13158                 for ac_prog in ld
13159 do
13160   # Extract the first word of "$ac_prog", so it can be a program name with args.
13161 set dummy $ac_prog; ac_word=$2
13162 echo "$as_me:$LINENO: checking for $ac_word" >&5
13163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13164 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   case $gcc_cv_ld in
13168   [\\/]* | ?:[\\/]*)
13169   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13170   ;;
13171   *)
13172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13173 for as_dir in $gcc_cv_tool_dirs
13174 do
13175   IFS=$as_save_IFS
13176   test -z "$as_dir" && as_dir=.
13177   for ac_exec_ext in '' $ac_executable_extensions; do
13178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13179     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13181     break 2
13182   fi
13183 done
13184 done
13185
13186   ;;
13187 esac
13188 fi
13189 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13190
13191 if test -n "$gcc_cv_ld"; then
13192   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13193 echo "${ECHO_T}$gcc_cv_ld" >&6
13194 else
13195   echo "$as_me:$LINENO: result: no" >&5
13196 echo "${ECHO_T}no" >&6
13197 fi
13198
13199   test -n "$gcc_cv_ld" && break
13200 done
13201
13202         fi
13203 fi
13204 if test "x$gcc_cv_ld" = x; then
13205         # If the loop above did not find a tool, then use whatever
13206         # one we can find in the users's path.  We are looking for a
13207         # ${build} -> ${target} tool.
13208         if test "x$program_prefix" != xNONE; then
13209                 default_tool_name=${program_prefix}ld
13210         elif test x$build != x$host && test x$build != x$target; then
13211                 default_tool_name=${target_noncanonical}-ld
13212         else
13213                 default_tool_name=`echo ld | sed "${program_transform_name}"`
13214         fi
13215         for ac_prog in $default_tool_name
13216 do
13217   # Extract the first word of "$ac_prog", so it can be a program name with args.
13218 set dummy $ac_prog; ac_word=$2
13219 echo "$as_me:$LINENO: checking for $ac_word" >&5
13220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13221 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   case $gcc_cv_ld in
13225   [\\/]* | ?:[\\/]*)
13226   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13227   ;;
13228   *)
13229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13230 for as_dir in $PATH
13231 do
13232   IFS=$as_save_IFS
13233   test -z "$as_dir" && as_dir=.
13234   for ac_exec_ext in '' $ac_executable_extensions; do
13235   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13236     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13238     break 2
13239   fi
13240 done
13241 done
13242
13243   ;;
13244 esac
13245 fi
13246 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13247
13248 if test -n "$gcc_cv_ld"; then
13249   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13250 echo "${ECHO_T}$gcc_cv_ld" >&6
13251 else
13252   echo "$as_me:$LINENO: result: no" >&5
13253 echo "${ECHO_T}no" >&6
13254 fi
13255
13256   test -n "$gcc_cv_ld" && break
13257 done
13258 test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13259
13260 fi
13261 test "$silent" != yes && exec 6>&1
13262
13263 ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
13264
13265 echo "$as_me:$LINENO: checking what linker to use" >&5
13266 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13267 case $in_tree_ld in
13268   yes)
13269     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13270 echo "${ECHO_T}\"newly built ld\"" >&6
13271     ;;
13272   no)
13273     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13274 echo "${ECHO_T}$gcc_cv_ld" >&6
13275     ;;
13276 esac
13277
13278 # Figure out what nm we will be using.
13279 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13280 in_tree_nm=no
13281 gcc_cv_nm=
13282 if test -f $gcc_cv_binutils_srcdir/configure.in \
13283      && test -f ../binutils/Makefile; then
13284         # Single tree build which includes binutils.
13285         in_tree_nm=yes
13286         gcc_cv_nm=../binutils/nm-new$build_exeext
13287 elif test -x nm$build_exeext; then
13288         gcc_cv_nm=./nm$build_exeext
13289 fi
13290
13291
13292
13293
13294
13295 exec 6>/dev/null
13296 if test "x$gcc_cv_nm" = x; then
13297         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13298         # is empty.
13299         if test "x$gcc_cv_tool_dirs" = x; then
13300                 gcc_cv_nm=
13301         else
13302                 for ac_prog in nm
13303 do
13304   # Extract the first word of "$ac_prog", so it can be a program name with args.
13305 set dummy $ac_prog; ac_word=$2
13306 echo "$as_me:$LINENO: checking for $ac_word" >&5
13307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13308 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311   case $gcc_cv_nm in
13312   [\\/]* | ?:[\\/]*)
13313   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13314   ;;
13315   *)
13316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317 for as_dir in $gcc_cv_tool_dirs
13318 do
13319   IFS=$as_save_IFS
13320   test -z "$as_dir" && as_dir=.
13321   for ac_exec_ext in '' $ac_executable_extensions; do
13322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13323     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13325     break 2
13326   fi
13327 done
13328 done
13329
13330   ;;
13331 esac
13332 fi
13333 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13334
13335 if test -n "$gcc_cv_nm"; then
13336   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13337 echo "${ECHO_T}$gcc_cv_nm" >&6
13338 else
13339   echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6
13341 fi
13342
13343   test -n "$gcc_cv_nm" && break
13344 done
13345
13346         fi
13347 fi
13348 if test "x$gcc_cv_nm" = x; then
13349         # If the loop above did not find a tool, then use whatever
13350         # one we can find in the users's path.  We are looking for a
13351         # ${build} -> ${target} tool.
13352         if test "x$program_prefix" != xNONE; then
13353                 default_tool_name=${program_prefix}nm
13354         elif test x$build != x$host && test x$build != x$target; then
13355                 default_tool_name=${target_noncanonical}-nm
13356         else
13357                 default_tool_name=`echo nm | sed "${program_transform_name}"`
13358         fi
13359         for ac_prog in $default_tool_name
13360 do
13361   # Extract the first word of "$ac_prog", so it can be a program name with args.
13362 set dummy $ac_prog; ac_word=$2
13363 echo "$as_me:$LINENO: checking for $ac_word" >&5
13364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13365 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13366   echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368   case $gcc_cv_nm in
13369   [\\/]* | ?:[\\/]*)
13370   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13371   ;;
13372   *)
13373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13375 do
13376   IFS=$as_save_IFS
13377   test -z "$as_dir" && as_dir=.
13378   for ac_exec_ext in '' $ac_executable_extensions; do
13379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13382     break 2
13383   fi
13384 done
13385 done
13386
13387   ;;
13388 esac
13389 fi
13390 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13391
13392 if test -n "$gcc_cv_nm"; then
13393   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13394 echo "${ECHO_T}$gcc_cv_nm" >&6
13395 else
13396   echo "$as_me:$LINENO: result: no" >&5
13397 echo "${ECHO_T}no" >&6
13398 fi
13399
13400   test -n "$gcc_cv_nm" && break
13401 done
13402 test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13403
13404 fi
13405 test "$silent" != yes && exec 6>&1
13406
13407 ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
13408
13409 echo "$as_me:$LINENO: checking what nm to use" >&5
13410 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13411 case $in_tree_nm in
13412   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13413 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13414   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13415 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13416 esac
13417
13418 # Figure out what objdump we will be using.
13419 echo "$as_me:$LINENO: checking what objdump to use" >&5
13420 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13421 in_tree_objdump=no
13422 if test -x objdump$build_exeext; then
13423         gcc_cv_objdump=./objdump$build_exeext
13424 elif test -f $gcc_cv_binutils_srcdir/configure.in \
13425      && test -f ../binutils/Makefile; then
13426         # Single tree build which includes binutils.
13427         in_tree_objdump=yes
13428         gcc_cv_objdump=../binutils/objdump$build_exeext
13429 elif test "x$program_prefix" != xNONE; then
13430         gcc_cv_objdump=${program_prefix}objdump$build_exeext
13431 elif test x$build != x$host && test x$build != x$target; then
13432         gcc_cv_objdump=${target_noncanonical}-objdump$build_exeext
13433 else
13434         gcc_cv_objdump=`echo objdump | \
13435                 sed "${program_transform_name}"`$build_exeext
13436 fi
13437 case $in_tree_objdump in
13438   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13439 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13440   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13441 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13442 esac
13443
13444 # Figure out what assembler alignment features are present.
13445 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13446 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13447 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   gcc_cv_as_balign_and_p2align=no
13451     if test $in_tree_gas = yes; then
13452     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13453   then gcc_cv_as_balign_and_p2align=yes
13454 fi
13455   elif test x$gcc_cv_as != x; then
13456     echo '.balign 4
13457 .p2align 2' > conftest.s
13458     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }
13464     then
13465         gcc_cv_as_balign_and_p2align=yes
13466     else
13467       echo "configure: failed program was" >&5
13468       cat conftest.s >&5
13469     fi
13470     rm -f conftest.o conftest.s
13471   fi
13472 fi
13473 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13474 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13475 if test $gcc_cv_as_balign_and_p2align = yes; then
13476
13477 cat >>confdefs.h <<\_ACEOF
13478 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13479 _ACEOF
13480
13481 fi
13482
13483 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13484 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13485 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13486   echo $ECHO_N "(cached) $ECHO_C" >&6
13487 else
13488   gcc_cv_as_max_skip_p2align=no
13489     if test $in_tree_gas = yes; then
13490     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13491   then gcc_cv_as_max_skip_p2align=yes
13492 fi
13493   elif test x$gcc_cv_as != x; then
13494     echo '.p2align 4,,7' > conftest.s
13495     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497   (eval $ac_try) 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }
13501     then
13502         gcc_cv_as_max_skip_p2align=yes
13503     else
13504       echo "configure: failed program was" >&5
13505       cat conftest.s >&5
13506     fi
13507     rm -f conftest.o conftest.s
13508   fi
13509 fi
13510 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13511 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13512 if test $gcc_cv_as_max_skip_p2align = yes; then
13513
13514 cat >>confdefs.h <<\_ACEOF
13515 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13516 _ACEOF
13517
13518 fi
13519
13520 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13521 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13522 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13523   echo $ECHO_N "(cached) $ECHO_C" >&6
13524 else
13525   gcc_cv_as_subsection_m1=no
13526     if test $in_tree_gas = yes; then
13527     if test $in_tree_gas_is_elf = yes \
13528   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13529   then gcc_cv_as_subsection_m1=yes
13530 fi
13531   elif test x$gcc_cv_as != x; then
13532     echo 'conftest_label1: .word 0
13533 .subsection -1
13534 conftest_label2: .word 0
13535 .previous' > conftest.s
13536     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13538   (eval $ac_try) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); }; }
13542     then
13543         if test x$gcc_cv_nm != x; then
13544     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13545     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13546     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13547     then :
13548     else gcc_cv_as_subsection_m1=yes
13549     fi
13550     rm -f conftest.nm1 conftest.nm2
13551   fi
13552     else
13553       echo "configure: failed program was" >&5
13554       cat conftest.s >&5
13555     fi
13556     rm -f conftest.o conftest.s
13557   fi
13558 fi
13559 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13560 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13561 if test $gcc_cv_as_subsection_m1 = yes; then
13562
13563 cat >>confdefs.h <<\_ACEOF
13564 #define HAVE_GAS_SUBSECTION_ORDERING 1
13565 _ACEOF
13566
13567 fi
13568
13569 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13570 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13571 if test "${gcc_cv_as_weak+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   gcc_cv_as_weak=no
13575     if test $in_tree_gas = yes; then
13576     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13577   then gcc_cv_as_weak=yes
13578 fi
13579   elif test x$gcc_cv_as != x; then
13580     echo '      .weak foobar' > conftest.s
13581     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }
13587     then
13588         gcc_cv_as_weak=yes
13589     else
13590       echo "configure: failed program was" >&5
13591       cat conftest.s >&5
13592     fi
13593     rm -f conftest.o conftest.s
13594   fi
13595 fi
13596 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13597 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13598 if test $gcc_cv_as_weak = yes; then
13599
13600 cat >>confdefs.h <<\_ACEOF
13601 #define HAVE_GAS_WEAK 1
13602 _ACEOF
13603
13604 fi
13605
13606 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13607 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13608 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13609   echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611   gcc_cv_as_nsubspa_comdat=no
13612     if test $in_tree_gas = yes; then
13613     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13614   then gcc_cv_as_nsubspa_comdat=yes
13615 fi
13616   elif test x$gcc_cv_as != x; then
13617     echo '      .SPACE $TEXT$
13618         .NSUBSPA $CODE$,COMDAT' > conftest.s
13619     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; }
13625     then
13626         gcc_cv_as_nsubspa_comdat=yes
13627     else
13628       echo "configure: failed program was" >&5
13629       cat conftest.s >&5
13630     fi
13631     rm -f conftest.o conftest.s
13632   fi
13633 fi
13634 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13635 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13636 if test $gcc_cv_as_nsubspa_comdat = yes; then
13637
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_GAS_NSUBSPA_COMDAT 1
13640 _ACEOF
13641
13642 fi
13643
13644 # .hidden needs to be supported in both the assembler and the linker,
13645 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13646 # This is irritatingly difficult to feature test for; we have to check the
13647 # date string after the version number.  If we've got an in-tree
13648 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13649 # to be safe.
13650 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13651 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13652 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13653 if test "${gcc_cv_as_hidden+set}" = set; then
13654   echo $ECHO_N "(cached) $ECHO_C" >&6
13655 else
13656   gcc_cv_as_hidden=no
13657     if test $in_tree_gas = yes; then
13658     if test $in_tree_gas_is_elf = yes \
13659   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13660   then gcc_cv_as_hidden=yes
13661 fi
13662   elif test x$gcc_cv_as != x; then
13663     echo '      .hidden foobar
13664 foobar:' > conftest.s
13665     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; }
13671     then
13672         gcc_cv_as_hidden=yes
13673     else
13674       echo "configure: failed program was" >&5
13675       cat conftest.s >&5
13676     fi
13677     rm -f conftest.o conftest.s
13678   fi
13679 fi
13680 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13681 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13682
13683
13684 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13685 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13686 if test "${gcc_cv_ld_hidden+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   if test $in_tree_ld = yes ; then
13690   gcc_cv_ld_hidden=no
13691   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 \
13692      && test $in_tree_ld_is_elf = yes; then
13693      gcc_cv_ld_hidden=yes
13694   fi
13695 else
13696   gcc_cv_ld_hidden=yes
13697   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13698   if echo "$ld_ver" | grep GNU > /dev/null; then
13699     ld_vers=`echo $ld_ver | sed -n \
13700         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13701         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13702         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13703         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13704         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13705         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13706         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
13707     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'`
13708     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13709     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13710     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13711     if test 0"$ld_date" -lt 20020404; then
13712       if test -n "$ld_date"; then
13713         # If there was date string, but was earlier than 2002-04-04, fail
13714         gcc_cv_ld_hidden=no
13715       elif test -z "$ld_vers"; then
13716         # If there was no date string nor ld version number, something is wrong
13717         gcc_cv_ld_hidden=no
13718       else
13719         test -z "$ld_vers_patch" && ld_vers_patch=0
13720         if test "$ld_vers_major" -lt 2; then
13721           gcc_cv_ld_hidden=no
13722         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13723           gcc_cv_ld_hidden="no"
13724         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13725           gcc_cv_ld_hidden=no
13726         fi
13727       fi
13728     fi
13729   else
13730     case "${target}" in
13731       hppa64*-*-hpux* | ia64*-*-hpux*)
13732         gcc_cv_ld_hidden=yes
13733         ;;
13734       *)
13735         gcc_cv_ld_hidden=no
13736         ;;
13737     esac
13738   fi
13739 fi
13740 fi
13741 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
13742 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
13743 libgcc_visibility=no
13744
13745
13746 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
13747   libgcc_visibility=yes
13748
13749 cat >>confdefs.h <<\_ACEOF
13750 #define HAVE_GAS_HIDDEN 1
13751 _ACEOF
13752
13753 fi
13754
13755 # Check if we have .[us]leb128, and support symbol arithmetic with it.
13756 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
13757 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
13758 if test "${gcc_cv_as_leb128+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   gcc_cv_as_leb128=no
13762     if test $in_tree_gas = yes; then
13763     if test $in_tree_gas_is_elf = yes \
13764   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
13765   then gcc_cv_as_leb128=yes
13766 fi
13767   elif test x$gcc_cv_as != x; then
13768     echo '      .data
13769         .uleb128 L2 - L1
13770 L1:
13771         .uleb128 1280
13772         .sleb128 -1010
13773 L2:' > conftest.s
13774     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }
13780     then
13781         # GAS versions before 2.11 do not support uleb128,
13782   # despite appearing to.
13783   # ??? There exists an elf-specific test that will crash
13784   # the assembler.  Perhaps it's better to figure out whether
13785   # arbitrary sections are supported and try the test.
13786   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
13787   if echo "$as_ver" | grep GNU > /dev/null; then
13788     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
13789     as_major=`echo $as_ver | sed 's/\..*//'`
13790     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
13791     if test $as_major -eq 2 && test $as_minor -lt 11
13792     then :
13793     else gcc_cv_as_leb128=yes
13794     fi
13795   fi
13796     else
13797       echo "configure: failed program was" >&5
13798       cat conftest.s >&5
13799     fi
13800     rm -f conftest.o conftest.s
13801   fi
13802 fi
13803 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
13804 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
13805 if test $gcc_cv_as_leb128 = yes; then
13806
13807 cat >>confdefs.h <<\_ACEOF
13808 #define HAVE_AS_LEB128 1
13809 _ACEOF
13810
13811 fi
13812
13813 # GAS versions up to and including 2.11.0 may mis-optimize
13814 # .eh_frame data.
13815 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
13816 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
13817 if test "${gcc_cv_as_eh_frame+set}" = set; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820   gcc_cv_as_eh_frame=no
13821     if test $in_tree_gas = yes; then
13822     if test $in_tree_gas_is_elf = yes \
13823   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13824   then gcc_cv_as_eh_frame=yes
13825 fi
13826   elif test x$gcc_cv_as != x; then
13827     echo '      .text
13828 .LFB1:
13829         .4byte  0
13830 .L1:
13831         .4byte  0
13832 .LFE1:
13833         .section        .eh_frame,"aw",@progbits
13834 __FRAME_BEGIN__:
13835         .4byte  .LECIE1-.LSCIE1
13836 .LSCIE1:
13837         .4byte  0x0
13838         .byte   0x1
13839         .ascii "z\0"
13840         .byte   0x1
13841         .byte   0x78
13842         .byte   0x1a
13843         .byte   0x0
13844         .byte   0x4
13845         .4byte  1
13846         .p2align 1
13847 .LECIE1:
13848 .LSFDE1:
13849         .4byte  .LEFDE1-.LASFDE1
13850 .LASFDE1:
13851         .4byte  .LASFDE1-__FRAME_BEGIN__
13852         .4byte  .LFB1
13853         .4byte  .LFE1-.LFB1
13854         .byte   0x4
13855         .4byte  .LFE1-.LFB1
13856         .byte   0x4
13857         .4byte  .L1-.LFB1
13858 .LEFDE1:' > conftest.s
13859     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; }
13865     then
13866           cat > conftest.lit <<EOF
13867  0000 10000000 00000000 017a0001 781a0004  .........z..x...
13868  0010 01000000 12000000 18000000 00000000  ................
13869  0020 08000000 04080000 0044               .........D      
13870 EOF
13871 cat > conftest.big <<EOF
13872  0000 00000010 00000000 017a0001 781a0004  .........z..x...
13873  0010 00000001 00000012 00000018 00000000  ................
13874  0020 00000008 04000000 0844               .........D      
13875 EOF
13876   # If the assembler didn't choke, and we can objdump,
13877   # and we got the correct data, then succeed.
13878   if test x$gcc_cv_objdump != x \
13879   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
13880      | tail -3 > conftest.got \
13881   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
13882     || cmp conftest.big conftest.got > /dev/null 2>&1; }
13883   then
13884     gcc_cv_as_eh_frame=yes
13885   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
13886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887   (eval $ac_try) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; }; then
13891     gcc_cv_as_eh_frame=buggy
13892   else
13893     # Uh oh, what do we do now?
13894     gcc_cv_as_eh_frame=no
13895   fi
13896     else
13897       echo "configure: failed program was" >&5
13898       cat conftest.s >&5
13899     fi
13900     rm -f conftest.o conftest.s
13901   fi
13902 fi
13903 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
13904 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
13905
13906
13907 if test $gcc_cv_as_eh_frame = buggy; then
13908
13909 cat >>confdefs.h <<\_ACEOF
13910 #define USE_AS_TRADITIONAL_FORMAT 1
13911 _ACEOF
13912
13913 fi
13914
13915 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13916 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13917 if test "${gcc_cv_as_shf_merge+set}" = set; then
13918   echo $ECHO_N "(cached) $ECHO_C" >&6
13919 else
13920   gcc_cv_as_shf_merge=no
13921     if test $in_tree_gas = yes; then
13922     if test $in_tree_gas_is_elf = yes \
13923   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13924   then gcc_cv_as_shf_merge=yes
13925 fi
13926   elif test x$gcc_cv_as != x; then
13927     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
13928     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930   (eval $ac_try) 2>&5
13931   ac_status=$?
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); }; }
13934     then
13935         gcc_cv_as_shf_merge=yes
13936     else
13937       echo "configure: failed program was" >&5
13938       cat conftest.s >&5
13939     fi
13940     rm -f conftest.o conftest.s
13941   fi
13942 fi
13943 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13944 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13945
13946 if test $gcc_cv_as_shf_merge = no; then
13947   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
13948 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
13949 if test "${gcc_cv_as_shf_merge+set}" = set; then
13950   echo $ECHO_N "(cached) $ECHO_C" >&6
13951 else
13952   gcc_cv_as_shf_merge=no
13953     if test $in_tree_gas = yes; then
13954     if test $in_tree_gas_is_elf = yes \
13955   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
13956   then gcc_cv_as_shf_merge=yes
13957 fi
13958   elif test x$gcc_cv_as != x; then
13959     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
13960     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; }
13966     then
13967         gcc_cv_as_shf_merge=yes
13968     else
13969       echo "configure: failed program was" >&5
13970       cat conftest.s >&5
13971     fi
13972     rm -f conftest.o conftest.s
13973   fi
13974 fi
13975 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
13976 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
13977
13978 fi
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
13982 _ACEOF
13983
13984
13985 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
13986 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
13987 if test "${gcc_cv_as_comdat_group+set}" = set; then
13988   echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990   gcc_cv_as_comdat_group=no
13991     if test $in_tree_gas = yes; then
13992     if test $in_tree_gas_is_elf = yes \
13993   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
13994   then gcc_cv_as_comdat_group=yes
13995 fi
13996   elif test x$gcc_cv_as != x; then
13997     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
13998     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
13999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000   (eval $ac_try) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; }
14004     then
14005         gcc_cv_as_comdat_group=yes
14006     else
14007       echo "configure: failed program was" >&5
14008       cat conftest.s >&5
14009     fi
14010     rm -f conftest.o conftest.s
14011   fi
14012 fi
14013 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14014 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14015
14016 if test $gcc_cv_as_comdat_group = yes; then
14017   gcc_cv_as_comdat_group_percent=no
14018 else
14019  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14020 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14021 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   gcc_cv_as_comdat_group_percent=no
14025     if test $in_tree_gas = yes; then
14026     if test $in_tree_gas_is_elf = yes \
14027   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14028   then gcc_cv_as_comdat_group_percent=yes
14029 fi
14030   elif test x$gcc_cv_as != x; then
14031     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14032     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }
14038     then
14039         gcc_cv_as_comdat_group_percent=yes
14040     else
14041       echo "configure: failed program was" >&5
14042       cat conftest.s >&5
14043     fi
14044     rm -f conftest.o conftest.s
14045   fi
14046 fi
14047 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14048 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14049
14050 fi
14051 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14052   comdat_group=yes
14053   if test 0"$ld_date" -lt 20050308; then
14054     if test -n "$ld_date"; then
14055       # If there was date string, but was earlier than 2005-03-08, fail
14056       comdat_group=no
14057     elif test "$ld_vers_major" -lt 2; then
14058       comdat_group=no
14059     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14060       comdat_group=no
14061     fi
14062   fi
14063   if test $comdat_group = no; then
14064     gcc_cv_as_comdat_group=no
14065     gcc_cv_as_comdat_group_percent=no
14066   fi
14067 fi
14068
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
14071 _ACEOF
14072
14073
14074 # Thread-local storage - the check is heavily parametrized.
14075 conftest_s=
14076 tls_first_major=
14077 tls_first_minor=
14078 tls_as_opt=
14079 case "$target" in
14080   alpha*-*-*)
14081     conftest_s='
14082         .section ".tdata","awT",@progbits
14083 foo:    .long   25
14084         .text
14085         ldq     $27,__tls_get_addr($29)         !literal!1
14086         lda     $16,foo($29)                    !tlsgd!1
14087         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14088         ldq     $27,__tls_get_addr($29)         !literal!2
14089         lda     $16,foo($29)                    !tlsldm!2
14090         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14091         ldq     $1,foo($29)                     !gotdtprel
14092         ldah    $2,foo($29)                     !dtprelhi
14093         lda     $3,foo($2)                      !dtprello
14094         lda     $4,foo($29)                     !dtprel
14095         ldq     $1,foo($29)                     !gottprel
14096         ldah    $2,foo($29)                     !tprelhi
14097         lda     $3,foo($2)                      !tprello
14098         lda     $4,foo($29)                     !tprel'
14099         tls_first_major=2
14100         tls_first_minor=13
14101         tls_as_opt=--fatal-warnings
14102         ;;
14103   frv*-*-*)
14104     conftest_s='
14105         .section ".tdata","awT",@progbits
14106 x:      .long   25
14107         .text
14108         call    #gettlsoff(x)'
14109         tls_first_major=2
14110         tls_first_minor=14
14111         ;;
14112   hppa*-*-linux*)
14113     conftest_s='
14114 t1:     .reg    %r20
14115 t2:     .reg    %r21
14116 gp:     .reg    %r19
14117         .section ".tdata","awT",@progbits
14118 foo:    .long   25
14119         .text
14120         .align  4
14121         addil LT%foo-$tls_gdidx$,gp
14122         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14123         b __tls_get_addr
14124         nop
14125         addil LT%foo-$tls_ldidx$,gp
14126         b __tls_get_addr
14127         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14128         addil LR%foo-$tls_dtpoff$,%ret0
14129         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14130         mfctl %cr27,%t1
14131         addil LT%foo-$tls_ieoff$,gp
14132         ldw RT%foo-$tls_ieoff$(%r1),%t2
14133         add %t1,%t2,%t3
14134         mfctl %cr27,%t1
14135         addil LR%foo-$tls_leoff$,%t1
14136         ldo RR%foo-$tls_leoff$(%r1),%t2'
14137         tls_first_major=2
14138         tls_first_minor=15
14139         tls_as_opt=--fatal-warnings
14140         ;;
14141   i[34567]86-*-*)
14142     conftest_s='
14143         .section ".tdata","awT",@progbits
14144 foo:    .long   25
14145         .text
14146         movl    %gs:0, %eax
14147         leal    foo@TLSGD(,%ebx,1), %eax
14148         leal    foo@TLSLDM(%ebx), %eax
14149         leal    foo@DTPOFF(%eax), %edx
14150         movl    foo@GOTTPOFF(%ebx), %eax
14151         subl    foo@GOTTPOFF(%ebx), %eax
14152         addl    foo@GOTNTPOFF(%ebx), %eax
14153         movl    foo@INDNTPOFF, %eax
14154         movl    $foo@TPOFF, %eax
14155         subl    $foo@TPOFF, %eax
14156         leal    foo@NTPOFF(%ecx), %eax'
14157         tls_first_major=2
14158         tls_first_minor=14
14159         tls_as_opt=--fatal-warnings
14160         ;;
14161   x86_64-*-*)
14162     conftest_s='
14163         .section ".tdata","awT",@progbits
14164 foo:    .long   25
14165         .text
14166         movq    %fs:0, %rax
14167         leaq    foo@TLSGD(%rip), %rdi
14168         leaq    foo@TLSLD(%rip), %rdi
14169         leaq    foo@DTPOFF(%rax), %rdx
14170         movq    foo@GOTTPOFF(%rip), %rax
14171         movq    $foo@TPOFF, %rax'
14172         tls_first_major=2
14173         tls_first_minor=14
14174         tls_as_opt=--fatal-warnings
14175         ;;
14176   ia64-*-*)
14177     conftest_s='
14178         .section ".tdata","awT",@progbits
14179 foo:    data8   25
14180         .text
14181         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14182         addl    r17 = @ltoff(@dtprel(foo#)), gp
14183         addl    r18 = @ltoff(@tprel(foo#)), gp
14184         addl    r19 = @dtprel(foo#), gp
14185         adds    r21 = @dtprel(foo#), r13
14186         movl    r23 = @dtprel(foo#)
14187         addl    r20 = @tprel(foo#), gp
14188         adds    r22 = @tprel(foo#), r13
14189         movl    r24 = @tprel(foo#)'
14190         tls_first_major=2
14191         tls_first_minor=13
14192         tls_as_opt=--fatal-warnings
14193         ;;
14194   mips*-*-*)
14195     conftest_s='
14196         .section .tdata,"awT",@progbits
14197 x:
14198         .word 2
14199         .text
14200         addiu $4, $28, %tlsgd(x)
14201         addiu $4, $28, %tlsldm(x)
14202         lui $4, %dtprel_hi(x)
14203         addiu $4, $4, %dtprel_lo(x)
14204         lw $4, %gottprel(x)($28)
14205         lui $4, %tprel_hi(x)
14206         addiu $4, $4, %tprel_lo(x)'
14207         tls_first_major=2
14208         tls_first_minor=16
14209         tls_as_opt='-32 --fatal-warnings'
14210         ;;
14211   powerpc-*-*)
14212     conftest_s='
14213         .section ".tdata","awT",@progbits
14214         .align 2
14215 ld0:    .space 4
14216 ld1:    .space 4
14217 x1:     .space 4
14218 x2:     .space 4
14219 x3:     .space 4
14220         .text
14221         addi 3,31,ld0@got@tlsgd
14222         bl __tls_get_addr
14223         addi 3,31,x1@got@tlsld
14224         bl __tls_get_addr
14225         addi 9,3,x1@dtprel
14226         addis 9,3,x2@dtprel@ha
14227         addi 9,9,x2@dtprel@l
14228         lwz 9,x3@got@tprel(31)
14229         add 9,9,x@tls
14230         addi 9,2,x1@tprel
14231         addis 9,2,x2@tprel@ha
14232         addi 9,9,x2@tprel@l'
14233         tls_first_major=2
14234         tls_first_minor=14
14235         tls_as_opt="-a32 --fatal-warnings"
14236         ;;
14237   powerpc64-*-*)
14238     conftest_s='
14239         .section ".tdata","awT",@progbits
14240         .align 3
14241 ld0:    .space 8
14242 ld1:    .space 8
14243 x1:     .space 8
14244 x2:     .space 8
14245 x3:     .space 8
14246         .text
14247         addi 3,2,ld0@got@tlsgd
14248         bl .__tls_get_addr
14249         nop
14250         addi 3,2,ld1@toc
14251         bl .__tls_get_addr
14252         nop
14253         addi 3,2,x1@got@tlsld
14254         bl .__tls_get_addr
14255         nop
14256         addi 9,3,x1@dtprel
14257         bl .__tls_get_addr
14258         nop
14259         addis 9,3,x2@dtprel@ha
14260         addi 9,9,x2@dtprel@l
14261         bl .__tls_get_addr
14262         nop
14263         ld 9,x3@got@dtprel(2)
14264         add 9,9,3
14265         bl .__tls_get_addr
14266         nop'
14267         tls_first_major=2
14268         tls_first_minor=14
14269         tls_as_opt="-a64 --fatal-warnings"
14270         ;;
14271   s390-*-*)
14272     conftest_s='
14273         .section ".tdata","awT",@progbits
14274 foo:    .long   25
14275         .text
14276         .long   foo@TLSGD
14277         .long   foo@TLSLDM
14278         .long   foo@DTPOFF
14279         .long   foo@NTPOFF
14280         .long   foo@GOTNTPOFF
14281         .long   foo@INDNTPOFF
14282         l       %r1,foo@GOTNTPOFF(%r12)
14283         l       %r1,0(%r1):tls_load:foo
14284         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14285         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14286         tls_first_major=2
14287         tls_first_minor=14
14288         tls_as_opt="-m31 --fatal-warnings"
14289         ;;
14290   s390x-*-*)
14291     conftest_s='
14292         .section ".tdata","awT",@progbits
14293 foo:    .long   25
14294         .text
14295         .quad   foo@TLSGD
14296         .quad   foo@TLSLDM
14297         .quad   foo@DTPOFF
14298         .quad   foo@NTPOFF
14299         .quad   foo@GOTNTPOFF
14300         lg      %r1,foo@GOTNTPOFF(%r12)
14301         larl    %r1,foo@INDNTPOFF
14302         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14303         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14304         tls_first_major=2
14305         tls_first_minor=14
14306         tls_as_opt="-m64 -Aesame --fatal-warnings"
14307         ;;
14308   sh-*-* | sh[34]-*-*)
14309     conftest_s='
14310         .section ".tdata","awT",@progbits
14311 foo:    .long   25
14312         .text
14313         .long   foo@TLSGD
14314         .long   foo@TLSLDM
14315         .long   foo@DTPOFF
14316         .long   foo@GOTTPOFF
14317         .long   foo@TPOFF'
14318         tls_first_major=2
14319         tls_first_minor=13
14320         tls_as_opt=--fatal-warnings
14321         ;;
14322   sparc*-*-*)
14323     case "$target" in
14324       sparc*-sun-solaris2.*)
14325         on_solaris=yes
14326         ;;
14327       *)
14328         on_solaris=no
14329         ;;
14330     esac
14331     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14332       conftest_s='
14333         .section ".tdata",#alloc,#write,#tls
14334 foo:    .long   25
14335         .text
14336         sethi   %tgd_hi22(foo), %o0
14337         add     %o0, %tgd_lo10(foo), %o1
14338         add     %l7, %o1, %o0, %tgd_add(foo)
14339         call    __tls_get_addr, %tgd_call(foo)
14340         sethi   %tldm_hi22(foo), %l1
14341         add     %l1, %tldm_lo10(foo), %l2
14342         add     %l7, %l2, %o0, %tldm_add(foo)
14343         call    __tls_get_addr, %tldm_call(foo)
14344         sethi   %tldo_hix22(foo), %l3
14345         xor     %l3, %tldo_lox10(foo), %l4
14346         add     %o0, %l4, %l5, %tldo_add(foo)
14347         sethi   %tie_hi22(foo), %o3
14348         add     %o3, %tie_lo10(foo), %o3
14349         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14350         add     %g7, %o2, %o4, %tie_add(foo)
14351         sethi   %tle_hix22(foo), %l1
14352         xor     %l1, %tle_lox10(foo), %o5
14353         ld      [%g7 + %o5], %o1'
14354         tls_first_major=0
14355         tls_first_minor=0
14356     else
14357       conftest_s='
14358         .section ".tdata","awT",@progbits
14359 foo:    .long   25
14360         .text
14361         sethi   %tgd_hi22(foo), %o0
14362         add     %o0, %tgd_lo10(foo), %o1
14363         add     %l7, %o1, %o0, %tgd_add(foo)
14364         call    __tls_get_addr, %tgd_call(foo)
14365         sethi   %tldm_hi22(foo), %l1
14366         add     %l1, %tldm_lo10(foo), %l2
14367         add     %l7, %l2, %o0, %tldm_add(foo)
14368         call    __tls_get_addr, %tldm_call(foo)
14369         sethi   %tldo_hix22(foo), %l3
14370         xor     %l3, %tldo_lox10(foo), %l4
14371         add     %o0, %l4, %l5, %tldo_add(foo)
14372         sethi   %tie_hi22(foo), %o3
14373         add     %o3, %tie_lo10(foo), %o3
14374         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14375         add     %g7, %o2, %o4, %tie_add(foo)
14376         sethi   %tle_hix22(foo), %l1
14377         xor     %l1, %tle_lox10(foo), %o5
14378         ld      [%g7 + %o5], %o1'
14379         tls_first_major=2
14380         tls_first_minor=14
14381         tls_as_opt="-32 --fatal-warnings"
14382       fi
14383         ;;
14384 esac
14385 if test -z "$tls_first_major"; then
14386   : # If we don't have a check, assume no support.
14387 else
14388   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14389 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14390 if test "${gcc_cv_as_tls+set}" = set; then
14391   echo $ECHO_N "(cached) $ECHO_C" >&6
14392 else
14393   gcc_cv_as_tls=no
14394     if test $in_tree_gas = yes; then
14395     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14396   then gcc_cv_as_tls=yes
14397 fi
14398   elif test x$gcc_cv_as != x; then
14399     echo "$conftest_s" > conftest.s
14400     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402   (eval $ac_try) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; }
14406     then
14407         gcc_cv_as_tls=yes
14408     else
14409       echo "configure: failed program was" >&5
14410       cat conftest.s >&5
14411     fi
14412     rm -f conftest.o conftest.s
14413   fi
14414 fi
14415 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14416 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14417 if test $gcc_cv_as_tls = yes; then
14418
14419 cat >>confdefs.h <<\_ACEOF
14420 #define HAVE_AS_TLS 1
14421 _ACEOF
14422
14423 fi
14424 fi
14425
14426 # Target-specific assembler checks.
14427
14428 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14429 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14430 gcc_cv_ld_static_dynamic=no
14431 if test $in_tree_ld = yes ; then
14432   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14433     gcc_cv_ld_static_dynamic=yes
14434   fi
14435 elif test x$gcc_cv_ld != x; then
14436         # Check if linker supports -Bstatic/-Bdynamic option
14437         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14438           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14439                 gcc_cv_ld_static_dynamic=yes
14440         fi
14441 fi
14442 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14443
14444 cat >>confdefs.h <<\_ACEOF
14445 #define HAVE_LD_STATIC_DYNAMIC 1
14446 _ACEOF
14447
14448 fi
14449 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14450 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14451
14452 if test x"$demangler_in_ld" = xyes; then
14453   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14454 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14455   gcc_cv_ld_demangle=no
14456   if test $in_tree_ld = yes; then
14457     if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
14458       gcc_cv_ld_demangle=yes
14459     fi
14460   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14461     # Check if the GNU linker supports --demangle option
14462     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14463       gcc_cv_ld_demangle=yes
14464     fi
14465   fi
14466   if test x"$gcc_cv_ld_demangle" = xyes; then
14467
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_LD_DEMANGLE 1
14470 _ACEOF
14471
14472   fi
14473   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14474 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14475 fi
14476
14477 case "$target" in
14478   # All TARGET_ABI_OSF targets.
14479   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14480     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14481 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14482 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 else
14485   gcc_cv_as_alpha_explicit_relocs=no
14486     if test $in_tree_gas = yes; then
14487     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14488   then gcc_cv_as_alpha_explicit_relocs=yes
14489 fi
14490   elif test x$gcc_cv_as != x; then
14491     echo '      .set nomacro
14492         .text
14493         extbl   $3, $2, $3      !lituse_bytoff!1
14494         ldq     $2, a($29)      !literal!1
14495         ldq     $4, b($29)      !literal!2
14496         ldq_u   $3, 0($2)       !lituse_base!1
14497         ldq     $27, f($29)     !literal!5
14498         jsr     $26, ($27), f   !lituse_jsr!5
14499         ldah    $29, 0($26)     !gpdisp!3
14500         lda     $0, c($29)      !gprel
14501         ldah    $1, d($29)      !gprelhigh
14502         lda     $1, d($1)       !gprellow
14503         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14504     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }
14510     then
14511         gcc_cv_as_alpha_explicit_relocs=yes
14512     else
14513       echo "configure: failed program was" >&5
14514       cat conftest.s >&5
14515     fi
14516     rm -f conftest.o conftest.s
14517   fi
14518 fi
14519 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14520 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14521 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14522
14523 cat >>confdefs.h <<\_ACEOF
14524 #define HAVE_AS_EXPLICIT_RELOCS 1
14525 _ACEOF
14526
14527 fi
14528     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14529 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14530 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   gcc_cv_as_alpha_jsrdirect_relocs=no
14534     if test $in_tree_gas = yes; then
14535     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14536   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14537 fi
14538   elif test x$gcc_cv_as != x; then
14539     echo '      .set nomacro
14540         .text
14541         ldq     $27, a($29)     !literal!1
14542         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14543     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; }
14549     then
14550         gcc_cv_as_alpha_jsrdirect_relocs=yes
14551     else
14552       echo "configure: failed program was" >&5
14553       cat conftest.s >&5
14554     fi
14555     rm -f conftest.o conftest.s
14556   fi
14557 fi
14558 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14559 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14560 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14561
14562 cat >>confdefs.h <<\_ACEOF
14563 #define HAVE_AS_JSRDIRECT_RELOCS 1
14564 _ACEOF
14565
14566 fi
14567     ;;
14568
14569   cris-*-*)
14570     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14571 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14572 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   gcc_cv_as_cris_no_mul_bug=no
14576     if test $in_tree_gas = yes; then
14577     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14578   then gcc_cv_as_cris_no_mul_bug=yes
14579 fi
14580   elif test x$gcc_cv_as != x; then
14581     echo '.text' > conftest.s
14582     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; }
14588     then
14589         gcc_cv_as_cris_no_mul_bug=yes
14590     else
14591       echo "configure: failed program was" >&5
14592       cat conftest.s >&5
14593     fi
14594     rm -f conftest.o conftest.s
14595   fi
14596 fi
14597 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14598 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14599 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14600
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14603 _ACEOF
14604
14605 fi
14606     ;;
14607
14608   sparc*-*-*)
14609     echo "$as_me:$LINENO: checking assembler for .register" >&5
14610 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14611 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14612   echo $ECHO_N "(cached) $ECHO_C" >&6
14613 else
14614   gcc_cv_as_sparc_register_op=no
14615   if test x$gcc_cv_as != x; then
14616     echo '.register %g2, #scratch' > conftest.s
14617     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }
14623     then
14624         gcc_cv_as_sparc_register_op=yes
14625     else
14626       echo "configure: failed program was" >&5
14627       cat conftest.s >&5
14628     fi
14629     rm -f conftest.o conftest.s
14630   fi
14631 fi
14632 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14633 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14634 if test $gcc_cv_as_sparc_register_op = yes; then
14635
14636 cat >>confdefs.h <<\_ACEOF
14637 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14638 _ACEOF
14639
14640 fi
14641
14642     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14643 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14644 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   gcc_cv_as_sparc_relax=no
14648   if test x$gcc_cv_as != x; then
14649     echo '.text' > conftest.s
14650     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }
14656     then
14657         gcc_cv_as_sparc_relax=yes
14658     else
14659       echo "configure: failed program was" >&5
14660       cat conftest.s >&5
14661     fi
14662     rm -f conftest.o conftest.s
14663   fi
14664 fi
14665 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14666 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14667 if test $gcc_cv_as_sparc_relax = yes; then
14668
14669 cat >>confdefs.h <<\_ACEOF
14670 #define HAVE_AS_RELAX_OPTION 1
14671 _ACEOF
14672
14673 fi
14674
14675     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14676 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14677 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   gcc_cv_as_sparc_ua_pcrel=no
14681   if test x$gcc_cv_as != x; then
14682     echo '.text
14683 foo:
14684         nop
14685 .data
14686 .align 4
14687 .byte 0
14688 .uaword %r_disp32(foo)' > conftest.s
14689     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14691   (eval $ac_try) 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); }; }
14695     then
14696         if test x$gcc_cv_ld != x \
14697        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
14698          gcc_cv_as_sparc_ua_pcrel=yes
14699        fi
14700        rm -f conftest
14701     else
14702       echo "configure: failed program was" >&5
14703       cat conftest.s >&5
14704     fi
14705     rm -f conftest.o conftest.s
14706   fi
14707 fi
14708 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
14709 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
14710 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
14711
14712 cat >>confdefs.h <<\_ACEOF
14713 #define HAVE_AS_SPARC_UA_PCREL 1
14714 _ACEOF
14715
14716
14717       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
14718 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
14719 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
14720   echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722   gcc_cv_as_sparc_ua_pcrel_hidden=no
14723   if test x$gcc_cv_as != x; then
14724     echo '.data
14725 .align 4
14726 .byte 0x31
14727 .uaword %r_disp32(foo)
14728 .byte 0x32, 0x33, 0x34
14729 .global foo
14730 .hidden foo
14731 foo:
14732 .skip 4' > conftest.s
14733     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }
14739     then
14740         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
14741          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
14742          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
14743             | grep ' 31000000 07323334' > /dev/null 2>&1; then
14744             if $gcc_cv_objdump -R conftest 2> /dev/null \
14745                | grep 'DISP32' > /dev/null 2>&1; then
14746                 :
14747             else
14748                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
14749             fi
14750          fi
14751          rm -f conftest
14752     else
14753       echo "configure: failed program was" >&5
14754       cat conftest.s >&5
14755     fi
14756     rm -f conftest.o conftest.s
14757   fi
14758 fi
14759 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
14760 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
14761 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
14765 _ACEOF
14766
14767 fi
14768
14769 fi # unaligned pcrel relocs
14770
14771     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
14772 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
14773 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
14774   echo $ECHO_N "(cached) $ECHO_C" >&6
14775 else
14776   gcc_cv_as_sparc_offsetable_lo10=no
14777   if test x$gcc_cv_as != x; then
14778     echo '.text
14779         or %g1, %lo(ab) + 12, %g1
14780         or %g1, %lo(ab + 12), %g1' > conftest.s
14781     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
14782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14783   (eval $ac_try) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); }; }
14787     then
14788         if test x$gcc_cv_objdump != x \
14789        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
14790           | grep ' 82106000 82106000' > /dev/null 2>&1; then
14791          gcc_cv_as_sparc_offsetable_lo10=yes
14792        fi
14793     else
14794       echo "configure: failed program was" >&5
14795       cat conftest.s >&5
14796     fi
14797     rm -f conftest.o conftest.s
14798   fi
14799 fi
14800 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
14801 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
14802 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
14803
14804 cat >>confdefs.h <<\_ACEOF
14805 #define HAVE_AS_OFFSETABLE_LO10 1
14806 _ACEOF
14807
14808 fi
14809     ;;
14810
14811   i[34567]86-*-* | x86_64-*-*)
14812     case $target_os in
14813       cygwin* | pe | mingw32*)
14814         # Used for DWARF 2 in PE
14815         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
14816 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
14817 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
14818   echo $ECHO_N "(cached) $ECHO_C" >&6
14819 else
14820   gcc_cv_as_ix86_pe_secrel32=no
14821     if test $in_tree_gas = yes; then
14822     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14823   then gcc_cv_as_ix86_pe_secrel32=yes
14824 fi
14825   elif test x$gcc_cv_as != x; then
14826     echo '.text
14827 foo:    nop
14828 .data
14829         .secrel32 foo' > conftest.s
14830     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832   (eval $ac_try) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; }
14836     then
14837         if test x$gcc_cv_ld != x \
14838            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
14839              gcc_cv_as_ix86_pe_secrel32=yes
14840            fi
14841            rm -f conftest
14842     else
14843       echo "configure: failed program was" >&5
14844       cat conftest.s >&5
14845     fi
14846     rm -f conftest.o conftest.s
14847   fi
14848 fi
14849 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
14850 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
14851 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
14852
14853 cat >>confdefs.h <<\_ACEOF
14854 #define HAVE_GAS_PE_SECREL32_RELOC 1
14855 _ACEOF
14856
14857 fi
14858         ;;
14859     esac
14860
14861     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
14862 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
14863 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
14864   echo $ECHO_N "(cached) $ECHO_C" >&6
14865 else
14866   gcc_cv_as_ix86_filds_fists=no
14867     if test $in_tree_gas = yes; then
14868     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
14869   then gcc_cv_as_ix86_filds_fists=yes
14870 fi
14871   elif test x$gcc_cv_as != x; then
14872     echo 'filds mem; fists mem' > conftest.s
14873     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875   (eval $ac_try) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; }
14879     then
14880         gcc_cv_as_ix86_filds_fists=yes
14881     else
14882       echo "configure: failed program was" >&5
14883       cat conftest.s >&5
14884     fi
14885     rm -f conftest.o conftest.s
14886   fi
14887 fi
14888 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
14889 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
14890 if test $gcc_cv_as_ix86_filds_fists = yes; then
14891
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAVE_GAS_FILDS_FISTS 1
14894 _ACEOF
14895
14896 fi
14897
14898     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
14899 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
14900 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
14901   echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903   gcc_cv_as_ix86_cmov_sun_syntax=no
14904   if test x$gcc_cv_as != x; then
14905     echo 'cmovl.l %edx, %eax' > conftest.s
14906     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14908   (eval $ac_try) 2>&5
14909   ac_status=$?
14910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911   (exit $ac_status); }; }
14912     then
14913         gcc_cv_as_ix86_cmov_sun_syntax=yes
14914     else
14915       echo "configure: failed program was" >&5
14916       cat conftest.s >&5
14917     fi
14918     rm -f conftest.o conftest.s
14919   fi
14920 fi
14921 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
14922 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
14923 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
14924
14925 cat >>confdefs.h <<\_ACEOF
14926 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
14927 _ACEOF
14928
14929 fi
14930
14931     # This one is used unconditionally by i386.[ch]; it is to be defined
14932     # to 1 if the feature is present, 0 otherwise.
14933     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
14934 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
14935 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
14936   echo $ECHO_N "(cached) $ECHO_C" >&6
14937 else
14938   gcc_cv_as_ix86_gotoff_in_data=no
14939     if test $in_tree_gas = yes; then
14940     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14941   then gcc_cv_as_ix86_gotoff_in_data=yes
14942 fi
14943   elif test x$gcc_cv_as != x; then
14944     echo '      .text
14945 .L0:
14946         nop
14947         .data
14948         .long .L0@GOTOFF' > conftest.s
14949     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951   (eval $ac_try) 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); }; }
14955     then
14956         gcc_cv_as_ix86_gotoff_in_data=yes
14957     else
14958       echo "configure: failed program was" >&5
14959       cat conftest.s >&5
14960     fi
14961     rm -f conftest.o conftest.s
14962   fi
14963 fi
14964 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
14965 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
14966
14967
14968 cat >>confdefs.h <<_ACEOF
14969 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
14970 _ACEOF
14971
14972     ;;
14973
14974   ia64*-*-*)
14975     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
14976 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
14977 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
14978   echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
14981     if test $in_tree_gas = yes; then
14982     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
14983   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14984 fi
14985   elif test x$gcc_cv_as != x; then
14986     echo '      .text
14987         addl r15 = @ltoffx(x#), gp
14988         ;;
14989         ld8.mov r16 = [r15], x#' > conftest.s
14990     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }
14996     then
14997         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
14998     else
14999       echo "configure: failed program was" >&5
15000       cat conftest.s >&5
15001     fi
15002     rm -f conftest.o conftest.s
15003   fi
15004 fi
15005 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15006 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15007 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15008
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15011 _ACEOF
15012
15013 fi
15014
15015     ;;
15016
15017   powerpc*-*-*)
15018     case $target in
15019       *-*-aix*) conftest_s='    .machine "pwr5"
15020         .csect .text[PR]
15021         mfcr 3,128';;
15022       *-*-darwin*)
15023         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15024 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15025 if test "${gcc_cv_as_machine_directive+set}" = set; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028   gcc_cv_as_machine_directive=no
15029   if test x$gcc_cv_as != x; then
15030     echo '      .machine ppc7400' > conftest.s
15031     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033   (eval $ac_try) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); }; }
15037     then
15038         gcc_cv_as_machine_directive=yes
15039     else
15040       echo "configure: failed program was" >&5
15041       cat conftest.s >&5
15042     fi
15043     rm -f conftest.o conftest.s
15044   fi
15045 fi
15046 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15047 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15048
15049         if test x$gcc_cv_as_machine_directive != xyes; then
15050           echo "*** This target requires an assembler supporting \".machine\"" >&2
15051           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15052           test x$build = x$target && exit 1
15053         fi
15054         conftest_s='    .text
15055         mfcr r3,128';;
15056       *) conftest_s='   .machine power4
15057         .text
15058         mfcr 3,128';;
15059     esac
15060
15061     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15062 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15063 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066   gcc_cv_as_powerpc_mfcrf=no
15067     if test $in_tree_gas = yes; then
15068     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15069   then gcc_cv_as_powerpc_mfcrf=yes
15070 fi
15071   elif test x$gcc_cv_as != x; then
15072     echo "$conftest_s" > conftest.s
15073     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075   (eval $ac_try) 2>&5
15076   ac_status=$?
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); }; }
15079     then
15080         gcc_cv_as_powerpc_mfcrf=yes
15081     else
15082       echo "configure: failed program was" >&5
15083       cat conftest.s >&5
15084     fi
15085     rm -f conftest.o conftest.s
15086   fi
15087 fi
15088 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15089 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15090 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15091
15092 cat >>confdefs.h <<\_ACEOF
15093 #define HAVE_AS_MFCRF 1
15094 _ACEOF
15095
15096 fi
15097
15098     case $target in
15099       *-*-aix*) conftest_s='    .machine "pwr5"
15100         .csect .text[PR]
15101         popcntb 3,3';;
15102       *) conftest_s='   .machine power5
15103         .text
15104         popcntb 3,3';;
15105     esac
15106
15107     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15108 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15109 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15110   echo $ECHO_N "(cached) $ECHO_C" >&6
15111 else
15112   gcc_cv_as_powerpc_popcntb=no
15113     if test $in_tree_gas = yes; then
15114     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15115   then gcc_cv_as_powerpc_popcntb=yes
15116 fi
15117   elif test x$gcc_cv_as != x; then
15118     echo "$conftest_s" > conftest.s
15119     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; }
15125     then
15126         gcc_cv_as_powerpc_popcntb=yes
15127     else
15128       echo "configure: failed program was" >&5
15129       cat conftest.s >&5
15130     fi
15131     rm -f conftest.o conftest.s
15132   fi
15133 fi
15134 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15135 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15136 if test $gcc_cv_as_powerpc_popcntb = yes; then
15137
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_AS_POPCNTB 1
15140 _ACEOF
15141
15142 fi
15143
15144     case $target in
15145       *-*-aix*) conftest_s='    .csect .text[PR]
15146 LCF..0:
15147         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15148       *-*-darwin*)
15149         conftest_s='    .text
15150 LCF0:
15151         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15152       *) conftest_s='   .text
15153 .LCF0:
15154         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15155     esac
15156
15157     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15158 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15159 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15160   echo $ECHO_N "(cached) $ECHO_C" >&6
15161 else
15162   gcc_cv_as_powerpc_rel16=no
15163     if test $in_tree_gas = yes; then
15164     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15165   then gcc_cv_as_powerpc_rel16=yes
15166 fi
15167   elif test x$gcc_cv_as != x; then
15168     echo "$conftest_s" > conftest.s
15169     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171   (eval $ac_try) 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; }
15175     then
15176         gcc_cv_as_powerpc_rel16=yes
15177     else
15178       echo "configure: failed program was" >&5
15179       cat conftest.s >&5
15180     fi
15181     rm -f conftest.o conftest.s
15182   fi
15183 fi
15184 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15185 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15186 if test $gcc_cv_as_powerpc_rel16 = yes; then
15187
15188 cat >>confdefs.h <<\_ACEOF
15189 #define HAVE_AS_REL16 1
15190 _ACEOF
15191
15192 fi
15193     ;;
15194
15195   mips*-*-*)
15196     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15197 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15198 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   gcc_cv_as_mips_explicit_relocs=no
15202     if test $in_tree_gas = yes; then
15203     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15204   then gcc_cv_as_mips_explicit_relocs=yes
15205 fi
15206   elif test x$gcc_cv_as != x; then
15207     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15208     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; }
15214     then
15215         gcc_cv_as_mips_explicit_relocs=yes
15216     else
15217       echo "configure: failed program was" >&5
15218       cat conftest.s >&5
15219     fi
15220     rm -f conftest.o conftest.s
15221   fi
15222 fi
15223 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15224 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15225 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15226   if test x$target_cpu_default = x
15227        then target_cpu_default=MASK_EXPLICIT_RELOCS
15228        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15229        fi
15230 fi
15231
15232     if test x$gas_flag = xyes \
15233        || test x"$host" != x"$build" \
15234        || test ! -x "$gcc_cv_as" \
15235        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15236       :
15237     else
15238       echo "*** This configuration requires the GNU assembler" >&2
15239       exit 1
15240     fi
15241     ;;
15242 esac
15243 # ??? Not all targets support dwarf2 debug_line, even within a version
15244 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15245 # info to the output file.  So, as supported targets are added to gas 2.11,
15246 # add some instruction here to (also) show we expect this might work.
15247 # ??? Once 2.11 is released, probably need to add first known working
15248 # version to the per-target configury.
15249 case "$target" in
15250   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15251   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15252   | xstormy16*-*-* | cris-*-* | xtensa-*-*)
15253     insn="nop"
15254     ;;
15255   ia64*-*-* | s390*-*-*)
15256     insn="nop 0"
15257     ;;
15258   mmix-*-*)
15259     insn="swym 0"
15260     ;;
15261 esac
15262 if test x"$insn" != x; then
15263  conftest_s="\
15264         .file 1 \"conftest.s\"
15265         .loc 1 3 0
15266         $insn"
15267  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15268 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15269 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   gcc_cv_as_dwarf2_debug_line=no
15273     if test $in_tree_gas = yes; then
15274     if test $in_tree_gas_is_elf = yes \
15275   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15276   then gcc_cv_as_dwarf2_debug_line=yes
15277 fi
15278   elif test x$gcc_cv_as != x; then
15279     echo "$conftest_s" > conftest.s
15280     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282   (eval $ac_try) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }; }
15286     then
15287         if test x$gcc_cv_objdump != x \
15288    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15289       | grep debug_line > /dev/null 2>&1; then
15290      gcc_cv_as_dwarf2_debug_line=yes
15291    fi
15292     else
15293       echo "configure: failed program was" >&5
15294       cat conftest.s >&5
15295     fi
15296     rm -f conftest.o conftest.s
15297   fi
15298 fi
15299 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15300 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15301
15302
15303 # The .debug_line file table must be in the exact order that
15304 # we specified the files, since these indices are also used
15305 # by DW_AT_decl_file.  Approximate this test by testing if
15306 # the assembler bitches if the same index is assigned twice.
15307  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15308 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15309 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   gcc_cv_as_dwarf2_file_buggy=no
15313   if test x$gcc_cv_as != x; then
15314     echo '      .file 1 "foo.s"
15315         .file 1 "bar.s"' > conftest.s
15316     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }
15322     then
15323         gcc_cv_as_dwarf2_file_buggy=yes
15324     else
15325       echo "configure: failed program was" >&5
15326       cat conftest.s >&5
15327     fi
15328     rm -f conftest.o conftest.s
15329   fi
15330 fi
15331 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15332 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15333
15334
15335  if test $gcc_cv_as_dwarf2_debug_line = yes \
15336  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15337
15338 cat >>confdefs.h <<\_ACEOF
15339 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15340 _ACEOF
15341
15342  fi
15343
15344  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15345 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15346 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15347   echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349   gcc_cv_as_gdwarf2_flag=no
15350     if test $in_tree_gas = yes; then
15351     if test $in_tree_gas_is_elf = yes \
15352   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15353   then gcc_cv_as_gdwarf2_flag=yes
15354 fi
15355   elif test x$gcc_cv_as != x; then
15356     echo "$insn" > conftest.s
15357     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15359   (eval $ac_try) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); }; }
15363     then
15364         gcc_cv_as_gdwarf2_flag=yes
15365     else
15366       echo "configure: failed program was" >&5
15367       cat conftest.s >&5
15368     fi
15369     rm -f conftest.o conftest.s
15370   fi
15371 fi
15372 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15373 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15374 if test $gcc_cv_as_gdwarf2_flag = yes; then
15375
15376 cat >>confdefs.h <<\_ACEOF
15377 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15378 _ACEOF
15379
15380 fi
15381
15382  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15383 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15384 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15385   echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387   gcc_cv_as_gstabs_flag=no
15388     if test $in_tree_gas = yes; then
15389     if test $in_tree_gas_is_elf = yes \
15390   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15391   then gcc_cv_as_gstabs_flag=yes
15392 fi
15393   elif test x$gcc_cv_as != x; then
15394     echo "$insn" > conftest.s
15395     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15397   (eval $ac_try) 2>&5
15398   ac_status=$?
15399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400   (exit $ac_status); }; }
15401     then
15402         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15403    # and warns about it, but still exits successfully.  So check for
15404    # this.
15405    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407   (eval $ac_try) 2>&5
15408   ac_status=$?
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; }
15411    then :
15412    else gcc_cv_as_gstabs_flag=yes
15413    fi
15414     else
15415       echo "configure: failed program was" >&5
15416       cat conftest.s >&5
15417     fi
15418     rm -f conftest.o conftest.s
15419   fi
15420 fi
15421 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15422 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15423 if test $gcc_cv_as_gstabs_flag = yes; then
15424
15425 cat >>confdefs.h <<\_ACEOF
15426 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15427 _ACEOF
15428
15429 fi
15430 fi
15431
15432 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15433 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15434 gcc_cv_ld_ro_rw_mix=unknown
15435 if test $in_tree_ld = yes ; then
15436   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 \
15437      && test $in_tree_ld_is_elf = yes; then
15438     gcc_cv_ld_ro_rw_mix=read-write
15439   fi
15440 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15441   echo '.section myfoosect, "a"' > conftest1.s
15442   echo '.section myfoosect, "aw"' > conftest2.s
15443   echo '.byte 1' >> conftest2.s
15444   echo '.section myfoosect, "a"' > conftest3.s
15445   echo '.byte 0' >> conftest3.s
15446   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
15447      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
15448      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
15449      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
15450         conftest2.o conftest3.o > /dev/null 2>&1; then
15451     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
15452                          | sed -e '/myfoosect/!d' -e N`
15453     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
15454       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
15455         gcc_cv_ld_ro_rw_mix=read-only
15456       else
15457         gcc_cv_ld_ro_rw_mix=read-write
15458       fi
15459     fi
15460   fi
15461   rm -f conftest.* conftest[123].*
15462 fi
15463 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
15464
15465 cat >>confdefs.h <<\_ACEOF
15466 #define HAVE_LD_RO_RW_SECTION_MIXING 1
15467 _ACEOF
15468
15469 fi
15470 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
15471 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
15472
15473 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
15474 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
15475 gcc_cv_ld_eh_frame_hdr=no
15476 if test $in_tree_ld = yes ; then
15477   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 \
15478      && test $in_tree_ld_is_elf = yes; then
15479     gcc_cv_ld_eh_frame_hdr=yes
15480   fi
15481 elif test x$gcc_cv_ld != x; then
15482         # Check if linker supports --eh-frame-hdr option
15483         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
15484                 gcc_cv_ld_eh_frame_hdr=yes
15485         fi
15486 fi
15487
15488 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
15489
15490 cat >>confdefs.h <<\_ACEOF
15491 #define HAVE_LD_EH_FRAME_HDR 1
15492 _ACEOF
15493
15494 fi
15495 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
15496 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
15497
15498 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
15499 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
15500 gcc_cv_ld_pie=no
15501 if test $in_tree_ld = yes ; then
15502   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 \
15503      && test $in_tree_ld_is_elf = yes; then
15504     gcc_cv_ld_pie=yes
15505   fi
15506 elif test x$gcc_cv_ld != x; then
15507         # Check if linker supports -pie option
15508         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
15509                 gcc_cv_ld_pie=yes
15510         fi
15511 fi
15512 if test x"$gcc_cv_ld_pie" = xyes; then
15513
15514 cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_LD_PIE 1
15516 _ACEOF
15517
15518 fi
15519 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
15520 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
15521
15522 # --------
15523 # UNSORTED
15524 # --------
15525
15526 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
15527 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
15528 if test "${gcc_cv_ld_as_needed+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   gcc_cv_ld_as_needed=no
15532 if test $in_tree_ld = yes ; then
15533   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
15534      && test $in_tree_ld_is_elf = yes; then
15535     gcc_cv_ld_as_needed=yes
15536   fi
15537 elif test x$gcc_cv_ld != x; then
15538         # Check if linker supports --as-needed and --no-as-needed options
15539         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
15540                 gcc_cv_ld_as_needed=yes
15541         fi
15542 fi
15543
15544 fi
15545 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
15546 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
15547 if test x"$gcc_cv_ld_as_needed" = xyes; then
15548
15549 cat >>confdefs.h <<\_ACEOF
15550 #define HAVE_LD_AS_NEEDED 1
15551 _ACEOF
15552
15553 fi
15554
15555 case "$target" in
15556   powerpc64*-*-linux*)
15557     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
15558 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
15559 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
15560   echo $ECHO_N "(cached) $ECHO_C" >&6
15561 else
15562   gcc_cv_ld_no_dot_syms=no
15563     if test $in_tree_ld = yes ; then
15564       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
15565         gcc_cv_ld_no_dot_syms=yes
15566       fi
15567     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
15568       cat > conftest1.s <<EOF
15569         .text
15570         bl .foo
15571 EOF
15572       cat > conftest2.s <<EOF
15573         .section ".opd","aw"
15574         .align 3
15575         .globl foo
15576         .type foo,@function
15577 foo:
15578         .quad .LEfoo,.TOC.@tocbase,0
15579         .text
15580 .LEfoo:
15581         blr
15582         .size foo,.-.LEfoo
15583 EOF
15584       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
15585          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
15586          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
15587         gcc_cv_ld_no_dot_syms=yes
15588       fi
15589       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
15590     fi
15591
15592 fi
15593 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
15594 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
15595     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
15596
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_LD_NO_DOT_SYMS 1
15599 _ACEOF
15600
15601     fi
15602     ;;
15603 esac
15604
15605 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
15606 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
15607 if test "${gcc_cv_ld_sysroot+set}" = set; then
15608   echo $ECHO_N "(cached) $ECHO_C" >&6
15609 else
15610   gcc_cv_ld_sysroot=no
15611   if test $in_tree_ld = yes ; then
15612       if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
15613         gcc_cv_ld_sysroot=yes
15614       fi
15615   elif test x$gcc_cv_ld != x; then
15616     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
15617       gcc_cv_ld_sysroot=yes
15618     fi
15619   fi
15620 fi
15621 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
15622 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
15623 if test x"$gcc_cv_ld_sysroot" = xyes; then
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define HAVE_LD_SYSROOT 1
15627 _ACEOF
15628
15629 fi
15630
15631 if test x$with_sysroot = x && test x$host = x$target \
15632    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
15633
15634 cat >>confdefs.h <<_ACEOF
15635 #define PREFIX_INCLUDE_DIR "$prefix/include"
15636 _ACEOF
15637
15638 fi
15639
15640 # Test for stack protector support in target C library.
15641 case "$target" in
15642   *-*-linux*)
15643     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
15644 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
15645 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
15646   echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648   gcc_cv_libc_provides_ssp=no
15649       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
15650         if test "x$with_sysroot" = x; then
15651           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
15652         elif test "x$with_sysroot" = xyes; then
15653           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
15654         else
15655           glibc_header_dir="${with_sysroot}/usr/include"
15656         fi
15657       else
15658         glibc_header_dir=/usr/include
15659       fi
15660       # glibc 2.4 and later provides __stack_chk_fail and
15661       # either __stack_chk_guard, or TLS access to stack guard canary.
15662       if test -f $glibc_header_dir/features.h \
15663          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
15664             $glibc_header_dir/features.h > /dev/null; then
15665         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
15666            $glibc_header_dir/features.h > /dev/null; then
15667           gcc_cv_libc_provides_ssp=yes
15668         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
15669              $glibc_header_dir/features.h > /dev/null \
15670              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
15671              $glibc_header_dir/features.h > /dev/null; then
15672           gcc_cv_libc_provides_ssp=yes
15673         fi
15674       fi
15675 fi
15676 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
15677 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
15678   *) gcc_cv_libc_provides_ssp=no ;;
15679 esac
15680 if test x$gcc_cv_libc_provides_ssp = xyes; then
15681
15682 cat >>confdefs.h <<\_ACEOF
15683 #define TARGET_LIBC_PROVIDES_SSP 1
15684 _ACEOF
15685
15686 fi
15687
15688 # Find out what GC implementation we want, or may, use.
15689
15690 # Check whether --with-gc or --without-gc was given.
15691 if test "${with_gc+set}" = set; then
15692   withval="$with_gc"
15693   case "$withval" in
15694   page)
15695     GGC=ggc-$withval
15696     ;;
15697   zone)
15698     GGC=ggc-$withval
15699
15700 cat >>confdefs.h <<\_ACEOF
15701 #define GGC_ZONE 1
15702 _ACEOF
15703
15704     ;;
15705   *)
15706     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
15707 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
15708    { (exit 1); exit 1; }; }
15709     ;;
15710 esac
15711 else
15712   GGC=ggc-page
15713 fi;
15714
15715 echo "Using $GGC for garbage collection."
15716
15717 # Use the system's zlib library.
15718 zlibdir=-L../zlib
15719 zlibinc="-I\$(srcdir)/../zlib"
15720
15721 # Check whether --with-system-zlib or --without-system-zlib was given.
15722 if test "${with_system_zlib+set}" = set; then
15723   withval="$with_system_zlib"
15724   zlibdir=
15725 zlibinc=
15726
15727 fi;
15728
15729
15730
15731
15732 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
15733 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
15734     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
15735 if test "${enable_maintainer_mode+set}" = set; then
15736   enableval="$enable_maintainer_mode"
15737   maintainer_mode=$enableval
15738 else
15739   maintainer_mode=no
15740 fi;
15741
15742 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
15743 echo "${ECHO_T}$maintainer_mode" >&6
15744
15745 if test "$maintainer_mode" = "yes"; then
15746   MAINT=''
15747 else
15748   MAINT='#'
15749 fi
15750
15751 # --------------
15752 # Language hooks
15753 # --------------
15754
15755 # Make empty files to contain the specs and options for each language.
15756 # Then add #include lines to for a compiler that has specs and/or options.
15757
15758 lang_opt_files=
15759 lang_specs_files=
15760 lang_tree_files=
15761 for subdir in . $subdirs
15762 do
15763         if test -f $srcdir/$subdir/lang.opt; then
15764             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
15765         fi
15766         if test -f $srcdir/$subdir/lang-specs.h; then
15767             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
15768         fi
15769         if test -f $srcdir/$subdir/$subdir-tree.def; then
15770             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
15771         fi
15772 done
15773
15774 # These (without "all_") are set in each config-lang.in.
15775 # `language' must be a single word so is spelled singularly.
15776 all_languages=
15777 all_boot_languages=
15778 all_compilers=
15779 all_stagestuff=
15780 all_outputs='Makefile gccbug mklibgcc libada-mk'
15781 # List of language makefile fragments.
15782 all_lang_makefrags=
15783 # List of language subdirectory makefiles.  Deprecated.
15784 all_lang_makefiles=
15785 # Files for gengtype
15786 all_gtfiles="$target_gtfiles"
15787 # Files for gengtype with language
15788 all_gtfiles_files_langs=
15789 all_gtfiles_files_files=
15790
15791 # Add the language fragments.
15792 # Languages are added via two mechanisms.  Some information must be
15793 # recorded in makefile variables, these are defined in config-lang.in.
15794 # We accumulate them and plug them into the main Makefile.
15795 # The other mechanism is a set of hooks for each of the main targets
15796 # like `clean', `install', etc.
15797
15798 language_hooks="Make-hooks"
15799
15800 for s in $subdirs
15801 do
15802                 language=
15803                 boot_language=
15804                 compilers=
15805                 stagestuff=
15806                 outputs=
15807                 gtfiles=
15808                 . ${srcdir}/$s/config-lang.in
15809                 if test "x$language" = x
15810                 then
15811                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
15812                         exit 1
15813                 fi
15814                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
15815                 if test -f ${srcdir}/$s/Makefile.in
15816                 then all_lang_makefiles="$s/Makefile"
15817                 fi
15818                 all_languages="$all_languages $language"
15819                 if test "x$boot_language" = xyes
15820                 then
15821                         all_boot_languages="$all_boot_languages $language"
15822                 fi
15823                 all_compilers="$all_compilers $compilers"
15824                 all_stagestuff="$all_stagestuff $stagestuff"
15825                 all_outputs="$all_outputs $outputs"
15826                 all_gtfiles="$all_gtfiles $gtfiles"
15827                 for f in $gtfiles
15828                 do
15829                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15830                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15831                 done
15832 done
15833
15834 # Pick up gtfiles for c
15835 gtfiles=
15836 s="c"
15837 . ${srcdir}/c-config-lang.in
15838 all_gtfiles="$all_gtfiles $gtfiles"
15839 for f in $gtfiles
15840 do
15841         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
15842         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
15843 done
15844
15845 check_languages=
15846 for language in $all_languages
15847 do
15848                 check_languages="$check_languages check-$language"
15849 done
15850
15851 # We link each language in with a set of hooks, reached indirectly via
15852 # lang.${target}.
15853
15854 rm -f Make-hooks
15855 touch Make-hooks
15856 target_list="all.build all.cross start.encap rest.encap tags \
15857         install-normal install-common install-man \
15858         uninstall info man srcextra srcman srcinfo \
15859         mostlyclean clean distclean maintainer-clean \
15860         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
15861 for t in $target_list
15862 do
15863         x=
15864         for lang in $all_languages
15865         do
15866                         x="$x $lang.$t"
15867         done
15868         echo "lang.$t: $x" >> Make-hooks
15869 done
15870
15871 # --------
15872 # UNSORTED
15873 # --------
15874
15875 # Create .gdbinit.
15876
15877 echo "dir ." > .gdbinit
15878 echo "dir ${srcdir}" >> .gdbinit
15879 if test x$gdb_needs_out_file_path = xyes
15880 then
15881         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
15882 fi
15883 if test "x$subdirs" != x; then
15884         for s in $subdirs
15885         do
15886                 echo "dir ${srcdir}/$s" >> .gdbinit
15887         done
15888 fi
15889 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
15890
15891 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
15892 # absolute path for gcc_tooldir based on inserting the number of up-directory
15893 # movements required to get from $(exec_prefix) to $(prefix) into the basic
15894 # $(libsubdir)/@(unlibsubdir) based path.
15895 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
15896 # make and thus we'd get different behavior depending on where we built the
15897 # sources.
15898 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
15899     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
15900 else
15901 # An explanation of the sed strings:
15902 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
15903 #  -e 's|/$||'            match a trailing forward slash and eliminates it
15904 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
15905 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
15906 #
15907 # (*) Note this pattern overwrites the first character of the string
15908 # with a forward slash if one is not already present.  This is not a
15909 # problem because the exact names of the sub-directories concerned is
15910 # unimportant, just the number of them matters.
15911 #
15912 # The practical upshot of these patterns is like this:
15913 #
15914 #  prefix     exec_prefix        result
15915 #  ------     -----------        ------
15916 #   /foo        /foo/bar          ../
15917 #   /foo/       /foo/bar          ../
15918 #   /foo        /foo/bar/         ../
15919 #   /foo/       /foo/bar/         ../
15920 #   /foo        /foo/bar/ugg      ../../
15921 #
15922     dollar='$$'
15923     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
15924 fi
15925
15926
15927
15928 # Find a directory in which to install a shared libgcc.
15929
15930 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
15931 if test "${enable_version_specific_runtime_libs+set}" = set; then
15932   enableval="$enable_version_specific_runtime_libs"
15933
15934 fi;
15935
15936
15937 # Check whether --with-slibdir or --without-slibdir was given.
15938 if test "${with_slibdir+set}" = set; then
15939   withval="$with_slibdir"
15940   slibdir="$with_slibdir"
15941 else
15942   if test "${enable_version_specific_runtime_libs+set}" = set; then
15943   slibdir='$(libsubdir)'
15944 elif test "$host" != "$target"; then
15945   slibdir='$(build_tooldir)/lib'
15946 else
15947   slibdir='$(libdir)'
15948 fi
15949 fi;
15950
15951
15952 objdir=`${PWDCMD-pwd}`
15953
15954
15955 # Substitute configuration variables
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019 # Echo link setup.
16020 if test x${build} = x${host} ; then
16021   if test x${host} = x${target} ; then
16022     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16023   else
16024     echo "Links are now set up to build a cross-compiler" 1>&2
16025     echo " from ${host} to ${target}." 1>&2
16026   fi
16027 else
16028   if test x${host} = x${target} ; then
16029     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16030     echo " for ${target}." 1>&2
16031   else
16032     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16033     echo " from ${host} to ${target}." 1>&2
16034   fi
16035 fi
16036
16037
16038
16039
16040 # Configure the subdirectories
16041 # AC_CONFIG_SUBDIRS($subdirs)
16042
16043 # Create the Makefile
16044 # and configure language subdirectories
16045           ac_config_files="$ac_config_files $all_outputs"
16046
16047
16048           ac_config_commands="$ac_config_commands default"
16049
16050 cat >confcache <<\_ACEOF
16051 # This file is a shell script that caches the results of configure
16052 # tests run on this system so they can be shared between configure
16053 # scripts and configure runs, see configure's option --config-cache.
16054 # It is not useful on other systems.  If it contains results you don't
16055 # want to keep, you may remove or edit it.
16056 #
16057 # config.status only pays attention to the cache file if you give it
16058 # the --recheck option to rerun configure.
16059 #
16060 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16061 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16062 # following values.
16063
16064 _ACEOF
16065
16066 # The following way of writing the cache mishandles newlines in values,
16067 # but we know of no workaround that is simple, portable, and efficient.
16068 # So, don't put newlines in cache variables' values.
16069 # Ultrix sh set writes to stderr and can't be redirected directly,
16070 # and sets the high bit in the cache file unless we assign to the vars.
16071 {
16072   (set) 2>&1 |
16073     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16074     *ac_space=\ *)
16075       # `set' does not quote correctly, so add quotes (double-quote
16076       # substitution turns \\\\ into \\, and sed turns \\ into \).
16077       sed -n \
16078         "s/'/'\\\\''/g;
16079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16080       ;;
16081     *)
16082       # `set' quotes correctly as required by POSIX, so do not add quotes.
16083       sed -n \
16084         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16085       ;;
16086     esac;
16087 } |
16088   sed '
16089      t clear
16090      : clear
16091      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16092      t end
16093      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16094      : end' >>confcache
16095 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16096   if test -w $cache_file; then
16097     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16098     cat confcache >$cache_file
16099   else
16100     echo "not updating unwritable cache $cache_file"
16101   fi
16102 fi
16103 rm -f confcache
16104
16105 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16106 # Let make expand exec_prefix.
16107 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16108
16109 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16110 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16111 # trailing colons and then remove the whole line if VPATH becomes empty
16112 # (actually we leave an empty line to preserve line numbers).
16113 if test "x$srcdir" = x.; then
16114   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16115 s/:*\$(srcdir):*/:/;
16116 s/:*\${srcdir}:*/:/;
16117 s/:*@srcdir@:*/:/;
16118 s/^\([^=]*=[     ]*\):*/\1/;
16119 s/:*$//;
16120 s/^[^=]*=[       ]*$//;
16121 }'
16122 fi
16123
16124 DEFS=-DHAVE_CONFIG_H
16125
16126 ac_libobjs=
16127 ac_ltlibobjs=
16128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16129   # 1. Remove the extension, and $U if already installed.
16130   ac_i=`echo "$ac_i" |
16131          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16132   # 2. Add them.
16133   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16134   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16135 done
16136 LIBOBJS=$ac_libobjs
16137
16138 LTLIBOBJS=$ac_ltlibobjs
16139
16140
16141
16142 : ${CONFIG_STATUS=./config.status}
16143 ac_clean_files_save=$ac_clean_files
16144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16147 cat >$CONFIG_STATUS <<_ACEOF
16148 #! $SHELL
16149 # Generated by $as_me.
16150 # Run this file to recreate the current configuration.
16151 # Compiler output produced by configure, useful for debugging
16152 # configure, is in config.log if it exists.
16153
16154 debug=false
16155 ac_cs_recheck=false
16156 ac_cs_silent=false
16157 SHELL=\${CONFIG_SHELL-$SHELL}
16158 _ACEOF
16159
16160 cat >>$CONFIG_STATUS <<\_ACEOF
16161 ## --------------------- ##
16162 ## M4sh Initialization.  ##
16163 ## --------------------- ##
16164
16165 # Be Bourne compatible
16166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16167   emulate sh
16168   NULLCMD=:
16169   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16170   # is contrary to our usage.  Disable this feature.
16171   alias -g '${1+"$@"}'='"$@"'
16172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16173   set -o posix
16174 fi
16175 DUALCASE=1; export DUALCASE # for MKS sh
16176
16177 # Support unset when possible.
16178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16179   as_unset=unset
16180 else
16181   as_unset=false
16182 fi
16183
16184
16185 # Work around bugs in pre-3.0 UWIN ksh.
16186 $as_unset ENV MAIL MAILPATH
16187 PS1='$ '
16188 PS2='> '
16189 PS4='+ '
16190
16191 # NLS nuisances.
16192 for as_var in \
16193   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16194   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16195   LC_TELEPHONE LC_TIME
16196 do
16197   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16198     eval $as_var=C; export $as_var
16199   else
16200     $as_unset $as_var
16201   fi
16202 done
16203
16204 # Required to use basename.
16205 if expr a : '\(a\)' >/dev/null 2>&1; then
16206   as_expr=expr
16207 else
16208   as_expr=false
16209 fi
16210
16211 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16212   as_basename=basename
16213 else
16214   as_basename=false
16215 fi
16216
16217
16218 # Name of the executable.
16219 as_me=`$as_basename "$0" ||
16220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16221          X"$0" : 'X\(//\)$' \| \
16222          X"$0" : 'X\(/\)$' \| \
16223          .     : '\(.\)' 2>/dev/null ||
16224 echo X/"$0" |
16225     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16226           /^X\/\(\/\/\)$/{ s//\1/; q; }
16227           /^X\/\(\/\).*/{ s//\1/; q; }
16228           s/.*/./; q'`
16229
16230
16231 # PATH needs CR, and LINENO needs CR and PATH.
16232 # Avoid depending upon Character Ranges.
16233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16236 as_cr_digits='0123456789'
16237 as_cr_alnum=$as_cr_Letters$as_cr_digits
16238
16239 # The user is always right.
16240 if test "${PATH_SEPARATOR+set}" != set; then
16241   echo "#! /bin/sh" >conf$$.sh
16242   echo  "exit 0"   >>conf$$.sh
16243   chmod +x conf$$.sh
16244   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16245     PATH_SEPARATOR=';'
16246   else
16247     PATH_SEPARATOR=:
16248   fi
16249   rm -f conf$$.sh
16250 fi
16251
16252
16253   as_lineno_1=$LINENO
16254   as_lineno_2=$LINENO
16255   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16256   test "x$as_lineno_1" != "x$as_lineno_2" &&
16257   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16258   # Find who we are.  Look in the path if we contain no path at all
16259   # relative or not.
16260   case $0 in
16261     *[\\/]* ) as_myself=$0 ;;
16262     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16263 for as_dir in $PATH
16264 do
16265   IFS=$as_save_IFS
16266   test -z "$as_dir" && as_dir=.
16267   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16268 done
16269
16270        ;;
16271   esac
16272   # We did not find ourselves, most probably we were run as `sh COMMAND'
16273   # in which case we are not to be found in the path.
16274   if test "x$as_myself" = x; then
16275     as_myself=$0
16276   fi
16277   if test ! -f "$as_myself"; then
16278     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16279 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16280    { (exit 1); exit 1; }; }
16281   fi
16282   case $CONFIG_SHELL in
16283   '')
16284     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16286 do
16287   IFS=$as_save_IFS
16288   test -z "$as_dir" && as_dir=.
16289   for as_base in sh bash ksh sh5; do
16290          case $as_dir in
16291          /*)
16292            if ("$as_dir/$as_base" -c '
16293   as_lineno_1=$LINENO
16294   as_lineno_2=$LINENO
16295   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16296   test "x$as_lineno_1" != "x$as_lineno_2" &&
16297   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16298              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16299              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16300              CONFIG_SHELL=$as_dir/$as_base
16301              export CONFIG_SHELL
16302              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16303            fi;;
16304          esac
16305        done
16306 done
16307 ;;
16308   esac
16309
16310   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16311   # uniformly replaced by the line number.  The first 'sed' inserts a
16312   # line-number line before each line; the second 'sed' does the real
16313   # work.  The second script uses 'N' to pair each line-number line
16314   # with the numbered line, and appends trailing '-' during
16315   # substitution so that $LINENO is not a special case at line end.
16316   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16317   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16318   sed '=' <$as_myself |
16319     sed '
16320       N
16321       s,$,-,
16322       : loop
16323       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16324       t loop
16325       s,-$,,
16326       s,^['$as_cr_digits']*\n,,
16327     ' >$as_me.lineno &&
16328   chmod +x $as_me.lineno ||
16329     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16330 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16331    { (exit 1); exit 1; }; }
16332
16333   # Don't try to exec as it changes $[0], causing all sort of problems
16334   # (the dirname of $[0] is not the place where we might find the
16335   # original and so on.  Autoconf is especially sensible to this).
16336   . ./$as_me.lineno
16337   # Exit status is that of the last command.
16338   exit
16339 }
16340
16341
16342 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16343   *c*,-n*) ECHO_N= ECHO_C='
16344 ' ECHO_T='      ' ;;
16345   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16346   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16347 esac
16348
16349 if expr a : '\(a\)' >/dev/null 2>&1; then
16350   as_expr=expr
16351 else
16352   as_expr=false
16353 fi
16354
16355 rm -f conf$$ conf$$.exe conf$$.file
16356 echo >conf$$.file
16357 if ln -s conf$$.file conf$$ 2>/dev/null; then
16358   # We could just check for DJGPP; but this test a) works b) is more generic
16359   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16360   if test -f conf$$.exe; then
16361     # Don't use ln at all; we don't have any links
16362     as_ln_s='cp -p'
16363   else
16364     as_ln_s='ln -s'
16365   fi
16366 elif ln conf$$.file conf$$ 2>/dev/null; then
16367   as_ln_s=ln
16368 else
16369   as_ln_s='cp -p'
16370 fi
16371 rm -f conf$$ conf$$.exe conf$$.file
16372
16373 if mkdir -p . 2>/dev/null; then
16374   as_mkdir_p=:
16375 else
16376   test -d ./-p && rmdir ./-p
16377   as_mkdir_p=false
16378 fi
16379
16380 as_executable_p="test -f"
16381
16382 # Sed expression to map a string onto a valid CPP name.
16383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16384
16385 # Sed expression to map a string onto a valid variable name.
16386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16387
16388
16389 # IFS
16390 # We need space, tab and new line, in precisely that order.
16391 as_nl='
16392 '
16393 IFS="   $as_nl"
16394
16395 # CDPATH.
16396 $as_unset CDPATH
16397
16398 exec 6>&1
16399
16400 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16401 # report actual input values of CONFIG_FILES etc. instead of their
16402 # values after options handling.  Logging --version etc. is OK.
16403 exec 5>>config.log
16404 {
16405   echo
16406   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16407 ## Running $as_me. ##
16408 _ASBOX
16409 } >&5
16410 cat >&5 <<_CSEOF
16411
16412 This file was extended by $as_me, which was
16413 generated by GNU Autoconf 2.59.  Invocation command line was
16414
16415   CONFIG_FILES    = $CONFIG_FILES
16416   CONFIG_HEADERS  = $CONFIG_HEADERS
16417   CONFIG_LINKS    = $CONFIG_LINKS
16418   CONFIG_COMMANDS = $CONFIG_COMMANDS
16419   $ $0 $@
16420
16421 _CSEOF
16422 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16423 echo >&5
16424 _ACEOF
16425
16426 # Files that config.status was made for.
16427 if test -n "$ac_config_files"; then
16428   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16429 fi
16430
16431 if test -n "$ac_config_headers"; then
16432   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16433 fi
16434
16435 if test -n "$ac_config_links"; then
16436   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16437 fi
16438
16439 if test -n "$ac_config_commands"; then
16440   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16441 fi
16442
16443 cat >>$CONFIG_STATUS <<\_ACEOF
16444
16445 ac_cs_usage="\
16446 \`$as_me' instantiates files from templates according to the
16447 current configuration.
16448
16449 Usage: $0 [OPTIONS] [FILE]...
16450
16451   -h, --help       print this help, then exit
16452   -V, --version    print version number, then exit
16453   -q, --quiet      do not print progress messages
16454   -d, --debug      don't remove temporary files
16455       --recheck    update $as_me by reconfiguring in the same conditions
16456   --file=FILE[:TEMPLATE]
16457                    instantiate the configuration file FILE
16458   --header=FILE[:TEMPLATE]
16459                    instantiate the configuration header FILE
16460
16461 Configuration files:
16462 $config_files
16463
16464 Configuration headers:
16465 $config_headers
16466
16467 Configuration commands:
16468 $config_commands
16469
16470 Report bugs to <bug-autoconf@gnu.org>."
16471 _ACEOF
16472
16473 cat >>$CONFIG_STATUS <<_ACEOF
16474 ac_cs_version="\\
16475 config.status
16476 configured by $0, generated by GNU Autoconf 2.59,
16477   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16478
16479 Copyright (C) 2003 Free Software Foundation, Inc.
16480 This config.status script is free software; the Free Software Foundation
16481 gives unlimited permission to copy, distribute and modify it."
16482 srcdir=$srcdir
16483 _ACEOF
16484
16485 cat >>$CONFIG_STATUS <<\_ACEOF
16486 # If no file are specified by the user, then we need to provide default
16487 # value.  By we need to know if files were specified by the user.
16488 ac_need_defaults=:
16489 while test $# != 0
16490 do
16491   case $1 in
16492   --*=*)
16493     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16494     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16495     ac_shift=:
16496     ;;
16497   -*)
16498     ac_option=$1
16499     ac_optarg=$2
16500     ac_shift=shift
16501     ;;
16502   *) # This is not an option, so the user has probably given explicit
16503      # arguments.
16504      ac_option=$1
16505      ac_need_defaults=false;;
16506   esac
16507
16508   case $ac_option in
16509   # Handling of the options.
16510 _ACEOF
16511 cat >>$CONFIG_STATUS <<\_ACEOF
16512   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16513     ac_cs_recheck=: ;;
16514   --version | --vers* | -V )
16515     echo "$ac_cs_version"; exit 0 ;;
16516   --he | --h)
16517     # Conflict between --help and --header
16518     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16519 Try \`$0 --help' for more information." >&5
16520 echo "$as_me: error: ambiguous option: $1
16521 Try \`$0 --help' for more information." >&2;}
16522    { (exit 1); exit 1; }; };;
16523   --help | --hel | -h )
16524     echo "$ac_cs_usage"; exit 0 ;;
16525   --debug | --d* | -d )
16526     debug=: ;;
16527   --file | --fil | --fi | --f )
16528     $ac_shift
16529     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16530     ac_need_defaults=false;;
16531   --header | --heade | --head | --hea )
16532     $ac_shift
16533     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16534     ac_need_defaults=false;;
16535   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16536   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16537     ac_cs_silent=: ;;
16538
16539   # This is an error.
16540   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16541 Try \`$0 --help' for more information." >&5
16542 echo "$as_me: error: unrecognized option: $1
16543 Try \`$0 --help' for more information." >&2;}
16544    { (exit 1); exit 1; }; } ;;
16545
16546   *) ac_config_targets="$ac_config_targets $1" ;;
16547
16548   esac
16549   shift
16550 done
16551
16552 ac_configure_extra_args=
16553
16554 if $ac_cs_silent; then
16555   exec 6>/dev/null
16556   ac_configure_extra_args="$ac_configure_extra_args --silent"
16557 fi
16558
16559 _ACEOF
16560 cat >>$CONFIG_STATUS <<_ACEOF
16561 if \$ac_cs_recheck; then
16562   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16563   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16564 fi
16565
16566 _ACEOF
16567
16568 cat >>$CONFIG_STATUS <<_ACEOF
16569 #
16570 # INIT-COMMANDS section.
16571 #
16572
16573 subdirs='$subdirs'
16574
16575 _ACEOF
16576
16577
16578
16579 cat >>$CONFIG_STATUS <<\_ACEOF
16580 for ac_config_target in $ac_config_targets
16581 do
16582   case "$ac_config_target" in
16583   # Handling of arguments.
16584   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
16585   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16586   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
16587   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16588 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16589    { (exit 1); exit 1; }; };;
16590   esac
16591 done
16592
16593 # If the user did not use the arguments to specify the items to instantiate,
16594 # then the envvar interface is used.  Set only those that are not.
16595 # We use the long form for the default assignment because of an extremely
16596 # bizarre bug on SunOS 4.1.3.
16597 if $ac_need_defaults; then
16598   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16599   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16600   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16601 fi
16602
16603 # Have a temporary directory for convenience.  Make it in the build tree
16604 # simply because there is no reason to put it here, and in addition,
16605 # creating and moving files from /tmp can sometimes cause problems.
16606 # Create a temporary directory, and hook for its removal unless debugging.
16607 $debug ||
16608 {
16609   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16610   trap '{ (exit 1); exit 1; }' 1 2 13 15
16611 }
16612
16613 # Create a (secure) tmp directory for tmp files.
16614
16615 {
16616   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16617   test -n "$tmp" && test -d "$tmp"
16618 }  ||
16619 {
16620   tmp=./confstat$$-$RANDOM
16621   (umask 077 && mkdir $tmp)
16622 } ||
16623 {
16624    echo "$me: cannot create a temporary directory in ." >&2
16625    { (exit 1); exit 1; }
16626 }
16627
16628 _ACEOF
16629
16630 cat >>$CONFIG_STATUS <<_ACEOF
16631
16632 #
16633 # CONFIG_FILES section.
16634 #
16635
16636 # No need to generate the scripts if there are no CONFIG_FILES.
16637 # This happens for instance when ./config.status config.h
16638 if test -n "\$CONFIG_FILES"; then
16639   # Protect against being on the right side of a sed subst in config.status.
16640   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16641    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16642 s,@SHELL@,$SHELL,;t t
16643 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16644 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16645 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16646 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16647 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16648 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16649 s,@exec_prefix@,$exec_prefix,;t t
16650 s,@prefix@,$prefix,;t t
16651 s,@program_transform_name@,$program_transform_name,;t t
16652 s,@bindir@,$bindir,;t t
16653 s,@sbindir@,$sbindir,;t t
16654 s,@libexecdir@,$libexecdir,;t t
16655 s,@datadir@,$datadir,;t t
16656 s,@sysconfdir@,$sysconfdir,;t t
16657 s,@sharedstatedir@,$sharedstatedir,;t t
16658 s,@localstatedir@,$localstatedir,;t t
16659 s,@libdir@,$libdir,;t t
16660 s,@includedir@,$includedir,;t t
16661 s,@oldincludedir@,$oldincludedir,;t t
16662 s,@infodir@,$infodir,;t t
16663 s,@mandir@,$mandir,;t t
16664 s,@build_alias@,$build_alias,;t t
16665 s,@host_alias@,$host_alias,;t t
16666 s,@target_alias@,$target_alias,;t t
16667 s,@DEFS@,$DEFS,;t t
16668 s,@ECHO_C@,$ECHO_C,;t t
16669 s,@ECHO_N@,$ECHO_N,;t t
16670 s,@ECHO_T@,$ECHO_T,;t t
16671 s,@LIBS@,$LIBS,;t t
16672 s,@build@,$build,;t t
16673 s,@build_cpu@,$build_cpu,;t t
16674 s,@build_vendor@,$build_vendor,;t t
16675 s,@build_os@,$build_os,;t t
16676 s,@host@,$host,;t t
16677 s,@host_cpu@,$host_cpu,;t t
16678 s,@host_vendor@,$host_vendor,;t t
16679 s,@host_os@,$host_os,;t t
16680 s,@target@,$target,;t t
16681 s,@target_cpu@,$target_cpu,;t t
16682 s,@target_vendor@,$target_vendor,;t t
16683 s,@target_os@,$target_os,;t t
16684 s,@target_noncanonical@,$target_noncanonical,;t t
16685 s,@build_subdir@,$build_subdir,;t t
16686 s,@host_subdir@,$host_subdir,;t t
16687 s,@target_subdir@,$target_subdir,;t t
16688 s,@GENINSRC@,$GENINSRC,;t t
16689 s,@CC@,$CC,;t t
16690 s,@CFLAGS@,$CFLAGS,;t t
16691 s,@LDFLAGS@,$LDFLAGS,;t t
16692 s,@CPPFLAGS@,$CPPFLAGS,;t t
16693 s,@ac_ct_CC@,$ac_ct_CC,;t t
16694 s,@EXEEXT@,$EXEEXT,;t t
16695 s,@OBJEXT@,$OBJEXT,;t t
16696 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
16697 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
16698 s,@CPP@,$CPP,;t t
16699 s,@EGREP@,$EGREP,;t t
16700 s,@strict1_warn@,$strict1_warn,;t t
16701 s,@warn_cflags@,$warn_cflags,;t t
16702 s,@WERROR@,$WERROR,;t t
16703 s,@nocommon_flag@,$nocommon_flag,;t t
16704 s,@TREEBROWSER@,$TREEBROWSER,;t t
16705 s,@valgrind_path@,$valgrind_path,;t t
16706 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
16707 s,@valgrind_command@,$valgrind_command,;t t
16708 s,@coverage_flags@,$coverage_flags,;t t
16709 s,@enable_multilib@,$enable_multilib,;t t
16710 s,@enable_shared@,$enable_shared,;t t
16711 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
16712 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
16713 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
16714 s,@onestep@,$onestep,;t t
16715 s,@SET_MAKE@,$SET_MAKE,;t t
16716 s,@AWK@,$AWK,;t t
16717 s,@LN_S@,$LN_S,;t t
16718 s,@LN@,$LN,;t t
16719 s,@RANLIB@,$RANLIB,;t t
16720 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16721 s,@ranlib_flags@,$ranlib_flags,;t t
16722 s,@INSTALL@,$INSTALL,;t t
16723 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16724 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16725 s,@make_compare_target@,$make_compare_target,;t t
16726 s,@have_mktemp_command@,$have_mktemp_command,;t t
16727 s,@MAKEINFO@,$MAKEINFO,;t t
16728 s,@BUILD_INFO@,$BUILD_INFO,;t t
16729 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
16730 s,@FLEX@,$FLEX,;t t
16731 s,@BISON@,$BISON,;t t
16732 s,@NM@,$NM,;t t
16733 s,@AR@,$AR,;t t
16734 s,@stage1_cflags@,$stage1_cflags,;t t
16735 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
16736 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
16737 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
16738 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
16739 s,@LIBICONV@,$LIBICONV,;t t
16740 s,@LTLIBICONV@,$LTLIBICONV,;t t
16741 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
16742 s,@manext@,$manext,;t t
16743 s,@objext@,$objext,;t t
16744 s,@gthread_flags@,$gthread_flags,;t t
16745 s,@extra_modes_file@,$extra_modes_file,;t t
16746 s,@extra_opt_files@,$extra_opt_files,;t t
16747 s,@USE_NLS@,$USE_NLS,;t t
16748 s,@LIBINTL@,$LIBINTL,;t t
16749 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
16750 s,@INCINTL@,$INCINTL,;t t
16751 s,@XGETTEXT@,$XGETTEXT,;t t
16752 s,@GMSGFMT@,$GMSGFMT,;t t
16753 s,@POSUB@,$POSUB,;t t
16754 s,@CATALOGS@,$CATALOGS,;t t
16755 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
16756 s,@CROSS@,$CROSS,;t t
16757 s,@ALL@,$ALL,;t t
16758 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
16759 s,@inhibit_libc@,$inhibit_libc,;t t
16760 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
16761 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
16762 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
16763 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
16764 s,@collect2@,$collect2,;t t
16765 s,@gcc_cv_as@,$gcc_cv_as,;t t
16766 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
16767 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
16768 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
16769 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
16770 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
16771 s,@libgcc_visibility@,$libgcc_visibility,;t t
16772 s,@GGC@,$GGC,;t t
16773 s,@zlibdir@,$zlibdir,;t t
16774 s,@zlibinc@,$zlibinc,;t t
16775 s,@MAINT@,$MAINT,;t t
16776 s,@gcc_tooldir@,$gcc_tooldir,;t t
16777 s,@dollar@,$dollar,;t t
16778 s,@slibdir@,$slibdir,;t t
16779 s,@objdir@,$objdir,;t t
16780 s,@subdirs@,$subdirs,;t t
16781 s,@srcdir@,$srcdir,;t t
16782 s,@all_boot_languages@,$all_boot_languages,;t t
16783 s,@all_compilers@,$all_compilers,;t t
16784 s,@all_gtfiles@,$all_gtfiles,;t t
16785 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
16786 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
16787 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
16788 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
16789 s,@all_languages@,$all_languages,;t t
16790 s,@all_stagestuff@,$all_stagestuff,;t t
16791 s,@build_exeext@,$build_exeext,;t t
16792 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
16793 s,@build_xm_file_list@,$build_xm_file_list,;t t
16794 s,@build_xm_include_list@,$build_xm_include_list,;t t
16795 s,@build_xm_defines@,$build_xm_defines,;t t
16796 s,@check_languages@,$check_languages,;t t
16797 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
16798 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
16799 s,@cpp_install_dir@,$cpp_install_dir,;t t
16800 s,@xmake_file@,$xmake_file,;t t
16801 s,@tmake_file@,$tmake_file,;t t
16802 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
16803 s,@extra_headers_list@,$extra_headers_list,;t t
16804 s,@extra_objs@,$extra_objs,;t t
16805 s,@extra_parts@,$extra_parts,;t t
16806 s,@extra_passes@,$extra_passes,;t t
16807 s,@extra_programs@,$extra_programs,;t t
16808 s,@float_h_file@,$float_h_file,;t t
16809 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
16810 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
16811 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16812 s,@host_exeext@,$host_exeext,;t t
16813 s,@host_xm_file_list@,$host_xm_file_list,;t t
16814 s,@host_xm_include_list@,$host_xm_include_list,;t t
16815 s,@host_xm_defines@,$host_xm_defines,;t t
16816 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
16817 s,@install@,$install,;t t
16818 s,@lang_opt_files@,$lang_opt_files,;t t
16819 s,@lang_specs_files@,$lang_specs_files,;t t
16820 s,@lang_tree_files@,$lang_tree_files,;t t
16821 s,@local_prefix@,$local_prefix,;t t
16822 s,@md_file@,$md_file,;t t
16823 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
16824 s,@out_file@,$out_file,;t t
16825 s,@out_object_file@,$out_object_file,;t t
16826 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
16827 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
16828 s,@thread_file@,$thread_file,;t t
16829 s,@tm_file_list@,$tm_file_list,;t t
16830 s,@tm_include_list@,$tm_include_list,;t t
16831 s,@tm_defines@,$tm_defines,;t t
16832 s,@tm_p_file_list@,$tm_p_file_list,;t t
16833 s,@tm_p_include_list@,$tm_p_include_list,;t t
16834 s,@xm_file_list@,$xm_file_list,;t t
16835 s,@xm_include_list@,$xm_include_list,;t t
16836 s,@xm_defines@,$xm_defines,;t t
16837 s,@c_target_objs@,$c_target_objs,;t t
16838 s,@cxx_target_objs@,$cxx_target_objs,;t t
16839 s,@target_cpu_default@,$target_cpu_default,;t t
16840 s,@GMPLIBS@,$GMPLIBS,;t t
16841 s,@GMPINC@,$GMPINC,;t t
16842 s,@LIBOBJS@,$LIBOBJS,;t t
16843 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16844 /@language_hooks@/r $language_hooks
16845 s,@language_hooks@,,;t t
16846 CEOF
16847
16848 _ACEOF
16849
16850   cat >>$CONFIG_STATUS <<\_ACEOF
16851   # Split the substitutions into bite-sized pieces for seds with
16852   # small command number limits, like on Digital OSF/1 and HP-UX.
16853   ac_max_sed_lines=48
16854   ac_sed_frag=1 # Number of current file.
16855   ac_beg=1 # First line for current file.
16856   ac_end=$ac_max_sed_lines # Line after last line for current file.
16857   ac_more_lines=:
16858   ac_sed_cmds=
16859   while $ac_more_lines; do
16860     if test $ac_beg -gt 1; then
16861       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16862     else
16863       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16864     fi
16865     if test ! -s $tmp/subs.frag; then
16866       ac_more_lines=false
16867     else
16868       # The purpose of the label and of the branching condition is to
16869       # speed up the sed processing (if there are no `@' at all, there
16870       # is no need to browse any of the substitutions).
16871       # These are the two extra sed commands mentioned above.
16872       (echo ':t
16873   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16874       if test -z "$ac_sed_cmds"; then
16875         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16876       else
16877         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16878       fi
16879       ac_sed_frag=`expr $ac_sed_frag + 1`
16880       ac_beg=$ac_end
16881       ac_end=`expr $ac_end + $ac_max_sed_lines`
16882     fi
16883   done
16884   if test -z "$ac_sed_cmds"; then
16885     ac_sed_cmds=cat
16886   fi
16887 fi # test -n "$CONFIG_FILES"
16888
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<\_ACEOF
16891 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16892   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16893   case $ac_file in
16894   - | *:- | *:-:* ) # input from stdin
16895         cat >$tmp/stdin
16896         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16897         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16898   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16899         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16900   * )   ac_file_in=$ac_file.in ;;
16901   esac
16902
16903   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16904   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16905 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16906          X"$ac_file" : 'X\(//\)[^/]' \| \
16907          X"$ac_file" : 'X\(//\)$' \| \
16908          X"$ac_file" : 'X\(/\)' \| \
16909          .     : '\(.\)' 2>/dev/null ||
16910 echo X"$ac_file" |
16911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16913           /^X\(\/\/\)$/{ s//\1/; q; }
16914           /^X\(\/\).*/{ s//\1/; q; }
16915           s/.*/./; q'`
16916   { if $as_mkdir_p; then
16917     mkdir -p "$ac_dir"
16918   else
16919     as_dir="$ac_dir"
16920     as_dirs=
16921     while test ! -d "$as_dir"; do
16922       as_dirs="$as_dir $as_dirs"
16923       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16925          X"$as_dir" : 'X\(//\)[^/]' \| \
16926          X"$as_dir" : 'X\(//\)$' \| \
16927          X"$as_dir" : 'X\(/\)' \| \
16928          .     : '\(.\)' 2>/dev/null ||
16929 echo X"$as_dir" |
16930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16932           /^X\(\/\/\)$/{ s//\1/; q; }
16933           /^X\(\/\).*/{ s//\1/; q; }
16934           s/.*/./; q'`
16935     done
16936     test ! -n "$as_dirs" || mkdir $as_dirs
16937   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16939    { (exit 1); exit 1; }; }; }
16940
16941   ac_builddir=.
16942
16943 if test "$ac_dir" != .; then
16944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16945   # A "../" for each directory in $ac_dir_suffix.
16946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16947 else
16948   ac_dir_suffix= ac_top_builddir=
16949 fi
16950
16951 case $srcdir in
16952   .)  # No --srcdir option.  We are building in place.
16953     ac_srcdir=.
16954     if test -z "$ac_top_builddir"; then
16955        ac_top_srcdir=.
16956     else
16957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16958     fi ;;
16959   [\\/]* | ?:[\\/]* )  # Absolute path.
16960     ac_srcdir=$srcdir$ac_dir_suffix;
16961     ac_top_srcdir=$srcdir ;;
16962   *) # Relative path.
16963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16965 esac
16966
16967 # Do not use `cd foo && pwd` to compute absolute paths, because
16968 # the directories may not exist.
16969 case `pwd` in
16970 .) ac_abs_builddir="$ac_dir";;
16971 *)
16972   case "$ac_dir" in
16973   .) ac_abs_builddir=`pwd`;;
16974   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16975   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16976   esac;;
16977 esac
16978 case $ac_abs_builddir in
16979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16980 *)
16981   case ${ac_top_builddir}. in
16982   .) ac_abs_top_builddir=$ac_abs_builddir;;
16983   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16984   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16985   esac;;
16986 esac
16987 case $ac_abs_builddir in
16988 .) ac_abs_srcdir=$ac_srcdir;;
16989 *)
16990   case $ac_srcdir in
16991   .) ac_abs_srcdir=$ac_abs_builddir;;
16992   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16993   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16994   esac;;
16995 esac
16996 case $ac_abs_builddir in
16997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16998 *)
16999   case $ac_top_srcdir in
17000   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17001   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17002   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17003   esac;;
17004 esac
17005
17006
17007
17008   if test x"$ac_file" != x-; then
17009     { echo "$as_me:$LINENO: creating $ac_file" >&5
17010 echo "$as_me: creating $ac_file" >&6;}
17011     rm -f "$ac_file"
17012   fi
17013   # Let's still pretend it is `configure' which instantiates (i.e., don't
17014   # use $as_me), people would be surprised to read:
17015   #    /* config.h.  Generated by config.status.  */
17016   if test x"$ac_file" = x-; then
17017     configure_input=
17018   else
17019     configure_input="$ac_file.  "
17020   fi
17021   configure_input=$configure_input"Generated from `echo $ac_file_in |
17022                                      sed 's,.*/,,'` by configure."
17023
17024   # First look for the input files in the build tree, otherwise in the
17025   # src tree.
17026   ac_file_inputs=`IFS=:
17027     for f in $ac_file_in; do
17028       case $f in
17029       -) echo $tmp/stdin ;;
17030       [\\/$]*)
17031          # Absolute (can't be DOS-style, as IFS=:)
17032          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17033 echo "$as_me: error: cannot find input file: $f" >&2;}
17034    { (exit 1); exit 1; }; }
17035          echo "$f";;
17036       *) # Relative
17037          if test -f "$f"; then
17038            # Build tree
17039            echo "$f"
17040          elif test -f "$srcdir/$f"; then
17041            # Source tree
17042            echo "$srcdir/$f"
17043          else
17044            # /dev/null tree
17045            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17046 echo "$as_me: error: cannot find input file: $f" >&2;}
17047    { (exit 1); exit 1; }; }
17048          fi;;
17049       esac
17050     done` || { (exit 1); exit 1; }
17051 _ACEOF
17052 cat >>$CONFIG_STATUS <<_ACEOF
17053   sed "$ac_vpsub
17054 $extrasub
17055 _ACEOF
17056 cat >>$CONFIG_STATUS <<\_ACEOF
17057 :t
17058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17059 s,@configure_input@,$configure_input,;t t
17060 s,@srcdir@,$ac_srcdir,;t t
17061 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17062 s,@top_srcdir@,$ac_top_srcdir,;t t
17063 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17064 s,@builddir@,$ac_builddir,;t t
17065 s,@abs_builddir@,$ac_abs_builddir,;t t
17066 s,@top_builddir@,$ac_top_builddir,;t t
17067 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17068 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17069   rm -f $tmp/stdin
17070   if test x"$ac_file" != x-; then
17071     mv $tmp/out $ac_file
17072   else
17073     cat $tmp/out
17074     rm -f $tmp/out
17075   fi
17076
17077 done
17078 _ACEOF
17079 cat >>$CONFIG_STATUS <<\_ACEOF
17080
17081 #
17082 # CONFIG_HEADER section.
17083 #
17084
17085 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17086 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17087 #
17088 # ac_d sets the value in "#define NAME VALUE" lines.
17089 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17090 ac_dB='[         ].*$,\1#\2'
17091 ac_dC=' '
17092 ac_dD=',;t'
17093 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17094 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17095 ac_uB='$,\1#\2define\3'
17096 ac_uC=' '
17097 ac_uD=',;t'
17098
17099 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17100   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17101   case $ac_file in
17102   - | *:- | *:-:* ) # input from stdin
17103         cat >$tmp/stdin
17104         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17105         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17106   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17107         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17108   * )   ac_file_in=$ac_file.in ;;
17109   esac
17110
17111   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17112 echo "$as_me: creating $ac_file" >&6;}
17113
17114   # First look for the input files in the build tree, otherwise in the
17115   # src tree.
17116   ac_file_inputs=`IFS=:
17117     for f in $ac_file_in; do
17118       case $f in
17119       -) echo $tmp/stdin ;;
17120       [\\/$]*)
17121          # Absolute (can't be DOS-style, as IFS=:)
17122          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17123 echo "$as_me: error: cannot find input file: $f" >&2;}
17124    { (exit 1); exit 1; }; }
17125          # Do quote $f, to prevent DOS paths from being IFS'd.
17126          echo "$f";;
17127       *) # Relative
17128          if test -f "$f"; then
17129            # Build tree
17130            echo "$f"
17131          elif test -f "$srcdir/$f"; then
17132            # Source tree
17133            echo "$srcdir/$f"
17134          else
17135            # /dev/null tree
17136            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17137 echo "$as_me: error: cannot find input file: $f" >&2;}
17138    { (exit 1); exit 1; }; }
17139          fi;;
17140       esac
17141     done` || { (exit 1); exit 1; }
17142   # Remove the trailing spaces.
17143   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17144
17145 _ACEOF
17146
17147 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17148 # `conftest.undefs', that substitutes the proper values into
17149 # config.h.in to produce config.h.  The first handles `#define'
17150 # templates, and the second `#undef' templates.
17151 # And first: Protect against being on the right side of a sed subst in
17152 # config.status.  Protect against being in an unquoted here document
17153 # in config.status.
17154 rm -f conftest.defines conftest.undefs
17155 # Using a here document instead of a string reduces the quoting nightmare.
17156 # Putting comments in sed scripts is not portable.
17157 #
17158 # `end' is used to avoid that the second main sed command (meant for
17159 # 0-ary CPP macros) applies to n-ary macro definitions.
17160 # See the Autoconf documentation for `clear'.
17161 cat >confdef2sed.sed <<\_ACEOF
17162 s/[\\&,]/\\&/g
17163 s,[\\$`],\\&,g
17164 t clear
17165 : clear
17166 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17167 t end
17168 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17169 : end
17170 _ACEOF
17171 # If some macros were called several times there might be several times
17172 # the same #defines, which is useless.  Nevertheless, we may not want to
17173 # sort them, since we want the *last* AC-DEFINE to be honored.
17174 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17175 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17176 rm -f confdef2sed.sed
17177
17178 # This sed command replaces #undef with comments.  This is necessary, for
17179 # example, in the case of _POSIX_SOURCE, which is predefined and required
17180 # on some systems where configure will not decide to define it.
17181 cat >>conftest.undefs <<\_ACEOF
17182 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17183 _ACEOF
17184
17185 # Break up conftest.defines because some shells have a limit on the size
17186 # of here documents, and old seds have small limits too (100 cmds).
17187 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17188 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17189 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17190 echo '  :' >>$CONFIG_STATUS
17191 rm -f conftest.tail
17192 while grep . conftest.defines >/dev/null
17193 do
17194   # Write a limited-size here document to $tmp/defines.sed.
17195   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17196   # Speed up: don't consider the non `#define' lines.
17197   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17198   # Work around the forget-to-reset-the-flag bug.
17199   echo 't clr' >>$CONFIG_STATUS
17200   echo ': clr' >>$CONFIG_STATUS
17201   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17202   echo 'CEOF
17203   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17204   rm -f $tmp/in
17205   mv $tmp/out $tmp/in
17206 ' >>$CONFIG_STATUS
17207   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17208   rm -f conftest.defines
17209   mv conftest.tail conftest.defines
17210 done
17211 rm -f conftest.defines
17212 echo '  fi # grep' >>$CONFIG_STATUS
17213 echo >>$CONFIG_STATUS
17214
17215 # Break up conftest.undefs because some shells have a limit on the size
17216 # of here documents, and old seds have small limits too (100 cmds).
17217 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17218 rm -f conftest.tail
17219 while grep . conftest.undefs >/dev/null
17220 do
17221   # Write a limited-size here document to $tmp/undefs.sed.
17222   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17223   # Speed up: don't consider the non `#undef'
17224   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17225   # Work around the forget-to-reset-the-flag bug.
17226   echo 't clr' >>$CONFIG_STATUS
17227   echo ': clr' >>$CONFIG_STATUS
17228   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17229   echo 'CEOF
17230   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17231   rm -f $tmp/in
17232   mv $tmp/out $tmp/in
17233 ' >>$CONFIG_STATUS
17234   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17235   rm -f conftest.undefs
17236   mv conftest.tail conftest.undefs
17237 done
17238 rm -f conftest.undefs
17239
17240 cat >>$CONFIG_STATUS <<\_ACEOF
17241   # Let's still pretend it is `configure' which instantiates (i.e., don't
17242   # use $as_me), people would be surprised to read:
17243   #    /* config.h.  Generated by config.status.  */
17244   if test x"$ac_file" = x-; then
17245     echo "/* Generated by configure.  */" >$tmp/config.h
17246   else
17247     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17248   fi
17249   cat $tmp/in >>$tmp/config.h
17250   rm -f $tmp/in
17251   if test x"$ac_file" != x-; then
17252     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17253       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17254 echo "$as_me: $ac_file is unchanged" >&6;}
17255     else
17256       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17257 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17258          X"$ac_file" : 'X\(//\)[^/]' \| \
17259          X"$ac_file" : 'X\(//\)$' \| \
17260          X"$ac_file" : 'X\(/\)' \| \
17261          .     : '\(.\)' 2>/dev/null ||
17262 echo X"$ac_file" |
17263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17264           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17265           /^X\(\/\/\)$/{ s//\1/; q; }
17266           /^X\(\/\).*/{ s//\1/; q; }
17267           s/.*/./; q'`
17268       { if $as_mkdir_p; then
17269     mkdir -p "$ac_dir"
17270   else
17271     as_dir="$ac_dir"
17272     as_dirs=
17273     while test ! -d "$as_dir"; do
17274       as_dirs="$as_dir $as_dirs"
17275       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17277          X"$as_dir" : 'X\(//\)[^/]' \| \
17278          X"$as_dir" : 'X\(//\)$' \| \
17279          X"$as_dir" : 'X\(/\)' \| \
17280          .     : '\(.\)' 2>/dev/null ||
17281 echo X"$as_dir" |
17282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17283           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17284           /^X\(\/\/\)$/{ s//\1/; q; }
17285           /^X\(\/\).*/{ s//\1/; q; }
17286           s/.*/./; q'`
17287     done
17288     test ! -n "$as_dirs" || mkdir $as_dirs
17289   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17290 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17291    { (exit 1); exit 1; }; }; }
17292
17293       rm -f $ac_file
17294       mv $tmp/config.h $ac_file
17295     fi
17296   else
17297     cat $tmp/config.h
17298     rm -f $tmp/config.h
17299   fi
17300 done
17301 _ACEOF
17302 cat >>$CONFIG_STATUS <<\_ACEOF
17303
17304 #
17305 # CONFIG_COMMANDS section.
17306 #
17307 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17308   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17309   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17310   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17311 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17312          X"$ac_dest" : 'X\(//\)[^/]' \| \
17313          X"$ac_dest" : 'X\(//\)$' \| \
17314          X"$ac_dest" : 'X\(/\)' \| \
17315          .     : '\(.\)' 2>/dev/null ||
17316 echo X"$ac_dest" |
17317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17318           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17319           /^X\(\/\/\)$/{ s//\1/; q; }
17320           /^X\(\/\).*/{ s//\1/; q; }
17321           s/.*/./; q'`
17322   { if $as_mkdir_p; then
17323     mkdir -p "$ac_dir"
17324   else
17325     as_dir="$ac_dir"
17326     as_dirs=
17327     while test ! -d "$as_dir"; do
17328       as_dirs="$as_dir $as_dirs"
17329       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17331          X"$as_dir" : 'X\(//\)[^/]' \| \
17332          X"$as_dir" : 'X\(//\)$' \| \
17333          X"$as_dir" : 'X\(/\)' \| \
17334          .     : '\(.\)' 2>/dev/null ||
17335 echo X"$as_dir" |
17336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17337           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17338           /^X\(\/\/\)$/{ s//\1/; q; }
17339           /^X\(\/\).*/{ s//\1/; q; }
17340           s/.*/./; q'`
17341     done
17342     test ! -n "$as_dirs" || mkdir $as_dirs
17343   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17344 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17345    { (exit 1); exit 1; }; }; }
17346
17347   ac_builddir=.
17348
17349 if test "$ac_dir" != .; then
17350   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17351   # A "../" for each directory in $ac_dir_suffix.
17352   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17353 else
17354   ac_dir_suffix= ac_top_builddir=
17355 fi
17356
17357 case $srcdir in
17358   .)  # No --srcdir option.  We are building in place.
17359     ac_srcdir=.
17360     if test -z "$ac_top_builddir"; then
17361        ac_top_srcdir=.
17362     else
17363        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17364     fi ;;
17365   [\\/]* | ?:[\\/]* )  # Absolute path.
17366     ac_srcdir=$srcdir$ac_dir_suffix;
17367     ac_top_srcdir=$srcdir ;;
17368   *) # Relative path.
17369     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17370     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17371 esac
17372
17373 # Do not use `cd foo && pwd` to compute absolute paths, because
17374 # the directories may not exist.
17375 case `pwd` in
17376 .) ac_abs_builddir="$ac_dir";;
17377 *)
17378   case "$ac_dir" in
17379   .) ac_abs_builddir=`pwd`;;
17380   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17381   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17382   esac;;
17383 esac
17384 case $ac_abs_builddir in
17385 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17386 *)
17387   case ${ac_top_builddir}. in
17388   .) ac_abs_top_builddir=$ac_abs_builddir;;
17389   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17390   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17391   esac;;
17392 esac
17393 case $ac_abs_builddir in
17394 .) ac_abs_srcdir=$ac_srcdir;;
17395 *)
17396   case $ac_srcdir in
17397   .) ac_abs_srcdir=$ac_abs_builddir;;
17398   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17399   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17400   esac;;
17401 esac
17402 case $ac_abs_builddir in
17403 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17404 *)
17405   case $ac_top_srcdir in
17406   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17407   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17408   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17409   esac;;
17410 esac
17411
17412
17413   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17414 echo "$as_me: executing $ac_dest commands" >&6;}
17415   case $ac_dest in
17416     default )
17417 case ${CONFIG_HEADERS} in
17418   *auto-host.h:config.in*)
17419   echo > cstamp-h ;;
17420 esac
17421 # Make sure all the subdirs exist.
17422 for d in $subdirs doc build
17423 do
17424     test -d $d || mkdir $d
17425 done
17426 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17427 # bootstrapping and the installation procedure can still use
17428 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17429 # FLAGS_TO_PASS has been modified to solve the problem there.
17430 # This is virtually a duplicate of what happens in configure.lang; we do
17431 # an extra check to make sure this only happens if ln -s can be used.
17432 case "$LN_S" in
17433   *-s*)
17434     for d in ${subdirs} ; do
17435         STARTDIR=`${PWDCMD-pwd}`
17436         cd $d
17437         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17438         do
17439                 rm -f $t
17440                 $LN_S ../$t $t 2>/dev/null
17441         done
17442         cd $STARTDIR
17443     done
17444   ;;
17445 esac
17446  ;;
17447   esac
17448 done
17449 _ACEOF
17450
17451 cat >>$CONFIG_STATUS <<\_ACEOF
17452
17453 { (exit 0); exit 0; }
17454 _ACEOF
17455 chmod +x $CONFIG_STATUS
17456 ac_clean_files=$ac_clean_files_save
17457
17458
17459 # configure is writing to config.log, and then calls config.status.
17460 # config.status does its own redirection, appending to config.log.
17461 # Unfortunately, on DOS this fails, as config.log is still kept open
17462 # by configure, so config.status won't be able to write to it; its
17463 # output is simply discarded.  So we exec the FD to /dev/null,
17464 # effectively closing config.log, so it can be properly (re)opened and
17465 # appended to by config.status.  When coming back to configure, we
17466 # need to make the FD available again.
17467 if test "$no_create" != yes; then
17468   ac_cs_success=:
17469   ac_config_status_args=
17470   test "$silent" = yes &&
17471     ac_config_status_args="$ac_config_status_args --quiet"
17472   exec 5>/dev/null
17473   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17474   exec 5>>config.log
17475   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17476   # would make configure fail if this is the last instruction.
17477   $ac_cs_success || { (exit 1); exit 1; }
17478 fi
17479