OSDN Git Service

* cp-tree.h (get_primary_binfo): Remove prototype.
[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_decimal_float 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 gcc_cv_objdump ORIGINAL_OBJDUMP_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-decimal-float  enable decimal float extension to C
884   --enable-threads        enable thread usage for target GCC
885   --enable-threads=LIB    use LIB thread package for target GCC
886   --enable-tls            enable or disable generation of tls code
887                           overriding the assembler check for tls support
888   --enable-objc-gc        enable the use of Boehm's garbage collector with
889                           the GNU Objective-C runtime
890   --disable-shared        don't provide a shared libgcc
891   --enable-intermodule    build the compiler in one step
892   --enable-languages=LIST specify which front-ends to build
893   --disable-rpath         do not hardcode runtime library paths
894   --enable-initfini-array       use .init_array/.fini_array sections
895   --enable-sjlj-exceptions
896                           arrange to use setjmp/longjmp exception handling
897   --enable-secureplt      enable -msecure-plt by default for PowerPC
898   --disable-win32-registry
899                           disable lookup of installation paths in the
900                           Registry on Windows hosts
901   --enable-win32-registry enable registry lookup (default)
902   --enable-win32-registry=KEY
903                           use KEY instead of GCC version as the last portion
904                           of the registry key
905   --enable-maintainer-mode
906                           enable make rules and dependencies not useful
907                           (and sometimes confusing) to the casual installer
908   --enable-version-specific-runtime-libs
909                           specify that runtime libraries should be
910                           installed in a compiler-specific directory
911
912 Optional Packages:
913   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
914   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
915   --with-local-prefix=DIR specifies directory to put local include
916   --with-gxx-include-dir=DIR
917                           specifies directory to put g++ header files
918   --with-cpp-install-dir=DIR
919                           install the user visible C preprocessor in DIR
920                           (relative to PREFIX) as well as PREFIX/bin
921   --with-gnu-ld           arrange to work with GNU ld.
922   --with-ld               arrange to use the specified ld (full pathname)
923   --with-demangler-in-ld  try to use demangler in GNU ld.
924   --with-gnu-as           arrange to work with GNU as
925   --with-as               arrange to use the specified as (full pathname)
926   --with-stabs            arrange to use stabs instead of host debug format
927   --with-dwarf2           force the default debug format to be DWARF 2
928   --with-build-sysroot=sysroot
929                           use sysroot as the system root during the build
930   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
931   --with-gnu-ld           assume the C compiler uses GNU ld default=no
932   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
933   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
934   --with-system-libunwind use installed libunwind
935   --with-gc={page,zone}   choose the garbage collection mechanism to use
936                           with the compiler
937   --with-system-zlib      use installed libz
938   --with-slibdir=DIR      shared libraries in DIR LIBDIR
939
940 Some influential environment variables:
941   CC          C compiler command
942   CFLAGS      C compiler flags
943   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
944               nonstandard directory <lib dir>
945   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
946               headers in a nonstandard directory <include dir>
947   CPP         C preprocessor
948   GMPLIBS     How to link GMP
949   GMPINC      How to find GMP include files
950
951 Use these variables to override the choices made by `configure' or to help
952 it to find libraries and programs with nonstandard names/locations.
953
954 _ACEOF
955 fi
956
957 if test "$ac_init_help" = "recursive"; then
958   # If there are subdirs, report their specific --help.
959   ac_popdir=`pwd`
960   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
961     test -d $ac_dir || continue
962     ac_builddir=.
963
964 if test "$ac_dir" != .; then
965   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
966   # A "../" for each directory in $ac_dir_suffix.
967   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
968 else
969   ac_dir_suffix= ac_top_builddir=
970 fi
971
972 case $srcdir in
973   .)  # No --srcdir option.  We are building in place.
974     ac_srcdir=.
975     if test -z "$ac_top_builddir"; then
976        ac_top_srcdir=.
977     else
978        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
979     fi ;;
980   [\\/]* | ?:[\\/]* )  # Absolute path.
981     ac_srcdir=$srcdir$ac_dir_suffix;
982     ac_top_srcdir=$srcdir ;;
983   *) # Relative path.
984     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
985     ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 esac
987
988 # Do not use `cd foo && pwd` to compute absolute paths, because
989 # the directories may not exist.
990 case `pwd` in
991 .) ac_abs_builddir="$ac_dir";;
992 *)
993   case "$ac_dir" in
994   .) ac_abs_builddir=`pwd`;;
995   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
996   *) ac_abs_builddir=`pwd`/"$ac_dir";;
997   esac;;
998 esac
999 case $ac_abs_builddir in
1000 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1001 *)
1002   case ${ac_top_builddir}. in
1003   .) ac_abs_top_builddir=$ac_abs_builddir;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1005   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_srcdir=$ac_srcdir;;
1010 *)
1011   case $ac_srcdir in
1012   .) ac_abs_srcdir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1014   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015   esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1019 *)
1020   case $ac_top_srcdir in
1021   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1022   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1023   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1024   esac;;
1025 esac
1026
1027     cd $ac_dir
1028     # Check for guested configure; otherwise get Cygnus style configure.
1029     if test -f $ac_srcdir/configure.gnu; then
1030       echo
1031       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1032     elif test -f $ac_srcdir/configure; then
1033       echo
1034       $SHELL $ac_srcdir/configure  --help=recursive
1035     elif test -f $ac_srcdir/configure.ac ||
1036            test -f $ac_srcdir/configure.in; then
1037       echo
1038       $ac_configure --help
1039     else
1040       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1041     fi
1042     cd $ac_popdir
1043   done
1044 fi
1045
1046 test -n "$ac_init_help" && exit 0
1047 if $ac_init_version; then
1048   cat <<\_ACEOF
1049
1050 Copyright (C) 2003 Free Software Foundation, Inc.
1051 This configure script is free software; the Free Software Foundation
1052 gives unlimited permission to copy, distribute and modify it.
1053 _ACEOF
1054   exit 0
1055 fi
1056 exec 5>config.log
1057 cat >&5 <<_ACEOF
1058 This file contains any messages produced by compilers while
1059 running configure, to aid debugging if configure makes a mistake.
1060
1061 It was created by $as_me, which was
1062 generated by GNU Autoconf 2.59.  Invocation command line was
1063
1064   $ $0 $@
1065
1066 _ACEOF
1067 {
1068 cat <<_ASUNAME
1069 ## --------- ##
1070 ## Platform. ##
1071 ## --------- ##
1072
1073 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1074 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1075 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1076 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1077 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1078
1079 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1080 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1081
1082 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1083 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1084 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1085 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1086 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1087 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1088 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1089
1090 _ASUNAME
1091
1092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1093 for as_dir in $PATH
1094 do
1095   IFS=$as_save_IFS
1096   test -z "$as_dir" && as_dir=.
1097   echo "PATH: $as_dir"
1098 done
1099
1100 } >&5
1101
1102 cat >&5 <<_ACEOF
1103
1104
1105 ## ----------- ##
1106 ## Core tests. ##
1107 ## ----------- ##
1108
1109 _ACEOF
1110
1111
1112 # Keep a trace of the command line.
1113 # Strip out --no-create and --no-recursion so they do not pile up.
1114 # Strip out --silent because we don't want to record it for future runs.
1115 # Also quote any args containing shell meta-characters.
1116 # Make two passes to allow for proper duplicate-argument suppression.
1117 ac_configure_args=
1118 ac_configure_args0=
1119 ac_configure_args1=
1120 ac_sep=
1121 ac_must_keep_next=false
1122 for ac_pass in 1 2
1123 do
1124   for ac_arg
1125   do
1126     case $ac_arg in
1127     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1128     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129     | -silent | --silent | --silen | --sile | --sil)
1130       continue ;;
1131     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133     esac
1134     case $ac_pass in
1135     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1136     2)
1137       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1138       if test $ac_must_keep_next = true; then
1139         ac_must_keep_next=false # Got value, back to normal.
1140       else
1141         case $ac_arg in
1142           *=* | --config-cache | -C | -disable-* | --disable-* \
1143           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1144           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1145           | -with-* | --with-* | -without-* | --without-* | --x)
1146             case "$ac_configure_args0 " in
1147               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148             esac
1149             ;;
1150           -* ) ac_must_keep_next=true ;;
1151         esac
1152       fi
1153       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1154       # Get rid of the leading space.
1155       ac_sep=" "
1156       ;;
1157     esac
1158   done
1159 done
1160 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1161 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1162
1163 # When interrupted or exit'd, cleanup temporary files, and complete
1164 # config.log.  We remove comments because anyway the quotes in there
1165 # would cause problems or look ugly.
1166 # WARNING: Be sure not to use single quotes in there, as some shells,
1167 # such as our DU 5.0 friend, will then `close' the trap.
1168 trap 'exit_status=$?
1169   # Save into config.log some information that might help in debugging.
1170   {
1171     echo
1172
1173     cat <<\_ASBOX
1174 ## ---------------- ##
1175 ## Cache variables. ##
1176 ## ---------------- ##
1177 _ASBOX
1178     echo
1179     # The following way of writing the cache mishandles newlines in values,
1180 {
1181   (set) 2>&1 |
1182     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183     *ac_space=\ *)
1184       sed -n \
1185         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1186           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1187       ;;
1188     *)
1189       sed -n \
1190         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191       ;;
1192     esac;
1193 }
1194     echo
1195
1196     cat <<\_ASBOX
1197 ## ----------------- ##
1198 ## Output variables. ##
1199 ## ----------------- ##
1200 _ASBOX
1201     echo
1202     for ac_var in $ac_subst_vars
1203     do
1204       eval ac_val=$`echo $ac_var`
1205       echo "$ac_var='"'"'$ac_val'"'"'"
1206     done | sort
1207     echo
1208
1209     if test -n "$ac_subst_files"; then
1210       cat <<\_ASBOX
1211 ## ------------- ##
1212 ## Output files. ##
1213 ## ------------- ##
1214 _ASBOX
1215       echo
1216       for ac_var in $ac_subst_files
1217       do
1218         eval ac_val=$`echo $ac_var`
1219         echo "$ac_var='"'"'$ac_val'"'"'"
1220       done | sort
1221       echo
1222     fi
1223
1224     if test -s confdefs.h; then
1225       cat <<\_ASBOX
1226 ## ----------- ##
1227 ## confdefs.h. ##
1228 ## ----------- ##
1229 _ASBOX
1230       echo
1231       sed "/^$/d" confdefs.h | sort
1232       echo
1233     fi
1234     test "$ac_signal" != 0 &&
1235       echo "$as_me: caught signal $ac_signal"
1236     echo "$as_me: exit $exit_status"
1237   } >&5
1238   rm -f core *.core &&
1239   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240     exit $exit_status
1241      ' 0
1242 for ac_signal in 1 2 13 15; do
1243   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1244 done
1245 ac_signal=0
1246
1247 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1248 rm -rf conftest* confdefs.h
1249 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 echo >confdefs.h
1251
1252 # Predefined preprocessor variables.
1253
1254 cat >>confdefs.h <<_ACEOF
1255 #define PACKAGE_NAME "$PACKAGE_NAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_STRING "$PACKAGE_STRING"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1276 _ACEOF
1277
1278
1279 # Let the site file select an alternate cache file if it wants to.
1280 # Prefer explicitly selected file to automatically selected ones.
1281 if test -z "$CONFIG_SITE"; then
1282   if test "x$prefix" != xNONE; then
1283     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1284   else
1285     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286   fi
1287 fi
1288 for ac_site_file in $CONFIG_SITE; do
1289   if test -r "$ac_site_file"; then
1290     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1291 echo "$as_me: loading site script $ac_site_file" >&6;}
1292     sed 's/^/| /' "$ac_site_file" >&5
1293     . "$ac_site_file"
1294   fi
1295 done
1296
1297 if test -r "$cache_file"; then
1298   # Some versions of bash will fail to source /dev/null (special
1299   # files actually), so we avoid doing that.
1300   if test -f "$cache_file"; then
1301     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1302 echo "$as_me: loading cache $cache_file" >&6;}
1303     case $cache_file in
1304       [\\/]* | ?:[\\/]* ) . $cache_file;;
1305       *)                      . ./$cache_file;;
1306     esac
1307   fi
1308 else
1309   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1310 echo "$as_me: creating cache $cache_file" >&6;}
1311   >$cache_file
1312 fi
1313
1314 # Check that the precious variables saved in the cache have kept the same
1315 # value.
1316 ac_cache_corrupted=false
1317 for ac_var in `(set) 2>&1 |
1318                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1319   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1320   eval ac_new_set=\$ac_env_${ac_var}_set
1321   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1322   eval ac_new_val="\$ac_env_${ac_var}_value"
1323   case $ac_old_set,$ac_new_set in
1324     set,)
1325       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1327       ac_cache_corrupted=: ;;
1328     ,set)
1329       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1330 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1331       ac_cache_corrupted=: ;;
1332     ,);;
1333     *)
1334       if test "x$ac_old_val" != "x$ac_new_val"; then
1335         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1336 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1337         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1338 echo "$as_me:   former value:  $ac_old_val" >&2;}
1339         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1340 echo "$as_me:   current value: $ac_new_val" >&2;}
1341         ac_cache_corrupted=:
1342       fi;;
1343   esac
1344   # Pass precious variables to config.status.
1345   if test "$ac_new_set" = set; then
1346     case $ac_new_val in
1347     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1349     *) ac_arg=$ac_var=$ac_new_val ;;
1350     esac
1351     case " $ac_configure_args " in
1352       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1353       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1354     esac
1355   fi
1356 done
1357 if $ac_cache_corrupted; then
1358   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1359 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1360   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1361 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1362    { (exit 1); exit 1; }; }
1363 fi
1364
1365 ac_ext=c
1366 ac_cpp='$CPP $CPPFLAGS'
1367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1391
1392
1393 gcc_version=`cat $srcdir/BASE-VER`
1394
1395 # Determine the host, build, and target systems
1396 ac_aux_dir=
1397 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1398   if test -f $ac_dir/install-sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install-sh -c"
1401     break
1402   elif test -f $ac_dir/install.sh; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/install.sh -c"
1405     break
1406   elif test -f $ac_dir/shtool; then
1407     ac_aux_dir=$ac_dir
1408     ac_install_sh="$ac_aux_dir/shtool install -c"
1409     break
1410   fi
1411 done
1412 if test -z "$ac_aux_dir"; then
1413   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1415    { (exit 1); exit 1; }; }
1416 fi
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
1421 # Make sure we can run config.sub.
1422 $ac_config_sub sun4 >/dev/null 2>&1 ||
1423   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1424 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1425    { (exit 1); exit 1; }; }
1426
1427 echo "$as_me:$LINENO: checking build system type" >&5
1428 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1429 if test "${ac_cv_build+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   ac_cv_build_alias=$build_alias
1433 test -z "$ac_cv_build_alias" &&
1434   ac_cv_build_alias=`$ac_config_guess`
1435 test -z "$ac_cv_build_alias" &&
1436   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1437 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1438    { (exit 1); exit 1; }; }
1439 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1440   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1442    { (exit 1); exit 1; }; }
1443
1444 fi
1445 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1446 echo "${ECHO_T}$ac_cv_build" >&6
1447 build=$ac_cv_build
1448 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451
1452
1453 echo "$as_me:$LINENO: checking host system type" >&5
1454 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1455 if test "${ac_cv_host+set}" = set; then
1456   echo $ECHO_N "(cached) $ECHO_C" >&6
1457 else
1458   ac_cv_host_alias=$host_alias
1459 test -z "$ac_cv_host_alias" &&
1460   ac_cv_host_alias=$ac_cv_build_alias
1461 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1462   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1463 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1464    { (exit 1); exit 1; }; }
1465
1466 fi
1467 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1468 echo "${ECHO_T}$ac_cv_host" >&6
1469 host=$ac_cv_host
1470 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1471 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1472 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1473
1474
1475 echo "$as_me:$LINENO: checking target system type" >&5
1476 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1477 if test "${ac_cv_target+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   ac_cv_target_alias=$target_alias
1481 test "x$ac_cv_target_alias" = "x" &&
1482   ac_cv_target_alias=$ac_cv_host_alias
1483 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1484   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1485 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1486    { (exit 1); exit 1; }; }
1487
1488 fi
1489 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1490 echo "${ECHO_T}$ac_cv_target" >&6
1491 target=$ac_cv_target
1492 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1493 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1494 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1495
1496
1497 # The aliases save the names the user supplied, while $host etc.
1498 # will get canonicalized.
1499 test -n "$target_alias" &&
1500   test "$program_prefix$program_suffix$program_transform_name" = \
1501     NONENONEs,x,x, &&
1502   program_prefix=${target_alias}-
1503
1504 # Determine the noncanonical target name, for directory use.
1505  case ${build_alias} in
1506   "") build_noncanonical=${build} ;;
1507   *) build_noncanonical=${build_alias} ;;
1508 esac
1509
1510  case ${host_alias} in
1511   "") host_noncanonical=${build_noncanonical} ;;
1512   *) host_noncanonical=${host_alias} ;;
1513 esac
1514
1515  case ${target_alias} in
1516   "") target_noncanonical=${host_noncanonical} ;;
1517   *) target_noncanonical=${target_alias} ;;
1518 esac
1519
1520
1521
1522
1523 # Determine the target- and build-specific subdirectories
1524   # Prefix 'build-' so this never conflicts with target_subdir.
1525 build_subdir="build-${build_noncanonical}"
1526 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1527 if ( test $srcdir = . && test -d gcc ) \
1528    || test -d $srcdir/../host-${host_noncanonical}; then
1529   host_subdir="host-${host_noncanonical}"
1530 else
1531   host_subdir=.
1532 fi
1533 # No prefix.
1534 target_subdir=${target_noncanonical}
1535
1536
1537 # Set program_transform_name
1538 test "$program_prefix" != NONE &&
1539   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1540 # Use a double $ so make ignores it.
1541 test "$program_suffix" != NONE &&
1542   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1543 # Double any \ or $.  echo might interpret backslashes.
1544 # By default was `s,x,x', remove it if useless.
1545 cat <<\_ACEOF >conftest.sed
1546 s/[\\$]/&&/g;s/;s,x,x,$//
1547 _ACEOF
1548 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1549 rm conftest.sed
1550
1551
1552 # Check for bogus environment variables.
1553 # Test if LIBRARY_PATH contains the notation for the current directory
1554 # since this would lead to problems installing/building glibc.
1555 # LIBRARY_PATH contains the current directory if one of the following
1556 # is true:
1557 # - one of the terminals (":" and ";") is the first or last sign
1558 # - two terminals occur directly after each other
1559 # - the path contains an element with a dot in it
1560 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1561 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1562 case ${LIBRARY_PATH} in
1563   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1564     library_path_setting="contains current directory"
1565     ;;
1566   *)
1567     library_path_setting="ok"
1568     ;;
1569 esac
1570 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1571 echo "${ECHO_T}$library_path_setting" >&6
1572 if test "$library_path_setting" != "ok"; then
1573 { { echo "$as_me:$LINENO: error:
1574 *** LIBRARY_PATH shouldn't contain the current directory when
1575 *** building gcc. Please change the environment variable
1576 *** and run configure again." >&5
1577 echo "$as_me: error:
1578 *** LIBRARY_PATH shouldn't contain the current directory when
1579 *** building gcc. Please change the environment variable
1580 *** and run configure again." >&2;}
1581    { (exit 1); exit 1; }; }
1582 fi
1583
1584 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1585 # since this would lead to problems installing/building glibc.
1586 # GCC_EXEC_PREFIX contains the current directory if one of the following
1587 # is true:
1588 # - one of the terminals (":" and ";") is the first or last sign
1589 # - two terminals occur directly after each other
1590 # - the path contains an element with a dot in it
1591 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1592 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1593 case ${GCC_EXEC_PREFIX} in
1594   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1595     gcc_exec_prefix_setting="contains current directory"
1596     ;;
1597   *)
1598     gcc_exec_prefix_setting="ok"
1599     ;;
1600 esac
1601 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1602 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1603 if test "$gcc_exec_prefix_setting" != "ok"; then
1604 { { echo "$as_me:$LINENO: error:
1605 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&5
1608 echo "$as_me: error:
1609 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1610 *** building gcc. Please change the environment variable
1611 *** and run configure again." >&2;}
1612    { (exit 1); exit 1; }; }
1613 fi
1614
1615 # -----------
1616 # Directories
1617 # -----------
1618
1619 # Specify the local prefix
1620 local_prefix=
1621
1622 # Check whether --with-local-prefix or --without-local-prefix was given.
1623 if test "${with_local_prefix+set}" = set; then
1624   withval="$with_local_prefix"
1625   case "${withval}" in
1626 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1627 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1628    { (exit 1); exit 1; }; } ;;
1629 no)     ;;
1630 *)      local_prefix=$with_local_prefix ;;
1631 esac
1632 fi;
1633
1634 # Default local prefix if it is empty
1635 if test x$local_prefix = x; then
1636         local_prefix=/usr/local
1637 fi
1638
1639 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1640 # passed in by the toplevel make and thus we'd get different behavior
1641 # depending on where we built the sources.
1642 gcc_gxx_include_dir=
1643 # Specify the g++ header file directory
1644
1645 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1646 if test "${with_gxx_include_dir+set}" = set; then
1647   withval="$with_gxx_include_dir"
1648   case "${withval}" in
1649 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1650 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1651    { (exit 1); exit 1; }; } ;;
1652 no)     ;;
1653 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1654 esac
1655 fi;
1656
1657 if test x${gcc_gxx_include_dir} = x; then
1658   if test x${enable_version_specific_runtime_libs} = xyes; then
1659     gcc_gxx_include_dir='${libsubdir}/include/c++'
1660   else
1661     libstdcxx_incdir='c++/$(version)'
1662     gcc_gxx_include_dir="\$(libsubdir)/\$(unlibsubdir)/..\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/[^/]*|/..|g'\`/include/"${libstdcxx_incdir}
1663   fi
1664 fi
1665
1666
1667 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1668 if test "${with_cpp_install_dir+set}" = set; then
1669   withval="$with_cpp_install_dir"
1670   if test x$withval = xyes; then
1671   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1672 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1673    { (exit 1); exit 1; }; }
1674 elif test x$withval != xno; then
1675   cpp_install_dir=$withval
1676 fi
1677 fi;
1678
1679 # We would like to our source tree to be readonly.  However when releases or
1680 # pre-releases are generated, the flex/bison generated files as well as the
1681 # various formats of manuals need to be included along with the rest of the
1682 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1683 # just that.
1684
1685 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1686 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1687     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1688 if test "${enable_generated_files_in_srcdir+set}" = set; then
1689   enableval="$enable_generated_files_in_srcdir"
1690   generated_files_in_srcdir=$enableval
1691 else
1692   generated_files_in_srcdir=no
1693 fi;
1694
1695 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1696 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1697
1698 if test "$generated_files_in_srcdir" = "yes"; then
1699   GENINSRC=''
1700 else
1701   GENINSRC='#'
1702 fi
1703
1704
1705 # -------------------
1706 # Find default linker
1707 # -------------------
1708
1709 # With GNU ld
1710
1711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1712 if test "${with_gnu_ld+set}" = set; then
1713   withval="$with_gnu_ld"
1714   gnu_ld_flag="$with_gnu_ld"
1715 else
1716   gnu_ld_flag=no
1717 fi;
1718
1719 # With pre-defined ld
1720
1721 # Check whether --with-ld or --without-ld was given.
1722 if test "${with_ld+set}" = set; then
1723   withval="$with_ld"
1724   DEFAULT_LINKER="$with_ld"
1725 fi;
1726 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1727   if test ! -x "$DEFAULT_LINKER"; then
1728     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1729 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1730    { (exit 1); exit 1; }; }
1731   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1732     gnu_ld_flag=yes
1733   fi
1734
1735 cat >>confdefs.h <<_ACEOF
1736 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1737 _ACEOF
1738
1739 fi
1740
1741 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1742 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1743 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1744   if test x"$gnu_ld_flag" = x"no"; then
1745     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1746 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1747   else
1748     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1749 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1750   fi
1751 else
1752   echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6
1754 fi
1755
1756 # With demangler in GNU ld
1757
1758 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1759 if test "${with_demangler_in_ld+set}" = set; then
1760   withval="$with_demangler_in_ld"
1761   demangler_in_ld="$with_demangler_in_ld"
1762 else
1763   demangler_in_ld=no
1764 fi;
1765
1766 # ----------------------
1767 # Find default assembler
1768 # ----------------------
1769
1770 # With GNU as
1771
1772 # Check whether --with-gnu-as or --without-gnu-as was given.
1773 if test "${with_gnu_as+set}" = set; then
1774   withval="$with_gnu_as"
1775   gas_flag="$with_gnu_as"
1776 else
1777   gas_flag=no
1778 fi;
1779
1780
1781 # Check whether --with-as or --without-as was given.
1782 if test "${with_as+set}" = set; then
1783   withval="$with_as"
1784   DEFAULT_ASSEMBLER="$with_as"
1785 fi;
1786 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1787   if test ! -x "$DEFAULT_ASSEMBLER"; then
1788     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1789 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1790    { (exit 1); exit 1; }; }
1791   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1792     gas_flag=yes
1793   fi
1794
1795 cat >>confdefs.h <<_ACEOF
1796 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1797 _ACEOF
1798
1799 fi
1800
1801 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1802 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1803 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1804   if test x"$gas_flag" = x"no"; then
1805     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1806 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1807   else
1808     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1809 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1810   fi
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 # ---------------
1817 # Find C compiler
1818 # ---------------
1819
1820 # If a non-executable a.out is present (e.g. created by GNU as above even if
1821 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1822 # file, even when creating an executable, so an execution test fails.
1823 # Remove possible default executable files to avoid this.
1824 #
1825 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1826 # Autoconf includes it.
1827 rm -f a.out a.exe b.out
1828
1829 # Find the native compiler
1830 ac_ext=c
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 if test -n "$ac_tool_prefix"; then
1836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841   echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843   if test -n "$CC"; then
1844   ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849   IFS=$as_save_IFS
1850   test -z "$as_dir" && as_dir=.
1851   for ac_exec_ext in '' $ac_executable_extensions; do
1852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855     break 2
1856   fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 CC=$ac_cv_prog_CC
1863 if test -n "$CC"; then
1864   echo "$as_me:$LINENO: result: $CC" >&5
1865 echo "${ECHO_T}$CC" >&6
1866 else
1867   echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 fi
1872 if test -z "$ac_cv_prog_CC"; then
1873   ac_ct_CC=$CC
1874   # Extract the first word of "gcc", so it can be a program name with args.
1875 set dummy gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$ac_ct_CC"; then
1882   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_ac_ct_CC="gcc"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901 if test -n "$ac_ct_CC"; then
1902   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903 echo "${ECHO_T}$ac_ct_CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   CC=$ac_ct_CC
1910 else
1911   CC="$ac_cv_prog_CC"
1912 fi
1913
1914 if test -z "$CC"; then
1915   if test -n "$ac_tool_prefix"; then
1916   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1917 set dummy ${ac_tool_prefix}cc; ac_word=$2
1918 echo "$as_me:$LINENO: checking for $ac_word" >&5
1919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920 if test "${ac_cv_prog_CC+set}" = set; then
1921   echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923   if test -n "$CC"; then
1924   ac_cv_prog_CC="$CC" # Let the user override the test.
1925 else
1926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 for as_dir in $PATH
1928 do
1929   IFS=$as_save_IFS
1930   test -z "$as_dir" && as_dir=.
1931   for ac_exec_ext in '' $ac_executable_extensions; do
1932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1933     ac_cv_prog_CC="${ac_tool_prefix}cc"
1934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935     break 2
1936   fi
1937 done
1938 done
1939
1940 fi
1941 fi
1942 CC=$ac_cv_prog_CC
1943 if test -n "$CC"; then
1944   echo "$as_me:$LINENO: result: $CC" >&5
1945 echo "${ECHO_T}$CC" >&6
1946 else
1947   echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 fi
1950
1951 fi
1952 if test -z "$ac_cv_prog_CC"; then
1953   ac_ct_CC=$CC
1954   # Extract the first word of "cc", so it can be a program name with args.
1955 set dummy cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$ac_ct_CC"; then
1962   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_ac_ct_CC="cc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1981 if test -n "$ac_ct_CC"; then
1982   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1983 echo "${ECHO_T}$ac_ct_CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989   CC=$ac_ct_CC
1990 else
1991   CC="$ac_cv_prog_CC"
1992 fi
1993
1994 fi
1995 if test -z "$CC"; then
1996   # Extract the first word of "cc", so it can be a program name with args.
1997 set dummy cc; ac_word=$2
1998 echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000 if test "${ac_cv_prog_CC+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   if test -n "$CC"; then
2004   ac_cv_prog_CC="$CC" # Let the user override the test.
2005 else
2006   ac_prog_rejected=no
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015        ac_prog_rejected=yes
2016        continue
2017      fi
2018     ac_cv_prog_CC="cc"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 if test $ac_prog_rejected = yes; then
2026   # We found a bogon in the path, so make sure we never use it.
2027   set dummy $ac_cv_prog_CC
2028   shift
2029   if test $# != 0; then
2030     # We chose a different compiler from the bogus one.
2031     # However, it has the same basename, so the bogon will be chosen
2032     # first if we set CC to just the basename; use the full file name.
2033     shift
2034     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2035   fi
2036 fi
2037 fi
2038 fi
2039 CC=$ac_cv_prog_CC
2040 if test -n "$CC"; then
2041   echo "$as_me:$LINENO: result: $CC" >&5
2042 echo "${ECHO_T}$CC" >&6
2043 else
2044   echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6
2046 fi
2047
2048 fi
2049 if test -z "$CC"; then
2050   if test -n "$ac_tool_prefix"; then
2051   for ac_prog in cl
2052   do
2053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2055 echo "$as_me:$LINENO: checking for $ac_word" >&5
2056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2057 if test "${ac_cv_prog_CC+set}" = set; then
2058   echo $ECHO_N "(cached) $ECHO_C" >&6
2059 else
2060   if test -n "$CC"; then
2061   ac_cv_prog_CC="$CC" # Let the user override the test.
2062 else
2063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 for as_dir in $PATH
2065 do
2066   IFS=$as_save_IFS
2067   test -z "$as_dir" && as_dir=.
2068   for ac_exec_ext in '' $ac_executable_extensions; do
2069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2070     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072     break 2
2073   fi
2074 done
2075 done
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084   echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2086 fi
2087
2088     test -n "$CC" && break
2089   done
2090 fi
2091 if test -z "$CC"; then
2092   ac_ct_CC=$CC
2093   for ac_prog in cl
2094 do
2095   # Extract the first word of "$ac_prog", so it can be a program name with args.
2096 set dummy $ac_prog; ac_word=$2
2097 echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2099 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$ac_ct_CC"; then
2103   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112     ac_cv_prog_ac_ct_CC="$ac_prog"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118
2119 fi
2120 fi
2121 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2122 if test -n "$ac_ct_CC"; then
2123   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2124 echo "${ECHO_T}$ac_ct_CC" >&6
2125 else
2126   echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6
2128 fi
2129
2130   test -n "$ac_ct_CC" && break
2131 done
2132
2133   CC=$ac_ct_CC
2134 fi
2135
2136 fi
2137
2138
2139 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: no acceptable C compiler found in \$PATH
2142 See \`config.log' for more details." >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 # Provide some information about the compiler.
2146 echo "$as_me:$LINENO:" \
2147      "checking for C compiler version" >&5
2148 ac_compiler=`set X $ac_compile; echo $2`
2149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2150   (eval $ac_compiler --version </dev/null >&5) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2155   (eval $ac_compiler -v </dev/null >&5) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }
2159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2160   (eval $ac_compiler -V </dev/null >&5) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2189   (eval $ac_link_default) 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }; then
2193   # Find the output, starting from the most likely.  This scheme is
2194 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2195 # resort.
2196
2197 # Be careful to initialize this variable, since it used to be cached.
2198 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2199 ac_cv_exeext=
2200 # b.out is created by i960 compilers.
2201 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2202 do
2203   test -f "$ac_file" || continue
2204   case $ac_file in
2205     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2206         ;;
2207     conftest.$ac_ext )
2208         # This is the source file.
2209         ;;
2210     [ab].out )
2211         # We found the default executable, but exeext='' is most
2212         # certainly right.
2213         break;;
2214     *.* )
2215         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2216         # FIXME: I believe we export ac_cv_exeext for Libtool,
2217         # but it would be cool to find out if it's true.  Does anybody
2218         # maintain Libtool? --akim.
2219         export ac_cv_exeext
2220         break;;
2221     * )
2222         break;;
2223   esac
2224 done
2225 else
2226   echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233    { (exit 77); exit 77; }; }
2234 fi
2235
2236 ac_exeext=$ac_cv_exeext
2237 echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6
2239
2240 # Check the compiler produces executables we can run.  If not, either
2241 # the compiler is broken, or we cross compile.
2242 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247   if { ac_try='./$ac_file'
2248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249   (eval $ac_try) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; }; then
2253     cross_compiling=no
2254   else
2255     if test "$cross_compiling" = maybe; then
2256         cross_compiling=yes
2257     else
2258         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264    { (exit 1); exit 1; }; }
2265     fi
2266   fi
2267 fi
2268 echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2270
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check the compiler produces executables we can run.  If not, either
2274 # the compiler is broken, or we cross compile.
2275 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2277 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6
2279
2280 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2283   (eval $ac_link) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; then
2287   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2288 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2289 # work properly (i.e., refer to `conftest.exe'), while it won't with
2290 # `rm'.
2291 for ac_file in conftest.exe conftest conftest.*; do
2292   test -f "$ac_file" || continue
2293   case $ac_file in
2294     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2295     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2296           export ac_cv_exeext
2297           break;;
2298     * ) break;;
2299   esac
2300 done
2301 else
2302   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2318 if test "${ac_cv_objext+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327
2328 int
2329 main ()
2330 {
2331
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2338   (eval $ac_compile) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; then
2342   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2343   case $ac_file in
2344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2345     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2346        break;;
2347   esac
2348 done
2349 else
2350   echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2356 See \`config.log' for more details." >&2;}
2357    { (exit 1); exit 1; }; }
2358 fi
2359
2360 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2363 echo "${ECHO_T}$ac_cv_objext" >&6
2364 OBJEXT=$ac_cv_objext
2365 ac_objext=$OBJEXT
2366 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2367 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2368 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2369   echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371   cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 int
2379 main ()
2380 {
2381 #ifndef __GNUC__
2382        choke me
2383 #endif
2384
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391   (eval $ac_compile) 2>conftest.er1
2392   ac_status=$?
2393   grep -v '^ *+' conftest.er1 >conftest.err
2394   rm -f conftest.er1
2395   cat conftest.err >&5
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); } &&
2398          { ac_try='test -z "$ac_c_werror_flag"
2399                          || test ! -s conftest.err'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; } &&
2405          { ac_try='test -s conftest.$ac_objext'
2406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407   (eval $ac_try) 2>&5
2408   ac_status=$?
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }; }; then
2411   ac_compiler_gnu=yes
2412 else
2413   echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2415
2416 ac_compiler_gnu=no
2417 fi
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421 fi
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 CFLAGS="-g"
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431   echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433   cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_prog_cc_g=yes
2471 else
2472   echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 ac_cv_prog_cc_g=no
2476 fi
2477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2480 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2481 if test "$ac_test_CFLAGS" = set; then
2482   CFLAGS=$ac_save_CFLAGS
2483 elif test $ac_cv_prog_cc_g = yes; then
2484   if test "$GCC" = yes; then
2485     CFLAGS="-g -O2"
2486   else
2487     CFLAGS="-g"
2488   fi
2489 else
2490   if test "$GCC" = yes; then
2491     CFLAGS="-O2"
2492   else
2493     CFLAGS=
2494   fi
2495 fi
2496 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2497 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2498 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2499   echo $ECHO_N "(cached) $ECHO_C" >&6
2500 else
2501   ac_cv_prog_cc_stdc=no
2502 ac_save_CC=$CC
2503 cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509 #include <stdarg.h>
2510 #include <stdio.h>
2511 #include <sys/types.h>
2512 #include <sys/stat.h>
2513 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2514 struct buf { int x; };
2515 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2516 static char *e (p, i)
2517      char **p;
2518      int i;
2519 {
2520   return p[i];
2521 }
2522 static char *f (char * (*g) (char **, int), char **p, ...)
2523 {
2524   char *s;
2525   va_list v;
2526   va_start (v,p);
2527   s = g (p, va_arg (v,int));
2528   va_end (v);
2529   return s;
2530 }
2531
2532 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2533    function prototypes and stuff, but not '\xHH' hex character constants.
2534    These don't provoke an error unfortunately, instead are silently treated
2535    as 'x'.  The following induces an error, until -std1 is added to get
2536    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2537    array size at least.  It's necessary to write '\x00'==0 to get something
2538    that's true only with -std1.  */
2539 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540
2541 int test (int i, double x);
2542 struct s1 {int (*f) (int a);};
2543 struct s2 {int (*f) (double a);};
2544 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2545 int argc;
2546 char **argv;
2547 int
2548 main ()
2549 {
2550 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX                   -qlanglvl=ansi
2558 # Ultrix and OSF/1      -std1
2559 # HP-UX 10.20 and later -Ae
2560 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2561 # SVR4                  -Xc -D__EXTENSIONS__
2562 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563 do
2564   CC="$ac_save_CC $ac_arg"
2565   rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag"
2575                          || test ! -s conftest.err'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cc_stdc=$ac_arg
2588 break
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 fi
2594 rm -f conftest.err conftest.$ac_objext
2595 done
2596 rm -f conftest.$ac_ext conftest.$ac_objext
2597 CC=$ac_save_CC
2598
2599 fi
2600
2601 case "x$ac_cv_prog_cc_stdc" in
2602   x|xno)
2603     echo "$as_me:$LINENO: result: none needed" >&5
2604 echo "${ECHO_T}none needed" >&6 ;;
2605   *)
2606     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2608     CC="$CC $ac_cv_prog_cc_stdc" ;;
2609 esac
2610
2611 # Some people use a C++ compiler to compile C.  Since we use `exit',
2612 # in C++ we need to declare it.  In case someone uses the same compiler
2613 # for both compiling C and C++ we need to have the C++ compiler decide
2614 # the declaration of exit, since it's the most demanding environment.
2615 cat >conftest.$ac_ext <<_ACEOF
2616 #ifndef __cplusplus
2617   choke me
2618 #endif
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622   (eval $ac_compile) 2>conftest.er1
2623   ac_status=$?
2624   grep -v '^ *+' conftest.er1 >conftest.err
2625   rm -f conftest.er1
2626   cat conftest.err >&5
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -z "$ac_c_werror_flag"
2630                          || test ! -s conftest.err'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; } &&
2636          { ac_try='test -s conftest.$ac_objext'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; }; then
2642   for ac_declaration in \
2643    '' \
2644    'extern "C" void std::exit (int) throw (); using std::exit;' \
2645    'extern "C" void std::exit (int); using std::exit;' \
2646    'extern "C" void exit (int) throw ();' \
2647    'extern "C" void exit (int);' \
2648    'void exit (int);'
2649 do
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656 $ac_declaration
2657 #include <stdlib.h>
2658 int
2659 main ()
2660 {
2661 exit (42);
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_c_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   :
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 continue
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 $ac_declaration
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   break
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 fi
2739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2740 done
2741 rm -f conftest*
2742 if test -n "$ac_declaration"; then
2743   echo '#ifdef __cplusplus' >>confdefs.h
2744   echo $ac_declaration      >>confdefs.h
2745   echo '#endif'             >>confdefs.h
2746 fi
2747
2748 else
2749   echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 fi
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_ext=c
2755 ac_cpp='$CPP $CPPFLAGS'
2756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760 if test "x$CC" != xcc; then
2761   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2762 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2763 else
2764   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2765 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2766 fi
2767 set dummy $CC; ac_cc=`echo $2 |
2768                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2769 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772   cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 # Make sure it works both with $CC and with simple cc.
2788 # We do the test twice because some compilers refuse to overwrite an
2789 # existing .o file with -o, though they will create one.
2790 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2791 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); };
2801 then
2802   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2803   if test "x$CC" != xcc; then
2804     # Test first that cc exists at all.
2805     if { ac_try='cc -c conftest.$ac_ext >&5'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2812       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2813   (eval $ac_try) 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } &&
2817          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); };
2822       then
2823         # cc works too.
2824         :
2825       else
2826         # cc exists but doesn't like -o.
2827         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2828       fi
2829     fi
2830   fi
2831 else
2832   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2833 fi
2834 rm -f conftest*
2835
2836 fi
2837 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2838   echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2840 else
2841   echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843
2844 cat >>confdefs.h <<\_ACEOF
2845 #define NO_MINUS_C_MINUS_O 1
2846 _ACEOF
2847
2848 fi
2849
2850 # expand $ac_aux_dir to an absolute path
2851 am_aux_dir=`cd $ac_aux_dir && pwd`
2852
2853 # FIXME: we rely on the cache variable name because
2854 # there is no other way.
2855 set dummy $CC
2856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2858    # Losing compiler, so override with the script.
2859    # FIXME: It is wrong to rewrite CC.
2860    # But if we don't then we get into trouble of one sort or another.
2861    # A longer-term fix would be to have automake use am__CC in this case,
2862    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2863    CC="$am_aux_dir/compile $CC"
2864 fi
2865
2866 # autoconf is lame and doesn't give us any substitution variable for this.
2867 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2868   NO_MINUS_C_MINUS_O=yes
2869 else
2870   OUTPUT_OPTION='-o $@'
2871 fi
2872
2873
2874
2875 # -------------------------
2876 # Check C compiler features
2877 # -------------------------
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2885 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2886 # On Suns, sometimes $CPP names a directory.
2887 if test -n "$CPP" && test -d "$CPP"; then
2888   CPP=
2889 fi
2890 if test -z "$CPP"; then
2891   if test "${ac_cv_prog_CPP+set}" = set; then
2892   echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894       # Double quotes because CPP needs to be expanded
2895     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2896     do
2897       ac_preproc_ok=false
2898 for ac_c_preproc_warn_flag in '' yes
2899 do
2900   # Use a header file that comes with gcc, so configuring glibc
2901   # with a fresh cross-compiler works.
2902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903   # <limits.h> exists even on freestanding compilers.
2904   # On the NeXT, cc -E runs the code through the compiler's parser,
2905   # not just through cpp. "Syntax error" is here to catch this case.
2906   cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h.  */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h.  */
2912 #ifdef __STDC__
2913 # include <limits.h>
2914 #else
2915 # include <assert.h>
2916 #endif
2917                      Syntax error
2918 _ACEOF
2919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } >/dev/null; then
2927   if test -s conftest.err; then
2928     ac_cpp_err=$ac_c_preproc_warn_flag
2929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2930   else
2931     ac_cpp_err=
2932   fi
2933 else
2934   ac_cpp_err=yes
2935 fi
2936 if test -z "$ac_cpp_err"; then
2937   :
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942   # Broken: fails on valid input.
2943 continue
2944 fi
2945 rm -f conftest.err conftest.$ac_ext
2946
2947   # OK, works on sane cases.  Now check whether non-existent headers
2948   # can be detected and how.
2949   cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h.  */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h.  */
2955 #include <ac_nonexistent.h>
2956 _ACEOF
2957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2959   ac_status=$?
2960   grep -v '^ *+' conftest.er1 >conftest.err
2961   rm -f conftest.er1
2962   cat conftest.err >&5
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); } >/dev/null; then
2965   if test -s conftest.err; then
2966     ac_cpp_err=$ac_c_preproc_warn_flag
2967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2968   else
2969     ac_cpp_err=
2970   fi
2971 else
2972   ac_cpp_err=yes
2973 fi
2974 if test -z "$ac_cpp_err"; then
2975   # Broken: success on invalid input.
2976 continue
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981   # Passes both tests.
2982 ac_preproc_ok=:
2983 break
2984 fi
2985 rm -f conftest.err conftest.$ac_ext
2986
2987 done
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err conftest.$ac_ext
2990 if $ac_preproc_ok; then
2991   break
2992 fi
2993
2994     done
2995     ac_cv_prog_CPP=$CPP
2996
2997 fi
2998   CPP=$ac_cv_prog_CPP
2999 else
3000   ac_cv_prog_CPP=$CPP
3001 fi
3002 echo "$as_me:$LINENO: result: $CPP" >&5
3003 echo "${ECHO_T}$CPP" >&6
3004 ac_preproc_ok=false
3005 for ac_c_preproc_warn_flag in '' yes
3006 do
3007   # Use a header file that comes with gcc, so configuring glibc
3008   # with a fresh cross-compiler works.
3009   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3010   # <limits.h> exists even on freestanding compilers.
3011   # On the NeXT, cc -E runs the code through the compiler's parser,
3012   # not just through cpp. "Syntax error" is here to catch this case.
3013   cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024                      Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } >/dev/null; then
3034   if test -s conftest.err; then
3035     ac_cpp_err=$ac_c_preproc_warn_flag
3036     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037   else
3038     ac_cpp_err=
3039   fi
3040 else
3041   ac_cpp_err=yes
3042 fi
3043 if test -z "$ac_cpp_err"; then
3044   :
3045 else
3046   echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3048
3049   # Broken: fails on valid input.
3050 continue
3051 fi
3052 rm -f conftest.err conftest.$ac_ext
3053
3054   # OK, works on sane cases.  Now check whether non-existent headers
3055   # can be detected and how.
3056   cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } >/dev/null; then
3072   if test -s conftest.err; then
3073     ac_cpp_err=$ac_c_preproc_warn_flag
3074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3075   else
3076     ac_cpp_err=
3077   fi
3078 else
3079   ac_cpp_err=yes
3080 fi
3081 if test -z "$ac_cpp_err"; then
3082   # Broken: success on invalid input.
3083 continue
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088   # Passes both tests.
3089 ac_preproc_ok=:
3090 break
3091 fi
3092 rm -f conftest.err conftest.$ac_ext
3093
3094 done
3095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3096 rm -f conftest.err conftest.$ac_ext
3097 if $ac_preproc_ok; then
3098   :
3099 else
3100   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105 fi
3106
3107 ac_ext=c
3108 ac_cpp='$CPP $CPPFLAGS'
3109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3112
3113
3114 echo "$as_me:$LINENO: checking for inline" >&5
3115 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3116 if test "${ac_cv_c_inline+set}" = set; then
3117   echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119   ac_cv_c_inline=no
3120 for ac_kw in inline __inline__ __inline; do
3121   cat >conftest.$ac_ext <<_ACEOF
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #ifndef __cplusplus
3128 typedef int foo_t;
3129 static $ac_kw foo_t static_foo () {return 0; }
3130 $ac_kw foo_t foo () {return 0; }
3131 #endif
3132
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136   (eval $ac_compile) 2>conftest.er1
3137   ac_status=$?
3138   grep -v '^ *+' conftest.er1 >conftest.err
3139   rm -f conftest.er1
3140   cat conftest.err >&5
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); } &&
3143          { ac_try='test -z "$ac_c_werror_flag"
3144                          || test ! -s conftest.err'
3145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146   (eval $ac_try) 2>&5
3147   ac_status=$?
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); }; } &&
3150          { ac_try='test -s conftest.$ac_objext'
3151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152   (eval $ac_try) 2>&5
3153   ac_status=$?
3154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155   (exit $ac_status); }; }; then
3156   ac_cv_c_inline=$ac_kw; break
3157 else
3158   echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 fi
3162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3163 done
3164
3165 fi
3166 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3167 echo "${ECHO_T}$ac_cv_c_inline" >&6
3168
3169
3170 case $ac_cv_c_inline in
3171   inline | yes) ;;
3172   *)
3173     case $ac_cv_c_inline in
3174       no) ac_val=;;
3175       *) ac_val=$ac_cv_c_inline;;
3176     esac
3177     cat >>confdefs.h <<_ACEOF
3178 #ifndef __cplusplus
3179 #define inline $ac_val
3180 #endif
3181 _ACEOF
3182     ;;
3183 esac
3184
3185
3186 # sizeof(char) is 1 by definition.
3187
3188 echo "$as_me:$LINENO: checking for egrep" >&5
3189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3190 if test "${ac_cv_prog_egrep+set}" = set; then
3191   echo $ECHO_N "(cached) $ECHO_C" >&6
3192 else
3193   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3194     then ac_cv_prog_egrep='grep -E'
3195     else ac_cv_prog_egrep='egrep'
3196     fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3199 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3200  EGREP=$ac_cv_prog_egrep
3201
3202
3203 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205 if test "${ac_cv_header_stdc+set}" = set; then
3206   echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208   cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h.  */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h.  */
3214 #include <stdlib.h>
3215 #include <stdarg.h>
3216 #include <string.h>
3217 #include <float.h>
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229   (eval $ac_compile) 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } &&
3236          { ac_try='test -z "$ac_c_werror_flag"
3237                          || test ! -s conftest.err'
3238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239   (eval $ac_try) 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245   (eval $ac_try) 2>&5
3246   ac_status=$?
3247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248   (exit $ac_status); }; }; then
3249   ac_cv_header_stdc=yes
3250 else
3251   echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_header_stdc=no
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257
3258 if test $ac_cv_header_stdc = yes; then
3259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <string.h>
3267
3268 _ACEOF
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270   $EGREP "memchr" >/dev/null 2>&1; then
3271   :
3272 else
3273   ac_cv_header_stdc=no
3274 fi
3275 rm -f conftest*
3276
3277 fi
3278
3279 if test $ac_cv_header_stdc = yes; then
3280   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <stdlib.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291   $EGREP "free" >/dev/null 2>&1; then
3292   :
3293 else
3294   ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3302   if test "$cross_compiling" = yes; then
3303   :
3304 else
3305   cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311 #include <ctype.h>
3312 #if ((' ' & 0x0FF) == 0x020)
3313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3315 #else
3316 # define ISLOWER(c) \
3317                    (('a' <= (c) && (c) <= 'i') \
3318                      || ('j' <= (c) && (c) <= 'r') \
3319                      || ('s' <= (c) && (c) <= 'z'))
3320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3321 #endif
3322
3323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3324 int
3325 main ()
3326 {
3327   int i;
3328   for (i = 0; i < 256; i++)
3329     if (XOR (islower (i), ISLOWER (i))
3330         || toupper (i) != TOUPPER (i))
3331       exit(2);
3332   exit (0);
3333 }
3334 _ACEOF
3335 rm -f conftest$ac_exeext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3337   (eval $ac_link) 2>&5
3338   ac_status=$?
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342   (eval $ac_try) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); }; }; then
3346   :
3347 else
3348   echo "$as_me: program exited with status $ac_status" >&5
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 ( exit $ac_status )
3353 ac_cv_header_stdc=no
3354 fi
3355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 fi
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3361 if test $ac_cv_header_stdc = yes; then
3362
3363 cat >>confdefs.h <<\_ACEOF
3364 #define STDC_HEADERS 1
3365 _ACEOF
3366
3367 fi
3368
3369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3380                   inttypes.h stdint.h unistd.h
3381 do
3382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383 echo "$as_me:$LINENO: checking for $ac_header" >&5
3384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 $ac_includes_default
3395
3396 #include <$ac_header>
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400   (eval $ac_compile) 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } &&
3407          { ac_try='test -z "$ac_c_werror_flag"
3408                          || test ! -s conftest.err'
3409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410   (eval $ac_try) 2>&5
3411   ac_status=$?
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); }; } &&
3414          { ac_try='test -s conftest.$ac_objext'
3415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416   (eval $ac_try) 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; }; then
3420   eval "$as_ac_Header=yes"
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 eval "$as_ac_Header=no"
3426 fi
3427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3432   cat >>confdefs.h <<_ACEOF
3433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434 _ACEOF
3435
3436 fi
3437
3438 done
3439
3440
3441 echo "$as_me:$LINENO: checking for void *" >&5
3442 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3443 if test "${ac_cv_type_void_p+set}" = set; then
3444   echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 $ac_includes_default
3453 int
3454 main ()
3455 {
3456 if ((void * *) 0)
3457   return 0;
3458 if (sizeof (void *))
3459   return 0;
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   ac_cv_type_void_p=yes
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 ac_cv_type_void_p=no
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3496 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3497
3498 echo "$as_me:$LINENO: checking size of void *" >&5
3499 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3500 if test "${ac_cv_sizeof_void_p+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   if test "$ac_cv_type_void_p" = yes; then
3504   # The cast to unsigned long works around a bug in the HP C Compiler
3505   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3506   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3507   # This bug is HP SR number 8606223364.
3508   if test "$cross_compiling" = yes; then
3509   # Depending upon the size, compute the lo and hi bounds.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 $ac_includes_default
3517 int
3518 main ()
3519 {
3520 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3521 test_array [0] = 0
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529   (eval $ac_compile) 2>conftest.er1
3530   ac_status=$?
3531   grep -v '^ *+' conftest.er1 >conftest.err
3532   rm -f conftest.er1
3533   cat conftest.err >&5
3534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535   (exit $ac_status); } &&
3536          { ac_try='test -z "$ac_c_werror_flag"
3537                          || test ! -s conftest.err'
3538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539   (eval $ac_try) 2>&5
3540   ac_status=$?
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); }; } &&
3543          { ac_try='test -s conftest.$ac_objext'
3544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545   (eval $ac_try) 2>&5
3546   ac_status=$?
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); }; }; then
3549   ac_lo=0 ac_mid=0
3550   while :; do
3551     cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 $ac_includes_default
3558 int
3559 main ()
3560 {
3561 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3562 test_array [0] = 0
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570   (eval $ac_compile) 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } &&
3577          { ac_try='test -z "$ac_c_werror_flag"
3578                          || test ! -s conftest.err'
3579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580   (eval $ac_try) 2>&5
3581   ac_status=$?
3582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583   (exit $ac_status); }; } &&
3584          { ac_try='test -s conftest.$ac_objext'
3585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586   (eval $ac_try) 2>&5
3587   ac_status=$?
3588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589   (exit $ac_status); }; }; then
3590   ac_hi=$ac_mid; break
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 ac_lo=`expr $ac_mid + 1`
3596                     if test $ac_lo -le $ac_mid; then
3597                       ac_lo= ac_hi=
3598                       break
3599                     fi
3600                     ac_mid=`expr 2 '*' $ac_mid + 1`
3601 fi
3602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603   done
3604 else
3605   echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608 cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 $ac_includes_default
3615 int
3616 main ()
3617 {
3618 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3619 test_array [0] = 0
3620
3621   ;
3622   return 0;
3623 }
3624 _ACEOF
3625 rm -f conftest.$ac_objext
3626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627   (eval $ac_compile) 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } &&
3634          { ac_try='test -z "$ac_c_werror_flag"
3635                          || test ! -s conftest.err'
3636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637   (eval $ac_try) 2>&5
3638   ac_status=$?
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); }; } &&
3641          { ac_try='test -s conftest.$ac_objext'
3642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643   (eval $ac_try) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; }; then
3647   ac_hi=-1 ac_mid=-1
3648   while :; do
3649     cat >conftest.$ac_ext <<_ACEOF
3650 /* confdefs.h.  */
3651 _ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h.  */
3655 $ac_includes_default
3656 int
3657 main ()
3658 {
3659 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3660 test_array [0] = 0
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"
3676                          || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest.$ac_objext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ac_lo=$ac_mid; break
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ac_hi=`expr '(' $ac_mid ')' - 1`
3694                        if test $ac_mid -le $ac_hi; then
3695                          ac_lo= ac_hi=
3696                          break
3697                        fi
3698                        ac_mid=`expr 2 '*' $ac_mid`
3699 fi
3700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701   done
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_lo= ac_hi=
3707 fi
3708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709 fi
3710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711 # Binary search between lo and hi bounds.
3712 while test "x$ac_lo" != "x$ac_hi"; do
3713   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3714   cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h.  */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h.  */
3720 $ac_includes_default
3721 int
3722 main ()
3723 {
3724 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3725 test_array [0] = 0
3726
3727   ;
3728   return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.$ac_objext
3732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3733   (eval $ac_compile) 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } &&
3740          { ac_try='test -z "$ac_c_werror_flag"
3741                          || test ! -s conftest.err'
3742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3743   (eval $ac_try) 2>&5
3744   ac_status=$?
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); }; } &&
3747          { ac_try='test -s conftest.$ac_objext'
3748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749   (eval $ac_try) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); }; }; then
3753   ac_hi=$ac_mid
3754 else
3755   echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 ac_lo=`expr '(' $ac_mid ')' + 1`
3759 fi
3760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3761 done
3762 case $ac_lo in
3763 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3764 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3765 See \`config.log' for more details." >&5
3766 echo "$as_me: error: cannot compute sizeof (void *), 77
3767 See \`config.log' for more details." >&2;}
3768    { (exit 1); exit 1; }; } ;;
3769 esac
3770 else
3771   if test "$cross_compiling" = yes; then
3772   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3773 See \`config.log' for more details." >&5
3774 echo "$as_me: error: cannot run test program while cross compiling
3775 See \`config.log' for more details." >&2;}
3776    { (exit 1); exit 1; }; }
3777 else
3778   cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784 $ac_includes_default
3785 long longval () { return (long) (sizeof (void *)); }
3786 unsigned long ulongval () { return (long) (sizeof (void *)); }
3787 #include <stdio.h>
3788 #include <stdlib.h>
3789 int
3790 main ()
3791 {
3792
3793   FILE *f = fopen ("conftest.val", "w");
3794   if (! f)
3795     exit (1);
3796   if (((long) (sizeof (void *))) < 0)
3797     {
3798       long i = longval ();
3799       if (i != ((long) (sizeof (void *))))
3800         exit (1);
3801       fprintf (f, "%ld\n", i);
3802     }
3803   else
3804     {
3805       unsigned long i = ulongval ();
3806       if (i != ((long) (sizeof (void *))))
3807         exit (1);
3808       fprintf (f, "%lu\n", i);
3809     }
3810   exit (ferror (f) || fclose (f) != 0);
3811
3812   ;
3813   return 0;
3814 }
3815 _ACEOF
3816 rm -f conftest$ac_exeext
3817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818   (eval $ac_link) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823   (eval $ac_try) 2>&5
3824   ac_status=$?
3825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826   (exit $ac_status); }; }; then
3827   ac_cv_sizeof_void_p=`cat conftest.val`
3828 else
3829   echo "$as_me: program exited with status $ac_status" >&5
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3832
3833 ( exit $ac_status )
3834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3835 See \`config.log' for more details." >&5
3836 echo "$as_me: error: cannot compute sizeof (void *), 77
3837 See \`config.log' for more details." >&2;}
3838    { (exit 1); exit 1; }; }
3839 fi
3840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3841 fi
3842 fi
3843 rm -f conftest.val
3844 else
3845   ac_cv_sizeof_void_p=0
3846 fi
3847 fi
3848 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3849 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3850 cat >>confdefs.h <<_ACEOF
3851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3852 _ACEOF
3853
3854
3855 echo "$as_me:$LINENO: checking for short" >&5
3856 echo $ECHO_N "checking for short... $ECHO_C" >&6
3857 if test "${ac_cv_type_short+set}" = set; then
3858   echo $ECHO_N "(cached) $ECHO_C" >&6
3859 else
3860   cat >conftest.$ac_ext <<_ACEOF
3861 /* confdefs.h.  */
3862 _ACEOF
3863 cat confdefs.h >>conftest.$ac_ext
3864 cat >>conftest.$ac_ext <<_ACEOF
3865 /* end confdefs.h.  */
3866 $ac_includes_default
3867 int
3868 main ()
3869 {
3870 if ((short *) 0)
3871   return 0;
3872 if (sizeof (short))
3873   return 0;
3874   ;
3875   return 0;
3876 }
3877 _ACEOF
3878 rm -f conftest.$ac_objext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880   (eval $ac_compile) 2>conftest.er1
3881   ac_status=$?
3882   grep -v '^ *+' conftest.er1 >conftest.err
3883   rm -f conftest.er1
3884   cat conftest.err >&5
3885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886   (exit $ac_status); } &&
3887          { ac_try='test -z "$ac_c_werror_flag"
3888                          || test ! -s conftest.err'
3889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890   (eval $ac_try) 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); }; } &&
3894          { ac_try='test -s conftest.$ac_objext'
3895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896   (eval $ac_try) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); }; }; then
3900   ac_cv_type_short=yes
3901 else
3902   echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 ac_cv_type_short=no
3906 fi
3907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3908 fi
3909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3910 echo "${ECHO_T}$ac_cv_type_short" >&6
3911
3912 echo "$as_me:$LINENO: checking size of short" >&5
3913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3914 if test "${ac_cv_sizeof_short+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   if test "$ac_cv_type_short" = yes; then
3918   # The cast to unsigned long works around a bug in the HP C Compiler
3919   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3920   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3921   # This bug is HP SR number 8606223364.
3922   if test "$cross_compiling" = yes; then
3923   # Depending upon the size, compute the lo and hi bounds.
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 $ac_includes_default
3931 int
3932 main ()
3933 {
3934 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3935 test_array [0] = 0
3936
3937   ;
3938   return 0;
3939 }
3940 _ACEOF
3941 rm -f conftest.$ac_objext
3942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3943   (eval $ac_compile) 2>conftest.er1
3944   ac_status=$?
3945   grep -v '^ *+' conftest.er1 >conftest.err
3946   rm -f conftest.er1
3947   cat conftest.err >&5
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); } &&
3950          { ac_try='test -z "$ac_c_werror_flag"
3951                          || test ! -s conftest.err'
3952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953   (eval $ac_try) 2>&5
3954   ac_status=$?
3955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956   (exit $ac_status); }; } &&
3957          { ac_try='test -s conftest.$ac_objext'
3958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959   (eval $ac_try) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; }; then
3963   ac_lo=0 ac_mid=0
3964   while :; do
3965     cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h.  */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h.  */
3971 $ac_includes_default
3972 int
3973 main ()
3974 {
3975 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3976 test_array [0] = 0
3977
3978   ;
3979   return 0;
3980 }
3981 _ACEOF
3982 rm -f conftest.$ac_objext
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984   (eval $ac_compile) 2>conftest.er1
3985   ac_status=$?
3986   grep -v '^ *+' conftest.er1 >conftest.err
3987   rm -f conftest.er1
3988   cat conftest.err >&5
3989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990   (exit $ac_status); } &&
3991          { ac_try='test -z "$ac_c_werror_flag"
3992                          || test ! -s conftest.err'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; } &&
3998          { ac_try='test -s conftest.$ac_objext'
3999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000   (eval $ac_try) 2>&5
4001   ac_status=$?
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); }; }; then
4004   ac_hi=$ac_mid; break
4005 else
4006   echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009 ac_lo=`expr $ac_mid + 1`
4010                     if test $ac_lo -le $ac_mid; then
4011                       ac_lo= ac_hi=
4012                       break
4013                     fi
4014                     ac_mid=`expr 2 '*' $ac_mid + 1`
4015 fi
4016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4017   done
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4021
4022 cat >conftest.$ac_ext <<_ACEOF
4023 /* confdefs.h.  */
4024 _ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h.  */
4028 $ac_includes_default
4029 int
4030 main ()
4031 {
4032 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4033 test_array [0] = 0
4034
4035   ;
4036   return 0;
4037 }
4038 _ACEOF
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4041   (eval $ac_compile) 2>conftest.er1
4042   ac_status=$?
4043   grep -v '^ *+' conftest.er1 >conftest.err
4044   rm -f conftest.er1
4045   cat conftest.err >&5
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); } &&
4048          { ac_try='test -z "$ac_c_werror_flag"
4049                          || test ! -s conftest.err'
4050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051   (eval $ac_try) 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; }; then
4061   ac_hi=-1 ac_mid=-1
4062   while :; do
4063     cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 $ac_includes_default
4070 int
4071 main ()
4072 {
4073 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4074 test_array [0] = 0
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082   (eval $ac_compile) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } &&
4089          { ac_try='test -z "$ac_c_werror_flag"
4090                          || test ! -s conftest.err'
4091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092   (eval $ac_try) 2>&5
4093   ac_status=$?
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); }; } &&
4096          { ac_try='test -s conftest.$ac_objext'
4097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098   (eval $ac_try) 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_lo=$ac_mid; break
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107 ac_hi=`expr '(' $ac_mid ')' - 1`
4108                        if test $ac_mid -le $ac_hi; then
4109                          ac_lo= ac_hi=
4110                          break
4111                        fi
4112                        ac_mid=`expr 2 '*' $ac_mid`
4113 fi
4114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115   done
4116 else
4117   echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4119
4120 ac_lo= ac_hi=
4121 fi
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123 fi
4124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4125 # Binary search between lo and hi bounds.
4126 while test "x$ac_lo" != "x$ac_hi"; do
4127   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4128   cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h.  */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h.  */
4134 $ac_includes_default
4135 int
4136 main ()
4137 {
4138 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4139 test_array [0] = 0
4140
4141   ;
4142   return 0;
4143 }
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>conftest.er1
4148   ac_status=$?
4149   grep -v '^ *+' conftest.er1 >conftest.err
4150   rm -f conftest.er1
4151   cat conftest.err >&5
4152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153   (exit $ac_status); } &&
4154          { ac_try='test -z "$ac_c_werror_flag"
4155                          || test ! -s conftest.err'
4156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157   (eval $ac_try) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); }; } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   ac_hi=$ac_mid
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_lo=`expr '(' $ac_mid ')' + 1`
4173 fi
4174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4175 done
4176 case $ac_lo in
4177 ?*) ac_cv_sizeof_short=$ac_lo;;
4178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4179 See \`config.log' for more details." >&5
4180 echo "$as_me: error: cannot compute sizeof (short), 77
4181 See \`config.log' for more details." >&2;}
4182    { (exit 1); exit 1; }; } ;;
4183 esac
4184 else
4185   if test "$cross_compiling" = yes; then
4186   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4187 See \`config.log' for more details." >&5
4188 echo "$as_me: error: cannot run test program while cross compiling
4189 See \`config.log' for more details." >&2;}
4190    { (exit 1); exit 1; }; }
4191 else
4192   cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h.  */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h.  */
4198 $ac_includes_default
4199 long longval () { return (long) (sizeof (short)); }
4200 unsigned long ulongval () { return (long) (sizeof (short)); }
4201 #include <stdio.h>
4202 #include <stdlib.h>
4203 int
4204 main ()
4205 {
4206
4207   FILE *f = fopen ("conftest.val", "w");
4208   if (! f)
4209     exit (1);
4210   if (((long) (sizeof (short))) < 0)
4211     {
4212       long i = longval ();
4213       if (i != ((long) (sizeof (short))))
4214         exit (1);
4215       fprintf (f, "%ld\n", i);
4216     }
4217   else
4218     {
4219       unsigned long i = ulongval ();
4220       if (i != ((long) (sizeof (short))))
4221         exit (1);
4222       fprintf (f, "%lu\n", i);
4223     }
4224   exit (ferror (f) || fclose (f) != 0);
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 rm -f conftest$ac_exeext
4231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4232   (eval $ac_link) 2>&5
4233   ac_status=$?
4234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4237   (eval $ac_try) 2>&5
4238   ac_status=$?
4239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240   (exit $ac_status); }; }; then
4241   ac_cv_sizeof_short=`cat conftest.val`
4242 else
4243   echo "$as_me: program exited with status $ac_status" >&5
4244 echo "$as_me: failed program was:" >&5
4245 sed 's/^/| /' conftest.$ac_ext >&5
4246
4247 ( exit $ac_status )
4248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4249 See \`config.log' for more details." >&5
4250 echo "$as_me: error: cannot compute sizeof (short), 77
4251 See \`config.log' for more details." >&2;}
4252    { (exit 1); exit 1; }; }
4253 fi
4254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4255 fi
4256 fi
4257 rm -f conftest.val
4258 else
4259   ac_cv_sizeof_short=0
4260 fi
4261 fi
4262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4263 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4264 cat >>confdefs.h <<_ACEOF
4265 #define SIZEOF_SHORT $ac_cv_sizeof_short
4266 _ACEOF
4267
4268
4269 echo "$as_me:$LINENO: checking for int" >&5
4270 echo $ECHO_N "checking for int... $ECHO_C" >&6
4271 if test "${ac_cv_type_int+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280 $ac_includes_default
4281 int
4282 main ()
4283 {
4284 if ((int *) 0)
4285   return 0;
4286 if (sizeof (int))
4287   return 0;
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 rm -f conftest.$ac_objext
4293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4294   (eval $ac_compile) 2>conftest.er1
4295   ac_status=$?
4296   grep -v '^ *+' conftest.er1 >conftest.err
4297   rm -f conftest.er1
4298   cat conftest.err >&5
4299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300   (exit $ac_status); } &&
4301          { ac_try='test -z "$ac_c_werror_flag"
4302                          || test ! -s conftest.err'
4303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304   (eval $ac_try) 2>&5
4305   ac_status=$?
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); }; } &&
4308          { ac_try='test -s conftest.$ac_objext'
4309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310   (eval $ac_try) 2>&5
4311   ac_status=$?
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); }; }; then
4314   ac_cv_type_int=yes
4315 else
4316   echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4318
4319 ac_cv_type_int=no
4320 fi
4321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4322 fi
4323 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4324 echo "${ECHO_T}$ac_cv_type_int" >&6
4325
4326 echo "$as_me:$LINENO: checking size of int" >&5
4327 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4328 if test "${ac_cv_sizeof_int+set}" = set; then
4329   echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331   if test "$ac_cv_type_int" = yes; then
4332   # The cast to unsigned long works around a bug in the HP C Compiler
4333   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4334   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4335   # This bug is HP SR number 8606223364.
4336   if test "$cross_compiling" = yes; then
4337   # Depending upon the size, compute the lo and hi bounds.
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h.  */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h.  */
4344 $ac_includes_default
4345 int
4346 main ()
4347 {
4348 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4349 test_array [0] = 0
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 rm -f conftest.$ac_objext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357   (eval $ac_compile) 2>conftest.er1
4358   ac_status=$?
4359   grep -v '^ *+' conftest.er1 >conftest.err
4360   rm -f conftest.er1
4361   cat conftest.err >&5
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } &&
4364          { ac_try='test -z "$ac_c_werror_flag"
4365                          || test ! -s conftest.err'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest.$ac_objext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_lo=0 ac_mid=0
4378   while :; do
4379     cat >conftest.$ac_ext <<_ACEOF
4380 /* confdefs.h.  */
4381 _ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h.  */
4385 $ac_includes_default
4386 int
4387 main ()
4388 {
4389 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4390 test_array [0] = 0
4391
4392   ;
4393   return 0;
4394 }
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398   (eval $ac_compile) 2>conftest.er1
4399   ac_status=$?
4400   grep -v '^ *+' conftest.er1 >conftest.err
4401   rm -f conftest.er1
4402   cat conftest.err >&5
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } &&
4405          { ac_try='test -z "$ac_c_werror_flag"
4406                          || test ! -s conftest.err'
4407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408   (eval $ac_try) 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); }; } &&
4412          { ac_try='test -s conftest.$ac_objext'
4413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414   (eval $ac_try) 2>&5
4415   ac_status=$?
4416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417   (exit $ac_status); }; }; then
4418   ac_hi=$ac_mid; break
4419 else
4420   echo "$as_me: failed program was:" >&5
4421 sed 's/^/| /' conftest.$ac_ext >&5
4422
4423 ac_lo=`expr $ac_mid + 1`
4424                     if test $ac_lo -le $ac_mid; then
4425                       ac_lo= ac_hi=
4426                       break
4427                     fi
4428                     ac_mid=`expr 2 '*' $ac_mid + 1`
4429 fi
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4431   done
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 $ac_includes_default
4443 int
4444 main ()
4445 {
4446 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4447 test_array [0] = 0
4448
4449   ;
4450   return 0;
4451 }
4452 _ACEOF
4453 rm -f conftest.$ac_objext
4454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4455   (eval $ac_compile) 2>conftest.er1
4456   ac_status=$?
4457   grep -v '^ *+' conftest.er1 >conftest.err
4458   rm -f conftest.er1
4459   cat conftest.err >&5
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); } &&
4462          { ac_try='test -z "$ac_c_werror_flag"
4463                          || test ! -s conftest.err'
4464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4465   (eval $ac_try) 2>&5
4466   ac_status=$?
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); }; } &&
4469          { ac_try='test -s conftest.$ac_objext'
4470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471   (eval $ac_try) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; }; then
4475   ac_hi=-1 ac_mid=-1
4476   while :; do
4477     cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 $ac_includes_default
4484 int
4485 main ()
4486 {
4487 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4488 test_array [0] = 0
4489
4490   ;
4491   return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.$ac_objext
4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4496   (eval $ac_compile) 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } &&
4503          { ac_try='test -z "$ac_c_werror_flag"
4504                          || test ! -s conftest.err'
4505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4506   (eval $ac_try) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); }; } &&
4510          { ac_try='test -s conftest.$ac_objext'
4511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512   (eval $ac_try) 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }; }; then
4516   ac_lo=$ac_mid; break
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4520
4521 ac_hi=`expr '(' $ac_mid ')' - 1`
4522                        if test $ac_mid -le $ac_hi; then
4523                          ac_lo= ac_hi=
4524                          break
4525                        fi
4526                        ac_mid=`expr 2 '*' $ac_mid`
4527 fi
4528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4529   done
4530 else
4531   echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.$ac_ext >&5
4533
4534 ac_lo= ac_hi=
4535 fi
4536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4537 fi
4538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4539 # Binary search between lo and hi bounds.
4540 while test "x$ac_lo" != "x$ac_hi"; do
4541   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4542   cat >conftest.$ac_ext <<_ACEOF
4543 /* confdefs.h.  */
4544 _ACEOF
4545 cat confdefs.h >>conftest.$ac_ext
4546 cat >>conftest.$ac_ext <<_ACEOF
4547 /* end confdefs.h.  */
4548 $ac_includes_default
4549 int
4550 main ()
4551 {
4552 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4553 test_array [0] = 0
4554
4555   ;
4556   return 0;
4557 }
4558 _ACEOF
4559 rm -f conftest.$ac_objext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561   (eval $ac_compile) 2>conftest.er1
4562   ac_status=$?
4563   grep -v '^ *+' conftest.er1 >conftest.err
4564   rm -f conftest.er1
4565   cat conftest.err >&5
4566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567   (exit $ac_status); } &&
4568          { ac_try='test -z "$ac_c_werror_flag"
4569                          || test ! -s conftest.err'
4570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571   (eval $ac_try) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; } &&
4575          { ac_try='test -s conftest.$ac_objext'
4576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577   (eval $ac_try) 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); }; }; then
4581   ac_hi=$ac_mid
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 ac_lo=`expr '(' $ac_mid ')' + 1`
4587 fi
4588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589 done
4590 case $ac_lo in
4591 ?*) ac_cv_sizeof_int=$ac_lo;;
4592 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: cannot compute sizeof (int), 77
4595 See \`config.log' for more details." >&2;}
4596    { (exit 1); exit 1; }; } ;;
4597 esac
4598 else
4599   if test "$cross_compiling" = yes; then
4600   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4601 See \`config.log' for more details." >&5
4602 echo "$as_me: error: cannot run test program while cross compiling
4603 See \`config.log' for more details." >&2;}
4604    { (exit 1); exit 1; }; }
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612 $ac_includes_default
4613 long longval () { return (long) (sizeof (int)); }
4614 unsigned long ulongval () { return (long) (sizeof (int)); }
4615 #include <stdio.h>
4616 #include <stdlib.h>
4617 int
4618 main ()
4619 {
4620
4621   FILE *f = fopen ("conftest.val", "w");
4622   if (! f)
4623     exit (1);
4624   if (((long) (sizeof (int))) < 0)
4625     {
4626       long i = longval ();
4627       if (i != ((long) (sizeof (int))))
4628         exit (1);
4629       fprintf (f, "%ld\n", i);
4630     }
4631   else
4632     {
4633       unsigned long i = ulongval ();
4634       if (i != ((long) (sizeof (int))))
4635         exit (1);
4636       fprintf (f, "%lu\n", i);
4637     }
4638   exit (ferror (f) || fclose (f) != 0);
4639
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646   (eval $ac_link) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; }; then
4655   ac_cv_sizeof_int=`cat conftest.val`
4656 else
4657   echo "$as_me: program exited with status $ac_status" >&5
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4660
4661 ( exit $ac_status )
4662 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4663 See \`config.log' for more details." >&5
4664 echo "$as_me: error: cannot compute sizeof (int), 77
4665 See \`config.log' for more details." >&2;}
4666    { (exit 1); exit 1; }; }
4667 fi
4668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4669 fi
4670 fi
4671 rm -f conftest.val
4672 else
4673   ac_cv_sizeof_int=0
4674 fi
4675 fi
4676 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4677 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4678 cat >>confdefs.h <<_ACEOF
4679 #define SIZEOF_INT $ac_cv_sizeof_int
4680 _ACEOF
4681
4682
4683 echo "$as_me:$LINENO: checking for long" >&5
4684 echo $ECHO_N "checking for long... $ECHO_C" >&6
4685 if test "${ac_cv_type_long+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694 $ac_includes_default
4695 int
4696 main ()
4697 {
4698 if ((long *) 0)
4699   return 0;
4700 if (sizeof (long))
4701   return 0;
4702   ;
4703   return 0;
4704 }
4705 _ACEOF
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708   (eval $ac_compile) 2>conftest.er1
4709   ac_status=$?
4710   grep -v '^ *+' conftest.er1 >conftest.err
4711   rm -f conftest.er1
4712   cat conftest.err >&5
4713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714   (exit $ac_status); } &&
4715          { ac_try='test -z "$ac_c_werror_flag"
4716                          || test ! -s conftest.err'
4717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718   (eval $ac_try) 2>&5
4719   ac_status=$?
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); }; } &&
4722          { ac_try='test -s conftest.$ac_objext'
4723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724   (eval $ac_try) 2>&5
4725   ac_status=$?
4726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727   (exit $ac_status); }; }; then
4728   ac_cv_type_long=yes
4729 else
4730   echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4732
4733 ac_cv_type_long=no
4734 fi
4735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 fi
4737 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4738 echo "${ECHO_T}$ac_cv_type_long" >&6
4739
4740 echo "$as_me:$LINENO: checking size of long" >&5
4741 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4742 if test "${ac_cv_sizeof_long+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   if test "$ac_cv_type_long" = yes; then
4746   # The cast to unsigned long works around a bug in the HP C Compiler
4747   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4748   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4749   # This bug is HP SR number 8606223364.
4750   if test "$cross_compiling" = yes; then
4751   # Depending upon the size, compute the lo and hi bounds.
4752 cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758 $ac_includes_default
4759 int
4760 main ()
4761 {
4762 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4763 test_array [0] = 0
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_c_werror_flag"
4779                          || test ! -s conftest.err'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; } &&
4785          { ac_try='test -s conftest.$ac_objext'
4786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787   (eval $ac_try) 2>&5
4788   ac_status=$?
4789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); }; }; then
4791   ac_lo=0 ac_mid=0
4792   while :; do
4793     cat >conftest.$ac_ext <<_ACEOF
4794 /* confdefs.h.  */
4795 _ACEOF
4796 cat confdefs.h >>conftest.$ac_ext
4797 cat >>conftest.$ac_ext <<_ACEOF
4798 /* end confdefs.h.  */
4799 $ac_includes_default
4800 int
4801 main ()
4802 {
4803 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4804 test_array [0] = 0
4805
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812   (eval $ac_compile) 2>conftest.er1
4813   ac_status=$?
4814   grep -v '^ *+' conftest.er1 >conftest.err
4815   rm -f conftest.er1
4816   cat conftest.err >&5
4817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818   (exit $ac_status); } &&
4819          { ac_try='test -z "$ac_c_werror_flag"
4820                          || test ! -s conftest.err'
4821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822   (eval $ac_try) 2>&5
4823   ac_status=$?
4824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825   (exit $ac_status); }; } &&
4826          { ac_try='test -s conftest.$ac_objext'
4827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828   (eval $ac_try) 2>&5
4829   ac_status=$?
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); }; }; then
4832   ac_hi=$ac_mid; break
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 ac_lo=`expr $ac_mid + 1`
4838                     if test $ac_lo -le $ac_mid; then
4839                       ac_lo= ac_hi=
4840                       break
4841                     fi
4842                     ac_mid=`expr 2 '*' $ac_mid + 1`
4843 fi
4844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845   done
4846 else
4847   echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h.  */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h.  */
4856 $ac_includes_default
4857 int
4858 main ()
4859 {
4860 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4861 test_array [0] = 0
4862
4863   ;
4864   return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest.$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869   (eval $ac_compile) 2>conftest.er1
4870   ac_status=$?
4871   grep -v '^ *+' conftest.er1 >conftest.err
4872   rm -f conftest.er1
4873   cat conftest.err >&5
4874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875   (exit $ac_status); } &&
4876          { ac_try='test -z "$ac_c_werror_flag"
4877                          || test ! -s conftest.err'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; } &&
4883          { ac_try='test -s conftest.$ac_objext'
4884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885   (eval $ac_try) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }; }; then
4889   ac_hi=-1 ac_mid=-1
4890   while :; do
4891     cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 $ac_includes_default
4898 int
4899 main ()
4900 {
4901 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4902 test_array [0] = 0
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910   (eval $ac_compile) 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -z "$ac_c_werror_flag"
4918                          || test ! -s conftest.err'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; } &&
4924          { ac_try='test -s conftest.$ac_objext'
4925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926   (eval $ac_try) 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); }; }; then
4930   ac_lo=$ac_mid; break
4931 else
4932   echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4934
4935 ac_hi=`expr '(' $ac_mid ')' - 1`
4936                        if test $ac_mid -le $ac_hi; then
4937                          ac_lo= ac_hi=
4938                          break
4939                        fi
4940                        ac_mid=`expr 2 '*' $ac_mid`
4941 fi
4942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4943   done
4944 else
4945   echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4947
4948 ac_lo= ac_hi=
4949 fi
4950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4953 # Binary search between lo and hi bounds.
4954 while test "x$ac_lo" != "x$ac_hi"; do
4955   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 $ac_includes_default
4963 int
4964 main ()
4965 {
4966 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4967 test_array [0] = 0
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_c_werror_flag"
4983                          || test ! -s conftest.err'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; } &&
4989          { ac_try='test -s conftest.$ac_objext'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; }; then
4995   ac_hi=$ac_mid
4996 else
4997   echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
4999
5000 ac_lo=`expr '(' $ac_mid ')' + 1`
5001 fi
5002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5003 done
5004 case $ac_lo in
5005 ?*) ac_cv_sizeof_long=$ac_lo;;
5006 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5007 See \`config.log' for more details." >&5
5008 echo "$as_me: error: cannot compute sizeof (long), 77
5009 See \`config.log' for more details." >&2;}
5010    { (exit 1); exit 1; }; } ;;
5011 esac
5012 else
5013   if test "$cross_compiling" = yes; then
5014   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5015 See \`config.log' for more details." >&5
5016 echo "$as_me: error: cannot run test program while cross compiling
5017 See \`config.log' for more details." >&2;}
5018    { (exit 1); exit 1; }; }
5019 else
5020   cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 $ac_includes_default
5027 long longval () { return (long) (sizeof (long)); }
5028 unsigned long ulongval () { return (long) (sizeof (long)); }
5029 #include <stdio.h>
5030 #include <stdlib.h>
5031 int
5032 main ()
5033 {
5034
5035   FILE *f = fopen ("conftest.val", "w");
5036   if (! f)
5037     exit (1);
5038   if (((long) (sizeof (long))) < 0)
5039     {
5040       long i = longval ();
5041       if (i != ((long) (sizeof (long))))
5042         exit (1);
5043       fprintf (f, "%ld\n", i);
5044     }
5045   else
5046     {
5047       unsigned long i = ulongval ();
5048       if (i != ((long) (sizeof (long))))
5049         exit (1);
5050       fprintf (f, "%lu\n", i);
5051     }
5052   exit (ferror (f) || fclose (f) != 0);
5053
5054   ;
5055   return 0;
5056 }
5057 _ACEOF
5058 rm -f conftest$ac_exeext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060   (eval $ac_link) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; }; then
5069   ac_cv_sizeof_long=`cat conftest.val`
5070 else
5071   echo "$as_me: program exited with status $ac_status" >&5
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ( exit $ac_status )
5076 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5077 See \`config.log' for more details." >&5
5078 echo "$as_me: error: cannot compute sizeof (long), 77
5079 See \`config.log' for more details." >&2;}
5080    { (exit 1); exit 1; }; }
5081 fi
5082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5083 fi
5084 fi
5085 rm -f conftest.val
5086 else
5087   ac_cv_sizeof_long=0
5088 fi
5089 fi
5090 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5091 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5092 cat >>confdefs.h <<_ACEOF
5093 #define SIZEOF_LONG $ac_cv_sizeof_long
5094 _ACEOF
5095
5096
5097 echo "$as_me:$LINENO: checking for long long" >&5
5098 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5099 if test "${ac_cv_type_long_long+set}" = set; then
5100   echo $ECHO_N "(cached) $ECHO_C" >&6
5101 else
5102   cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 $ac_includes_default
5109 int
5110 main ()
5111 {
5112 if ((long long *) 0)
5113   return 0;
5114 if (sizeof (long long))
5115   return 0;
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 rm -f conftest.$ac_objext
5121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5122   (eval $ac_compile) 2>conftest.er1
5123   ac_status=$?
5124   grep -v '^ *+' conftest.er1 >conftest.err
5125   rm -f conftest.er1
5126   cat conftest.err >&5
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } &&
5129          { ac_try='test -z "$ac_c_werror_flag"
5130                          || test ! -s conftest.err'
5131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132   (eval $ac_try) 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; } &&
5136          { ac_try='test -s conftest.$ac_objext'
5137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138   (eval $ac_try) 2>&5
5139   ac_status=$?
5140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); }; }; then
5142   ac_cv_type_long_long=yes
5143 else
5144   echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_cv_type_long_long=no
5148 fi
5149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5153 if test $ac_cv_type_long_long = yes; then
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define HAVE_LONG_LONG 1
5157 _ACEOF
5158
5159 echo "$as_me:$LINENO: checking for long long" >&5
5160 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5161 if test "${ac_cv_type_long_long+set}" = set; then
5162   echo $ECHO_N "(cached) $ECHO_C" >&6
5163 else
5164   cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h.  */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h.  */
5170 $ac_includes_default
5171 int
5172 main ()
5173 {
5174 if ((long long *) 0)
5175   return 0;
5176 if (sizeof (long long))
5177   return 0;
5178   ;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest.$ac_objext
5183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184   (eval $ac_compile) 2>conftest.er1
5185   ac_status=$?
5186   grep -v '^ *+' conftest.er1 >conftest.err
5187   rm -f conftest.er1
5188   cat conftest.err >&5
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); } &&
5191          { ac_try='test -z "$ac_c_werror_flag"
5192                          || test ! -s conftest.err'
5193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194   (eval $ac_try) 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; } &&
5198          { ac_try='test -s conftest.$ac_objext'
5199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200   (eval $ac_try) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); }; }; then
5204   ac_cv_type_long_long=yes
5205 else
5206   echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_type_long_long=no
5210 fi
5211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5214 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5215
5216 echo "$as_me:$LINENO: checking size of long long" >&5
5217 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5218 if test "${ac_cv_sizeof_long_long+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   if test "$ac_cv_type_long_long" = yes; then
5222   # The cast to unsigned long works around a bug in the HP C Compiler
5223   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5224   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5225   # This bug is HP SR number 8606223364.
5226   if test "$cross_compiling" = yes; then
5227   # Depending upon the size, compute the lo and hi bounds.
5228 cat >conftest.$ac_ext <<_ACEOF
5229 /* confdefs.h.  */
5230 _ACEOF
5231 cat confdefs.h >>conftest.$ac_ext
5232 cat >>conftest.$ac_ext <<_ACEOF
5233 /* end confdefs.h.  */
5234 $ac_includes_default
5235 int
5236 main ()
5237 {
5238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5239 test_array [0] = 0
5240
5241   ;
5242   return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247   (eval $ac_compile) 2>conftest.er1
5248   ac_status=$?
5249   grep -v '^ *+' conftest.er1 >conftest.err
5250   rm -f conftest.er1
5251   cat conftest.err >&5
5252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253   (exit $ac_status); } &&
5254          { ac_try='test -z "$ac_c_werror_flag"
5255                          || test ! -s conftest.err'
5256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257   (eval $ac_try) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); }; } &&
5261          { ac_try='test -s conftest.$ac_objext'
5262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263   (eval $ac_try) 2>&5
5264   ac_status=$?
5265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); }; }; then
5267   ac_lo=0 ac_mid=0
5268   while :; do
5269     cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 $ac_includes_default
5276 int
5277 main ()
5278 {
5279 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5280 test_array [0] = 0
5281
5282   ;
5283   return 0;
5284 }
5285 _ACEOF
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288   (eval $ac_compile) 2>conftest.er1
5289   ac_status=$?
5290   grep -v '^ *+' conftest.er1 >conftest.err
5291   rm -f conftest.er1
5292   cat conftest.err >&5
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); } &&
5295          { ac_try='test -z "$ac_c_werror_flag"
5296                          || test ! -s conftest.err'
5297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298   (eval $ac_try) 2>&5
5299   ac_status=$?
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); }; } &&
5302          { ac_try='test -s conftest.$ac_objext'
5303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304   (eval $ac_try) 2>&5
5305   ac_status=$?
5306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307   (exit $ac_status); }; }; then
5308   ac_hi=$ac_mid; break
5309 else
5310   echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_lo=`expr $ac_mid + 1`
5314                     if test $ac_lo -le $ac_mid; then
5315                       ac_lo= ac_hi=
5316                       break
5317                     fi
5318                     ac_mid=`expr 2 '*' $ac_mid + 1`
5319 fi
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321   done
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332 $ac_includes_default
5333 int
5334 main ()
5335 {
5336 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5337 test_array [0] = 0
5338
5339   ;
5340   return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345   (eval $ac_compile) 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } &&
5352          { ac_try='test -z "$ac_c_werror_flag"
5353                          || test ! -s conftest.err'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; } &&
5359          { ac_try='test -s conftest.$ac_objext'
5360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361   (eval $ac_try) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; }; then
5365   ac_hi=-1 ac_mid=-1
5366   while :; do
5367     cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h.  */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h.  */
5373 $ac_includes_default
5374 int
5375 main ()
5376 {
5377 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5378 test_array [0] = 0
5379
5380   ;
5381   return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386   (eval $ac_compile) 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -z "$ac_c_werror_flag"
5394                          || test ! -s conftest.err'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; } &&
5400          { ac_try='test -s conftest.$ac_objext'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; }; then
5406   ac_lo=$ac_mid; break
5407 else
5408   echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5410
5411 ac_hi=`expr '(' $ac_mid ')' - 1`
5412                        if test $ac_mid -le $ac_hi; then
5413                          ac_lo= ac_hi=
5414                          break
5415                        fi
5416                        ac_mid=`expr 2 '*' $ac_mid`
5417 fi
5418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419   done
5420 else
5421   echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 ac_lo= ac_hi=
5425 fi
5426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 # Binary search between lo and hi bounds.
5430 while test "x$ac_lo" != "x$ac_hi"; do
5431   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438 $ac_includes_default
5439 int
5440 main ()
5441 {
5442 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5443 test_array [0] = 0
5444
5445   ;
5446   return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451   (eval $ac_compile) 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } &&
5458          { ac_try='test -z "$ac_c_werror_flag"
5459                          || test ! -s conftest.err'
5460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461   (eval $ac_try) 2>&5
5462   ac_status=$?
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); }; } &&
5465          { ac_try='test -s conftest.$ac_objext'
5466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467   (eval $ac_try) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); }; }; then
5471   ac_hi=$ac_mid
5472 else
5473   echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_lo=`expr '(' $ac_mid ')' + 1`
5477 fi
5478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5479 done
5480 case $ac_lo in
5481 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot compute sizeof (long long), 77
5485 See \`config.log' for more details." >&2;}
5486    { (exit 1); exit 1; }; } ;;
5487 esac
5488 else
5489   if test "$cross_compiling" = yes; then
5490   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5491 See \`config.log' for more details." >&5
5492 echo "$as_me: error: cannot run test program while cross compiling
5493 See \`config.log' for more details." >&2;}
5494    { (exit 1); exit 1; }; }
5495 else
5496   cat >conftest.$ac_ext <<_ACEOF
5497 /* confdefs.h.  */
5498 _ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h.  */
5502 $ac_includes_default
5503 long longval () { return (long) (sizeof (long long)); }
5504 unsigned long ulongval () { return (long) (sizeof (long long)); }
5505 #include <stdio.h>
5506 #include <stdlib.h>
5507 int
5508 main ()
5509 {
5510
5511   FILE *f = fopen ("conftest.val", "w");
5512   if (! f)
5513     exit (1);
5514   if (((long) (sizeof (long long))) < 0)
5515     {
5516       long i = longval ();
5517       if (i != ((long) (sizeof (long long))))
5518         exit (1);
5519       fprintf (f, "%ld\n", i);
5520     }
5521   else
5522     {
5523       unsigned long i = ulongval ();
5524       if (i != ((long) (sizeof (long long))))
5525         exit (1);
5526       fprintf (f, "%lu\n", i);
5527     }
5528   exit (ferror (f) || fclose (f) != 0);
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536   (eval $ac_link) 2>&5
5537   ac_status=$?
5538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_cv_sizeof_long_long=`cat conftest.val`
5546 else
5547   echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 ( exit $ac_status )
5552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot compute sizeof (long long), 77
5555 See \`config.log' for more details." >&2;}
5556    { (exit 1); exit 1; }; }
5557 fi
5558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5559 fi
5560 fi
5561 rm -f conftest.val
5562 else
5563   ac_cv_sizeof_long_long=0
5564 fi
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5567 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5568 cat >>confdefs.h <<_ACEOF
5569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5570 _ACEOF
5571
5572
5573 fi
5574
5575 echo "$as_me:$LINENO: checking for __int64" >&5
5576 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5577 if test "${ac_cv_type___int64+set}" = set; then
5578   echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580   cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h.  */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h.  */
5586 $ac_includes_default
5587 int
5588 main ()
5589 {
5590 if ((__int64 *) 0)
5591   return 0;
5592 if (sizeof (__int64))
5593   return 0;
5594   ;
5595   return 0;
5596 }
5597 _ACEOF
5598 rm -f conftest.$ac_objext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5600   (eval $ac_compile) 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } &&
5607          { ac_try='test -z "$ac_c_werror_flag"
5608                          || test ! -s conftest.err'
5609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610   (eval $ac_try) 2>&5
5611   ac_status=$?
5612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613   (exit $ac_status); }; } &&
5614          { ac_try='test -s conftest.$ac_objext'
5615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5616   (eval $ac_try) 2>&5
5617   ac_status=$?
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); }; }; then
5620   ac_cv_type___int64=yes
5621 else
5622   echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5624
5625 ac_cv_type___int64=no
5626 fi
5627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5630 echo "${ECHO_T}$ac_cv_type___int64" >&6
5631 if test $ac_cv_type___int64 = yes; then
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define HAVE___INT64 1
5635 _ACEOF
5636
5637 echo "$as_me:$LINENO: checking for __int64" >&5
5638 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5639 if test "${ac_cv_type___int64+set}" = set; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649 int
5650 main ()
5651 {
5652 if ((__int64 *) 0)
5653   return 0;
5654 if (sizeof (__int64))
5655   return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag"
5670                          || test ! -s conftest.err'
5671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672   (eval $ac_try) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; } &&
5676          { ac_try='test -s conftest.$ac_objext'
5677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678   (eval $ac_try) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); }; }; then
5682   ac_cv_type___int64=yes
5683 else
5684   echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5686
5687 ac_cv_type___int64=no
5688 fi
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5692 echo "${ECHO_T}$ac_cv_type___int64" >&6
5693
5694 echo "$as_me:$LINENO: checking size of __int64" >&5
5695 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5696 if test "${ac_cv_sizeof___int64+set}" = set; then
5697   echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699   if test "$ac_cv_type___int64" = yes; then
5700   # The cast to unsigned long works around a bug in the HP C Compiler
5701   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5702   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5703   # This bug is HP SR number 8606223364.
5704   if test "$cross_compiling" = yes; then
5705   # Depending upon the size, compute the lo and hi bounds.
5706 cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 $ac_includes_default
5713 int
5714 main ()
5715 {
5716 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5717 test_array [0] = 0
5718
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -z "$ac_c_werror_flag"
5733                          || test ! -s conftest.err'
5734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735   (eval $ac_try) 2>&5
5736   ac_status=$?
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); }; } &&
5739          { ac_try='test -s conftest.$ac_objext'
5740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5741   (eval $ac_try) 2>&5
5742   ac_status=$?
5743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); }; }; then
5745   ac_lo=0 ac_mid=0
5746   while :; do
5747     cat >conftest.$ac_ext <<_ACEOF
5748 /* confdefs.h.  */
5749 _ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h.  */
5753 $ac_includes_default
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5758 test_array [0] = 0
5759
5760   ;
5761   return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766   (eval $ac_compile) 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -z "$ac_c_werror_flag"
5774                          || test ! -s conftest.err'
5775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776   (eval $ac_try) 2>&5
5777   ac_status=$?
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); }; } &&
5780          { ac_try='test -s conftest.$ac_objext'
5781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782   (eval $ac_try) 2>&5
5783   ac_status=$?
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); }; }; then
5786   ac_hi=$ac_mid; break
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_lo=`expr $ac_mid + 1`
5792                     if test $ac_lo -le $ac_mid; then
5793                       ac_lo= ac_hi=
5794                       break
5795                     fi
5796                     ac_mid=`expr 2 '*' $ac_mid + 1`
5797 fi
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799   done
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 $ac_includes_default
5811 int
5812 main ()
5813 {
5814 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5815 test_array [0] = 0
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823   (eval $ac_compile) 2>conftest.er1
5824   ac_status=$?
5825   grep -v '^ *+' conftest.er1 >conftest.err
5826   rm -f conftest.er1
5827   cat conftest.err >&5
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -z "$ac_c_werror_flag"
5831                          || test ! -s conftest.err'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; } &&
5837          { ac_try='test -s conftest.$ac_objext'
5838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839   (eval $ac_try) 2>&5
5840   ac_status=$?
5841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842   (exit $ac_status); }; }; then
5843   ac_hi=-1 ac_mid=-1
5844   while :; do
5845     cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 $ac_includes_default
5852 int
5853 main ()
5854 {
5855 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5856 test_array [0] = 0
5857
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864   (eval $ac_compile) 2>conftest.er1
5865   ac_status=$?
5866   grep -v '^ *+' conftest.er1 >conftest.err
5867   rm -f conftest.er1
5868   cat conftest.err >&5
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); } &&
5871          { ac_try='test -z "$ac_c_werror_flag"
5872                          || test ! -s conftest.err'
5873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874   (eval $ac_try) 2>&5
5875   ac_status=$?
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); }; } &&
5878          { ac_try='test -s conftest.$ac_objext'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; }; then
5884   ac_lo=$ac_mid; break
5885 else
5886   echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 ac_hi=`expr '(' $ac_mid ')' - 1`
5890                        if test $ac_mid -le $ac_hi; then
5891                          ac_lo= ac_hi=
5892                          break
5893                        fi
5894                        ac_mid=`expr 2 '*' $ac_mid`
5895 fi
5896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5897   done
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902 ac_lo= ac_hi=
5903 fi
5904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5905 fi
5906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5907 # Binary search between lo and hi bounds.
5908 while test "x$ac_lo" != "x$ac_hi"; do
5909   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5910   cat >conftest.$ac_ext <<_ACEOF
5911 /* confdefs.h.  */
5912 _ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h.  */
5916 $ac_includes_default
5917 int
5918 main ()
5919 {
5920 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5921 test_array [0] = 0
5922
5923   ;
5924   return 0;
5925 }
5926 _ACEOF
5927 rm -f conftest.$ac_objext
5928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5929   (eval $ac_compile) 2>conftest.er1
5930   ac_status=$?
5931   grep -v '^ *+' conftest.er1 >conftest.err
5932   rm -f conftest.er1
5933   cat conftest.err >&5
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); } &&
5936          { ac_try='test -z "$ac_c_werror_flag"
5937                          || test ! -s conftest.err'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; } &&
5943          { ac_try='test -s conftest.$ac_objext'
5944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5945   (eval $ac_try) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_hi=$ac_mid
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954 ac_lo=`expr '(' $ac_mid ')' + 1`
5955 fi
5956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5957 done
5958 case $ac_lo in
5959 ?*) ac_cv_sizeof___int64=$ac_lo;;
5960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
5961 See \`config.log' for more details." >&5
5962 echo "$as_me: error: cannot compute sizeof (__int64), 77
5963 See \`config.log' for more details." >&2;}
5964    { (exit 1); exit 1; }; } ;;
5965 esac
5966 else
5967   if test "$cross_compiling" = yes; then
5968   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5969 See \`config.log' for more details." >&5
5970 echo "$as_me: error: cannot run test program while cross compiling
5971 See \`config.log' for more details." >&2;}
5972    { (exit 1); exit 1; }; }
5973 else
5974   cat >conftest.$ac_ext <<_ACEOF
5975 /* confdefs.h.  */
5976 _ACEOF
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h.  */
5980 $ac_includes_default
5981 long longval () { return (long) (sizeof (__int64)); }
5982 unsigned long ulongval () { return (long) (sizeof (__int64)); }
5983 #include <stdio.h>
5984 #include <stdlib.h>
5985 int
5986 main ()
5987 {
5988
5989   FILE *f = fopen ("conftest.val", "w");
5990   if (! f)
5991     exit (1);
5992   if (((long) (sizeof (__int64))) < 0)
5993     {
5994       long i = longval ();
5995       if (i != ((long) (sizeof (__int64))))
5996         exit (1);
5997       fprintf (f, "%ld\n", i);
5998     }
5999   else
6000     {
6001       unsigned long i = ulongval ();
6002       if (i != ((long) (sizeof (__int64))))
6003         exit (1);
6004       fprintf (f, "%lu\n", i);
6005     }
6006   exit (ferror (f) || fclose (f) != 0);
6007
6008   ;
6009   return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014   (eval $ac_link) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6019   (eval $ac_try) 2>&5
6020   ac_status=$?
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); }; }; then
6023   ac_cv_sizeof___int64=`cat conftest.val`
6024 else
6025   echo "$as_me: program exited with status $ac_status" >&5
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ( exit $ac_status )
6030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6031 See \`config.log' for more details." >&5
6032 echo "$as_me: error: cannot compute sizeof (__int64), 77
6033 See \`config.log' for more details." >&2;}
6034    { (exit 1); exit 1; }; }
6035 fi
6036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6037 fi
6038 fi
6039 rm -f conftest.val
6040 else
6041   ac_cv_sizeof___int64=0
6042 fi
6043 fi
6044 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6045 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6046 cat >>confdefs.h <<_ACEOF
6047 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6048 _ACEOF
6049
6050
6051 fi
6052
6053
6054 # ---------------------
6055 # Warnings and checking
6056 # ---------------------
6057
6058 # Check $CC warning features (if it's GCC).
6059 # We want to use -pedantic, but we don't want warnings about
6060 # * 'long long'
6061 # * variadic macros
6062 # So, we only use -pedantic if we can disable those warnings.
6063
6064 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-long-long" >&5
6065 echo $ECHO_N "checking whether ${CC} accepts -Wno-long-long... $ECHO_C" >&6
6066 if test "${ac_cv_prog_cc_w_no_long_long+set}" = set; then
6067   echo $ECHO_N "(cached) $ECHO_C" >&6
6068 else
6069   save_CFLAGS="$CFLAGS"
6070   CFLAGS="-Wno-long-long"
6071   cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h.  */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h.  */
6077
6078 _ACEOF
6079 rm -f conftest.$ac_objext
6080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081   (eval $ac_compile) 2>conftest.er1
6082   ac_status=$?
6083   grep -v '^ *+' conftest.er1 >conftest.err
6084   rm -f conftest.er1
6085   cat conftest.err >&5
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -z "$ac_c_werror_flag"
6089                          || test ! -s conftest.err'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; } &&
6095          { ac_try='test -s conftest.$ac_objext'
6096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097   (eval $ac_try) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); }; }; then
6101   ac_cv_prog_cc_w_no_long_long=yes
6102 else
6103   echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6105
6106 ac_cv_prog_cc_w_no_long_long=no
6107 fi
6108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6109   CFLAGS="$save_CFLAGS"
6110
6111 fi
6112 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_long_long" >&5
6113 echo "${ECHO_T}$ac_cv_prog_cc_w_no_long_long" >&6
6114
6115 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-variadic-macros" >&5
6116 echo $ECHO_N "checking whether ${CC} accepts -Wno-variadic-macros... $ECHO_C" >&6
6117 if test "${ac_cv_prog_cc_w_no_variadic_macros+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   save_CFLAGS="$CFLAGS"
6121   CFLAGS="-Wno-variadic-macros"
6122   cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h.  */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h.  */
6128
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132   (eval $ac_compile) 2>conftest.er1
6133   ac_status=$?
6134   grep -v '^ *+' conftest.er1 >conftest.err
6135   rm -f conftest.er1
6136   cat conftest.err >&5
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); } &&
6139          { ac_try='test -z "$ac_c_werror_flag"
6140                          || test ! -s conftest.err'
6141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6142   (eval $ac_try) 2>&5
6143   ac_status=$?
6144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); }; } &&
6146          { ac_try='test -s conftest.$ac_objext'
6147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6148   (eval $ac_try) 2>&5
6149   ac_status=$?
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); }; }; then
6152   ac_cv_prog_cc_w_no_variadic_macros=yes
6153 else
6154   echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 ac_cv_prog_cc_w_no_variadic_macros=no
6158 fi
6159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6160   CFLAGS="$save_CFLAGS"
6161
6162 fi
6163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_no_variadic_macros" >&5
6164 echo "${ECHO_T}$ac_cv_prog_cc_w_no_variadic_macros" >&6
6165
6166 strict1_warn=
6167 if test $ac_cv_prog_cc_w_no_long_long = yes \
6168    && test $ac_cv_prog_cc_w_no_variadic_macros = yes ; then
6169   strict1_warn="-pedantic -Wno-long-long -Wno-variadic-macros"
6170 fi
6171
6172 # Add -Wold-style-definition if it's accepted
6173 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wold-style-definition" >&5
6174 echo $ECHO_N "checking whether ${CC} accepts -Wold-style-definition... $ECHO_C" >&6
6175 if test "${ac_cv_prog_cc_w_old_style_definition+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   save_CFLAGS="$CFLAGS"
6179   CFLAGS="-Wold-style-definition"
6180   cat >conftest.$ac_ext <<_ACEOF
6181 /* confdefs.h.  */
6182 _ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h.  */
6186
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6190   (eval $ac_compile) 2>conftest.er1
6191   ac_status=$?
6192   grep -v '^ *+' conftest.er1 >conftest.err
6193   rm -f conftest.er1
6194   cat conftest.err >&5
6195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196   (exit $ac_status); } &&
6197          { ac_try='test -z "$ac_c_werror_flag"
6198                          || test ! -s conftest.err'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; } &&
6204          { ac_try='test -s conftest.$ac_objext'
6205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6206   (eval $ac_try) 2>&5
6207   ac_status=$?
6208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209   (exit $ac_status); }; }; then
6210   ac_cv_prog_cc_w_old_style_definition=yes
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215 ac_cv_prog_cc_w_old_style_definition=no
6216 fi
6217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6218   CFLAGS="$save_CFLAGS"
6219
6220 fi
6221 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_old_style_definition" >&5
6222 echo "${ECHO_T}$ac_cv_prog_cc_w_old_style_definition" >&6
6223 if test $ac_cv_prog_cc_w_old_style_definition = yes ; then
6224   strict1_warn="${strict1_warn} -Wold-style-definition"
6225 fi
6226
6227 # Add -Wmissing-format-attribute if it's accepted
6228 echo "$as_me:$LINENO: checking whether ${CC} accepts -Wmissing-format-attribute" >&5
6229 echo $ECHO_N "checking whether ${CC} accepts -Wmissing-format-attribute... $ECHO_C" >&6
6230 if test "${ac_cv_prog_cc_w_missing_format_attribute+set}" = set; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233   save_CFLAGS="$CFLAGS"
6234   CFLAGS="-Wmissing-format-attribute"
6235   cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241
6242 _ACEOF
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6245   (eval $ac_compile) 2>conftest.er1
6246   ac_status=$?
6247   grep -v '^ *+' conftest.er1 >conftest.err
6248   rm -f conftest.er1
6249   cat conftest.err >&5
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); } &&
6252          { ac_try='test -z "$ac_c_werror_flag"
6253                          || test ! -s conftest.err'
6254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6255   (eval $ac_try) 2>&5
6256   ac_status=$?
6257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258   (exit $ac_status); }; } &&
6259          { ac_try='test -s conftest.$ac_objext'
6260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261   (eval $ac_try) 2>&5
6262   ac_status=$?
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); }; }; then
6265   ac_cv_prog_cc_w_missing_format_attribute=yes
6266 else
6267   echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 ac_cv_prog_cc_w_missing_format_attribute=no
6271 fi
6272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6273   CFLAGS="$save_CFLAGS"
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_w_missing_format_attribute" >&5
6277 echo "${ECHO_T}$ac_cv_prog_cc_w_missing_format_attribute" >&6
6278 if test $ac_cv_prog_cc_w_missing_format_attribute = yes ; then
6279   strict1_warn="${strict1_warn} -Wmissing-format-attribute"
6280 fi
6281
6282 # Enable -Werror, period.
6283 # Check whether --enable-werror_always or --disable-werror_always was given.
6284 if test "${enable_werror_always+set}" = set; then
6285   enableval="$enable_werror_always"
6286
6287 else
6288   enable_werror_always=no
6289 fi;
6290 if test x${enable_werror_always} = xyes ; then
6291   strict1_warn="${strict1_warn} -Werror"
6292   WERROR=-Werror
6293 fi
6294
6295
6296
6297 # If the native compiler is GCC, we can enable warnings even in stage1.
6298 # That's useful for people building cross-compilers, or just running a
6299 # quick `make'.
6300 warn_cflags=
6301 if test "x$GCC" = "xyes"; then
6302   warn_cflags='$(GCC_WARN_CFLAGS)'
6303 fi
6304
6305
6306 # Enable -Werror in bootstrap stage2 and later.
6307 is_release=
6308 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6309   is_release=yes
6310 fi
6311 # Check whether --enable-werror or --disable-werror was given.
6312 if test "${enable_werror+set}" = set; then
6313   enableval="$enable_werror"
6314
6315 else
6316   if test x$is_release = x ; then
6317   # Default to "yes" on development branches.
6318   enable_werror=yes
6319 else
6320   # Default to "no" on release branches.
6321   enable_werror=no
6322 fi
6323 fi;
6324 if test x$enable_werror = xyes ; then
6325   WERROR=-Werror
6326 fi
6327
6328
6329 # Enable expensive internal checks
6330 # Check whether --enable-checking or --disable-checking was given.
6331 if test "${enable_checking+set}" = set; then
6332   enableval="$enable_checking"
6333   ac_checking_flags="${enableval}"
6334 else
6335
6336 # Determine the default checks.
6337 if test x$is_release = x ; then
6338   ac_checking_flags=yes
6339 else
6340   ac_checking_flags=release
6341 fi
6342 fi;
6343 ac_assert_checking=1
6344 ac_checking=
6345 ac_fold_checking=
6346 ac_gc_checking=
6347 ac_gc_always_collect=
6348 ac_rtl_checking=
6349 ac_rtlflag_checking=
6350 ac_runtime_checking=1
6351 ac_tree_checking=
6352 ac_valgrind_checking=
6353 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6354 for check in $ac_checking_flags
6355 do
6356         case $check in
6357         # these set all the flags to specific states
6358         yes)            ac_assert_checking=1 ; ac_checking=1 ;
6359                         ac_fold_checking= ; ac_gc_checking=1 ;
6360                         ac_gc_always_collect= ; ac_rtl_checking= ;
6361                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6362                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6363         no|none)        ac_assert_checking= ; ac_checking= ;
6364                         ac_fold_checking= ; ac_gc_checking= ;
6365                         ac_gc_always_collect= ; ac_rtl_checking= ;
6366                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6367                         ac_tree_checking= ; ac_valgrind_checking= ;;
6368         all)            ac_assert_checking=1 ; ac_checking=1 ;
6369                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6370                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6371                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6372                         ac_tree_checking=1 ; ac_valgrind_checking= ;;
6373         release)        ac_assert_checking=1 ; ac_checking= ;
6374                         ac_fold_checking= ; ac_gc_checking= ;
6375                         ac_gc_always_collect= ; ac_rtl_checking= ;
6376                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6377                         ac_tree_checking= ; ac_valgrind_checking= ;;
6378         # these enable particular checks
6379         assert)         ac_assert_checking=1 ;;
6380         fold)           ac_fold_checking=1 ;;
6381         gc)             ac_gc_checking=1 ;;
6382         gcac)           ac_gc_always_collect=1 ;;
6383         misc)           ac_checking=1 ;;
6384         rtl)            ac_rtl_checking=1 ;;
6385         rtlflag)        ac_rtlflag_checking=1 ;;
6386         runtime)        ac_runtime_checking=1 ;;
6387         tree)           ac_tree_checking=1 ;;
6388         valgrind)       ac_valgrind_checking=1 ;;
6389         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6390 echo "$as_me: error: unknown check category $check" >&2;}
6391    { (exit 1); exit 1; }; } ;;
6392         esac
6393 done
6394 IFS="$ac_save_IFS"
6395
6396 nocommon_flag=""
6397 if test x$ac_checking != x ; then
6398
6399 cat >>confdefs.h <<\_ACEOF
6400 #define ENABLE_CHECKING 1
6401 _ACEOF
6402
6403   nocommon_flag=-fno-common
6404 fi
6405
6406 if test x$ac_assert_checking != x ; then
6407
6408 cat >>confdefs.h <<\_ACEOF
6409 #define ENABLE_ASSERT_CHECKING 1
6410 _ACEOF
6411
6412 fi
6413
6414 if test x$ac_runtime_checking != x ; then
6415
6416 cat >>confdefs.h <<\_ACEOF
6417 #define ENABLE_RUNTIME_CHECKING 1
6418 _ACEOF
6419
6420 fi
6421 if test x$ac_tree_checking != x ; then
6422
6423 cat >>confdefs.h <<\_ACEOF
6424 #define ENABLE_TREE_CHECKING 1
6425 _ACEOF
6426
6427   TREEBROWSER=tree-browser.o
6428 fi
6429
6430 if test x$ac_rtl_checking != x ; then
6431
6432 cat >>confdefs.h <<\_ACEOF
6433 #define ENABLE_RTL_CHECKING 1
6434 _ACEOF
6435
6436 fi
6437 if test x$ac_rtlflag_checking != x ; then
6438
6439 cat >>confdefs.h <<\_ACEOF
6440 #define ENABLE_RTL_FLAG_CHECKING 1
6441 _ACEOF
6442
6443 fi
6444 if test x$ac_gc_checking != x ; then
6445
6446 cat >>confdefs.h <<\_ACEOF
6447 #define ENABLE_GC_CHECKING 1
6448 _ACEOF
6449
6450 fi
6451 if test x$ac_gc_always_collect != x ; then
6452
6453 cat >>confdefs.h <<\_ACEOF
6454 #define ENABLE_GC_ALWAYS_COLLECT 1
6455 _ACEOF
6456
6457 fi
6458 if test x$ac_fold_checking != x ; then
6459
6460 cat >>confdefs.h <<\_ACEOF
6461 #define ENABLE_FOLD_CHECKING 1
6462 _ACEOF
6463
6464 fi
6465 valgrind_path_defines=
6466 valgrind_command=
6467
6468 if test "${ac_cv_header_valgrind_h+set}" = set; then
6469   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6470 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6471 if test "${ac_cv_header_valgrind_h+set}" = set; then
6472   echo $ECHO_N "(cached) $ECHO_C" >&6
6473 fi
6474 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6475 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6476 else
6477   # Is the header compilable?
6478 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6479 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486 $ac_includes_default
6487 #include <valgrind.h>
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491   (eval $ac_compile) 2>conftest.er1
6492   ac_status=$?
6493   grep -v '^ *+' conftest.er1 >conftest.err
6494   rm -f conftest.er1
6495   cat conftest.err >&5
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          { ac_try='test -z "$ac_c_werror_flag"
6499                          || test ! -s conftest.err'
6500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501   (eval $ac_try) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; } &&
6505          { ac_try='test -s conftest.$ac_objext'
6506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507   (eval $ac_try) 2>&5
6508   ac_status=$?
6509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510   (exit $ac_status); }; }; then
6511   ac_header_compiler=yes
6512 else
6513   echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_header_compiler=no
6517 fi
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520 echo "${ECHO_T}$ac_header_compiler" >&6
6521
6522 # Is the header present?
6523 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6524 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 #include <valgrind.h>
6532 _ACEOF
6533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6534   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6535   ac_status=$?
6536   grep -v '^ *+' conftest.er1 >conftest.err
6537   rm -f conftest.er1
6538   cat conftest.err >&5
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); } >/dev/null; then
6541   if test -s conftest.err; then
6542     ac_cpp_err=$ac_c_preproc_warn_flag
6543     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6544   else
6545     ac_cpp_err=
6546   fi
6547 else
6548   ac_cpp_err=yes
6549 fi
6550 if test -z "$ac_cpp_err"; then
6551   ac_header_preproc=yes
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556   ac_header_preproc=no
6557 fi
6558 rm -f conftest.err conftest.$ac_ext
6559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6560 echo "${ECHO_T}$ac_header_preproc" >&6
6561
6562 # So?  What about this header?
6563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6564   yes:no: )
6565     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6566 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6567     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6568 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6569     ac_header_preproc=yes
6570     ;;
6571   no:yes:* )
6572     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6573 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6574     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6575 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6576     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6577 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6578     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6579 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6580     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6581 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6582     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6583 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6584     (
6585       cat <<\_ASBOX
6586 ## ------------------------------------------ ##
6587 ## Report this to the AC_PACKAGE_NAME lists.  ##
6588 ## ------------------------------------------ ##
6589 _ASBOX
6590     ) |
6591       sed "s/^/$as_me: WARNING:     /" >&2
6592     ;;
6593 esac
6594 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6595 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6596 if test "${ac_cv_header_valgrind_h+set}" = set; then
6597   echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599   ac_cv_header_valgrind_h=$ac_header_preproc
6600 fi
6601 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6602 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6603
6604 fi
6605 if test $ac_cv_header_valgrind_h = yes; then
6606   have_valgrind_h=yes
6607 else
6608   have_valgrind_h=no
6609 fi
6610
6611
6612
6613 if test x$ac_valgrind_checking != x ; then
6614   # It is certainly possible that there's valgrind but no valgrind.h.
6615   # GCC relies on making annotations so we must have both.
6616   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6617 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6618   cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 #include <valgrind/memcheck.h>
6625 #ifndef VALGRIND_DISCARD
6626 #error VALGRIND_DISCARD not defined
6627 #endif
6628 _ACEOF
6629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } >/dev/null; then
6637   if test -s conftest.err; then
6638     ac_cpp_err=$ac_c_preproc_warn_flag
6639     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6640   else
6641     ac_cpp_err=
6642   fi
6643 else
6644   ac_cpp_err=yes
6645 fi
6646 if test -z "$ac_cpp_err"; then
6647   gcc_cv_header_valgrind_memcheck_h=yes
6648 else
6649   echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6651
6652   gcc_cv_header_valgrind_memcheck_h=no
6653 fi
6654 rm -f conftest.err conftest.$ac_ext
6655   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6656 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6657   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6658 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6659   cat >conftest.$ac_ext <<_ACEOF
6660 /* confdefs.h.  */
6661 _ACEOF
6662 cat confdefs.h >>conftest.$ac_ext
6663 cat >>conftest.$ac_ext <<_ACEOF
6664 /* end confdefs.h.  */
6665 #include <memcheck.h>
6666 #ifndef VALGRIND_DISCARD
6667 #error VALGRIND_DISCARD not defined
6668 #endif
6669 _ACEOF
6670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6671   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } >/dev/null; then
6678   if test -s conftest.err; then
6679     ac_cpp_err=$ac_c_preproc_warn_flag
6680     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6681   else
6682     ac_cpp_err=
6683   fi
6684 else
6685   ac_cpp_err=yes
6686 fi
6687 if test -z "$ac_cpp_err"; then
6688   gcc_cv_header_memcheck_h=yes
6689 else
6690   echo "$as_me: failed program was:" >&5
6691 sed 's/^/| /' conftest.$ac_ext >&5
6692
6693   gcc_cv_header_memcheck_h=no
6694 fi
6695 rm -f conftest.err conftest.$ac_ext
6696   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6697 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6698
6699 # Prepare PATH_SEPARATOR.
6700 # The user is always right.
6701 if test "${PATH_SEPARATOR+set}" != set; then
6702   echo "#! /bin/sh" >conf$$.sh
6703   echo  "exit 0"   >>conf$$.sh
6704   chmod +x conf$$.sh
6705   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6706     PATH_SEPARATOR=';'
6707   else
6708     PATH_SEPARATOR=:
6709   fi
6710   rm -f conf$$.sh
6711 fi
6712
6713 # Find out how to test for executable files. Don't use a zero-byte file,
6714 # as systems may use methods other than mode bits to determine executability.
6715 cat >conf$$.file <<_ASEOF
6716 #! /bin/sh
6717 exit 0
6718 _ASEOF
6719 chmod +x conf$$.file
6720 if test -x conf$$.file >/dev/null 2>&1; then
6721   ac_executable_p="test -x"
6722 else
6723   ac_executable_p="test -f"
6724 fi
6725 rm -f conf$$.file
6726
6727 # Extract the first word of "valgrind", so it can be a program name with args.
6728 set dummy valgrind; ac_word=$2
6729 echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731 if test "${ac_cv_path_valgrind_path+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case "$valgrind_path" in
6735   [\\/]* | ?:[\\/]*)
6736     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6737     ;;
6738   *)
6739     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6740     for ac_dir in $PATH; do
6741       IFS="$ac_save_IFS"
6742       test -z "$ac_dir" && ac_dir=.
6743       for ac_exec_ext in '' $ac_executable_extensions; do
6744         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6745           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6746             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6747             break 2
6748           fi
6749         fi
6750       done
6751     done
6752     IFS="$ac_save_IFS"
6753     ;;
6754 esac
6755 fi
6756 valgrind_path="$ac_cv_path_valgrind_path"
6757 if test -n "$valgrind_path"; then
6758   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6759 echo "${ECHO_T}$valgrind_path" >&6
6760 else
6761   echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6763 fi
6764
6765   if test "x$valgrind_path" = "x" \
6766     || (test $have_valgrind_h = no \
6767         && test $gcc_cv_header_memcheck_h = no \
6768         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6769         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6770 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6771    { (exit 1); exit 1; }; }
6772   fi
6773   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6774   valgrind_command="$valgrind_path -q"
6775
6776 cat >>confdefs.h <<\_ACEOF
6777 #define ENABLE_VALGRIND_CHECKING 1
6778 _ACEOF
6779
6780   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6781
6782 cat >>confdefs.h <<\_ACEOF
6783 #define HAVE_VALGRIND_MEMCHECK_H 1
6784 _ACEOF
6785
6786   fi
6787   if test $gcc_cv_header_memcheck_h = yes; then
6788
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_MEMCHECK_H 1
6791 _ACEOF
6792
6793   fi
6794 fi
6795
6796
6797
6798 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6799 if test "${enable_mapped_location+set}" = set; then
6800   enableval="$enable_mapped_location"
6801
6802 else
6803   enable_mapped_location=no
6804 fi;
6805
6806 if test "$enable_mapped_location" = yes ; then
6807
6808 cat >>confdefs.h <<\_ACEOF
6809 #define USE_MAPPED_LOCATION 1
6810 _ACEOF
6811
6812 fi
6813
6814 # Enable code coverage collection
6815 # Check whether --enable-coverage or --disable-coverage was given.
6816 if test "${enable_coverage+set}" = set; then
6817   enableval="$enable_coverage"
6818   case "${enableval}" in
6819   yes|noopt)
6820     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6821     ;;
6822   opt)
6823     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6824     ;;
6825   no)
6826     # a.k.a. --disable-coverage
6827     coverage_flags=""
6828     ;;
6829   *)
6830     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6831 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6832    { (exit 1); exit 1; }; }
6833     ;;
6834 esac
6835 else
6836   coverage_flags=""
6837 fi;
6838
6839
6840 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6841 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6842   enableval="$enable_gather_detailed_mem_stats"
6843
6844 else
6845   enable_gather_detailed_mem_stats=no
6846 fi;
6847 if test x$enable_gather_detailed_mem_stats = xyes ; then
6848
6849 cat >>confdefs.h <<\_ACEOF
6850 #define GATHER_STATISTICS 1
6851 _ACEOF
6852
6853 fi
6854
6855 # -------------------------------
6856 # Miscenalleous configure options
6857 # -------------------------------
6858
6859 # With stabs
6860
6861 # Check whether --with-stabs or --without-stabs was given.
6862 if test "${with_stabs+set}" = set; then
6863   withval="$with_stabs"
6864   stabs="$with_stabs"
6865 else
6866   stabs=no
6867 fi;
6868
6869 # Determine whether or not multilibs are enabled.
6870 # Check whether --enable-multilib or --disable-multilib was given.
6871 if test "${enable_multilib+set}" = set; then
6872   enableval="$enable_multilib"
6873
6874 else
6875   enable_multilib=yes
6876 fi;
6877
6878
6879 # Enable __cxa_atexit for C++.
6880 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6881 if test "${enable___cxa_atexit+set}" = set; then
6882   enableval="$enable___cxa_atexit"
6883
6884 fi;
6885
6886 # Enable C extension for decimal float if target supports it.
6887 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6888 if test "${enable_decimal_float+set}" = set; then
6889   enableval="$enable_decimal_float"
6890
6891   if test x$enablevar = xyes ; then
6892     case $target in
6893     powerpc*-*-linux* | i?86*-*-linux*)
6894       ;;
6895     *)
6896       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6897 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6898       enable_decimal_float=no
6899       ;;
6900     esac
6901   fi
6902
6903 else
6904
6905   case $target in
6906   powerpc*-*-linux*)
6907     enable_decimal_float=yes
6908     ;;
6909   *)
6910     enable_decimal_float=no
6911     ;;
6912   esac
6913
6914 fi;
6915
6916
6917
6918 dfp=`if test $enable_decimal_float = yes; then echo 1; else echo 0; fi`
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define ENABLE_DECIMAL_FLOAT $dfp
6922 _ACEOF
6923
6924
6925 # Enable threads
6926 # Pass with no value to take the default
6927 # Pass with a value to specify a thread package
6928 # Check whether --enable-threads or --disable-threads was given.
6929 if test "${enable_threads+set}" = set; then
6930   enableval="$enable_threads"
6931
6932 else
6933   enable_threads=''
6934 fi;
6935
6936 # Check whether --enable-tls or --disable-tls was given.
6937 if test "${enable_tls+set}" = set; then
6938   enableval="$enable_tls"
6939
6940   case $enable_tls in
6941     yes | no) ;;
6942     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
6943 Valid choices are 'yes' and 'no'." >&5
6944 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
6945 Valid choices are 'yes' and 'no'." >&2;}
6946    { (exit 1); exit 1; }; } ;;
6947   esac
6948
6949 else
6950   enable_tls=''
6951 fi;
6952
6953 # Check whether --enable-objc-gc or --disable-objc-gc was given.
6954 if test "${enable_objc_gc+set}" = set; then
6955   enableval="$enable_objc_gc"
6956   if test x$enable_objc_gc = xno; then
6957         objc_boehm_gc=''
6958 else
6959         objc_boehm_gc=1
6960 fi
6961 else
6962   objc_boehm_gc=''
6963 fi;
6964
6965
6966 # Check whether --with-dwarf2 or --without-dwarf2 was given.
6967 if test "${with_dwarf2+set}" = set; then
6968   withval="$with_dwarf2"
6969   dwarf2="$with_dwarf2"
6970 else
6971   dwarf2=no
6972 fi;
6973
6974 # Check whether --enable-shared or --disable-shared was given.
6975 if test "${enable_shared+set}" = set; then
6976   enableval="$enable_shared"
6977
6978   case $enable_shared in
6979   yes | no) ;;
6980   *)
6981     enable_shared=no
6982     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6983     for pkg in $enableval; do
6984       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6985         enable_shared=yes
6986       fi
6987     done
6988     IFS="$ac_save_ifs"
6989     ;;
6990   esac
6991
6992 else
6993   enable_shared=yes
6994 fi;
6995
6996
6997
6998 # Check whether --with-build-sysroot or --without-build-sysroot was given.
6999 if test "${with_build_sysroot+set}" = set; then
7000   withval="$with_build_sysroot"
7001
7002 fi;
7003
7004
7005 # Check whether --with-sysroot or --without-sysroot was given.
7006 if test "${with_sysroot+set}" = set; then
7007   withval="$with_sysroot"
7008
7009  case ${with_sysroot} in
7010  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7011  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7012  esac
7013
7014  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7015  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)'
7016
7017  if test "x$exec_prefix" = xNONE; then
7018   if test "x$prefix" = xNONE; then
7019    test_prefix=/usr/local
7020   else
7021    test_prefix=$prefix
7022   fi
7023  else
7024   test_prefix=$exec_prefix
7025  fi
7026  case ${TARGET_SYSTEM_ROOT} in
7027  "${test_prefix}"|"${test_prefix}/"*|\
7028  '${exec_prefix}'|'${exec_prefix}/'*)
7029    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7030    TARGET_SYSTEM_ROOT_DEFINE="$t"
7031    ;;
7032  esac
7033
7034 else
7035
7036  TARGET_SYSTEM_ROOT=
7037  TARGET_SYSTEM_ROOT_DEFINE=
7038  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7039
7040 fi;
7041
7042
7043
7044
7045 # Build with intermodule optimisations
7046 # Check whether --enable-intermodule or --disable-intermodule was given.
7047 if test "${enable_intermodule+set}" = set; then
7048   enableval="$enable_intermodule"
7049   case ${enable_intermodule} in
7050   yes) onestep="-onestep";;
7051   *) onestep="";;
7052 esac
7053 else
7054   onestep=""
7055 fi;
7056
7057
7058 # Sanity check enable_languages in case someone does not run the toplevel
7059 # configure # script.
7060 # Check whether --enable-languages or --disable-languages was given.
7061 if test "${enable_languages+set}" = set; then
7062   enableval="$enable_languages"
7063   case ,${enable_languages}, in
7064        ,,|,yes,)
7065                 # go safe -- we cannot be much sure without the toplevel
7066                 # configure's
7067                 # analysis of which target libs are present and usable
7068                 enable_languages=c
7069                 ;;
7070          *,all,*)
7071                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7072 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7073    { (exit 1); exit 1; }; }
7074                 ;;
7075         *,c,*)
7076                 ;;
7077         *)
7078                 enable_languages=c,${enable_languages}
7079                 ;;
7080 esac
7081 else
7082   enable_languages=c
7083 fi;
7084
7085 subdirs=
7086 for lang in ${srcdir}/*/config-lang.in
7087 do
7088         case $lang in
7089         # The odd quoting in the next line works around
7090         # an apparent bug in bash 1.12 on linux.
7091         ${srcdir}/[*]/config-lang.in) ;;
7092         *)
7093           lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
7094           if test "x$lang_alias" = x
7095           then
7096                 echo "$lang doesn't set \$language." 1>&2
7097                 exit 1
7098           fi
7099           case ",$enable_languages," in
7100           *,$lang_alias,*)
7101             subdirs="$subdirs `echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`" ;;
7102           esac
7103           ;;
7104         esac
7105 done
7106
7107
7108 # -------------------------
7109 # Checks for other programs
7110 # -------------------------
7111
7112 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7113 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7114 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7115 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   cat >conftest.make <<\_ACEOF
7119 all:
7120         @echo 'ac_maketemp="$(MAKE)"'
7121 _ACEOF
7122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7123 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7124 if test -n "$ac_maketemp"; then
7125   eval ac_cv_prog_make_${ac_make}_set=yes
7126 else
7127   eval ac_cv_prog_make_${ac_make}_set=no
7128 fi
7129 rm -f conftest.make
7130 fi
7131 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7132   echo "$as_me:$LINENO: result: yes" >&5
7133 echo "${ECHO_T}yes" >&6
7134   SET_MAKE=
7135 else
7136   echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6
7138   SET_MAKE="MAKE=${MAKE-make}"
7139 fi
7140
7141
7142 # Find some useful tools
7143 for ac_prog in gawk mawk nawk awk
7144 do
7145   # Extract the first word of "$ac_prog", so it can be a program name with args.
7146 set dummy $ac_prog; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_AWK+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   if test -n "$AWK"; then
7153   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_AWK="$ac_prog"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168
7169 fi
7170 fi
7171 AWK=$ac_cv_prog_AWK
7172 if test -n "$AWK"; then
7173   echo "$as_me:$LINENO: result: $AWK" >&5
7174 echo "${ECHO_T}$AWK" >&6
7175 else
7176   echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6
7178 fi
7179
7180   test -n "$AWK" && break
7181 done
7182
7183 # We need awk to create options.c and options.h.
7184 # Bail out if it's missing.
7185 case ${AWK} in
7186   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7187 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7188    { (exit 1); exit 1; }; } ;;
7189 esac
7190
7191 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7192 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7193 if test "${gcc_cv_prog_LN_S+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   rm -f conftestdata_t
7197 echo >conftestdata_f
7198 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7199 then
7200   gcc_cv_prog_LN_S="ln -s"
7201 else
7202   if ln conftestdata_f conftestdata_t 2>/dev/null
7203   then
7204     gcc_cv_prog_LN_S=ln
7205   else
7206     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7207     then
7208       gcc_cv_prog_LN_S="cp -p"
7209     else
7210       gcc_cv_prog_LN_S=cp
7211     fi
7212   fi
7213 fi
7214 rm -f conftestdata_f conftestdata_t
7215
7216 fi
7217 LN_S="$gcc_cv_prog_LN_S"
7218 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7219   echo "$as_me:$LINENO: result: yes" >&5
7220 echo "${ECHO_T}yes" >&6
7221 else
7222   if test "$gcc_cv_prog_LN_S" = "ln"; then
7223     echo "$as_me:$LINENO: result: no, using ln" >&5
7224 echo "${ECHO_T}no, using ln" >&6
7225   else
7226     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7227 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7228   fi
7229 fi
7230
7231 echo "$as_me:$LINENO: checking whether ln works" >&5
7232 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7233 if test "${acx_cv_prog_LN+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   rm -f conftestdata_t
7237 echo >conftestdata_f
7238 if ln conftestdata_f conftestdata_t 2>/dev/null
7239 then
7240   acx_cv_prog_LN=ln
7241 else
7242   acx_cv_prog_LN=no
7243 fi
7244 rm -f conftestdata_f conftestdata_t
7245
7246 fi
7247 if test $acx_cv_prog_LN = no; then
7248   LN="$LN_S"
7249   echo "$as_me:$LINENO: result: no, using $LN" >&5
7250 echo "${ECHO_T}no, using $LN" >&6
7251 else
7252   LN="$acx_cv_prog_LN"
7253   echo "$as_me:$LINENO: result: yes" >&5
7254 echo "${ECHO_T}yes" >&6
7255 fi
7256
7257 if test -n "$ac_tool_prefix"; then
7258   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7260 echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7262 if test "${ac_cv_prog_RANLIB+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   if test -n "$RANLIB"; then
7266   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7275     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281
7282 fi
7283 fi
7284 RANLIB=$ac_cv_prog_RANLIB
7285 if test -n "$RANLIB"; then
7286   echo "$as_me:$LINENO: result: $RANLIB" >&5
7287 echo "${ECHO_T}$RANLIB" >&6
7288 else
7289   echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6
7291 fi
7292
7293 fi
7294 if test -z "$ac_cv_prog_RANLIB"; then
7295   ac_ct_RANLIB=$RANLIB
7296   # Extract the first word of "ranlib", so it can be a program name with args.
7297 set dummy ranlib; ac_word=$2
7298 echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7300 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   if test -n "$ac_ct_RANLIB"; then
7304   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313     ac_cv_prog_ac_ct_RANLIB="ranlib"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319
7320   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7321 fi
7322 fi
7323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7324 if test -n "$ac_ct_RANLIB"; then
7325   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7326 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7327 else
7328   echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6
7330 fi
7331
7332   RANLIB=$ac_ct_RANLIB
7333 else
7334   RANLIB="$ac_cv_prog_RANLIB"
7335 fi
7336
7337 case "${host}" in
7338 *-*-darwin*)
7339   # By default, the Darwin ranlib will not treat common symbols as
7340   # definitions when  building the archive table of contents.  Other
7341   # ranlibs do that; pass an option to the Darwin ranlib that makes
7342   # it behave similarly.
7343   ranlib_flags="-c"
7344   ;;
7345 *)
7346   ranlib_flags=""
7347 esac
7348
7349
7350 # Find a good install program.  We prefer a C program (faster),
7351 # so one script is as good as another.  But avoid the broken or
7352 # incompatible versions:
7353 # SysV /etc/install, /usr/sbin/install
7354 # SunOS /usr/etc/install
7355 # IRIX /sbin/install
7356 # AIX /bin/install
7357 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7358 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7359 # ./install, which can be erroneously created by make from ./install.sh.
7360 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7361 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7362 if test -z "$INSTALL"; then
7363 if test "${ac_cv_path_install+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7367   for ac_dir in $PATH; do
7368     # Account for people who put trailing slashes in PATH elements.
7369     case "$ac_dir/" in
7370     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7371     *)
7372       # OSF1 and SCO ODT 3.0 have their own names for install.
7373       for ac_prog in ginstall scoinst install; do
7374         if test -f $ac_dir/$ac_prog; then
7375           if test $ac_prog = install &&
7376             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7377             # AIX install.  It has an incompatible calling convention.
7378             # OSF/1 installbsd also uses dspmsg, but is usable.
7379             :
7380           else
7381             ac_cv_path_install="$ac_dir/$ac_prog -c"
7382             break 2
7383           fi
7384         fi
7385       done
7386       ;;
7387     esac
7388   done
7389   IFS="$ac_save_IFS"
7390
7391 fi
7392   if test "${ac_cv_path_install+set}" = set; then
7393     INSTALL="$ac_cv_path_install"
7394   else
7395     # As a last resort, use the slow shell script.  We don't cache a
7396     # path for INSTALL within a source directory, because that will
7397     # break other packages using the cache if that directory is
7398     # removed, or if the path is relative.
7399     INSTALL="$ac_install_sh"
7400   fi
7401 fi
7402 echo "$as_me:$LINENO: result: $INSTALL" >&5
7403 echo "${ECHO_T}$INSTALL" >&6
7404
7405 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7406 # It thinks the first close brace ends the variable substitution.
7407 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7408
7409 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7410
7411
7412 # See if cmp has --ignore-initial.
7413 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7414 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7415 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7416   echo $ECHO_N "(cached) $ECHO_C" >&6
7417 else
7418    echo abfoo >t1
7419   echo cdfoo >t2
7420   gcc_cv_prog_cmp_skip=slowcompare
7421   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7422     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7423       :
7424     else
7425       gcc_cv_prog_cmp_skip=gnucompare
7426     fi
7427   fi
7428   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7429     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7430       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7431         :
7432       else
7433         gcc_cv_prog_cmp_skip=fastcompare
7434       fi
7435     fi
7436   fi
7437   rm t1 t2
7438
7439 fi
7440 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7441 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7442 make_compare_target=$gcc_cv_prog_cmp_skip
7443
7444
7445
7446 # See if we have the mktemp command.
7447 # Extract the first word of "mktemp", so it can be a program name with args.
7448 set dummy mktemp; ac_word=$2
7449 echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   if test -n "$have_mktemp_command"; then
7455   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464     ac_cv_prog_have_mktemp_command="yes"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470
7471   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7472 fi
7473 fi
7474 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7475 if test -n "$have_mktemp_command"; then
7476   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7477 echo "${ECHO_T}$have_mktemp_command" >&6
7478 else
7479   echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7481 fi
7482
7483
7484 MISSING="${CONFIG_SHELL-/bin/sh} $srcdir/../missing"
7485
7486 # See if makeinfo has been installed and is modern enough
7487 # that we can use it.
7488
7489 ac_executable_extensions="$build_exeext"
7490
7491 # Extract the first word of "makeinfo", so it can be a program name with args.
7492 set dummy makeinfo; ac_word=$2
7493 echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7495 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7496   echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498   if test -n "$MAKEINFO"; then
7499   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504   IFS=$as_save_IFS
7505   test -z "$as_dir" && as_dir=.
7506   for ac_exec_ext in '' $ac_executable_extensions; do
7507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7508     ac_cv_prog_MAKEINFO="makeinfo"
7509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510     break 2
7511   fi
7512 done
7513 done
7514
7515 fi
7516 fi
7517 MAKEINFO=$ac_cv_prog_MAKEINFO
7518 if test -n "$MAKEINFO"; then
7519   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7520 echo "${ECHO_T}$MAKEINFO" >&6
7521 else
7522   echo "$as_me:$LINENO: result: no" >&5
7523 echo "${ECHO_T}no" >&6
7524 fi
7525
7526 if test -n "$MAKEINFO"; then
7527   # Found it, now check the version.
7528   echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7529 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7530 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7531   echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533     ac_prog_version=`$MAKEINFO --version 2>&1 |
7534                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7535   echo "configure:7535: version of makeinfo is $ac_prog_version" >&5
7536   case $ac_prog_version in
7537     '')     gcc_cv_prog_makeinfo_modern=no;;
7538     4.[4-9]*)
7539             gcc_cv_prog_makeinfo_modern=yes;;
7540     *)      gcc_cv_prog_makeinfo_modern=no;;
7541   esac
7542
7543 fi
7544 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7545 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7546 else
7547   gcc_cv_prog_makeinfo_modern=no
7548 fi
7549
7550 if test $gcc_cv_prog_makeinfo_modern = no; then
7551   MAKEINFO="$MISSING makeinfo"
7552   { echo "$as_me:$LINENO: WARNING:
7553 *** Makeinfo is missing or too old.
7554 *** Info documentation will not be built." >&5
7555 echo "$as_me: WARNING:
7556 *** Makeinfo is missing or too old.
7557 *** Info documentation will not be built." >&2;}
7558   BUILD_INFO=
7559 else
7560   BUILD_INFO=info
7561 fi
7562
7563
7564 # Is pod2man recent enough to regenerate manpages?
7565 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7566 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7567 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7568   echo "$as_me:$LINENO: result: yes" >&5
7569 echo "${ECHO_T}yes" >&6
7570   GENERATED_MANPAGES=generated-manpages
7571 else
7572   echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574   GENERATED_MANPAGES=
7575 fi
7576
7577
7578 # How about lex?
7579 for ac_prog in flex
7580 do
7581   # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585 if test "${ac_cv_prog_FLEX+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588   if test -n "$FLEX"; then
7589   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7590 else
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592 for as_dir in $PATH
7593 do
7594   IFS=$as_save_IFS
7595   test -z "$as_dir" && as_dir=.
7596   for ac_exec_ext in '' $ac_executable_extensions; do
7597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598     ac_cv_prog_FLEX="$ac_prog"
7599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600     break 2
7601   fi
7602 done
7603 done
7604
7605 fi
7606 fi
7607 FLEX=$ac_cv_prog_FLEX
7608 if test -n "$FLEX"; then
7609   echo "$as_me:$LINENO: result: $FLEX" >&5
7610 echo "${ECHO_T}$FLEX" >&6
7611 else
7612   echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7614 fi
7615
7616   test -n "$FLEX" && break
7617 done
7618 test -n "$FLEX" || FLEX="$MISSING flex"
7619
7620
7621 # Bison?
7622 for ac_prog in bison
7623 do
7624   # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 echo "$as_me:$LINENO: checking for $ac_word" >&5
7627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7628 if test "${ac_cv_prog_BISON+set}" = set; then
7629   echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631   if test -n "$BISON"; then
7632   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7636 do
7637   IFS=$as_save_IFS
7638   test -z "$as_dir" && as_dir=.
7639   for ac_exec_ext in '' $ac_executable_extensions; do
7640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641     ac_cv_prog_BISON="$ac_prog"
7642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643     break 2
7644   fi
7645 done
7646 done
7647
7648 fi
7649 fi
7650 BISON=$ac_cv_prog_BISON
7651 if test -n "$BISON"; then
7652   echo "$as_me:$LINENO: result: $BISON" >&5
7653 echo "${ECHO_T}$BISON" >&6
7654 else
7655   echo "$as_me:$LINENO: result: no" >&5
7656 echo "${ECHO_T}no" >&6
7657 fi
7658
7659   test -n "$BISON" && break
7660 done
7661 test -n "$BISON" || BISON="$MISSING bison"
7662
7663
7664 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7665 # check for build == host before using them.
7666
7667 # NM
7668 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7669   && test -d ../binutils ; then
7670   NM='$(objdir)/../binutils/nm-new'
7671 else
7672   # Extract the first word of "nm", so it can be a program name with args.
7673 set dummy nm; ac_word=$2
7674 echo "$as_me:$LINENO: checking for $ac_word" >&5
7675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676 if test "${ac_cv_prog_NM+set}" = set; then
7677   echo $ECHO_N "(cached) $ECHO_C" >&6
7678 else
7679   if test -n "$NM"; then
7680   ac_cv_prog_NM="$NM" # Let the user override the test.
7681 else
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 for as_dir in $PATH
7684 do
7685   IFS=$as_save_IFS
7686   test -z "$as_dir" && as_dir=.
7687   for ac_exec_ext in '' $ac_executable_extensions; do
7688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689     ac_cv_prog_NM="nm"
7690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691     break 2
7692   fi
7693 done
7694 done
7695
7696   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7697 fi
7698 fi
7699 NM=$ac_cv_prog_NM
7700 if test -n "$NM"; then
7701   echo "$as_me:$LINENO: result: $NM" >&5
7702 echo "${ECHO_T}$NM" >&6
7703 else
7704   echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6
7706 fi
7707
7708 fi
7709
7710 # AR
7711 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7712   && test -d ../binutils ; then
7713   AR='$(objdir)/../binutils/ar'
7714 else
7715   # Extract the first word of "ar", so it can be a program name with args.
7716 set dummy ar; ac_word=$2
7717 echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7719 if test "${ac_cv_prog_AR+set}" = set; then
7720   echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722   if test -n "$AR"; then
7723   ac_cv_prog_AR="$AR" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7727 do
7728   IFS=$as_save_IFS
7729   test -z "$as_dir" && as_dir=.
7730   for ac_exec_ext in '' $ac_executable_extensions; do
7731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732     ac_cv_prog_AR="ar"
7733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734     break 2
7735   fi
7736 done
7737 done
7738
7739   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7740 fi
7741 fi
7742 AR=$ac_cv_prog_AR
7743 if test -n "$AR"; then
7744   echo "$as_me:$LINENO: result: $AR" >&5
7745 echo "${ECHO_T}$AR" >&6
7746 else
7747   echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6
7749 fi
7750
7751 fi
7752
7753
7754 # --------------------
7755 # Checks for C headers
7756 # --------------------
7757
7758 echo "$as_me:$LINENO: checking for GNU C library" >&5
7759 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7760 if test "${gcc_cv_glibc+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   cat >conftest.$ac_ext <<_ACEOF
7764 /* confdefs.h.  */
7765 _ACEOF
7766 cat confdefs.h >>conftest.$ac_ext
7767 cat >>conftest.$ac_ext <<_ACEOF
7768 /* end confdefs.h.  */
7769 #include <features.h>
7770 int
7771 main ()
7772 {
7773
7774 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7775 #error Not a GNU C library system
7776 #endif
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7783   (eval $ac_compile) 2>conftest.er1
7784   ac_status=$?
7785   grep -v '^ *+' conftest.er1 >conftest.err
7786   rm -f conftest.er1
7787   cat conftest.err >&5
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); } &&
7790          { ac_try='test -z "$ac_c_werror_flag"
7791                          || test ! -s conftest.err'
7792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7793   (eval $ac_try) 2>&5
7794   ac_status=$?
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); }; } &&
7797          { ac_try='test -s conftest.$ac_objext'
7798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7799   (eval $ac_try) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); }; }; then
7803   gcc_cv_glibc=yes
7804 else
7805   echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7807
7808 gcc_cv_glibc=no
7809 fi
7810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7811 fi
7812
7813 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7814 echo "${ECHO_T}$gcc_cv_glibc" >&6
7815 if test $gcc_cv_glibc = yes; then
7816
7817 cat >>confdefs.h <<\_ACEOF
7818 #define _GNU_SOURCE 1
7819 _ACEOF
7820
7821 fi
7822
7823 # Need to reject headers which give warnings, so that the -Werror bootstrap
7824 # works later. *sigh*  This needs to come before all header checks.
7825
7826 ac_c_preproc_warn_flag=yes
7827
7828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7830 if test "${ac_cv_header_stdc+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839 #include <stdlib.h>
7840 #include <stdarg.h>
7841 #include <string.h>
7842 #include <float.h>
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7854   (eval $ac_compile) 2>conftest.er1
7855   ac_status=$?
7856   grep -v '^ *+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } &&
7861          { ac_try='test -z "$ac_c_werror_flag"
7862                          || test ! -s conftest.err'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; } &&
7868          { ac_try='test -s conftest.$ac_objext'
7869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870   (eval $ac_try) 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; }; then
7874   ac_cv_header_stdc=yes
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ac_cv_header_stdc=no
7880 fi
7881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7882
7883 if test $ac_cv_header_stdc = yes; then
7884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <string.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "memchr" >/dev/null 2>&1; then
7896   :
7897 else
7898   ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7906   cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 #include <stdlib.h>
7913
7914 _ACEOF
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916   $EGREP "free" >/dev/null 2>&1; then
7917   :
7918 else
7919   ac_cv_header_stdc=no
7920 fi
7921 rm -f conftest*
7922
7923 fi
7924
7925 if test $ac_cv_header_stdc = yes; then
7926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7927   if test "$cross_compiling" = yes; then
7928   :
7929 else
7930   cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936 #include <ctype.h>
7937 #if ((' ' & 0x0FF) == 0x020)
7938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7940 #else
7941 # define ISLOWER(c) \
7942                    (('a' <= (c) && (c) <= 'i') \
7943                      || ('j' <= (c) && (c) <= 'r') \
7944                      || ('s' <= (c) && (c) <= 'z'))
7945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7946 #endif
7947
7948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7949 int
7950 main ()
7951 {
7952   int i;
7953   for (i = 0; i < 256; i++)
7954     if (XOR (islower (i), ISLOWER (i))
7955         || toupper (i) != TOUPPER (i))
7956       exit(2);
7957   exit (0);
7958 }
7959 _ACEOF
7960 rm -f conftest$ac_exeext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7962   (eval $ac_link) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967   (eval $ac_try) 2>&5
7968   ac_status=$?
7969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); }; }; then
7971   :
7972 else
7973   echo "$as_me: program exited with status $ac_status" >&5
7974 echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 ( exit $ac_status )
7978 ac_cv_header_stdc=no
7979 fi
7980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7981 fi
7982 fi
7983 fi
7984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7986 if test $ac_cv_header_stdc = yes; then
7987
7988 cat >>confdefs.h <<\_ACEOF
7989 #define STDC_HEADERS 1
7990 _ACEOF
7991
7992 fi
7993
7994 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7995 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7996 if test "${ac_cv_header_time+set}" = set; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   cat >conftest.$ac_ext <<_ACEOF
8000 /* confdefs.h.  */
8001 _ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h.  */
8005 #include <sys/types.h>
8006 #include <sys/time.h>
8007 #include <time.h>
8008
8009 int
8010 main ()
8011 {
8012 if ((struct tm *) 0)
8013 return 0;
8014   ;
8015   return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext
8019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8020   (eval $ac_compile) 2>conftest.er1
8021   ac_status=$?
8022   grep -v '^ *+' conftest.er1 >conftest.err
8023   rm -f conftest.er1
8024   cat conftest.err >&5
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); } &&
8027          { ac_try='test -z "$ac_c_werror_flag"
8028                          || test ! -s conftest.err'
8029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030   (eval $ac_try) 2>&5
8031   ac_status=$?
8032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033   (exit $ac_status); }; } &&
8034          { ac_try='test -s conftest.$ac_objext'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; }; then
8040   ac_cv_header_time=yes
8041 else
8042   echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8044
8045 ac_cv_header_time=no
8046 fi
8047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8048 fi
8049 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8050 echo "${ECHO_T}$ac_cv_header_time" >&6
8051 if test $ac_cv_header_time = yes; then
8052
8053 cat >>confdefs.h <<\_ACEOF
8054 #define TIME_WITH_SYS_TIME 1
8055 _ACEOF
8056
8057 fi
8058
8059 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8060 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8061 if test "${gcc_cv_header_string+set}" = set; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 else
8064   cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070 #include <string.h>
8071 #include <strings.h>
8072 int
8073 main ()
8074 {
8075
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082   (eval $ac_compile) 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } &&
8089          { ac_try='test -z "$ac_c_werror_flag"
8090                          || test ! -s conftest.err'
8091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092   (eval $ac_try) 2>&5
8093   ac_status=$?
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); }; } &&
8096          { ac_try='test -s conftest.$ac_objext'
8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098   (eval $ac_try) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; }; then
8102   gcc_cv_header_string=yes
8103 else
8104   echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8106
8107 gcc_cv_header_string=no
8108 fi
8109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8112 echo "${ECHO_T}$gcc_cv_header_string" >&6
8113 if test $gcc_cv_header_string = yes; then
8114
8115 cat >>confdefs.h <<\_ACEOF
8116 #define STRING_WITH_STRINGS 1
8117 _ACEOF
8118
8119 fi
8120
8121 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8122 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8123 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126   cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h.  */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h.  */
8132 #include <sys/types.h>
8133 #include <sys/wait.h>
8134 #ifndef WEXITSTATUS
8135 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8136 #endif
8137 #ifndef WIFEXITED
8138 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8139 #endif
8140
8141 int
8142 main ()
8143 {
8144   int s;
8145   wait (&s);
8146   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8147   ;
8148   return 0;
8149 }
8150 _ACEOF
8151 rm -f conftest.$ac_objext
8152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153   (eval $ac_compile) 2>conftest.er1
8154   ac_status=$?
8155   grep -v '^ *+' conftest.er1 >conftest.err
8156   rm -f conftest.er1
8157   cat conftest.err >&5
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -z "$ac_c_werror_flag"
8161                          || test ! -s conftest.err'
8162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163   (eval $ac_try) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); }; } &&
8167          { ac_try='test -s conftest.$ac_objext'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   ac_cv_header_sys_wait_h=yes
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ac_cv_header_sys_wait_h=no
8179 fi
8180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8183 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8184 if test $ac_cv_header_sys_wait_h = yes; then
8185
8186 cat >>confdefs.h <<\_ACEOF
8187 #define HAVE_SYS_WAIT_H 1
8188 _ACEOF
8189
8190 fi
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8215                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8216                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8217                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8218 do
8219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8220 echo "$as_me:$LINENO: checking for $ac_header" >&5
8221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8223   echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225   cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h.  */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h.  */
8231 #include <$ac_header>
8232 _ACEOF
8233 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8234   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8235   ac_status=$?
8236   grep -v '^ *+' conftest.er1 >conftest.err
8237   rm -f conftest.er1
8238   cat conftest.err >&5
8239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240   (exit $ac_status); } >/dev/null; then
8241   if test -s conftest.err; then
8242     ac_cpp_err=$ac_c_preproc_warn_flag
8243     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8244   else
8245     ac_cpp_err=
8246   fi
8247 else
8248   ac_cpp_err=yes
8249 fi
8250 if test -z "$ac_cpp_err"; then
8251   eval "$as_ac_Header=yes"
8252 else
8253   echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256   eval "$as_ac_Header=no"
8257 fi
8258 rm -f conftest.err conftest.$ac_ext
8259 fi
8260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263   cat >>confdefs.h <<_ACEOF
8264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 _ACEOF
8266
8267 fi
8268 done
8269
8270
8271 # Check for thread headers.
8272 echo "$as_me:$LINENO: checking for thread.h" >&5
8273 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8274 if test "${ac_cv_header_thread_h+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283 #include <thread.h>
8284 _ACEOF
8285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8287   ac_status=$?
8288   grep -v '^ *+' conftest.er1 >conftest.err
8289   rm -f conftest.er1
8290   cat conftest.err >&5
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); } >/dev/null; then
8293   if test -s conftest.err; then
8294     ac_cpp_err=$ac_c_preproc_warn_flag
8295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8296   else
8297     ac_cpp_err=
8298   fi
8299 else
8300   ac_cpp_err=yes
8301 fi
8302 if test -z "$ac_cpp_err"; then
8303   ac_cv_header_thread_h=yes
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308   ac_cv_header_thread_h=no
8309 fi
8310 rm -f conftest.err conftest.$ac_ext
8311 fi
8312 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8313 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8314 if test $ac_cv_header_thread_h = yes; then
8315   have_thread_h=yes
8316 else
8317   have_thread_h=
8318 fi
8319
8320 echo "$as_me:$LINENO: checking for pthread.h" >&5
8321 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8322 if test "${ac_cv_header_pthread_h+set}" = set; then
8323   echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325   cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h.  */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h.  */
8331 #include <pthread.h>
8332 _ACEOF
8333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8335   ac_status=$?
8336   grep -v '^ *+' conftest.er1 >conftest.err
8337   rm -f conftest.er1
8338   cat conftest.err >&5
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); } >/dev/null; then
8341   if test -s conftest.err; then
8342     ac_cpp_err=$ac_c_preproc_warn_flag
8343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8344   else
8345     ac_cpp_err=
8346   fi
8347 else
8348   ac_cpp_err=yes
8349 fi
8350 if test -z "$ac_cpp_err"; then
8351   ac_cv_header_pthread_h=yes
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356   ac_cv_header_pthread_h=no
8357 fi
8358 rm -f conftest.err conftest.$ac_ext
8359 fi
8360 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8361 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8362 if test $ac_cv_header_pthread_h = yes; then
8363   have_pthread_h=yes
8364 else
8365   have_pthread_h=
8366 fi
8367
8368
8369 # These tests can't be done till we know if we have limits.h.
8370 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8371 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8372 if test "${gcc_cv_decl_char_bit+set}" = set; then
8373   echo $ECHO_N "(cached) $ECHO_C" >&6
8374 else
8375   cat >conftest.$ac_ext <<_ACEOF
8376 /* confdefs.h.  */
8377 _ACEOF
8378 cat confdefs.h >>conftest.$ac_ext
8379 cat >>conftest.$ac_ext <<_ACEOF
8380 /* end confdefs.h.  */
8381 #ifdef HAVE_LIMITS_H
8382 #include <limits.h>
8383 #endif
8384 #ifdef CHAR_BIT
8385 found
8386 #endif
8387 _ACEOF
8388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8389   $EGREP "found" >/dev/null 2>&1; then
8390   gcc_cv_decl_char_bit=yes
8391 else
8392   gcc_cv_decl_char_bit=no
8393 fi
8394 rm -f conftest*
8395
8396
8397 fi
8398 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8399 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8400 if test $gcc_cv_decl_char_bit = no; then
8401   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8402 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8403 if test "${gcc_cv_c_nbby+set}" = set; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   i=8
8407  gcc_cv_c_nbby=
8408  while test $i -lt 65; do
8409    cat >conftest.$ac_ext <<_ACEOF
8410 /* confdefs.h.  */
8411 _ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h.  */
8415
8416 int
8417 main ()
8418 {
8419 switch(0) {
8420   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8421   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8422   ; }
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429   (eval $ac_compile) 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -z "$ac_c_werror_flag"
8437                          || test ! -s conftest.err'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest.$ac_objext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   gcc_cv_c_nbby=$i; break
8450 else
8451   echo "$as_me: failed program was:" >&5
8452 sed 's/^/| /' conftest.$ac_ext >&5
8453
8454 fi
8455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8456    i=`expr $i + 1`
8457  done
8458  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8459
8460 fi
8461 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8462 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8463 if test $gcc_cv_c_nbby = failed; then
8464   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8465 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8466    { (exit 1); exit 1; }; }
8467 else
8468
8469 cat >>confdefs.h <<_ACEOF
8470 #define CHAR_BIT $gcc_cv_c_nbby
8471 _ACEOF
8472
8473 fi
8474 fi
8475 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8476 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8477 if test "${ac_cv_c_bigendian+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   # See if sys/param.h defines the BYTE_ORDER macro.
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 #include <sys/types.h>
8488 #include <sys/param.h>
8489
8490 int
8491 main ()
8492 {
8493 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8494  bogus endian macros
8495 #endif
8496
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503   (eval $ac_compile) 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } &&
8510          { ac_try='test -z "$ac_c_werror_flag"
8511                          || test ! -s conftest.err'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; } &&
8517          { ac_try='test -s conftest.$ac_objext'
8518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519   (eval $ac_try) 2>&5
8520   ac_status=$?
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); }; }; then
8523   # It does; now see whether it defined to BIG_ENDIAN or not.
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530 #include <sys/types.h>
8531 #include <sys/param.h>
8532
8533 int
8534 main ()
8535 {
8536 #if BYTE_ORDER != BIG_ENDIAN
8537  not big endian
8538 #endif
8539
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546   (eval $ac_compile) 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } &&
8553          { ac_try='test -z "$ac_c_werror_flag"
8554                          || test ! -s conftest.err'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; } &&
8560          { ac_try='test -s conftest.$ac_objext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_c_bigendian=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_c_bigendian=no
8572 fi
8573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8574 else
8575   echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 # It does not; compile a test program.
8579 if test "$cross_compiling" = yes; then
8580   # try to guess the endianness by grepping values into an object file
8581   ac_cv_c_bigendian=unknown
8582   cat >conftest.$ac_ext <<_ACEOF
8583 /* confdefs.h.  */
8584 _ACEOF
8585 cat confdefs.h >>conftest.$ac_ext
8586 cat >>conftest.$ac_ext <<_ACEOF
8587 /* end confdefs.h.  */
8588 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8589 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8590 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8591 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8592 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8593 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8594 int
8595 main ()
8596 {
8597  _ascii (); _ebcdic ();
8598   ;
8599   return 0;
8600 }
8601 _ACEOF
8602 rm -f conftest.$ac_objext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604   (eval $ac_compile) 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } &&
8611          { ac_try='test -z "$ac_c_werror_flag"
8612                          || test ! -s conftest.err'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; } &&
8618          { ac_try='test -s conftest.$ac_objext'
8619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620   (eval $ac_try) 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8625   ac_cv_c_bigendian=yes
8626 fi
8627 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8628   if test "$ac_cv_c_bigendian" = unknown; then
8629     ac_cv_c_bigendian=no
8630   else
8631     # finding both strings is unlikely to happen, but who knows?
8632     ac_cv_c_bigendian=unknown
8633   fi
8634 fi
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 fi
8640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8641 else
8642   cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648 int
8649 main ()
8650 {
8651   /* Are we little or big endian?  From Harbison&Steele.  */
8652   union
8653   {
8654     long l;
8655     char c[sizeof (long)];
8656   } u;
8657   u.l = 1;
8658   exit (u.c[sizeof (long) - 1] == 1);
8659 }
8660 _ACEOF
8661 rm -f conftest$ac_exeext
8662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8663   (eval $ac_link) 2>&5
8664   ac_status=$?
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672   ac_cv_c_bigendian=no
8673 else
8674   echo "$as_me: program exited with status $ac_status" >&5
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8677
8678 ( exit $ac_status )
8679 ac_cv_c_bigendian=yes
8680 fi
8681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8682 fi
8683 fi
8684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8687 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8688 case $ac_cv_c_bigendian in
8689   yes)
8690
8691 cat >>confdefs.h <<\_ACEOF
8692 #define WORDS_BIGENDIAN 1
8693 _ACEOF
8694  ;;
8695   no)
8696      ;;
8697   *)
8698     { { echo "$as_me:$LINENO: error: unknown endianness
8699 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8700 echo "$as_me: error: unknown endianness
8701 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8702    { (exit 1); exit 1; }; } ;;
8703 esac
8704
8705
8706 # --------
8707 # UNSORTED
8708 # --------
8709
8710 # Stage specific cflags for build.
8711 stage1_cflags=
8712 case $build in
8713 vax-*-*)
8714   if test x$GCC = xyes
8715   then
8716     stage1_cflags="-Wa,-J"
8717   else
8718     stage1_cflags="-J"
8719   fi
8720   ;;
8721 powerpc-*-darwin*)
8722   # The spiffy cpp-precomp chokes on some legitimate constructs in GCC
8723   # sources; use -no-cpp-precomp to get to GNU cpp.
8724   # Apple's GCC has bugs in designated initializer handling, so disable
8725   # that too.
8726   stage1_cflags="-no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0"
8727   ;;
8728 esac
8729
8730
8731 # These libraries may be used by collect2.
8732 # We may need a special search path to get them linked.
8733 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8734 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8735 if test "${gcc_cv_collect2_libs+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   save_LIBS="$LIBS"
8739 for libs in '' -lld -lmld \
8740                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8741                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8742 do
8743         LIBS="$libs"
8744         cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750
8751 /* Override any gcc2 internal prototype to avoid an error.  */
8752 #ifdef __cplusplus
8753 extern "C"
8754 #endif
8755 /* We use char because int might match the return type of a gcc2
8756    builtin and then its argument prototype would still apply.  */
8757 char ldopen ();
8758 int
8759 main ()
8760 {
8761 ldopen ();
8762   ;
8763   return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest.$ac_objext conftest$ac_exeext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768   (eval $ac_link) 2>conftest.er1
8769   ac_status=$?
8770   grep -v '^ *+' conftest.er1 >conftest.err
8771   rm -f conftest.er1
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } &&
8775          { ac_try='test -z "$ac_c_werror_flag"
8776                          || test ! -s conftest.err'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; } &&
8782          { ac_try='test -s conftest$ac_exeext'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; }; then
8788   gcc_cv_collect2_libs="$libs"; break
8789 else
8790   echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 fi
8794 rm -f conftest.err conftest.$ac_objext \
8795       conftest$ac_exeext conftest.$ac_ext
8796 done
8797 LIBS="$save_LIBS"
8798 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8799 fi
8800 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8801 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8802 case $gcc_cv_collect2_libs in
8803         "none required")        ;;
8804         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8805 esac
8806
8807
8808 # When building Ada code on Alpha, we need exc_resume which is usually in
8809 # -lexc.  So test for it.
8810 save_LIBS="$LIBS"
8811 LIBS=
8812 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8813 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8814 if test "${ac_cv_search_exc_resume+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   ac_func_search_save_LIBS=$LIBS
8818 ac_cv_search_exc_resume=no
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h.  */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h.  */
8825
8826 /* Override any gcc2 internal prototype to avoid an error.  */
8827 #ifdef __cplusplus
8828 extern "C"
8829 #endif
8830 /* We use char because int might match the return type of a gcc2
8831    builtin and then its argument prototype would still apply.  */
8832 char exc_resume ();
8833 int
8834 main ()
8835 {
8836 exc_resume ();
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843   (eval $ac_link) 2>conftest.er1
8844   ac_status=$?
8845   grep -v '^ *+' conftest.er1 >conftest.err
8846   rm -f conftest.er1
8847   cat conftest.err >&5
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } &&
8850          { ac_try='test -z "$ac_c_werror_flag"
8851                          || test ! -s conftest.err'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; } &&
8857          { ac_try='test -s conftest$ac_exeext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   ac_cv_search_exc_resume="none required"
8864 else
8865   echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8867
8868 fi
8869 rm -f conftest.err conftest.$ac_objext \
8870       conftest$ac_exeext conftest.$ac_ext
8871 if test "$ac_cv_search_exc_resume" = no; then
8872   for ac_lib in exc; do
8873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8874     cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h.  */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h.  */
8880
8881 /* Override any gcc2 internal prototype to avoid an error.  */
8882 #ifdef __cplusplus
8883 extern "C"
8884 #endif
8885 /* We use char because int might match the return type of a gcc2
8886    builtin and then its argument prototype would still apply.  */
8887 char exc_resume ();
8888 int
8889 main ()
8890 {
8891 exc_resume ();
8892   ;
8893   return 0;
8894 }
8895 _ACEOF
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8898   (eval $ac_link) 2>conftest.er1
8899   ac_status=$?
8900   grep -v '^ *+' conftest.er1 >conftest.err
8901   rm -f conftest.er1
8902   cat conftest.err >&5
8903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904   (exit $ac_status); } &&
8905          { ac_try='test -z "$ac_c_werror_flag"
8906                          || test ! -s conftest.err'
8907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908   (eval $ac_try) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; } &&
8912          { ac_try='test -s conftest$ac_exeext'
8913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; }; then
8918   ac_cv_search_exc_resume="-l$ac_lib"
8919 break
8920 else
8921   echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 fi
8925 rm -f conftest.err conftest.$ac_objext \
8926       conftest$ac_exeext conftest.$ac_ext
8927   done
8928 fi
8929 LIBS=$ac_func_search_save_LIBS
8930 fi
8931 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
8932 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
8933 if test "$ac_cv_search_exc_resume" != no; then
8934   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
8935
8936 fi
8937
8938 GNAT_LIBEXC="$LIBS"
8939 LIBS="$save_LIBS"
8940
8941
8942 # Some systems put ldexp and frexp in libm instead of libc; assume
8943 # they're both in the same place.  jcf-dump needs them.
8944 save_LIBS="$LIBS"
8945 LIBS=
8946 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
8947 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
8948 if test "${ac_cv_search_ldexp+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   ac_func_search_save_LIBS=$LIBS
8952 ac_cv_search_ldexp=no
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959
8960 /* Override any gcc2 internal prototype to avoid an error.  */
8961 #ifdef __cplusplus
8962 extern "C"
8963 #endif
8964 /* We use char because int might match the return type of a gcc2
8965    builtin and then its argument prototype would still apply.  */
8966 char ldexp ();
8967 int
8968 main ()
8969 {
8970 ldexp ();
8971   ;
8972   return 0;
8973 }
8974 _ACEOF
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8977   (eval $ac_link) 2>conftest.er1
8978   ac_status=$?
8979   grep -v '^ *+' conftest.er1 >conftest.err
8980   rm -f conftest.er1
8981   cat conftest.err >&5
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); } &&
8984          { ac_try='test -z "$ac_c_werror_flag"
8985                          || test ! -s conftest.err'
8986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987   (eval $ac_try) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); }; } &&
8991          { ac_try='test -s conftest$ac_exeext'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; }; then
8997   ac_cv_search_ldexp="none required"
8998 else
8999   echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 fi
9003 rm -f conftest.err conftest.$ac_objext \
9004       conftest$ac_exeext conftest.$ac_ext
9005 if test "$ac_cv_search_ldexp" = no; then
9006   for ac_lib in m; do
9007     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9008     cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014
9015 /* Override any gcc2 internal prototype to avoid an error.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 /* We use char because int might match the return type of a gcc2
9020    builtin and then its argument prototype would still apply.  */
9021 char ldexp ();
9022 int
9023 main ()
9024 {
9025 ldexp ();
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext conftest$ac_exeext
9031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032   (eval $ac_link) 2>conftest.er1
9033   ac_status=$?
9034   grep -v '^ *+' conftest.er1 >conftest.err
9035   rm -f conftest.er1
9036   cat conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } &&
9039          { ac_try='test -z "$ac_c_werror_flag"
9040                          || test ! -s conftest.err'
9041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042   (eval $ac_try) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); }; } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; }; then
9052   ac_cv_search_ldexp="-l$ac_lib"
9053 break
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058 fi
9059 rm -f conftest.err conftest.$ac_objext \
9060       conftest$ac_exeext conftest.$ac_ext
9061   done
9062 fi
9063 LIBS=$ac_func_search_save_LIBS
9064 fi
9065 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9066 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9067 if test "$ac_cv_search_ldexp" != no; then
9068   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9069
9070 fi
9071
9072 LDEXP_LIB="$LIBS"
9073 LIBS="$save_LIBS"
9074
9075
9076 # Use <inttypes.h> only if it exists,
9077 # doesn't clash with <sys/types.h>, and declares intmax_t.
9078 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9079 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9080 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089 #include <sys/types.h>
9090 #include <inttypes.h>
9091 int
9092 main ()
9093 {
9094 intmax_t i = -1;
9095   ;
9096   return 0;
9097 }
9098 _ACEOF
9099 rm -f conftest.$ac_objext
9100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9101   (eval $ac_compile) 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } &&
9108          { ac_try='test -z "$ac_c_werror_flag"
9109                          || test ! -s conftest.err'
9110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111   (eval $ac_try) 2>&5
9112   ac_status=$?
9113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114   (exit $ac_status); }; } &&
9115          { ac_try='test -s conftest.$ac_objext'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; }; then
9121   gcc_cv_header_inttypes_h=yes
9122 else
9123   echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 gcc_cv_header_inttypes_h=no
9127 fi
9128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9129 fi
9130
9131 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9132 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9133 if test $gcc_cv_header_inttypes_h = yes; then
9134
9135 cat >>confdefs.h <<\_ACEOF
9136 #define HAVE_INTTYPES_H 1
9137 _ACEOF
9138
9139 fi
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9179         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9180         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9181         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
9182 do
9183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9184 echo "$as_me:$LINENO: checking for $ac_func" >&5
9185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9186 if eval "test \"\${$as_ac_var+set}\" = set"; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189   cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9197 #define $ac_func innocuous_$ac_func
9198
9199 /* System header to define __stub macros and hopefully few prototypes,
9200     which can conflict with char $ac_func (); below.
9201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9202     <limits.h> exists even on freestanding compilers.  */
9203
9204 #ifdef __STDC__
9205 # include <limits.h>
9206 #else
9207 # include <assert.h>
9208 #endif
9209
9210 #undef $ac_func
9211
9212 /* Override any gcc2 internal prototype to avoid an error.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 {
9216 #endif
9217 /* We use char because int might match the return type of a gcc2
9218    builtin and then its argument prototype would still apply.  */
9219 char $ac_func ();
9220 /* The GNU C library defines this for functions which it implements
9221     to always fail with ENOSYS.  Some functions are actually named
9222     something starting with __ and the normal name is an alias.  */
9223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9224 choke me
9225 #else
9226 char (*f) () = $ac_func;
9227 #endif
9228 #ifdef __cplusplus
9229 }
9230 #endif
9231
9232 int
9233 main ()
9234 {
9235 return f != $ac_func;
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242   (eval $ac_link) 2>conftest.er1
9243   ac_status=$?
9244   grep -v '^ *+' conftest.er1 >conftest.err
9245   rm -f conftest.er1
9246   cat conftest.err >&5
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); } &&
9249          { ac_try='test -z "$ac_c_werror_flag"
9250                          || test ! -s conftest.err'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; } &&
9256          { ac_try='test -s conftest$ac_exeext'
9257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258   (eval $ac_try) 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   eval "$as_ac_var=yes"
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267 eval "$as_ac_var=no"
9268 fi
9269 rm -f conftest.err conftest.$ac_objext \
9270       conftest$ac_exeext conftest.$ac_ext
9271 fi
9272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9274 if test `eval echo '${'$as_ac_var'}'` = yes; then
9275   cat >>confdefs.h <<_ACEOF
9276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9277 _ACEOF
9278
9279 fi
9280 done
9281
9282
9283 if test x$ac_cv_func_mbstowcs = xyes; then
9284   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9285 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9286 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289       if test "$cross_compiling" = yes; then
9290   gcc_cv_func_mbstowcs_works=yes
9291 else
9292   cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298 #include <stdlib.h>
9299 int main()
9300 {
9301   mbstowcs(0, "", 0);
9302   return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307   (eval $ac_link) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; }; then
9316   gcc_cv_func_mbstowcs_works=yes
9317 else
9318   echo "$as_me: program exited with status $ac_status" >&5
9319 echo "$as_me: failed program was:" >&5
9320 sed 's/^/| /' conftest.$ac_ext >&5
9321
9322 ( exit $ac_status )
9323 gcc_cv_func_mbstowcs_works=no
9324 fi
9325 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9326 fi
9327 fi
9328 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9329 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9330   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9331
9332 cat >>confdefs.h <<\_ACEOF
9333 #define HAVE_WORKING_MBSTOWCS 1
9334 _ACEOF
9335
9336   fi
9337 fi
9338
9339 echo "$as_me:$LINENO: checking for ssize_t" >&5
9340 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9341 if test "${ac_cv_type_ssize_t+set}" = set; then
9342   echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344   cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h.  */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h.  */
9350 $ac_includes_default
9351 int
9352 main ()
9353 {
9354 if ((ssize_t *) 0)
9355   return 0;
9356 if (sizeof (ssize_t))
9357   return 0;
9358   ;
9359   return 0;
9360 }
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364   (eval $ac_compile) 2>conftest.er1
9365   ac_status=$?
9366   grep -v '^ *+' conftest.er1 >conftest.err
9367   rm -f conftest.er1
9368   cat conftest.err >&5
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } &&
9371          { ac_try='test -z "$ac_c_werror_flag"
9372                          || test ! -s conftest.err'
9373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374   (eval $ac_try) 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; } &&
9378          { ac_try='test -s conftest.$ac_objext'
9379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380   (eval $ac_try) 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; }; then
9384   ac_cv_type_ssize_t=yes
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_cv_type_ssize_t=no
9390 fi
9391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9392 fi
9393 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9394 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9395 if test $ac_cv_type_ssize_t = yes; then
9396   :
9397 else
9398
9399 cat >>confdefs.h <<_ACEOF
9400 #define ssize_t int
9401 _ACEOF
9402
9403 fi
9404
9405
9406 # Try to determine the array type of the second argument of getgroups
9407 # for the target system (int or gid_t).
9408 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9409 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9410 if test "${ac_cv_type_uid_t+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   cat >conftest.$ac_ext <<_ACEOF
9414 /* confdefs.h.  */
9415 _ACEOF
9416 cat confdefs.h >>conftest.$ac_ext
9417 cat >>conftest.$ac_ext <<_ACEOF
9418 /* end confdefs.h.  */
9419 #include <sys/types.h>
9420
9421 _ACEOF
9422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9423   $EGREP "uid_t" >/dev/null 2>&1; then
9424   ac_cv_type_uid_t=yes
9425 else
9426   ac_cv_type_uid_t=no
9427 fi
9428 rm -f conftest*
9429
9430 fi
9431 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9432 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9433 if test $ac_cv_type_uid_t = no; then
9434
9435 cat >>confdefs.h <<\_ACEOF
9436 #define uid_t int
9437 _ACEOF
9438
9439
9440 cat >>confdefs.h <<\_ACEOF
9441 #define gid_t int
9442 _ACEOF
9443
9444 fi
9445
9446 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9447 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9448 if test "${ac_cv_type_getgroups+set}" = set; then
9449   echo $ECHO_N "(cached) $ECHO_C" >&6
9450 else
9451   if test "$cross_compiling" = yes; then
9452   ac_cv_type_getgroups=cross
9453 else
9454   cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460 /* Thanks to Mike Rendell for this test.  */
9461 #include <sys/types.h>
9462 #define NGID 256
9463 #undef MAX
9464 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9465
9466 int
9467 main ()
9468 {
9469   gid_t gidset[NGID];
9470   int i, n;
9471   union { gid_t gval; long lval; }  val;
9472
9473   val.lval = -1;
9474   for (i = 0; i < NGID; i++)
9475     gidset[i] = val.gval;
9476   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9477                  gidset);
9478   /* Exit non-zero if getgroups seems to require an array of ints.  This
9479      happens when gid_t is short but getgroups modifies an array of ints.  */
9480   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9481 }
9482 _ACEOF
9483 rm -f conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485   (eval $ac_link) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490   (eval $ac_try) 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; }; then
9494   ac_cv_type_getgroups=gid_t
9495 else
9496   echo "$as_me: program exited with status $ac_status" >&5
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9499
9500 ( exit $ac_status )
9501 ac_cv_type_getgroups=int
9502 fi
9503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9504 fi
9505 if test $ac_cv_type_getgroups = cross; then
9506         cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h.  */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h.  */
9512 #include <unistd.h>
9513
9514 _ACEOF
9515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9516   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9517   ac_cv_type_getgroups=gid_t
9518 else
9519   ac_cv_type_getgroups=int
9520 fi
9521 rm -f conftest*
9522
9523 fi
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9526 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9527
9528 cat >>confdefs.h <<_ACEOF
9529 #define GETGROUPS_T $ac_cv_type_getgroups
9530 _ACEOF
9531
9532
9533 if test "${target}" = "${build}"; then
9534   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9535 else
9536   case "${target}" in
9537         # This condition may need some tweaking.  It should include all
9538         # targets where the array type of the second argument of getgroups
9539         # is int and the type of gid_t is not equivalent to int.
9540         *-*-sunos* | *-*-ultrix*)
9541                 TARGET_GETGROUPS_T=int
9542                 ;;
9543         *)
9544                 TARGET_GETGROUPS_T=gid_t
9545                 ;;
9546   esac
9547 fi
9548
9549
9550
9551 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9552 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9553 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 #include <sys/mman.h>
9563 _ACEOF
9564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } >/dev/null; then
9572   if test -s conftest.err; then
9573     ac_cpp_err=$ac_c_preproc_warn_flag
9574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9575   else
9576     ac_cpp_err=
9577   fi
9578 else
9579   ac_cpp_err=yes
9580 fi
9581 if test -z "$ac_cpp_err"; then
9582   ac_cv_header_sys_mman_h=yes
9583 else
9584   echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587   ac_cv_header_sys_mman_h=no
9588 fi
9589 rm -f conftest.err conftest.$ac_ext
9590 fi
9591 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9592 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9593 if test $ac_cv_header_sys_mman_h = yes; then
9594   gcc_header_sys_mman_h=yes
9595 else
9596   gcc_header_sys_mman_h=no
9597 fi
9598
9599 echo "$as_me:$LINENO: checking for mmap" >&5
9600 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9601 if test "${ac_cv_func_mmap+set}" = set; then
9602   echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604   cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9612 #define mmap innocuous_mmap
9613
9614 /* System header to define __stub macros and hopefully few prototypes,
9615     which can conflict with char mmap (); below.
9616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9617     <limits.h> exists even on freestanding compilers.  */
9618
9619 #ifdef __STDC__
9620 # include <limits.h>
9621 #else
9622 # include <assert.h>
9623 #endif
9624
9625 #undef mmap
9626
9627 /* Override any gcc2 internal prototype to avoid an error.  */
9628 #ifdef __cplusplus
9629 extern "C"
9630 {
9631 #endif
9632 /* We use char because int might match the return type of a gcc2
9633    builtin and then its argument prototype would still apply.  */
9634 char mmap ();
9635 /* The GNU C library defines this for functions which it implements
9636     to always fail with ENOSYS.  Some functions are actually named
9637     something starting with __ and the normal name is an alias.  */
9638 #if defined (__stub_mmap) || defined (__stub___mmap)
9639 choke me
9640 #else
9641 char (*f) () = mmap;
9642 #endif
9643 #ifdef __cplusplus
9644 }
9645 #endif
9646
9647 int
9648 main ()
9649 {
9650 return f != mmap;
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657   (eval $ac_link) 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -z "$ac_c_werror_flag"
9665                          || test ! -s conftest.err'
9666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667   (eval $ac_try) 2>&5
9668   ac_status=$?
9669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670   (exit $ac_status); }; } &&
9671          { ac_try='test -s conftest$ac_exeext'
9672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673   (eval $ac_try) 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; }; then
9677   ac_cv_func_mmap=yes
9678 else
9679   echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682 ac_cv_func_mmap=no
9683 fi
9684 rm -f conftest.err conftest.$ac_objext \
9685       conftest$ac_exeext conftest.$ac_ext
9686 fi
9687 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9688 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9689 if test $ac_cv_func_mmap = yes; then
9690   gcc_func_mmap=yes
9691 else
9692   gcc_func_mmap=no
9693 fi
9694
9695 if test "$gcc_header_sys_mman_h" != yes \
9696  || test "$gcc_func_mmap" != yes; then
9697    gcc_cv_func_mmap_file=no
9698    gcc_cv_func_mmap_dev_zero=no
9699    gcc_cv_func_mmap_anon=no
9700 else
9701    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9702 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9703 if test "${gcc_cv_func_mmap_file+set}" = set; then
9704   echo $ECHO_N "(cached) $ECHO_C" >&6
9705 else
9706   # Add a system to this blacklist if
9707    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9708    # memory area containing the same data that you'd get if you applied
9709    # read() to the same fd.  The only system known to have a problem here
9710    # is VMS, where text files have record structure.
9711    case "$host_os" in
9712      vms* | ultrix*)
9713         gcc_cv_func_mmap_file=no ;;
9714      *)
9715         gcc_cv_func_mmap_file=yes;;
9716    esac
9717 fi
9718 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9719 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9720    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9721 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9722 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   # Add a system to this blacklist if it has mmap() but /dev/zero
9726    # does not exist, or if mmapping /dev/zero does not give anonymous
9727    # zeroed pages with both the following properties:
9728    # 1. If you map N consecutive pages in with one call, and then
9729    #    unmap any subset of those pages, the pages that were not
9730    #    explicitly unmapped remain accessible.
9731    # 2. If you map two adjacent blocks of memory and then unmap them
9732    #    both at once, they must both go away.
9733    # Systems known to be in this category are Windows (all variants),
9734    # VMS, and Darwin.
9735    case "$host_os" in
9736      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9737         gcc_cv_func_mmap_dev_zero=no ;;
9738      *)
9739         gcc_cv_func_mmap_dev_zero=yes;;
9740    esac
9741 fi
9742 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9743 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9744
9745    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9746    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9747 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9748 if test "${gcc_cv_decl_map_anon+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757 #include <sys/types.h>
9758 #include <sys/mman.h>
9759 #include <unistd.h>
9760
9761 #ifndef MAP_ANONYMOUS
9762 #define MAP_ANONYMOUS MAP_ANON
9763 #endif
9764
9765 int
9766 main ()
9767 {
9768 int n = MAP_ANONYMOUS;
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext
9774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9775   (eval $ac_compile) 2>conftest.er1
9776   ac_status=$?
9777   grep -v '^ *+' conftest.er1 >conftest.err
9778   rm -f conftest.er1
9779   cat conftest.err >&5
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); } &&
9782          { ac_try='test -z "$ac_c_werror_flag"
9783                          || test ! -s conftest.err'
9784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9785   (eval $ac_try) 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest.$ac_objext'
9790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791   (eval $ac_try) 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; }; then
9795   gcc_cv_decl_map_anon=yes
9796 else
9797   echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9799
9800 gcc_cv_decl_map_anon=no
9801 fi
9802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9803 fi
9804 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9805 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9806
9807    if test $gcc_cv_decl_map_anon = no; then
9808      gcc_cv_func_mmap_anon=no
9809    else
9810      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9811 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9812 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9816    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9817    # doesn't give anonymous zeroed pages with the same properties listed
9818    # above for use of /dev/zero.
9819    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9820    case "$host_os" in
9821      vms* | cygwin* | pe | mingw* | sco* | udk* )
9822         gcc_cv_func_mmap_anon=no ;;
9823      *)
9824         gcc_cv_func_mmap_anon=yes;;
9825    esac
9826 fi
9827 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9828 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9829    fi
9830 fi
9831
9832 if test $gcc_cv_func_mmap_file = yes; then
9833
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_MMAP_FILE 1
9836 _ACEOF
9837
9838 fi
9839 if test $gcc_cv_func_mmap_dev_zero = yes; then
9840
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_MMAP_DEV_ZERO 1
9843 _ACEOF
9844
9845 fi
9846 if test $gcc_cv_func_mmap_anon = yes; then
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define HAVE_MMAP_ANON 1
9850 _ACEOF
9851
9852 fi
9853
9854
9855 case "${host}" in
9856 *-*-*vms*)
9857   # Under VMS, vfork works very differently than on Unix. The standard test
9858   # won't work, and it isn't easily adaptable. It makes more sense to
9859   # just force it.
9860   ac_cv_func_vfork_works=yes
9861   ;;
9862 esac
9863 echo "$as_me:$LINENO: checking for pid_t" >&5
9864 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9865 if test "${ac_cv_type_pid_t+set}" = set; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 $ac_includes_default
9875 int
9876 main ()
9877 {
9878 if ((pid_t *) 0)
9879   return 0;
9880 if (sizeof (pid_t))
9881   return 0;
9882   ;
9883   return 0;
9884 }
9885 _ACEOF
9886 rm -f conftest.$ac_objext
9887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9888   (eval $ac_compile) 2>conftest.er1
9889   ac_status=$?
9890   grep -v '^ *+' conftest.er1 >conftest.err
9891   rm -f conftest.er1
9892   cat conftest.err >&5
9893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894   (exit $ac_status); } &&
9895          { ac_try='test -z "$ac_c_werror_flag"
9896                          || test ! -s conftest.err'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; } &&
9902          { ac_try='test -s conftest.$ac_objext'
9903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904   (eval $ac_try) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); }; }; then
9908   ac_cv_type_pid_t=yes
9909 else
9910   echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 ac_cv_type_pid_t=no
9914 fi
9915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9916 fi
9917 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9918 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9919 if test $ac_cv_type_pid_t = yes; then
9920   :
9921 else
9922
9923 cat >>confdefs.h <<_ACEOF
9924 #define pid_t int
9925 _ACEOF
9926
9927 fi
9928
9929
9930
9931 for ac_header in unistd.h vfork.h
9932 do
9933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9934 echo "$as_me:$LINENO: checking for $ac_header" >&5
9935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h.  */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h.  */
9945 #include <$ac_header>
9946 _ACEOF
9947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } >/dev/null; then
9955   if test -s conftest.err; then
9956     ac_cpp_err=$ac_c_preproc_warn_flag
9957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9958   else
9959     ac_cpp_err=
9960   fi
9961 else
9962   ac_cpp_err=yes
9963 fi
9964 if test -z "$ac_cpp_err"; then
9965   eval "$as_ac_Header=yes"
9966 else
9967   echo "$as_me: failed program was:" >&5
9968 sed 's/^/| /' conftest.$ac_ext >&5
9969
9970   eval "$as_ac_Header=no"
9971 fi
9972 rm -f conftest.err conftest.$ac_ext
9973 fi
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9977   cat >>confdefs.h <<_ACEOF
9978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 _ACEOF
9980
9981 fi
9982 done
9983
9984
9985
9986 for ac_func in fork vfork
9987 do
9988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9989 echo "$as_me:$LINENO: checking for $ac_func" >&5
9990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9991 if eval "test \"\${$as_ac_var+set}\" = set"; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10002 #define $ac_func innocuous_$ac_func
10003
10004 /* System header to define __stub macros and hopefully few prototypes,
10005     which can conflict with char $ac_func (); below.
10006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007     <limits.h> exists even on freestanding compilers.  */
10008
10009 #ifdef __STDC__
10010 # include <limits.h>
10011 #else
10012 # include <assert.h>
10013 #endif
10014
10015 #undef $ac_func
10016
10017 /* Override any gcc2 internal prototype to avoid an error.  */
10018 #ifdef __cplusplus
10019 extern "C"
10020 {
10021 #endif
10022 /* We use char because int might match the return type of a gcc2
10023    builtin and then its argument prototype would still apply.  */
10024 char $ac_func ();
10025 /* The GNU C library defines this for functions which it implements
10026     to always fail with ENOSYS.  Some functions are actually named
10027     something starting with __ and the normal name is an alias.  */
10028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10029 choke me
10030 #else
10031 char (*f) () = $ac_func;
10032 #endif
10033 #ifdef __cplusplus
10034 }
10035 #endif
10036
10037 int
10038 main ()
10039 {
10040 return f != $ac_func;
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047   (eval $ac_link) 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag"
10055                          || test ! -s conftest.err'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; } &&
10061          { ac_try='test -s conftest$ac_exeext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   eval "$as_ac_var=yes"
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 eval "$as_ac_var=no"
10073 fi
10074 rm -f conftest.err conftest.$ac_objext \
10075       conftest$ac_exeext conftest.$ac_ext
10076 fi
10077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10079 if test `eval echo '${'$as_ac_var'}'` = yes; then
10080   cat >>confdefs.h <<_ACEOF
10081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10082 _ACEOF
10083
10084 fi
10085 done
10086
10087 if test "x$ac_cv_func_fork" = xyes; then
10088   echo "$as_me:$LINENO: checking for working fork" >&5
10089 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10090 if test "${ac_cv_func_fork_works+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   if test "$cross_compiling" = yes; then
10094   ac_cv_func_fork_works=cross
10095 else
10096   cat >conftest.$ac_ext <<_ACEOF
10097 /* By Ruediger Kuhlmann. */
10098       #include <sys/types.h>
10099       #if HAVE_UNISTD_H
10100       # include <unistd.h>
10101       #endif
10102       /* Some systems only have a dummy stub for fork() */
10103       int main ()
10104       {
10105         if (fork() < 0)
10106           exit (1);
10107         exit (0);
10108       }
10109 _ACEOF
10110 rm -f conftest$ac_exeext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112   (eval $ac_link) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117   (eval $ac_try) 2>&5
10118   ac_status=$?
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); }; }; then
10121   ac_cv_func_fork_works=yes
10122 else
10123   echo "$as_me: program exited with status $ac_status" >&5
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ( exit $ac_status )
10128 ac_cv_func_fork_works=no
10129 fi
10130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10131 fi
10132 fi
10133 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10134 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10135
10136 else
10137   ac_cv_func_fork_works=$ac_cv_func_fork
10138 fi
10139 if test "x$ac_cv_func_fork_works" = xcross; then
10140   case $host in
10141     *-*-amigaos* | *-*-msdosdjgpp*)
10142       # Override, as these systems have only a dummy fork() stub
10143       ac_cv_func_fork_works=no
10144       ;;
10145     *)
10146       ac_cv_func_fork_works=yes
10147       ;;
10148   esac
10149   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10150 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10151 fi
10152 ac_cv_func_vfork_works=$ac_cv_func_vfork
10153 if test "x$ac_cv_func_vfork" = xyes; then
10154   echo "$as_me:$LINENO: checking for working vfork" >&5
10155 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10156 if test "${ac_cv_func_vfork_works+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   if test "$cross_compiling" = yes; then
10160   ac_cv_func_vfork_works=cross
10161 else
10162   cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168 /* Thanks to Paul Eggert for this test.  */
10169 #include <stdio.h>
10170 #include <stdlib.h>
10171 #include <sys/types.h>
10172 #include <sys/stat.h>
10173 #include <sys/wait.h>
10174 #if HAVE_UNISTD_H
10175 # include <unistd.h>
10176 #endif
10177 #if HAVE_VFORK_H
10178 # include <vfork.h>
10179 #endif
10180 /* On some sparc systems, changes by the child to local and incoming
10181    argument registers are propagated back to the parent.  The compiler
10182    is told about this with #include <vfork.h>, but some compilers
10183    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10184    static variable whose address is put into a register that is
10185    clobbered by the vfork.  */
10186 static void
10187 #ifdef __cplusplus
10188 sparc_address_test (int arg)
10189 # else
10190 sparc_address_test (arg) int arg;
10191 #endif
10192 {
10193   static pid_t child;
10194   if (!child) {
10195     child = vfork ();
10196     if (child < 0) {
10197       perror ("vfork");
10198       _exit(2);
10199     }
10200     if (!child) {
10201       arg = getpid();
10202       write(-1, "", 0);
10203       _exit (arg);
10204     }
10205   }
10206 }
10207
10208 int
10209 main ()
10210 {
10211   pid_t parent = getpid ();
10212   pid_t child;
10213
10214   sparc_address_test (0);
10215
10216   child = vfork ();
10217
10218   if (child == 0) {
10219     /* Here is another test for sparc vfork register problems.  This
10220        test uses lots of local variables, at least as many local
10221        variables as main has allocated so far including compiler
10222        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10223        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10224        reuse the register of parent for one of the local variables,
10225        since it will think that parent can't possibly be used any more
10226        in this routine.  Assigning to the local variable will thus
10227        munge parent in the parent process.  */
10228     pid_t
10229       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10230       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10231     /* Convince the compiler that p..p7 are live; otherwise, it might
10232        use the same hardware register for all 8 local variables.  */
10233     if (p != p1 || p != p2 || p != p3 || p != p4
10234         || p != p5 || p != p6 || p != p7)
10235       _exit(1);
10236
10237     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10238        from child file descriptors.  If the child closes a descriptor
10239        before it execs or exits, this munges the parent's descriptor
10240        as well.  Test for this by closing stdout in the child.  */
10241     _exit(close(fileno(stdout)) != 0);
10242   } else {
10243     int status;
10244     struct stat st;
10245
10246     while (wait(&status) != child)
10247       ;
10248     exit(
10249          /* Was there some problem with vforking?  */
10250          child < 0
10251
10252          /* Did the child fail?  (This shouldn't happen.)  */
10253          || status
10254
10255          /* Did the vfork/compiler bug occur?  */
10256          || parent != getpid()
10257
10258          /* Did the file descriptor bug occur?  */
10259          || fstat(fileno(stdout), &st) != 0
10260          );
10261   }
10262 }
10263 _ACEOF
10264 rm -f conftest$ac_exeext
10265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10266   (eval $ac_link) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271   (eval $ac_try) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; }; then
10275   ac_cv_func_vfork_works=yes
10276 else
10277   echo "$as_me: program exited with status $ac_status" >&5
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ( exit $ac_status )
10282 ac_cv_func_vfork_works=no
10283 fi
10284 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10285 fi
10286 fi
10287 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10288 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10289
10290 fi;
10291 if test "x$ac_cv_func_fork_works" = xcross; then
10292   ac_cv_func_vfork_works=$ac_cv_func_vfork
10293   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10294 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10295 fi
10296
10297 if test "x$ac_cv_func_vfork_works" = xyes; then
10298
10299 cat >>confdefs.h <<\_ACEOF
10300 #define HAVE_WORKING_VFORK 1
10301 _ACEOF
10302
10303 else
10304
10305 cat >>confdefs.h <<\_ACEOF
10306 #define vfork fork
10307 _ACEOF
10308
10309 fi
10310 if test "x$ac_cv_func_fork_works" = xyes; then
10311
10312 cat >>confdefs.h <<\_ACEOF
10313 #define HAVE_WORKING_FORK 1
10314 _ACEOF
10315
10316 fi
10317
10318
10319
10320       if test "X$prefix" = "XNONE"; then
10321     acl_final_prefix="$ac_default_prefix"
10322   else
10323     acl_final_prefix="$prefix"
10324   fi
10325   if test "X$exec_prefix" = "XNONE"; then
10326     acl_final_exec_prefix='${prefix}'
10327   else
10328     acl_final_exec_prefix="$exec_prefix"
10329   fi
10330   acl_save_prefix="$prefix"
10331   prefix="$acl_final_prefix"
10332   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10333   prefix="$acl_save_prefix"
10334
10335
10336 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10337 if test "${with_gnu_ld+set}" = set; then
10338   withval="$with_gnu_ld"
10339   test "$withval" = no || with_gnu_ld=yes
10340 else
10341   with_gnu_ld=no
10342 fi;
10343 # Prepare PATH_SEPARATOR.
10344 # The user is always right.
10345 if test "${PATH_SEPARATOR+set}" != set; then
10346   echo "#! /bin/sh" >conf$$.sh
10347   echo  "exit 0"   >>conf$$.sh
10348   chmod +x conf$$.sh
10349   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10350     PATH_SEPARATOR=';'
10351   else
10352     PATH_SEPARATOR=:
10353   fi
10354   rm -f conf$$.sh
10355 fi
10356 ac_prog=ld
10357 if test "$GCC" = yes; then
10358   # Check if gcc -print-prog-name=ld gives a path.
10359   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10360 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10361   case $host in
10362   *-*-mingw*)
10363     # gcc leaves a trailing carriage return which upsets mingw
10364     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10365   *)
10366     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10367   esac
10368   case $ac_prog in
10369     # Accept absolute paths.
10370     [\\/]* | [A-Za-z]:[\\/]*)
10371       re_direlt='/[^/][^/]*/\.\./'
10372       # Canonicalize the path of ld
10373       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10374       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10375         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10376       done
10377       test -z "$LD" && LD="$ac_prog"
10378       ;;
10379   "")
10380     # If it fails, then pretend we aren't using GCC.
10381     ac_prog=ld
10382     ;;
10383   *)
10384     # If it is relative, then search for the first ld in PATH.
10385     with_gnu_ld=unknown
10386     ;;
10387   esac
10388 elif test "$with_gnu_ld" = yes; then
10389   echo "$as_me:$LINENO: checking for GNU ld" >&5
10390 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10391 else
10392   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10393 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10394 fi
10395 if test "${acl_cv_path_LD+set}" = set; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398   if test -z "$LD"; then
10399   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10400   for ac_dir in $PATH; do
10401     test -z "$ac_dir" && ac_dir=.
10402     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10403       acl_cv_path_LD="$ac_dir/$ac_prog"
10404       # Check to see if the program is GNU ld.  I'd rather use --version,
10405       # but apparently some GNU ld's only accept -v.
10406       # Break only if it was the GNU/non-GNU ld that we prefer.
10407       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10408         test "$with_gnu_ld" != no && break
10409       else
10410         test "$with_gnu_ld" != yes && break
10411       fi
10412     fi
10413   done
10414   IFS="$ac_save_ifs"
10415 else
10416   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10417 fi
10418 fi
10419
10420 LD="$acl_cv_path_LD"
10421 if test -n "$LD"; then
10422   echo "$as_me:$LINENO: result: $LD" >&5
10423 echo "${ECHO_T}$LD" >&6
10424 else
10425   echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6
10427 fi
10428 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10429 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10430    { (exit 1); exit 1; }; }
10431 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10432 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10433 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10434   echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10437 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10438   acl_cv_prog_gnu_ld=yes
10439 else
10440   acl_cv_prog_gnu_ld=no
10441 fi
10442 fi
10443 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10444 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10445 with_gnu_ld=$acl_cv_prog_gnu_ld
10446
10447
10448
10449                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10450 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10451 if test "${acl_cv_rpath+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454
10455     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10456     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10457     . ./conftest.sh
10458     rm -f ./conftest.sh
10459     acl_cv_rpath=done
10460
10461 fi
10462 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10463 echo "${ECHO_T}$acl_cv_rpath" >&6
10464   wl="$acl_cv_wl"
10465   libext="$acl_cv_libext"
10466   shlibext="$acl_cv_shlibext"
10467   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10468   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10469   hardcode_direct="$acl_cv_hardcode_direct"
10470   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10471     # Check whether --enable-rpath or --disable-rpath was given.
10472 if test "${enable_rpath+set}" = set; then
10473   enableval="$enable_rpath"
10474   :
10475 else
10476   enable_rpath=yes
10477 fi;
10478
10479
10480
10481
10482
10483
10484
10485     use_additional=yes
10486
10487   acl_save_prefix="$prefix"
10488   prefix="$acl_final_prefix"
10489   acl_save_exec_prefix="$exec_prefix"
10490   exec_prefix="$acl_final_exec_prefix"
10491
10492     eval additional_includedir=\"$includedir\"
10493     eval additional_libdir=\"$libdir\"
10494
10495   exec_prefix="$acl_save_exec_prefix"
10496   prefix="$acl_save_prefix"
10497
10498
10499 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10500 if test "${with_libiconv_prefix+set}" = set; then
10501   withval="$with_libiconv_prefix"
10502
10503     if test "X$withval" = "Xno"; then
10504       use_additional=no
10505     else
10506       if test "X$withval" = "X"; then
10507
10508   acl_save_prefix="$prefix"
10509   prefix="$acl_final_prefix"
10510   acl_save_exec_prefix="$exec_prefix"
10511   exec_prefix="$acl_final_exec_prefix"
10512
10513           eval additional_includedir=\"$includedir\"
10514           eval additional_libdir=\"$libdir\"
10515
10516   exec_prefix="$acl_save_exec_prefix"
10517   prefix="$acl_save_prefix"
10518
10519       else
10520         additional_includedir="$withval/include"
10521         additional_libdir="$withval/lib"
10522       fi
10523     fi
10524
10525 fi;
10526       LIBICONV=
10527   LTLIBICONV=
10528   INCICONV=
10529   rpathdirs=
10530   ltrpathdirs=
10531   names_already_handled=
10532   names_next_round='iconv '
10533   while test -n "$names_next_round"; do
10534     names_this_round="$names_next_round"
10535     names_next_round=
10536     for name in $names_this_round; do
10537       already_handled=
10538       for n in $names_already_handled; do
10539         if test "$n" = "$name"; then
10540           already_handled=yes
10541           break
10542         fi
10543       done
10544       if test -z "$already_handled"; then
10545         names_already_handled="$names_already_handled $name"
10546                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10547         eval value=\"\$HAVE_LIB$uppername\"
10548         if test -n "$value"; then
10549           if test "$value" = yes; then
10550             eval value=\"\$LIB$uppername\"
10551             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10552             eval value=\"\$LTLIB$uppername\"
10553             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10554           else
10555                                     :
10556           fi
10557         else
10558                               found_dir=
10559           found_la=
10560           found_so=
10561           found_a=
10562           if test $use_additional = yes; then
10563             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10564               found_dir="$additional_libdir"
10565               found_so="$additional_libdir/lib$name.$shlibext"
10566               if test -f "$additional_libdir/lib$name.la"; then
10567                 found_la="$additional_libdir/lib$name.la"
10568               fi
10569             else
10570               if test -f "$additional_libdir/lib$name.$libext"; then
10571                 found_dir="$additional_libdir"
10572                 found_a="$additional_libdir/lib$name.$libext"
10573                 if test -f "$additional_libdir/lib$name.la"; then
10574                   found_la="$additional_libdir/lib$name.la"
10575                 fi
10576               fi
10577             fi
10578           fi
10579           if test "X$found_dir" = "X"; then
10580             for x in $LDFLAGS $LTLIBICONV; do
10581
10582   acl_save_prefix="$prefix"
10583   prefix="$acl_final_prefix"
10584   acl_save_exec_prefix="$exec_prefix"
10585   exec_prefix="$acl_final_exec_prefix"
10586   eval x=\"$x\"
10587   exec_prefix="$acl_save_exec_prefix"
10588   prefix="$acl_save_prefix"
10589
10590               case "$x" in
10591                 -L*)
10592                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10593                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10594                     found_dir="$dir"
10595                     found_so="$dir/lib$name.$shlibext"
10596                     if test -f "$dir/lib$name.la"; then
10597                       found_la="$dir/lib$name.la"
10598                     fi
10599                   else
10600                     if test -f "$dir/lib$name.$libext"; then
10601                       found_dir="$dir"
10602                       found_a="$dir/lib$name.$libext"
10603                       if test -f "$dir/lib$name.la"; then
10604                         found_la="$dir/lib$name.la"
10605                       fi
10606                     fi
10607                   fi
10608                   ;;
10609               esac
10610               if test "X$found_dir" != "X"; then
10611                 break
10612               fi
10613             done
10614           fi
10615           if test "X$found_dir" != "X"; then
10616                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10617             if test "X$found_so" != "X"; then
10618                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10619                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10620               else
10621                                                                                 haveit=
10622                 for x in $ltrpathdirs; do
10623                   if test "X$x" = "X$found_dir"; then
10624                     haveit=yes
10625                     break
10626                   fi
10627                 done
10628                 if test -z "$haveit"; then
10629                   ltrpathdirs="$ltrpathdirs $found_dir"
10630                 fi
10631                                 if test "$hardcode_direct" = yes; then
10632                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10633                 else
10634                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10635                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10636                                                             haveit=
10637                     for x in $rpathdirs; do
10638                       if test "X$x" = "X$found_dir"; then
10639                         haveit=yes
10640                         break
10641                       fi
10642                     done
10643                     if test -z "$haveit"; then
10644                       rpathdirs="$rpathdirs $found_dir"
10645                     fi
10646                   else
10647                                                                                 haveit=
10648                     for x in $LDFLAGS $LIBICONV; do
10649
10650   acl_save_prefix="$prefix"
10651   prefix="$acl_final_prefix"
10652   acl_save_exec_prefix="$exec_prefix"
10653   exec_prefix="$acl_final_exec_prefix"
10654   eval x=\"$x\"
10655   exec_prefix="$acl_save_exec_prefix"
10656   prefix="$acl_save_prefix"
10657
10658                       if test "X$x" = "X-L$found_dir"; then
10659                         haveit=yes
10660                         break
10661                       fi
10662                     done
10663                     if test -z "$haveit"; then
10664                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10665                     fi
10666                     if test "$hardcode_minus_L" != no; then
10667                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10668                     else
10669                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10670                     fi
10671                   fi
10672                 fi
10673               fi
10674             else
10675               if test "X$found_a" != "X"; then
10676                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10677               else
10678                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10679               fi
10680             fi
10681                         additional_includedir=
10682             case "$found_dir" in
10683               */lib | */lib/)
10684                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10685                 additional_includedir="$basedir/include"
10686                 ;;
10687             esac
10688             if test "X$additional_includedir" != "X"; then
10689                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10690                 haveit=
10691                 if test "X$additional_includedir" = "X/usr/local/include"; then
10692                   if test -n "$GCC"; then
10693                     case $host_os in
10694                       linux*) haveit=yes;;
10695                     esac
10696                   fi
10697                 fi
10698                 if test -z "$haveit"; then
10699                   for x in $CPPFLAGS $INCICONV; do
10700
10701   acl_save_prefix="$prefix"
10702   prefix="$acl_final_prefix"
10703   acl_save_exec_prefix="$exec_prefix"
10704   exec_prefix="$acl_final_exec_prefix"
10705   eval x=\"$x\"
10706   exec_prefix="$acl_save_exec_prefix"
10707   prefix="$acl_save_prefix"
10708
10709                     if test "X$x" = "X-I$additional_includedir"; then
10710                       haveit=yes
10711                       break
10712                     fi
10713                   done
10714                   if test -z "$haveit"; then
10715                     if test -d "$additional_includedir"; then
10716                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10717                     fi
10718                   fi
10719                 fi
10720               fi
10721             fi
10722                         if test -n "$found_la"; then
10723                                                         save_libdir="$libdir"
10724               case "$found_la" in
10725                 */* | *\\*) . "$found_la" ;;
10726                 *) . "./$found_la" ;;
10727               esac
10728               libdir="$save_libdir"
10729                             for dep in $dependency_libs; do
10730                 case "$dep" in
10731                   -L*)
10732                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10733                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10734                       haveit=
10735                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10736                         if test -n "$GCC"; then
10737                           case $host_os in
10738                             linux*) haveit=yes;;
10739                           esac
10740                         fi
10741                       fi
10742                       if test -z "$haveit"; then
10743                         haveit=
10744                         for x in $LDFLAGS $LIBICONV; do
10745
10746   acl_save_prefix="$prefix"
10747   prefix="$acl_final_prefix"
10748   acl_save_exec_prefix="$exec_prefix"
10749   exec_prefix="$acl_final_exec_prefix"
10750   eval x=\"$x\"
10751   exec_prefix="$acl_save_exec_prefix"
10752   prefix="$acl_save_prefix"
10753
10754                           if test "X$x" = "X-L$additional_libdir"; then
10755                             haveit=yes
10756                             break
10757                           fi
10758                         done
10759                         if test -z "$haveit"; then
10760                           if test -d "$additional_libdir"; then
10761                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10762                           fi
10763                         fi
10764                         haveit=
10765                         for x in $LDFLAGS $LTLIBICONV; do
10766
10767   acl_save_prefix="$prefix"
10768   prefix="$acl_final_prefix"
10769   acl_save_exec_prefix="$exec_prefix"
10770   exec_prefix="$acl_final_exec_prefix"
10771   eval x=\"$x\"
10772   exec_prefix="$acl_save_exec_prefix"
10773   prefix="$acl_save_prefix"
10774
10775                           if test "X$x" = "X-L$additional_libdir"; then
10776                             haveit=yes
10777                             break
10778                           fi
10779                         done
10780                         if test -z "$haveit"; then
10781                           if test -d "$additional_libdir"; then
10782                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10783                           fi
10784                         fi
10785                       fi
10786                     fi
10787                     ;;
10788                   -R*)
10789                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10790                     if test "$enable_rpath" != no; then
10791                                                                   haveit=
10792                       for x in $rpathdirs; do
10793                         if test "X$x" = "X$dir"; then
10794                           haveit=yes
10795                           break
10796                         fi
10797                       done
10798                       if test -z "$haveit"; then
10799                         rpathdirs="$rpathdirs $dir"
10800                       fi
10801                                                                   haveit=
10802                       for x in $ltrpathdirs; do
10803                         if test "X$x" = "X$dir"; then
10804                           haveit=yes
10805                           break
10806                         fi
10807                       done
10808                       if test -z "$haveit"; then
10809                         ltrpathdirs="$ltrpathdirs $dir"
10810                       fi
10811                     fi
10812                     ;;
10813                   -l*)
10814                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10815                     ;;
10816                   *.la)
10817                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10818                     ;;
10819                   *)
10820                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10821                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10822                     ;;
10823                 esac
10824               done
10825             fi
10826           else
10827                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10828             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10829           fi
10830         fi
10831       fi
10832     done
10833   done
10834   if test "X$rpathdirs" != "X"; then
10835     if test -n "$hardcode_libdir_separator"; then
10836                         alldirs=
10837       for found_dir in $rpathdirs; do
10838         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10839       done
10840             acl_save_libdir="$libdir"
10841       libdir="$alldirs"
10842       eval flag=\"$hardcode_libdir_flag_spec\"
10843       libdir="$acl_save_libdir"
10844       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10845     else
10846             for found_dir in $rpathdirs; do
10847         acl_save_libdir="$libdir"
10848         libdir="$found_dir"
10849         eval flag=\"$hardcode_libdir_flag_spec\"
10850         libdir="$acl_save_libdir"
10851         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10852       done
10853     fi
10854   fi
10855   if test "X$ltrpathdirs" != "X"; then
10856             for found_dir in $ltrpathdirs; do
10857       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10858     done
10859   fi
10860
10861
10862
10863
10864
10865
10866
10867           am_save_CPPFLAGS="$CPPFLAGS"
10868
10869   for element in $INCICONV; do
10870     haveit=
10871     for x in $CPPFLAGS; do
10872
10873   acl_save_prefix="$prefix"
10874   prefix="$acl_final_prefix"
10875   acl_save_exec_prefix="$exec_prefix"
10876   exec_prefix="$acl_final_exec_prefix"
10877   eval x=\"$x\"
10878   exec_prefix="$acl_save_exec_prefix"
10879   prefix="$acl_save_prefix"
10880
10881       if test "X$x" = "X$element"; then
10882         haveit=yes
10883         break
10884       fi
10885     done
10886     if test -z "$haveit"; then
10887       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10888     fi
10889   done
10890
10891
10892   echo "$as_me:$LINENO: checking for iconv" >&5
10893 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10894 if test "${am_cv_func_iconv+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897
10898     am_cv_func_iconv="no, consider installing GNU libiconv"
10899     am_cv_lib_iconv=no
10900     cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 #include <stdlib.h>
10907 #include <iconv.h>
10908 int
10909 main ()
10910 {
10911 iconv_t cd = iconv_open("","");
10912        iconv(cd,NULL,NULL,NULL,NULL);
10913        iconv_close(cd);
10914   ;
10915   return 0;
10916 }
10917 _ACEOF
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10920   (eval $ac_link) 2>conftest.er1
10921   ac_status=$?
10922   grep -v '^ *+' conftest.er1 >conftest.err
10923   rm -f conftest.er1
10924   cat conftest.err >&5
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); } &&
10927          { ac_try='test -z "$ac_c_werror_flag"
10928                          || test ! -s conftest.err'
10929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10930   (eval $ac_try) 2>&5
10931   ac_status=$?
10932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933   (exit $ac_status); }; } &&
10934          { ac_try='test -s conftest$ac_exeext'
10935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936   (eval $ac_try) 2>&5
10937   ac_status=$?
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); }; }; then
10940   am_cv_func_iconv=yes
10941 else
10942   echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10944
10945 fi
10946 rm -f conftest.err conftest.$ac_objext \
10947       conftest$ac_exeext conftest.$ac_ext
10948     if test "$am_cv_func_iconv" != yes; then
10949       am_save_LIBS="$LIBS"
10950       LIBS="$LIBS $LIBICONV"
10951       cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h.  */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h.  */
10957 #include <stdlib.h>
10958 #include <iconv.h>
10959 int
10960 main ()
10961 {
10962 iconv_t cd = iconv_open("","");
10963          iconv(cd,NULL,NULL,NULL,NULL);
10964          iconv_close(cd);
10965   ;
10966   return 0;
10967 }
10968 _ACEOF
10969 rm -f conftest.$ac_objext conftest$ac_exeext
10970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10971   (eval $ac_link) 2>conftest.er1
10972   ac_status=$?
10973   grep -v '^ *+' conftest.er1 >conftest.err
10974   rm -f conftest.er1
10975   cat conftest.err >&5
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); } &&
10978          { ac_try='test -z "$ac_c_werror_flag"
10979                          || test ! -s conftest.err'
10980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981   (eval $ac_try) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; } &&
10985          { ac_try='test -s conftest$ac_exeext'
10986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10987   (eval $ac_try) 2>&5
10988   ac_status=$?
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); }; }; then
10991   am_cv_lib_iconv=yes
10992         am_cv_func_iconv=yes
10993 else
10994   echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10996
10997 fi
10998 rm -f conftest.err conftest.$ac_objext \
10999       conftest$ac_exeext conftest.$ac_ext
11000       LIBS="$am_save_LIBS"
11001     fi
11002
11003 fi
11004 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11005 echo "${ECHO_T}$am_cv_func_iconv" >&6
11006   if test "$am_cv_func_iconv" = yes; then
11007
11008 cat >>confdefs.h <<\_ACEOF
11009 #define HAVE_ICONV 1
11010 _ACEOF
11011
11012   fi
11013   if test "$am_cv_lib_iconv" = yes; then
11014     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11015 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11016     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11017 echo "${ECHO_T}$LIBICONV" >&6
11018   else
11019             CPPFLAGS="$am_save_CPPFLAGS"
11020     LIBICONV=
11021     LTLIBICONV=
11022   fi
11023
11024
11025
11026   if test "$am_cv_func_iconv" = yes; then
11027     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11028 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11029     if test "${am_cv_proto_iconv+set}" = set; then
11030   echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032
11033       cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039
11040 #include <stdlib.h>
11041 #include <iconv.h>
11042 extern
11043 #ifdef __cplusplus
11044 "C"
11045 #endif
11046 #if defined(__STDC__) || defined(__cplusplus)
11047 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11048 #else
11049 size_t iconv();
11050 #endif
11051
11052 int
11053 main ()
11054 {
11055
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062   (eval $ac_compile) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag"
11070                          || test ! -s conftest.err'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; } &&
11076          { ac_try='test -s conftest.$ac_objext'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; }; then
11082   am_cv_proto_iconv_arg1=""
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 am_cv_proto_iconv_arg1="const"
11088 fi
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090       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);"
11091 fi
11092
11093     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11094     echo "$as_me:$LINENO: result: ${ac_t:-
11095          }$am_cv_proto_iconv" >&5
11096 echo "${ECHO_T}${ac_t:-
11097          }$am_cv_proto_iconv" >&6
11098
11099 cat >>confdefs.h <<_ACEOF
11100 #define ICONV_CONST $am_cv_proto_iconv_arg1
11101 _ACEOF
11102
11103   fi
11104
11105 # Until we have in-tree GNU iconv:
11106 LIBICONV_DEP=
11107
11108
11109
11110   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11111 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11112 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   cat >conftest.$ac_ext <<_ACEOF
11116 /* confdefs.h.  */
11117 _ACEOF
11118 cat confdefs.h >>conftest.$ac_ext
11119 cat >>conftest.$ac_ext <<_ACEOF
11120 /* end confdefs.h.  */
11121 #include <locale.h>
11122 int
11123 main ()
11124 {
11125 return LC_MESSAGES
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132   (eval $ac_link) 2>conftest.er1
11133   ac_status=$?
11134   grep -v '^ *+' conftest.er1 >conftest.err
11135   rm -f conftest.er1
11136   cat conftest.err >&5
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); } &&
11139          { ac_try='test -z "$ac_c_werror_flag"
11140                          || test ! -s conftest.err'
11141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142   (eval $ac_try) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; } &&
11146          { ac_try='test -s conftest$ac_exeext'
11147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11148   (eval $ac_try) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); }; }; then
11152   am_cv_val_LC_MESSAGES=yes
11153 else
11154   echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 am_cv_val_LC_MESSAGES=no
11158 fi
11159 rm -f conftest.err conftest.$ac_objext \
11160       conftest$ac_exeext conftest.$ac_ext
11161 fi
11162 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11163 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11164   if test $am_cv_val_LC_MESSAGES = yes; then
11165
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_LC_MESSAGES 1
11168 _ACEOF
11169
11170   fi
11171
11172
11173
11174   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11175 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11176 if test "${am_cv_langinfo_codeset+set}" = set; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185 #include <langinfo.h>
11186 int
11187 main ()
11188 {
11189 char* cs = nl_langinfo(CODESET);
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196   (eval $ac_link) 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } &&
11203          { ac_try='test -z "$ac_c_werror_flag"
11204                          || test ! -s conftest.err'
11205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206   (eval $ac_try) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; } &&
11210          { ac_try='test -s conftest$ac_exeext'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; }; then
11216   am_cv_langinfo_codeset=yes
11217 else
11218   echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 am_cv_langinfo_codeset=no
11222 fi
11223 rm -f conftest.err conftest.$ac_objext \
11224       conftest$ac_exeext conftest.$ac_ext
11225
11226 fi
11227 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11228 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11229   if test $am_cv_langinfo_codeset = yes; then
11230
11231 cat >>confdefs.h <<\_ACEOF
11232 #define HAVE_LANGINFO_CODESET 1
11233 _ACEOF
11234
11235   fi
11236
11237
11238 # We will need to find libiberty.h and ansidecl.h
11239 saved_CFLAGS="$CFLAGS"
11240 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11241
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 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11281         strsignal strstr strverscmp \
11282         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11283         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
11284 do
11285   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11286 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11287 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11288 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11289   echo $ECHO_N "(cached) $ECHO_C" >&6
11290 else
11291   cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h.  */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h.  */
11297 #undef $ac_tr_decl
11298 #define $ac_tr_decl 1
11299
11300 #include "ansidecl.h"
11301 #include "system.h"
11302
11303 int
11304 main ()
11305 {
11306 #ifndef $ac_func
11307 char *(*pfn) = (char *(*)) $ac_func ;
11308 #endif
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 rm -f conftest.$ac_objext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11315   (eval $ac_compile) 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } &&
11322          { ac_try='test -z "$ac_c_werror_flag"
11323                          || test ! -s conftest.err'
11324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325   (eval $ac_try) 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); }; } &&
11329          { ac_try='test -s conftest.$ac_objext'
11330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331   (eval $ac_try) 2>&5
11332   ac_status=$?
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); }; }; then
11335   eval "gcc_cv_have_decl_$ac_func=yes"
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 eval "gcc_cv_have_decl_$ac_func=no"
11341 fi
11342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11343 fi
11344
11345 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11346   echo "$as_me:$LINENO: result: yes" >&5
11347 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11348 #define $ac_tr_decl 1
11349 _ACEOF
11350
11351 else
11352   echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11354 #define $ac_tr_decl 0
11355 _ACEOF
11356
11357 fi
11358
11359 done
11360
11361
11362
11363
11364
11365 for ac_func in getrlimit setrlimit getrusage
11366 do
11367   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11368 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11369 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11370 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11371   echo $ECHO_N "(cached) $ECHO_C" >&6
11372 else
11373   cat >conftest.$ac_ext <<_ACEOF
11374 /* confdefs.h.  */
11375 _ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h.  */
11379 #undef $ac_tr_decl
11380 #define $ac_tr_decl 1
11381
11382 #include "ansidecl.h"
11383 #include "system.h"
11384 #ifdef HAVE_SYS_RESOURCE_H
11385 #include <sys/resource.h>
11386 #endif
11387
11388
11389 int
11390 main ()
11391 {
11392 #ifndef $ac_func
11393 char *(*pfn) = (char *(*)) $ac_func ;
11394 #endif
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401   (eval $ac_compile) 2>conftest.er1
11402   ac_status=$?
11403   grep -v '^ *+' conftest.er1 >conftest.err
11404   rm -f conftest.er1
11405   cat conftest.err >&5
11406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407   (exit $ac_status); } &&
11408          { ac_try='test -z "$ac_c_werror_flag"
11409                          || test ! -s conftest.err'
11410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411   (eval $ac_try) 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   eval "gcc_cv_have_decl_$ac_func=yes"
11422 else
11423   echo "$as_me: failed program was:" >&5
11424 sed 's/^/| /' conftest.$ac_ext >&5
11425
11426 eval "gcc_cv_have_decl_$ac_func=no"
11427 fi
11428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11429 fi
11430
11431 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11432   echo "$as_me:$LINENO: result: yes" >&5
11433 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11434 #define $ac_tr_decl 1
11435 _ACEOF
11436
11437 else
11438   echo "$as_me:$LINENO: result: no" >&5
11439 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11440 #define $ac_tr_decl 0
11441 _ACEOF
11442
11443 fi
11444
11445 done
11446
11447
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h.  */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h.  */
11454
11455 #include "ansidecl.h"
11456 #include "system.h"
11457 #ifdef HAVE_SYS_RESOURCE_H
11458 #include <sys/resource.h>
11459 #endif
11460
11461 int
11462 main ()
11463 {
11464 rlim_t l = 0;
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471   (eval $ac_compile) 2>conftest.er1
11472   ac_status=$?
11473   grep -v '^ *+' conftest.er1 >conftest.err
11474   rm -f conftest.er1
11475   cat conftest.err >&5
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); } &&
11478          { ac_try='test -z "$ac_c_werror_flag"
11479                          || test ! -s conftest.err'
11480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481   (eval $ac_try) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; } &&
11485          { ac_try='test -s conftest.$ac_objext'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; }; then
11491   :
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496
11497 cat >>confdefs.h <<\_ACEOF
11498 #define rlim_t long
11499 _ACEOF
11500
11501 fi
11502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503
11504 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11505 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11506 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11507 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11508
11509 for ac_func in ldgetname
11510 do
11511   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11512 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11513 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11514 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 else
11517   cat >conftest.$ac_ext <<_ACEOF
11518 /* confdefs.h.  */
11519 _ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h.  */
11523 #undef $ac_tr_decl
11524 #define $ac_tr_decl 1
11525
11526 #include "ansidecl.h"
11527 #include "system.h"
11528 #ifdef HAVE_LDFCN_H
11529 #undef FREAD
11530 #undef FWRITE
11531 #include <ldfcn.h>
11532 #endif
11533
11534
11535 int
11536 main ()
11537 {
11538 #ifndef $ac_func
11539 char *(*pfn) = (char *(*)) $ac_func ;
11540 #endif
11541   ;
11542   return 0;
11543 }
11544 _ACEOF
11545 rm -f conftest.$ac_objext
11546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547   (eval $ac_compile) 2>conftest.er1
11548   ac_status=$?
11549   grep -v '^ *+' conftest.er1 >conftest.err
11550   rm -f conftest.er1
11551   cat conftest.err >&5
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); } &&
11554          { ac_try='test -z "$ac_c_werror_flag"
11555                          || test ! -s conftest.err'
11556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557   (eval $ac_try) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); }; } &&
11561          { ac_try='test -s conftest.$ac_objext'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; }; then
11567   eval "gcc_cv_have_decl_$ac_func=yes"
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 eval "gcc_cv_have_decl_$ac_func=no"
11573 fi
11574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11575 fi
11576
11577 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11578   echo "$as_me:$LINENO: result: yes" >&5
11579 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11580 #define $ac_tr_decl 1
11581 _ACEOF
11582
11583 else
11584   echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11586 #define $ac_tr_decl 0
11587 _ACEOF
11588
11589 fi
11590
11591 done
11592
11593
11594
11595 for ac_func in times
11596 do
11597   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11598 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11599 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11600 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609 #undef $ac_tr_decl
11610 #define $ac_tr_decl 1
11611
11612 #include "ansidecl.h"
11613 #include "system.h"
11614 #ifdef HAVE_SYS_TIMES_H
11615 #include <sys/times.h>
11616 #endif
11617
11618
11619 int
11620 main ()
11621 {
11622 #ifndef $ac_func
11623 char *(*pfn) = (char *(*)) $ac_func ;
11624 #endif
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631   (eval $ac_compile) 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -z "$ac_c_werror_flag"
11639                          || test ! -s conftest.err'
11640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641   (eval $ac_try) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; } &&
11645          { ac_try='test -s conftest.$ac_objext'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; }; then
11651   eval "gcc_cv_have_decl_$ac_func=yes"
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 eval "gcc_cv_have_decl_$ac_func=no"
11657 fi
11658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11659 fi
11660
11661 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11662   echo "$as_me:$LINENO: result: yes" >&5
11663 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11664 #define $ac_tr_decl 1
11665 _ACEOF
11666
11667 else
11668   echo "$as_me:$LINENO: result: no" >&5
11669 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11670 #define $ac_tr_decl 0
11671 _ACEOF
11672
11673 fi
11674
11675 done
11676
11677
11678 # More time-related stuff.
11679 echo "$as_me:$LINENO: checking for struct tms" >&5
11680 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11681 if test "${ac_cv_struct_tms+set}" = set; then
11682   echo $ECHO_N "(cached) $ECHO_C" >&6
11683 else
11684
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691
11692 #include "ansidecl.h"
11693 #include "system.h"
11694 #ifdef HAVE_SYS_TIMES_H
11695 #include <sys/times.h>
11696 #endif
11697
11698 int
11699 main ()
11700 {
11701 struct tms tms;
11702   ;
11703   return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11708   (eval $ac_compile) 2>conftest.er1
11709   ac_status=$?
11710   grep -v '^ *+' conftest.er1 >conftest.err
11711   rm -f conftest.er1
11712   cat conftest.err >&5
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); } &&
11715          { ac_try='test -z "$ac_c_werror_flag"
11716                          || test ! -s conftest.err'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; } &&
11722          { ac_try='test -s conftest.$ac_objext'
11723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724   (eval $ac_try) 2>&5
11725   ac_status=$?
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); }; }; then
11728   ac_cv_struct_tms=yes
11729 else
11730   echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 ac_cv_struct_tms=no
11734 fi
11735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11736 fi
11737 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11738 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11739 if test $ac_cv_struct_tms = yes; then
11740
11741 cat >>confdefs.h <<\_ACEOF
11742 #define HAVE_STRUCT_TMS 1
11743 _ACEOF
11744
11745 fi
11746
11747 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11748 # revisit after autoconf 2.50.
11749 echo "$as_me:$LINENO: checking for clock_t" >&5
11750 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11751 if test "${gcc_cv_type_clock_t+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761
11762 #include "ansidecl.h"
11763 #include "system.h"
11764
11765 int
11766 main ()
11767 {
11768 clock_t x;
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775   (eval $ac_compile) 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag"
11783                          || test ! -s conftest.err'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; } &&
11789          { ac_try='test -s conftest.$ac_objext'
11790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791   (eval $ac_try) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); }; }; then
11795   gcc_cv_type_clock_t=yes
11796 else
11797   echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11799
11800 gcc_cv_type_clock_t=no
11801 fi
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11803 fi
11804 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11805 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11806 if test $gcc_cv_type_clock_t = yes; then
11807
11808 cat >>confdefs.h <<\_ACEOF
11809 #define HAVE_CLOCK_T 1
11810 _ACEOF
11811
11812 fi
11813
11814 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11815 CFLAGS="$saved_CFLAGS"
11816
11817 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11818 if test "${enable_initfini_array+set}" = set; then
11819   enableval="$enable_initfini_array"
11820
11821 else
11822
11823 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11824 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11825 if test "${gcc_cv_initfini_array+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828     if test "$cross_compiling" = yes; then
11829   gcc_cv_initfini_array=no
11830 else
11831   cat >conftest.$ac_ext <<_ACEOF
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837
11838 static int x = -1;
11839 int main (void) { return x; }
11840 int foo (void) { x = 0; }
11841 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
11842 _ACEOF
11843 rm -f conftest$ac_exeext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11845   (eval $ac_link) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   gcc_cv_initfini_array=yes
11855 else
11856   echo "$as_me: program exited with status $ac_status" >&5
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ( exit $ac_status )
11861 gcc_cv_initfini_array=no
11862 fi
11863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11864 fi
11865 fi
11866 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
11867 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
11868   enable_initfini_array=$gcc_cv_initfini_array
11869
11870 fi;
11871 if test $enable_initfini_array = yes; then
11872
11873 cat >>confdefs.h <<\_ACEOF
11874 #define HAVE_INITFINI_ARRAY 1
11875 _ACEOF
11876
11877 fi
11878
11879 # mkdir takes a single argument on some systems.
11880 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
11881 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
11882 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891
11892 #include <sys/types.h>
11893 #ifdef HAVE_SYS_STAT_H
11894 # include <sys/stat.h>
11895 #endif
11896 #ifdef HAVE_UNISTD_H
11897 # include <unistd.h>
11898 #endif
11899 #ifdef HAVE_DIRECT_H
11900 # include <direct.h>
11901 #endif
11902 int
11903 main ()
11904 {
11905 mkdir ("foo", 0);
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11912   (eval $ac_compile) 2>conftest.er1
11913   ac_status=$?
11914   grep -v '^ *+' conftest.er1 >conftest.err
11915   rm -f conftest.er1
11916   cat conftest.err >&5
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); } &&
11919          { ac_try='test -z "$ac_c_werror_flag"
11920                          || test ! -s conftest.err'
11921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922   (eval $ac_try) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; } &&
11926          { ac_try='test -s conftest.$ac_objext'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932   gcc_cv_mkdir_takes_one_arg=no
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 gcc_cv_mkdir_takes_one_arg=yes
11938 fi
11939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11940 fi
11941 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
11942 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
11943 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11944
11945 cat >>confdefs.h <<\_ACEOF
11946 #define MKDIR_TAKES_ONE_ARG 1
11947 _ACEOF
11948
11949 fi
11950
11951
11952 # File extensions
11953 manext='.1'
11954 objext='.o'
11955
11956
11957
11958 # With Setjmp/Longjmp based exception handling.
11959 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
11960 if test "${enable_sjlj_exceptions+set}" = set; then
11961   enableval="$enable_sjlj_exceptions"
11962   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
11963
11964 cat >>confdefs.h <<_ACEOF
11965 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11966 _ACEOF
11967
11968 fi;
11969
11970 # For platforms with the unwind ABI which includes an unwind library,
11971 # libunwind, we can choose to use the system libunwind.
11972
11973 # Check whether --with-system-libunwind or --without-system-libunwind was given.
11974 if test "${with_system_libunwind+set}" = set; then
11975   withval="$with_system_libunwind"
11976
11977 fi;
11978
11979 # --------------------------------------------------------
11980 # Build, host, and target specific configuration fragments
11981 # --------------------------------------------------------
11982
11983 # Collect build-machine-specific information.
11984 . ${srcdir}/config.build
11985
11986 # Collect host-machine-specific information.
11987 . ${srcdir}/config.host
11988
11989 target_gtfiles=
11990
11991 # Collect target-machine-specific information.
11992 . ${srcdir}/config.gcc
11993
11994 extra_objs="${host_extra_objs} ${extra_objs}"
11995 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
11996
11997 # Default the target-machine variables that were not explicitly set.
11998 if test x"$tm_file" = x
11999 then tm_file=$cpu_type/$cpu_type.h; fi
12000
12001 if test x"$extra_headers" = x
12002 then extra_headers=; fi
12003
12004 if test x$md_file = x
12005 then md_file=$cpu_type/$cpu_type.md; fi
12006
12007 if test x$out_file = x
12008 then out_file=$cpu_type/$cpu_type.c; fi
12009
12010 if test x"$tmake_file" = x
12011 then tmake_file=$cpu_type/t-$cpu_type
12012 fi
12013
12014 if test x"$dwarf2" = xyes
12015 then tm_file="$tm_file tm-dwarf2.h"
12016 fi
12017
12018 # Say what files are being used for the output code and MD file.
12019 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12020 echo "Using \`$srcdir/config/$md_file' as machine description file."
12021
12022 # If any of the xm_file variables contain nonexistent files, warn
12023 # about them and drop them.
12024
12025 bx=
12026 for x in $build_xm_file; do
12027   if    test -f $srcdir/config/$x
12028   then      bx="$bx $x"
12029   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12030 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12031   fi
12032 done
12033 build_xm_file="$bx"
12034
12035 hx=
12036 for x in $host_xm_file; do
12037   if    test -f $srcdir/config/$x
12038   then      hx="$hx $x"
12039   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12040 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12041   fi
12042 done
12043 host_xm_file="$hx"
12044
12045 tx=
12046 for x in $xm_file; do
12047   if    test -f $srcdir/config/$x
12048   then      tx="$tx $x"
12049   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12050 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12051   fi
12052 done
12053 xm_file="$tx"
12054
12055 count=a
12056 for f in $tm_file; do
12057         count=${count}x
12058 done
12059 if test $count = ax; then
12060         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12061 else
12062         echo "Using the following target machine macro files:"
12063         for f in $tm_file; do
12064                 echo "  $srcdir/config/$f"
12065         done
12066 fi
12067
12068 if test x$need_64bit_hwint = xyes; then
12069
12070 cat >>confdefs.h <<\_ACEOF
12071 #define NEED_64BIT_HOST_WIDE_INT 1
12072 _ACEOF
12073
12074 fi
12075
12076 if test x$use_long_long_for_widest_fast_int = xyes; then
12077
12078 cat >>confdefs.h <<\_ACEOF
12079 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12080 _ACEOF
12081
12082 fi
12083
12084 count=a
12085 for f in $host_xm_file; do
12086         count=${count}x
12087 done
12088 if test $count = a; then
12089         :
12090 elif test $count = ax; then
12091         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12092 else
12093         echo "Using the following host machine macro files:"
12094         for f in $host_xm_file; do
12095                 echo "  $srcdir/config/$f"
12096         done
12097 fi
12098 echo "Using ${out_host_hook_obj} for host machine hooks."
12099
12100 if test "$host_xm_file" != "$build_xm_file"; then
12101         count=a
12102         for f in $build_xm_file; do
12103                 count=${count}x
12104         done
12105         if test $count = a; then
12106                 :
12107         elif test $count = ax; then
12108                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12109         else
12110                 echo "Using the following build machine macro files:"
12111                 for f in $build_xm_file; do
12112                         echo "  $srcdir/config/$f"
12113                 done
12114         fi
12115 fi
12116
12117 # ---------
12118 # Threading
12119 # ---------
12120
12121 # Check if a valid thread package
12122 case ${enable_threads} in
12123   "" | no)
12124     # No threads
12125     target_thread_file='single'
12126     ;;
12127   yes)
12128     # default
12129     target_thread_file='single'
12130     ;;
12131   aix | dce | gnat | irix | posix | posix95 | rtems | \
12132   single | solaris | vxworks | win32 )
12133     target_thread_file=${enable_threads}
12134     ;;
12135   *)
12136     echo "${enable_threads} is an unknown thread package" 1>&2
12137     exit 1
12138     ;;
12139 esac
12140
12141 if test x${thread_file} = x; then
12142   # No thread file set by target-specific clauses in config.gcc,
12143   # so use file chosen by default logic above
12144   thread_file=${target_thread_file}
12145 fi
12146
12147 # Make gthr-default.h if we have a thread file.
12148 gthread_flags=
12149 if test $thread_file != single; then
12150   rm -f gthr-default.h
12151   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12152   gthread_flags=-DHAVE_GTHR_DEFAULT
12153 fi
12154
12155
12156 # --------
12157 # UNSORTED
12158 # --------
12159
12160 use_cxa_atexit=no
12161 if test x$enable___cxa_atexit = xyes || \
12162    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12163   if test x$host = x$target; then
12164     echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12165 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12166 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12177 #define __cxa_atexit innocuous___cxa_atexit
12178
12179 /* System header to define __stub macros and hopefully few prototypes,
12180     which can conflict with char __cxa_atexit (); below.
12181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182     <limits.h> exists even on freestanding compilers.  */
12183
12184 #ifdef __STDC__
12185 # include <limits.h>
12186 #else
12187 # include <assert.h>
12188 #endif
12189
12190 #undef __cxa_atexit
12191
12192 /* Override any gcc2 internal prototype to avoid an error.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 {
12196 #endif
12197 /* We use char because int might match the return type of a gcc2
12198    builtin and then its argument prototype would still apply.  */
12199 char __cxa_atexit ();
12200 /* The GNU C library defines this for functions which it implements
12201     to always fail with ENOSYS.  Some functions are actually named
12202     something starting with __ and the normal name is an alias.  */
12203 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12204 choke me
12205 #else
12206 char (*f) () = __cxa_atexit;
12207 #endif
12208 #ifdef __cplusplus
12209 }
12210 #endif
12211
12212 int
12213 main ()
12214 {
12215 return f != __cxa_atexit;
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext conftest$ac_exeext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12222   (eval $ac_link) 2>conftest.er1
12223   ac_status=$?
12224   grep -v '^ *+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } &&
12229          { ac_try='test -z "$ac_c_werror_flag"
12230                          || test ! -s conftest.err'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest$ac_exeext'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   ac_cv_func___cxa_atexit=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 ac_cv_func___cxa_atexit=no
12248 fi
12249 rm -f conftest.err conftest.$ac_objext \
12250       conftest$ac_exeext conftest.$ac_ext
12251 fi
12252 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12253 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12254 if test $ac_cv_func___cxa_atexit = yes; then
12255   use_cxa_atexit=yes
12256 else
12257   echo "__cxa_atexit can't be enabled on this target"
12258 fi
12259
12260   else
12261     # We can't check for __cxa_atexit when building a cross, so assume
12262     # it is available
12263     use_cxa_atexit=yes
12264   fi
12265   if test x$use_cxa_atexit = xyes; then
12266
12267 cat >>confdefs.h <<\_ACEOF
12268 #define DEFAULT_USE_CXA_ATEXIT 1
12269 _ACEOF
12270
12271   fi
12272 fi
12273
12274 # Look for a file containing extra machine modes.
12275 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12276   extra_modes_file='$(srcdir)'/config/${extra_modes}
12277
12278
12279 cat >>confdefs.h <<_ACEOF
12280 #define EXTRA_MODES_FILE "config/$extra_modes"
12281 _ACEOF
12282
12283 fi
12284
12285 # Convert extra_options into a form suitable for Makefile use.
12286 extra_opt_files=
12287 for f in $extra_options; do
12288   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12289 done
12290
12291
12292 # auto-host.h is the file containing items generated by autoconf and is
12293 # the first file included by config.h.
12294 # If host=build, it is correct to have bconfig include auto-host.h
12295 # as well.  If host!=build, we are in error and need to do more
12296 # work to find out the build config parameters.
12297 if test x$host = x$build
12298 then
12299         build_auto=auto-host.h
12300 else
12301         # We create a subdir, then run autoconf in the subdir.
12302         # To prevent recursion we set host and build for the new
12303         # invocation of configure to the build for this invocation
12304         # of configure.
12305         tempdir=build.$$
12306         rm -rf $tempdir
12307         mkdir $tempdir
12308         cd $tempdir
12309         case ${srcdir} in
12310         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12311         *) realsrcdir=../${srcdir};;
12312         esac
12313         saved_CFLAGS="${CFLAGS}"
12314         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12315         ${realsrcdir}/configure \
12316                 --enable-languages=${enable_languages-all} \
12317                 --target=$target_alias --host=$build_alias --build=$build_alias
12318         CFLAGS="${saved_CFLAGS}"
12319
12320         # We just finished tests for the build machine, so rename
12321         # the file auto-build.h in the gcc directory.
12322         mv auto-host.h ../auto-build.h
12323         cd ..
12324         rm -rf $tempdir
12325         build_auto=auto-build.h
12326 fi
12327
12328
12329 tm_file="${tm_file} defaults.h"
12330 tm_p_file="${tm_p_file} tm-preds.h"
12331 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12332 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12333 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12334 # put this back in temporarily.
12335 xm_file="auto-host.h ansidecl.h ${xm_file}"
12336
12337 # --------
12338 # UNSORTED
12339 # --------
12340
12341 # Compile in configure arguments.
12342 if test -f configargs.h ; then
12343         # Being re-configured.
12344         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12345         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12346 else
12347         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12348 fi
12349
12350 # Double all backslashes and backslash all quotes to turn
12351 # gcc_config_arguments into a C string.
12352 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12353 $gcc_config_arguments
12354 EOF
12355 gcc_config_arguments_str=`cat conftest.out`
12356 rm -f conftest.out
12357
12358 cat > configargs.h <<EOF
12359 /* Generated automatically. */
12360 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12361 static const char thread_model[] = "$thread_file";
12362
12363 static const struct {
12364   const char *name, *value;
12365 } configure_default_options[] = $configure_default_options;
12366 EOF
12367
12368 # Internationalization
12369 # If we haven't got the data from the intl directory,
12370 # assume NLS is disabled.
12371 USE_NLS=no
12372 LIBINTL=
12373 LIBINTL_DEP=
12374 INCINTL=
12375 XGETTEXT=
12376 GMSGFMT=
12377 POSUB=
12378 if test -f ../intl/config.intl; then
12379   . ../intl/config.intl
12380 fi
12381 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12382 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12383 if test x"$USE_NLS" != xyes; then
12384   echo "$as_me:$LINENO: result: no" >&5
12385 echo "${ECHO_T}no" >&6
12386 else
12387   echo "$as_me:$LINENO: result: yes" >&5
12388 echo "${ECHO_T}yes" >&6
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define ENABLE_NLS 1
12392 _ACEOF
12393
12394
12395   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12396 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12397   # Look for .po and .gmo files in the source directory.
12398   CATALOGS=
12399   XLINGUAS=
12400   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12401     # If there aren't any .gmo files the shell will give us the
12402     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12403     # weeded out.
12404     case "$cat" in *\**)
12405       continue;;
12406     esac
12407     # The quadruple backslash is collapsed to a double backslash
12408     # by the backticks, then collapsed again by the double quotes,
12409     # leaving us with one backslash in the sed expression (right
12410     # before the dot that mustn't act as a wildcard).
12411     cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
12412     lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
12413     # The user is allowed to set LINGUAS to a list of languages to
12414     # install catalogs for.  If it's empty that means "all of them."
12415     if test "x$LINGUAS" = x; then
12416       CATALOGS="$CATALOGS $cat"
12417       XLINGUAS="$XLINGUAS $lang"
12418     else
12419       case "$LINGUAS" in *$lang*)
12420         CATALOGS="$CATALOGS $cat"
12421         XLINGUAS="$XLINGUAS $lang"
12422         ;;
12423       esac
12424     fi
12425   done
12426   LINGUAS="$XLINGUAS"
12427   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12428 echo "${ECHO_T}$LINGUAS" >&6
12429 fi
12430
12431 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12432 # -liconv on the link line twice.
12433 case "$LIBINTL" in *$LIBICONV*)
12434         LIBICONV= ;;
12435 esac
12436
12437 # Check whether --enable-secureplt or --disable-secureplt was given.
12438 if test "${enable_secureplt+set}" = set; then
12439   enableval="$enable_secureplt"
12440
12441 fi;
12442
12443 # Windows32 Registry support for specifying GCC installation paths.
12444 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12445 if test "${enable_win32_registry+set}" = set; then
12446   enableval="$enable_win32_registry"
12447
12448 fi;
12449
12450 case $host_os in
12451   win32 | pe | cygwin* | mingw32* | uwin*)
12452     if test "x$enable_win32_registry" != xno; then
12453       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12454 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12455 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   ac_func_search_save_LIBS=$LIBS
12459 ac_cv_search_RegOpenKeyExA=no
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 /* Override any gcc2 internal prototype to avoid an error.  */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 /* We use char because int might match the return type of a gcc2
12472    builtin and then its argument prototype would still apply.  */
12473 char RegOpenKeyExA ();
12474 int
12475 main ()
12476 {
12477 RegOpenKeyExA ();
12478   ;
12479   return 0;
12480 }
12481 _ACEOF
12482 rm -f conftest.$ac_objext conftest$ac_exeext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484   (eval $ac_link) 2>conftest.er1
12485   ac_status=$?
12486   grep -v '^ *+' conftest.er1 >conftest.err
12487   rm -f conftest.er1
12488   cat conftest.err >&5
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); } &&
12491          { ac_try='test -z "$ac_c_werror_flag"
12492                          || test ! -s conftest.err'
12493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494   (eval $ac_try) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); }; } &&
12498          { ac_try='test -s conftest$ac_exeext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   ac_cv_search_RegOpenKeyExA="none required"
12505 else
12506   echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509 fi
12510 rm -f conftest.err conftest.$ac_objext \
12511       conftest$ac_exeext conftest.$ac_ext
12512 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12513   for ac_lib in advapi32; do
12514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12515     cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h.  */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h.  */
12521
12522 /* Override any gcc2 internal prototype to avoid an error.  */
12523 #ifdef __cplusplus
12524 extern "C"
12525 #endif
12526 /* We use char because int might match the return type of a gcc2
12527    builtin and then its argument prototype would still apply.  */
12528 char RegOpenKeyExA ();
12529 int
12530 main ()
12531 {
12532 RegOpenKeyExA ();
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext conftest$ac_exeext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12539   (eval $ac_link) 2>conftest.er1
12540   ac_status=$?
12541   grep -v '^ *+' conftest.er1 >conftest.err
12542   rm -f conftest.er1
12543   cat conftest.err >&5
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -z "$ac_c_werror_flag"
12547                          || test ! -s conftest.err'
12548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549   (eval $ac_try) 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest$ac_exeext'
12554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555   (eval $ac_try) 2>&5
12556   ac_status=$?
12557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558   (exit $ac_status); }; }; then
12559   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12560 break
12561 else
12562   echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 fi
12566 rm -f conftest.err conftest.$ac_objext \
12567       conftest$ac_exeext conftest.$ac_ext
12568   done
12569 fi
12570 LIBS=$ac_func_search_save_LIBS
12571 fi
12572 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12573 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12574 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12575   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12576
12577 else
12578   enable_win32_registry=no
12579 fi
12580
12581     fi
12582
12583     if test "x$enable_win32_registry" != xno; then
12584
12585 cat >>confdefs.h <<\_ACEOF
12586 #define ENABLE_WIN32_REGISTRY 1
12587 _ACEOF
12588
12589
12590       if test "x$enable_win32_registry" != xyes \
12591          && test "x$enable_win32_registry" != x; then
12592
12593 cat >>confdefs.h <<_ACEOF
12594 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12595 _ACEOF
12596
12597       fi
12598     fi
12599   ;;
12600 esac
12601
12602 # Get an absolute path to the GCC top-level source directory
12603 holddir=`${PWDCMD-pwd}`
12604 cd $srcdir
12605 topdir=`${PWDCMD-pwd}`
12606 cd $holddir
12607
12608 # Conditionalize the makefile for this host machine.
12609 xmake_file=
12610 for f in ${host_xmake_file}
12611 do
12612         if test -f ${srcdir}/config/$f
12613         then
12614                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
12615         fi
12616 done
12617
12618 # Conditionalize the makefile for this target machine.
12619 tmake_file_=
12620 for f in ${tmake_file}
12621 do
12622         if test -f ${srcdir}/config/$f
12623         then
12624                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
12625         fi
12626 done
12627 tmake_file="${tmake_file_}"
12628
12629 # If the host doesn't support symlinks, modify CC in
12630 # FLAGS_TO_PASS so CC="stage1/xgcc -Bstage1/" works.
12631 # Otherwise, we can use "CC=$(CC)".
12632 rm -f symtest.tem
12633 case "$LN_S" in
12634         *-s*)
12635                 cc_set_by_configure="\$(CC)"
12636                 quoted_cc_set_by_configure="\$(CC)"
12637                 stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12638                 quoted_stage_prefix_set_by_configure="\$(STAGE_PREFIX)"
12639                 ;;
12640         *)
12641                 cc_set_by_configure="\`case '\$(CC)' in stage*) echo '\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\$(CC)';; esac\`"
12642                 quoted_cc_set_by_configure="\\\`case '\\\$(CC)' in stage*) echo '\\\$(CC)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(CC)';; esac\\\`"
12643                 stage_prefix_set_by_configure="\`case '\$(STAGE_PREFIX)' in stage*) echo '\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\$(STAGE_PREFIX)';; esac\`"
12644                 quoted_stage_prefix_set_by_configure="\\\`case '\\\$(STAGE_PREFIX)' in stage*) echo '\\\$(STAGE_PREFIX)' | sed -e 's|stage|../stage|g';; *) echo '\\\$(STAGE_PREFIX)';; esac\\\`"
12645                 ;;
12646 esac
12647
12648 # This is a terrible hack which will go away some day.
12649 host_cc_for_libada=${CC}
12650
12651
12652 out_object_file=`basename $out_file .c`.o
12653
12654 tm_file_list="options.h"
12655 tm_include_list="options.h"
12656 for f in $tm_file; do
12657   case $f in
12658     defaults.h )
12659        tm_file_list="${tm_file_list} \$(srcdir)/$f"
12660        tm_include_list="${tm_include_list} $f"
12661        ;;
12662     * )
12663        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
12664        tm_include_list="${tm_include_list} config/$f"
12665        ;;
12666   esac
12667 done
12668
12669 tm_p_file_list=
12670 tm_p_include_list=
12671 for f in $tm_p_file; do
12672   case $f in
12673     tm-preds.h )
12674        tm_p_file_list="${tm_p_file_list} $f"
12675        tm_p_include_list="${tm_p_include_list} $f"
12676        ;;
12677     * )
12678        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
12679        tm_p_include_list="${tm_p_include_list} config/$f"
12680   esac
12681 done
12682
12683 xm_file_list=
12684 xm_include_list=
12685 for f in $xm_file; do
12686   case $f in
12687     ansidecl.h )
12688        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
12689        xm_include_list="${xm_include_list} $f"
12690        ;;
12691     auto-host.h )
12692        xm_file_list="${xm_file_list} $f"
12693        xm_include_list="${xm_include_list} $f"
12694        ;;
12695     * )
12696        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
12697        xm_include_list="${xm_include_list} config/$f"
12698        ;;
12699   esac
12700 done
12701
12702 host_xm_file_list=
12703 host_xm_include_list=
12704 for f in $host_xm_file; do
12705   case $f in
12706     ansidecl.h )
12707        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
12708        host_xm_include_list="${host_xm_include_list} $f"
12709        ;;
12710     auto-host.h )
12711        host_xm_file_list="${host_xm_file_list} $f"
12712        host_xm_include_list="${host_xm_include_list} $f"
12713        ;;
12714     * )
12715        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
12716        host_xm_include_list="${host_xm_include_list} config/$f"
12717        ;;
12718   esac
12719 done
12720
12721 build_xm_file_list=
12722 for f in $build_xm_file; do
12723   case $f in
12724     ansidecl.h )
12725        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
12726        build_xm_include_list="${build_xm_include_list} $f"
12727        ;;
12728     auto-build.h | auto-host.h )
12729        build_xm_file_list="${build_xm_file_list} $f"
12730        build_xm_include_list="${build_xm_include_list} $f"
12731        ;;
12732     * )
12733        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
12734        build_xm_include_list="${build_xm_include_list} config/$f"
12735        ;;
12736   esac
12737 done
12738
12739 # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
12740 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12741 CROSS=
12742 ALL=all.internal
12743 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12744
12745 if test "x$with_build_sysroot" != x; then
12746   build_system_header_dir=$with_build_sysroot'$(NATIVE_SYSTEM_HEADER_DIR)'
12747 else
12748   # This value is used, even on a native system, because
12749   # CROSS_SYSTEM_HEADER_DIR is just
12750   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12751   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
12752 fi
12753
12754 if test x$host != x$target
12755 then
12756         CROSS="-DCROSS_COMPILE"
12757         ALL=all.cross
12758         SYSTEM_HEADER_DIR=$build_system_header_dir
12759         case "$host","$target" in
12760         # Darwin crosses can use the host system's libraries and headers,
12761         # because of the fat library support.  Of course, it must be the
12762         # same version of Darwin on both sides.  Allow the user to
12763         # just say --target=foo-darwin without a version number to mean
12764         # "the version on this system".
12765             *-*-darwin*,*-*-darwin*)
12766                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
12767                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
12768                 if test $hostos = $targetos -o $targetos = darwin ; then
12769                     CROSS=
12770                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
12771                     with_headers=yes
12772                 fi
12773                 ;;
12774
12775             i?86-*-*,x86_64-*-* \
12776             | powerpc*-*-*,powerpc64*-*-*)
12777                 CROSS="$CROSS -DNATIVE_CROSS" ;;
12778         esac
12779 elif test "x$TARGET_SYSTEM_ROOT" != x; then
12780         SYSTEM_HEADER_DIR=$build_system_header_dir
12781 fi
12782
12783 # If this is a cross-compiler that does not
12784 # have its own set of headers then define
12785 # inhibit_libc
12786
12787 # If this is using newlib, without having the headers available now,
12788 # then define inhibit_libc in LIBGCC2_CFLAGS.
12789 # This prevents libgcc2 from containing any code which requires libc
12790 # support.
12791 inhibit_libc=false
12792 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
12793        test x$with_newlib = xyes ; } &&
12794      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
12795        inhibit_libc=true
12796 fi
12797
12798
12799 # When building gcc with a cross-compiler, we need to adjust things so
12800 # that the generator programs are still built with the native compiler.
12801 # Also, we cannot run fixincludes or fix-header.
12802
12803 # These are the normal (build=host) settings:
12804 CC_FOR_BUILD='$(CC)'
12805 BUILD_CFLAGS='$(ALL_CFLAGS)'
12806 STMP_FIXINC=stmp-fixinc
12807
12808 # Possibly disable fixproto, on a per-target basis.
12809 case ${use_fixproto} in
12810   no)
12811     STMP_FIXPROTO=
12812     ;;
12813   yes)
12814     STMP_FIXPROTO=stmp-fixproto
12815     ;;
12816 esac
12817
12818
12819 # And these apply if build != host, or we are generating coverage data
12820 if test x$build != x$host || test "x$coverage_flags" != x
12821 then
12822     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12823
12824     if test "x$TARGET_SYSTEM_ROOT" = x; then
12825         if test "x$STMP_FIXPROTO" != x; then
12826           STMP_FIXPROTO=stmp-install-fixproto
12827         fi
12828     fi
12829 fi
12830
12831 # Expand extra_headers to include complete path.
12832 # This substitutes for lots of t-* files.
12833 extra_headers_list=
12834 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12835 for file in ${extra_headers} ; do
12836   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12837 done
12838
12839 # Define collect2 in Makefile.
12840 case $host_can_use_collect2 in
12841   no) collect2= ;;
12842   *) collect2='collect2$(exeext)' ;;
12843 esac
12844
12845
12846 # Add a definition of USE_COLLECT2 if system wants one.
12847 case $use_collect2 in
12848   no) use_collect2= ;;
12849   "") ;;
12850   *)
12851     host_xm_defines="${host_xm_defines} USE_COLLECT2"
12852     xm_defines="${xm_defines} USE_COLLECT2"
12853     case $host_can_use_collect2 in
12854       no)
12855         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
12856 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
12857    { (exit 1); exit 1; }; }
12858         ;;
12859     esac
12860     ;;
12861 esac
12862
12863 # ---------------------------
12864 # Assembler & linker features
12865 # ---------------------------
12866
12867 # Identify the assembler which will work hand-in-glove with the newly
12868 # built GCC, so that we can examine its features.  This is the assembler
12869 # which will be driven by the driver program.
12870 #
12871 # If build != host, and we aren't building gas in-tree, we identify a
12872 # build->target assembler and hope that it will have the same features
12873 # as the host->target assembler we'll be using.
12874 in_tree_gas=no
12875 gcc_cv_as=
12876 gcc_cv_gas_major_version=
12877 gcc_cv_gas_minor_version=
12878 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
12879 if test -x "$DEFAULT_ASSEMBLER"; then
12880         gcc_cv_as="$DEFAULT_ASSEMBLER"
12881 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
12882      && test -f ../gas/Makefile \
12883      && test x$build = x$host; then
12884   # Single tree build which includes gas.  We want to prefer it
12885   # over whatever linker top-level may have detected, since
12886   # we'll use what we're building after installation anyway.
12887   in_tree_gas=yes
12888   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
12889 for f in $gcc_cv_as_bfd_srcdir/configure \
12890          $gcc_cv_as_gas_srcdir/configure \
12891          $gcc_cv_as_gas_srcdir/configure.in \
12892          $gcc_cv_as_gas_srcdir/Makefile.in ; do
12893   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
12894   if test x$gcc_cv_gas_version != x; then
12895     break
12896   fi
12897 done
12898 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
12899 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
12900 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
12901 case $gcc_cv_gas_patch_version in
12902   "") gcc_cv_gas_patch_version="0" ;;
12903 esac
12904 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
12905                             + $gcc_cv_gas_minor_version \) \* 1000 \
12906                             + $gcc_cv_gas_patch_version`
12907
12908   gcc_cv_as=../gas/as-new$build_exeext
12909   in_tree_gas_is_elf=no
12910   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
12911      || (grep 'obj_format = multi' ../gas/Makefile \
12912          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
12913   then
12914     in_tree_gas_is_elf=yes
12915   fi
12916 elif test -x as$build_exeext; then
12917         # Build using assembler in the current directory.
12918         gcc_cv_as=./as$build_exeext
12919 fi
12920
12921
12922 # When searching for the assembler or linker, search the same directories
12923 # that the installed compiler will search.  Else we may find the wrong
12924 # assembler or linker and lose.  If we do not find a suitable binary,
12925 # then try the user's path.
12926 #
12927 # Also note we have to check MD_EXEC_PREFIX before checking the user's path.
12928 if test "x$exec_prefix" = xNONE; then
12929         if test "x$prefix" = xNONE; then
12930                 gcc_cv_tool_prefix=/usr/local
12931         else
12932                 gcc_cv_tool_prefix=$prefix
12933         fi
12934 else
12935         gcc_cv_tool_prefix=$exec_prefix
12936 fi
12937
12938 if test x$host = x$build; then
12939     gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version"
12940     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical"
12941     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical/$gcc_version"
12942     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR/usr/lib/gcc/$target_noncanonical"
12943     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version"
12944     gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$gcc_cv_tool_prefix/$target_noncanonical/bin"
12945 else
12946     gcc_cv_tool_dirs=
12947 fi
12948
12949 if test x$build = x$target; then
12950     # Rummage through tm_files looking for MD_EXEC_PREFIX
12951     md_dirs=
12952     for f in ${tm_file_list}; do
12953         if test -f $f; then
12954             if grep '^#[        ]*undef[        ]*MD_EXEC_PREFIX' $f > /dev/null; then
12955                 md_dirs=
12956             fi
12957             md_dirs="$md_dirs "`sed -n -e 's@^#[        ]*define[       ]*MD_EXEC_PREFIX[       ]*"\(.*\)/"@\1@p' < $f`
12958         fi
12959     done
12960     for f in ${md_dirs}; do
12961         gcc_cv_tool_dirs="$gcc_cv_tool_dirs$PATH_SEPARATOR$f"
12962     done
12963 fi
12964
12965
12966
12967
12968 exec 6>/dev/null
12969
12970 # First try the environment variables.  Handle full paths or basenames.
12971 if test "x$gcc_cv_as" = x && test -n "$AS_FOR_TARGET"; then
12972         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
12973 set dummy $AS_FOR_TARGET; ac_word=$2
12974 echo "$as_me:$LINENO: checking for $ac_word" >&5
12975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12976 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
12977   echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979   case $gcc_cv_as in
12980   [\\/]* | ?:[\\/]*)
12981   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
12982   ;;
12983   *)
12984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12985 for as_dir in $PATH
12986 do
12987   IFS=$as_save_IFS
12988   test -z "$as_dir" && as_dir=.
12989   for ac_exec_ext in '' $ac_executable_extensions; do
12990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12991     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
12992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12993     break 2
12994   fi
12995 done
12996 done
12997
12998   ;;
12999 esac
13000 fi
13001 gcc_cv_as=$ac_cv_path_gcc_cv_as
13002
13003 if test -n "$gcc_cv_as"; then
13004   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13005 echo "${ECHO_T}$gcc_cv_as" >&6
13006 else
13007   echo "$as_me:$LINENO: result: no" >&5
13008 echo "${ECHO_T}no" >&6
13009 fi
13010
13011 fi
13012 if test "x$gcc_cv_as" = x && test -n "$AS" && test x$host = x$target; then
13013         # Extract the first word of "$AS", so it can be a program name with args.
13014 set dummy $AS; ac_word=$2
13015 echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13017 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   case $gcc_cv_as in
13021   [\\/]* | ?:[\\/]*)
13022   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13023   ;;
13024   *)
13025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028   IFS=$as_save_IFS
13029   test -z "$as_dir" && as_dir=.
13030   for ac_exec_ext in '' $ac_executable_extensions; do
13031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13032     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034     break 2
13035   fi
13036 done
13037 done
13038
13039   ;;
13040 esac
13041 fi
13042 gcc_cv_as=$ac_cv_path_gcc_cv_as
13043
13044 if test -n "$gcc_cv_as"; then
13045   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13046 echo "${ECHO_T}$gcc_cv_as" >&6
13047 else
13048   echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6
13050 fi
13051
13052 fi
13053
13054 if test "x$gcc_cv_as" = x; then
13055         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13056         # is empty.
13057         if test "x$gcc_cv_tool_dirs" = x; then
13058                 gcc_cv_as=
13059         else
13060                 for ac_prog in as
13061 do
13062   # Extract the first word of "$ac_prog", so it can be a program name with args.
13063 set dummy $ac_prog; ac_word=$2
13064 echo "$as_me:$LINENO: checking for $ac_word" >&5
13065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13066 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   case $gcc_cv_as in
13070   [\\/]* | ?:[\\/]*)
13071   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13072   ;;
13073   *)
13074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $gcc_cv_tool_dirs
13076 do
13077   IFS=$as_save_IFS
13078   test -z "$as_dir" && as_dir=.
13079   for ac_exec_ext in '' $ac_executable_extensions; do
13080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13083     break 2
13084   fi
13085 done
13086 done
13087
13088   ;;
13089 esac
13090 fi
13091 gcc_cv_as=$ac_cv_path_gcc_cv_as
13092
13093 if test -n "$gcc_cv_as"; then
13094   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13095 echo "${ECHO_T}$gcc_cv_as" >&6
13096 else
13097   echo "$as_me:$LINENO: result: no" >&5
13098 echo "${ECHO_T}no" >&6
13099 fi
13100
13101   test -n "$gcc_cv_as" && break
13102 done
13103
13104         fi
13105 fi
13106 if test "x$gcc_cv_as" = x; then
13107         # If the loop above did not find a tool, then use whatever
13108         # one we can find in the users's path.  We are looking for a
13109         # ${build} -> ${target} tool.
13110         if test "x$program_prefix" != xNONE; then
13111                 default_tool_name=${program_prefix}as
13112         elif test x$build != x$host && test x$build != x$target; then
13113                 default_tool_name=${target_noncanonical}-as
13114         else
13115                 default_tool_name=`echo as | sed "${program_transform_name}"`
13116         fi
13117         for ac_prog in $default_tool_name
13118 do
13119   # Extract the first word of "$ac_prog", so it can be a program name with args.
13120 set dummy $ac_prog; ac_word=$2
13121 echo "$as_me:$LINENO: checking for $ac_word" >&5
13122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13123 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126   case $gcc_cv_as in
13127   [\\/]* | ?:[\\/]*)
13128   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13129   ;;
13130   *)
13131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134   IFS=$as_save_IFS
13135   test -z "$as_dir" && as_dir=.
13136   for ac_exec_ext in '' $ac_executable_extensions; do
13137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13138     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13140     break 2
13141   fi
13142 done
13143 done
13144
13145   ;;
13146 esac
13147 fi
13148 gcc_cv_as=$ac_cv_path_gcc_cv_as
13149
13150 if test -n "$gcc_cv_as"; then
13151   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13152 echo "${ECHO_T}$gcc_cv_as" >&6
13153 else
13154   echo "$as_me:$LINENO: result: no" >&5
13155 echo "${ECHO_T}no" >&6
13156 fi
13157
13158   test -n "$gcc_cv_as" && break
13159 done
13160 test -n "$gcc_cv_as" || gcc_cv_as="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13161
13162 fi
13163 test "$silent" != yes && exec 6>&1
13164
13165 ORIGINAL_AS_FOR_TARGET="$gcc_cv_as"
13166
13167 echo "$as_me:$LINENO: checking what assembler to use" >&5
13168 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13169 case $in_tree_gas in
13170   yes)
13171     echo "$as_me:$LINENO: result: \"newly built gas\"" >&5
13172 echo "${ECHO_T}\"newly built gas\"" >&6
13173     ;;
13174   no)
13175     echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13176 echo "${ECHO_T}$gcc_cv_as" >&6
13177     ;;
13178 esac
13179
13180 # Identify the linker which will work hand-in-glove with the newly
13181 # built GCC, so that we can examine its features.  This is the linker
13182 # which will be driven by the driver program.
13183 #
13184 # If build != host, and we aren't building gas in-tree, we identify a
13185 # build->target linker and hope that it will have the same features
13186 # as the host->target linker we'll be using.
13187 in_tree_ld=no
13188 gcc_cv_ld=
13189 gcc_cv_gld_major_version=
13190 gcc_cv_gld_minor_version=
13191 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13192 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13193 if test -x "$DEFAULT_LINKER"; then
13194         gcc_cv_ld="$DEFAULT_LINKER"
13195 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13196      && test -f ../ld/Makefile \
13197      && test x$build = x$host; then
13198         # Single tree build which includes ld.  We want to prefer it
13199         # over whatever linker top-level may have detected, since
13200         # we'll use what we're building after installation anyway.
13201         in_tree_ld=yes
13202         in_tree_ld_is_elf=no
13203         if (grep 'EMUL = .*elf' ../ld/Makefile \
13204             || grep 'EMUL = .*linux' ../ld/Makefile \
13205             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13206           in_tree_ld_is_elf=yes
13207         fi
13208         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
13209         do
13210                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13211                 if test x$gcc_cv_gld_version != x; then
13212                         break
13213                 fi
13214         done
13215         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13216         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13217         gcc_cv_ld=../ld/ld-new$build_exeext
13218 elif test -x collect-ld$build_exeext; then
13219         # Build using linker in the current directory.
13220         gcc_cv_ld=./collect-ld$build_exeext
13221 fi
13222
13223
13224
13225
13226
13227 exec 6>/dev/null
13228
13229 # First try the environment variables.  Handle full paths or basenames.
13230 if test "x$gcc_cv_ld" = x && test -n "$LD_FOR_TARGET"; then
13231         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13232 set dummy $LD_FOR_TARGET; ac_word=$2
13233 echo "$as_me:$LINENO: checking for $ac_word" >&5
13234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13235 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   case $gcc_cv_ld in
13239   [\\/]* | ?:[\\/]*)
13240   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13241   ;;
13242   *)
13243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246   IFS=$as_save_IFS
13247   test -z "$as_dir" && as_dir=.
13248   for ac_exec_ext in '' $ac_executable_extensions; do
13249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13252     break 2
13253   fi
13254 done
13255 done
13256
13257   ;;
13258 esac
13259 fi
13260 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13261
13262 if test -n "$gcc_cv_ld"; then
13263   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13264 echo "${ECHO_T}$gcc_cv_ld" >&6
13265 else
13266   echo "$as_me:$LINENO: result: no" >&5
13267 echo "${ECHO_T}no" >&6
13268 fi
13269
13270 fi
13271 if test "x$gcc_cv_ld" = x && test -n "$LD" && test x$host = x$target; then
13272         # Extract the first word of "$LD", so it can be a program name with args.
13273 set dummy $LD; ac_word=$2
13274 echo "$as_me:$LINENO: checking for $ac_word" >&5
13275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13276 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   case $gcc_cv_ld in
13280   [\\/]* | ?:[\\/]*)
13281   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13282   ;;
13283   *)
13284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287   IFS=$as_save_IFS
13288   test -z "$as_dir" && as_dir=.
13289   for ac_exec_ext in '' $ac_executable_extensions; do
13290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293     break 2
13294   fi
13295 done
13296 done
13297
13298   ;;
13299 esac
13300 fi
13301 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13302
13303 if test -n "$gcc_cv_ld"; then
13304   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13305 echo "${ECHO_T}$gcc_cv_ld" >&6
13306 else
13307   echo "$as_me:$LINENO: result: no" >&5
13308 echo "${ECHO_T}no" >&6
13309 fi
13310
13311 fi
13312
13313 if test "x$gcc_cv_ld" = x; then
13314         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13315         # is empty.
13316         if test "x$gcc_cv_tool_dirs" = x; then
13317                 gcc_cv_ld=
13318         else
13319                 for ac_prog in ld
13320 do
13321   # Extract the first word of "$ac_prog", so it can be a program name with args.
13322 set dummy $ac_prog; ac_word=$2
13323 echo "$as_me:$LINENO: checking for $ac_word" >&5
13324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13325 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13326   echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328   case $gcc_cv_ld in
13329   [\\/]* | ?:[\\/]*)
13330   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13331   ;;
13332   *)
13333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $gcc_cv_tool_dirs
13335 do
13336   IFS=$as_save_IFS
13337   test -z "$as_dir" && as_dir=.
13338   for ac_exec_ext in '' $ac_executable_extensions; do
13339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13342     break 2
13343   fi
13344 done
13345 done
13346
13347   ;;
13348 esac
13349 fi
13350 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13351
13352 if test -n "$gcc_cv_ld"; then
13353   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13354 echo "${ECHO_T}$gcc_cv_ld" >&6
13355 else
13356   echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6
13358 fi
13359
13360   test -n "$gcc_cv_ld" && break
13361 done
13362
13363         fi
13364 fi
13365 if test "x$gcc_cv_ld" = x; then
13366         # If the loop above did not find a tool, then use whatever
13367         # one we can find in the users's path.  We are looking for a
13368         # ${build} -> ${target} tool.
13369         if test "x$program_prefix" != xNONE; then
13370                 default_tool_name=${program_prefix}ld
13371         elif test x$build != x$host && test x$build != x$target; then
13372                 default_tool_name=${target_noncanonical}-ld
13373         else
13374                 default_tool_name=`echo ld | sed "${program_transform_name}"`
13375         fi
13376         for ac_prog in $default_tool_name
13377 do
13378   # Extract the first word of "$ac_prog", so it can be a program name with args.
13379 set dummy $ac_prog; ac_word=$2
13380 echo "$as_me:$LINENO: checking for $ac_word" >&5
13381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13382 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   case $gcc_cv_ld in
13386   [\\/]* | ?:[\\/]*)
13387   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13388   ;;
13389   *)
13390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13391 for as_dir in $PATH
13392 do
13393   IFS=$as_save_IFS
13394   test -z "$as_dir" && as_dir=.
13395   for ac_exec_ext in '' $ac_executable_extensions; do
13396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13397     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13399     break 2
13400   fi
13401 done
13402 done
13403
13404   ;;
13405 esac
13406 fi
13407 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13408
13409 if test -n "$gcc_cv_ld"; then
13410   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13411 echo "${ECHO_T}$gcc_cv_ld" >&6
13412 else
13413   echo "$as_me:$LINENO: result: no" >&5
13414 echo "${ECHO_T}no" >&6
13415 fi
13416
13417   test -n "$gcc_cv_ld" && break
13418 done
13419 test -n "$gcc_cv_ld" || gcc_cv_ld="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13420
13421 fi
13422 test "$silent" != yes && exec 6>&1
13423
13424 ORIGINAL_LD_FOR_TARGET="$gcc_cv_ld"
13425
13426 echo "$as_me:$LINENO: checking what linker to use" >&5
13427 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13428 case $in_tree_ld in
13429   yes)
13430     echo "$as_me:$LINENO: result: \"newly built ld\"" >&5
13431 echo "${ECHO_T}\"newly built ld\"" >&6
13432     ;;
13433   no)
13434     echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13435 echo "${ECHO_T}$gcc_cv_ld" >&6
13436     ;;
13437 esac
13438
13439 # Figure out what nm we will be using.
13440 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13441 in_tree_nm=no
13442 gcc_cv_nm=
13443 if test -f $gcc_cv_binutils_srcdir/configure.in \
13444      && test -f ../binutils/Makefile; then
13445         # Single tree build which includes binutils.
13446         in_tree_nm=yes
13447         gcc_cv_nm=../binutils/nm-new$build_exeext
13448 elif test -x nm$build_exeext; then
13449         gcc_cv_nm=./nm$build_exeext
13450 fi
13451
13452
13453
13454
13455
13456 exec 6>/dev/null
13457
13458 # First try the environment variables.  Handle full paths or basenames.
13459 if test "x$gcc_cv_nm" = x && test -n "$NM_FOR_TARGET"; then
13460         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13461 set dummy $NM_FOR_TARGET; ac_word=$2
13462 echo "$as_me:$LINENO: checking for $ac_word" >&5
13463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13464 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   case $gcc_cv_nm in
13468   [\\/]* | ?:[\\/]*)
13469   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13470   ;;
13471   *)
13472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473 for as_dir in $PATH
13474 do
13475   IFS=$as_save_IFS
13476   test -z "$as_dir" && as_dir=.
13477   for ac_exec_ext in '' $ac_executable_extensions; do
13478   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13479     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13480     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13481     break 2
13482   fi
13483 done
13484 done
13485
13486   ;;
13487 esac
13488 fi
13489 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13490
13491 if test -n "$gcc_cv_nm"; then
13492   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13493 echo "${ECHO_T}$gcc_cv_nm" >&6
13494 else
13495   echo "$as_me:$LINENO: result: no" >&5
13496 echo "${ECHO_T}no" >&6
13497 fi
13498
13499 fi
13500 if test "x$gcc_cv_nm" = x && test -n "$NM" && test x$host = x$target; then
13501         # Extract the first word of "$NM", so it can be a program name with args.
13502 set dummy $NM; ac_word=$2
13503 echo "$as_me:$LINENO: checking for $ac_word" >&5
13504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13505 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13506   echo $ECHO_N "(cached) $ECHO_C" >&6
13507 else
13508   case $gcc_cv_nm in
13509   [\\/]* | ?:[\\/]*)
13510   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13511   ;;
13512   *)
13513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13514 for as_dir in $PATH
13515 do
13516   IFS=$as_save_IFS
13517   test -z "$as_dir" && as_dir=.
13518   for ac_exec_ext in '' $ac_executable_extensions; do
13519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13520     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13522     break 2
13523   fi
13524 done
13525 done
13526
13527   ;;
13528 esac
13529 fi
13530 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13531
13532 if test -n "$gcc_cv_nm"; then
13533   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13534 echo "${ECHO_T}$gcc_cv_nm" >&6
13535 else
13536   echo "$as_me:$LINENO: result: no" >&5
13537 echo "${ECHO_T}no" >&6
13538 fi
13539
13540 fi
13541
13542 if test "x$gcc_cv_nm" = x; then
13543         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13544         # is empty.
13545         if test "x$gcc_cv_tool_dirs" = x; then
13546                 gcc_cv_nm=
13547         else
13548                 for ac_prog in nm
13549 do
13550   # Extract the first word of "$ac_prog", so it can be a program name with args.
13551 set dummy $ac_prog; ac_word=$2
13552 echo "$as_me:$LINENO: checking for $ac_word" >&5
13553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13554 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13555   echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557   case $gcc_cv_nm in
13558   [\\/]* | ?:[\\/]*)
13559   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13560   ;;
13561   *)
13562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563 for as_dir in $gcc_cv_tool_dirs
13564 do
13565   IFS=$as_save_IFS
13566   test -z "$as_dir" && as_dir=.
13567   for ac_exec_ext in '' $ac_executable_extensions; do
13568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13569     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13571     break 2
13572   fi
13573 done
13574 done
13575
13576   ;;
13577 esac
13578 fi
13579 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13580
13581 if test -n "$gcc_cv_nm"; then
13582   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13583 echo "${ECHO_T}$gcc_cv_nm" >&6
13584 else
13585   echo "$as_me:$LINENO: result: no" >&5
13586 echo "${ECHO_T}no" >&6
13587 fi
13588
13589   test -n "$gcc_cv_nm" && break
13590 done
13591
13592         fi
13593 fi
13594 if test "x$gcc_cv_nm" = x; then
13595         # If the loop above did not find a tool, then use whatever
13596         # one we can find in the users's path.  We are looking for a
13597         # ${build} -> ${target} tool.
13598         if test "x$program_prefix" != xNONE; then
13599                 default_tool_name=${program_prefix}nm
13600         elif test x$build != x$host && test x$build != x$target; then
13601                 default_tool_name=${target_noncanonical}-nm
13602         else
13603                 default_tool_name=`echo nm | sed "${program_transform_name}"`
13604         fi
13605         for ac_prog in $default_tool_name
13606 do
13607   # Extract the first word of "$ac_prog", so it can be a program name with args.
13608 set dummy $ac_prog; ac_word=$2
13609 echo "$as_me:$LINENO: checking for $ac_word" >&5
13610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13611 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   case $gcc_cv_nm in
13615   [\\/]* | ?:[\\/]*)
13616   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13617   ;;
13618   *)
13619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620 for as_dir in $PATH
13621 do
13622   IFS=$as_save_IFS
13623   test -z "$as_dir" && as_dir=.
13624   for ac_exec_ext in '' $ac_executable_extensions; do
13625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13628     break 2
13629   fi
13630 done
13631 done
13632
13633   ;;
13634 esac
13635 fi
13636 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13637
13638 if test -n "$gcc_cv_nm"; then
13639   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13640 echo "${ECHO_T}$gcc_cv_nm" >&6
13641 else
13642   echo "$as_me:$LINENO: result: no" >&5
13643 echo "${ECHO_T}no" >&6
13644 fi
13645
13646   test -n "$gcc_cv_nm" && break
13647 done
13648 test -n "$gcc_cv_nm" || gcc_cv_nm="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13649
13650 fi
13651 test "$silent" != yes && exec 6>&1
13652
13653 ORIGINAL_NM_FOR_TARGET="$gcc_cv_nm"
13654
13655 echo "$as_me:$LINENO: checking what nm to use" >&5
13656 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13657 case $in_tree_nm in
13658   yes) echo "$as_me:$LINENO: result: \"newly built nm\"" >&5
13659 echo "${ECHO_T}\"newly built nm\"" >&6 ;;
13660   no)  echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13661 echo "${ECHO_T}$gcc_cv_nm" >&6 ;;
13662 esac
13663
13664 # Figure out what objdump we will be using.
13665 in_tree_objdump=no
13666 gcc_cv_objdump=
13667 if test -f $gcc_cv_binutils_srcdir/configure.in \
13668      && test -f ../binutils/Makefile; then
13669         # Single tree build which includes binutils.
13670         in_tree_objdump=yes
13671         gcc_cv_objdump=../binutils/objdump$build_exeext
13672 elif test -x objdump$build_exeext; then
13673         gcc_cv_objdump=./objdump$build_exeext
13674 fi
13675
13676
13677
13678
13679
13680 exec 6>/dev/null
13681
13682 # First try the environment variables.  Handle full paths or basenames.
13683 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP_FOR_TARGET"; then
13684         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13685 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13686 echo "$as_me:$LINENO: checking for $ac_word" >&5
13687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13688 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13689   echo $ECHO_N "(cached) $ECHO_C" >&6
13690 else
13691   case $gcc_cv_objdump in
13692   [\\/]* | ?:[\\/]*)
13693   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13694   ;;
13695   *)
13696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13697 for as_dir in $PATH
13698 do
13699   IFS=$as_save_IFS
13700   test -z "$as_dir" && as_dir=.
13701   for ac_exec_ext in '' $ac_executable_extensions; do
13702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13703     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13705     break 2
13706   fi
13707 done
13708 done
13709
13710   ;;
13711 esac
13712 fi
13713 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13714
13715 if test -n "$gcc_cv_objdump"; then
13716   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13717 echo "${ECHO_T}$gcc_cv_objdump" >&6
13718 else
13719   echo "$as_me:$LINENO: result: no" >&5
13720 echo "${ECHO_T}no" >&6
13721 fi
13722
13723 fi
13724 if test "x$gcc_cv_objdump" = x && test -n "$OBJDUMP" && test x$host = x$target; then
13725         # Extract the first word of "$OBJDUMP", so it can be a program name with args.
13726 set dummy $OBJDUMP; ac_word=$2
13727 echo "$as_me:$LINENO: checking for $ac_word" >&5
13728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13729 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13730   echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732   case $gcc_cv_objdump in
13733   [\\/]* | ?:[\\/]*)
13734   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13735   ;;
13736   *)
13737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13738 for as_dir in $PATH
13739 do
13740   IFS=$as_save_IFS
13741   test -z "$as_dir" && as_dir=.
13742   for ac_exec_ext in '' $ac_executable_extensions; do
13743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13744     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13746     break 2
13747   fi
13748 done
13749 done
13750
13751   ;;
13752 esac
13753 fi
13754 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13755
13756 if test -n "$gcc_cv_objdump"; then
13757   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13758 echo "${ECHO_T}$gcc_cv_objdump" >&6
13759 else
13760   echo "$as_me:$LINENO: result: no" >&5
13761 echo "${ECHO_T}no" >&6
13762 fi
13763
13764 fi
13765
13766 if test "x$gcc_cv_objdump" = x; then
13767         # The AC_PATH_PROGS macro doesn't work properly when its 4th argument
13768         # is empty.
13769         if test "x$gcc_cv_tool_dirs" = x; then
13770                 gcc_cv_objdump=
13771         else
13772                 for ac_prog in objdump
13773 do
13774   # Extract the first word of "$ac_prog", so it can be a program name with args.
13775 set dummy $ac_prog; ac_word=$2
13776 echo "$as_me:$LINENO: checking for $ac_word" >&5
13777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13778 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13779   echo $ECHO_N "(cached) $ECHO_C" >&6
13780 else
13781   case $gcc_cv_objdump in
13782   [\\/]* | ?:[\\/]*)
13783   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13784   ;;
13785   *)
13786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787 for as_dir in $gcc_cv_tool_dirs
13788 do
13789   IFS=$as_save_IFS
13790   test -z "$as_dir" && as_dir=.
13791   for ac_exec_ext in '' $ac_executable_extensions; do
13792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13793     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13795     break 2
13796   fi
13797 done
13798 done
13799
13800   ;;
13801 esac
13802 fi
13803 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13804
13805 if test -n "$gcc_cv_objdump"; then
13806   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13807 echo "${ECHO_T}$gcc_cv_objdump" >&6
13808 else
13809   echo "$as_me:$LINENO: result: no" >&5
13810 echo "${ECHO_T}no" >&6
13811 fi
13812
13813   test -n "$gcc_cv_objdump" && break
13814 done
13815
13816         fi
13817 fi
13818 if test "x$gcc_cv_objdump" = x; then
13819         # If the loop above did not find a tool, then use whatever
13820         # one we can find in the users's path.  We are looking for a
13821         # ${build} -> ${target} tool.
13822         if test "x$program_prefix" != xNONE; then
13823                 default_tool_name=${program_prefix}objdump
13824         elif test x$build != x$host && test x$build != x$target; then
13825                 default_tool_name=${target_noncanonical}-objdump
13826         else
13827                 default_tool_name=`echo objdump | sed "${program_transform_name}"`
13828         fi
13829         for ac_prog in $default_tool_name
13830 do
13831   # Extract the first word of "$ac_prog", so it can be a program name with args.
13832 set dummy $ac_prog; ac_word=$2
13833 echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13835 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13836   echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838   case $gcc_cv_objdump in
13839   [\\/]* | ?:[\\/]*)
13840   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13841   ;;
13842   *)
13843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13845 do
13846   IFS=$as_save_IFS
13847   test -z "$as_dir" && as_dir=.
13848   for ac_exec_ext in '' $ac_executable_extensions; do
13849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13852     break 2
13853   fi
13854 done
13855 done
13856
13857   ;;
13858 esac
13859 fi
13860 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13861
13862 if test -n "$gcc_cv_objdump"; then
13863   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13864 echo "${ECHO_T}$gcc_cv_objdump" >&6
13865 else
13866   echo "$as_me:$LINENO: result: no" >&5
13867 echo "${ECHO_T}no" >&6
13868 fi
13869
13870   test -n "$gcc_cv_objdump" && break
13871 done
13872 test -n "$gcc_cv_objdump" || gcc_cv_objdump="$gcc_cv_tool_prefix/bin/$default_tool_name$build_exeext"
13873
13874 fi
13875 test "$silent" != yes && exec 6>&1
13876
13877 ORIGINAL_OBJDUMP_FOR_TARGET="$gcc_cv_objdump"
13878
13879 echo "$as_me:$LINENO: checking what objdump to use" >&5
13880 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13881 case $in_tree_objdump in
13882   yes) echo "$as_me:$LINENO: result: \"newly built objdump\"" >&5
13883 echo "${ECHO_T}\"newly built objdump\"" >&6 ;;
13884   no)  echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13885 echo "${ECHO_T}$gcc_cv_objdump" >&6 ;;
13886 esac
13887
13888 # Figure out what assembler alignment features are present.
13889 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13890 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13891 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13892   echo $ECHO_N "(cached) $ECHO_C" >&6
13893 else
13894   gcc_cv_as_balign_and_p2align=no
13895     if test $in_tree_gas = yes; then
13896     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13897   then gcc_cv_as_balign_and_p2align=yes
13898 fi
13899   elif test x$gcc_cv_as != x; then
13900     echo '.balign 4
13901 .p2align 2' > conftest.s
13902     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904   (eval $ac_try) 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; }
13908     then
13909         gcc_cv_as_balign_and_p2align=yes
13910     else
13911       echo "configure: failed program was" >&5
13912       cat conftest.s >&5
13913     fi
13914     rm -f conftest.o conftest.s
13915   fi
13916 fi
13917 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13918 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13919 if test $gcc_cv_as_balign_and_p2align = yes; then
13920
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13923 _ACEOF
13924
13925 fi
13926
13927 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13928 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13929 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13930   echo $ECHO_N "(cached) $ECHO_C" >&6
13931 else
13932   gcc_cv_as_max_skip_p2align=no
13933     if test $in_tree_gas = yes; then
13934     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13935   then gcc_cv_as_max_skip_p2align=yes
13936 fi
13937   elif test x$gcc_cv_as != x; then
13938     echo '.p2align 4,,7' > conftest.s
13939     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941   (eval $ac_try) 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }
13945     then
13946         gcc_cv_as_max_skip_p2align=yes
13947     else
13948       echo "configure: failed program was" >&5
13949       cat conftest.s >&5
13950     fi
13951     rm -f conftest.o conftest.s
13952   fi
13953 fi
13954 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13955 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13956 if test $gcc_cv_as_max_skip_p2align = yes; then
13957
13958 cat >>confdefs.h <<\_ACEOF
13959 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13960 _ACEOF
13961
13962 fi
13963
13964 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13965 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13966 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 else
13969   gcc_cv_as_subsection_m1=no
13970     if test $in_tree_gas = yes; then
13971     if test $in_tree_gas_is_elf = yes \
13972   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13973   then gcc_cv_as_subsection_m1=yes
13974 fi
13975   elif test x$gcc_cv_as != x; then
13976     echo 'conftest_label1: .word 0
13977 .subsection -1
13978 conftest_label2: .word 0
13979 .previous' > conftest.s
13980     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982   (eval $ac_try) 2>&5
13983   ac_status=$?
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); }; }
13986     then
13987         if test x$gcc_cv_nm != x; then
13988     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13989     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13990     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13991     then :
13992     else gcc_cv_as_subsection_m1=yes
13993     fi
13994     rm -f conftest.nm1 conftest.nm2
13995   fi
13996     else
13997       echo "configure: failed program was" >&5
13998       cat conftest.s >&5
13999     fi
14000     rm -f conftest.o conftest.s
14001   fi
14002 fi
14003 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
14004 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
14005 if test $gcc_cv_as_subsection_m1 = yes; then
14006
14007 cat >>confdefs.h <<\_ACEOF
14008 #define HAVE_GAS_SUBSECTION_ORDERING 1
14009 _ACEOF
14010
14011 fi
14012
14013 echo "$as_me:$LINENO: checking assembler for .weak" >&5
14014 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
14015 if test "${gcc_cv_as_weak+set}" = set; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   gcc_cv_as_weak=no
14019     if test $in_tree_gas = yes; then
14020     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
14021   then gcc_cv_as_weak=yes
14022 fi
14023   elif test x$gcc_cv_as != x; then
14024     echo '      .weak foobar' > conftest.s
14025     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }
14031     then
14032         gcc_cv_as_weak=yes
14033     else
14034       echo "configure: failed program was" >&5
14035       cat conftest.s >&5
14036     fi
14037     rm -f conftest.o conftest.s
14038   fi
14039 fi
14040 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
14041 echo "${ECHO_T}$gcc_cv_as_weak" >&6
14042 if test $gcc_cv_as_weak = yes; then
14043
14044 cat >>confdefs.h <<\_ACEOF
14045 #define HAVE_GAS_WEAK 1
14046 _ACEOF
14047
14048 fi
14049
14050 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
14051 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
14052 if test "${gcc_cv_as_weakref+set}" = set; then
14053   echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055   gcc_cv_as_weakref=no
14056     if test $in_tree_gas = yes; then
14057     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
14058   then gcc_cv_as_weakref=yes
14059 fi
14060   elif test x$gcc_cv_as != x; then
14061     echo '      .weakref foobar, barfnot' > conftest.s
14062     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064   (eval $ac_try) 2>&5
14065   ac_status=$?
14066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067   (exit $ac_status); }; }
14068     then
14069         gcc_cv_as_weakref=yes
14070     else
14071       echo "configure: failed program was" >&5
14072       cat conftest.s >&5
14073     fi
14074     rm -f conftest.o conftest.s
14075   fi
14076 fi
14077 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
14078 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
14079 if test $gcc_cv_as_weakref = yes; then
14080
14081 cat >>confdefs.h <<\_ACEOF
14082 #define HAVE_GAS_WEAKREF 1
14083 _ACEOF
14084
14085 fi
14086
14087 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
14088 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
14089 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
14090   echo $ECHO_N "(cached) $ECHO_C" >&6
14091 else
14092   gcc_cv_as_nsubspa_comdat=no
14093     if test $in_tree_gas = yes; then
14094     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14095   then gcc_cv_as_nsubspa_comdat=yes
14096 fi
14097   elif test x$gcc_cv_as != x; then
14098     echo '      .SPACE $TEXT$
14099         .NSUBSPA $CODE$,COMDAT' > conftest.s
14100     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }
14106     then
14107         gcc_cv_as_nsubspa_comdat=yes
14108     else
14109       echo "configure: failed program was" >&5
14110       cat conftest.s >&5
14111     fi
14112     rm -f conftest.o conftest.s
14113   fi
14114 fi
14115 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
14116 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
14117 if test $gcc_cv_as_nsubspa_comdat = yes; then
14118
14119 cat >>confdefs.h <<\_ACEOF
14120 #define HAVE_GAS_NSUBSPA_COMDAT 1
14121 _ACEOF
14122
14123 fi
14124
14125 # .hidden needs to be supported in both the assembler and the linker,
14126 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
14127 # This is irritatingly difficult to feature test for; we have to check the
14128 # date string after the version number.  If we've got an in-tree
14129 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
14130 # to be safe.
14131 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
14132 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
14133 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
14134 if test "${gcc_cv_as_hidden+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   gcc_cv_as_hidden=no
14138     if test $in_tree_gas = yes; then
14139     if test $in_tree_gas_is_elf = yes \
14140   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14141   then gcc_cv_as_hidden=yes
14142 fi
14143   elif test x$gcc_cv_as != x; then
14144     echo '      .hidden foobar
14145 foobar:' > conftest.s
14146     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148   (eval $ac_try) 2>&5
14149   ac_status=$?
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); }; }
14152     then
14153         gcc_cv_as_hidden=yes
14154     else
14155       echo "configure: failed program was" >&5
14156       cat conftest.s >&5
14157     fi
14158     rm -f conftest.o conftest.s
14159   fi
14160 fi
14161 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14162 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14163
14164
14165 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14166 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14167 if test "${gcc_cv_ld_hidden+set}" = set; then
14168   echo $ECHO_N "(cached) $ECHO_C" >&6
14169 else
14170   if test $in_tree_ld = yes ; then
14171   gcc_cv_ld_hidden=no
14172   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 \
14173      && test $in_tree_ld_is_elf = yes; then
14174      gcc_cv_ld_hidden=yes
14175   fi
14176 else
14177   gcc_cv_ld_hidden=yes
14178   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14179   if echo "$ld_ver" | grep GNU > /dev/null; then
14180     ld_vers=`echo $ld_ver | sed -n \
14181         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14182         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14183         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
14184         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
14185         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
14186         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
14187         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   ].*$,\1,p'`
14188     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'`
14189     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14190     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14191     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14192     if test 0"$ld_date" -lt 20020404; then
14193       if test -n "$ld_date"; then
14194         # If there was date string, but was earlier than 2002-04-04, fail
14195         gcc_cv_ld_hidden=no
14196       elif test -z "$ld_vers"; then
14197         # If there was no date string nor ld version number, something is wrong
14198         gcc_cv_ld_hidden=no
14199       else
14200         test -z "$ld_vers_patch" && ld_vers_patch=0
14201         if test "$ld_vers_major" -lt 2; then
14202           gcc_cv_ld_hidden=no
14203         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14204           gcc_cv_ld_hidden="no"
14205         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14206           gcc_cv_ld_hidden=no
14207         fi
14208       fi
14209     fi
14210   else
14211     case "${target}" in
14212       hppa64*-*-hpux* | ia64*-*-hpux*)
14213         gcc_cv_ld_hidden=yes
14214         ;;
14215       *)
14216         gcc_cv_ld_hidden=no
14217         ;;
14218     esac
14219   fi
14220 fi
14221 fi
14222 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14223 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14224 libgcc_visibility=no
14225
14226
14227 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14228   libgcc_visibility=yes
14229
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_GAS_HIDDEN 1
14232 _ACEOF
14233
14234 fi
14235
14236 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14237 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14238 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14239 if test "${gcc_cv_as_leb128+set}" = set; then
14240   echo $ECHO_N "(cached) $ECHO_C" >&6
14241 else
14242   gcc_cv_as_leb128=no
14243     if test $in_tree_gas = yes; then
14244     if test $in_tree_gas_is_elf = yes \
14245   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14246   then gcc_cv_as_leb128=yes
14247 fi
14248   elif test x$gcc_cv_as != x; then
14249     echo '      .data
14250         .uleb128 L2 - L1
14251 L1:
14252         .uleb128 1280
14253         .sleb128 -1010
14254 L2:' > conftest.s
14255     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257   (eval $ac_try) 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; }
14261     then
14262         # GAS versions before 2.11 do not support uleb128,
14263   # despite appearing to.
14264   # ??? There exists an elf-specific test that will crash
14265   # the assembler.  Perhaps it's better to figure out whether
14266   # arbitrary sections are supported and try the test.
14267   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14268   if echo "$as_ver" | grep GNU > /dev/null; then
14269     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14270     as_major=`echo $as_ver | sed 's/\..*//'`
14271     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14272     if test $as_major -eq 2 && test $as_minor -lt 11
14273     then :
14274     else gcc_cv_as_leb128=yes
14275     fi
14276   fi
14277     else
14278       echo "configure: failed program was" >&5
14279       cat conftest.s >&5
14280     fi
14281     rm -f conftest.o conftest.s
14282   fi
14283 fi
14284 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14285 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14286 if test $gcc_cv_as_leb128 = yes; then
14287
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_AS_LEB128 1
14290 _ACEOF
14291
14292 fi
14293
14294 # GAS versions up to and including 2.11.0 may mis-optimize
14295 # .eh_frame data.
14296 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14297 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14298 if test "${gcc_cv_as_eh_frame+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   gcc_cv_as_eh_frame=no
14302     if test $in_tree_gas = yes; then
14303     if test $in_tree_gas_is_elf = yes \
14304   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14305   then gcc_cv_as_eh_frame=yes
14306 fi
14307   elif test x$gcc_cv_as != x; then
14308     echo '      .text
14309 .LFB1:
14310         .4byte  0
14311 .L1:
14312         .4byte  0
14313 .LFE1:
14314         .section        .eh_frame,"aw",@progbits
14315 __FRAME_BEGIN__:
14316         .4byte  .LECIE1-.LSCIE1
14317 .LSCIE1:
14318         .4byte  0x0
14319         .byte   0x1
14320         .ascii "z\0"
14321         .byte   0x1
14322         .byte   0x78
14323         .byte   0x1a
14324         .byte   0x0
14325         .byte   0x4
14326         .4byte  1
14327         .p2align 1
14328 .LECIE1:
14329 .LSFDE1:
14330         .4byte  .LEFDE1-.LASFDE1
14331 .LASFDE1:
14332         .4byte  .LASFDE1-__FRAME_BEGIN__
14333         .4byte  .LFB1
14334         .4byte  .LFE1-.LFB1
14335         .byte   0x4
14336         .4byte  .LFE1-.LFB1
14337         .byte   0x4
14338         .4byte  .L1-.LFB1
14339 .LEFDE1:' > conftest.s
14340     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }
14346     then
14347           cat > conftest.lit <<EOF
14348  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14349  0010 01000000 12000000 18000000 00000000  ................
14350  0020 08000000 04080000 0044               .........D      
14351 EOF
14352 cat > conftest.big <<EOF
14353  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14354  0010 00000001 00000012 00000018 00000000  ................
14355  0020 00000008 04000000 0844               .........D      
14356 EOF
14357   # If the assembler didn't choke, and we can objdump,
14358   # and we got the correct data, then succeed.
14359   if test x$gcc_cv_objdump != x \
14360   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14361      | tail -3 > conftest.got \
14362   && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
14363     || cmp conftest.big conftest.got > /dev/null 2>&1; }
14364   then
14365     gcc_cv_as_eh_frame=yes
14366   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368   (eval $ac_try) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); }; }; then
14372     gcc_cv_as_eh_frame=buggy
14373   else
14374     # Uh oh, what do we do now?
14375     gcc_cv_as_eh_frame=no
14376   fi
14377     else
14378       echo "configure: failed program was" >&5
14379       cat conftest.s >&5
14380     fi
14381     rm -f conftest.o conftest.s
14382   fi
14383 fi
14384 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14385 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14386
14387
14388 if test $gcc_cv_as_eh_frame = buggy; then
14389
14390 cat >>confdefs.h <<\_ACEOF
14391 #define USE_AS_TRADITIONAL_FORMAT 1
14392 _ACEOF
14393
14394 fi
14395
14396 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14397 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14398 if test "${gcc_cv_as_shf_merge+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   gcc_cv_as_shf_merge=no
14402     if test $in_tree_gas = yes; then
14403     if test $in_tree_gas_is_elf = yes \
14404   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14405   then gcc_cv_as_shf_merge=yes
14406 fi
14407   elif test x$gcc_cv_as != x; then
14408     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14409     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; }
14415     then
14416         gcc_cv_as_shf_merge=yes
14417     else
14418       echo "configure: failed program was" >&5
14419       cat conftest.s >&5
14420     fi
14421     rm -f conftest.o conftest.s
14422   fi
14423 fi
14424 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14425 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14426
14427 if test $gcc_cv_as_shf_merge = no; then
14428   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14429 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14430 if test "${gcc_cv_as_shf_merge+set}" = set; then
14431   echo $ECHO_N "(cached) $ECHO_C" >&6
14432 else
14433   gcc_cv_as_shf_merge=no
14434     if test $in_tree_gas = yes; then
14435     if test $in_tree_gas_is_elf = yes \
14436   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14437   then gcc_cv_as_shf_merge=yes
14438 fi
14439   elif test x$gcc_cv_as != x; then
14440     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14441     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; }
14447     then
14448         gcc_cv_as_shf_merge=yes
14449     else
14450       echo "configure: failed program was" >&5
14451       cat conftest.s >&5
14452     fi
14453     rm -f conftest.o conftest.s
14454   fi
14455 fi
14456 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14457 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14458
14459 fi
14460
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14463 _ACEOF
14464
14465
14466 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14467 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14468 if test "${gcc_cv_as_comdat_group+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   gcc_cv_as_comdat_group=no
14472     if test $in_tree_gas = yes; then
14473     if test $in_tree_gas_is_elf = yes \
14474   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14475   then gcc_cv_as_comdat_group=yes
14476 fi
14477   elif test x$gcc_cv_as != x; then
14478     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14479     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481   (eval $ac_try) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; }
14485     then
14486         gcc_cv_as_comdat_group=yes
14487     else
14488       echo "configure: failed program was" >&5
14489       cat conftest.s >&5
14490     fi
14491     rm -f conftest.o conftest.s
14492   fi
14493 fi
14494 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14495 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14496
14497 if test $gcc_cv_as_comdat_group = yes; then
14498   gcc_cv_as_comdat_group_percent=no
14499 else
14500  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14501 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14502 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   gcc_cv_as_comdat_group_percent=no
14506     if test $in_tree_gas = yes; then
14507     if test $in_tree_gas_is_elf = yes \
14508   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14509   then gcc_cv_as_comdat_group_percent=yes
14510 fi
14511   elif test x$gcc_cv_as != x; then
14512     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14513     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; }
14519     then
14520         gcc_cv_as_comdat_group_percent=yes
14521     else
14522       echo "configure: failed program was" >&5
14523       cat conftest.s >&5
14524     fi
14525     rm -f conftest.o conftest.s
14526   fi
14527 fi
14528 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14529 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14530
14531 fi
14532 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14533   comdat_group=yes
14534   if test 0"$ld_date" -lt 20050308; then
14535     if test -n "$ld_date"; then
14536       # If there was date string, but was earlier than 2005-03-08, fail
14537       comdat_group=no
14538     elif test "$ld_vers_major" -lt 2; then
14539       comdat_group=no
14540     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14541       comdat_group=no
14542     fi
14543   fi
14544   if test $comdat_group = no; then
14545     gcc_cv_as_comdat_group=no
14546     gcc_cv_as_comdat_group_percent=no
14547   fi
14548 fi
14549
14550 cat >>confdefs.h <<_ACEOF
14551 #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`
14552 _ACEOF
14553
14554
14555 # Thread-local storage - the check is heavily parametrized.
14556 conftest_s=
14557 tls_first_major=
14558 tls_first_minor=
14559 tls_as_opt=
14560 case "$target" in
14561   alpha*-*-*)
14562     conftest_s='
14563         .section ".tdata","awT",@progbits
14564 foo:    .long   25
14565         .text
14566         ldq     $27,__tls_get_addr($29)         !literal!1
14567         lda     $16,foo($29)                    !tlsgd!1
14568         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14569         ldq     $27,__tls_get_addr($29)         !literal!2
14570         lda     $16,foo($29)                    !tlsldm!2
14571         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14572         ldq     $1,foo($29)                     !gotdtprel
14573         ldah    $2,foo($29)                     !dtprelhi
14574         lda     $3,foo($2)                      !dtprello
14575         lda     $4,foo($29)                     !dtprel
14576         ldq     $1,foo($29)                     !gottprel
14577         ldah    $2,foo($29)                     !tprelhi
14578         lda     $3,foo($2)                      !tprello
14579         lda     $4,foo($29)                     !tprel'
14580         tls_first_major=2
14581         tls_first_minor=13
14582         tls_as_opt=--fatal-warnings
14583         ;;
14584   frv*-*-*)
14585     conftest_s='
14586         .section ".tdata","awT",@progbits
14587 x:      .long   25
14588         .text
14589         call    #gettlsoff(x)'
14590         tls_first_major=2
14591         tls_first_minor=14
14592         ;;
14593   hppa*-*-linux*)
14594     conftest_s='
14595 t1:     .reg    %r20
14596 t2:     .reg    %r21
14597 gp:     .reg    %r19
14598         .section ".tdata","awT",@progbits
14599 foo:    .long   25
14600         .text
14601         .align  4
14602         addil LT%foo-$tls_gdidx$,gp
14603         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14604         b __tls_get_addr
14605         nop
14606         addil LT%foo-$tls_ldidx$,gp
14607         b __tls_get_addr
14608         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14609         addil LR%foo-$tls_dtpoff$,%ret0
14610         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14611         mfctl %cr27,%t1
14612         addil LT%foo-$tls_ieoff$,gp
14613         ldw RT%foo-$tls_ieoff$(%r1),%t2
14614         add %t1,%t2,%t3
14615         mfctl %cr27,%t1
14616         addil LR%foo-$tls_leoff$,%t1
14617         ldo RR%foo-$tls_leoff$(%r1),%t2'
14618         tls_first_major=2
14619         tls_first_minor=15
14620         tls_as_opt=--fatal-warnings
14621         ;;
14622   arm*-*-*)
14623     conftest_s='
14624         .section ".tdata","awT",%progbits
14625 foo:    .long   25
14626         .text
14627 .word foo(gottpoff)
14628 .word foo(tpoff)
14629 .word foo(tlsgd)
14630 .word foo(tlsldm)
14631 .word foo(tlsldo)'
14632         tls_first_major=2
14633         tls_first_minor=17
14634         ;;
14635   i[34567]86-*-*)
14636     conftest_s='
14637         .section ".tdata","awT",@progbits
14638 foo:    .long   25
14639         .text
14640         movl    %gs:0, %eax
14641         leal    foo@TLSGD(,%ebx,1), %eax
14642         leal    foo@TLSLDM(%ebx), %eax
14643         leal    foo@DTPOFF(%eax), %edx
14644         movl    foo@GOTTPOFF(%ebx), %eax
14645         subl    foo@GOTTPOFF(%ebx), %eax
14646         addl    foo@GOTNTPOFF(%ebx), %eax
14647         movl    foo@INDNTPOFF, %eax
14648         movl    $foo@TPOFF, %eax
14649         subl    $foo@TPOFF, %eax
14650         leal    foo@NTPOFF(%ecx), %eax'
14651         tls_first_major=2
14652         tls_first_minor=14
14653         tls_as_opt=--fatal-warnings
14654         ;;
14655   x86_64-*-*)
14656     conftest_s='
14657         .section ".tdata","awT",@progbits
14658 foo:    .long   25
14659         .text
14660         movq    %fs:0, %rax
14661         leaq    foo@TLSGD(%rip), %rdi
14662         leaq    foo@TLSLD(%rip), %rdi
14663         leaq    foo@DTPOFF(%rax), %rdx
14664         movq    foo@GOTTPOFF(%rip), %rax
14665         movq    $foo@TPOFF, %rax'
14666         tls_first_major=2
14667         tls_first_minor=14
14668         tls_as_opt=--fatal-warnings
14669         ;;
14670   ia64-*-*)
14671     conftest_s='
14672         .section ".tdata","awT",@progbits
14673 foo:    data8   25
14674         .text
14675         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14676         addl    r17 = @ltoff(@dtprel(foo#)), gp
14677         addl    r18 = @ltoff(@tprel(foo#)), gp
14678         addl    r19 = @dtprel(foo#), gp
14679         adds    r21 = @dtprel(foo#), r13
14680         movl    r23 = @dtprel(foo#)
14681         addl    r20 = @tprel(foo#), gp
14682         adds    r22 = @tprel(foo#), r13
14683         movl    r24 = @tprel(foo#)'
14684         tls_first_major=2
14685         tls_first_minor=13
14686         tls_as_opt=--fatal-warnings
14687         ;;
14688   mips*-*-*)
14689     conftest_s='
14690         .section .tdata,"awT",@progbits
14691 x:
14692         .word 2
14693         .text
14694         addiu $4, $28, %tlsgd(x)
14695         addiu $4, $28, %tlsldm(x)
14696         lui $4, %dtprel_hi(x)
14697         addiu $4, $4, %dtprel_lo(x)
14698         lw $4, %gottprel(x)($28)
14699         lui $4, %tprel_hi(x)
14700         addiu $4, $4, %tprel_lo(x)'
14701         tls_first_major=2
14702         tls_first_minor=16
14703         tls_as_opt='-32 --fatal-warnings'
14704         ;;
14705   powerpc-*-*)
14706     conftest_s='
14707         .section ".tdata","awT",@progbits
14708         .align 2
14709 ld0:    .space 4
14710 ld1:    .space 4
14711 x1:     .space 4
14712 x2:     .space 4
14713 x3:     .space 4
14714         .text
14715         addi 3,31,ld0@got@tlsgd
14716         bl __tls_get_addr
14717         addi 3,31,x1@got@tlsld
14718         bl __tls_get_addr
14719         addi 9,3,x1@dtprel
14720         addis 9,3,x2@dtprel@ha
14721         addi 9,9,x2@dtprel@l
14722         lwz 9,x3@got@tprel(31)
14723         add 9,9,x@tls
14724         addi 9,2,x1@tprel
14725         addis 9,2,x2@tprel@ha
14726         addi 9,9,x2@tprel@l'
14727         tls_first_major=2
14728         tls_first_minor=14
14729         tls_as_opt="-a32 --fatal-warnings"
14730         ;;
14731   powerpc64-*-*)
14732     conftest_s='
14733         .section ".tdata","awT",@progbits
14734         .align 3
14735 ld0:    .space 8
14736 ld1:    .space 8
14737 x1:     .space 8
14738 x2:     .space 8
14739 x3:     .space 8
14740         .text
14741         addi 3,2,ld0@got@tlsgd
14742         bl .__tls_get_addr
14743         nop
14744         addi 3,2,ld1@toc
14745         bl .__tls_get_addr
14746         nop
14747         addi 3,2,x1@got@tlsld
14748         bl .__tls_get_addr
14749         nop
14750         addi 9,3,x1@dtprel
14751         bl .__tls_get_addr
14752         nop
14753         addis 9,3,x2@dtprel@ha
14754         addi 9,9,x2@dtprel@l
14755         bl .__tls_get_addr
14756         nop
14757         ld 9,x3@got@dtprel(2)
14758         add 9,9,3
14759         bl .__tls_get_addr
14760         nop'
14761         tls_first_major=2
14762         tls_first_minor=14
14763         tls_as_opt="-a64 --fatal-warnings"
14764         ;;
14765   s390-*-*)
14766     conftest_s='
14767         .section ".tdata","awT",@progbits
14768 foo:    .long   25
14769         .text
14770         .long   foo@TLSGD
14771         .long   foo@TLSLDM
14772         .long   foo@DTPOFF
14773         .long   foo@NTPOFF
14774         .long   foo@GOTNTPOFF
14775         .long   foo@INDNTPOFF
14776         l       %r1,foo@GOTNTPOFF(%r12)
14777         l       %r1,0(%r1):tls_load:foo
14778         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14779         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14780         tls_first_major=2
14781         tls_first_minor=14
14782         tls_as_opt="-m31 --fatal-warnings"
14783         ;;
14784   s390x-*-*)
14785     conftest_s='
14786         .section ".tdata","awT",@progbits
14787 foo:    .long   25
14788         .text
14789         .quad   foo@TLSGD
14790         .quad   foo@TLSLDM
14791         .quad   foo@DTPOFF
14792         .quad   foo@NTPOFF
14793         .quad   foo@GOTNTPOFF
14794         lg      %r1,foo@GOTNTPOFF(%r12)
14795         larl    %r1,foo@INDNTPOFF
14796         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14797         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14798         tls_first_major=2
14799         tls_first_minor=14
14800         tls_as_opt="-m64 -Aesame --fatal-warnings"
14801         ;;
14802   sh-*-* | sh[34]-*-*)
14803     conftest_s='
14804         .section ".tdata","awT",@progbits
14805 foo:    .long   25
14806         .text
14807         .long   foo@TLSGD
14808         .long   foo@TLSLDM
14809         .long   foo@DTPOFF
14810         .long   foo@GOTTPOFF
14811         .long   foo@TPOFF'
14812         tls_first_major=2
14813         tls_first_minor=13
14814         tls_as_opt=--fatal-warnings
14815         ;;
14816   sparc*-*-*)
14817     case "$target" in
14818       sparc*-sun-solaris2.*)
14819         on_solaris=yes
14820         ;;
14821       *)
14822         on_solaris=no
14823         ;;
14824     esac
14825     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14826       conftest_s='
14827         .section ".tdata",#alloc,#write,#tls
14828 foo:    .long   25
14829         .text
14830         sethi   %tgd_hi22(foo), %o0
14831         add     %o0, %tgd_lo10(foo), %o1
14832         add     %l7, %o1, %o0, %tgd_add(foo)
14833         call    __tls_get_addr, %tgd_call(foo)
14834         sethi   %tldm_hi22(foo), %l1
14835         add     %l1, %tldm_lo10(foo), %l2
14836         add     %l7, %l2, %o0, %tldm_add(foo)
14837         call    __tls_get_addr, %tldm_call(foo)
14838         sethi   %tldo_hix22(foo), %l3
14839         xor     %l3, %tldo_lox10(foo), %l4
14840         add     %o0, %l4, %l5, %tldo_add(foo)
14841         sethi   %tie_hi22(foo), %o3
14842         add     %o3, %tie_lo10(foo), %o3
14843         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14844         add     %g7, %o2, %o4, %tie_add(foo)
14845         sethi   %tle_hix22(foo), %l1
14846         xor     %l1, %tle_lox10(foo), %o5
14847         ld      [%g7 + %o5], %o1'
14848         tls_first_major=0
14849         tls_first_minor=0
14850     else
14851       conftest_s='
14852         .section ".tdata","awT",@progbits
14853 foo:    .long   25
14854         .text
14855         sethi   %tgd_hi22(foo), %o0
14856         add     %o0, %tgd_lo10(foo), %o1
14857         add     %l7, %o1, %o0, %tgd_add(foo)
14858         call    __tls_get_addr, %tgd_call(foo)
14859         sethi   %tldm_hi22(foo), %l1
14860         add     %l1, %tldm_lo10(foo), %l2
14861         add     %l7, %l2, %o0, %tldm_add(foo)
14862         call    __tls_get_addr, %tldm_call(foo)
14863         sethi   %tldo_hix22(foo), %l3
14864         xor     %l3, %tldo_lox10(foo), %l4
14865         add     %o0, %l4, %l5, %tldo_add(foo)
14866         sethi   %tie_hi22(foo), %o3
14867         add     %o3, %tie_lo10(foo), %o3
14868         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14869         add     %g7, %o2, %o4, %tie_add(foo)
14870         sethi   %tle_hix22(foo), %l1
14871         xor     %l1, %tle_lox10(foo), %o5
14872         ld      [%g7 + %o5], %o1'
14873         tls_first_major=2
14874         tls_first_minor=14
14875         tls_as_opt="-32 --fatal-warnings"
14876       fi
14877         ;;
14878 esac
14879 set_have_as_tls=no
14880 if test "x$enable_tls" = xno ; then
14881   : # TLS explicitly disabled.
14882 elif test "x$enable_tls" = xyes ; then
14883   set_have_as_tls=yes # TLS explicitly enabled.
14884 elif test -z "$tls_first_major"; then
14885   : # If we don't have a check, assume no support.
14886 else
14887   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14888 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14889 if test "${gcc_cv_as_tls+set}" = set; then
14890   echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892   gcc_cv_as_tls=no
14893     if test $in_tree_gas = yes; then
14894     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14895   then gcc_cv_as_tls=yes
14896 fi
14897   elif test x$gcc_cv_as != x; then
14898     echo "$conftest_s" > conftest.s
14899     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14901   (eval $ac_try) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; }
14905     then
14906         gcc_cv_as_tls=yes
14907     else
14908       echo "configure: failed program was" >&5
14909       cat conftest.s >&5
14910     fi
14911     rm -f conftest.o conftest.s
14912   fi
14913 fi
14914 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14915 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14916 if test $gcc_cv_as_tls = yes; then
14917   set_have_as_tls=yes
14918 fi
14919 fi
14920 if test $set_have_as_tls = yes ; then
14921
14922 cat >>confdefs.h <<\_ACEOF
14923 #define HAVE_AS_TLS 1
14924 _ACEOF
14925
14926 fi
14927
14928 # Target-specific assembler checks.
14929
14930 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14931 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14932 gcc_cv_ld_static_dynamic=no
14933 if test $in_tree_ld = yes ; then
14934   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14935     gcc_cv_ld_static_dynamic=yes
14936   fi
14937 elif test x$gcc_cv_ld != x; then
14938         # Check if linker supports -Bstatic/-Bdynamic option
14939         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14940           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14941                 gcc_cv_ld_static_dynamic=yes
14942         fi
14943 fi
14944 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14945
14946 cat >>confdefs.h <<\_ACEOF
14947 #define HAVE_LD_STATIC_DYNAMIC 1
14948 _ACEOF
14949
14950 fi
14951 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14952 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14953
14954 if test x"$demangler_in_ld" = xyes; then
14955   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14956 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14957   gcc_cv_ld_demangle=no
14958   if test $in_tree_ld = yes; then
14959     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 \
14960       gcc_cv_ld_demangle=yes
14961     fi
14962   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14963     # Check if the GNU linker supports --demangle option
14964     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14965       gcc_cv_ld_demangle=yes
14966     fi
14967   fi
14968   if test x"$gcc_cv_ld_demangle" = xyes; then
14969
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_LD_DEMANGLE 1
14972 _ACEOF
14973
14974   fi
14975   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14976 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14977 fi
14978
14979 case "$target" in
14980   # All TARGET_ABI_OSF targets.
14981   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14982     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14983 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14984 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   gcc_cv_as_alpha_explicit_relocs=no
14988     if test $in_tree_gas = yes; then
14989     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14990   then gcc_cv_as_alpha_explicit_relocs=yes
14991 fi
14992   elif test x$gcc_cv_as != x; then
14993     echo '      .set nomacro
14994         .text
14995         extbl   $3, $2, $3      !lituse_bytoff!1
14996         ldq     $2, a($29)      !literal!1
14997         ldq     $4, b($29)      !literal!2
14998         ldq_u   $3, 0($2)       !lituse_base!1
14999         ldq     $27, f($29)     !literal!5
15000         jsr     $26, ($27), f   !lituse_jsr!5
15001         ldah    $29, 0($26)     !gpdisp!3
15002         lda     $0, c($29)      !gprel
15003         ldah    $1, d($29)      !gprelhigh
15004         lda     $1, d($1)       !gprellow
15005         lda     $29, 0($29)     !gpdisp!3' > conftest.s
15006     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; }
15012     then
15013         gcc_cv_as_alpha_explicit_relocs=yes
15014     else
15015       echo "configure: failed program was" >&5
15016       cat conftest.s >&5
15017     fi
15018     rm -f conftest.o conftest.s
15019   fi
15020 fi
15021 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
15022 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
15023 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
15024
15025 cat >>confdefs.h <<\_ACEOF
15026 #define HAVE_AS_EXPLICIT_RELOCS 1
15027 _ACEOF
15028
15029 fi
15030     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
15031 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
15032 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
15033   echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035   gcc_cv_as_alpha_jsrdirect_relocs=no
15036     if test $in_tree_gas = yes; then
15037     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
15038   then gcc_cv_as_alpha_jsrdirect_relocs=yes
15039 fi
15040   elif test x$gcc_cv_as != x; then
15041     echo '      .set nomacro
15042         .text
15043         ldq     $27, a($29)     !literal!1
15044         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
15045     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047   (eval $ac_try) 2>&5
15048   ac_status=$?
15049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); }; }
15051     then
15052         gcc_cv_as_alpha_jsrdirect_relocs=yes
15053     else
15054       echo "configure: failed program was" >&5
15055       cat conftest.s >&5
15056     fi
15057     rm -f conftest.o conftest.s
15058   fi
15059 fi
15060 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
15061 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
15062 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
15063
15064 cat >>confdefs.h <<\_ACEOF
15065 #define HAVE_AS_JSRDIRECT_RELOCS 1
15066 _ACEOF
15067
15068 fi
15069     ;;
15070
15071   cris-*-*)
15072     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
15073 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
15074 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
15075   echo $ECHO_N "(cached) $ECHO_C" >&6
15076 else
15077   gcc_cv_as_cris_no_mul_bug=no
15078     if test $in_tree_gas = yes; then
15079     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15080   then gcc_cv_as_cris_no_mul_bug=yes
15081 fi
15082   elif test x$gcc_cv_as != x; then
15083     echo '.text' > conftest.s
15084     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }
15090     then
15091         gcc_cv_as_cris_no_mul_bug=yes
15092     else
15093       echo "configure: failed program was" >&5
15094       cat conftest.s >&5
15095     fi
15096     rm -f conftest.o conftest.s
15097   fi
15098 fi
15099 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
15100 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
15101 if test $gcc_cv_as_cris_no_mul_bug = yes; then
15102
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
15105 _ACEOF
15106
15107 fi
15108     ;;
15109
15110   sparc*-*-*)
15111     echo "$as_me:$LINENO: checking assembler for .register" >&5
15112 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
15113 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   gcc_cv_as_sparc_register_op=no
15117   if test x$gcc_cv_as != x; then
15118     echo '.register %g2, #scratch' > 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_sparc_register_op=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_sparc_register_op" >&5
15135 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15136 if test $gcc_cv_as_sparc_register_op = yes; then
15137
15138 cat >>confdefs.h <<\_ACEOF
15139 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15140 _ACEOF
15141
15142 fi
15143
15144     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15145 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15146 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   gcc_cv_as_sparc_relax=no
15150   if test x$gcc_cv_as != x; then
15151     echo '.text' > conftest.s
15152     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }
15158     then
15159         gcc_cv_as_sparc_relax=yes
15160     else
15161       echo "configure: failed program was" >&5
15162       cat conftest.s >&5
15163     fi
15164     rm -f conftest.o conftest.s
15165   fi
15166 fi
15167 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15168 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15169 if test $gcc_cv_as_sparc_relax = yes; then
15170
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_AS_RELAX_OPTION 1
15173 _ACEOF
15174
15175 fi
15176
15177     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15178 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15179 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15180   echo $ECHO_N "(cached) $ECHO_C" >&6
15181 else
15182   gcc_cv_as_sparc_ua_pcrel=no
15183   if test x$gcc_cv_as != x; then
15184     echo '.text
15185 foo:
15186         nop
15187 .data
15188 .align 4
15189 .byte 0
15190 .uaword %r_disp32(foo)' > conftest.s
15191     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; }
15197     then
15198         if test x$gcc_cv_ld != x \
15199        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15200          gcc_cv_as_sparc_ua_pcrel=yes
15201        fi
15202        rm -f conftest
15203     else
15204       echo "configure: failed program was" >&5
15205       cat conftest.s >&5
15206     fi
15207     rm -f conftest.o conftest.s
15208   fi
15209 fi
15210 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15211 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15212 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15213
15214 cat >>confdefs.h <<\_ACEOF
15215 #define HAVE_AS_SPARC_UA_PCREL 1
15216 _ACEOF
15217
15218
15219       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15220 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15221 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224   gcc_cv_as_sparc_ua_pcrel_hidden=no
15225   if test x$gcc_cv_as != x; then
15226     echo '.data
15227 .align 4
15228 .byte 0x31
15229 .uaword %r_disp32(foo)
15230 .byte 0x32, 0x33, 0x34
15231 .global foo
15232 .hidden foo
15233 foo:
15234 .skip 4' > conftest.s
15235     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }
15241     then
15242         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15243          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15244          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15245             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15246             if $gcc_cv_objdump -R conftest 2> /dev/null \
15247                | grep 'DISP32' > /dev/null 2>&1; then
15248                 :
15249             else
15250                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15251             fi
15252          fi
15253          rm -f conftest
15254     else
15255       echo "configure: failed program was" >&5
15256       cat conftest.s >&5
15257     fi
15258     rm -f conftest.o conftest.s
15259   fi
15260 fi
15261 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15262 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15263 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15264
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15267 _ACEOF
15268
15269 fi
15270
15271 fi # unaligned pcrel relocs
15272
15273     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15274 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15275 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   gcc_cv_as_sparc_offsetable_lo10=no
15279   if test x$gcc_cv_as != x; then
15280     echo '.text
15281         or %g1, %lo(ab) + 12, %g1
15282         or %g1, %lo(ab + 12), %g1' > conftest.s
15283     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285   (eval $ac_try) 2>&5
15286   ac_status=$?
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); }; }
15289     then
15290         if test x$gcc_cv_objdump != x \
15291        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15292           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15293          gcc_cv_as_sparc_offsetable_lo10=yes
15294        fi
15295     else
15296       echo "configure: failed program was" >&5
15297       cat conftest.s >&5
15298     fi
15299     rm -f conftest.o conftest.s
15300   fi
15301 fi
15302 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15303 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15304 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15305
15306 cat >>confdefs.h <<\_ACEOF
15307 #define HAVE_AS_OFFSETABLE_LO10 1
15308 _ACEOF
15309
15310 fi
15311     ;;
15312
15313   i[34567]86-*-* | x86_64-*-*)
15314     case $target_os in
15315       cygwin* | pe | mingw32*)
15316         # Used for DWARF 2 in PE
15317         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15318 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15319 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15320   echo $ECHO_N "(cached) $ECHO_C" >&6
15321 else
15322   gcc_cv_as_ix86_pe_secrel32=no
15323     if test $in_tree_gas = yes; then
15324     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15325   then gcc_cv_as_ix86_pe_secrel32=yes
15326 fi
15327   elif test x$gcc_cv_as != x; then
15328     echo '.text
15329 foo:    nop
15330 .data
15331         .secrel32 foo' > conftest.s
15332     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334   (eval $ac_try) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; }
15338     then
15339         if test x$gcc_cv_ld != x \
15340            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15341              gcc_cv_as_ix86_pe_secrel32=yes
15342            fi
15343            rm -f conftest
15344     else
15345       echo "configure: failed program was" >&5
15346       cat conftest.s >&5
15347     fi
15348     rm -f conftest.o conftest.s
15349   fi
15350 fi
15351 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15352 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15353 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15354
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_GAS_PE_SECREL32_RELOC 1
15357 _ACEOF
15358
15359 fi
15360         ;;
15361     esac
15362
15363     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15364 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15365 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   gcc_cv_as_ix86_filds_fists=no
15369     if test $in_tree_gas = yes; then
15370     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15371   then gcc_cv_as_ix86_filds_fists=yes
15372 fi
15373   elif test x$gcc_cv_as != x; then
15374     echo 'filds mem; fists mem' > conftest.s
15375     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }
15381     then
15382         gcc_cv_as_ix86_filds_fists=yes
15383     else
15384       echo "configure: failed program was" >&5
15385       cat conftest.s >&5
15386     fi
15387     rm -f conftest.o conftest.s
15388   fi
15389 fi
15390 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15391 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15392 if test $gcc_cv_as_ix86_filds_fists = yes; then
15393
15394 cat >>confdefs.h <<\_ACEOF
15395 #define HAVE_GAS_FILDS_FISTS 1
15396 _ACEOF
15397
15398 fi
15399
15400     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15401 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15402 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   gcc_cv_as_ix86_cmov_sun_syntax=no
15406   if test x$gcc_cv_as != x; then
15407     echo 'cmovl.l %edx, %eax' > conftest.s
15408     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15410   (eval $ac_try) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }
15414     then
15415         gcc_cv_as_ix86_cmov_sun_syntax=yes
15416     else
15417       echo "configure: failed program was" >&5
15418       cat conftest.s >&5
15419     fi
15420     rm -f conftest.o conftest.s
15421   fi
15422 fi
15423 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15424 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15425 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15426
15427 cat >>confdefs.h <<\_ACEOF
15428 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15429 _ACEOF
15430
15431 fi
15432
15433     # This one is used unconditionally by i386.[ch]; it is to be defined
15434     # to 1 if the feature is present, 0 otherwise.
15435     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15436 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15437 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15438   echo $ECHO_N "(cached) $ECHO_C" >&6
15439 else
15440   gcc_cv_as_ix86_gotoff_in_data=no
15441     if test $in_tree_gas = yes; then
15442     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15443   then gcc_cv_as_ix86_gotoff_in_data=yes
15444 fi
15445   elif test x$gcc_cv_as != x; then
15446     echo '      .text
15447 .L0:
15448         nop
15449         .data
15450         .long .L0@GOTOFF' > conftest.s
15451     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453   (eval $ac_try) 2>&5
15454   ac_status=$?
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); }; }
15457     then
15458         gcc_cv_as_ix86_gotoff_in_data=yes
15459     else
15460       echo "configure: failed program was" >&5
15461       cat conftest.s >&5
15462     fi
15463     rm -f conftest.o conftest.s
15464   fi
15465 fi
15466 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15467 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15468
15469
15470 cat >>confdefs.h <<_ACEOF
15471 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15472 _ACEOF
15473
15474     ;;
15475
15476   ia64*-*-*)
15477     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15478 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15479 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15480   echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15483     if test $in_tree_gas = yes; then
15484     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15485   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15486 fi
15487   elif test x$gcc_cv_as != x; then
15488     echo '      .text
15489         addl r15 = @ltoffx(x#), gp
15490         ;;
15491         ld8.mov r16 = [r15], x#' > conftest.s
15492     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; }
15498     then
15499         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15500     else
15501       echo "configure: failed program was" >&5
15502       cat conftest.s >&5
15503     fi
15504     rm -f conftest.o conftest.s
15505   fi
15506 fi
15507 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15508 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15509 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15510
15511 cat >>confdefs.h <<\_ACEOF
15512 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15513 _ACEOF
15514
15515 fi
15516
15517     ;;
15518
15519   powerpc*-*-*)
15520     case $target in
15521       *-*-aix*) conftest_s='    .machine "pwr5"
15522         .csect .text[PR]
15523         mfcr 3,128';;
15524       *-*-darwin*)
15525         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15526 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15527 if test "${gcc_cv_as_machine_directive+set}" = set; then
15528   echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530   gcc_cv_as_machine_directive=no
15531   if test x$gcc_cv_as != x; then
15532     echo '      .machine ppc7400' > conftest.s
15533     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535   (eval $ac_try) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; }
15539     then
15540         gcc_cv_as_machine_directive=yes
15541     else
15542       echo "configure: failed program was" >&5
15543       cat conftest.s >&5
15544     fi
15545     rm -f conftest.o conftest.s
15546   fi
15547 fi
15548 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15549 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15550
15551         if test x$gcc_cv_as_machine_directive != xyes; then
15552           echo "*** This target requires an assembler supporting \".machine\"" >&2
15553           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15554           test x$build = x$target && exit 1
15555         fi
15556         conftest_s='    .text
15557         mfcr r3,128';;
15558       *) conftest_s='   .machine power4
15559         .text
15560         mfcr 3,128';;
15561     esac
15562
15563     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15564 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15565 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15566   echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568   gcc_cv_as_powerpc_mfcrf=no
15569     if test $in_tree_gas = yes; then
15570     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15571   then gcc_cv_as_powerpc_mfcrf=yes
15572 fi
15573   elif test x$gcc_cv_as != x; then
15574     echo "$conftest_s" > conftest.s
15575     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }
15581     then
15582         gcc_cv_as_powerpc_mfcrf=yes
15583     else
15584       echo "configure: failed program was" >&5
15585       cat conftest.s >&5
15586     fi
15587     rm -f conftest.o conftest.s
15588   fi
15589 fi
15590 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15591 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15592 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15593
15594 cat >>confdefs.h <<\_ACEOF
15595 #define HAVE_AS_MFCRF 1
15596 _ACEOF
15597
15598 fi
15599
15600     case $target in
15601       *-*-aix*) conftest_s='    .machine "pwr5"
15602         .csect .text[PR]
15603         popcntb 3,3';;
15604       *) conftest_s='   .machine power5
15605         .text
15606         popcntb 3,3';;
15607     esac
15608
15609     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15610 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15611 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   gcc_cv_as_powerpc_popcntb=no
15615     if test $in_tree_gas = yes; then
15616     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15617   then gcc_cv_as_powerpc_popcntb=yes
15618 fi
15619   elif test x$gcc_cv_as != x; then
15620     echo "$conftest_s" > conftest.s
15621     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; }
15627     then
15628         gcc_cv_as_powerpc_popcntb=yes
15629     else
15630       echo "configure: failed program was" >&5
15631       cat conftest.s >&5
15632     fi
15633     rm -f conftest.o conftest.s
15634   fi
15635 fi
15636 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15637 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15638 if test $gcc_cv_as_powerpc_popcntb = yes; then
15639
15640 cat >>confdefs.h <<\_ACEOF
15641 #define HAVE_AS_POPCNTB 1
15642 _ACEOF
15643
15644 fi
15645
15646     case $target in
15647       *-*-aix*) conftest_s='    .machine "pwr5x"
15648         .csect .text[PR]
15649         frin 1,1';;
15650       *) conftest_s='   .machine power5
15651         .text
15652         frin 1,1';;
15653     esac
15654
15655     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15656 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15657 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15658   echo $ECHO_N "(cached) $ECHO_C" >&6
15659 else
15660   gcc_cv_as_powerpc_fprnd=no
15661     if test $in_tree_gas = yes; then
15662     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15663   then gcc_cv_as_powerpc_fprnd=yes
15664 fi
15665   elif test x$gcc_cv_as != x; then
15666     echo "$conftest_s" > conftest.s
15667     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; }
15673     then
15674         gcc_cv_as_powerpc_fprnd=yes
15675     else
15676       echo "configure: failed program was" >&5
15677       cat conftest.s >&5
15678     fi
15679     rm -f conftest.o conftest.s
15680   fi
15681 fi
15682 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15683 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15684 if test $gcc_cv_as_powerpc_fprnd = yes; then
15685
15686 cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_AS_FPRND 1
15688 _ACEOF
15689
15690 fi
15691
15692     case $target in
15693       *-*-aix*) conftest_s='    .csect .text[PR]
15694 LCF..0:
15695         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15696       *-*-darwin*)
15697         conftest_s='    .text
15698 LCF0:
15699         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15700       *) conftest_s='   .text
15701 .LCF0:
15702         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15703     esac
15704
15705     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15706 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15707 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   gcc_cv_as_powerpc_rel16=no
15711     if test $in_tree_gas = yes; then
15712     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15713   then gcc_cv_as_powerpc_rel16=yes
15714 fi
15715   elif test x$gcc_cv_as != x; then
15716     echo "$conftest_s" > conftest.s
15717     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719   (eval $ac_try) 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; }
15723     then
15724         gcc_cv_as_powerpc_rel16=yes
15725     else
15726       echo "configure: failed program was" >&5
15727       cat conftest.s >&5
15728     fi
15729     rm -f conftest.o conftest.s
15730   fi
15731 fi
15732 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15733 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15734 if test $gcc_cv_as_powerpc_rel16 = yes; then
15735
15736 cat >>confdefs.h <<\_ACEOF
15737 #define HAVE_AS_REL16 1
15738 _ACEOF
15739
15740 fi
15741     ;;
15742
15743   mips*-*-*)
15744     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15745 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15746 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749   gcc_cv_as_mips_explicit_relocs=no
15750     if test $in_tree_gas = yes; then
15751     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15752   then gcc_cv_as_mips_explicit_relocs=yes
15753 fi
15754   elif test x$gcc_cv_as != x; then
15755     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15756     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15758   (eval $ac_try) 2>&5
15759   ac_status=$?
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); }; }
15762     then
15763         gcc_cv_as_mips_explicit_relocs=yes
15764     else
15765       echo "configure: failed program was" >&5
15766       cat conftest.s >&5
15767     fi
15768     rm -f conftest.o conftest.s
15769   fi
15770 fi
15771 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15772 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15773 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15774   if test x$target_cpu_default = x
15775        then target_cpu_default=MASK_EXPLICIT_RELOCS
15776        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15777        fi
15778 fi
15779     ;;
15780 esac
15781
15782 # Mips and HP-UX need the GNU assembler.
15783 # Linux on IA64 might be able to use the Intel assembler.
15784
15785 case "$target" in
15786   mips*-*-* | *-*-hpux* )
15787     if test x$gas_flag = xyes \
15788        || test x"$host" != x"$build" \
15789        || test ! -x "$gcc_cv_as" \
15790        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15791       :
15792     else
15793       echo "*** This configuration requires the GNU assembler" >&2
15794       exit 1
15795     fi
15796     ;;
15797 esac
15798
15799 # ??? Not all targets support dwarf2 debug_line, even within a version
15800 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15801 # info to the output file.  So, as supported targets are added to gas 2.11,
15802 # add some instruction here to (also) show we expect this might work.
15803 # ??? Once 2.11 is released, probably need to add first known working
15804 # version to the per-target configury.
15805 case "$target" in
15806   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
15807   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
15808   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-*)
15809     insn="nop"
15810     ;;
15811   ia64*-*-* | s390*-*-*)
15812     insn="nop 0"
15813     ;;
15814   mmix-*-*)
15815     insn="swym 0"
15816     ;;
15817 esac
15818 if test x"$insn" != x; then
15819  conftest_s="\
15820         .file 1 \"conftest.s\"
15821         .loc 1 3 0
15822         $insn"
15823  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
15824 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
15825 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   gcc_cv_as_dwarf2_debug_line=no
15829     if test $in_tree_gas = yes; then
15830     if test $in_tree_gas_is_elf = yes \
15831   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15832   then gcc_cv_as_dwarf2_debug_line=yes
15833 fi
15834   elif test x$gcc_cv_as != x; then
15835     echo "$conftest_s" > conftest.s
15836     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15838   (eval $ac_try) 2>&5
15839   ac_status=$?
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); }; }
15842     then
15843         if test x$gcc_cv_objdump != x \
15844    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
15845       | grep debug_line > /dev/null 2>&1; then
15846      gcc_cv_as_dwarf2_debug_line=yes
15847    fi
15848     else
15849       echo "configure: failed program was" >&5
15850       cat conftest.s >&5
15851     fi
15852     rm -f conftest.o conftest.s
15853   fi
15854 fi
15855 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
15856 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
15857
15858
15859 # The .debug_line file table must be in the exact order that
15860 # we specified the files, since these indices are also used
15861 # by DW_AT_decl_file.  Approximate this test by testing if
15862 # the assembler bitches if the same index is assigned twice.
15863  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
15864 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
15865 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
15866   echo $ECHO_N "(cached) $ECHO_C" >&6
15867 else
15868   gcc_cv_as_dwarf2_file_buggy=no
15869   if test x$gcc_cv_as != x; then
15870     echo '      .file 1 "foo.s"
15871         .file 1 "bar.s"' > conftest.s
15872     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15874   (eval $ac_try) 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; }
15878     then
15879         gcc_cv_as_dwarf2_file_buggy=yes
15880     else
15881       echo "configure: failed program was" >&5
15882       cat conftest.s >&5
15883     fi
15884     rm -f conftest.o conftest.s
15885   fi
15886 fi
15887 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
15888 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
15889
15890
15891  if test $gcc_cv_as_dwarf2_debug_line = yes \
15892  && test $gcc_cv_as_dwarf2_file_buggy = no; then
15893
15894 cat >>confdefs.h <<\_ACEOF
15895 #define HAVE_AS_DWARF2_DEBUG_LINE 1
15896 _ACEOF
15897
15898  fi
15899
15900  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
15901 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
15902 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   gcc_cv_as_gdwarf2_flag=no
15906     if test $in_tree_gas = yes; then
15907     if test $in_tree_gas_is_elf = yes \
15908   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15909   then gcc_cv_as_gdwarf2_flag=yes
15910 fi
15911   elif test x$gcc_cv_as != x; then
15912     echo "$insn" > conftest.s
15913     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
15914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915   (eval $ac_try) 2>&5
15916   ac_status=$?
15917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918   (exit $ac_status); }; }
15919     then
15920         gcc_cv_as_gdwarf2_flag=yes
15921     else
15922       echo "configure: failed program was" >&5
15923       cat conftest.s >&5
15924     fi
15925     rm -f conftest.o conftest.s
15926   fi
15927 fi
15928 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
15929 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
15930 if test $gcc_cv_as_gdwarf2_flag = yes; then
15931
15932 cat >>confdefs.h <<\_ACEOF
15933 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
15934 _ACEOF
15935
15936 fi
15937
15938  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
15939 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
15940 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
15941   echo $ECHO_N "(cached) $ECHO_C" >&6
15942 else
15943   gcc_cv_as_gstabs_flag=no
15944     if test $in_tree_gas = yes; then
15945     if test $in_tree_gas_is_elf = yes \
15946   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15947   then gcc_cv_as_gstabs_flag=yes
15948 fi
15949   elif test x$gcc_cv_as != x; then
15950     echo "$insn" > conftest.s
15951     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }
15957     then
15958         # The native Solaris 9/Intel assembler doesn't understand --gstabs
15959    # and warns about it, but still exits successfully.  So check for
15960    # this.
15961    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
15962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15963   (eval $ac_try) 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); }; }
15967    then :
15968    else gcc_cv_as_gstabs_flag=yes
15969    fi
15970     else
15971       echo "configure: failed program was" >&5
15972       cat conftest.s >&5
15973     fi
15974     rm -f conftest.o conftest.s
15975   fi
15976 fi
15977 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
15978 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
15979 if test $gcc_cv_as_gstabs_flag = yes; then
15980
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
15983 _ACEOF
15984
15985 fi
15986 fi
15987
15988 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
15989 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
15990 gcc_cv_ld_ro_rw_mix=unknown
15991 if test $in_tree_ld = yes ; then
15992   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 \
15993      && test $in_tree_ld_is_elf = yes; then
15994     gcc_cv_ld_ro_rw_mix=read-write
15995   fi
15996 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
15997   echo '.section myfoosect, "a"' > conftest1.s
15998   echo '.section myfoosect, "aw"' > conftest2.s
15999   echo '.byte 1' >> conftest2.s
16000   echo '.section myfoosect, "a"' > conftest3.s
16001   echo '.byte 0' >> conftest3.s
16002   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16003      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16004      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16005      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16006         conftest2.o conftest3.o > /dev/null 2>&1; then
16007     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16008                          | sed -e '/myfoosect/!d' -e N`
16009     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16010       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16011         gcc_cv_ld_ro_rw_mix=read-only
16012       else
16013         gcc_cv_ld_ro_rw_mix=read-write
16014       fi
16015     fi
16016   fi
16017   rm -f conftest.* conftest[123].*
16018 fi
16019 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16020
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16023 _ACEOF
16024
16025 fi
16026 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16027 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16028
16029 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16030 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16031 gcc_cv_ld_eh_frame_hdr=no
16032 if test $in_tree_ld = yes ; then
16033   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 \
16034      && test $in_tree_ld_is_elf = yes; then
16035     gcc_cv_ld_eh_frame_hdr=yes
16036   fi
16037 elif test x$gcc_cv_ld != x; then
16038         # Check if linker supports --eh-frame-hdr option
16039         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16040                 gcc_cv_ld_eh_frame_hdr=yes
16041         fi
16042 fi
16043
16044 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16045
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_LD_EH_FRAME_HDR 1
16048 _ACEOF
16049
16050 fi
16051 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16052 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16053
16054 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16055 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16056 gcc_cv_ld_pie=no
16057 if test $in_tree_ld = yes ; then
16058   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 \
16059      && test $in_tree_ld_is_elf = yes; then
16060     gcc_cv_ld_pie=yes
16061   fi
16062 elif test x$gcc_cv_ld != x; then
16063         # Check if linker supports -pie option
16064         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16065                 gcc_cv_ld_pie=yes
16066         fi
16067 fi
16068 if test x"$gcc_cv_ld_pie" = xyes; then
16069
16070 cat >>confdefs.h <<\_ACEOF
16071 #define HAVE_LD_PIE 1
16072 _ACEOF
16073
16074 fi
16075 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16076 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16077
16078 # --------
16079 # UNSORTED
16080 # --------
16081
16082 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16083 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16084 if test "${gcc_cv_ld_as_needed+set}" = set; then
16085   echo $ECHO_N "(cached) $ECHO_C" >&6
16086 else
16087   gcc_cv_ld_as_needed=no
16088 if test $in_tree_ld = yes ; then
16089   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 \
16090      && test $in_tree_ld_is_elf = yes; then
16091     gcc_cv_ld_as_needed=yes
16092   fi
16093 elif test x$gcc_cv_ld != x; then
16094         # Check if linker supports --as-needed and --no-as-needed options
16095         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16096                 gcc_cv_ld_as_needed=yes
16097         fi
16098 fi
16099
16100 fi
16101 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16102 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16103 if test x"$gcc_cv_ld_as_needed" = xyes; then
16104
16105 cat >>confdefs.h <<\_ACEOF
16106 #define HAVE_LD_AS_NEEDED 1
16107 _ACEOF
16108
16109 fi
16110
16111 case "$target:$tm_file" in
16112   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16113     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16114 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16115 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16116   echo $ECHO_N "(cached) $ECHO_C" >&6
16117 else
16118   gcc_cv_ld_no_dot_syms=no
16119     if test $in_tree_ld = yes ; then
16120       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
16121         gcc_cv_ld_no_dot_syms=yes
16122       fi
16123     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16124       cat > conftest1.s <<EOF
16125         .text
16126         bl .foo
16127 EOF
16128       cat > conftest2.s <<EOF
16129         .section ".opd","aw"
16130         .align 3
16131         .globl foo
16132         .type foo,@function
16133 foo:
16134         .quad .LEfoo,.TOC.@tocbase,0
16135         .text
16136 .LEfoo:
16137         blr
16138         .size foo,.-.LEfoo
16139 EOF
16140       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16141          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16142          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16143         gcc_cv_ld_no_dot_syms=yes
16144       fi
16145       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16146     fi
16147
16148 fi
16149 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16150 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16151     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16152
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_LD_NO_DOT_SYMS 1
16155 _ACEOF
16156
16157     fi
16158     ;;
16159 esac
16160
16161 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16162 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16163 if test "${gcc_cv_ld_sysroot+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   gcc_cv_ld_sysroot=no
16167   if test $in_tree_ld = yes ; then
16168       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
16169         gcc_cv_ld_sysroot=yes
16170       fi
16171   elif test x$gcc_cv_ld != x; then
16172     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16173       gcc_cv_ld_sysroot=yes
16174     fi
16175   fi
16176 fi
16177 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16178 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16179 if test x"$gcc_cv_ld_sysroot" = xyes; then
16180
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_LD_SYSROOT 1
16183 _ACEOF
16184
16185 fi
16186
16187 if test x$with_sysroot = x && test x$host = x$target \
16188    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then
16189
16190 cat >>confdefs.h <<_ACEOF
16191 #define PREFIX_INCLUDE_DIR "$prefix/include"
16192 _ACEOF
16193
16194 fi
16195
16196 # Test for stack protector support in target C library.
16197 case "$target" in
16198   *-*-linux*)
16199     echo "$as_me:$LINENO: checking __stack_chk_fail in target GNU C library" >&5
16200 echo $ECHO_N "checking __stack_chk_fail in target GNU C library... $ECHO_C" >&6
16201 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16202   echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
16204   gcc_cv_libc_provides_ssp=no
16205       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16206         if test "x$with_sysroot" = x; then
16207           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16208         elif test "x$with_sysroot" = xyes; then
16209           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16210         else
16211           glibc_header_dir="${with_sysroot}/usr/include"
16212         fi
16213       else
16214         glibc_header_dir=/usr/include
16215       fi
16216       # glibc 2.4 and later provides __stack_chk_fail and
16217       # either __stack_chk_guard, or TLS access to stack guard canary.
16218       if test -f $glibc_header_dir/features.h \
16219          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16220             $glibc_header_dir/features.h > /dev/null; then
16221         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16222            $glibc_header_dir/features.h > /dev/null; then
16223           gcc_cv_libc_provides_ssp=yes
16224         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16225              $glibc_header_dir/features.h > /dev/null \
16226              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16227              $glibc_header_dir/features.h > /dev/null; then
16228           gcc_cv_libc_provides_ssp=yes
16229         fi
16230       fi
16231 fi
16232 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16233 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6 ;;
16234   *) gcc_cv_libc_provides_ssp=no ;;
16235 esac
16236 if test x$gcc_cv_libc_provides_ssp = xyes; then
16237
16238 cat >>confdefs.h <<\_ACEOF
16239 #define TARGET_LIBC_PROVIDES_SSP 1
16240 _ACEOF
16241
16242 fi
16243
16244 # Find out what GC implementation we want, or may, use.
16245
16246 # Check whether --with-gc or --without-gc was given.
16247 if test "${with_gc+set}" = set; then
16248   withval="$with_gc"
16249   case "$withval" in
16250   page)
16251     GGC=ggc-$withval
16252     ;;
16253   zone)
16254     GGC=ggc-$withval
16255
16256 cat >>confdefs.h <<\_ACEOF
16257 #define GGC_ZONE 1
16258 _ACEOF
16259
16260     ;;
16261   *)
16262     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16263 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16264    { (exit 1); exit 1; }; }
16265     ;;
16266 esac
16267 else
16268   GGC=ggc-page
16269 fi;
16270
16271 echo "Using $GGC for garbage collection."
16272
16273 # Use the system's zlib library.
16274 zlibdir=-L../zlib
16275 zlibinc="-I\$(srcdir)/../zlib"
16276
16277 # Check whether --with-system-zlib or --without-system-zlib was given.
16278 if test "${with_system_zlib+set}" = set; then
16279   withval="$with_system_zlib"
16280   zlibdir=
16281 zlibinc=
16282
16283 fi;
16284
16285
16286
16287
16288 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16289 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16290     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16291 if test "${enable_maintainer_mode+set}" = set; then
16292   enableval="$enable_maintainer_mode"
16293   maintainer_mode=$enableval
16294 else
16295   maintainer_mode=no
16296 fi;
16297
16298 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16299 echo "${ECHO_T}$maintainer_mode" >&6
16300
16301 if test "$maintainer_mode" = "yes"; then
16302   MAINT=''
16303 else
16304   MAINT='#'
16305 fi
16306
16307 # --------------
16308 # Language hooks
16309 # --------------
16310
16311 # Make empty files to contain the specs and options for each language.
16312 # Then add #include lines to for a compiler that has specs and/or options.
16313
16314 lang_opt_files=
16315 lang_specs_files=
16316 lang_tree_files=
16317 for subdir in . $subdirs
16318 do
16319         if test -f $srcdir/$subdir/lang.opt; then
16320             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16321         fi
16322         if test -f $srcdir/$subdir/lang-specs.h; then
16323             lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16324         fi
16325         if test -f $srcdir/$subdir/$subdir-tree.def; then
16326             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16327         fi
16328 done
16329
16330 # These (without "all_") are set in each config-lang.in.
16331 # `language' must be a single word so is spelled singularly.
16332 all_languages=
16333 all_boot_languages=
16334 all_compilers=
16335 all_stagestuff=
16336 all_outputs='Makefile gccbug mklibgcc libada-mk'
16337 # List of language makefile fragments.
16338 all_lang_makefrags=
16339 # List of language subdirectory makefiles.  Deprecated.
16340 all_lang_makefiles=
16341 # Files for gengtype
16342 all_gtfiles="$target_gtfiles"
16343 # Files for gengtype with language
16344 all_gtfiles_files_langs=
16345 all_gtfiles_files_files=
16346
16347 # Add the language fragments.
16348 # Languages are added via two mechanisms.  Some information must be
16349 # recorded in makefile variables, these are defined in config-lang.in.
16350 # We accumulate them and plug them into the main Makefile.
16351 # The other mechanism is a set of hooks for each of the main targets
16352 # like `clean', `install', etc.
16353
16354 language_hooks="Make-hooks"
16355
16356 for s in $subdirs
16357 do
16358                 language=
16359                 boot_language=
16360                 compilers=
16361                 stagestuff=
16362                 outputs=
16363                 gtfiles=
16364                 . ${srcdir}/$s/config-lang.in
16365                 if test "x$language" = x
16366                 then
16367                         echo "${srcdir}/$s/config-lang.in doesn't set \$language." 1>&2
16368                         exit 1
16369                 fi
16370                 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$s/Make-lang.in"
16371                 if test -f ${srcdir}/$s/Makefile.in
16372                 then all_lang_makefiles="$s/Makefile"
16373                 fi
16374                 all_languages="$all_languages $language"
16375                 if test "x$boot_language" = xyes
16376                 then
16377                         all_boot_languages="$all_boot_languages $language"
16378                 fi
16379                 all_compilers="$all_compilers $compilers"
16380                 all_stagestuff="$all_stagestuff $stagestuff"
16381                 all_outputs="$all_outputs $outputs"
16382                 all_gtfiles="$all_gtfiles $gtfiles"
16383                 for f in $gtfiles
16384                 do
16385                          all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16386                          all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16387                 done
16388 done
16389
16390 # Pick up gtfiles for c
16391 gtfiles=
16392 s="c"
16393 . ${srcdir}/c-config-lang.in
16394 all_gtfiles="$all_gtfiles $gtfiles"
16395 for f in $gtfiles
16396 do
16397         all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} "
16398         all_gtfiles_files_files="$all_gtfiles_files_files ${f} "
16399 done
16400
16401 check_languages=
16402 for language in $all_languages
16403 do
16404                 check_languages="$check_languages check-$language"
16405 done
16406
16407 # We link each language in with a set of hooks, reached indirectly via
16408 # lang.${target}.
16409
16410 rm -f Make-hooks
16411 touch Make-hooks
16412 target_list="all.cross start.encap rest.encap tags \
16413         install-common install-man \
16414         uninstall info man srcextra srcman srcinfo \
16415         mostlyclean clean distclean maintainer-clean \
16416         stage1 stage2 stage3 stage4 stageprofile stagefeedback"
16417 for t in $target_list
16418 do
16419         x=
16420         for lang in $all_languages
16421         do
16422                         x="$x $lang.$t"
16423         done
16424         echo "lang.$t: $x" >> Make-hooks
16425 done
16426
16427 # --------
16428 # UNSORTED
16429 # --------
16430
16431 # Create .gdbinit.
16432
16433 echo "dir ." > .gdbinit
16434 echo "dir ${srcdir}" >> .gdbinit
16435 if test x$gdb_needs_out_file_path = xyes
16436 then
16437         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16438 fi
16439 if test "x$subdirs" != x; then
16440         for s in $subdirs
16441         do
16442                 echo "dir ${srcdir}/$s" >> .gdbinit
16443         done
16444 fi
16445 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16446
16447 # If $(exec_prefix) exists and is not the same as $(prefix), then compute an
16448 # absolute path for gcc_tooldir based on inserting the number of up-directory
16449 # movements required to get from $(exec_prefix) to $(prefix) into the basic
16450 # $(libsubdir)/@(unlibsubdir) based path.
16451 # Don't set gcc_tooldir to tooldir since that's only passed in by the toplevel
16452 # make and thus we'd get different behavior depending on where we built the
16453 # sources.
16454 if test x$exec_prefix = xNONE -o x$exec_prefix = x$prefix; then
16455     gcc_tooldir='$(libsubdir)/$(unlibsubdir)/../$(target_noncanonical)'
16456 else
16457 # An explanation of the sed strings:
16458 #  -e 's|^\$(prefix)||'   matches and eliminates 'prefix' from 'exec_prefix'
16459 #  -e 's|/$||'            match a trailing forward slash and eliminates it
16460 #  -e 's|^[^/]|/|'        forces the string to start with a forward slash (*)
16461 #  -e 's|/[^/]*|../|g'    replaces each occurrence of /<directory> with ../
16462 #
16463 # (*) Note this pattern overwrites the first character of the string
16464 # with a forward slash if one is not already present.  This is not a
16465 # problem because the exact names of the sub-directories concerned is
16466 # unimportant, just the number of them matters.
16467 #
16468 # The practical upshot of these patterns is like this:
16469 #
16470 #  prefix     exec_prefix        result
16471 #  ------     -----------        ------
16472 #   /foo        /foo/bar          ../
16473 #   /foo/       /foo/bar          ../
16474 #   /foo        /foo/bar/         ../
16475 #   /foo/       /foo/bar/         ../
16476 #   /foo        /foo/bar/ugg      ../../
16477 #
16478     dollar='$$'
16479     gcc_tooldir="\$(libsubdir)/\$(unlibsubdir)/\`echo \$(exec_prefix) | sed -e 's|^\$(prefix)||' -e 's|/\$(dollar)||' -e 's|^[^/]|/|' -e 's|/[^/]*|../|g'\`\$(target_noncanonical)"
16480 fi
16481
16482
16483
16484 # Find a directory in which to install a shared libgcc.
16485
16486 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16487 if test "${enable_version_specific_runtime_libs+set}" = set; then
16488   enableval="$enable_version_specific_runtime_libs"
16489
16490 fi;
16491
16492
16493 # Check whether --with-slibdir or --without-slibdir was given.
16494 if test "${with_slibdir+set}" = set; then
16495   withval="$with_slibdir"
16496   slibdir="$with_slibdir"
16497 else
16498   if test "${enable_version_specific_runtime_libs+set}" = set; then
16499   slibdir='$(libsubdir)'
16500 elif test "$host" != "$target"; then
16501   slibdir='$(build_tooldir)/lib'
16502 else
16503   slibdir='$(libdir)'
16504 fi
16505 fi;
16506
16507
16508 objdir=`${PWDCMD-pwd}`
16509
16510
16511 # Substitute configuration variables
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575 # Echo link setup.
16576 if test x${build} = x${host} ; then
16577   if test x${host} = x${target} ; then
16578     echo "Links are now set up to build a native compiler for ${target}." 1>&2
16579   else
16580     echo "Links are now set up to build a cross-compiler" 1>&2
16581     echo " from ${host} to ${target}." 1>&2
16582   fi
16583 else
16584   if test x${host} = x${target} ; then
16585     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
16586     echo " for ${target}." 1>&2
16587   else
16588     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
16589     echo " from ${host} to ${target}." 1>&2
16590   fi
16591 fi
16592
16593
16594
16595
16596 # Configure the subdirectories
16597 # AC_CONFIG_SUBDIRS($subdirs)
16598
16599 # Create the Makefile
16600 # and configure language subdirectories
16601           ac_config_files="$ac_config_files $all_outputs"
16602
16603
16604           ac_config_commands="$ac_config_commands default"
16605
16606 cat >confcache <<\_ACEOF
16607 # This file is a shell script that caches the results of configure
16608 # tests run on this system so they can be shared between configure
16609 # scripts and configure runs, see configure's option --config-cache.
16610 # It is not useful on other systems.  If it contains results you don't
16611 # want to keep, you may remove or edit it.
16612 #
16613 # config.status only pays attention to the cache file if you give it
16614 # the --recheck option to rerun configure.
16615 #
16616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16618 # following values.
16619
16620 _ACEOF
16621
16622 # The following way of writing the cache mishandles newlines in values,
16623 # but we know of no workaround that is simple, portable, and efficient.
16624 # So, don't put newlines in cache variables' values.
16625 # Ultrix sh set writes to stderr and can't be redirected directly,
16626 # and sets the high bit in the cache file unless we assign to the vars.
16627 {
16628   (set) 2>&1 |
16629     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16630     *ac_space=\ *)
16631       # `set' does not quote correctly, so add quotes (double-quote
16632       # substitution turns \\\\ into \\, and sed turns \\ into \).
16633       sed -n \
16634         "s/'/'\\\\''/g;
16635           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16636       ;;
16637     *)
16638       # `set' quotes correctly as required by POSIX, so do not add quotes.
16639       sed -n \
16640         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16641       ;;
16642     esac;
16643 } |
16644   sed '
16645      t clear
16646      : clear
16647      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16648      t end
16649      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16650      : end' >>confcache
16651 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16652   if test -w $cache_file; then
16653     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16654     cat confcache >$cache_file
16655   else
16656     echo "not updating unwritable cache $cache_file"
16657   fi
16658 fi
16659 rm -f confcache
16660
16661 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16662 # Let make expand exec_prefix.
16663 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16664
16665 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16666 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16667 # trailing colons and then remove the whole line if VPATH becomes empty
16668 # (actually we leave an empty line to preserve line numbers).
16669 if test "x$srcdir" = x.; then
16670   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16671 s/:*\$(srcdir):*/:/;
16672 s/:*\${srcdir}:*/:/;
16673 s/:*@srcdir@:*/:/;
16674 s/^\([^=]*=[     ]*\):*/\1/;
16675 s/:*$//;
16676 s/^[^=]*=[       ]*$//;
16677 }'
16678 fi
16679
16680 DEFS=-DHAVE_CONFIG_H
16681
16682 ac_libobjs=
16683 ac_ltlibobjs=
16684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16685   # 1. Remove the extension, and $U if already installed.
16686   ac_i=`echo "$ac_i" |
16687          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16688   # 2. Add them.
16689   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16690   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16691 done
16692 LIBOBJS=$ac_libobjs
16693
16694 LTLIBOBJS=$ac_ltlibobjs
16695
16696
16697
16698 : ${CONFIG_STATUS=./config.status}
16699 ac_clean_files_save=$ac_clean_files
16700 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16701 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16702 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16703 cat >$CONFIG_STATUS <<_ACEOF
16704 #! $SHELL
16705 # Generated by $as_me.
16706 # Run this file to recreate the current configuration.
16707 # Compiler output produced by configure, useful for debugging
16708 # configure, is in config.log if it exists.
16709
16710 debug=false
16711 ac_cs_recheck=false
16712 ac_cs_silent=false
16713 SHELL=\${CONFIG_SHELL-$SHELL}
16714 _ACEOF
16715
16716 cat >>$CONFIG_STATUS <<\_ACEOF
16717 ## --------------------- ##
16718 ## M4sh Initialization.  ##
16719 ## --------------------- ##
16720
16721 # Be Bourne compatible
16722 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16723   emulate sh
16724   NULLCMD=:
16725   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16726   # is contrary to our usage.  Disable this feature.
16727   alias -g '${1+"$@"}'='"$@"'
16728 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16729   set -o posix
16730 fi
16731 DUALCASE=1; export DUALCASE # for MKS sh
16732
16733 # Support unset when possible.
16734 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16735   as_unset=unset
16736 else
16737   as_unset=false
16738 fi
16739
16740
16741 # Work around bugs in pre-3.0 UWIN ksh.
16742 $as_unset ENV MAIL MAILPATH
16743 PS1='$ '
16744 PS2='> '
16745 PS4='+ '
16746
16747 # NLS nuisances.
16748 for as_var in \
16749   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16750   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16751   LC_TELEPHONE LC_TIME
16752 do
16753   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16754     eval $as_var=C; export $as_var
16755   else
16756     $as_unset $as_var
16757   fi
16758 done
16759
16760 # Required to use basename.
16761 if expr a : '\(a\)' >/dev/null 2>&1; then
16762   as_expr=expr
16763 else
16764   as_expr=false
16765 fi
16766
16767 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16768   as_basename=basename
16769 else
16770   as_basename=false
16771 fi
16772
16773
16774 # Name of the executable.
16775 as_me=`$as_basename "$0" ||
16776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16777          X"$0" : 'X\(//\)$' \| \
16778          X"$0" : 'X\(/\)$' \| \
16779          .     : '\(.\)' 2>/dev/null ||
16780 echo X/"$0" |
16781     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16782           /^X\/\(\/\/\)$/{ s//\1/; q; }
16783           /^X\/\(\/\).*/{ s//\1/; q; }
16784           s/.*/./; q'`
16785
16786
16787 # PATH needs CR, and LINENO needs CR and PATH.
16788 # Avoid depending upon Character Ranges.
16789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16792 as_cr_digits='0123456789'
16793 as_cr_alnum=$as_cr_Letters$as_cr_digits
16794
16795 # The user is always right.
16796 if test "${PATH_SEPARATOR+set}" != set; then
16797   echo "#! /bin/sh" >conf$$.sh
16798   echo  "exit 0"   >>conf$$.sh
16799   chmod +x conf$$.sh
16800   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16801     PATH_SEPARATOR=';'
16802   else
16803     PATH_SEPARATOR=:
16804   fi
16805   rm -f conf$$.sh
16806 fi
16807
16808
16809   as_lineno_1=$LINENO
16810   as_lineno_2=$LINENO
16811   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16812   test "x$as_lineno_1" != "x$as_lineno_2" &&
16813   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16814   # Find who we are.  Look in the path if we contain no path at all
16815   # relative or not.
16816   case $0 in
16817     *[\\/]* ) as_myself=$0 ;;
16818     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16820 do
16821   IFS=$as_save_IFS
16822   test -z "$as_dir" && as_dir=.
16823   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16824 done
16825
16826        ;;
16827   esac
16828   # We did not find ourselves, most probably we were run as `sh COMMAND'
16829   # in which case we are not to be found in the path.
16830   if test "x$as_myself" = x; then
16831     as_myself=$0
16832   fi
16833   if test ! -f "$as_myself"; then
16834     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16835 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16836    { (exit 1); exit 1; }; }
16837   fi
16838   case $CONFIG_SHELL in
16839   '')
16840     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16842 do
16843   IFS=$as_save_IFS
16844   test -z "$as_dir" && as_dir=.
16845   for as_base in sh bash ksh sh5; do
16846          case $as_dir in
16847          /*)
16848            if ("$as_dir/$as_base" -c '
16849   as_lineno_1=$LINENO
16850   as_lineno_2=$LINENO
16851   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16852   test "x$as_lineno_1" != "x$as_lineno_2" &&
16853   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16854              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16855              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16856              CONFIG_SHELL=$as_dir/$as_base
16857              export CONFIG_SHELL
16858              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16859            fi;;
16860          esac
16861        done
16862 done
16863 ;;
16864   esac
16865
16866   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16867   # uniformly replaced by the line number.  The first 'sed' inserts a
16868   # line-number line before each line; the second 'sed' does the real
16869   # work.  The second script uses 'N' to pair each line-number line
16870   # with the numbered line, and appends trailing '-' during
16871   # substitution so that $LINENO is not a special case at line end.
16872   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16873   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16874   sed '=' <$as_myself |
16875     sed '
16876       N
16877       s,$,-,
16878       : loop
16879       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16880       t loop
16881       s,-$,,
16882       s,^['$as_cr_digits']*\n,,
16883     ' >$as_me.lineno &&
16884   chmod +x $as_me.lineno ||
16885     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16886 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16887    { (exit 1); exit 1; }; }
16888
16889   # Don't try to exec as it changes $[0], causing all sort of problems
16890   # (the dirname of $[0] is not the place where we might find the
16891   # original and so on.  Autoconf is especially sensible to this).
16892   . ./$as_me.lineno
16893   # Exit status is that of the last command.
16894   exit
16895 }
16896
16897
16898 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16899   *c*,-n*) ECHO_N= ECHO_C='
16900 ' ECHO_T='      ' ;;
16901   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16902   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16903 esac
16904
16905 if expr a : '\(a\)' >/dev/null 2>&1; then
16906   as_expr=expr
16907 else
16908   as_expr=false
16909 fi
16910
16911 rm -f conf$$ conf$$.exe conf$$.file
16912 echo >conf$$.file
16913 if ln -s conf$$.file conf$$ 2>/dev/null; then
16914   # We could just check for DJGPP; but this test a) works b) is more generic
16915   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16916   if test -f conf$$.exe; then
16917     # Don't use ln at all; we don't have any links
16918     as_ln_s='cp -p'
16919   else
16920     as_ln_s='ln -s'
16921   fi
16922 elif ln conf$$.file conf$$ 2>/dev/null; then
16923   as_ln_s=ln
16924 else
16925   as_ln_s='cp -p'
16926 fi
16927 rm -f conf$$ conf$$.exe conf$$.file
16928
16929 if mkdir -p . 2>/dev/null; then
16930   as_mkdir_p=:
16931 else
16932   test -d ./-p && rmdir ./-p
16933   as_mkdir_p=false
16934 fi
16935
16936 as_executable_p="test -f"
16937
16938 # Sed expression to map a string onto a valid CPP name.
16939 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16940
16941 # Sed expression to map a string onto a valid variable name.
16942 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16943
16944
16945 # IFS
16946 # We need space, tab and new line, in precisely that order.
16947 as_nl='
16948 '
16949 IFS="   $as_nl"
16950
16951 # CDPATH.
16952 $as_unset CDPATH
16953
16954 exec 6>&1
16955
16956 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16957 # report actual input values of CONFIG_FILES etc. instead of their
16958 # values after options handling.  Logging --version etc. is OK.
16959 exec 5>>config.log
16960 {
16961   echo
16962   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16963 ## Running $as_me. ##
16964 _ASBOX
16965 } >&5
16966 cat >&5 <<_CSEOF
16967
16968 This file was extended by $as_me, which was
16969 generated by GNU Autoconf 2.59.  Invocation command line was
16970
16971   CONFIG_FILES    = $CONFIG_FILES
16972   CONFIG_HEADERS  = $CONFIG_HEADERS
16973   CONFIG_LINKS    = $CONFIG_LINKS
16974   CONFIG_COMMANDS = $CONFIG_COMMANDS
16975   $ $0 $@
16976
16977 _CSEOF
16978 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16979 echo >&5
16980 _ACEOF
16981
16982 # Files that config.status was made for.
16983 if test -n "$ac_config_files"; then
16984   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16985 fi
16986
16987 if test -n "$ac_config_headers"; then
16988   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16989 fi
16990
16991 if test -n "$ac_config_links"; then
16992   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16993 fi
16994
16995 if test -n "$ac_config_commands"; then
16996   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16997 fi
16998
16999 cat >>$CONFIG_STATUS <<\_ACEOF
17000
17001 ac_cs_usage="\
17002 \`$as_me' instantiates files from templates according to the
17003 current configuration.
17004
17005 Usage: $0 [OPTIONS] [FILE]...
17006
17007   -h, --help       print this help, then exit
17008   -V, --version    print version number, then exit
17009   -q, --quiet      do not print progress messages
17010   -d, --debug      don't remove temporary files
17011       --recheck    update $as_me by reconfiguring in the same conditions
17012   --file=FILE[:TEMPLATE]
17013                    instantiate the configuration file FILE
17014   --header=FILE[:TEMPLATE]
17015                    instantiate the configuration header FILE
17016
17017 Configuration files:
17018 $config_files
17019
17020 Configuration headers:
17021 $config_headers
17022
17023 Configuration commands:
17024 $config_commands
17025
17026 Report bugs to <bug-autoconf@gnu.org>."
17027 _ACEOF
17028
17029 cat >>$CONFIG_STATUS <<_ACEOF
17030 ac_cs_version="\\
17031 config.status
17032 configured by $0, generated by GNU Autoconf 2.59,
17033   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17034
17035 Copyright (C) 2003 Free Software Foundation, Inc.
17036 This config.status script is free software; the Free Software Foundation
17037 gives unlimited permission to copy, distribute and modify it."
17038 srcdir=$srcdir
17039 _ACEOF
17040
17041 cat >>$CONFIG_STATUS <<\_ACEOF
17042 # If no file are specified by the user, then we need to provide default
17043 # value.  By we need to know if files were specified by the user.
17044 ac_need_defaults=:
17045 while test $# != 0
17046 do
17047   case $1 in
17048   --*=*)
17049     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17050     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17051     ac_shift=:
17052     ;;
17053   -*)
17054     ac_option=$1
17055     ac_optarg=$2
17056     ac_shift=shift
17057     ;;
17058   *) # This is not an option, so the user has probably given explicit
17059      # arguments.
17060      ac_option=$1
17061      ac_need_defaults=false;;
17062   esac
17063
17064   case $ac_option in
17065   # Handling of the options.
17066 _ACEOF
17067 cat >>$CONFIG_STATUS <<\_ACEOF
17068   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17069     ac_cs_recheck=: ;;
17070   --version | --vers* | -V )
17071     echo "$ac_cs_version"; exit 0 ;;
17072   --he | --h)
17073     # Conflict between --help and --header
17074     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17075 Try \`$0 --help' for more information." >&5
17076 echo "$as_me: error: ambiguous option: $1
17077 Try \`$0 --help' for more information." >&2;}
17078    { (exit 1); exit 1; }; };;
17079   --help | --hel | -h )
17080     echo "$ac_cs_usage"; exit 0 ;;
17081   --debug | --d* | -d )
17082     debug=: ;;
17083   --file | --fil | --fi | --f )
17084     $ac_shift
17085     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17086     ac_need_defaults=false;;
17087   --header | --heade | --head | --hea )
17088     $ac_shift
17089     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17090     ac_need_defaults=false;;
17091   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17092   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17093     ac_cs_silent=: ;;
17094
17095   # This is an error.
17096   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17097 Try \`$0 --help' for more information." >&5
17098 echo "$as_me: error: unrecognized option: $1
17099 Try \`$0 --help' for more information." >&2;}
17100    { (exit 1); exit 1; }; } ;;
17101
17102   *) ac_config_targets="$ac_config_targets $1" ;;
17103
17104   esac
17105   shift
17106 done
17107
17108 ac_configure_extra_args=
17109
17110 if $ac_cs_silent; then
17111   exec 6>/dev/null
17112   ac_configure_extra_args="$ac_configure_extra_args --silent"
17113 fi
17114
17115 _ACEOF
17116 cat >>$CONFIG_STATUS <<_ACEOF
17117 if \$ac_cs_recheck; then
17118   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17119   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17120 fi
17121
17122 _ACEOF
17123
17124 cat >>$CONFIG_STATUS <<_ACEOF
17125 #
17126 # INIT-COMMANDS section.
17127 #
17128
17129 subdirs='$subdirs'
17130
17131 _ACEOF
17132
17133
17134
17135 cat >>$CONFIG_STATUS <<\_ACEOF
17136 for ac_config_target in $ac_config_targets
17137 do
17138   case "$ac_config_target" in
17139   # Handling of arguments.
17140   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17141   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17142   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17143   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17144 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17145    { (exit 1); exit 1; }; };;
17146   esac
17147 done
17148
17149 # If the user did not use the arguments to specify the items to instantiate,
17150 # then the envvar interface is used.  Set only those that are not.
17151 # We use the long form for the default assignment because of an extremely
17152 # bizarre bug on SunOS 4.1.3.
17153 if $ac_need_defaults; then
17154   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17155   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17156   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17157 fi
17158
17159 # Have a temporary directory for convenience.  Make it in the build tree
17160 # simply because there is no reason to put it here, and in addition,
17161 # creating and moving files from /tmp can sometimes cause problems.
17162 # Create a temporary directory, and hook for its removal unless debugging.
17163 $debug ||
17164 {
17165   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17166   trap '{ (exit 1); exit 1; }' 1 2 13 15
17167 }
17168
17169 # Create a (secure) tmp directory for tmp files.
17170
17171 {
17172   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17173   test -n "$tmp" && test -d "$tmp"
17174 }  ||
17175 {
17176   tmp=./confstat$$-$RANDOM
17177   (umask 077 && mkdir $tmp)
17178 } ||
17179 {
17180    echo "$me: cannot create a temporary directory in ." >&2
17181    { (exit 1); exit 1; }
17182 }
17183
17184 _ACEOF
17185
17186 cat >>$CONFIG_STATUS <<_ACEOF
17187
17188 #
17189 # CONFIG_FILES section.
17190 #
17191
17192 # No need to generate the scripts if there are no CONFIG_FILES.
17193 # This happens for instance when ./config.status config.h
17194 if test -n "\$CONFIG_FILES"; then
17195   # Protect against being on the right side of a sed subst in config.status.
17196   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17197    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17198 s,@SHELL@,$SHELL,;t t
17199 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17200 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17201 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17202 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17203 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17204 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17205 s,@exec_prefix@,$exec_prefix,;t t
17206 s,@prefix@,$prefix,;t t
17207 s,@program_transform_name@,$program_transform_name,;t t
17208 s,@bindir@,$bindir,;t t
17209 s,@sbindir@,$sbindir,;t t
17210 s,@libexecdir@,$libexecdir,;t t
17211 s,@datadir@,$datadir,;t t
17212 s,@sysconfdir@,$sysconfdir,;t t
17213 s,@sharedstatedir@,$sharedstatedir,;t t
17214 s,@localstatedir@,$localstatedir,;t t
17215 s,@libdir@,$libdir,;t t
17216 s,@includedir@,$includedir,;t t
17217 s,@oldincludedir@,$oldincludedir,;t t
17218 s,@infodir@,$infodir,;t t
17219 s,@mandir@,$mandir,;t t
17220 s,@build_alias@,$build_alias,;t t
17221 s,@host_alias@,$host_alias,;t t
17222 s,@target_alias@,$target_alias,;t t
17223 s,@DEFS@,$DEFS,;t t
17224 s,@ECHO_C@,$ECHO_C,;t t
17225 s,@ECHO_N@,$ECHO_N,;t t
17226 s,@ECHO_T@,$ECHO_T,;t t
17227 s,@LIBS@,$LIBS,;t t
17228 s,@build@,$build,;t t
17229 s,@build_cpu@,$build_cpu,;t t
17230 s,@build_vendor@,$build_vendor,;t t
17231 s,@build_os@,$build_os,;t t
17232 s,@host@,$host,;t t
17233 s,@host_cpu@,$host_cpu,;t t
17234 s,@host_vendor@,$host_vendor,;t t
17235 s,@host_os@,$host_os,;t t
17236 s,@target@,$target,;t t
17237 s,@target_cpu@,$target_cpu,;t t
17238 s,@target_vendor@,$target_vendor,;t t
17239 s,@target_os@,$target_os,;t t
17240 s,@target_noncanonical@,$target_noncanonical,;t t
17241 s,@build_subdir@,$build_subdir,;t t
17242 s,@host_subdir@,$host_subdir,;t t
17243 s,@target_subdir@,$target_subdir,;t t
17244 s,@GENINSRC@,$GENINSRC,;t t
17245 s,@CC@,$CC,;t t
17246 s,@CFLAGS@,$CFLAGS,;t t
17247 s,@LDFLAGS@,$LDFLAGS,;t t
17248 s,@CPPFLAGS@,$CPPFLAGS,;t t
17249 s,@ac_ct_CC@,$ac_ct_CC,;t t
17250 s,@EXEEXT@,$EXEEXT,;t t
17251 s,@OBJEXT@,$OBJEXT,;t t
17252 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17253 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17254 s,@CPP@,$CPP,;t t
17255 s,@EGREP@,$EGREP,;t t
17256 s,@strict1_warn@,$strict1_warn,;t t
17257 s,@warn_cflags@,$warn_cflags,;t t
17258 s,@WERROR@,$WERROR,;t t
17259 s,@nocommon_flag@,$nocommon_flag,;t t
17260 s,@TREEBROWSER@,$TREEBROWSER,;t t
17261 s,@valgrind_path@,$valgrind_path,;t t
17262 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17263 s,@valgrind_command@,$valgrind_command,;t t
17264 s,@coverage_flags@,$coverage_flags,;t t
17265 s,@enable_multilib@,$enable_multilib,;t t
17266 s,@enable_decimal_float@,$enable_decimal_float,;t t
17267 s,@enable_shared@,$enable_shared,;t t
17268 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17269 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17270 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17271 s,@onestep@,$onestep,;t t
17272 s,@SET_MAKE@,$SET_MAKE,;t t
17273 s,@AWK@,$AWK,;t t
17274 s,@LN_S@,$LN_S,;t t
17275 s,@LN@,$LN,;t t
17276 s,@RANLIB@,$RANLIB,;t t
17277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17278 s,@ranlib_flags@,$ranlib_flags,;t t
17279 s,@INSTALL@,$INSTALL,;t t
17280 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17281 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17282 s,@make_compare_target@,$make_compare_target,;t t
17283 s,@have_mktemp_command@,$have_mktemp_command,;t t
17284 s,@MAKEINFO@,$MAKEINFO,;t t
17285 s,@BUILD_INFO@,$BUILD_INFO,;t t
17286 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17287 s,@FLEX@,$FLEX,;t t
17288 s,@BISON@,$BISON,;t t
17289 s,@NM@,$NM,;t t
17290 s,@AR@,$AR,;t t
17291 s,@stage1_cflags@,$stage1_cflags,;t t
17292 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17293 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17294 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17295 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17296 s,@LIBICONV@,$LIBICONV,;t t
17297 s,@LTLIBICONV@,$LTLIBICONV,;t t
17298 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17299 s,@manext@,$manext,;t t
17300 s,@objext@,$objext,;t t
17301 s,@gthread_flags@,$gthread_flags,;t t
17302 s,@extra_modes_file@,$extra_modes_file,;t t
17303 s,@extra_opt_files@,$extra_opt_files,;t t
17304 s,@USE_NLS@,$USE_NLS,;t t
17305 s,@LIBINTL@,$LIBINTL,;t t
17306 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17307 s,@INCINTL@,$INCINTL,;t t
17308 s,@XGETTEXT@,$XGETTEXT,;t t
17309 s,@GMSGFMT@,$GMSGFMT,;t t
17310 s,@POSUB@,$POSUB,;t t
17311 s,@CATALOGS@,$CATALOGS,;t t
17312 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17313 s,@CROSS@,$CROSS,;t t
17314 s,@ALL@,$ALL,;t t
17315 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17316 s,@inhibit_libc@,$inhibit_libc,;t t
17317 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17318 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17319 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17320 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17321 s,@collect2@,$collect2,;t t
17322 s,@gcc_cv_as@,$gcc_cv_as,;t t
17323 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17324 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17325 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17326 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17327 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17328 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17329 s,@ORIGINAL_OBJDUMP_FOR_TARGET@,$ORIGINAL_OBJDUMP_FOR_TARGET,;t t
17330 s,@libgcc_visibility@,$libgcc_visibility,;t t
17331 s,@GGC@,$GGC,;t t
17332 s,@zlibdir@,$zlibdir,;t t
17333 s,@zlibinc@,$zlibinc,;t t
17334 s,@MAINT@,$MAINT,;t t
17335 s,@gcc_tooldir@,$gcc_tooldir,;t t
17336 s,@dollar@,$dollar,;t t
17337 s,@slibdir@,$slibdir,;t t
17338 s,@objdir@,$objdir,;t t
17339 s,@subdirs@,$subdirs,;t t
17340 s,@srcdir@,$srcdir,;t t
17341 s,@all_boot_languages@,$all_boot_languages,;t t
17342 s,@all_compilers@,$all_compilers,;t t
17343 s,@all_gtfiles@,$all_gtfiles,;t t
17344 s,@all_gtfiles_files_langs@,$all_gtfiles_files_langs,;t t
17345 s,@all_gtfiles_files_files@,$all_gtfiles_files_files,;t t
17346 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17347 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17348 s,@all_languages@,$all_languages,;t t
17349 s,@all_stagestuff@,$all_stagestuff,;t t
17350 s,@build_exeext@,$build_exeext,;t t
17351 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17352 s,@build_xm_file_list@,$build_xm_file_list,;t t
17353 s,@build_xm_include_list@,$build_xm_include_list,;t t
17354 s,@build_xm_defines@,$build_xm_defines,;t t
17355 s,@check_languages@,$check_languages,;t t
17356 s,@cc_set_by_configure@,$cc_set_by_configure,;t t
17357 s,@quoted_cc_set_by_configure@,$quoted_cc_set_by_configure,;t t
17358 s,@cpp_install_dir@,$cpp_install_dir,;t t
17359 s,@xmake_file@,$xmake_file,;t t
17360 s,@tmake_file@,$tmake_file,;t t
17361 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17362 s,@extra_headers_list@,$extra_headers_list,;t t
17363 s,@extra_objs@,$extra_objs,;t t
17364 s,@extra_parts@,$extra_parts,;t t
17365 s,@extra_passes@,$extra_passes,;t t
17366 s,@extra_programs@,$extra_programs,;t t
17367 s,@float_h_file@,$float_h_file,;t t
17368 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17369 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17370 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17371 s,@host_exeext@,$host_exeext,;t t
17372 s,@host_xm_file_list@,$host_xm_file_list,;t t
17373 s,@host_xm_include_list@,$host_xm_include_list,;t t
17374 s,@host_xm_defines@,$host_xm_defines,;t t
17375 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17376 s,@install@,$install,;t t
17377 s,@lang_opt_files@,$lang_opt_files,;t t
17378 s,@lang_specs_files@,$lang_specs_files,;t t
17379 s,@lang_tree_files@,$lang_tree_files,;t t
17380 s,@local_prefix@,$local_prefix,;t t
17381 s,@md_file@,$md_file,;t t
17382 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17383 s,@out_file@,$out_file,;t t
17384 s,@out_object_file@,$out_object_file,;t t
17385 s,@stage_prefix_set_by_configure@,$stage_prefix_set_by_configure,;t t
17386 s,@quoted_stage_prefix_set_by_configure@,$quoted_stage_prefix_set_by_configure,;t t
17387 s,@thread_file@,$thread_file,;t t
17388 s,@tm_file_list@,$tm_file_list,;t t
17389 s,@tm_include_list@,$tm_include_list,;t t
17390 s,@tm_defines@,$tm_defines,;t t
17391 s,@tm_p_file_list@,$tm_p_file_list,;t t
17392 s,@tm_p_include_list@,$tm_p_include_list,;t t
17393 s,@xm_file_list@,$xm_file_list,;t t
17394 s,@xm_include_list@,$xm_include_list,;t t
17395 s,@xm_defines@,$xm_defines,;t t
17396 s,@c_target_objs@,$c_target_objs,;t t
17397 s,@cxx_target_objs@,$cxx_target_objs,;t t
17398 s,@target_cpu_default@,$target_cpu_default,;t t
17399 s,@GMPLIBS@,$GMPLIBS,;t t
17400 s,@GMPINC@,$GMPINC,;t t
17401 s,@LIBOBJS@,$LIBOBJS,;t t
17402 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17403 /@language_hooks@/r $language_hooks
17404 s,@language_hooks@,,;t t
17405 CEOF
17406
17407 _ACEOF
17408
17409   cat >>$CONFIG_STATUS <<\_ACEOF
17410   # Split the substitutions into bite-sized pieces for seds with
17411   # small command number limits, like on Digital OSF/1 and HP-UX.
17412   ac_max_sed_lines=48
17413   ac_sed_frag=1 # Number of current file.
17414   ac_beg=1 # First line for current file.
17415   ac_end=$ac_max_sed_lines # Line after last line for current file.
17416   ac_more_lines=:
17417   ac_sed_cmds=
17418   while $ac_more_lines; do
17419     if test $ac_beg -gt 1; then
17420       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17421     else
17422       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17423     fi
17424     if test ! -s $tmp/subs.frag; then
17425       ac_more_lines=false
17426     else
17427       # The purpose of the label and of the branching condition is to
17428       # speed up the sed processing (if there are no `@' at all, there
17429       # is no need to browse any of the substitutions).
17430       # These are the two extra sed commands mentioned above.
17431       (echo ':t
17432   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17433       if test -z "$ac_sed_cmds"; then
17434         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17435       else
17436         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17437       fi
17438       ac_sed_frag=`expr $ac_sed_frag + 1`
17439       ac_beg=$ac_end
17440       ac_end=`expr $ac_end + $ac_max_sed_lines`
17441     fi
17442   done
17443   if test -z "$ac_sed_cmds"; then
17444     ac_sed_cmds=cat
17445   fi
17446 fi # test -n "$CONFIG_FILES"
17447
17448 _ACEOF
17449 cat >>$CONFIG_STATUS <<\_ACEOF
17450 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17451   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17452   case $ac_file in
17453   - | *:- | *:-:* ) # input from stdin
17454         cat >$tmp/stdin
17455         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17456         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17457   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17458         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17459   * )   ac_file_in=$ac_file.in ;;
17460   esac
17461
17462   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17463   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17465          X"$ac_file" : 'X\(//\)[^/]' \| \
17466          X"$ac_file" : 'X\(//\)$' \| \
17467          X"$ac_file" : 'X\(/\)' \| \
17468          .     : '\(.\)' 2>/dev/null ||
17469 echo X"$ac_file" |
17470     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17471           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17472           /^X\(\/\/\)$/{ s//\1/; q; }
17473           /^X\(\/\).*/{ s//\1/; q; }
17474           s/.*/./; q'`
17475   { if $as_mkdir_p; then
17476     mkdir -p "$ac_dir"
17477   else
17478     as_dir="$ac_dir"
17479     as_dirs=
17480     while test ! -d "$as_dir"; do
17481       as_dirs="$as_dir $as_dirs"
17482       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17484          X"$as_dir" : 'X\(//\)[^/]' \| \
17485          X"$as_dir" : 'X\(//\)$' \| \
17486          X"$as_dir" : 'X\(/\)' \| \
17487          .     : '\(.\)' 2>/dev/null ||
17488 echo X"$as_dir" |
17489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17490           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17491           /^X\(\/\/\)$/{ s//\1/; q; }
17492           /^X\(\/\).*/{ s//\1/; q; }
17493           s/.*/./; q'`
17494     done
17495     test ! -n "$as_dirs" || mkdir $as_dirs
17496   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17497 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17498    { (exit 1); exit 1; }; }; }
17499
17500   ac_builddir=.
17501
17502 if test "$ac_dir" != .; then
17503   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17504   # A "../" for each directory in $ac_dir_suffix.
17505   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17506 else
17507   ac_dir_suffix= ac_top_builddir=
17508 fi
17509
17510 case $srcdir in
17511   .)  # No --srcdir option.  We are building in place.
17512     ac_srcdir=.
17513     if test -z "$ac_top_builddir"; then
17514        ac_top_srcdir=.
17515     else
17516        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17517     fi ;;
17518   [\\/]* | ?:[\\/]* )  # Absolute path.
17519     ac_srcdir=$srcdir$ac_dir_suffix;
17520     ac_top_srcdir=$srcdir ;;
17521   *) # Relative path.
17522     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17523     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17524 esac
17525
17526 # Do not use `cd foo && pwd` to compute absolute paths, because
17527 # the directories may not exist.
17528 case `pwd` in
17529 .) ac_abs_builddir="$ac_dir";;
17530 *)
17531   case "$ac_dir" in
17532   .) ac_abs_builddir=`pwd`;;
17533   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17534   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17535   esac;;
17536 esac
17537 case $ac_abs_builddir in
17538 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17539 *)
17540   case ${ac_top_builddir}. in
17541   .) ac_abs_top_builddir=$ac_abs_builddir;;
17542   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17543   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17544   esac;;
17545 esac
17546 case $ac_abs_builddir in
17547 .) ac_abs_srcdir=$ac_srcdir;;
17548 *)
17549   case $ac_srcdir in
17550   .) ac_abs_srcdir=$ac_abs_builddir;;
17551   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17552   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17553   esac;;
17554 esac
17555 case $ac_abs_builddir in
17556 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17557 *)
17558   case $ac_top_srcdir in
17559   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17560   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17561   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17562   esac;;
17563 esac
17564
17565
17566
17567   if test x"$ac_file" != x-; then
17568     { echo "$as_me:$LINENO: creating $ac_file" >&5
17569 echo "$as_me: creating $ac_file" >&6;}
17570     rm -f "$ac_file"
17571   fi
17572   # Let's still pretend it is `configure' which instantiates (i.e., don't
17573   # use $as_me), people would be surprised to read:
17574   #    /* config.h.  Generated by config.status.  */
17575   if test x"$ac_file" = x-; then
17576     configure_input=
17577   else
17578     configure_input="$ac_file.  "
17579   fi
17580   configure_input=$configure_input"Generated from `echo $ac_file_in |
17581                                      sed 's,.*/,,'` by configure."
17582
17583   # First look for the input files in the build tree, otherwise in the
17584   # src tree.
17585   ac_file_inputs=`IFS=:
17586     for f in $ac_file_in; do
17587       case $f in
17588       -) echo $tmp/stdin ;;
17589       [\\/$]*)
17590          # Absolute (can't be DOS-style, as IFS=:)
17591          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17592 echo "$as_me: error: cannot find input file: $f" >&2;}
17593    { (exit 1); exit 1; }; }
17594          echo "$f";;
17595       *) # Relative
17596          if test -f "$f"; then
17597            # Build tree
17598            echo "$f"
17599          elif test -f "$srcdir/$f"; then
17600            # Source tree
17601            echo "$srcdir/$f"
17602          else
17603            # /dev/null tree
17604            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17605 echo "$as_me: error: cannot find input file: $f" >&2;}
17606    { (exit 1); exit 1; }; }
17607          fi;;
17608       esac
17609     done` || { (exit 1); exit 1; }
17610 _ACEOF
17611 cat >>$CONFIG_STATUS <<_ACEOF
17612   sed "$ac_vpsub
17613 $extrasub
17614 _ACEOF
17615 cat >>$CONFIG_STATUS <<\_ACEOF
17616 :t
17617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17618 s,@configure_input@,$configure_input,;t t
17619 s,@srcdir@,$ac_srcdir,;t t
17620 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17621 s,@top_srcdir@,$ac_top_srcdir,;t t
17622 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17623 s,@builddir@,$ac_builddir,;t t
17624 s,@abs_builddir@,$ac_abs_builddir,;t t
17625 s,@top_builddir@,$ac_top_builddir,;t t
17626 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17627 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17628   rm -f $tmp/stdin
17629   if test x"$ac_file" != x-; then
17630     mv $tmp/out $ac_file
17631   else
17632     cat $tmp/out
17633     rm -f $tmp/out
17634   fi
17635
17636 done
17637 _ACEOF
17638 cat >>$CONFIG_STATUS <<\_ACEOF
17639
17640 #
17641 # CONFIG_HEADER section.
17642 #
17643
17644 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17645 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17646 #
17647 # ac_d sets the value in "#define NAME VALUE" lines.
17648 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17649 ac_dB='[         ].*$,\1#\2'
17650 ac_dC=' '
17651 ac_dD=',;t'
17652 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17653 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17654 ac_uB='$,\1#\2define\3'
17655 ac_uC=' '
17656 ac_uD=',;t'
17657
17658 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17659   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17660   case $ac_file in
17661   - | *:- | *:-:* ) # input from stdin
17662         cat >$tmp/stdin
17663         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17664         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17665   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17666         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17667   * )   ac_file_in=$ac_file.in ;;
17668   esac
17669
17670   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17671 echo "$as_me: creating $ac_file" >&6;}
17672
17673   # First look for the input files in the build tree, otherwise in the
17674   # src tree.
17675   ac_file_inputs=`IFS=:
17676     for f in $ac_file_in; do
17677       case $f in
17678       -) echo $tmp/stdin ;;
17679       [\\/$]*)
17680          # Absolute (can't be DOS-style, as IFS=:)
17681          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17682 echo "$as_me: error: cannot find input file: $f" >&2;}
17683    { (exit 1); exit 1; }; }
17684          # Do quote $f, to prevent DOS paths from being IFS'd.
17685          echo "$f";;
17686       *) # Relative
17687          if test -f "$f"; then
17688            # Build tree
17689            echo "$f"
17690          elif test -f "$srcdir/$f"; then
17691            # Source tree
17692            echo "$srcdir/$f"
17693          else
17694            # /dev/null tree
17695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17696 echo "$as_me: error: cannot find input file: $f" >&2;}
17697    { (exit 1); exit 1; }; }
17698          fi;;
17699       esac
17700     done` || { (exit 1); exit 1; }
17701   # Remove the trailing spaces.
17702   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17703
17704 _ACEOF
17705
17706 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17707 # `conftest.undefs', that substitutes the proper values into
17708 # config.h.in to produce config.h.  The first handles `#define'
17709 # templates, and the second `#undef' templates.
17710 # And first: Protect against being on the right side of a sed subst in
17711 # config.status.  Protect against being in an unquoted here document
17712 # in config.status.
17713 rm -f conftest.defines conftest.undefs
17714 # Using a here document instead of a string reduces the quoting nightmare.
17715 # Putting comments in sed scripts is not portable.
17716 #
17717 # `end' is used to avoid that the second main sed command (meant for
17718 # 0-ary CPP macros) applies to n-ary macro definitions.
17719 # See the Autoconf documentation for `clear'.
17720 cat >confdef2sed.sed <<\_ACEOF
17721 s/[\\&,]/\\&/g
17722 s,[\\$`],\\&,g
17723 t clear
17724 : clear
17725 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17726 t end
17727 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17728 : end
17729 _ACEOF
17730 # If some macros were called several times there might be several times
17731 # the same #defines, which is useless.  Nevertheless, we may not want to
17732 # sort them, since we want the *last* AC-DEFINE to be honored.
17733 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17734 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17735 rm -f confdef2sed.sed
17736
17737 # This sed command replaces #undef with comments.  This is necessary, for
17738 # example, in the case of _POSIX_SOURCE, which is predefined and required
17739 # on some systems where configure will not decide to define it.
17740 cat >>conftest.undefs <<\_ACEOF
17741 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17742 _ACEOF
17743
17744 # Break up conftest.defines because some shells have a limit on the size
17745 # of here documents, and old seds have small limits too (100 cmds).
17746 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17747 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17748 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17749 echo '  :' >>$CONFIG_STATUS
17750 rm -f conftest.tail
17751 while grep . conftest.defines >/dev/null
17752 do
17753   # Write a limited-size here document to $tmp/defines.sed.
17754   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17755   # Speed up: don't consider the non `#define' lines.
17756   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17757   # Work around the forget-to-reset-the-flag bug.
17758   echo 't clr' >>$CONFIG_STATUS
17759   echo ': clr' >>$CONFIG_STATUS
17760   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17761   echo 'CEOF
17762   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17763   rm -f $tmp/in
17764   mv $tmp/out $tmp/in
17765 ' >>$CONFIG_STATUS
17766   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17767   rm -f conftest.defines
17768   mv conftest.tail conftest.defines
17769 done
17770 rm -f conftest.defines
17771 echo '  fi # grep' >>$CONFIG_STATUS
17772 echo >>$CONFIG_STATUS
17773
17774 # Break up conftest.undefs because some shells have a limit on the size
17775 # of here documents, and old seds have small limits too (100 cmds).
17776 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17777 rm -f conftest.tail
17778 while grep . conftest.undefs >/dev/null
17779 do
17780   # Write a limited-size here document to $tmp/undefs.sed.
17781   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17782   # Speed up: don't consider the non `#undef'
17783   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17784   # Work around the forget-to-reset-the-flag bug.
17785   echo 't clr' >>$CONFIG_STATUS
17786   echo ': clr' >>$CONFIG_STATUS
17787   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17788   echo 'CEOF
17789   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17790   rm -f $tmp/in
17791   mv $tmp/out $tmp/in
17792 ' >>$CONFIG_STATUS
17793   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17794   rm -f conftest.undefs
17795   mv conftest.tail conftest.undefs
17796 done
17797 rm -f conftest.undefs
17798
17799 cat >>$CONFIG_STATUS <<\_ACEOF
17800   # Let's still pretend it is `configure' which instantiates (i.e., don't
17801   # use $as_me), people would be surprised to read:
17802   #    /* config.h.  Generated by config.status.  */
17803   if test x"$ac_file" = x-; then
17804     echo "/* Generated by configure.  */" >$tmp/config.h
17805   else
17806     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17807   fi
17808   cat $tmp/in >>$tmp/config.h
17809   rm -f $tmp/in
17810   if test x"$ac_file" != x-; then
17811     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17812       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17813 echo "$as_me: $ac_file is unchanged" >&6;}
17814     else
17815       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17817          X"$ac_file" : 'X\(//\)[^/]' \| \
17818          X"$ac_file" : 'X\(//\)$' \| \
17819          X"$ac_file" : 'X\(/\)' \| \
17820          .     : '\(.\)' 2>/dev/null ||
17821 echo X"$ac_file" |
17822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17823           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17824           /^X\(\/\/\)$/{ s//\1/; q; }
17825           /^X\(\/\).*/{ s//\1/; q; }
17826           s/.*/./; q'`
17827       { if $as_mkdir_p; then
17828     mkdir -p "$ac_dir"
17829   else
17830     as_dir="$ac_dir"
17831     as_dirs=
17832     while test ! -d "$as_dir"; do
17833       as_dirs="$as_dir $as_dirs"
17834       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17835 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17836          X"$as_dir" : 'X\(//\)[^/]' \| \
17837          X"$as_dir" : 'X\(//\)$' \| \
17838          X"$as_dir" : 'X\(/\)' \| \
17839          .     : '\(.\)' 2>/dev/null ||
17840 echo X"$as_dir" |
17841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17842           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17843           /^X\(\/\/\)$/{ s//\1/; q; }
17844           /^X\(\/\).*/{ s//\1/; q; }
17845           s/.*/./; q'`
17846     done
17847     test ! -n "$as_dirs" || mkdir $as_dirs
17848   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17849 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17850    { (exit 1); exit 1; }; }; }
17851
17852       rm -f $ac_file
17853       mv $tmp/config.h $ac_file
17854     fi
17855   else
17856     cat $tmp/config.h
17857     rm -f $tmp/config.h
17858   fi
17859 done
17860 _ACEOF
17861 cat >>$CONFIG_STATUS <<\_ACEOF
17862
17863 #
17864 # CONFIG_COMMANDS section.
17865 #
17866 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17867   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17868   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17869   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17870 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17871          X"$ac_dest" : 'X\(//\)[^/]' \| \
17872          X"$ac_dest" : 'X\(//\)$' \| \
17873          X"$ac_dest" : 'X\(/\)' \| \
17874          .     : '\(.\)' 2>/dev/null ||
17875 echo X"$ac_dest" |
17876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17878           /^X\(\/\/\)$/{ s//\1/; q; }
17879           /^X\(\/\).*/{ s//\1/; q; }
17880           s/.*/./; q'`
17881   { if $as_mkdir_p; then
17882     mkdir -p "$ac_dir"
17883   else
17884     as_dir="$ac_dir"
17885     as_dirs=
17886     while test ! -d "$as_dir"; do
17887       as_dirs="$as_dir $as_dirs"
17888       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17890          X"$as_dir" : 'X\(//\)[^/]' \| \
17891          X"$as_dir" : 'X\(//\)$' \| \
17892          X"$as_dir" : 'X\(/\)' \| \
17893          .     : '\(.\)' 2>/dev/null ||
17894 echo X"$as_dir" |
17895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17896           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17897           /^X\(\/\/\)$/{ s//\1/; q; }
17898           /^X\(\/\).*/{ s//\1/; q; }
17899           s/.*/./; q'`
17900     done
17901     test ! -n "$as_dirs" || mkdir $as_dirs
17902   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17904    { (exit 1); exit 1; }; }; }
17905
17906   ac_builddir=.
17907
17908 if test "$ac_dir" != .; then
17909   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17910   # A "../" for each directory in $ac_dir_suffix.
17911   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17912 else
17913   ac_dir_suffix= ac_top_builddir=
17914 fi
17915
17916 case $srcdir in
17917   .)  # No --srcdir option.  We are building in place.
17918     ac_srcdir=.
17919     if test -z "$ac_top_builddir"; then
17920        ac_top_srcdir=.
17921     else
17922        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17923     fi ;;
17924   [\\/]* | ?:[\\/]* )  # Absolute path.
17925     ac_srcdir=$srcdir$ac_dir_suffix;
17926     ac_top_srcdir=$srcdir ;;
17927   *) # Relative path.
17928     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17929     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17930 esac
17931
17932 # Do not use `cd foo && pwd` to compute absolute paths, because
17933 # the directories may not exist.
17934 case `pwd` in
17935 .) ac_abs_builddir="$ac_dir";;
17936 *)
17937   case "$ac_dir" in
17938   .) ac_abs_builddir=`pwd`;;
17939   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17940   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17941   esac;;
17942 esac
17943 case $ac_abs_builddir in
17944 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17945 *)
17946   case ${ac_top_builddir}. in
17947   .) ac_abs_top_builddir=$ac_abs_builddir;;
17948   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17949   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17950   esac;;
17951 esac
17952 case $ac_abs_builddir in
17953 .) ac_abs_srcdir=$ac_srcdir;;
17954 *)
17955   case $ac_srcdir in
17956   .) ac_abs_srcdir=$ac_abs_builddir;;
17957   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17958   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17959   esac;;
17960 esac
17961 case $ac_abs_builddir in
17962 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17963 *)
17964   case $ac_top_srcdir in
17965   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17966   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17967   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17968   esac;;
17969 esac
17970
17971
17972   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17973 echo "$as_me: executing $ac_dest commands" >&6;}
17974   case $ac_dest in
17975     default )
17976 case ${CONFIG_HEADERS} in
17977   *auto-host.h:config.in*)
17978   echo > cstamp-h ;;
17979 esac
17980 # Make sure all the subdirs exist.
17981 for d in $subdirs doc build
17982 do
17983     test -d $d || mkdir $d
17984 done
17985 # If the host supports symlinks, point stage[1234] at ../stage[1234] so
17986 # bootstrapping and the installation procedure can still use
17987 # CC="stage1/xgcc -Bstage1/".  If the host doesn't support symlinks,
17988 # FLAGS_TO_PASS has been modified to solve the problem there.
17989 # This is virtually a duplicate of what happens in configure.lang; we do
17990 # an extra check to make sure this only happens if ln -s can be used.
17991 case "$LN_S" in
17992   *-s*)
17993     for d in ${subdirs} ; do
17994         STARTDIR=`${PWDCMD-pwd}`
17995         cd $d
17996         for t in stage1 stage2 stage3 stage4 stageprofile stagefeedback include
17997         do
17998                 rm -f $t
17999                 $LN_S ../$t $t 2>/dev/null
18000         done
18001         cd $STARTDIR
18002     done
18003   ;;
18004 esac
18005  ;;
18006   esac
18007 done
18008 _ACEOF
18009
18010 cat >>$CONFIG_STATUS <<\_ACEOF
18011
18012 { (exit 0); exit 0; }
18013 _ACEOF
18014 chmod +x $CONFIG_STATUS
18015 ac_clean_files=$ac_clean_files_save
18016
18017
18018 # configure is writing to config.log, and then calls config.status.
18019 # config.status does its own redirection, appending to config.log.
18020 # Unfortunately, on DOS this fails, as config.log is still kept open
18021 # by configure, so config.status won't be able to write to it; its
18022 # output is simply discarded.  So we exec the FD to /dev/null,
18023 # effectively closing config.log, so it can be properly (re)opened and
18024 # appended to by config.status.  When coming back to configure, we
18025 # need to make the FD available again.
18026 if test "$no_create" != yes; then
18027   ac_cs_success=:
18028   ac_config_status_args=
18029   test "$silent" = yes &&
18030     ac_config_status_args="$ac_config_status_args --quiet"
18031   exec 5>/dev/null
18032   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18033   exec 5>>config.log
18034   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18035   # would make configure fail if this is the last instruction.
18036   $ac_cs_success || { (exit 1); exit 1; }
18037 fi
18038