OSDN Git Service

* gcc.doxy: Rename from tree-ssa.doxy.
[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_libsubdir 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 loose_warn cxx_compat_warn strict_warn warn_cflags 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 datarootdir docdir htmldir 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 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 DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT 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 libgcc_visibility GGC zlibdir zlibinc MAINT gcc_tooldir dollar slibdir objdir subdirs srcdir all_compilers all_gtfiles all_lang_makefrags all_lang_makefiles all_languages all_selected_languages build_exeext build_install_headers_dir build_xm_file_list build_xm_include_list build_xm_defines check_languages 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 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 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 despite compiler version
866   --enable-checking=LIST
867                           enable expensive run-time checks.  With LIST,
868                           enable only specific categories of checks.
869                           Categories are: yes,no,all,none,release.
870                           Flags are: assert,df,fold,gc,gcac,misc,
871                           rtlflag,rtl,runtime,tree,valgrind,types.
872   --enable-mapped-location   location_t is fileline integer cookie
873   --enable-coverage=LEVEL
874                           enable compiler's code coverage collection.
875                           Use to measure compiler performance and locate
876                           unused parts of the compiler. With LEVEL, specify
877                           optimization. Values are opt, noopt,
878                           default is noopt
879   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
880   --enable-multilib       enable library support for multiple ABIs
881   --enable-__cxa_atexit   enable __cxa_atexit for C++
882   --enable-decimal-float={no,yes,bid,dpd}
883                         enable decimal float extension to C.  Selecting 'bid'
884                         or 'dpd' choses which decimal floating point format
885                         to use
886   --enable-threads        enable thread usage for target GCC
887   --enable-threads=LIB    use LIB thread package for target GCC
888   --enable-tls            enable or disable generation of tls code
889                           overriding the assembler check for tls support
890   --enable-objc-gc        enable the use of Boehm's garbage collector with
891                           the GNU Objective-C runtime
892   --disable-shared        don't provide a shared libgcc
893   --enable-intermodule    build the compiler in one step
894   --enable-languages=LIST specify which front-ends to build
895   --disable-rpath         do not hardcode runtime library paths
896   --enable-initfini-array       use .init_array/.fini_array sections
897   --enable-sjlj-exceptions
898                           arrange to use setjmp/longjmp exception handling
899   --enable-secureplt      enable -msecure-plt by default for PowerPC
900   --disable-win32-registry
901                           disable lookup of installation paths in the
902                           Registry on Windows hosts
903   --enable-win32-registry enable registry lookup (default)
904   --enable-win32-registry=KEY
905                           use KEY instead of GCC version as the last portion
906                           of the registry key
907   --enable-maintainer-mode
908                           enable make rules and dependencies not useful
909                           (and sometimes confusing) to the casual installer
910   --enable-version-specific-runtime-libs
911                           specify that runtime libraries should be
912                           installed in a compiler-specific directory
913
914 Optional Packages:
915   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
916   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
917   --with-build-libsubdir=DIR  Directory where to find libraries for build system
918   --with-local-prefix=DIR specifies directory to put local include
919   --with-gxx-include-dir=DIR
920                           specifies directory to put g++ header files
921   --with-cpp-install-dir=DIR
922                           install the user visible C preprocessor in DIR
923                           (relative to PREFIX) as well as PREFIX/bin
924   --with-gnu-ld           arrange to work with GNU ld.
925   --with-ld               arrange to use the specified ld (full pathname)
926   --with-demangler-in-ld  try to use demangler in GNU ld.
927   --with-gnu-as           arrange to work with GNU as
928   --with-as               arrange to use the specified as (full pathname)
929   --with-stabs            arrange to use stabs instead of host debug format
930   --with-dwarf2           force the default debug format to be DWARF 2
931   --with-build-sysroot=sysroot
932                           use sysroot as the system root during the build
933   --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
934   --with-gnu-ld           assume the C compiler uses GNU ld default=no
935   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
936   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
937   --with-system-libunwind use installed libunwind
938   --with-long-double-128  Use 128-bit long double by default.
939   --with-gc={page,zone}   choose the garbage collection mechanism to use
940                           with the compiler
941   --with-system-zlib      use installed libz
942   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
943   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
944   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
945   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
946
947 Some influential environment variables:
948   CC          C compiler command
949   CFLAGS      C compiler flags
950   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
951               nonstandard directory <lib dir>
952   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
953               headers in a nonstandard directory <include dir>
954   CPP         C preprocessor
955   GMPLIBS     How to link GMP
956   GMPINC      How to find GMP include files
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965   # If there are subdirs, report their specific --help.
966   ac_popdir=`pwd`
967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968     test -d $ac_dir || continue
969     ac_builddir=.
970
971 if test "$ac_dir" != .; then
972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973   # A "../" for each directory in $ac_dir_suffix.
974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976   ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980   .)  # No --srcdir option.  We are building in place.
981     ac_srcdir=.
982     if test -z "$ac_top_builddir"; then
983        ac_top_srcdir=.
984     else
985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986     fi ;;
987   [\\/]* | ?:[\\/]* )  # Absolute path.
988     ac_srcdir=$srcdir$ac_dir_suffix;
989     ac_top_srcdir=$srcdir ;;
990   *) # Relative path.
991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000   case "$ac_dir" in
1001   .) ac_abs_builddir=`pwd`;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009   case ${ac_top_builddir}. in
1010   .) ac_abs_top_builddir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018   case $ac_srcdir in
1019   .) ac_abs_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027   case $ac_top_srcdir in
1028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031   esac;;
1032 esac
1033
1034     cd $ac_dir
1035     # Check for guested configure; otherwise get Cygnus style configure.
1036     if test -f $ac_srcdir/configure.gnu; then
1037       echo
1038       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1039     elif test -f $ac_srcdir/configure; then
1040       echo
1041       $SHELL $ac_srcdir/configure  --help=recursive
1042     elif test -f $ac_srcdir/configure.ac ||
1043            test -f $ac_srcdir/configure.in; then
1044       echo
1045       $ac_configure --help
1046     else
1047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048     fi
1049     cd $ac_popdir
1050   done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055   cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061   exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59.  Invocation command line was
1070
1071   $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1088
1089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102   IFS=$as_save_IFS
1103   test -z "$as_dir" && as_dir=.
1104   echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131   for ac_arg
1132   do
1133     case $ac_arg in
1134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136     | -silent | --silent | --silen | --sile | --sil)
1137       continue ;;
1138     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140     esac
1141     case $ac_pass in
1142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143     2)
1144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145       if test $ac_must_keep_next = true; then
1146         ac_must_keep_next=false # Got value, back to normal.
1147       else
1148         case $ac_arg in
1149           *=* | --config-cache | -C | -disable-* | --disable-* \
1150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152           | -with-* | --with-* | -without-* | --without-* | --x)
1153             case "$ac_configure_args0 " in
1154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155             esac
1156             ;;
1157           -* ) ac_must_keep_next=true ;;
1158         esac
1159       fi
1160       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161       # Get rid of the leading space.
1162       ac_sep=" "
1163       ;;
1164     esac
1165   done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log.  We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176   # Save into config.log some information that might help in debugging.
1177   {
1178     echo
1179
1180     cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185     echo
1186     # The following way of writing the cache mishandles newlines in values,
1187 {
1188   (set) 2>&1 |
1189     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190     *ac_space=\ *)
1191       sed -n \
1192         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194       ;;
1195     *)
1196       sed -n \
1197         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198       ;;
1199     esac;
1200 }
1201     echo
1202
1203     cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208     echo
1209     for ac_var in $ac_subst_vars
1210     do
1211       eval ac_val=$`echo $ac_var`
1212       echo "$ac_var='"'"'$ac_val'"'"'"
1213     done | sort
1214     echo
1215
1216     if test -n "$ac_subst_files"; then
1217       cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222       echo
1223       for ac_var in $ac_subst_files
1224       do
1225         eval ac_val=$`echo $ac_var`
1226         echo "$ac_var='"'"'$ac_val'"'"'"
1227       done | sort
1228       echo
1229     fi
1230
1231     if test -s confdefs.h; then
1232       cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237       echo
1238       sed "/^$/d" confdefs.h | sort
1239       echo
1240     fi
1241     test "$ac_signal" != 0 &&
1242       echo "$as_me: caught signal $ac_signal"
1243     echo "$as_me: exit $exit_status"
1244   } >&5
1245   rm -f core *.core &&
1246   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247     exit $exit_status
1248      ' 0
1249 for ac_signal in 1 2 13 15; do
1250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289   if test "x$prefix" != xNONE; then
1290     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291   else
1292     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293   fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296   if test -r "$ac_site_file"; then
1297     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299     sed 's/^/| /' "$ac_site_file" >&5
1300     . "$ac_site_file"
1301   fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305   # Some versions of bash will fail to source /dev/null (special
1306   # files actually), so we avoid doing that.
1307   if test -f "$cache_file"; then
1308     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310     case $cache_file in
1311       [\\/]* | ?:[\\/]* ) . $cache_file;;
1312       *)                      . ./$cache_file;;
1313     esac
1314   fi
1315 else
1316   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318   >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327   eval ac_new_set=\$ac_env_${ac_var}_set
1328   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329   eval ac_new_val="\$ac_env_${ac_var}_value"
1330   case $ac_old_set,$ac_new_set in
1331     set,)
1332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334       ac_cache_corrupted=: ;;
1335     ,set)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,);;
1340     *)
1341       if test "x$ac_old_val" != "x$ac_new_val"; then
1342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1345 echo "$as_me:   former value:  $ac_old_val" >&2;}
1346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1347 echo "$as_me:   current value: $ac_new_val" >&2;}
1348         ac_cache_corrupted=:
1349       fi;;
1350   esac
1351   # Pass precious variables to config.status.
1352   if test "$ac_new_set" = set; then
1353     case $ac_new_val in
1354     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356     *) ac_arg=$ac_var=$ac_new_val ;;
1357     esac
1358     case " $ac_configure_args " in
1359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1360       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361     esac
1362   fi
1363 done
1364 if $ac_cache_corrupted; then
1365   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1398
1399
1400 gcc_version=`cat $srcdir/BASE-VER`
1401
1402 # Determine the host, build, and target systems
1403 ac_aux_dir=
1404 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428 # Make sure we can run config.sub.
1429 $ac_config_sub sun4 >/dev/null 2>&1 ||
1430   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1431 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1432    { (exit 1); exit 1; }; }
1433
1434 echo "$as_me:$LINENO: checking build system type" >&5
1435 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1436 if test "${ac_cv_build+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   ac_cv_build_alias=$build_alias
1440 test -z "$ac_cv_build_alias" &&
1441   ac_cv_build_alias=`$ac_config_guess`
1442 test -z "$ac_cv_build_alias" &&
1443   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1444 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1445    { (exit 1); exit 1; }; }
1446 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1447   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1448 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1449    { (exit 1); exit 1; }; }
1450
1451 fi
1452 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1453 echo "${ECHO_T}$ac_cv_build" >&6
1454 build=$ac_cv_build
1455 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1456 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1457 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1458
1459
1460 echo "$as_me:$LINENO: checking host system type" >&5
1461 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1462 if test "${ac_cv_host+set}" = set; then
1463   echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465   ac_cv_host_alias=$host_alias
1466 test -z "$ac_cv_host_alias" &&
1467   ac_cv_host_alias=$ac_cv_build_alias
1468 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1469   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1471    { (exit 1); exit 1; }; }
1472
1473 fi
1474 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1475 echo "${ECHO_T}$ac_cv_host" >&6
1476 host=$ac_cv_host
1477 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1480
1481
1482 echo "$as_me:$LINENO: checking target system type" >&5
1483 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1484 if test "${ac_cv_target+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   ac_cv_target_alias=$target_alias
1488 test "x$ac_cv_target_alias" = "x" &&
1489   ac_cv_target_alias=$ac_cv_host_alias
1490 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1491   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1493    { (exit 1); exit 1; }; }
1494
1495 fi
1496 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1497 echo "${ECHO_T}$ac_cv_target" >&6
1498 target=$ac_cv_target
1499 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1502
1503
1504 # The aliases save the names the user supplied, while $host etc.
1505 # will get canonicalized.
1506 test -n "$target_alias" &&
1507   test "$program_prefix$program_suffix$program_transform_name" = \
1508     NONENONEs,x,x, &&
1509   program_prefix=${target_alias}-
1510
1511 # Determine the noncanonical target name, for directory use.
1512  case ${build_alias} in
1513   "") build_noncanonical=${build} ;;
1514   *) build_noncanonical=${build_alias} ;;
1515 esac
1516
1517  case ${host_alias} in
1518   "") host_noncanonical=${build_noncanonical} ;;
1519   *) host_noncanonical=${host_alias} ;;
1520 esac
1521
1522  case ${target_alias} in
1523   "") target_noncanonical=${host_noncanonical} ;;
1524   *) target_noncanonical=${target_alias} ;;
1525 esac
1526
1527
1528
1529
1530 # Determine the target- and build-specific subdirectories
1531
1532 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1533 # have matching libraries, they should use host libraries: Makefile.tpl
1534 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1535 # However, they still use the build modules, because the corresponding
1536 # host modules (e.g. bison) are only built for the host when bootstrap
1537 # finishes. So:
1538 # - build_subdir is where we find build modules, and never changes.
1539 # - build_libsubdir is where we find build libraries, and can be overridden.
1540
1541 # Prefix 'build-' so this never conflicts with target_subdir.
1542 build_subdir="build-${build_noncanonical}"
1543
1544 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1545 if test "${with_build_libsubdir+set}" = set; then
1546   withval="$with_build_libsubdir"
1547   build_libsubdir="$withval"
1548 else
1549   build_libsubdir="$build_subdir"
1550 fi;
1551 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1552 if ( test $srcdir = . && test -d gcc ) \
1553    || test -d $srcdir/../host-${host_noncanonical}; then
1554   host_subdir="host-${host_noncanonical}"
1555 else
1556   host_subdir=.
1557 fi
1558 # No prefix.
1559 target_subdir=${target_noncanonical}
1560
1561
1562 # Set program_transform_name
1563 test "$program_prefix" != NONE &&
1564   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1565 # Use a double $ so make ignores it.
1566 test "$program_suffix" != NONE &&
1567   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1568 # Double any \ or $.  echo might interpret backslashes.
1569 # By default was `s,x,x', remove it if useless.
1570 cat <<\_ACEOF >conftest.sed
1571 s/[\\$]/&&/g;s/;s,x,x,$//
1572 _ACEOF
1573 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1574 rm conftest.sed
1575
1576
1577 # Check for bogus environment variables.
1578 # Test if LIBRARY_PATH contains the notation for the current directory
1579 # since this would lead to problems installing/building glibc.
1580 # LIBRARY_PATH contains the current directory if one of the following
1581 # is true:
1582 # - one of the terminals (":" and ";") is the first or last sign
1583 # - two terminals occur directly after each other
1584 # - the path contains an element with a dot in it
1585 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1586 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1587 case ${LIBRARY_PATH} in
1588   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1589     library_path_setting="contains current directory"
1590     ;;
1591   *)
1592     library_path_setting="ok"
1593     ;;
1594 esac
1595 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1596 echo "${ECHO_T}$library_path_setting" >&6
1597 if test "$library_path_setting" != "ok"; then
1598 { { echo "$as_me:$LINENO: error:
1599 *** LIBRARY_PATH shouldn't contain the current directory when
1600 *** building gcc. Please change the environment variable
1601 *** and run configure again." >&5
1602 echo "$as_me: error:
1603 *** LIBRARY_PATH shouldn't contain the current directory when
1604 *** building gcc. Please change the environment variable
1605 *** and run configure again." >&2;}
1606    { (exit 1); exit 1; }; }
1607 fi
1608
1609 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1610 # since this would lead to problems installing/building glibc.
1611 # GCC_EXEC_PREFIX contains the current directory if one of the following
1612 # is true:
1613 # - one of the terminals (":" and ";") is the first or last sign
1614 # - two terminals occur directly after each other
1615 # - the path contains an element with a dot in it
1616 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1617 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1618 case ${GCC_EXEC_PREFIX} in
1619   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1620     gcc_exec_prefix_setting="contains current directory"
1621     ;;
1622   *)
1623     gcc_exec_prefix_setting="ok"
1624     ;;
1625 esac
1626 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1627 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1628 if test "$gcc_exec_prefix_setting" != "ok"; then
1629 { { echo "$as_me:$LINENO: error:
1630 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1631 *** building gcc. Please change the environment variable
1632 *** and run configure again." >&5
1633 echo "$as_me: error:
1634 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1635 *** building gcc. Please change the environment variable
1636 *** and run configure again." >&2;}
1637    { (exit 1); exit 1; }; }
1638 fi
1639
1640 # -----------
1641 # Directories
1642 # -----------
1643
1644 # Specify the local prefix
1645 local_prefix=
1646
1647 # Check whether --with-local-prefix or --without-local-prefix was given.
1648 if test "${with_local_prefix+set}" = set; then
1649   withval="$with_local_prefix"
1650   case "${withval}" in
1651 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1652 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1653    { (exit 1); exit 1; }; } ;;
1654 no)     ;;
1655 *)      local_prefix=$with_local_prefix ;;
1656 esac
1657 fi;
1658
1659 # Default local prefix if it is empty
1660 if test x$local_prefix = x; then
1661         local_prefix=/usr/local
1662 fi
1663
1664 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1665 # passed in by the toplevel make and thus we'd get different behavior
1666 # depending on where we built the sources.
1667 gcc_gxx_include_dir=
1668 # Specify the g++ header file directory
1669
1670 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1671 if test "${with_gxx_include_dir+set}" = set; then
1672   withval="$with_gxx_include_dir"
1673   case "${withval}" in
1674 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1675 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1676    { (exit 1); exit 1; }; } ;;
1677 no)     ;;
1678 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1679 esac
1680 fi;
1681
1682 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1683 if test x${gcc_gxx_include_dir} = x; then
1684   if test x${enable_version_specific_runtime_libs} = xyes; then
1685     gcc_gxx_include_dir='${libsubdir}/include/c++'
1686   else
1687     libstdcxx_incdir='include/c++/$(version)'
1688     if test x$host != x$target; then
1689        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1690     fi
1691     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1692   fi
1693 fi
1694
1695
1696 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1697 if test "${with_cpp_install_dir+set}" = set; then
1698   withval="$with_cpp_install_dir"
1699   if test x$withval = xyes; then
1700   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1701 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1702    { (exit 1); exit 1; }; }
1703 elif test x$withval != xno; then
1704   cpp_install_dir=$withval
1705 fi
1706 fi;
1707
1708 # We would like to our source tree to be readonly.  However when releases or
1709 # pre-releases are generated, the flex/bison generated files as well as the
1710 # various formats of manuals need to be included along with the rest of the
1711 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1712 # just that.
1713
1714 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1715 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1716     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1717 if test "${enable_generated_files_in_srcdir+set}" = set; then
1718   enableval="$enable_generated_files_in_srcdir"
1719   generated_files_in_srcdir=$enableval
1720 else
1721   generated_files_in_srcdir=no
1722 fi;
1723
1724 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1725 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1726
1727 if test "$generated_files_in_srcdir" = "yes"; then
1728   GENINSRC=''
1729 else
1730   GENINSRC='#'
1731 fi
1732
1733
1734 # -------------------
1735 # Find default linker
1736 # -------------------
1737
1738 # With GNU ld
1739
1740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1741 if test "${with_gnu_ld+set}" = set; then
1742   withval="$with_gnu_ld"
1743   gnu_ld_flag="$with_gnu_ld"
1744 else
1745   gnu_ld_flag=no
1746 fi;
1747
1748 # With pre-defined ld
1749
1750 # Check whether --with-ld or --without-ld was given.
1751 if test "${with_ld+set}" = set; then
1752   withval="$with_ld"
1753   DEFAULT_LINKER="$with_ld"
1754 fi;
1755 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1756   if test ! -x "$DEFAULT_LINKER"; then
1757     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1758 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1759    { (exit 1); exit 1; }; }
1760   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1761     gnu_ld_flag=yes
1762   fi
1763
1764 cat >>confdefs.h <<_ACEOF
1765 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1766 _ACEOF
1767
1768 fi
1769
1770 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1771
1772 cat >>confdefs.h <<_ACEOF
1773 #define HAVE_GNU_LD $gnu_ld
1774 _ACEOF
1775
1776
1777 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1778 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1779 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1780   if test x"$gnu_ld_flag" = x"no"; then
1781     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1782 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1783   else
1784     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1785 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1786   fi
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792 # With demangler in GNU ld
1793
1794 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1795 if test "${with_demangler_in_ld+set}" = set; then
1796   withval="$with_demangler_in_ld"
1797   demangler_in_ld="$with_demangler_in_ld"
1798 else
1799   demangler_in_ld=no
1800 fi;
1801
1802 # ----------------------
1803 # Find default assembler
1804 # ----------------------
1805
1806 # With GNU as
1807
1808 # Check whether --with-gnu-as or --without-gnu-as was given.
1809 if test "${with_gnu_as+set}" = set; then
1810   withval="$with_gnu_as"
1811   gas_flag="$with_gnu_as"
1812 else
1813   gas_flag=no
1814 fi;
1815
1816
1817 # Check whether --with-as or --without-as was given.
1818 if test "${with_as+set}" = set; then
1819   withval="$with_as"
1820   DEFAULT_ASSEMBLER="$with_as"
1821 fi;
1822 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1823   if test ! -x "$DEFAULT_ASSEMBLER"; then
1824     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1825 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1826    { (exit 1); exit 1; }; }
1827   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1828     gas_flag=yes
1829   fi
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1833 _ACEOF
1834
1835 fi
1836
1837 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define HAVE_GNU_AS $gnu_as
1841 _ACEOF
1842
1843
1844 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1845 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1846 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1847   if test x"$gas_flag" = x"no"; then
1848     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1849 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1850   else
1851     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1852 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1853   fi
1854 else
1855   echo "$as_me:$LINENO: result: no" >&5
1856 echo "${ECHO_T}no" >&6
1857 fi
1858
1859 # ---------------
1860 # Find C compiler
1861 # ---------------
1862
1863 # If a non-executable a.out is present (e.g. created by GNU as above even if
1864 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1865 # file, even when creating an executable, so an execution test fails.
1866 # Remove possible default executable files to avoid this.
1867 #
1868 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1869 # Autoconf includes it.
1870 rm -f a.out a.exe b.out
1871
1872 # Find the native compiler
1873 ac_ext=c
1874 ac_cpp='$CPP $CPPFLAGS'
1875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878 if test -n "$ac_tool_prefix"; then
1879   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1881 echo "$as_me:$LINENO: checking for $ac_word" >&5
1882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883 if test "${ac_cv_prog_CC+set}" = set; then
1884   echo $ECHO_N "(cached) $ECHO_C" >&6
1885 else
1886   if test -n "$CC"; then
1887   ac_cv_prog_CC="$CC" # Let the user override the test.
1888 else
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892   IFS=$as_save_IFS
1893   test -z "$as_dir" && as_dir=.
1894   for ac_exec_ext in '' $ac_executable_extensions; do
1895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898     break 2
1899   fi
1900 done
1901 done
1902
1903 fi
1904 fi
1905 CC=$ac_cv_prog_CC
1906 if test -n "$CC"; then
1907   echo "$as_me:$LINENO: result: $CC" >&5
1908 echo "${ECHO_T}$CC" >&6
1909 else
1910   echo "$as_me:$LINENO: result: no" >&5
1911 echo "${ECHO_T}no" >&6
1912 fi
1913
1914 fi
1915 if test -z "$ac_cv_prog_CC"; then
1916   ac_ct_CC=$CC
1917   # Extract the first word of "gcc", so it can be a program name with args.
1918 set dummy gcc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   if test -n "$ac_ct_CC"; then
1925   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH
1929 do
1930   IFS=$as_save_IFS
1931   test -z "$as_dir" && as_dir=.
1932   for ac_exec_ext in '' $ac_executable_extensions; do
1933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934     ac_cv_prog_ac_ct_CC="gcc"
1935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936     break 2
1937   fi
1938 done
1939 done
1940
1941 fi
1942 fi
1943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944 if test -n "$ac_ct_CC"; then
1945   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946 echo "${ECHO_T}$ac_ct_CC" >&6
1947 else
1948   echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1950 fi
1951
1952   CC=$ac_ct_CC
1953 else
1954   CC="$ac_cv_prog_CC"
1955 fi
1956
1957 if test -z "$CC"; then
1958   if test -n "$ac_tool_prefix"; then
1959   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1960 set dummy ${ac_tool_prefix}cc; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_CC+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   if test -n "$CC"; then
1967   ac_cv_prog_CC="$CC" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   for ac_exec_ext in '' $ac_executable_extensions; do
1975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976     ac_cv_prog_CC="${ac_tool_prefix}cc"
1977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978     break 2
1979   fi
1980 done
1981 done
1982
1983 fi
1984 fi
1985 CC=$ac_cv_prog_CC
1986 if test -n "$CC"; then
1987   echo "$as_me:$LINENO: result: $CC" >&5
1988 echo "${ECHO_T}$CC" >&6
1989 else
1990   echo "$as_me:$LINENO: result: no" >&5
1991 echo "${ECHO_T}no" >&6
1992 fi
1993
1994 fi
1995 if test -z "$ac_cv_prog_CC"; then
1996   ac_ct_CC=$CC
1997   # Extract the first word of "cc", so it can be a program name with args.
1998 set dummy cc; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002   echo $ECHO_N "(cached) $ECHO_C" >&6
2003 else
2004   if test -n "$ac_ct_CC"; then
2005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006 else
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     ac_cv_prog_ac_ct_CC="cc"
2015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016     break 2
2017   fi
2018 done
2019 done
2020
2021 fi
2022 fi
2023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024 if test -n "$ac_ct_CC"; then
2025   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026 echo "${ECHO_T}$ac_ct_CC" >&6
2027 else
2028   echo "$as_me:$LINENO: result: no" >&5
2029 echo "${ECHO_T}no" >&6
2030 fi
2031
2032   CC=$ac_ct_CC
2033 else
2034   CC="$ac_cv_prog_CC"
2035 fi
2036
2037 fi
2038 if test -z "$CC"; then
2039   # Extract the first word of "cc", so it can be a program name with args.
2040 set dummy cc; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_CC+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$CC"; then
2047   ac_cv_prog_CC="$CC" # Let the user override the test.
2048 else
2049   ac_prog_rejected=no
2050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 for as_dir in $PATH
2052 do
2053   IFS=$as_save_IFS
2054   test -z "$as_dir" && as_dir=.
2055   for ac_exec_ext in '' $ac_executable_extensions; do
2056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2058        ac_prog_rejected=yes
2059        continue
2060      fi
2061     ac_cv_prog_CC="cc"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067
2068 if test $ac_prog_rejected = yes; then
2069   # We found a bogon in the path, so make sure we never use it.
2070   set dummy $ac_cv_prog_CC
2071   shift
2072   if test $# != 0; then
2073     # We chose a different compiler from the bogus one.
2074     # However, it has the same basename, so the bogon will be chosen
2075     # first if we set CC to just the basename; use the full file name.
2076     shift
2077     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2078   fi
2079 fi
2080 fi
2081 fi
2082 CC=$ac_cv_prog_CC
2083 if test -n "$CC"; then
2084   echo "$as_me:$LINENO: result: $CC" >&5
2085 echo "${ECHO_T}$CC" >&6
2086 else
2087   echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2089 fi
2090
2091 fi
2092 if test -z "$CC"; then
2093   if test -n "$ac_tool_prefix"; then
2094   for ac_prog in cl
2095   do
2096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$CC"; then
2104   ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124   echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6
2126 else
2127   echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2129 fi
2130
2131     test -n "$CC" && break
2132   done
2133 fi
2134 if test -z "$CC"; then
2135   ac_ct_CC=$CC
2136   for ac_prog in cl
2137 do
2138   # Extract the first word of "$ac_prog", so it can be a program name with args.
2139 set dummy $ac_prog; ac_word=$2
2140 echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2143   echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145   if test -n "$ac_ct_CC"; then
2146   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153   for ac_exec_ext in '' $ac_executable_extensions; do
2154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155     ac_cv_prog_ac_ct_CC="$ac_prog"
2156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157     break 2
2158   fi
2159 done
2160 done
2161
2162 fi
2163 fi
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6
2168 else
2169   echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2171 fi
2172
2173   test -n "$ac_ct_CC" && break
2174 done
2175
2176   CC=$ac_ct_CC
2177 fi
2178
2179 fi
2180
2181
2182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2183 See \`config.log' for more details." >&5
2184 echo "$as_me: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&2;}
2186    { (exit 1); exit 1; }; }
2187
2188 # Provide some information about the compiler.
2189 echo "$as_me:$LINENO:" \
2190      "checking for C compiler version" >&5
2191 ac_compiler=`set X $ac_compile; echo $2`
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2193   (eval $ac_compiler --version </dev/null >&5) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2198   (eval $ac_compiler -v </dev/null >&5) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }
2202 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2203   (eval $ac_compiler -V </dev/null >&5) 2>&5
2204   ac_status=$?
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); }
2207
2208 cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h.  */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h.  */
2214
2215 int
2216 main ()
2217 {
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 ac_clean_files_save=$ac_clean_files
2224 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2225 # Try to create an executable without -o first, disregard a.out.
2226 # It will help us diagnose broken compilers, and finding out an intuition
2227 # of exeext.
2228 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2229 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2230 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2231 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2232   (eval $ac_link_default) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; then
2236   # Find the output, starting from the most likely.  This scheme is
2237 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2238 # resort.
2239
2240 # Be careful to initialize this variable, since it used to be cached.
2241 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2242 ac_cv_exeext=
2243 # b.out is created by i960 compilers.
2244 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2245 do
2246   test -f "$ac_file" || continue
2247   case $ac_file in
2248     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2249         ;;
2250     conftest.$ac_ext )
2251         # This is the source file.
2252         ;;
2253     [ab].out )
2254         # We found the default executable, but exeext='' is most
2255         # certainly right.
2256         break;;
2257     *.* )
2258         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259         # FIXME: I believe we export ac_cv_exeext for Libtool,
2260         # but it would be cool to find out if it's true.  Does anybody
2261         # maintain Libtool? --akim.
2262         export ac_cv_exeext
2263         break;;
2264     * )
2265         break;;
2266   esac
2267 done
2268 else
2269   echo "$as_me: failed program was:" >&5
2270 sed 's/^/| /' conftest.$ac_ext >&5
2271
2272 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2273 See \`config.log' for more details." >&5
2274 echo "$as_me: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&2;}
2276    { (exit 77); exit 77; }; }
2277 fi
2278
2279 ac_exeext=$ac_cv_exeext
2280 echo "$as_me:$LINENO: result: $ac_file" >&5
2281 echo "${ECHO_T}$ac_file" >&6
2282
2283 # Check the compiler produces executables we can run.  If not, either
2284 # the compiler is broken, or we cross compile.
2285 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2286 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2287 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2288 # If not cross compiling, check that we can run a simple program.
2289 if test "$cross_compiling" != yes; then
2290   if { ac_try='./$ac_file'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; }; then
2296     cross_compiling=no
2297   else
2298     if test "$cross_compiling" = maybe; then
2299         cross_compiling=yes
2300     else
2301         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2302 If you meant to cross compile, use \`--host'.
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot run C compiled programs.
2305 If you meant to cross compile, use \`--host'.
2306 See \`config.log' for more details." >&2;}
2307    { (exit 1); exit 1; }; }
2308     fi
2309   fi
2310 fi
2311 echo "$as_me:$LINENO: result: yes" >&5
2312 echo "${ECHO_T}yes" >&6
2313
2314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2315 ac_clean_files=$ac_clean_files_save
2316 # Check the compiler produces executables we can run.  If not, either
2317 # the compiler is broken, or we cross compile.
2318 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2319 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2320 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2321 echo "${ECHO_T}$cross_compiling" >&6
2322
2323 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2324 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2326   (eval $ac_link) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; then
2330   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2331 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2332 # work properly (i.e., refer to `conftest.exe'), while it won't with
2333 # `rm'.
2334 for ac_file in conftest.exe conftest conftest.*; do
2335   test -f "$ac_file" || continue
2336   case $ac_file in
2337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2338     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2339           export ac_cv_exeext
2340           break;;
2341     * ) break;;
2342   esac
2343 done
2344 else
2345   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2346 See \`config.log' for more details." >&5
2347 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&2;}
2349    { (exit 1); exit 1; }; }
2350 fi
2351
2352 rm -f conftest$ac_cv_exeext
2353 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2354 echo "${ECHO_T}$ac_cv_exeext" >&6
2355
2356 rm -f conftest.$ac_ext
2357 EXEEXT=$ac_cv_exeext
2358 ac_exeext=$EXEEXT
2359 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2360 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2361 if test "${ac_cv_objext+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h.  */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h.  */
2370
2371 int
2372 main ()
2373 {
2374
2375   ;
2376   return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.o conftest.obj
2380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381   (eval $ac_compile) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; then
2385   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2386   case $ac_file in
2387     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2388     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2389        break;;
2390   esac
2391 done
2392 else
2393   echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&2;}
2400    { (exit 1); exit 1; }; }
2401 fi
2402
2403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2404 fi
2405 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2406 echo "${ECHO_T}$ac_cv_objext" >&6
2407 OBJEXT=$ac_cv_objext
2408 ac_objext=$OBJEXT
2409 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2412   echo $ECHO_N "(cached) $ECHO_C" >&6
2413 else
2414   cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h.  */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h.  */
2420
2421 int
2422 main ()
2423 {
2424 #ifndef __GNUC__
2425        choke me
2426 #endif
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   ac_compiler_gnu=yes
2455 else
2456   echo "$as_me: failed program was:" >&5
2457 sed 's/^/| /' conftest.$ac_ext >&5
2458
2459 ac_compiler_gnu=no
2460 fi
2461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2462 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2463
2464 fi
2465 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2466 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2467 GCC=`test $ac_compiler_gnu = yes && echo yes`
2468 ac_test_CFLAGS=${CFLAGS+set}
2469 ac_save_CFLAGS=$CFLAGS
2470 CFLAGS="-g"
2471 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2472 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2473 if test "${ac_cv_prog_cc_g+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h.  */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h.  */
2482
2483 int
2484 main ()
2485 {
2486
2487   ;
2488   return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2493   (eval $ac_compile) 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } &&
2500          { ac_try='test -z "$ac_c_werror_flag"
2501                          || test ! -s conftest.err'
2502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503   (eval $ac_try) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }; } &&
2507          { ac_try='test -s conftest.$ac_objext'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; }; then
2513   ac_cv_prog_cc_g=yes
2514 else
2515   echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 ac_cv_prog_cc_g=no
2519 fi
2520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2521 fi
2522 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2523 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2524 if test "$ac_test_CFLAGS" = set; then
2525   CFLAGS=$ac_save_CFLAGS
2526 elif test $ac_cv_prog_cc_g = yes; then
2527   if test "$GCC" = yes; then
2528     CFLAGS="-g -O2"
2529   else
2530     CFLAGS="-g"
2531   fi
2532 else
2533   if test "$GCC" = yes; then
2534     CFLAGS="-O2"
2535   else
2536     CFLAGS=
2537   fi
2538 fi
2539 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2540 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2541 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   ac_cv_prog_cc_stdc=no
2545 ac_save_CC=$CC
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552 #include <stdarg.h>
2553 #include <stdio.h>
2554 #include <sys/types.h>
2555 #include <sys/stat.h>
2556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2557 struct buf { int x; };
2558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2559 static char *e (p, i)
2560      char **p;
2561      int i;
2562 {
2563   return p[i];
2564 }
2565 static char *f (char * (*g) (char **, int), char **p, ...)
2566 {
2567   char *s;
2568   va_list v;
2569   va_start (v,p);
2570   s = g (p, va_arg (v,int));
2571   va_end (v);
2572   return s;
2573 }
2574
2575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2576    function prototypes and stuff, but not '\xHH' hex character constants.
2577    These don't provoke an error unfortunately, instead are silently treated
2578    as 'x'.  The following induces an error, until -std1 is added to get
2579    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2580    array size at least.  It's necessary to write '\x00'==0 to get something
2581    that's true only with -std1.  */
2582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2583
2584 int test (int i, double x);
2585 struct s1 {int (*f) (int a);};
2586 struct s2 {int (*f) (double a);};
2587 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2588 int argc;
2589 char **argv;
2590 int
2591 main ()
2592 {
2593 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 # Don't try gcc -ansi; that turns off useful extensions and
2599 # breaks some systems' header files.
2600 # AIX                   -qlanglvl=ansi
2601 # Ultrix and OSF/1      -std1
2602 # HP-UX 10.20 and later -Ae
2603 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2604 # SVR4                  -Xc -D__EXTENSIONS__
2605 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2606 do
2607   CC="$ac_save_CC $ac_arg"
2608   rm -f conftest.$ac_objext
2609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2610   (eval $ac_compile) 2>conftest.er1
2611   ac_status=$?
2612   grep -v '^ *+' conftest.er1 >conftest.err
2613   rm -f conftest.er1
2614   cat conftest.err >&5
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); } &&
2617          { ac_try='test -z "$ac_c_werror_flag"
2618                          || test ! -s conftest.err'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; } &&
2624          { ac_try='test -s conftest.$ac_objext'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630   ac_cv_prog_cc_stdc=$ac_arg
2631 break
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 fi
2637 rm -f conftest.err conftest.$ac_objext
2638 done
2639 rm -f conftest.$ac_ext conftest.$ac_objext
2640 CC=$ac_save_CC
2641
2642 fi
2643
2644 case "x$ac_cv_prog_cc_stdc" in
2645   x|xno)
2646     echo "$as_me:$LINENO: result: none needed" >&5
2647 echo "${ECHO_T}none needed" >&6 ;;
2648   *)
2649     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2650 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2651     CC="$CC $ac_cv_prog_cc_stdc" ;;
2652 esac
2653
2654 # Some people use a C++ compiler to compile C.  Since we use `exit',
2655 # in C++ we need to declare it.  In case someone uses the same compiler
2656 # for both compiling C and C++ we need to have the C++ compiler decide
2657 # the declaration of exit, since it's the most demanding environment.
2658 cat >conftest.$ac_ext <<_ACEOF
2659 #ifndef __cplusplus
2660   choke me
2661 #endif
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"
2673                          || test ! -s conftest.err'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681   (eval $ac_try) 2>&5
2682   ac_status=$?
2683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684   (exit $ac_status); }; }; then
2685   for ac_declaration in \
2686    '' \
2687    'extern "C" void std::exit (int) throw (); using std::exit;' \
2688    'extern "C" void std::exit (int); using std::exit;' \
2689    'extern "C" void exit (int) throw ();' \
2690    'extern "C" void exit (int);' \
2691    'void exit (int);'
2692 do
2693   cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h.  */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h.  */
2699 $ac_declaration
2700 #include <stdlib.h>
2701 int
2702 main ()
2703 {
2704 exit (42);
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag"
2719                          || test ! -s conftest.err'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   :
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 continue
2737 fi
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739   cat >conftest.$ac_ext <<_ACEOF
2740 /* confdefs.h.  */
2741 _ACEOF
2742 cat confdefs.h >>conftest.$ac_ext
2743 cat >>conftest.$ac_ext <<_ACEOF
2744 /* end confdefs.h.  */
2745 $ac_declaration
2746 int
2747 main ()
2748 {
2749 exit (42);
2750   ;
2751   return 0;
2752 }
2753 _ACEOF
2754 rm -f conftest.$ac_objext
2755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2756   (eval $ac_compile) 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -z "$ac_c_werror_flag"
2764                          || test ! -s conftest.err'
2765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766   (eval $ac_try) 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; } &&
2770          { ac_try='test -s conftest.$ac_objext'
2771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772   (eval $ac_try) 2>&5
2773   ac_status=$?
2774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775   (exit $ac_status); }; }; then
2776   break
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781 fi
2782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2783 done
2784 rm -f conftest*
2785 if test -n "$ac_declaration"; then
2786   echo '#ifdef __cplusplus' >>confdefs.h
2787   echo $ac_declaration      >>confdefs.h
2788   echo '#endif'             >>confdefs.h
2789 fi
2790
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 fi
2796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797 ac_ext=c
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802
2803 if test "x$CC" != xcc; then
2804   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2805 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2806 else
2807   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2808 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2809 fi
2810 set dummy $CC; ac_cc=`echo $2 |
2811                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2812 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2813   echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815   cat >conftest.$ac_ext <<_ACEOF
2816 /* confdefs.h.  */
2817 _ACEOF
2818 cat confdefs.h >>conftest.$ac_ext
2819 cat >>conftest.$ac_ext <<_ACEOF
2820 /* end confdefs.h.  */
2821
2822 int
2823 main ()
2824 {
2825
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 # Make sure it works both with $CC and with simple cc.
2831 # We do the test twice because some compilers refuse to overwrite an
2832 # existing .o file with -o, though they will create one.
2833 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2834 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); } &&
2839    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); };
2844 then
2845   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2846   if test "x$CC" != xcc; then
2847     # Test first that cc exists at all.
2848     if { ac_try='cc -c conftest.$ac_ext >&5'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; }; then
2854       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2855       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); } &&
2860          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); };
2865       then
2866         # cc works too.
2867         :
2868       else
2869         # cc exists but doesn't like -o.
2870         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2871       fi
2872     fi
2873   fi
2874 else
2875   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876 fi
2877 rm -f conftest*
2878
2879 fi
2880 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2881   echo "$as_me:$LINENO: result: yes" >&5
2882 echo "${ECHO_T}yes" >&6
2883 else
2884   echo "$as_me:$LINENO: result: no" >&5
2885 echo "${ECHO_T}no" >&6
2886
2887 cat >>confdefs.h <<\_ACEOF
2888 #define NO_MINUS_C_MINUS_O 1
2889 _ACEOF
2890
2891 fi
2892
2893 # expand $ac_aux_dir to an absolute path
2894 am_aux_dir=`cd $ac_aux_dir && pwd`
2895
2896 # FIXME: we rely on the cache variable name because
2897 # there is no other way.
2898 set dummy $CC
2899 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2900 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2901    # Losing compiler, so override with the script.
2902    # FIXME: It is wrong to rewrite CC.
2903    # But if we don't then we get into trouble of one sort or another.
2904    # A longer-term fix would be to have automake use am__CC in this case,
2905    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2906    CC="$am_aux_dir/compile $CC"
2907 fi
2908
2909 # autoconf is lame and doesn't give us any substitution variable for this.
2910 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2911   NO_MINUS_C_MINUS_O=yes
2912 else
2913   OUTPUT_OPTION='-o $@'
2914 fi
2915
2916
2917
2918 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2919 # optimizations to be activated explicitly by the toplevel.
2920 case "$CC" in
2921   */prev-gcc/xgcc*) ;;
2922   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2923 esac
2924
2925
2926 # -------------------------
2927 # Check C compiler features
2928 # -------------------------
2929
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2936 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2937 # On Suns, sometimes $CPP names a directory.
2938 if test -n "$CPP" && test -d "$CPP"; then
2939   CPP=
2940 fi
2941 if test -z "$CPP"; then
2942   if test "${ac_cv_prog_CPP+set}" = set; then
2943   echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945       # Double quotes because CPP needs to be expanded
2946     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2947     do
2948       ac_preproc_ok=false
2949 for ac_c_preproc_warn_flag in '' yes
2950 do
2951   # Use a header file that comes with gcc, so configuring glibc
2952   # with a fresh cross-compiler works.
2953   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2954   # <limits.h> exists even on freestanding compilers.
2955   # On the NeXT, cc -E runs the code through the compiler's parser,
2956   # not just through cpp. "Syntax error" is here to catch this case.
2957   cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963 #ifdef __STDC__
2964 # include <limits.h>
2965 #else
2966 # include <assert.h>
2967 #endif
2968                      Syntax error
2969 _ACEOF
2970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2972   ac_status=$?
2973   grep -v '^ *+' conftest.er1 >conftest.err
2974   rm -f conftest.er1
2975   cat conftest.err >&5
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); } >/dev/null; then
2978   if test -s conftest.err; then
2979     ac_cpp_err=$ac_c_preproc_warn_flag
2980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2981   else
2982     ac_cpp_err=
2983   fi
2984 else
2985   ac_cpp_err=yes
2986 fi
2987 if test -z "$ac_cpp_err"; then
2988   :
2989 else
2990   echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993   # Broken: fails on valid input.
2994 continue
2995 fi
2996 rm -f conftest.err conftest.$ac_ext
2997
2998   # OK, works on sane cases.  Now check whether non-existent headers
2999   # can be detected and how.
3000   cat >conftest.$ac_ext <<_ACEOF
3001 /* confdefs.h.  */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h.  */
3006 #include <ac_nonexistent.h>
3007 _ACEOF
3008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3010   ac_status=$?
3011   grep -v '^ *+' conftest.er1 >conftest.err
3012   rm -f conftest.er1
3013   cat conftest.err >&5
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); } >/dev/null; then
3016   if test -s conftest.err; then
3017     ac_cpp_err=$ac_c_preproc_warn_flag
3018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3019   else
3020     ac_cpp_err=
3021   fi
3022 else
3023   ac_cpp_err=yes
3024 fi
3025 if test -z "$ac_cpp_err"; then
3026   # Broken: success on invalid input.
3027 continue
3028 else
3029   echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3031
3032   # Passes both tests.
3033 ac_preproc_ok=:
3034 break
3035 fi
3036 rm -f conftest.err conftest.$ac_ext
3037
3038 done
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err conftest.$ac_ext
3041 if $ac_preproc_ok; then
3042   break
3043 fi
3044
3045     done
3046     ac_cv_prog_CPP=$CPP
3047
3048 fi
3049   CPP=$ac_cv_prog_CPP
3050 else
3051   ac_cv_prog_CPP=$CPP
3052 fi
3053 echo "$as_me:$LINENO: result: $CPP" >&5
3054 echo "${ECHO_T}$CPP" >&6
3055 ac_preproc_ok=false
3056 for ac_c_preproc_warn_flag in '' yes
3057 do
3058   # Use a header file that comes with gcc, so configuring glibc
3059   # with a fresh cross-compiler works.
3060   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061   # <limits.h> exists even on freestanding compilers.
3062   # On the NeXT, cc -E runs the code through the compiler's parser,
3063   # not just through cpp. "Syntax error" is here to catch this case.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #ifdef __STDC__
3071 # include <limits.h>
3072 #else
3073 # include <assert.h>
3074 #endif
3075                      Syntax error
3076 _ACEOF
3077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3078   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3079   ac_status=$?
3080   grep -v '^ *+' conftest.er1 >conftest.err
3081   rm -f conftest.er1
3082   cat conftest.err >&5
3083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084   (exit $ac_status); } >/dev/null; then
3085   if test -s conftest.err; then
3086     ac_cpp_err=$ac_c_preproc_warn_flag
3087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3088   else
3089     ac_cpp_err=
3090   fi
3091 else
3092   ac_cpp_err=yes
3093 fi
3094 if test -z "$ac_cpp_err"; then
3095   :
3096 else
3097   echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100   # Broken: fails on valid input.
3101 continue
3102 fi
3103 rm -f conftest.err conftest.$ac_ext
3104
3105   # OK, works on sane cases.  Now check whether non-existent headers
3106   # can be detected and how.
3107   cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h.  */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h.  */
3113 #include <ac_nonexistent.h>
3114 _ACEOF
3115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } >/dev/null; then
3123   if test -s conftest.err; then
3124     ac_cpp_err=$ac_c_preproc_warn_flag
3125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3126   else
3127     ac_cpp_err=
3128   fi
3129 else
3130   ac_cpp_err=yes
3131 fi
3132 if test -z "$ac_cpp_err"; then
3133   # Broken: success on invalid input.
3134 continue
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139   # Passes both tests.
3140 ac_preproc_ok=:
3141 break
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144
3145 done
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then
3149   :
3150 else
3151   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3152 See \`config.log' for more details." >&5
3153 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&2;}
3155    { (exit 1); exit 1; }; }
3156 fi
3157
3158 ac_ext=c
3159 ac_cpp='$CPP $CPPFLAGS'
3160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3163
3164
3165 echo "$as_me:$LINENO: checking for inline" >&5
3166 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3167 if test "${ac_cv_c_inline+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   ac_cv_c_inline=no
3171 for ac_kw in inline __inline__ __inline; do
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #ifndef __cplusplus
3179 typedef int foo_t;
3180 static $ac_kw foo_t static_foo () {return 0; }
3181 $ac_kw foo_t foo () {return 0; }
3182 #endif
3183
3184 _ACEOF
3185 rm -f conftest.$ac_objext
3186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3187   (eval $ac_compile) 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } &&
3194          { ac_try='test -z "$ac_c_werror_flag"
3195                          || test ! -s conftest.err'
3196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3197   (eval $ac_try) 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203   (eval $ac_try) 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; }; then
3207   ac_cv_c_inline=$ac_kw; break
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 fi
3213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3214 done
3215
3216 fi
3217 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3218 echo "${ECHO_T}$ac_cv_c_inline" >&6
3219
3220
3221 case $ac_cv_c_inline in
3222   inline | yes) ;;
3223   *)
3224     case $ac_cv_c_inline in
3225       no) ac_val=;;
3226       *) ac_val=$ac_cv_c_inline;;
3227     esac
3228     cat >>confdefs.h <<_ACEOF
3229 #ifndef __cplusplus
3230 #define inline $ac_val
3231 #endif
3232 _ACEOF
3233     ;;
3234 esac
3235
3236
3237 # sizeof(char) is 1 by definition.
3238
3239 echo "$as_me:$LINENO: checking for egrep" >&5
3240 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3241 if test "${ac_cv_prog_egrep+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3245     then ac_cv_prog_egrep='grep -E'
3246     else ac_cv_prog_egrep='egrep'
3247     fi
3248 fi
3249 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3250 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3251  EGREP=$ac_cv_prog_egrep
3252
3253
3254 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3255 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3256 if test "${ac_cv_header_stdc+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   cat >conftest.$ac_ext <<_ACEOF
3260 /* confdefs.h.  */
3261 _ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h.  */
3265 #include <stdlib.h>
3266 #include <stdarg.h>
3267 #include <string.h>
3268 #include <float.h>
3269
3270 int
3271 main ()
3272 {
3273
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280   (eval $ac_compile) 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } &&
3287          { ac_try='test -z "$ac_c_werror_flag"
3288                          || test ! -s conftest.err'
3289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290   (eval $ac_try) 2>&5
3291   ac_status=$?
3292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293   (exit $ac_status); }; } &&
3294          { ac_try='test -s conftest.$ac_objext'
3295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296   (eval $ac_try) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); }; }; then
3300   ac_cv_header_stdc=yes
3301 else
3302   echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 ac_cv_header_stdc=no
3306 fi
3307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308
3309 if test $ac_cv_header_stdc = yes; then
3310   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3311   cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h.  */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h.  */
3317 #include <string.h>
3318
3319 _ACEOF
3320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3321   $EGREP "memchr" >/dev/null 2>&1; then
3322   :
3323 else
3324   ac_cv_header_stdc=no
3325 fi
3326 rm -f conftest*
3327
3328 fi
3329
3330 if test $ac_cv_header_stdc = yes; then
3331   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #include <stdlib.h>
3339
3340 _ACEOF
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342   $EGREP "free" >/dev/null 2>&1; then
3343   :
3344 else
3345   ac_cv_header_stdc=no
3346 fi
3347 rm -f conftest*
3348
3349 fi
3350
3351 if test $ac_cv_header_stdc = yes; then
3352   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3353   if test "$cross_compiling" = yes; then
3354   :
3355 else
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #include <ctype.h>
3363 #if ((' ' & 0x0FF) == 0x020)
3364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3366 #else
3367 # define ISLOWER(c) \
3368                    (('a' <= (c) && (c) <= 'i') \
3369                      || ('j' <= (c) && (c) <= 'r') \
3370                      || ('s' <= (c) && (c) <= 'z'))
3371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3372 #endif
3373
3374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3375 int
3376 main ()
3377 {
3378   int i;
3379   for (i = 0; i < 256; i++)
3380     if (XOR (islower (i), ISLOWER (i))
3381         || toupper (i) != TOUPPER (i))
3382       exit(2);
3383   exit (0);
3384 }
3385 _ACEOF
3386 rm -f conftest$ac_exeext
3387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3388   (eval $ac_link) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; }; then
3397   :
3398 else
3399   echo "$as_me: program exited with status $ac_status" >&5
3400 echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 ( exit $ac_status )
3404 ac_cv_header_stdc=no
3405 fi
3406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3407 fi
3408 fi
3409 fi
3410 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3412 if test $ac_cv_header_stdc = yes; then
3413
3414 cat >>confdefs.h <<\_ACEOF
3415 #define STDC_HEADERS 1
3416 _ACEOF
3417
3418 fi
3419
3420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3431                   inttypes.h stdint.h unistd.h
3432 do
3433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3434 echo "$as_me:$LINENO: checking for $ac_header" >&5
3435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3437   echo $ECHO_N "(cached) $ECHO_C" >&6
3438 else
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 $ac_includes_default
3446
3447 #include <$ac_header>
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451   (eval $ac_compile) 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } &&
3458          { ac_try='test -z "$ac_c_werror_flag"
3459                          || test ! -s conftest.err'
3460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461   (eval $ac_try) 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }; } &&
3465          { ac_try='test -s conftest.$ac_objext'
3466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467   (eval $ac_try) 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; }; then
3471   eval "$as_ac_Header=yes"
3472 else
3473   echo "$as_me: failed program was:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 eval "$as_ac_Header=no"
3477 fi
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 fi
3480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3483   cat >>confdefs.h <<_ACEOF
3484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3485 _ACEOF
3486
3487 fi
3488
3489 done
3490
3491
3492 echo "$as_me:$LINENO: checking for void *" >&5
3493 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3494 if test "${ac_cv_type_void_p+set}" = set; then
3495   echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497   cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h.  */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h.  */
3503 $ac_includes_default
3504 int
3505 main ()
3506 {
3507 if ((void * *) 0)
3508   return 0;
3509 if (sizeof (void *))
3510   return 0;
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517   (eval $ac_compile) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_c_werror_flag"
3525                          || test ! -s conftest.err'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; } &&
3531          { ac_try='test -s conftest.$ac_objext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   ac_cv_type_void_p=yes
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 ac_cv_type_void_p=no
3543 fi
3544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545 fi
3546 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3547 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3548
3549 echo "$as_me:$LINENO: checking size of void *" >&5
3550 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3551 if test "${ac_cv_sizeof_void_p+set}" = set; then
3552   echo $ECHO_N "(cached) $ECHO_C" >&6
3553 else
3554   if test "$ac_cv_type_void_p" = yes; then
3555   # The cast to unsigned long works around a bug in the HP C Compiler
3556   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3557   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3558   # This bug is HP SR number 8606223364.
3559   if test "$cross_compiling" = yes; then
3560   # Depending upon the size, compute the lo and hi bounds.
3561 cat >conftest.$ac_ext <<_ACEOF
3562 /* confdefs.h.  */
3563 _ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h.  */
3567 $ac_includes_default
3568 int
3569 main ()
3570 {
3571 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3572 test_array [0] = 0
3573
3574   ;
3575   return 0;
3576 }
3577 _ACEOF
3578 rm -f conftest.$ac_objext
3579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580   (eval $ac_compile) 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } &&
3587          { ac_try='test -z "$ac_c_werror_flag"
3588                          || test ! -s conftest.err'
3589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590   (eval $ac_try) 2>&5
3591   ac_status=$?
3592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; } &&
3594          { ac_try='test -s conftest.$ac_objext'
3595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596   (eval $ac_try) 2>&5
3597   ac_status=$?
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); }; }; then
3600   ac_lo=0 ac_mid=0
3601   while :; do
3602     cat >conftest.$ac_ext <<_ACEOF
3603 /* confdefs.h.  */
3604 _ACEOF
3605 cat confdefs.h >>conftest.$ac_ext
3606 cat >>conftest.$ac_ext <<_ACEOF
3607 /* end confdefs.h.  */
3608 $ac_includes_default
3609 int
3610 main ()
3611 {
3612 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3613 test_array [0] = 0
3614
3615   ;
3616   return 0;
3617 }
3618 _ACEOF
3619 rm -f conftest.$ac_objext
3620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3621   (eval $ac_compile) 2>conftest.er1
3622   ac_status=$?
3623   grep -v '^ *+' conftest.er1 >conftest.err
3624   rm -f conftest.er1
3625   cat conftest.err >&5
3626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627   (exit $ac_status); } &&
3628          { ac_try='test -z "$ac_c_werror_flag"
3629                          || test ! -s conftest.err'
3630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631   (eval $ac_try) 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; } &&
3635          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3641   ac_hi=$ac_mid; break
3642 else
3643   echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
3646 ac_lo=`expr $ac_mid + 1`
3647                     if test $ac_lo -le $ac_mid; then
3648                       ac_lo= ac_hi=
3649                       break
3650                     fi
3651                     ac_mid=`expr 2 '*' $ac_mid + 1`
3652 fi
3653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3654   done
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659 cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665 $ac_includes_default
3666 int
3667 main ()
3668 {
3669 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3670 test_array [0] = 0
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 rm -f conftest.$ac_objext
3677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678   (eval $ac_compile) 2>conftest.er1
3679   ac_status=$?
3680   grep -v '^ *+' conftest.er1 >conftest.err
3681   rm -f conftest.er1
3682   cat conftest.err >&5
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); } &&
3685          { ac_try='test -z "$ac_c_werror_flag"
3686                          || test ! -s conftest.err'
3687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3688   (eval $ac_try) 2>&5
3689   ac_status=$?
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); }; } &&
3692          { ac_try='test -s conftest.$ac_objext'
3693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694   (eval $ac_try) 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; }; then
3698   ac_hi=-1 ac_mid=-1
3699   while :; do
3700     cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h.  */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h.  */
3706 $ac_includes_default
3707 int
3708 main ()
3709 {
3710 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3711 test_array [0] = 0
3712
3713   ;
3714   return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3719   (eval $ac_compile) 2>conftest.er1
3720   ac_status=$?
3721   grep -v '^ *+' conftest.er1 >conftest.err
3722   rm -f conftest.er1
3723   cat conftest.err >&5
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); } &&
3726          { ac_try='test -z "$ac_c_werror_flag"
3727                          || test ! -s conftest.err'
3728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729   (eval $ac_try) 2>&5
3730   ac_status=$?
3731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732   (exit $ac_status); }; } &&
3733          { ac_try='test -s conftest.$ac_objext'
3734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3735   (eval $ac_try) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; }; then
3739   ac_lo=$ac_mid; break
3740 else
3741   echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.$ac_ext >&5
3743
3744 ac_hi=`expr '(' $ac_mid ')' - 1`
3745                        if test $ac_mid -le $ac_hi; then
3746                          ac_lo= ac_hi=
3747                          break
3748                        fi
3749                        ac_mid=`expr 2 '*' $ac_mid`
3750 fi
3751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3752   done
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 ac_lo= ac_hi=
3758 fi
3759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3760 fi
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762 # Binary search between lo and hi bounds.
3763 while test "x$ac_lo" != "x$ac_hi"; do
3764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3765   cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771 $ac_includes_default
3772 int
3773 main ()
3774 {
3775 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3776 test_array [0] = 0
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 rm -f conftest.$ac_objext
3783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3784   (eval $ac_compile) 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } &&
3791          { ac_try='test -z "$ac_c_werror_flag"
3792                          || test ! -s conftest.err'
3793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794   (eval $ac_try) 2>&5
3795   ac_status=$?
3796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797   (exit $ac_status); }; } &&
3798          { ac_try='test -s conftest.$ac_objext'
3799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800   (eval $ac_try) 2>&5
3801   ac_status=$?
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); }; }; then
3804   ac_hi=$ac_mid
3805 else
3806   echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 ac_lo=`expr '(' $ac_mid ')' + 1`
3810 fi
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3812 done
3813 case $ac_lo in
3814 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3816 See \`config.log' for more details." >&5
3817 echo "$as_me: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&2;}
3819    { (exit 1); exit 1; }; } ;;
3820 esac
3821 else
3822   if test "$cross_compiling" = yes; then
3823   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3824 See \`config.log' for more details." >&5
3825 echo "$as_me: error: cannot run test program while cross compiling
3826 See \`config.log' for more details." >&2;}
3827    { (exit 1); exit 1; }; }
3828 else
3829   cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h.  */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h.  */
3835 $ac_includes_default
3836 long longval () { return (long) (sizeof (void *)); }
3837 unsigned long ulongval () { return (long) (sizeof (void *)); }
3838 #include <stdio.h>
3839 #include <stdlib.h>
3840 int
3841 main ()
3842 {
3843
3844   FILE *f = fopen ("conftest.val", "w");
3845   if (! f)
3846     exit (1);
3847   if (((long) (sizeof (void *))) < 0)
3848     {
3849       long i = longval ();
3850       if (i != ((long) (sizeof (void *))))
3851         exit (1);
3852       fprintf (f, "%ld\n", i);
3853     }
3854   else
3855     {
3856       unsigned long i = ulongval ();
3857       if (i != ((long) (sizeof (void *))))
3858         exit (1);
3859       fprintf (f, "%lu\n", i);
3860     }
3861   exit (ferror (f) || fclose (f) != 0);
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867 rm -f conftest$ac_exeext
3868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869   (eval $ac_link) 2>&5
3870   ac_status=$?
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_cv_sizeof_void_p=`cat conftest.val`
3879 else
3880   echo "$as_me: program exited with status $ac_status" >&5
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ( exit $ac_status )
3885 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: cannot compute sizeof (void *), 77
3888 See \`config.log' for more details." >&2;}
3889    { (exit 1); exit 1; }; }
3890 fi
3891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3892 fi
3893 fi
3894 rm -f conftest.val
3895 else
3896   ac_cv_sizeof_void_p=0
3897 fi
3898 fi
3899 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3900 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3901 cat >>confdefs.h <<_ACEOF
3902 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3903 _ACEOF
3904
3905
3906 echo "$as_me:$LINENO: checking for short" >&5
3907 echo $ECHO_N "checking for short... $ECHO_C" >&6
3908 if test "${ac_cv_type_short+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911   cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h.  */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h.  */
3917 $ac_includes_default
3918 int
3919 main ()
3920 {
3921 if ((short *) 0)
3922   return 0;
3923 if (sizeof (short))
3924   return 0;
3925   ;
3926   return 0;
3927 }
3928 _ACEOF
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3931   (eval $ac_compile) 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } &&
3938          { ac_try='test -z "$ac_c_werror_flag"
3939                          || test ! -s conftest.err'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; } &&
3945          { ac_try='test -s conftest.$ac_objext'
3946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947   (eval $ac_try) 2>&5
3948   ac_status=$?
3949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950   (exit $ac_status); }; }; then
3951   ac_cv_type_short=yes
3952 else
3953   echo "$as_me: failed program was:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3955
3956 ac_cv_type_short=no
3957 fi
3958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3959 fi
3960 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3961 echo "${ECHO_T}$ac_cv_type_short" >&6
3962
3963 echo "$as_me:$LINENO: checking size of short" >&5
3964 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3965 if test "${ac_cv_sizeof_short+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test "$ac_cv_type_short" = yes; then
3969   # The cast to unsigned long works around a bug in the HP C Compiler
3970   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3971   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3972   # This bug is HP SR number 8606223364.
3973   if test "$cross_compiling" = yes; then
3974   # Depending upon the size, compute the lo and hi bounds.
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 $ac_includes_default
3982 int
3983 main ()
3984 {
3985 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3986 test_array [0] = 0
3987
3988   ;
3989   return 0;
3990 }
3991 _ACEOF
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994   (eval $ac_compile) 2>conftest.er1
3995   ac_status=$?
3996   grep -v '^ *+' conftest.er1 >conftest.err
3997   rm -f conftest.er1
3998   cat conftest.err >&5
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); } &&
4001          { ac_try='test -z "$ac_c_werror_flag"
4002                          || test ! -s conftest.err'
4003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004   (eval $ac_try) 2>&5
4005   ac_status=$?
4006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007   (exit $ac_status); }; } &&
4008          { ac_try='test -s conftest.$ac_objext'
4009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010   (eval $ac_try) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }; }; then
4014   ac_lo=0 ac_mid=0
4015   while :; do
4016     cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 $ac_includes_default
4023 int
4024 main ()
4025 {
4026 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4027 test_array [0] = 0
4028
4029   ;
4030   return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4035   (eval $ac_compile) 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -z "$ac_c_werror_flag"
4043                          || test ! -s conftest.err'
4044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045   (eval $ac_try) 2>&5
4046   ac_status=$?
4047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048   (exit $ac_status); }; } &&
4049          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4055   ac_hi=$ac_mid; break
4056 else
4057   echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 ac_lo=`expr $ac_mid + 1`
4061                     if test $ac_lo -le $ac_mid; then
4062                       ac_lo= ac_hi=
4063                       break
4064                     fi
4065                     ac_mid=`expr 2 '*' $ac_mid + 1`
4066 fi
4067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4068   done
4069 else
4070   echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 $ac_includes_default
4080 int
4081 main ()
4082 {
4083 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4084 test_array [0] = 0
4085
4086   ;
4087   return 0;
4088 }
4089 _ACEOF
4090 rm -f conftest.$ac_objext
4091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092   (eval $ac_compile) 2>conftest.er1
4093   ac_status=$?
4094   grep -v '^ *+' conftest.er1 >conftest.err
4095   rm -f conftest.er1
4096   cat conftest.err >&5
4097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098   (exit $ac_status); } &&
4099          { ac_try='test -z "$ac_c_werror_flag"
4100                          || test ! -s conftest.err'
4101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102   (eval $ac_try) 2>&5
4103   ac_status=$?
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); }; } &&
4106          { ac_try='test -s conftest.$ac_objext'
4107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108   (eval $ac_try) 2>&5
4109   ac_status=$?
4110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111   (exit $ac_status); }; }; then
4112   ac_hi=-1 ac_mid=-1
4113   while :; do
4114     cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h.  */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h.  */
4120 $ac_includes_default
4121 int
4122 main ()
4123 {
4124 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4125 test_array [0] = 0
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 rm -f conftest.$ac_objext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133   (eval $ac_compile) 2>conftest.er1
4134   ac_status=$?
4135   grep -v '^ *+' conftest.er1 >conftest.err
4136   rm -f conftest.er1
4137   cat conftest.err >&5
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); } &&
4140          { ac_try='test -z "$ac_c_werror_flag"
4141                          || test ! -s conftest.err'
4142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143   (eval $ac_try) 2>&5
4144   ac_status=$?
4145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146   (exit $ac_status); }; } &&
4147          { ac_try='test -s conftest.$ac_objext'
4148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149   (eval $ac_try) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); }; }; then
4153   ac_lo=$ac_mid; break
4154 else
4155   echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4157
4158 ac_hi=`expr '(' $ac_mid ')' - 1`
4159                        if test $ac_mid -le $ac_hi; then
4160                          ac_lo= ac_hi=
4161                          break
4162                        fi
4163                        ac_mid=`expr 2 '*' $ac_mid`
4164 fi
4165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4166   done
4167 else
4168   echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171 ac_lo= ac_hi=
4172 fi
4173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 # Binary search between lo and hi bounds.
4177 while test "x$ac_lo" != "x$ac_hi"; do
4178   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4179   cat >conftest.$ac_ext <<_ACEOF
4180 /* confdefs.h.  */
4181 _ACEOF
4182 cat confdefs.h >>conftest.$ac_ext
4183 cat >>conftest.$ac_ext <<_ACEOF
4184 /* end confdefs.h.  */
4185 $ac_includes_default
4186 int
4187 main ()
4188 {
4189 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4190 test_array [0] = 0
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext
4197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4198   (eval $ac_compile) 2>conftest.er1
4199   ac_status=$?
4200   grep -v '^ *+' conftest.er1 >conftest.err
4201   rm -f conftest.er1
4202   cat conftest.err >&5
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } &&
4205          { ac_try='test -z "$ac_c_werror_flag"
4206                          || test ! -s conftest.err'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; } &&
4212          { ac_try='test -s conftest.$ac_objext'
4213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214   (eval $ac_try) 2>&5
4215   ac_status=$?
4216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217   (exit $ac_status); }; }; then
4218   ac_hi=$ac_mid
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ac_lo=`expr '(' $ac_mid ')' + 1`
4224 fi
4225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4226 done
4227 case $ac_lo in
4228 ?*) ac_cv_sizeof_short=$ac_lo;;
4229 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4230 See \`config.log' for more details." >&5
4231 echo "$as_me: error: cannot compute sizeof (short), 77
4232 See \`config.log' for more details." >&2;}
4233    { (exit 1); exit 1; }; } ;;
4234 esac
4235 else
4236   if test "$cross_compiling" = yes; then
4237   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4238 See \`config.log' for more details." >&5
4239 echo "$as_me: error: cannot run test program while cross compiling
4240 See \`config.log' for more details." >&2;}
4241    { (exit 1); exit 1; }; }
4242 else
4243   cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h.  */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h.  */
4249 $ac_includes_default
4250 long longval () { return (long) (sizeof (short)); }
4251 unsigned long ulongval () { return (long) (sizeof (short)); }
4252 #include <stdio.h>
4253 #include <stdlib.h>
4254 int
4255 main ()
4256 {
4257
4258   FILE *f = fopen ("conftest.val", "w");
4259   if (! f)
4260     exit (1);
4261   if (((long) (sizeof (short))) < 0)
4262     {
4263       long i = longval ();
4264       if (i != ((long) (sizeof (short))))
4265         exit (1);
4266       fprintf (f, "%ld\n", i);
4267     }
4268   else
4269     {
4270       unsigned long i = ulongval ();
4271       if (i != ((long) (sizeof (short))))
4272         exit (1);
4273       fprintf (f, "%lu\n", i);
4274     }
4275   exit (ferror (f) || fclose (f) != 0);
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest$ac_exeext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4283   (eval $ac_link) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4288   (eval $ac_try) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }; }; then
4292   ac_cv_sizeof_short=`cat conftest.val`
4293 else
4294   echo "$as_me: program exited with status $ac_status" >&5
4295 echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298 ( exit $ac_status )
4299 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4300 See \`config.log' for more details." >&5
4301 echo "$as_me: error: cannot compute sizeof (short), 77
4302 See \`config.log' for more details." >&2;}
4303    { (exit 1); exit 1; }; }
4304 fi
4305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4306 fi
4307 fi
4308 rm -f conftest.val
4309 else
4310   ac_cv_sizeof_short=0
4311 fi
4312 fi
4313 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4314 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4315 cat >>confdefs.h <<_ACEOF
4316 #define SIZEOF_SHORT $ac_cv_sizeof_short
4317 _ACEOF
4318
4319
4320 echo "$as_me:$LINENO: checking for int" >&5
4321 echo $ECHO_N "checking for int... $ECHO_C" >&6
4322 if test "${ac_cv_type_int+set}" = set; then
4323   echo $ECHO_N "(cached) $ECHO_C" >&6
4324 else
4325   cat >conftest.$ac_ext <<_ACEOF
4326 /* confdefs.h.  */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h.  */
4331 $ac_includes_default
4332 int
4333 main ()
4334 {
4335 if ((int *) 0)
4336   return 0;
4337 if (sizeof (int))
4338   return 0;
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345   (eval $ac_compile) 2>conftest.er1
4346   ac_status=$?
4347   grep -v '^ *+' conftest.er1 >conftest.err
4348   rm -f conftest.er1
4349   cat conftest.err >&5
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } &&
4352          { ac_try='test -z "$ac_c_werror_flag"
4353                          || test ! -s conftest.err'
4354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355   (eval $ac_try) 2>&5
4356   ac_status=$?
4357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358   (exit $ac_status); }; } &&
4359          { ac_try='test -s conftest.$ac_objext'
4360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361   (eval $ac_try) 2>&5
4362   ac_status=$?
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); }; }; then
4365   ac_cv_type_int=yes
4366 else
4367   echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4369
4370 ac_cv_type_int=no
4371 fi
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4375 echo "${ECHO_T}$ac_cv_type_int" >&6
4376
4377 echo "$as_me:$LINENO: checking size of int" >&5
4378 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4379 if test "${ac_cv_sizeof_int+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   if test "$ac_cv_type_int" = yes; then
4383   # The cast to unsigned long works around a bug in the HP C Compiler
4384   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4385   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4386   # This bug is HP SR number 8606223364.
4387   if test "$cross_compiling" = yes; then
4388   # Depending upon the size, compute the lo and hi bounds.
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395 $ac_includes_default
4396 int
4397 main ()
4398 {
4399 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4400 test_array [0] = 0
4401
4402   ;
4403   return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408   (eval $ac_compile) 2>conftest.er1
4409   ac_status=$?
4410   grep -v '^ *+' conftest.er1 >conftest.err
4411   rm -f conftest.er1
4412   cat conftest.err >&5
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); } &&
4415          { ac_try='test -z "$ac_c_werror_flag"
4416                          || test ! -s conftest.err'
4417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418   (eval $ac_try) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); }; } &&
4422          { ac_try='test -s conftest.$ac_objext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   ac_lo=0 ac_mid=0
4429   while :; do
4430     cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 $ac_includes_default
4437 int
4438 main ()
4439 {
4440 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4441 test_array [0] = 0
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4449   (eval $ac_compile) 2>conftest.er1
4450   ac_status=$?
4451   grep -v '^ *+' conftest.er1 >conftest.err
4452   rm -f conftest.er1
4453   cat conftest.err >&5
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -z "$ac_c_werror_flag"
4457                          || test ! -s conftest.err'
4458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459   (eval $ac_try) 2>&5
4460   ac_status=$?
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); }; } &&
4463          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4469   ac_hi=$ac_mid; break
4470 else
4471   echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_lo=`expr $ac_mid + 1`
4475                     if test $ac_lo -le $ac_mid; then
4476                       ac_lo= ac_hi=
4477                       break
4478                     fi
4479                     ac_mid=`expr 2 '*' $ac_mid + 1`
4480 fi
4481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4482   done
4483 else
4484   echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4486
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 $ac_includes_default
4494 int
4495 main ()
4496 {
4497 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4498 test_array [0] = 0
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506   (eval $ac_compile) 2>conftest.er1
4507   ac_status=$?
4508   grep -v '^ *+' conftest.er1 >conftest.err
4509   rm -f conftest.er1
4510   cat conftest.err >&5
4511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512   (exit $ac_status); } &&
4513          { ac_try='test -z "$ac_c_werror_flag"
4514                          || test ! -s conftest.err'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; } &&
4520          { ac_try='test -s conftest.$ac_objext'
4521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522   (eval $ac_try) 2>&5
4523   ac_status=$?
4524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525   (exit $ac_status); }; }; then
4526   ac_hi=-1 ac_mid=-1
4527   while :; do
4528     cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 $ac_includes_default
4535 int
4536 main ()
4537 {
4538 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4539 test_array [0] = 0
4540
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 rm -f conftest.$ac_objext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547   (eval $ac_compile) 2>conftest.er1
4548   ac_status=$?
4549   grep -v '^ *+' conftest.er1 >conftest.err
4550   rm -f conftest.er1
4551   cat conftest.err >&5
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); } &&
4554          { ac_try='test -z "$ac_c_werror_flag"
4555                          || test ! -s conftest.err'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; } &&
4561          { ac_try='test -s conftest.$ac_objext'
4562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563   (eval $ac_try) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; }; then
4567   ac_lo=$ac_mid; break
4568 else
4569   echo "$as_me: failed program was:" >&5
4570 sed 's/^/| /' conftest.$ac_ext >&5
4571
4572 ac_hi=`expr '(' $ac_mid ')' - 1`
4573                        if test $ac_mid -le $ac_hi; then
4574                          ac_lo= ac_hi=
4575                          break
4576                        fi
4577                        ac_mid=`expr 2 '*' $ac_mid`
4578 fi
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580   done
4581 else
4582   echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ac_lo= ac_hi=
4586 fi
4587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588 fi
4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590 # Binary search between lo and hi bounds.
4591 while test "x$ac_lo" != "x$ac_hi"; do
4592   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4593   cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h.  */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h.  */
4599 $ac_includes_default
4600 int
4601 main ()
4602 {
4603 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4604 test_array [0] = 0
4605
4606   ;
4607   return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4612   (eval $ac_compile) 2>conftest.er1
4613   ac_status=$?
4614   grep -v '^ *+' conftest.er1 >conftest.err
4615   rm -f conftest.er1
4616   cat conftest.err >&5
4617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618   (exit $ac_status); } &&
4619          { ac_try='test -z "$ac_c_werror_flag"
4620                          || test ! -s conftest.err'
4621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622   (eval $ac_try) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; } &&
4626          { ac_try='test -s conftest.$ac_objext'
4627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628   (eval $ac_try) 2>&5
4629   ac_status=$?
4630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); }; }; then
4632   ac_hi=$ac_mid
4633 else
4634   echo "$as_me: failed program was:" >&5
4635 sed 's/^/| /' conftest.$ac_ext >&5
4636
4637 ac_lo=`expr '(' $ac_mid ')' + 1`
4638 fi
4639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4640 done
4641 case $ac_lo in
4642 ?*) ac_cv_sizeof_int=$ac_lo;;
4643 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4644 See \`config.log' for more details." >&5
4645 echo "$as_me: error: cannot compute sizeof (int), 77
4646 See \`config.log' for more details." >&2;}
4647    { (exit 1); exit 1; }; } ;;
4648 esac
4649 else
4650   if test "$cross_compiling" = yes; then
4651   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4652 See \`config.log' for more details." >&5
4653 echo "$as_me: error: cannot run test program while cross compiling
4654 See \`config.log' for more details." >&2;}
4655    { (exit 1); exit 1; }; }
4656 else
4657   cat >conftest.$ac_ext <<_ACEOF
4658 /* confdefs.h.  */
4659 _ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h.  */
4663 $ac_includes_default
4664 long longval () { return (long) (sizeof (int)); }
4665 unsigned long ulongval () { return (long) (sizeof (int)); }
4666 #include <stdio.h>
4667 #include <stdlib.h>
4668 int
4669 main ()
4670 {
4671
4672   FILE *f = fopen ("conftest.val", "w");
4673   if (! f)
4674     exit (1);
4675   if (((long) (sizeof (int))) < 0)
4676     {
4677       long i = longval ();
4678       if (i != ((long) (sizeof (int))))
4679         exit (1);
4680       fprintf (f, "%ld\n", i);
4681     }
4682   else
4683     {
4684       unsigned long i = ulongval ();
4685       if (i != ((long) (sizeof (int))))
4686         exit (1);
4687       fprintf (f, "%lu\n", i);
4688     }
4689   exit (ferror (f) || fclose (f) != 0);
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest$ac_exeext
4696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4697   (eval $ac_link) 2>&5
4698   ac_status=$?
4699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   ac_cv_sizeof_int=`cat conftest.val`
4707 else
4708   echo "$as_me: program exited with status $ac_status" >&5
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 ( exit $ac_status )
4713 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4714 See \`config.log' for more details." >&5
4715 echo "$as_me: error: cannot compute sizeof (int), 77
4716 See \`config.log' for more details." >&2;}
4717    { (exit 1); exit 1; }; }
4718 fi
4719 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 fi
4722 rm -f conftest.val
4723 else
4724   ac_cv_sizeof_int=0
4725 fi
4726 fi
4727 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4728 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4729 cat >>confdefs.h <<_ACEOF
4730 #define SIZEOF_INT $ac_cv_sizeof_int
4731 _ACEOF
4732
4733
4734 echo "$as_me:$LINENO: checking for long" >&5
4735 echo $ECHO_N "checking for long... $ECHO_C" >&6
4736 if test "${ac_cv_type_long+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745 $ac_includes_default
4746 int
4747 main ()
4748 {
4749 if ((long *) 0)
4750   return 0;
4751 if (sizeof (long))
4752   return 0;
4753   ;
4754   return 0;
4755 }
4756 _ACEOF
4757 rm -f conftest.$ac_objext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759   (eval $ac_compile) 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } &&
4766          { ac_try='test -z "$ac_c_werror_flag"
4767                          || test ! -s conftest.err'
4768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769   (eval $ac_try) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); }; } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   ac_cv_type_long=yes
4780 else
4781   echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ac_cv_type_long=no
4785 fi
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 fi
4788 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4789 echo "${ECHO_T}$ac_cv_type_long" >&6
4790
4791 echo "$as_me:$LINENO: checking size of long" >&5
4792 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4793 if test "${ac_cv_sizeof_long+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   if test "$ac_cv_type_long" = yes; then
4797   # The cast to unsigned long works around a bug in the HP C Compiler
4798   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4799   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4800   # This bug is HP SR number 8606223364.
4801   if test "$cross_compiling" = yes; then
4802   # Depending upon the size, compute the lo and hi bounds.
4803 cat >conftest.$ac_ext <<_ACEOF
4804 /* confdefs.h.  */
4805 _ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h.  */
4809 $ac_includes_default
4810 int
4811 main ()
4812 {
4813 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4814 test_array [0] = 0
4815
4816   ;
4817   return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822   (eval $ac_compile) 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } &&
4829          { ac_try='test -z "$ac_c_werror_flag"
4830                          || test ! -s conftest.err'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; } &&
4836          { ac_try='test -s conftest.$ac_objext'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; }; then
4842   ac_lo=0 ac_mid=0
4843   while :; do
4844     cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h.  */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h.  */
4850 $ac_includes_default
4851 int
4852 main ()
4853 {
4854 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4855 test_array [0] = 0
4856
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4863   (eval $ac_compile) 2>conftest.er1
4864   ac_status=$?
4865   grep -v '^ *+' conftest.er1 >conftest.err
4866   rm -f conftest.er1
4867   cat conftest.err >&5
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); } &&
4870          { ac_try='test -z "$ac_c_werror_flag"
4871                          || test ! -s conftest.err'
4872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873   (eval $ac_try) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; } &&
4877          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4883   ac_hi=$ac_mid; break
4884 else
4885   echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888 ac_lo=`expr $ac_mid + 1`
4889                     if test $ac_lo -le $ac_mid; then
4890                       ac_lo= ac_hi=
4891                       break
4892                     fi
4893                     ac_mid=`expr 2 '*' $ac_mid + 1`
4894 fi
4895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4896   done
4897 else
4898   echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4900
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 $ac_includes_default
4908 int
4909 main ()
4910 {
4911 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4912 test_array [0] = 0
4913
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 rm -f conftest.$ac_objext
4919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4920   (eval $ac_compile) 2>conftest.er1
4921   ac_status=$?
4922   grep -v '^ *+' conftest.er1 >conftest.err
4923   rm -f conftest.er1
4924   cat conftest.err >&5
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -z "$ac_c_werror_flag"
4928                          || test ! -s conftest.err'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_hi=-1 ac_mid=-1
4941   while :; do
4942     cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 $ac_includes_default
4949 int
4950 main ()
4951 {
4952 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4953 test_array [0] = 0
4954
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961   (eval $ac_compile) 2>conftest.er1
4962   ac_status=$?
4963   grep -v '^ *+' conftest.er1 >conftest.err
4964   rm -f conftest.er1
4965   cat conftest.err >&5
4966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967   (exit $ac_status); } &&
4968          { ac_try='test -z "$ac_c_werror_flag"
4969                          || test ! -s conftest.err'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest.$ac_objext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   ac_lo=$ac_mid; break
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 ac_hi=`expr '(' $ac_mid ')' - 1`
4987                        if test $ac_mid -le $ac_hi; then
4988                          ac_lo= ac_hi=
4989                          break
4990                        fi
4991                        ac_mid=`expr 2 '*' $ac_mid`
4992 fi
4993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4994   done
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_lo= ac_hi=
5000 fi
5001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 # Binary search between lo and hi bounds.
5005 while test "x$ac_lo" != "x$ac_hi"; do
5006   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5007   cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 $ac_includes_default
5014 int
5015 main ()
5016 {
5017 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5018 test_array [0] = 0
5019
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026   (eval $ac_compile) 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } &&
5033          { ac_try='test -z "$ac_c_werror_flag"
5034                          || test ! -s conftest.err'
5035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036   (eval $ac_try) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); }; } &&
5040          { ac_try='test -s conftest.$ac_objext'
5041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042   (eval $ac_try) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_hi=$ac_mid
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ac_lo=`expr '(' $ac_mid ')' + 1`
5052 fi
5053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5054 done
5055 case $ac_lo in
5056 ?*) ac_cv_sizeof_long=$ac_lo;;
5057 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5058 See \`config.log' for more details." >&5
5059 echo "$as_me: error: cannot compute sizeof (long), 77
5060 See \`config.log' for more details." >&2;}
5061    { (exit 1); exit 1; }; } ;;
5062 esac
5063 else
5064   if test "$cross_compiling" = yes; then
5065   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5066 See \`config.log' for more details." >&5
5067 echo "$as_me: error: cannot run test program while cross compiling
5068 See \`config.log' for more details." >&2;}
5069    { (exit 1); exit 1; }; }
5070 else
5071   cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 $ac_includes_default
5078 long longval () { return (long) (sizeof (long)); }
5079 unsigned long ulongval () { return (long) (sizeof (long)); }
5080 #include <stdio.h>
5081 #include <stdlib.h>
5082 int
5083 main ()
5084 {
5085
5086   FILE *f = fopen ("conftest.val", "w");
5087   if (! f)
5088     exit (1);
5089   if (((long) (sizeof (long))) < 0)
5090     {
5091       long i = longval ();
5092       if (i != ((long) (sizeof (long))))
5093         exit (1);
5094       fprintf (f, "%ld\n", i);
5095     }
5096   else
5097     {
5098       unsigned long i = ulongval ();
5099       if (i != ((long) (sizeof (long))))
5100         exit (1);
5101       fprintf (f, "%lu\n", i);
5102     }
5103   exit (ferror (f) || fclose (f) != 0);
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest$ac_exeext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111   (eval $ac_link) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116   (eval $ac_try) 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); }; }; then
5120   ac_cv_sizeof_long=`cat conftest.val`
5121 else
5122   echo "$as_me: program exited with status $ac_status" >&5
5123 echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 ( exit $ac_status )
5127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5128 See \`config.log' for more details." >&5
5129 echo "$as_me: error: cannot compute sizeof (long), 77
5130 See \`config.log' for more details." >&2;}
5131    { (exit 1); exit 1; }; }
5132 fi
5133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134 fi
5135 fi
5136 rm -f conftest.val
5137 else
5138   ac_cv_sizeof_long=0
5139 fi
5140 fi
5141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5142 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5143 cat >>confdefs.h <<_ACEOF
5144 #define SIZEOF_LONG $ac_cv_sizeof_long
5145 _ACEOF
5146
5147
5148 echo "$as_me:$LINENO: checking for long long" >&5
5149 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5150 if test "${ac_cv_type_long_long+set}" = set; then
5151   echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153   cat >conftest.$ac_ext <<_ACEOF
5154 /* confdefs.h.  */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h.  */
5159 $ac_includes_default
5160 int
5161 main ()
5162 {
5163 if ((long long *) 0)
5164   return 0;
5165 if (sizeof (long long))
5166   return 0;
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 rm -f conftest.$ac_objext
5172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5173   (eval $ac_compile) 2>conftest.er1
5174   ac_status=$?
5175   grep -v '^ *+' conftest.er1 >conftest.err
5176   rm -f conftest.er1
5177   cat conftest.err >&5
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); } &&
5180          { ac_try='test -z "$ac_c_werror_flag"
5181                          || test ! -s conftest.err'
5182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183   (eval $ac_try) 2>&5
5184   ac_status=$?
5185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186   (exit $ac_status); }; } &&
5187          { ac_try='test -s conftest.$ac_objext'
5188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189   (eval $ac_try) 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); }; }; then
5193   ac_cv_type_long_long=yes
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198 ac_cv_type_long_long=no
5199 fi
5200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5203 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5204 if test $ac_cv_type_long_long = yes; then
5205
5206 cat >>confdefs.h <<_ACEOF
5207 #define HAVE_LONG_LONG 1
5208 _ACEOF
5209
5210 echo "$as_me:$LINENO: checking for long long" >&5
5211 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5212 if test "${ac_cv_type_long_long+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221 $ac_includes_default
5222 int
5223 main ()
5224 {
5225 if ((long long *) 0)
5226   return 0;
5227 if (sizeof (long long))
5228   return 0;
5229   ;
5230   return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest.$ac_objext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5235   (eval $ac_compile) 2>conftest.er1
5236   ac_status=$?
5237   grep -v '^ *+' conftest.er1 >conftest.err
5238   rm -f conftest.er1
5239   cat conftest.err >&5
5240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241   (exit $ac_status); } &&
5242          { ac_try='test -z "$ac_c_werror_flag"
5243                          || test ! -s conftest.err'
5244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245   (eval $ac_try) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); }; } &&
5249          { ac_try='test -s conftest.$ac_objext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   ac_cv_type_long_long=yes
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_cv_type_long_long=no
5261 fi
5262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5265 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5266
5267 echo "$as_me:$LINENO: checking size of long long" >&5
5268 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5269 if test "${ac_cv_sizeof_long_long+set}" = set; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   if test "$ac_cv_type_long_long" = yes; then
5273   # The cast to unsigned long works around a bug in the HP C Compiler
5274   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5275   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5276   # This bug is HP SR number 8606223364.
5277   if test "$cross_compiling" = yes; then
5278   # Depending upon the size, compute the lo and hi bounds.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h.  */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h.  */
5285 $ac_includes_default
5286 int
5287 main ()
5288 {
5289 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5290 test_array [0] = 0
5291
5292   ;
5293   return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5298   (eval $ac_compile) 2>conftest.er1
5299   ac_status=$?
5300   grep -v '^ *+' conftest.er1 >conftest.err
5301   rm -f conftest.er1
5302   cat conftest.err >&5
5303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304   (exit $ac_status); } &&
5305          { ac_try='test -z "$ac_c_werror_flag"
5306                          || test ! -s conftest.err'
5307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308   (eval $ac_try) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }; } &&
5312          { ac_try='test -s conftest.$ac_objext'
5313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314   (eval $ac_try) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); }; }; then
5318   ac_lo=0 ac_mid=0
5319   while :; do
5320     cat >conftest.$ac_ext <<_ACEOF
5321 /* confdefs.h.  */
5322 _ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h.  */
5326 $ac_includes_default
5327 int
5328 main ()
5329 {
5330 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5331 test_array [0] = 0
5332
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339   (eval $ac_compile) 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } &&
5346          { ac_try='test -z "$ac_c_werror_flag"
5347                          || test ! -s conftest.err'
5348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5349   (eval $ac_try) 2>&5
5350   ac_status=$?
5351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352   (exit $ac_status); }; } &&
5353          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5359   ac_hi=$ac_mid; break
5360 else
5361   echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364 ac_lo=`expr $ac_mid + 1`
5365                     if test $ac_lo -le $ac_mid; then
5366                       ac_lo= ac_hi=
5367                       break
5368                     fi
5369                     ac_mid=`expr 2 '*' $ac_mid + 1`
5370 fi
5371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372   done
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h.  */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h.  */
5383 $ac_includes_default
5384 int
5385 main ()
5386 {
5387 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5388 test_array [0] = 0
5389
5390   ;
5391   return 0;
5392 }
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396   (eval $ac_compile) 2>conftest.er1
5397   ac_status=$?
5398   grep -v '^ *+' conftest.er1 >conftest.err
5399   rm -f conftest.er1
5400   cat conftest.err >&5
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -z "$ac_c_werror_flag"
5404                          || test ! -s conftest.err'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; } &&
5410          { ac_try='test -s conftest.$ac_objext'
5411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412   (eval $ac_try) 2>&5
5413   ac_status=$?
5414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); }; }; then
5416   ac_hi=-1 ac_mid=-1
5417   while :; do
5418     cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h.  */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h.  */
5424 $ac_includes_default
5425 int
5426 main ()
5427 {
5428 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5429 test_array [0] = 0
5430
5431   ;
5432   return 0;
5433 }
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437   (eval $ac_compile) 2>conftest.er1
5438   ac_status=$?
5439   grep -v '^ *+' conftest.er1 >conftest.err
5440   rm -f conftest.er1
5441   cat conftest.err >&5
5442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443   (exit $ac_status); } &&
5444          { ac_try='test -z "$ac_c_werror_flag"
5445                          || test ! -s conftest.err'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; } &&
5451          { ac_try='test -s conftest.$ac_objext'
5452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453   (eval $ac_try) 2>&5
5454   ac_status=$?
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); }; }; then
5457   ac_lo=$ac_mid; break
5458 else
5459   echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 ac_hi=`expr '(' $ac_mid ')' - 1`
5463                        if test $ac_mid -le $ac_hi; then
5464                          ac_lo= ac_hi=
5465                          break
5466                        fi
5467                        ac_mid=`expr 2 '*' $ac_mid`
5468 fi
5469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5470   done
5471 else
5472   echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5474
5475 ac_lo= ac_hi=
5476 fi
5477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 # Binary search between lo and hi bounds.
5481 while test "x$ac_lo" != "x$ac_hi"; do
5482   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5483   cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 $ac_includes_default
5490 int
5491 main ()
5492 {
5493 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5494 test_array [0] = 0
5495
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502   (eval $ac_compile) 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -z "$ac_c_werror_flag"
5510                          || test ! -s conftest.err'
5511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512   (eval $ac_try) 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; } &&
5516          { ac_try='test -s conftest.$ac_objext'
5517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518   (eval $ac_try) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; }; then
5522   ac_hi=$ac_mid
5523 else
5524   echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_lo=`expr '(' $ac_mid ')' + 1`
5528 fi
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530 done
5531 case $ac_lo in
5532 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5533 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5534 See \`config.log' for more details." >&5
5535 echo "$as_me: error: cannot compute sizeof (long long), 77
5536 See \`config.log' for more details." >&2;}
5537    { (exit 1); exit 1; }; } ;;
5538 esac
5539 else
5540   if test "$cross_compiling" = yes; then
5541   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5542 See \`config.log' for more details." >&5
5543 echo "$as_me: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&2;}
5545    { (exit 1); exit 1; }; }
5546 else
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 $ac_includes_default
5554 long longval () { return (long) (sizeof (long long)); }
5555 unsigned long ulongval () { return (long) (sizeof (long long)); }
5556 #include <stdio.h>
5557 #include <stdlib.h>
5558 int
5559 main ()
5560 {
5561
5562   FILE *f = fopen ("conftest.val", "w");
5563   if (! f)
5564     exit (1);
5565   if (((long) (sizeof (long long))) < 0)
5566     {
5567       long i = longval ();
5568       if (i != ((long) (sizeof (long long))))
5569         exit (1);
5570       fprintf (f, "%ld\n", i);
5571     }
5572   else
5573     {
5574       unsigned long i = ulongval ();
5575       if (i != ((long) (sizeof (long long))))
5576         exit (1);
5577       fprintf (f, "%lu\n", i);
5578     }
5579   exit (ferror (f) || fclose (f) != 0);
5580
5581   ;
5582   return 0;
5583 }
5584 _ACEOF
5585 rm -f conftest$ac_exeext
5586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5587   (eval $ac_link) 2>&5
5588   ac_status=$?
5589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592   (eval $ac_try) 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }; }; then
5596   ac_cv_sizeof_long_long=`cat conftest.val`
5597 else
5598   echo "$as_me: program exited with status $ac_status" >&5
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602 ( exit $ac_status )
5603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5604 See \`config.log' for more details." >&5
5605 echo "$as_me: error: cannot compute sizeof (long long), 77
5606 See \`config.log' for more details." >&2;}
5607    { (exit 1); exit 1; }; }
5608 fi
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5610 fi
5611 fi
5612 rm -f conftest.val
5613 else
5614   ac_cv_sizeof_long_long=0
5615 fi
5616 fi
5617 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5618 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5619 cat >>confdefs.h <<_ACEOF
5620 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5621 _ACEOF
5622
5623
5624 fi
5625
5626 echo "$as_me:$LINENO: checking for __int64" >&5
5627 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5628 if test "${ac_cv_type___int64+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631   cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h.  */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h.  */
5637 $ac_includes_default
5638 int
5639 main ()
5640 {
5641 if ((__int64 *) 0)
5642   return 0;
5643 if (sizeof (__int64))
5644   return 0;
5645   ;
5646   return 0;
5647 }
5648 _ACEOF
5649 rm -f conftest.$ac_objext
5650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651   (eval $ac_compile) 2>conftest.er1
5652   ac_status=$?
5653   grep -v '^ *+' conftest.er1 >conftest.err
5654   rm -f conftest.er1
5655   cat conftest.err >&5
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); } &&
5658          { ac_try='test -z "$ac_c_werror_flag"
5659                          || test ! -s conftest.err'
5660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661   (eval $ac_try) 2>&5
5662   ac_status=$?
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); }; } &&
5665          { ac_try='test -s conftest.$ac_objext'
5666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667   (eval $ac_try) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; }; then
5671   ac_cv_type___int64=yes
5672 else
5673   echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_cv_type___int64=no
5677 fi
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5681 echo "${ECHO_T}$ac_cv_type___int64" >&6
5682 if test $ac_cv_type___int64 = yes; then
5683
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE___INT64 1
5686 _ACEOF
5687
5688 echo "$as_me:$LINENO: checking for __int64" >&5
5689 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5690 if test "${ac_cv_type___int64+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h.  */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h.  */
5699 $ac_includes_default
5700 int
5701 main ()
5702 {
5703 if ((__int64 *) 0)
5704   return 0;
5705 if (sizeof (__int64))
5706   return 0;
5707   ;
5708   return 0;
5709 }
5710 _ACEOF
5711 rm -f conftest.$ac_objext
5712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>conftest.er1
5714   ac_status=$?
5715   grep -v '^ *+' conftest.er1 >conftest.err
5716   rm -f conftest.er1
5717   cat conftest.err >&5
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); } &&
5720          { ac_try='test -z "$ac_c_werror_flag"
5721                          || test ! -s conftest.err'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; } &&
5727          { ac_try='test -s conftest.$ac_objext'
5728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729   (eval $ac_try) 2>&5
5730   ac_status=$?
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); }; }; then
5733   ac_cv_type___int64=yes
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cv_type___int64=no
5739 fi
5740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5741 fi
5742 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5743 echo "${ECHO_T}$ac_cv_type___int64" >&6
5744
5745 echo "$as_me:$LINENO: checking size of __int64" >&5
5746 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5747 if test "${ac_cv_sizeof___int64+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   if test "$ac_cv_type___int64" = yes; then
5751   # The cast to unsigned long works around a bug in the HP C Compiler
5752   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5753   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5754   # This bug is HP SR number 8606223364.
5755   if test "$cross_compiling" = yes; then
5756   # Depending upon the size, compute the lo and hi bounds.
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h.  */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h.  */
5763 $ac_includes_default
5764 int
5765 main ()
5766 {
5767 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5768 test_array [0] = 0
5769
5770   ;
5771   return 0;
5772 }
5773 _ACEOF
5774 rm -f conftest.$ac_objext
5775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5776   (eval $ac_compile) 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } &&
5783          { ac_try='test -z "$ac_c_werror_flag"
5784                          || test ! -s conftest.err'
5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786   (eval $ac_try) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_lo=0 ac_mid=0
5797   while :; do
5798     cat >conftest.$ac_ext <<_ACEOF
5799 /* confdefs.h.  */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h.  */
5804 $ac_includes_default
5805 int
5806 main ()
5807 {
5808 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5809 test_array [0] = 0
5810
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817   (eval $ac_compile) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5837   ac_hi=$ac_mid; break
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_lo=`expr $ac_mid + 1`
5843                     if test $ac_lo -le $ac_mid; then
5844                       ac_lo= ac_hi=
5845                       break
5846                     fi
5847                     ac_mid=`expr 2 '*' $ac_mid + 1`
5848 fi
5849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850   done
5851 else
5852   echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h.  */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h.  */
5861 $ac_includes_default
5862 int
5863 main ()
5864 {
5865 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5866 test_array [0] = 0
5867
5868   ;
5869   return 0;
5870 }
5871 _ACEOF
5872 rm -f conftest.$ac_objext
5873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874   (eval $ac_compile) 2>conftest.er1
5875   ac_status=$?
5876   grep -v '^ *+' conftest.er1 >conftest.err
5877   rm -f conftest.er1
5878   cat conftest.err >&5
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } &&
5881          { ac_try='test -z "$ac_c_werror_flag"
5882                          || test ! -s conftest.err'
5883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884   (eval $ac_try) 2>&5
5885   ac_status=$?
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); }; } &&
5888          { ac_try='test -s conftest.$ac_objext'
5889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5890   (eval $ac_try) 2>&5
5891   ac_status=$?
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); }; }; then
5894   ac_hi=-1 ac_mid=-1
5895   while :; do
5896     cat >conftest.$ac_ext <<_ACEOF
5897 /* confdefs.h.  */
5898 _ACEOF
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h.  */
5902 $ac_includes_default
5903 int
5904 main ()
5905 {
5906 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5907 test_array [0] = 0
5908
5909   ;
5910   return 0;
5911 }
5912 _ACEOF
5913 rm -f conftest.$ac_objext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915   (eval $ac_compile) 2>conftest.er1
5916   ac_status=$?
5917   grep -v '^ *+' conftest.er1 >conftest.err
5918   rm -f conftest.er1
5919   cat conftest.err >&5
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); } &&
5922          { ac_try='test -z "$ac_c_werror_flag"
5923                          || test ! -s conftest.err'
5924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5925   (eval $ac_try) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); }; } &&
5929          { ac_try='test -s conftest.$ac_objext'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; }; then
5935   ac_lo=$ac_mid; break
5936 else
5937   echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 ac_hi=`expr '(' $ac_mid ')' - 1`
5941                        if test $ac_mid -le $ac_hi; then
5942                          ac_lo= ac_hi=
5943                          break
5944                        fi
5945                        ac_mid=`expr 2 '*' $ac_mid`
5946 fi
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948   done
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_lo= ac_hi=
5954 fi
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 # Binary search between lo and hi bounds.
5959 while test "x$ac_lo" != "x$ac_hi"; do
5960   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5961   cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h.  */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h.  */
5967 $ac_includes_default
5968 int
5969 main ()
5970 {
5971 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5972 test_array [0] = 0
5973
5974   ;
5975   return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980   (eval $ac_compile) 2>conftest.er1
5981   ac_status=$?
5982   grep -v '^ *+' conftest.er1 >conftest.err
5983   rm -f conftest.er1
5984   cat conftest.err >&5
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); } &&
5987          { ac_try='test -z "$ac_c_werror_flag"
5988                          || test ! -s conftest.err'
5989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990   (eval $ac_try) 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996   (eval $ac_try) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; }; then
6000   ac_hi=$ac_mid
6001 else
6002   echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_lo=`expr '(' $ac_mid ')' + 1`
6006 fi
6007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6008 done
6009 case $ac_lo in
6010 ?*) ac_cv_sizeof___int64=$ac_lo;;
6011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6012 See \`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (__int64), 77
6014 See \`config.log' for more details." >&2;}
6015    { (exit 1); exit 1; }; } ;;
6016 esac
6017 else
6018   if test "$cross_compiling" = yes; then
6019   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6020 See \`config.log' for more details." >&5
6021 echo "$as_me: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&2;}
6023    { (exit 1); exit 1; }; }
6024 else
6025   cat >conftest.$ac_ext <<_ACEOF
6026 /* confdefs.h.  */
6027 _ACEOF
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h.  */
6031 $ac_includes_default
6032 long longval () { return (long) (sizeof (__int64)); }
6033 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6034 #include <stdio.h>
6035 #include <stdlib.h>
6036 int
6037 main ()
6038 {
6039
6040   FILE *f = fopen ("conftest.val", "w");
6041   if (! f)
6042     exit (1);
6043   if (((long) (sizeof (__int64))) < 0)
6044     {
6045       long i = longval ();
6046       if (i != ((long) (sizeof (__int64))))
6047         exit (1);
6048       fprintf (f, "%ld\n", i);
6049     }
6050   else
6051     {
6052       unsigned long i = ulongval ();
6053       if (i != ((long) (sizeof (__int64))))
6054         exit (1);
6055       fprintf (f, "%lu\n", i);
6056     }
6057   exit (ferror (f) || fclose (f) != 0);
6058
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070   (eval $ac_try) 2>&5
6071   ac_status=$?
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); }; }; then
6074   ac_cv_sizeof___int64=`cat conftest.val`
6075 else
6076   echo "$as_me: program exited with status $ac_status" >&5
6077 echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 ( exit $ac_status )
6081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6082 See \`config.log' for more details." >&5
6083 echo "$as_me: error: cannot compute sizeof (__int64), 77
6084 See \`config.log' for more details." >&2;}
6085    { (exit 1); exit 1; }; }
6086 fi
6087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6088 fi
6089 fi
6090 rm -f conftest.val
6091 else
6092   ac_cv_sizeof___int64=0
6093 fi
6094 fi
6095 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6096 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6097 cat >>confdefs.h <<_ACEOF
6098 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6099 _ACEOF
6100
6101
6102 fi
6103
6104
6105 # ---------------------
6106 # Warnings and checking
6107 # ---------------------
6108
6109 # Check $CC warning features (if it's GCC).
6110 # We want to use -pedantic, but we don't want warnings about
6111 # * 'long long'
6112 # * variadic macros
6113 # * overlong strings
6114 # So, we only use -pedantic if we can disable those warnings.
6115
6116 loose_warn=
6117 save_CFLAGS="$CFLAGS"
6118 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6119                           -Wmissing-prototypes; do
6120   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6121
6122   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6123 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6124 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6125   echo $ECHO_N "(cached) $ECHO_C" >&6
6126 else
6127   CFLAGS="$option"
6128     cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134
6135 int
6136 main ()
6137 {
6138
6139   ;
6140   return 0;
6141 }
6142 _ACEOF
6143 rm -f conftest.$ac_objext
6144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6145   (eval $ac_compile) 2>conftest.er1
6146   ac_status=$?
6147   grep -v '^ *+' conftest.er1 >conftest.err
6148   rm -f conftest.er1
6149   cat conftest.err >&5
6150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151   (exit $ac_status); } &&
6152          { ac_try='test -z "$ac_c_werror_flag"
6153                          || test ! -s conftest.err'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; } &&
6159          { ac_try='test -s conftest.$ac_objext'
6160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6161   (eval $ac_try) 2>&5
6162   ac_status=$?
6163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164   (exit $ac_status); }; }; then
6165   eval "$as_acx_Woption=yes"
6166 else
6167   echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 eval "$as_acx_Woption=no"
6171 fi
6172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6173
6174 fi
6175 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6176 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6177   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6178   loose_warn="$loose_warn${loose_warn:+ }$option"
6179 fi
6180
6181   done
6182 CFLAGS="$save_CFLAGS"
6183
6184 cxx_compat_warn=
6185 save_CFLAGS="$CFLAGS"
6186 for option in -Wc++-compat; do
6187   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6188
6189   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6190 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6191 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   CFLAGS="$option"
6195     cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201
6202 int
6203 main ()
6204 {
6205
6206   ;
6207   return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212   (eval $ac_compile) 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } &&
6219          { ac_try='test -z "$ac_c_werror_flag"
6220                          || test ! -s conftest.err'
6221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222   (eval $ac_try) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); }; } &&
6226          { ac_try='test -s conftest.$ac_objext'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; }; then
6232   eval "$as_acx_Woption=yes"
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 eval "$as_acx_Woption=no"
6238 fi
6239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6240
6241 fi
6242 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6243 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6244   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6245   cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6246 fi
6247
6248   done
6249 CFLAGS="$save_CFLAGS"
6250
6251 strict_warn=
6252 save_CFLAGS="$CFLAGS"
6253 for option in -Wold-style-definition \
6254                           -Wmissing-format-attribute; do
6255   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6256
6257   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6258 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6259 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   CFLAGS="$option"
6263     cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h.  */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h.  */
6269
6270 int
6271 main ()
6272 {
6273
6274   ;
6275   return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280   (eval $ac_compile) 2>conftest.er1
6281   ac_status=$?
6282   grep -v '^ *+' conftest.er1 >conftest.err
6283   rm -f conftest.er1
6284   cat conftest.err >&5
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -z "$ac_c_werror_flag"
6288                          || test ! -s conftest.err'
6289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290   (eval $ac_try) 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; } &&
6294          { ac_try='test -s conftest.$ac_objext'
6295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296   (eval $ac_try) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); }; }; then
6300   eval "$as_acx_Woption=yes"
6301 else
6302   echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 eval "$as_acx_Woption=no"
6306 fi
6307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6308
6309 fi
6310 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6311 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6312   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6313   strict_warn="$strict_warn${strict_warn:+ }$option"
6314 fi
6315
6316   done
6317 CFLAGS="$save_CFLAGS"
6318
6319 if test "$GCC" = yes; then
6320   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6321                                      -Wno-overlength-strings" >&5
6322 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6323                                      -Wno-overlength-strings... $ECHO_C" >&6
6324 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   save_CFLAGS="$CFLAGS"
6328 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6329                                      -Wno-overlength-strings"
6330 cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336
6337 int
6338 main ()
6339 {
6340
6341   ;
6342   return 0;
6343 }
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347   (eval $ac_compile) 2>conftest.er1
6348   ac_status=$?
6349   grep -v '^ *+' conftest.er1 >conftest.err
6350   rm -f conftest.er1
6351   cat conftest.err >&5
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); } &&
6354          { ac_try='test -z "$ac_c_werror_flag"
6355                          || test ! -s conftest.err'
6356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357   (eval $ac_try) 2>&5
6358   ac_status=$?
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); }; } &&
6361          { ac_try='test -s conftest.$ac_objext'
6362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363   (eval $ac_try) 2>&5
6364   ac_status=$?
6365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366   (exit $ac_status); }; }; then
6367   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6373 fi
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 CFLAGS="$save_CFLAGS"
6376 fi
6377 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6378 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6379 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6380   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6381                                      -Wno-overlength-strings"
6382 fi
6383
6384
6385 fi
6386
6387
6388 # Check whether --enable-werror-always or --disable-werror-always was given.
6389 if test "${enable_werror_always+set}" = set; then
6390   enableval="$enable_werror_always"
6391
6392 else
6393   enable_werror_always=no
6394 fi;
6395 if test $enable_werror_always = yes; then
6396   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6397 fi
6398
6399
6400
6401
6402 # The above macros do nothing if the compiler is not GCC.  However, the
6403 # Makefile has more goo to add other flags, so this variabl is used to
6404 # enables warnings only for GCC.
6405 warn_cflags=
6406 if test "x$GCC" = "xyes"; then
6407   warn_cflags='$(GCC_WARN_CFLAGS)'
6408 fi
6409
6410
6411 # Enable expensive internal checks
6412 is_release=
6413 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6414   is_release=yes
6415 fi
6416
6417 # Check whether --enable-checking or --disable-checking was given.
6418 if test "${enable_checking+set}" = set; then
6419   enableval="$enable_checking"
6420   ac_checking_flags="${enableval}"
6421 else
6422
6423 # Determine the default checks.
6424 if test x$is_release = x ; then
6425   ac_checking_flags=yes
6426 else
6427   ac_checking_flags=release
6428 fi
6429 fi;
6430 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6431 for check in release $ac_checking_flags
6432 do
6433         case $check in
6434         # these set all the flags to specific states
6435         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6436                         ac_fold_checking= ; ac_gc_checking=1 ;
6437                         ac_gc_always_collect= ; ac_rtl_checking= ;
6438                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6439                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6440                         ac_types_checking= ;;
6441         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6442                         ac_fold_checking= ; ac_gc_checking= ;
6443                         ac_gc_always_collect= ; ac_rtl_checking= ;
6444                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6445                         ac_tree_checking= ; ac_valgrind_checking= ;
6446                         ac_types_checking= ;;
6447         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6448                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6449                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6450                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6451                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6452                         ac_types_checking=1 ;;
6453         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6454                         ac_fold_checking= ; ac_gc_checking= ;
6455                         ac_gc_always_collect= ; ac_rtl_checking= ;
6456                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6457                         ac_tree_checking= ; ac_valgrind_checking= ;
6458                         ac_types_checking= ;;
6459         # these enable particular checks
6460         assert)         ac_assert_checking=1 ;;
6461         df)             ac_df_checking=1 ;;
6462         fold)           ac_fold_checking=1 ;;
6463         gc)             ac_gc_checking=1 ;;
6464         gcac)           ac_gc_always_collect=1 ;;
6465         misc)           ac_checking=1 ;;
6466         rtl)            ac_rtl_checking=1 ;;
6467         rtlflag)        ac_rtlflag_checking=1 ;;
6468         runtime)        ac_runtime_checking=1 ;;
6469         tree)           ac_tree_checking=1 ;;
6470         types)          ac_types_checking=1 ;;
6471         valgrind)       ac_valgrind_checking=1 ;;
6472         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6473 echo "$as_me: error: unknown check category $check" >&2;}
6474    { (exit 1); exit 1; }; } ;;
6475         esac
6476 done
6477 IFS="$ac_save_IFS"
6478
6479 nocommon_flag=""
6480 if test x$ac_checking != x ; then
6481
6482 cat >>confdefs.h <<\_ACEOF
6483 #define ENABLE_CHECKING 1
6484 _ACEOF
6485
6486   nocommon_flag=-fno-common
6487 fi
6488
6489 if test x$ac_df_checking != x ; then
6490
6491 cat >>confdefs.h <<\_ACEOF
6492 #define ENABLE_DF_CHECKING 1
6493 _ACEOF
6494
6495 fi
6496 if test x$ac_assert_checking != x ; then
6497
6498 cat >>confdefs.h <<\_ACEOF
6499 #define ENABLE_ASSERT_CHECKING 1
6500 _ACEOF
6501
6502 fi
6503
6504 if test x$ac_runtime_checking != x ; then
6505
6506 cat >>confdefs.h <<\_ACEOF
6507 #define ENABLE_RUNTIME_CHECKING 1
6508 _ACEOF
6509
6510 fi
6511 if test x$ac_tree_checking != x ; then
6512
6513 cat >>confdefs.h <<\_ACEOF
6514 #define ENABLE_TREE_CHECKING 1
6515 _ACEOF
6516
6517   TREEBROWSER=tree-browser.o
6518 fi
6519 if test x$ac_types_checking != x ; then
6520
6521 cat >>confdefs.h <<\_ACEOF
6522 #define ENABLE_TYPES_CHECKING 1
6523 _ACEOF
6524
6525 fi
6526
6527 if test x$ac_rtl_checking != x ; then
6528
6529 cat >>confdefs.h <<\_ACEOF
6530 #define ENABLE_RTL_CHECKING 1
6531 _ACEOF
6532
6533 fi
6534 if test x$ac_rtlflag_checking != x ; then
6535
6536 cat >>confdefs.h <<\_ACEOF
6537 #define ENABLE_RTL_FLAG_CHECKING 1
6538 _ACEOF
6539
6540 fi
6541 if test x$ac_gc_checking != x ; then
6542
6543 cat >>confdefs.h <<\_ACEOF
6544 #define ENABLE_GC_CHECKING 1
6545 _ACEOF
6546
6547 fi
6548 if test x$ac_gc_always_collect != x ; then
6549
6550 cat >>confdefs.h <<\_ACEOF
6551 #define ENABLE_GC_ALWAYS_COLLECT 1
6552 _ACEOF
6553
6554 fi
6555 if test x$ac_fold_checking != x ; then
6556
6557 cat >>confdefs.h <<\_ACEOF
6558 #define ENABLE_FOLD_CHECKING 1
6559 _ACEOF
6560
6561 fi
6562 valgrind_path_defines=
6563 valgrind_command=
6564
6565 if test "${ac_cv_header_valgrind_h+set}" = set; then
6566   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6567 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6568 if test "${ac_cv_header_valgrind_h+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 fi
6571 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6572 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6573 else
6574   # Is the header compilable?
6575 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6576 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h.  */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h.  */
6583 $ac_includes_default
6584 #include <valgrind.h>
6585 _ACEOF
6586 rm -f conftest.$ac_objext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6588   (eval $ac_compile) 2>conftest.er1
6589   ac_status=$?
6590   grep -v '^ *+' conftest.er1 >conftest.err
6591   rm -f conftest.er1
6592   cat conftest.err >&5
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } &&
6595          { ac_try='test -z "$ac_c_werror_flag"
6596                          || test ! -s conftest.err'
6597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598   (eval $ac_try) 2>&5
6599   ac_status=$?
6600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601   (exit $ac_status); }; } &&
6602          { ac_try='test -s conftest.$ac_objext'
6603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604   (eval $ac_try) 2>&5
6605   ac_status=$?
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); }; }; then
6608   ac_header_compiler=yes
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 ac_header_compiler=no
6614 fi
6615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6617 echo "${ECHO_T}$ac_header_compiler" >&6
6618
6619 # Is the header present?
6620 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6621 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h.  */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h.  */
6628 #include <valgrind.h>
6629 _ACEOF
6630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6632   ac_status=$?
6633   grep -v '^ *+' conftest.er1 >conftest.err
6634   rm -f conftest.er1
6635   cat conftest.err >&5
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); } >/dev/null; then
6638   if test -s conftest.err; then
6639     ac_cpp_err=$ac_c_preproc_warn_flag
6640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6641   else
6642     ac_cpp_err=
6643   fi
6644 else
6645   ac_cpp_err=yes
6646 fi
6647 if test -z "$ac_cpp_err"; then
6648   ac_header_preproc=yes
6649 else
6650   echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6652
6653   ac_header_preproc=no
6654 fi
6655 rm -f conftest.err conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6657 echo "${ECHO_T}$ac_header_preproc" >&6
6658
6659 # So?  What about this header?
6660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6661   yes:no: )
6662     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6663 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6665 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6666     ac_header_preproc=yes
6667     ;;
6668   no:yes:* )
6669     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6670 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6671     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6672 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6673     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6674 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6675     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6676 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6678 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6679     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6680 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6681     (
6682       cat <<\_ASBOX
6683 ## ------------------------------------------ ##
6684 ## Report this to the AC_PACKAGE_NAME lists.  ##
6685 ## ------------------------------------------ ##
6686 _ASBOX
6687     ) |
6688       sed "s/^/$as_me: WARNING:     /" >&2
6689     ;;
6690 esac
6691 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6692 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6693 if test "${ac_cv_header_valgrind_h+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   ac_cv_header_valgrind_h=$ac_header_preproc
6697 fi
6698 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6699 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6700
6701 fi
6702 if test $ac_cv_header_valgrind_h = yes; then
6703   have_valgrind_h=yes
6704 else
6705   have_valgrind_h=no
6706 fi
6707
6708
6709
6710 if test x$ac_valgrind_checking != x ; then
6711   # It is certainly possible that there's valgrind but no valgrind.h.
6712   # GCC relies on making annotations so we must have both.
6713   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6714 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6715   cat >conftest.$ac_ext <<_ACEOF
6716 /* confdefs.h.  */
6717 _ACEOF
6718 cat confdefs.h >>conftest.$ac_ext
6719 cat >>conftest.$ac_ext <<_ACEOF
6720 /* end confdefs.h.  */
6721 #include <valgrind/memcheck.h>
6722 #ifndef VALGRIND_DISCARD
6723 #error VALGRIND_DISCARD not defined
6724 #endif
6725 _ACEOF
6726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } >/dev/null; then
6734   if test -s conftest.err; then
6735     ac_cpp_err=$ac_c_preproc_warn_flag
6736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6737   else
6738     ac_cpp_err=
6739   fi
6740 else
6741   ac_cpp_err=yes
6742 fi
6743 if test -z "$ac_cpp_err"; then
6744   gcc_cv_header_valgrind_memcheck_h=yes
6745 else
6746   echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749   gcc_cv_header_valgrind_memcheck_h=no
6750 fi
6751 rm -f conftest.err conftest.$ac_ext
6752   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6753 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6754   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6755 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6756   cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762 #include <memcheck.h>
6763 #ifndef VALGRIND_DISCARD
6764 #error VALGRIND_DISCARD not defined
6765 #endif
6766 _ACEOF
6767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6769   ac_status=$?
6770   grep -v '^ *+' conftest.er1 >conftest.err
6771   rm -f conftest.er1
6772   cat conftest.err >&5
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } >/dev/null; then
6775   if test -s conftest.err; then
6776     ac_cpp_err=$ac_c_preproc_warn_flag
6777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6778   else
6779     ac_cpp_err=
6780   fi
6781 else
6782   ac_cpp_err=yes
6783 fi
6784 if test -z "$ac_cpp_err"; then
6785   gcc_cv_header_memcheck_h=yes
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790   gcc_cv_header_memcheck_h=no
6791 fi
6792 rm -f conftest.err conftest.$ac_ext
6793   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6794 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6795
6796 # Prepare PATH_SEPARATOR.
6797 # The user is always right.
6798 if test "${PATH_SEPARATOR+set}" != set; then
6799   echo "#! /bin/sh" >conf$$.sh
6800   echo  "exit 0"   >>conf$$.sh
6801   chmod +x conf$$.sh
6802   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6803     PATH_SEPARATOR=';'
6804   else
6805     PATH_SEPARATOR=:
6806   fi
6807   rm -f conf$$.sh
6808 fi
6809
6810 # Find out how to test for executable files. Don't use a zero-byte file,
6811 # as systems may use methods other than mode bits to determine executability.
6812 cat >conf$$.file <<_ASEOF
6813 #! /bin/sh
6814 exit 0
6815 _ASEOF
6816 chmod +x conf$$.file
6817 if test -x conf$$.file >/dev/null 2>&1; then
6818   ac_executable_p="test -x"
6819 else
6820   ac_executable_p="test -f"
6821 fi
6822 rm -f conf$$.file
6823
6824 # Extract the first word of "valgrind", so it can be a program name with args.
6825 set dummy valgrind; ac_word=$2
6826 echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6828 if test "${ac_cv_path_valgrind_path+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   case "$valgrind_path" in
6832   [\\/]* | ?:[\\/]*)
6833     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6834     ;;
6835   *)
6836     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6837     for ac_dir in $PATH; do
6838       IFS="$ac_save_IFS"
6839       test -z "$ac_dir" && ac_dir=.
6840       for ac_exec_ext in '' $ac_executable_extensions; do
6841         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6842           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6843             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6844             break 2
6845           fi
6846         fi
6847       done
6848     done
6849     IFS="$ac_save_IFS"
6850     ;;
6851 esac
6852 fi
6853 valgrind_path="$ac_cv_path_valgrind_path"
6854 if test -n "$valgrind_path"; then
6855   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6856 echo "${ECHO_T}$valgrind_path" >&6
6857 else
6858   echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6860 fi
6861
6862   if test "x$valgrind_path" = "x" \
6863     || (test $have_valgrind_h = no \
6864         && test $gcc_cv_header_memcheck_h = no \
6865         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6866         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6867 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6868    { (exit 1); exit 1; }; }
6869   fi
6870   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6871   valgrind_command="$valgrind_path -q"
6872
6873 cat >>confdefs.h <<\_ACEOF
6874 #define ENABLE_VALGRIND_CHECKING 1
6875 _ACEOF
6876
6877   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6878
6879 cat >>confdefs.h <<\_ACEOF
6880 #define HAVE_VALGRIND_MEMCHECK_H 1
6881 _ACEOF
6882
6883   fi
6884   if test $gcc_cv_header_memcheck_h = yes; then
6885
6886 cat >>confdefs.h <<\_ACEOF
6887 #define HAVE_MEMCHECK_H 1
6888 _ACEOF
6889
6890   fi
6891 fi
6892
6893
6894
6895 # Check whether --enable-mapped-location or --disable-mapped-location was given.
6896 if test "${enable_mapped_location+set}" = set; then
6897   enableval="$enable_mapped_location"
6898
6899 else
6900   enable_mapped_location=no
6901 fi;
6902
6903 if test "$enable_mapped_location" = yes ; then
6904
6905 cat >>confdefs.h <<\_ACEOF
6906 #define USE_MAPPED_LOCATION 1
6907 _ACEOF
6908
6909 fi
6910
6911 # Enable code coverage collection
6912 # Check whether --enable-coverage or --disable-coverage was given.
6913 if test "${enable_coverage+set}" = set; then
6914   enableval="$enable_coverage"
6915   case "${enableval}" in
6916   yes|noopt)
6917     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6918     ;;
6919   opt)
6920     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6921     ;;
6922   no)
6923     # a.k.a. --disable-coverage
6924     coverage_flags=""
6925     ;;
6926   *)
6927     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6928 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6929    { (exit 1); exit 1; }; }
6930     ;;
6931 esac
6932 else
6933   coverage_flags=""
6934 fi;
6935
6936
6937 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6938 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6939   enableval="$enable_gather_detailed_mem_stats"
6940
6941 else
6942   enable_gather_detailed_mem_stats=no
6943 fi;
6944 if test x$enable_gather_detailed_mem_stats = xyes ; then
6945
6946 cat >>confdefs.h <<\_ACEOF
6947 #define GATHER_STATISTICS 1
6948 _ACEOF
6949
6950 fi
6951
6952 # -------------------------------
6953 # Miscenalleous configure options
6954 # -------------------------------
6955
6956 # With stabs
6957
6958 # Check whether --with-stabs or --without-stabs was given.
6959 if test "${with_stabs+set}" = set; then
6960   withval="$with_stabs"
6961   stabs="$with_stabs"
6962 else
6963   stabs=no
6964 fi;
6965
6966 # Determine whether or not multilibs are enabled.
6967 # Check whether --enable-multilib or --disable-multilib was given.
6968 if test "${enable_multilib+set}" = set; then
6969   enableval="$enable_multilib"
6970
6971 else
6972   enable_multilib=yes
6973 fi;
6974
6975
6976 # Enable __cxa_atexit for C++.
6977 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6978 if test "${enable___cxa_atexit+set}" = set; then
6979   enableval="$enable___cxa_atexit"
6980
6981 fi;
6982
6983 # Enable C extension for decimal float if target supports it.
6984 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6985 if test "${enable_decimal_float+set}" = set; then
6986   enableval="$enable_decimal_float"
6987
6988   case $enable_decimal_float in
6989     yes | no | bid | dpd) ;;
6990     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6991 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6992 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6993 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6994    { (exit 1); exit 1; }; } ;;
6995   esac
6996
6997 else
6998
6999   case $target in
7000     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
7001       enable_decimal_float=yes
7002       ;;
7003     *)
7004       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
7005 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
7006       enable_decimal_float=no
7007       ;;
7008   esac
7009
7010 fi;
7011
7012 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define ENABLE_DECIMAL_FLOAT $dfp
7016 _ACEOF
7017
7018
7019 # x86's use BID format instead of DPD
7020 case x$enable_decimal_float in
7021   xyes)
7022     case $target in
7023       i?86*-*-linux* | x86_64*-*-linux*)
7024         enable_decimal_float=bid
7025         ;;
7026       *)
7027         enable_decimal_float=dpd
7028         ;;
7029     esac
7030     ;;
7031   xno)
7032     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7033     # dependency on libdecnumber.
7034     enable_decimal_float=dpd
7035     ;;
7036 esac
7037
7038
7039 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7040
7041 cat >>confdefs.h <<_ACEOF
7042 #define ENABLE_DECIMAL_BID_FORMAT $bid
7043 _ACEOF
7044
7045
7046 # Enable threads
7047 # Pass with no value to take the default
7048 # Pass with a value to specify a thread package
7049 # Check whether --enable-threads or --disable-threads was given.
7050 if test "${enable_threads+set}" = set; then
7051   enableval="$enable_threads"
7052
7053 else
7054   enable_threads=''
7055 fi;
7056
7057 # Check whether --enable-tls or --disable-tls was given.
7058 if test "${enable_tls+set}" = set; then
7059   enableval="$enable_tls"
7060
7061   case $enable_tls in
7062     yes | no) ;;
7063     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7064 Valid choices are 'yes' and 'no'." >&5
7065 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7066 Valid choices are 'yes' and 'no'." >&2;}
7067    { (exit 1); exit 1; }; } ;;
7068   esac
7069
7070 else
7071   enable_tls=''
7072 fi;
7073
7074 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7075 if test "${enable_objc_gc+set}" = set; then
7076   enableval="$enable_objc_gc"
7077   if test x$enable_objc_gc = xno; then
7078         objc_boehm_gc=''
7079 else
7080         objc_boehm_gc=1
7081 fi
7082 else
7083   objc_boehm_gc=''
7084 fi;
7085
7086
7087 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7088 if test "${with_dwarf2+set}" = set; then
7089   withval="$with_dwarf2"
7090   dwarf2="$with_dwarf2"
7091 else
7092   dwarf2=no
7093 fi;
7094
7095 # Check whether --enable-shared or --disable-shared was given.
7096 if test "${enable_shared+set}" = set; then
7097   enableval="$enable_shared"
7098
7099   case $enable_shared in
7100   yes | no) ;;
7101   *)
7102     enable_shared=no
7103     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7104     for pkg in $enableval; do
7105       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7106         enable_shared=yes
7107       fi
7108     done
7109     IFS="$ac_save_ifs"
7110     ;;
7111   esac
7112
7113 else
7114   enable_shared=yes
7115 fi;
7116
7117
7118
7119 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7120 if test "${with_build_sysroot+set}" = set; then
7121   withval="$with_build_sysroot"
7122
7123 fi;
7124
7125
7126 # Check whether --with-sysroot or --without-sysroot was given.
7127 if test "${with_sysroot+set}" = set; then
7128   withval="$with_sysroot"
7129
7130  case ${with_sysroot} in
7131  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7132  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7133  esac
7134
7135  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7136  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7137
7138  if test "x$prefix" = xNONE; then
7139   test_prefix=/usr/local
7140  else
7141   test_prefix=$prefix
7142  fi
7143  if test "x$exec_prefix" = xNONE; then
7144   test_exec_prefix=$test_prefix
7145  else
7146   test_exec_prefix=$exec_prefix
7147  fi
7148  case ${TARGET_SYSTEM_ROOT} in
7149  "${test_prefix}"|"${test_prefix}/"*|\
7150  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7151  '${prefix}'|'${prefix}/'*|\
7152  '${exec_prefix}'|'${exec_prefix}/'*)
7153    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7154    TARGET_SYSTEM_ROOT_DEFINE="$t"
7155    ;;
7156  esac
7157
7158 else
7159
7160  TARGET_SYSTEM_ROOT=
7161  TARGET_SYSTEM_ROOT_DEFINE=
7162  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7163
7164 fi;
7165
7166
7167
7168
7169 # Build with intermodule optimisations
7170 # Check whether --enable-intermodule or --disable-intermodule was given.
7171 if test "${enable_intermodule+set}" = set; then
7172   enableval="$enable_intermodule"
7173   case ${enable_intermodule} in
7174   yes) onestep="-onestep";;
7175   *) onestep="";;
7176 esac
7177 else
7178   onestep=""
7179 fi;
7180
7181
7182 # Sanity check enable_languages in case someone does not run the toplevel
7183 # configure # script.
7184 # Check whether --enable-languages or --disable-languages was given.
7185 if test "${enable_languages+set}" = set; then
7186   enableval="$enable_languages"
7187   case ,${enable_languages}, in
7188        ,,|,yes,)
7189                 # go safe -- we cannot be much sure without the toplevel
7190                 # configure's
7191                 # analysis of which target libs are present and usable
7192                 enable_languages=c
7193                 ;;
7194          *,all,*)
7195                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7196 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7197    { (exit 1); exit 1; }; }
7198                 ;;
7199         *,c,*)
7200                 ;;
7201         *)
7202                 enable_languages=c,${enable_languages}
7203                 ;;
7204 esac
7205 else
7206   enable_languages=c
7207 fi;
7208
7209 # Used by documentation targets
7210
7211
7212
7213
7214 # -------------------------
7215 # Checks for other programs
7216 # -------------------------
7217
7218 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7219 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7220 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7221 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7222   echo $ECHO_N "(cached) $ECHO_C" >&6
7223 else
7224   cat >conftest.make <<\_ACEOF
7225 all:
7226         @echo 'ac_maketemp="$(MAKE)"'
7227 _ACEOF
7228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7229 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7230 if test -n "$ac_maketemp"; then
7231   eval ac_cv_prog_make_${ac_make}_set=yes
7232 else
7233   eval ac_cv_prog_make_${ac_make}_set=no
7234 fi
7235 rm -f conftest.make
7236 fi
7237 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7238   echo "$as_me:$LINENO: result: yes" >&5
7239 echo "${ECHO_T}yes" >&6
7240   SET_MAKE=
7241 else
7242   echo "$as_me:$LINENO: result: no" >&5
7243 echo "${ECHO_T}no" >&6
7244   SET_MAKE="MAKE=${MAKE-make}"
7245 fi
7246
7247
7248 # Find some useful tools
7249 for ac_prog in gawk mawk nawk awk
7250 do
7251   # Extract the first word of "$ac_prog", so it can be a program name with args.
7252 set dummy $ac_prog; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_AWK+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   if test -n "$AWK"; then
7259   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_prog_AWK="$ac_prog"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274
7275 fi
7276 fi
7277 AWK=$ac_cv_prog_AWK
7278 if test -n "$AWK"; then
7279   echo "$as_me:$LINENO: result: $AWK" >&5
7280 echo "${ECHO_T}$AWK" >&6
7281 else
7282   echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286   test -n "$AWK" && break
7287 done
7288
7289 # We need awk to create options.c and options.h.
7290 # Bail out if it's missing.
7291 case ${AWK} in
7292   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7293 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7294    { (exit 1); exit 1; }; } ;;
7295 esac
7296
7297 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7298 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7299 if test "${gcc_cv_prog_LN_S+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   rm -f conftestdata_t
7303 echo >conftestdata_f
7304 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7305 then
7306   gcc_cv_prog_LN_S="ln -s"
7307 else
7308   if ln conftestdata_f conftestdata_t 2>/dev/null
7309   then
7310     gcc_cv_prog_LN_S=ln
7311   else
7312     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7313     then
7314       gcc_cv_prog_LN_S="cp -p"
7315     else
7316       gcc_cv_prog_LN_S=cp
7317     fi
7318   fi
7319 fi
7320 rm -f conftestdata_f conftestdata_t
7321
7322 fi
7323 LN_S="$gcc_cv_prog_LN_S"
7324 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7325   echo "$as_me:$LINENO: result: yes" >&5
7326 echo "${ECHO_T}yes" >&6
7327 else
7328   if test "$gcc_cv_prog_LN_S" = "ln"; then
7329     echo "$as_me:$LINENO: result: no, using ln" >&5
7330 echo "${ECHO_T}no, using ln" >&6
7331   else
7332     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7333 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7334   fi
7335 fi
7336
7337 echo "$as_me:$LINENO: checking whether ln works" >&5
7338 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7339 if test "${acx_cv_prog_LN+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   rm -f conftestdata_t
7343 echo >conftestdata_f
7344 if ln conftestdata_f conftestdata_t 2>/dev/null
7345 then
7346   acx_cv_prog_LN=ln
7347 else
7348   acx_cv_prog_LN=no
7349 fi
7350 rm -f conftestdata_f conftestdata_t
7351
7352 fi
7353 if test $acx_cv_prog_LN = no; then
7354   LN="$LN_S"
7355   echo "$as_me:$LINENO: result: no, using $LN" >&5
7356 echo "${ECHO_T}no, using $LN" >&6
7357 else
7358   LN="$acx_cv_prog_LN"
7359   echo "$as_me:$LINENO: result: yes" >&5
7360 echo "${ECHO_T}yes" >&6
7361 fi
7362
7363 if test -n "$ac_tool_prefix"; then
7364   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7366 echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7368 if test "${ac_cv_prog_RANLIB+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   if test -n "$RANLIB"; then
7372   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379   for ac_exec_ext in '' $ac_executable_extensions; do
7380   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386 done
7387
7388 fi
7389 fi
7390 RANLIB=$ac_cv_prog_RANLIB
7391 if test -n "$RANLIB"; then
7392   echo "$as_me:$LINENO: result: $RANLIB" >&5
7393 echo "${ECHO_T}$RANLIB" >&6
7394 else
7395   echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6
7397 fi
7398
7399 fi
7400 if test -z "$ac_cv_prog_RANLIB"; then
7401   ac_ct_RANLIB=$RANLIB
7402   # Extract the first word of "ranlib", so it can be a program name with args.
7403 set dummy ranlib; ac_word=$2
7404 echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7406 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7407   echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409   if test -n "$ac_ct_RANLIB"; then
7410   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417   for ac_exec_ext in '' $ac_executable_extensions; do
7418   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419     ac_cv_prog_ac_ct_RANLIB="ranlib"
7420     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424 done
7425
7426   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7427 fi
7428 fi
7429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7430 if test -n "$ac_ct_RANLIB"; then
7431   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7432 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7433 else
7434   echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7436 fi
7437
7438   RANLIB=$ac_ct_RANLIB
7439 else
7440   RANLIB="$ac_cv_prog_RANLIB"
7441 fi
7442
7443 case "${host}" in
7444 *-*-darwin*)
7445   # By default, the Darwin ranlib will not treat common symbols as
7446   # definitions when  building the archive table of contents.  Other
7447   # ranlibs do that; pass an option to the Darwin ranlib that makes
7448   # it behave similarly.
7449   ranlib_flags="-c"
7450   ;;
7451 *)
7452   ranlib_flags=""
7453 esac
7454
7455
7456 # Find a good install program.  We prefer a C program (faster),
7457 # so one script is as good as another.  But avoid the broken or
7458 # incompatible versions:
7459 # SysV /etc/install, /usr/sbin/install
7460 # SunOS /usr/etc/install
7461 # IRIX /sbin/install
7462 # AIX /bin/install
7463 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7464 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7465 # ./install, which can be erroneously created by make from ./install.sh.
7466 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7467 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7468 if test -z "$INSTALL"; then
7469 if test "${ac_cv_path_install+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7473   for ac_dir in $PATH; do
7474     # Account for people who put trailing slashes in PATH elements.
7475     case "$ac_dir/" in
7476     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7477     *)
7478       # OSF1 and SCO ODT 3.0 have their own names for install.
7479       for ac_prog in ginstall scoinst install; do
7480         if test -f $ac_dir/$ac_prog; then
7481           if test $ac_prog = install &&
7482             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7483             # AIX install.  It has an incompatible calling convention.
7484             # OSF/1 installbsd also uses dspmsg, but is usable.
7485             :
7486           else
7487             ac_cv_path_install="$ac_dir/$ac_prog -c"
7488             break 2
7489           fi
7490         fi
7491       done
7492       ;;
7493     esac
7494   done
7495   IFS="$ac_save_IFS"
7496
7497 fi
7498   if test "${ac_cv_path_install+set}" = set; then
7499     INSTALL="$ac_cv_path_install"
7500   else
7501     # As a last resort, use the slow shell script.  We don't cache a
7502     # path for INSTALL within a source directory, because that will
7503     # break other packages using the cache if that directory is
7504     # removed, or if the path is relative.
7505     INSTALL="$ac_install_sh"
7506   fi
7507 fi
7508 echo "$as_me:$LINENO: result: $INSTALL" >&5
7509 echo "${ECHO_T}$INSTALL" >&6
7510
7511 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7512 # It thinks the first close brace ends the variable substitution.
7513 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7514
7515 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7516
7517
7518 # See if cmp has --ignore-initial.
7519 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7520 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7521 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7522   echo $ECHO_N "(cached) $ECHO_C" >&6
7523 else
7524    echo abfoo >t1
7525   echo cdfoo >t2
7526   gcc_cv_prog_cmp_skip=slowcompare
7527   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7528     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7529       :
7530     else
7531       gcc_cv_prog_cmp_skip=gnucompare
7532     fi
7533   fi
7534   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7535     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7536       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7537         :
7538       else
7539         gcc_cv_prog_cmp_skip=fastcompare
7540       fi
7541     fi
7542   fi
7543   rm t1 t2
7544
7545 fi
7546 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7547 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7548 make_compare_target=$gcc_cv_prog_cmp_skip
7549
7550
7551
7552 # See if we have the mktemp command.
7553 # Extract the first word of "mktemp", so it can be a program name with args.
7554 set dummy mktemp; ac_word=$2
7555 echo "$as_me:$LINENO: checking for $ac_word" >&5
7556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7557 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   if test -n "$have_mktemp_command"; then
7561   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7565 do
7566   IFS=$as_save_IFS
7567   test -z "$as_dir" && as_dir=.
7568   for ac_exec_ext in '' $ac_executable_extensions; do
7569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570     ac_cv_prog_have_mktemp_command="yes"
7571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7572     break 2
7573   fi
7574 done
7575 done
7576
7577   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7578 fi
7579 fi
7580 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7581 if test -n "$have_mktemp_command"; then
7582   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7583 echo "${ECHO_T}$have_mktemp_command" >&6
7584 else
7585   echo "$as_me:$LINENO: result: no" >&5
7586 echo "${ECHO_T}no" >&6
7587 fi
7588
7589
7590 # See if makeinfo has been installed and is modern enough
7591 # that we can use it.
7592
7593   # Extract the first word of "makeinfo", so it can be a program name with args.
7594 set dummy makeinfo; ac_word=$2
7595 echo "$as_me:$LINENO: checking for $ac_word" >&5
7596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7597 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7598   echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600   if test -n "$MAKEINFO"; then
7601   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608   for ac_exec_ext in '' $ac_executable_extensions; do
7609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610     ac_cv_prog_MAKEINFO="makeinfo"
7611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615 done
7616
7617 fi
7618 fi
7619 MAKEINFO=$ac_cv_prog_MAKEINFO
7620 if test -n "$MAKEINFO"; then
7621   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7622 echo "${ECHO_T}$MAKEINFO" >&6
7623 else
7624   echo "$as_me:$LINENO: result: no" >&5
7625 echo "${ECHO_T}no" >&6
7626 fi
7627
7628   if test -n "$MAKEINFO"; then
7629     # Found it, now check the version.
7630     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7631 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7632 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7633   echo $ECHO_N "(cached) $ECHO_C" >&6
7634 else
7635   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7636                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7637
7638                     case $ac_prog_version in
7639                       '')  gcc_cv_prog_makeinfo_modern=no;;
7640                       4.[4-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7641                       *)   gcc_cv_prog_makeinfo_modern=no;;
7642                     esac
7643
7644 fi
7645 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7646 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7647   else
7648     gcc_cv_prog_makeinfo_modern=no
7649   fi
7650   if test $gcc_cv_prog_makeinfo_modern = no; then
7651     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7652   fi
7653
7654 if test $gcc_cv_prog_makeinfo_modern = no; then
7655   { echo "$as_me:$LINENO: WARNING:
7656 *** Makeinfo is missing or too old.
7657 *** Info documentation will not be built." >&5
7658 echo "$as_me: WARNING:
7659 *** Makeinfo is missing or too old.
7660 *** Info documentation will not be built." >&2;}
7661   BUILD_INFO=
7662 else
7663   BUILD_INFO=info
7664 fi
7665
7666
7667 # Is pod2man recent enough to regenerate manpages?
7668 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7669 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7670 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7671   echo "$as_me:$LINENO: result: yes" >&5
7672 echo "${ECHO_T}yes" >&6
7673   GENERATED_MANPAGES=generated-manpages
7674 else
7675   echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6
7677   GENERATED_MANPAGES=
7678 fi
7679
7680
7681 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7682
7683 # How about lex?
7684 for ac_prog in flex
7685 do
7686   # Extract the first word of "$ac_prog", so it can be a program name with args.
7687 set dummy $ac_prog; ac_word=$2
7688 echo "$as_me:$LINENO: checking for $ac_word" >&5
7689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7690 if test "${ac_cv_prog_FLEX+set}" = set; then
7691   echo $ECHO_N "(cached) $ECHO_C" >&6
7692 else
7693   if test -n "$FLEX"; then
7694   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7695 else
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699   IFS=$as_save_IFS
7700   test -z "$as_dir" && as_dir=.
7701   for ac_exec_ext in '' $ac_executable_extensions; do
7702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7703     ac_cv_prog_FLEX="$ac_prog"
7704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705     break 2
7706   fi
7707 done
7708 done
7709
7710 fi
7711 fi
7712 FLEX=$ac_cv_prog_FLEX
7713 if test -n "$FLEX"; then
7714   echo "$as_me:$LINENO: result: $FLEX" >&5
7715 echo "${ECHO_T}$FLEX" >&6
7716 else
7717   echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6
7719 fi
7720
7721   test -n "$FLEX" && break
7722 done
7723 test -n "$FLEX" || FLEX="$MISSING flex"
7724
7725
7726 # Bison?
7727 for ac_prog in bison
7728 do
7729   # Extract the first word of "$ac_prog", so it can be a program name with args.
7730 set dummy $ac_prog; ac_word=$2
7731 echo "$as_me:$LINENO: checking for $ac_word" >&5
7732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7733 if test "${ac_cv_prog_BISON+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   if test -n "$BISON"; then
7737   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742   IFS=$as_save_IFS
7743   test -z "$as_dir" && as_dir=.
7744   for ac_exec_ext in '' $ac_executable_extensions; do
7745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746     ac_cv_prog_BISON="$ac_prog"
7747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748     break 2
7749   fi
7750 done
7751 done
7752
7753 fi
7754 fi
7755 BISON=$ac_cv_prog_BISON
7756 if test -n "$BISON"; then
7757   echo "$as_me:$LINENO: result: $BISON" >&5
7758 echo "${ECHO_T}$BISON" >&6
7759 else
7760   echo "$as_me:$LINENO: result: no" >&5
7761 echo "${ECHO_T}no" >&6
7762 fi
7763
7764   test -n "$BISON" && break
7765 done
7766 test -n "$BISON" || BISON="$MISSING bison"
7767
7768
7769 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7770 # check for build == host before using them.
7771
7772 # NM
7773 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7774   && test -d ../binutils ; then
7775   NM='$(objdir)/../binutils/nm-new'
7776 else
7777   # Extract the first word of "nm", so it can be a program name with args.
7778 set dummy nm; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_NM+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   if test -n "$NM"; then
7785   ac_cv_prog_NM="$NM" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792   for ac_exec_ext in '' $ac_executable_extensions; do
7793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_prog_NM="nm"
7795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799 done
7800
7801   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7802 fi
7803 fi
7804 NM=$ac_cv_prog_NM
7805 if test -n "$NM"; then
7806   echo "$as_me:$LINENO: result: $NM" >&5
7807 echo "${ECHO_T}$NM" >&6
7808 else
7809   echo "$as_me:$LINENO: result: no" >&5
7810 echo "${ECHO_T}no" >&6
7811 fi
7812
7813 fi
7814
7815 # AR
7816 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7817   && test -d ../binutils ; then
7818   AR='$(objdir)/../binutils/ar'
7819 else
7820   # Extract the first word of "ar", so it can be a program name with args.
7821 set dummy ar; ac_word=$2
7822 echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7824 if test "${ac_cv_prog_AR+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   if test -n "$AR"; then
7828   ac_cv_prog_AR="$AR" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833   IFS=$as_save_IFS
7834   test -z "$as_dir" && as_dir=.
7835   for ac_exec_ext in '' $ac_executable_extensions; do
7836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837     ac_cv_prog_AR="ar"
7838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839     break 2
7840   fi
7841 done
7842 done
7843
7844   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7845 fi
7846 fi
7847 AR=$ac_cv_prog_AR
7848 if test -n "$AR"; then
7849   echo "$as_me:$LINENO: result: $AR" >&5
7850 echo "${ECHO_T}$AR" >&6
7851 else
7852   echo "$as_me:$LINENO: result: no" >&5
7853 echo "${ECHO_T}no" >&6
7854 fi
7855
7856 fi
7857
7858
7859 # --------------------
7860 # Checks for C headers
7861 # --------------------
7862
7863 echo "$as_me:$LINENO: checking for GNU C library" >&5
7864 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7865 if test "${gcc_cv_glibc+set}" = set; then
7866   echo $ECHO_N "(cached) $ECHO_C" >&6
7867 else
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 #include <features.h>
7875 int
7876 main ()
7877 {
7878
7879 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7880 #error Not a GNU C library system
7881 #endif
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888   (eval $ac_compile) 2>conftest.er1
7889   ac_status=$?
7890   grep -v '^ *+' conftest.er1 >conftest.err
7891   rm -f conftest.er1
7892   cat conftest.err >&5
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); } &&
7895          { ac_try='test -z "$ac_c_werror_flag"
7896                          || test ! -s conftest.err'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; } &&
7902          { ac_try='test -s conftest.$ac_objext'
7903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904   (eval $ac_try) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); }; }; then
7908   gcc_cv_glibc=yes
7909 else
7910   echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 gcc_cv_glibc=no
7914 fi
7915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7916 fi
7917
7918 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7919 echo "${ECHO_T}$gcc_cv_glibc" >&6
7920 if test $gcc_cv_glibc = yes; then
7921
7922 cat >>confdefs.h <<\_ACEOF
7923 #define _GNU_SOURCE 1
7924 _ACEOF
7925
7926 fi
7927
7928 # Need to reject headers which give warnings, so that the -Werror bootstrap
7929 # works later. *sigh*  This needs to come before all header checks.
7930
7931 ac_c_preproc_warn_flag=yes
7932
7933 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7934 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7935 if test "${ac_cv_header_stdc+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 #include <stdlib.h>
7945 #include <stdarg.h>
7946 #include <string.h>
7947 #include <float.h>
7948
7949 int
7950 main ()
7951 {
7952
7953   ;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7959   (eval $ac_compile) 2>conftest.er1
7960   ac_status=$?
7961   grep -v '^ *+' conftest.er1 >conftest.err
7962   rm -f conftest.er1
7963   cat conftest.err >&5
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); } &&
7966          { ac_try='test -z "$ac_c_werror_flag"
7967                          || test ! -s conftest.err'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; } &&
7973          { ac_try='test -s conftest.$ac_objext'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; }; then
7979   ac_cv_header_stdc=yes
7980 else
7981   echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984 ac_cv_header_stdc=no
7985 fi
7986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7987
7988 if test $ac_cv_header_stdc = yes; then
7989   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7990   cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996 #include <string.h>
7997
7998 _ACEOF
7999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8000   $EGREP "memchr" >/dev/null 2>&1; then
8001   :
8002 else
8003   ac_cv_header_stdc=no
8004 fi
8005 rm -f conftest*
8006
8007 fi
8008
8009 if test $ac_cv_header_stdc = yes; then
8010   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8011   cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8017 #include <stdlib.h>
8018
8019 _ACEOF
8020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8021   $EGREP "free" >/dev/null 2>&1; then
8022   :
8023 else
8024   ac_cv_header_stdc=no
8025 fi
8026 rm -f conftest*
8027
8028 fi
8029
8030 if test $ac_cv_header_stdc = yes; then
8031   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8032   if test "$cross_compiling" = yes; then
8033   :
8034 else
8035   cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041 #include <ctype.h>
8042 #if ((' ' & 0x0FF) == 0x020)
8043 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8044 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8045 #else
8046 # define ISLOWER(c) \
8047                    (('a' <= (c) && (c) <= 'i') \
8048                      || ('j' <= (c) && (c) <= 'r') \
8049                      || ('s' <= (c) && (c) <= 'z'))
8050 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8051 #endif
8052
8053 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8054 int
8055 main ()
8056 {
8057   int i;
8058   for (i = 0; i < 256; i++)
8059     if (XOR (islower (i), ISLOWER (i))
8060         || toupper (i) != TOUPPER (i))
8061       exit(2);
8062   exit (0);
8063 }
8064 _ACEOF
8065 rm -f conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067   (eval $ac_link) 2>&5
8068   ac_status=$?
8069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   :
8077 else
8078   echo "$as_me: program exited with status $ac_status" >&5
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ( exit $ac_status )
8083 ac_cv_header_stdc=no
8084 fi
8085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8086 fi
8087 fi
8088 fi
8089 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8090 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8091 if test $ac_cv_header_stdc = yes; then
8092
8093 cat >>confdefs.h <<\_ACEOF
8094 #define STDC_HEADERS 1
8095 _ACEOF
8096
8097 fi
8098
8099 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8100 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8101 if test "${ac_cv_header_time+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <sys/types.h>
8111 #include <sys/time.h>
8112 #include <time.h>
8113
8114 int
8115 main ()
8116 {
8117 if ((struct tm *) 0)
8118 return 0;
8119   ;
8120   return 0;
8121 }
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8125   (eval $ac_compile) 2>conftest.er1
8126   ac_status=$?
8127   grep -v '^ *+' conftest.er1 >conftest.err
8128   rm -f conftest.er1
8129   cat conftest.err >&5
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); } &&
8132          { ac_try='test -z "$ac_c_werror_flag"
8133                          || test ! -s conftest.err'
8134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8135   (eval $ac_try) 2>&5
8136   ac_status=$?
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; } &&
8139          { ac_try='test -s conftest.$ac_objext'
8140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8141   (eval $ac_try) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; }; then
8145   ac_cv_header_time=yes
8146 else
8147   echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_cv_header_time=no
8151 fi
8152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8153 fi
8154 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8155 echo "${ECHO_T}$ac_cv_header_time" >&6
8156 if test $ac_cv_header_time = yes; then
8157
8158 cat >>confdefs.h <<\_ACEOF
8159 #define TIME_WITH_SYS_TIME 1
8160 _ACEOF
8161
8162 fi
8163
8164 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8165 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8166 if test "${gcc_cv_header_string+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 #include <string.h>
8176 #include <strings.h>
8177 int
8178 main ()
8179 {
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest.$ac_objext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8187   (eval $ac_compile) 2>conftest.er1
8188   ac_status=$?
8189   grep -v '^ *+' conftest.er1 >conftest.err
8190   rm -f conftest.er1
8191   cat conftest.err >&5
8192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193   (exit $ac_status); } &&
8194          { ac_try='test -z "$ac_c_werror_flag"
8195                          || test ! -s conftest.err'
8196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197   (eval $ac_try) 2>&5
8198   ac_status=$?
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); }; } &&
8201          { ac_try='test -s conftest.$ac_objext'
8202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8203   (eval $ac_try) 2>&5
8204   ac_status=$?
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); }; }; then
8207   gcc_cv_header_string=yes
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 gcc_cv_header_string=no
8213 fi
8214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8215 fi
8216 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8217 echo "${ECHO_T}$gcc_cv_header_string" >&6
8218 if test $gcc_cv_header_string = yes; then
8219
8220 cat >>confdefs.h <<\_ACEOF
8221 #define STRING_WITH_STRINGS 1
8222 _ACEOF
8223
8224 fi
8225
8226 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8227 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8228 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8229   echo $ECHO_N "(cached) $ECHO_C" >&6
8230 else
8231   cat >conftest.$ac_ext <<_ACEOF
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 #include <sys/types.h>
8238 #include <sys/wait.h>
8239 #ifndef WEXITSTATUS
8240 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8241 #endif
8242 #ifndef WIFEXITED
8243 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8244 #endif
8245
8246 int
8247 main ()
8248 {
8249   int s;
8250   wait (&s);
8251   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8252   ;
8253   return 0;
8254 }
8255 _ACEOF
8256 rm -f conftest.$ac_objext
8257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8258   (eval $ac_compile) 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } &&
8265          { ac_try='test -z "$ac_c_werror_flag"
8266                          || test ! -s conftest.err'
8267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268   (eval $ac_try) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); }; } &&
8272          { ac_try='test -s conftest.$ac_objext'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; }; then
8278   ac_cv_header_sys_wait_h=yes
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ac_cv_header_sys_wait_h=no
8284 fi
8285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 fi
8287 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8288 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8289 if test $ac_cv_header_sys_wait_h = yes; then
8290
8291 cat >>confdefs.h <<\_ACEOF
8292 #define HAVE_SYS_WAIT_H 1
8293 _ACEOF
8294
8295 fi
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8320                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8321                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8322                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8323 do
8324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8325 echo "$as_me:$LINENO: checking for $ac_header" >&5
8326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336 #include <$ac_header>
8337 _ACEOF
8338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } >/dev/null; then
8346   if test -s conftest.err; then
8347     ac_cpp_err=$ac_c_preproc_warn_flag
8348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8349   else
8350     ac_cpp_err=
8351   fi
8352 else
8353   ac_cpp_err=yes
8354 fi
8355 if test -z "$ac_cpp_err"; then
8356   eval "$as_ac_Header=yes"
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361   eval "$as_ac_Header=no"
8362 fi
8363 rm -f conftest.err conftest.$ac_ext
8364 fi
8365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8368   cat >>confdefs.h <<_ACEOF
8369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8370 _ACEOF
8371
8372 fi
8373 done
8374
8375
8376 # Check for thread headers.
8377 echo "$as_me:$LINENO: checking for thread.h" >&5
8378 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8379 if test "${ac_cv_header_thread_h+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 #include <thread.h>
8389 _ACEOF
8390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } >/dev/null; then
8398   if test -s conftest.err; then
8399     ac_cpp_err=$ac_c_preproc_warn_flag
8400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8401   else
8402     ac_cpp_err=
8403   fi
8404 else
8405   ac_cpp_err=yes
8406 fi
8407 if test -z "$ac_cpp_err"; then
8408   ac_cv_header_thread_h=yes
8409 else
8410   echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413   ac_cv_header_thread_h=no
8414 fi
8415 rm -f conftest.err conftest.$ac_ext
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8419 if test $ac_cv_header_thread_h = yes; then
8420   have_thread_h=yes
8421 else
8422   have_thread_h=
8423 fi
8424
8425 echo "$as_me:$LINENO: checking for pthread.h" >&5
8426 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8427 if test "${ac_cv_header_pthread_h+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   cat >conftest.$ac_ext <<_ACEOF
8431 /* confdefs.h.  */
8432 _ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h.  */
8436 #include <pthread.h>
8437 _ACEOF
8438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8440   ac_status=$?
8441   grep -v '^ *+' conftest.er1 >conftest.err
8442   rm -f conftest.er1
8443   cat conftest.err >&5
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); } >/dev/null; then
8446   if test -s conftest.err; then
8447     ac_cpp_err=$ac_c_preproc_warn_flag
8448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8449   else
8450     ac_cpp_err=
8451   fi
8452 else
8453   ac_cpp_err=yes
8454 fi
8455 if test -z "$ac_cpp_err"; then
8456   ac_cv_header_pthread_h=yes
8457 else
8458   echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461   ac_cv_header_pthread_h=no
8462 fi
8463 rm -f conftest.err conftest.$ac_ext
8464 fi
8465 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8466 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8467 if test $ac_cv_header_pthread_h = yes; then
8468   have_pthread_h=yes
8469 else
8470   have_pthread_h=
8471 fi
8472
8473
8474 # These tests can't be done till we know if we have limits.h.
8475 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8476 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8477 if test "${gcc_cv_decl_char_bit+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486 #ifdef HAVE_LIMITS_H
8487 #include <limits.h>
8488 #endif
8489 #ifdef CHAR_BIT
8490 found
8491 #endif
8492 _ACEOF
8493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8494   $EGREP "found" >/dev/null 2>&1; then
8495   gcc_cv_decl_char_bit=yes
8496 else
8497   gcc_cv_decl_char_bit=no
8498 fi
8499 rm -f conftest*
8500
8501
8502 fi
8503 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8504 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8505 if test $gcc_cv_decl_char_bit = no; then
8506   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8507 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8508 if test "${gcc_cv_c_nbby+set}" = set; then
8509   echo $ECHO_N "(cached) $ECHO_C" >&6
8510 else
8511   i=8
8512  gcc_cv_c_nbby=
8513  while test $i -lt 65; do
8514    cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h.  */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h.  */
8520
8521 int
8522 main ()
8523 {
8524 switch(0) {
8525   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8526   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8527   ; }
8528   ;
8529   return 0;
8530 }
8531 _ACEOF
8532 rm -f conftest.$ac_objext
8533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8534   (eval $ac_compile) 2>conftest.er1
8535   ac_status=$?
8536   grep -v '^ *+' conftest.er1 >conftest.err
8537   rm -f conftest.er1
8538   cat conftest.err >&5
8539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540   (exit $ac_status); } &&
8541          { ac_try='test -z "$ac_c_werror_flag"
8542                          || test ! -s conftest.err'
8543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544   (eval $ac_try) 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; } &&
8548          { ac_try='test -s conftest.$ac_objext'
8549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550   (eval $ac_try) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); }; }; then
8554   gcc_cv_c_nbby=$i; break
8555 else
8556   echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 fi
8560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8561    i=`expr $i + 1`
8562  done
8563  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8564
8565 fi
8566 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8567 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8568 if test $gcc_cv_c_nbby = failed; then
8569   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8570 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8571    { (exit 1); exit 1; }; }
8572 else
8573
8574 cat >>confdefs.h <<_ACEOF
8575 #define CHAR_BIT $gcc_cv_c_nbby
8576 _ACEOF
8577
8578 fi
8579 fi
8580 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8581 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8582 if test "${ac_cv_c_bigendian+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   # See if sys/param.h defines the BYTE_ORDER macro.
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592 #include <sys/types.h>
8593 #include <sys/param.h>
8594
8595 int
8596 main ()
8597 {
8598 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8599  bogus endian macros
8600 #endif
8601
8602   ;
8603   return 0;
8604 }
8605 _ACEOF
8606 rm -f conftest.$ac_objext
8607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8608   (eval $ac_compile) 2>conftest.er1
8609   ac_status=$?
8610   grep -v '^ *+' conftest.er1 >conftest.err
8611   rm -f conftest.er1
8612   cat conftest.err >&5
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } &&
8615          { ac_try='test -z "$ac_c_werror_flag"
8616                          || test ! -s conftest.err'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; } &&
8622          { ac_try='test -s conftest.$ac_objext'
8623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624   (eval $ac_try) 2>&5
8625   ac_status=$?
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); }; }; then
8628   # It does; now see whether it defined to BIG_ENDIAN or not.
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 #include <sys/types.h>
8636 #include <sys/param.h>
8637
8638 int
8639 main ()
8640 {
8641 #if BYTE_ORDER != BIG_ENDIAN
8642  not big endian
8643 #endif
8644
8645   ;
8646   return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651   (eval $ac_compile) 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } &&
8658          { ac_try='test -z "$ac_c_werror_flag"
8659                          || test ! -s conftest.err'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; } &&
8665          { ac_try='test -s conftest.$ac_objext'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; }; then
8671   ac_cv_c_bigendian=yes
8672 else
8673   echo "$as_me: failed program was:" >&5
8674 sed 's/^/| /' conftest.$ac_ext >&5
8675
8676 ac_cv_c_bigendian=no
8677 fi
8678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 # It does not; compile a test program.
8684 if test "$cross_compiling" = yes; then
8685   # try to guess the endianness by grepping values into an object file
8686   ac_cv_c_bigendian=unknown
8687   cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8694 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8695 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8696 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8697 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8698 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8699 int
8700 main ()
8701 {
8702  _ascii (); _ebcdic ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8709   (eval $ac_compile) 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } &&
8716          { ac_try='test -z "$ac_c_werror_flag"
8717                          || test ! -s conftest.err'
8718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719   (eval $ac_try) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest.$ac_objext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8730   ac_cv_c_bigendian=yes
8731 fi
8732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8733   if test "$ac_cv_c_bigendian" = unknown; then
8734     ac_cv_c_bigendian=no
8735   else
8736     # finding both strings is unlikely to happen, but who knows?
8737     ac_cv_c_bigendian=unknown
8738   fi
8739 fi
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 fi
8745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8746 else
8747   cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 int
8754 main ()
8755 {
8756   /* Are we little or big endian?  From Harbison&Steele.  */
8757   union
8758   {
8759     long l;
8760     char c[sizeof (long)];
8761   } u;
8762   u.l = 1;
8763   exit (u.c[sizeof (long) - 1] == 1);
8764 }
8765 _ACEOF
8766 rm -f conftest$ac_exeext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8768   (eval $ac_link) 2>&5
8769   ac_status=$?
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; }; then
8777   ac_cv_c_bigendian=no
8778 else
8779   echo "$as_me: program exited with status $ac_status" >&5
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783 ( exit $ac_status )
8784 ac_cv_c_bigendian=yes
8785 fi
8786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 fi
8789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8790 fi
8791 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8792 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8793 case $ac_cv_c_bigendian in
8794   yes)
8795
8796 cat >>confdefs.h <<\_ACEOF
8797 #define WORDS_BIGENDIAN 1
8798 _ACEOF
8799  ;;
8800   no)
8801      ;;
8802   *)
8803     { { echo "$as_me:$LINENO: error: unknown endianness
8804 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8805 echo "$as_me: error: unknown endianness
8806 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8807    { (exit 1); exit 1; }; } ;;
8808 esac
8809
8810
8811 # --------
8812 # UNSORTED
8813 # --------
8814
8815
8816 # These libraries may be used by collect2.
8817 # We may need a special search path to get them linked.
8818 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8819 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8820 if test "${gcc_cv_collect2_libs+set}" = set; then
8821   echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823   save_LIBS="$LIBS"
8824 for libs in '' -lld -lmld \
8825                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8826                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8827 do
8828         LIBS="$libs"
8829         cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h.  */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h.  */
8835
8836 /* Override any gcc2 internal prototype to avoid an error.  */
8837 #ifdef __cplusplus
8838 extern "C"
8839 #endif
8840 /* We use char because int might match the return type of a gcc2
8841    builtin and then its argument prototype would still apply.  */
8842 char ldopen ();
8843 int
8844 main ()
8845 {
8846 ldopen ();
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853   (eval $ac_link) 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } &&
8860          { ac_try='test -z "$ac_c_werror_flag"
8861                          || test ! -s conftest.err'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; } &&
8867          { ac_try='test -s conftest$ac_exeext'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; }; then
8873   gcc_cv_collect2_libs="$libs"; break
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878 fi
8879 rm -f conftest.err conftest.$ac_objext \
8880       conftest$ac_exeext conftest.$ac_ext
8881 done
8882 LIBS="$save_LIBS"
8883 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8884 fi
8885 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8886 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8887 case $gcc_cv_collect2_libs in
8888         "none required")        ;;
8889         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8890 esac
8891
8892
8893 # When building Ada code on Alpha, we need exc_resume which is usually in
8894 # -lexc.  So test for it.
8895 save_LIBS="$LIBS"
8896 LIBS=
8897 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8898 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8899 if test "${ac_cv_search_exc_resume+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   ac_func_search_save_LIBS=$LIBS
8903 ac_cv_search_exc_resume=no
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h.  */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h.  */
8910
8911 /* Override any gcc2 internal prototype to avoid an error.  */
8912 #ifdef __cplusplus
8913 extern "C"
8914 #endif
8915 /* We use char because int might match the return type of a gcc2
8916    builtin and then its argument prototype would still apply.  */
8917 char exc_resume ();
8918 int
8919 main ()
8920 {
8921 exc_resume ();
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928   (eval $ac_link) 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } &&
8935          { ac_try='test -z "$ac_c_werror_flag"
8936                          || test ! -s conftest.err'
8937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938   (eval $ac_try) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; } &&
8942          { ac_try='test -s conftest$ac_exeext'
8943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944   (eval $ac_try) 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   ac_cv_search_exc_resume="none required"
8949 else
8950   echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953 fi
8954 rm -f conftest.err conftest.$ac_objext \
8955       conftest$ac_exeext conftest.$ac_ext
8956 if test "$ac_cv_search_exc_resume" = no; then
8957   for ac_lib in exc; do
8958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8959     cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h.  */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h.  */
8965
8966 /* Override any gcc2 internal prototype to avoid an error.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971    builtin and then its argument prototype would still apply.  */
8972 char exc_resume ();
8973 int
8974 main ()
8975 {
8976 exc_resume ();
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983   (eval $ac_link) 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } &&
8990          { ac_try='test -z "$ac_c_werror_flag"
8991                          || test ! -s conftest.err'
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); }; } &&
8997          { ac_try='test -s conftest$ac_exeext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   ac_cv_search_exc_resume="-l$ac_lib"
9004 break
9005 else
9006   echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 fi
9010 rm -f conftest.err conftest.$ac_objext \
9011       conftest$ac_exeext conftest.$ac_ext
9012   done
9013 fi
9014 LIBS=$ac_func_search_save_LIBS
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9017 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9018 if test "$ac_cv_search_exc_resume" != no; then
9019   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9020
9021 fi
9022
9023 GNAT_LIBEXC="$LIBS"
9024 LIBS="$save_LIBS"
9025
9026
9027 # Some systems put ldexp and frexp in libm instead of libc; assume
9028 # they're both in the same place.  jcf-dump needs them.
9029 save_LIBS="$LIBS"
9030 LIBS=
9031 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9032 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9033 if test "${ac_cv_search_ldexp+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   ac_func_search_save_LIBS=$LIBS
9037 ac_cv_search_ldexp=no
9038 cat >conftest.$ac_ext <<_ACEOF
9039 /* confdefs.h.  */
9040 _ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h.  */
9044
9045 /* Override any gcc2 internal prototype to avoid an error.  */
9046 #ifdef __cplusplus
9047 extern "C"
9048 #endif
9049 /* We use char because int might match the return type of a gcc2
9050    builtin and then its argument prototype would still apply.  */
9051 char ldexp ();
9052 int
9053 main ()
9054 {
9055 ldexp ();
9056   ;
9057   return 0;
9058 }
9059 _ACEOF
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062   (eval $ac_link) 2>conftest.er1
9063   ac_status=$?
9064   grep -v '^ *+' conftest.er1 >conftest.err
9065   rm -f conftest.er1
9066   cat conftest.err >&5
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } &&
9069          { ac_try='test -z "$ac_c_werror_flag"
9070                          || test ! -s conftest.err'
9071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072   (eval $ac_try) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; } &&
9076          { ac_try='test -s conftest$ac_exeext'
9077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078   (eval $ac_try) 2>&5
9079   ac_status=$?
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); }; }; then
9082   ac_cv_search_ldexp="none required"
9083 else
9084   echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 fi
9088 rm -f conftest.err conftest.$ac_objext \
9089       conftest$ac_exeext conftest.$ac_ext
9090 if test "$ac_cv_search_ldexp" = no; then
9091   for ac_lib in m; do
9092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9093     cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099
9100 /* Override any gcc2 internal prototype to avoid an error.  */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 /* We use char because int might match the return type of a gcc2
9105    builtin and then its argument prototype would still apply.  */
9106 char ldexp ();
9107 int
9108 main ()
9109 {
9110 ldexp ();
9111   ;
9112   return 0;
9113 }
9114 _ACEOF
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117   (eval $ac_link) 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } &&
9124          { ac_try='test -z "$ac_c_werror_flag"
9125                          || test ! -s conftest.err'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; } &&
9131          { ac_try='test -s conftest$ac_exeext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_search_ldexp="-l$ac_lib"
9138 break
9139 else
9140   echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 fi
9144 rm -f conftest.err conftest.$ac_objext \
9145       conftest$ac_exeext conftest.$ac_ext
9146   done
9147 fi
9148 LIBS=$ac_func_search_save_LIBS
9149 fi
9150 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9151 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9152 if test "$ac_cv_search_ldexp" != no; then
9153   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9154
9155 fi
9156
9157 LDEXP_LIB="$LIBS"
9158 LIBS="$save_LIBS"
9159
9160
9161 # Use <inttypes.h> only if it exists,
9162 # doesn't clash with <sys/types.h>, and declares intmax_t.
9163 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9164 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9165 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9166   echo $ECHO_N "(cached) $ECHO_C" >&6
9167 else
9168   cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174 #include <sys/types.h>
9175 #include <inttypes.h>
9176 int
9177 main ()
9178 {
9179 intmax_t i = -1;
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9186   (eval $ac_compile) 2>conftest.er1
9187   ac_status=$?
9188   grep -v '^ *+' conftest.er1 >conftest.err
9189   rm -f conftest.er1
9190   cat conftest.err >&5
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -z "$ac_c_werror_flag"
9194                          || test ! -s conftest.err'
9195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196   (eval $ac_try) 2>&5
9197   ac_status=$?
9198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199   (exit $ac_status); }; } &&
9200          { ac_try='test -s conftest.$ac_objext'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   gcc_cv_header_inttypes_h=yes
9207 else
9208   echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211 gcc_cv_header_inttypes_h=no
9212 fi
9213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9214 fi
9215
9216 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9217 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9218 if test $gcc_cv_header_inttypes_h = yes; then
9219
9220 cat >>confdefs.h <<\_ACEOF
9221 #define HAVE_INTTYPES_H 1
9222 _ACEOF
9223
9224 fi
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9264         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9265         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9266         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
9267 do
9268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9269 echo "$as_me:$LINENO: checking for $ac_func" >&5
9270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_var+set}\" = set"; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274   cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h.  */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h.  */
9280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9282 #define $ac_func innocuous_$ac_func
9283
9284 /* System header to define __stub macros and hopefully few prototypes,
9285     which can conflict with char $ac_func (); below.
9286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9287     <limits.h> exists even on freestanding compilers.  */
9288
9289 #ifdef __STDC__
9290 # include <limits.h>
9291 #else
9292 # include <assert.h>
9293 #endif
9294
9295 #undef $ac_func
9296
9297 /* Override any gcc2 internal prototype to avoid an error.  */
9298 #ifdef __cplusplus
9299 extern "C"
9300 {
9301 #endif
9302 /* We use char because int might match the return type of a gcc2
9303    builtin and then its argument prototype would still apply.  */
9304 char $ac_func ();
9305 /* The GNU C library defines this for functions which it implements
9306     to always fail with ENOSYS.  Some functions are actually named
9307     something starting with __ and the normal name is an alias.  */
9308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9309 choke me
9310 #else
9311 char (*f) () = $ac_func;
9312 #endif
9313 #ifdef __cplusplus
9314 }
9315 #endif
9316
9317 int
9318 main ()
9319 {
9320 return f != $ac_func;
9321   ;
9322   return 0;
9323 }
9324 _ACEOF
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327   (eval $ac_link) 2>conftest.er1
9328   ac_status=$?
9329   grep -v '^ *+' conftest.er1 >conftest.err
9330   rm -f conftest.er1
9331   cat conftest.err >&5
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); } &&
9334          { ac_try='test -z "$ac_c_werror_flag"
9335                          || test ! -s conftest.err'
9336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337   (eval $ac_try) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; } &&
9341          { ac_try='test -s conftest$ac_exeext'
9342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9343   (eval $ac_try) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); }; }; then
9347   eval "$as_ac_var=yes"
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 eval "$as_ac_var=no"
9353 fi
9354 rm -f conftest.err conftest.$ac_objext \
9355       conftest$ac_exeext conftest.$ac_ext
9356 fi
9357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9359 if test `eval echo '${'$as_ac_var'}'` = yes; then
9360   cat >>confdefs.h <<_ACEOF
9361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9362 _ACEOF
9363
9364 fi
9365 done
9366
9367
9368 if test x$ac_cv_func_mbstowcs = xyes; then
9369   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9370 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9371 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9372   echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374       if test "$cross_compiling" = yes; then
9375   gcc_cv_func_mbstowcs_works=yes
9376 else
9377   cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <stdlib.h>
9384 int main()
9385 {
9386   mbstowcs(0, "", 0);
9387   return 0;
9388 }
9389 _ACEOF
9390 rm -f conftest$ac_exeext
9391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392   (eval $ac_link) 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397   (eval $ac_try) 2>&5
9398   ac_status=$?
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); }; }; then
9401   gcc_cv_func_mbstowcs_works=yes
9402 else
9403   echo "$as_me: program exited with status $ac_status" >&5
9404 echo "$as_me: failed program was:" >&5
9405 sed 's/^/| /' conftest.$ac_ext >&5
9406
9407 ( exit $ac_status )
9408 gcc_cv_func_mbstowcs_works=no
9409 fi
9410 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9411 fi
9412 fi
9413 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9414 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9415   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9416
9417 cat >>confdefs.h <<\_ACEOF
9418 #define HAVE_WORKING_MBSTOWCS 1
9419 _ACEOF
9420
9421   fi
9422 fi
9423
9424 echo "$as_me:$LINENO: checking for ssize_t" >&5
9425 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9426 if test "${ac_cv_type_ssize_t+set}" = set; then
9427   echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429   cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h.  */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h.  */
9435 $ac_includes_default
9436 int
9437 main ()
9438 {
9439 if ((ssize_t *) 0)
9440   return 0;
9441 if (sizeof (ssize_t))
9442   return 0;
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449   (eval $ac_compile) 2>conftest.er1
9450   ac_status=$?
9451   grep -v '^ *+' conftest.er1 >conftest.err
9452   rm -f conftest.er1
9453   cat conftest.err >&5
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -z "$ac_c_werror_flag"
9457                          || test ! -s conftest.err'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; } &&
9463          { ac_try='test -s conftest.$ac_objext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   ac_cv_type_ssize_t=yes
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 ac_cv_type_ssize_t=no
9475 fi
9476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9477 fi
9478 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9479 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9480 if test $ac_cv_type_ssize_t = yes; then
9481   :
9482 else
9483
9484 cat >>confdefs.h <<_ACEOF
9485 #define ssize_t int
9486 _ACEOF
9487
9488 fi
9489
9490
9491 # Try to determine the array type of the second argument of getgroups
9492 # for the target system (int or gid_t).
9493 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9494 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9495 if test "${ac_cv_type_uid_t+set}" = set; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h.  */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h.  */
9504 #include <sys/types.h>
9505
9506 _ACEOF
9507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9508   $EGREP "uid_t" >/dev/null 2>&1; then
9509   ac_cv_type_uid_t=yes
9510 else
9511   ac_cv_type_uid_t=no
9512 fi
9513 rm -f conftest*
9514
9515 fi
9516 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9517 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9518 if test $ac_cv_type_uid_t = no; then
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define uid_t int
9522 _ACEOF
9523
9524
9525 cat >>confdefs.h <<\_ACEOF
9526 #define gid_t int
9527 _ACEOF
9528
9529 fi
9530
9531 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9532 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9533 if test "${ac_cv_type_getgroups+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   if test "$cross_compiling" = yes; then
9537   ac_cv_type_getgroups=cross
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h.  */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h.  */
9545 /* Thanks to Mike Rendell for this test.  */
9546 #include <sys/types.h>
9547 #define NGID 256
9548 #undef MAX
9549 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9550
9551 int
9552 main ()
9553 {
9554   gid_t gidset[NGID];
9555   int i, n;
9556   union { gid_t gval; long lval; }  val;
9557
9558   val.lval = -1;
9559   for (i = 0; i < NGID; i++)
9560     gidset[i] = val.gval;
9561   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9562                  gidset);
9563   /* Exit non-zero if getgroups seems to require an array of ints.  This
9564      happens when gid_t is short but getgroups modifies an array of ints.  */
9565   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9566 }
9567 _ACEOF
9568 rm -f conftest$ac_exeext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9570   (eval $ac_link) 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; }; then
9579   ac_cv_type_getgroups=gid_t
9580 else
9581   echo "$as_me: program exited with status $ac_status" >&5
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9584
9585 ( exit $ac_status )
9586 ac_cv_type_getgroups=int
9587 fi
9588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9589 fi
9590 if test $ac_cv_type_getgroups = cross; then
9591         cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 #include <unistd.h>
9598
9599 _ACEOF
9600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9601   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9602   ac_cv_type_getgroups=gid_t
9603 else
9604   ac_cv_type_getgroups=int
9605 fi
9606 rm -f conftest*
9607
9608 fi
9609 fi
9610 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9611 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9612
9613 cat >>confdefs.h <<_ACEOF
9614 #define GETGROUPS_T $ac_cv_type_getgroups
9615 _ACEOF
9616
9617
9618 if test "${target}" = "${build}"; then
9619   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9620 else
9621   case "${target}" in
9622         # This condition may need some tweaking.  It should include all
9623         # targets where the array type of the second argument of getgroups
9624         # is int and the type of gid_t is not equivalent to int.
9625         *-*-sunos* | *-*-ultrix*)
9626                 TARGET_GETGROUPS_T=int
9627                 ;;
9628         *)
9629                 TARGET_GETGROUPS_T=gid_t
9630                 ;;
9631   esac
9632 fi
9633
9634
9635
9636 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9637 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9638 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647 #include <sys/mman.h>
9648 _ACEOF
9649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } >/dev/null; then
9657   if test -s conftest.err; then
9658     ac_cpp_err=$ac_c_preproc_warn_flag
9659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9660   else
9661     ac_cpp_err=
9662   fi
9663 else
9664   ac_cpp_err=yes
9665 fi
9666 if test -z "$ac_cpp_err"; then
9667   ac_cv_header_sys_mman_h=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672   ac_cv_header_sys_mman_h=no
9673 fi
9674 rm -f conftest.err conftest.$ac_ext
9675 fi
9676 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9677 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9678 if test $ac_cv_header_sys_mman_h = yes; then
9679   gcc_header_sys_mman_h=yes
9680 else
9681   gcc_header_sys_mman_h=no
9682 fi
9683
9684 echo "$as_me:$LINENO: checking for mmap" >&5
9685 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9686 if test "${ac_cv_func_mmap+set}" = set; then
9687   echo $ECHO_N "(cached) $ECHO_C" >&6
9688 else
9689   cat >conftest.$ac_ext <<_ACEOF
9690 /* confdefs.h.  */
9691 _ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h.  */
9695 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9696    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9697 #define mmap innocuous_mmap
9698
9699 /* System header to define __stub macros and hopefully few prototypes,
9700     which can conflict with char mmap (); below.
9701     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9702     <limits.h> exists even on freestanding compilers.  */
9703
9704 #ifdef __STDC__
9705 # include <limits.h>
9706 #else
9707 # include <assert.h>
9708 #endif
9709
9710 #undef mmap
9711
9712 /* Override any gcc2 internal prototype to avoid an error.  */
9713 #ifdef __cplusplus
9714 extern "C"
9715 {
9716 #endif
9717 /* We use char because int might match the return type of a gcc2
9718    builtin and then its argument prototype would still apply.  */
9719 char mmap ();
9720 /* The GNU C library defines this for functions which it implements
9721     to always fail with ENOSYS.  Some functions are actually named
9722     something starting with __ and the normal name is an alias.  */
9723 #if defined (__stub_mmap) || defined (__stub___mmap)
9724 choke me
9725 #else
9726 char (*f) () = mmap;
9727 #endif
9728 #ifdef __cplusplus
9729 }
9730 #endif
9731
9732 int
9733 main ()
9734 {
9735 return f != mmap;
9736   ;
9737   return 0;
9738 }
9739 _ACEOF
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742   (eval $ac_link) 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -z "$ac_c_werror_flag"
9750                          || test ! -s conftest.err'
9751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9752   (eval $ac_try) 2>&5
9753   ac_status=$?
9754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755   (exit $ac_status); }; } &&
9756          { ac_try='test -s conftest$ac_exeext'
9757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9758   (eval $ac_try) 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); }; }; then
9762   ac_cv_func_mmap=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ac_cv_func_mmap=no
9768 fi
9769 rm -f conftest.err conftest.$ac_objext \
9770       conftest$ac_exeext conftest.$ac_ext
9771 fi
9772 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9773 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9774 if test $ac_cv_func_mmap = yes; then
9775   gcc_func_mmap=yes
9776 else
9777   gcc_func_mmap=no
9778 fi
9779
9780 if test "$gcc_header_sys_mman_h" != yes \
9781  || test "$gcc_func_mmap" != yes; then
9782    gcc_cv_func_mmap_file=no
9783    gcc_cv_func_mmap_dev_zero=no
9784    gcc_cv_func_mmap_anon=no
9785 else
9786    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9787 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9788 if test "${gcc_cv_func_mmap_file+set}" = set; then
9789   echo $ECHO_N "(cached) $ECHO_C" >&6
9790 else
9791   # Add a system to this blacklist if
9792    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9793    # memory area containing the same data that you'd get if you applied
9794    # read() to the same fd.  The only system known to have a problem here
9795    # is VMS, where text files have record structure.
9796    case "$host_os" in
9797      vms* | ultrix*)
9798         gcc_cv_func_mmap_file=no ;;
9799      *)
9800         gcc_cv_func_mmap_file=yes;;
9801    esac
9802 fi
9803 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9804 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9805    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9806 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9807 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9808   echo $ECHO_N "(cached) $ECHO_C" >&6
9809 else
9810   # Add a system to this blacklist if it has mmap() but /dev/zero
9811    # does not exist, or if mmapping /dev/zero does not give anonymous
9812    # zeroed pages with both the following properties:
9813    # 1. If you map N consecutive pages in with one call, and then
9814    #    unmap any subset of those pages, the pages that were not
9815    #    explicitly unmapped remain accessible.
9816    # 2. If you map two adjacent blocks of memory and then unmap them
9817    #    both at once, they must both go away.
9818    # Systems known to be in this category are Windows (all variants),
9819    # VMS, and Darwin.
9820    case "$host_os" in
9821      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9822         gcc_cv_func_mmap_dev_zero=no ;;
9823      *)
9824         gcc_cv_func_mmap_dev_zero=yes;;
9825    esac
9826 fi
9827 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9828 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9829
9830    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9831    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9832 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9833 if test "${gcc_cv_decl_map_anon+set}" = set; then
9834   echo $ECHO_N "(cached) $ECHO_C" >&6
9835 else
9836   cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842 #include <sys/types.h>
9843 #include <sys/mman.h>
9844 #include <unistd.h>
9845
9846 #ifndef MAP_ANONYMOUS
9847 #define MAP_ANONYMOUS MAP_ANON
9848 #endif
9849
9850 int
9851 main ()
9852 {
9853 int n = MAP_ANONYMOUS;
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext
9859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9860   (eval $ac_compile) 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } &&
9867          { ac_try='test -z "$ac_c_werror_flag"
9868                          || test ! -s conftest.err'
9869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870   (eval $ac_try) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; } &&
9874          { ac_try='test -s conftest.$ac_objext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   gcc_cv_decl_map_anon=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 gcc_cv_decl_map_anon=no
9886 fi
9887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9888 fi
9889 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9890 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9891
9892    if test $gcc_cv_decl_map_anon = no; then
9893      gcc_cv_func_mmap_anon=no
9894    else
9895      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9896 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9897 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9901    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9902    # doesn't give anonymous zeroed pages with the same properties listed
9903    # above for use of /dev/zero.
9904    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9905    case "$host_os" in
9906      vms* | cygwin* | pe | mingw* | sco* | udk* )
9907         gcc_cv_func_mmap_anon=no ;;
9908      *)
9909         gcc_cv_func_mmap_anon=yes;;
9910    esac
9911 fi
9912 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9913 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9914    fi
9915 fi
9916
9917 if test $gcc_cv_func_mmap_file = yes; then
9918
9919 cat >>confdefs.h <<\_ACEOF
9920 #define HAVE_MMAP_FILE 1
9921 _ACEOF
9922
9923 fi
9924 if test $gcc_cv_func_mmap_dev_zero = yes; then
9925
9926 cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_MMAP_DEV_ZERO 1
9928 _ACEOF
9929
9930 fi
9931 if test $gcc_cv_func_mmap_anon = yes; then
9932
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_MMAP_ANON 1
9935 _ACEOF
9936
9937 fi
9938
9939
9940 case "${host}" in
9941 *-*-*vms*)
9942   # Under VMS, vfork works very differently than on Unix. The standard test
9943   # won't work, and it isn't easily adaptable. It makes more sense to
9944   # just force it.
9945   ac_cv_func_vfork_works=yes
9946   ;;
9947 esac
9948 echo "$as_me:$LINENO: checking for pid_t" >&5
9949 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9950 if test "${ac_cv_type_pid_t+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 $ac_includes_default
9960 int
9961 main ()
9962 {
9963 if ((pid_t *) 0)
9964   return 0;
9965 if (sizeof (pid_t))
9966   return 0;
9967   ;
9968   return 0;
9969 }
9970 _ACEOF
9971 rm -f conftest.$ac_objext
9972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9973   (eval $ac_compile) 2>conftest.er1
9974   ac_status=$?
9975   grep -v '^ *+' conftest.er1 >conftest.err
9976   rm -f conftest.er1
9977   cat conftest.err >&5
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } &&
9980          { ac_try='test -z "$ac_c_werror_flag"
9981                          || test ! -s conftest.err'
9982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983   (eval $ac_try) 2>&5
9984   ac_status=$?
9985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); }; } &&
9987          { ac_try='test -s conftest.$ac_objext'
9988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989   (eval $ac_try) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; }; then
9993   ac_cv_type_pid_t=yes
9994 else
9995   echo "$as_me: failed program was:" >&5
9996 sed 's/^/| /' conftest.$ac_ext >&5
9997
9998 ac_cv_type_pid_t=no
9999 fi
10000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10001 fi
10002 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10003 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10004 if test $ac_cv_type_pid_t = yes; then
10005   :
10006 else
10007
10008 cat >>confdefs.h <<_ACEOF
10009 #define pid_t int
10010 _ACEOF
10011
10012 fi
10013
10014
10015
10016 for ac_header in unistd.h vfork.h
10017 do
10018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10019 echo "$as_me:$LINENO: checking for $ac_header" >&5
10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030 #include <$ac_header>
10031 _ACEOF
10032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } >/dev/null; then
10040   if test -s conftest.err; then
10041     ac_cpp_err=$ac_c_preproc_warn_flag
10042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10043   else
10044     ac_cpp_err=
10045   fi
10046 else
10047   ac_cpp_err=yes
10048 fi
10049 if test -z "$ac_cpp_err"; then
10050   eval "$as_ac_Header=yes"
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055   eval "$as_ac_Header=no"
10056 fi
10057 rm -f conftest.err conftest.$ac_ext
10058 fi
10059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10062   cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10064 _ACEOF
10065
10066 fi
10067 done
10068
10069
10070
10071 for ac_func in fork vfork
10072 do
10073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10074 echo "$as_me:$LINENO: checking for $ac_func" >&5
10075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10076 if eval "test \"\${$as_ac_var+set}\" = set"; then
10077   echo $ECHO_N "(cached) $ECHO_C" >&6
10078 else
10079   cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h.  */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h.  */
10085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10087 #define $ac_func innocuous_$ac_func
10088
10089 /* System header to define __stub macros and hopefully few prototypes,
10090     which can conflict with char $ac_func (); below.
10091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10092     <limits.h> exists even on freestanding compilers.  */
10093
10094 #ifdef __STDC__
10095 # include <limits.h>
10096 #else
10097 # include <assert.h>
10098 #endif
10099
10100 #undef $ac_func
10101
10102 /* Override any gcc2 internal prototype to avoid an error.  */
10103 #ifdef __cplusplus
10104 extern "C"
10105 {
10106 #endif
10107 /* We use char because int might match the return type of a gcc2
10108    builtin and then its argument prototype would still apply.  */
10109 char $ac_func ();
10110 /* The GNU C library defines this for functions which it implements
10111     to always fail with ENOSYS.  Some functions are actually named
10112     something starting with __ and the normal name is an alias.  */
10113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10114 choke me
10115 #else
10116 char (*f) () = $ac_func;
10117 #endif
10118 #ifdef __cplusplus
10119 }
10120 #endif
10121
10122 int
10123 main ()
10124 {
10125 return f != $ac_func;
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132   (eval $ac_link) 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag"
10140                          || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest$ac_exeext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   eval "$as_ac_var=yes"
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 eval "$as_ac_var=no"
10158 fi
10159 rm -f conftest.err conftest.$ac_objext \
10160       conftest$ac_exeext conftest.$ac_ext
10161 fi
10162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10164 if test `eval echo '${'$as_ac_var'}'` = yes; then
10165   cat >>confdefs.h <<_ACEOF
10166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10167 _ACEOF
10168
10169 fi
10170 done
10171
10172 if test "x$ac_cv_func_fork" = xyes; then
10173   echo "$as_me:$LINENO: checking for working fork" >&5
10174 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10175 if test "${ac_cv_func_fork_works+set}" = set; then
10176   echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178   if test "$cross_compiling" = yes; then
10179   ac_cv_func_fork_works=cross
10180 else
10181   cat >conftest.$ac_ext <<_ACEOF
10182 /* By Ruediger Kuhlmann. */
10183       #include <sys/types.h>
10184       #if HAVE_UNISTD_H
10185       # include <unistd.h>
10186       #endif
10187       /* Some systems only have a dummy stub for fork() */
10188       int main ()
10189       {
10190         if (fork() < 0)
10191           exit (1);
10192         exit (0);
10193       }
10194 _ACEOF
10195 rm -f conftest$ac_exeext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10197   (eval $ac_link) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202   (eval $ac_try) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_func_fork_works=yes
10207 else
10208   echo "$as_me: program exited with status $ac_status" >&5
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ( exit $ac_status )
10213 ac_cv_func_fork_works=no
10214 fi
10215 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10216 fi
10217 fi
10218 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10219 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10220
10221 else
10222   ac_cv_func_fork_works=$ac_cv_func_fork
10223 fi
10224 if test "x$ac_cv_func_fork_works" = xcross; then
10225   case $host in
10226     *-*-amigaos* | *-*-msdosdjgpp*)
10227       # Override, as these systems have only a dummy fork() stub
10228       ac_cv_func_fork_works=no
10229       ;;
10230     *)
10231       ac_cv_func_fork_works=yes
10232       ;;
10233   esac
10234   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10235 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10236 fi
10237 ac_cv_func_vfork_works=$ac_cv_func_vfork
10238 if test "x$ac_cv_func_vfork" = xyes; then
10239   echo "$as_me:$LINENO: checking for working vfork" >&5
10240 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10241 if test "${ac_cv_func_vfork_works+set}" = set; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   if test "$cross_compiling" = yes; then
10245   ac_cv_func_vfork_works=cross
10246 else
10247   cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253 /* Thanks to Paul Eggert for this test.  */
10254 #include <stdio.h>
10255 #include <stdlib.h>
10256 #include <sys/types.h>
10257 #include <sys/stat.h>
10258 #include <sys/wait.h>
10259 #if HAVE_UNISTD_H
10260 # include <unistd.h>
10261 #endif
10262 #if HAVE_VFORK_H
10263 # include <vfork.h>
10264 #endif
10265 /* On some sparc systems, changes by the child to local and incoming
10266    argument registers are propagated back to the parent.  The compiler
10267    is told about this with #include <vfork.h>, but some compilers
10268    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10269    static variable whose address is put into a register that is
10270    clobbered by the vfork.  */
10271 static void
10272 #ifdef __cplusplus
10273 sparc_address_test (int arg)
10274 # else
10275 sparc_address_test (arg) int arg;
10276 #endif
10277 {
10278   static pid_t child;
10279   if (!child) {
10280     child = vfork ();
10281     if (child < 0) {
10282       perror ("vfork");
10283       _exit(2);
10284     }
10285     if (!child) {
10286       arg = getpid();
10287       write(-1, "", 0);
10288       _exit (arg);
10289     }
10290   }
10291 }
10292
10293 int
10294 main ()
10295 {
10296   pid_t parent = getpid ();
10297   pid_t child;
10298
10299   sparc_address_test (0);
10300
10301   child = vfork ();
10302
10303   if (child == 0) {
10304     /* Here is another test for sparc vfork register problems.  This
10305        test uses lots of local variables, at least as many local
10306        variables as main has allocated so far including compiler
10307        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10308        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10309        reuse the register of parent for one of the local variables,
10310        since it will think that parent can't possibly be used any more
10311        in this routine.  Assigning to the local variable will thus
10312        munge parent in the parent process.  */
10313     pid_t
10314       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10315       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10316     /* Convince the compiler that p..p7 are live; otherwise, it might
10317        use the same hardware register for all 8 local variables.  */
10318     if (p != p1 || p != p2 || p != p3 || p != p4
10319         || p != p5 || p != p6 || p != p7)
10320       _exit(1);
10321
10322     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10323        from child file descriptors.  If the child closes a descriptor
10324        before it execs or exits, this munges the parent's descriptor
10325        as well.  Test for this by closing stdout in the child.  */
10326     _exit(close(fileno(stdout)) != 0);
10327   } else {
10328     int status;
10329     struct stat st;
10330
10331     while (wait(&status) != child)
10332       ;
10333     exit(
10334          /* Was there some problem with vforking?  */
10335          child < 0
10336
10337          /* Did the child fail?  (This shouldn't happen.)  */
10338          || status
10339
10340          /* Did the vfork/compiler bug occur?  */
10341          || parent != getpid()
10342
10343          /* Did the file descriptor bug occur?  */
10344          || fstat(fileno(stdout), &st) != 0
10345          );
10346   }
10347 }
10348 _ACEOF
10349 rm -f conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356   (eval $ac_try) 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); }; }; then
10360   ac_cv_func_vfork_works=yes
10361 else
10362   echo "$as_me: program exited with status $ac_status" >&5
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10365
10366 ( exit $ac_status )
10367 ac_cv_func_vfork_works=no
10368 fi
10369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10370 fi
10371 fi
10372 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10373 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10374
10375 fi;
10376 if test "x$ac_cv_func_fork_works" = xcross; then
10377   ac_cv_func_vfork_works=$ac_cv_func_vfork
10378   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10379 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10380 fi
10381
10382 if test "x$ac_cv_func_vfork_works" = xyes; then
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_WORKING_VFORK 1
10386 _ACEOF
10387
10388 else
10389
10390 cat >>confdefs.h <<\_ACEOF
10391 #define vfork fork
10392 _ACEOF
10393
10394 fi
10395 if test "x$ac_cv_func_fork_works" = xyes; then
10396
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_WORKING_FORK 1
10399 _ACEOF
10400
10401 fi
10402
10403
10404
10405       if test "X$prefix" = "XNONE"; then
10406     acl_final_prefix="$ac_default_prefix"
10407   else
10408     acl_final_prefix="$prefix"
10409   fi
10410   if test "X$exec_prefix" = "XNONE"; then
10411     acl_final_exec_prefix='${prefix}'
10412   else
10413     acl_final_exec_prefix="$exec_prefix"
10414   fi
10415   acl_save_prefix="$prefix"
10416   prefix="$acl_final_prefix"
10417   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10418   prefix="$acl_save_prefix"
10419
10420
10421 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10422 if test "${with_gnu_ld+set}" = set; then
10423   withval="$with_gnu_ld"
10424   test "$withval" = no || with_gnu_ld=yes
10425 else
10426   with_gnu_ld=no
10427 fi;
10428 # Prepare PATH_SEPARATOR.
10429 # The user is always right.
10430 if test "${PATH_SEPARATOR+set}" != set; then
10431   echo "#! /bin/sh" >conf$$.sh
10432   echo  "exit 0"   >>conf$$.sh
10433   chmod +x conf$$.sh
10434   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10435     PATH_SEPARATOR=';'
10436   else
10437     PATH_SEPARATOR=:
10438   fi
10439   rm -f conf$$.sh
10440 fi
10441 ac_prog=ld
10442 if test "$GCC" = yes; then
10443   # Check if gcc -print-prog-name=ld gives a path.
10444   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10445 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10446   case $host in
10447   *-*-mingw*)
10448     # gcc leaves a trailing carriage return which upsets mingw
10449     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10450   *)
10451     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10452   esac
10453   case $ac_prog in
10454     # Accept absolute paths.
10455     [\\/]* | [A-Za-z]:[\\/]*)
10456       re_direlt='/[^/][^/]*/\.\./'
10457       # Canonicalize the path of ld
10458       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10459       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10460         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10461       done
10462       test -z "$LD" && LD="$ac_prog"
10463       ;;
10464   "")
10465     # If it fails, then pretend we aren't using GCC.
10466     ac_prog=ld
10467     ;;
10468   *)
10469     # If it is relative, then search for the first ld in PATH.
10470     with_gnu_ld=unknown
10471     ;;
10472   esac
10473 elif test "$with_gnu_ld" = yes; then
10474   echo "$as_me:$LINENO: checking for GNU ld" >&5
10475 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10476 else
10477   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10478 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10479 fi
10480 if test "${acl_cv_path_LD+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   if test -z "$LD"; then
10484   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10485   for ac_dir in $PATH; do
10486     test -z "$ac_dir" && ac_dir=.
10487     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10488       acl_cv_path_LD="$ac_dir/$ac_prog"
10489       # Check to see if the program is GNU ld.  I'd rather use --version,
10490       # but apparently some GNU ld's only accept -v.
10491       # Break only if it was the GNU/non-GNU ld that we prefer.
10492       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10493         test "$with_gnu_ld" != no && break
10494       else
10495         test "$with_gnu_ld" != yes && break
10496       fi
10497     fi
10498   done
10499   IFS="$ac_save_ifs"
10500 else
10501   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10502 fi
10503 fi
10504
10505 LD="$acl_cv_path_LD"
10506 if test -n "$LD"; then
10507   echo "$as_me:$LINENO: result: $LD" >&5
10508 echo "${ECHO_T}$LD" >&6
10509 else
10510   echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10512 fi
10513 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10514 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10515    { (exit 1); exit 1; }; }
10516 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10517 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10518 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10522 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10523   acl_cv_prog_gnu_ld=yes
10524 else
10525   acl_cv_prog_gnu_ld=no
10526 fi
10527 fi
10528 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10529 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10530 with_gnu_ld=$acl_cv_prog_gnu_ld
10531
10532
10533
10534                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10535 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10536 if test "${acl_cv_rpath+set}" = set; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539
10540     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10541     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10542     . ./conftest.sh
10543     rm -f ./conftest.sh
10544     acl_cv_rpath=done
10545
10546 fi
10547 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10548 echo "${ECHO_T}$acl_cv_rpath" >&6
10549   wl="$acl_cv_wl"
10550   libext="$acl_cv_libext"
10551   shlibext="$acl_cv_shlibext"
10552   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10553   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10554   hardcode_direct="$acl_cv_hardcode_direct"
10555   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10556     # Check whether --enable-rpath or --disable-rpath was given.
10557 if test "${enable_rpath+set}" = set; then
10558   enableval="$enable_rpath"
10559   :
10560 else
10561   enable_rpath=yes
10562 fi;
10563
10564
10565
10566
10567
10568
10569
10570     use_additional=yes
10571
10572   acl_save_prefix="$prefix"
10573   prefix="$acl_final_prefix"
10574   acl_save_exec_prefix="$exec_prefix"
10575   exec_prefix="$acl_final_exec_prefix"
10576
10577     eval additional_includedir=\"$includedir\"
10578     eval additional_libdir=\"$libdir\"
10579
10580   exec_prefix="$acl_save_exec_prefix"
10581   prefix="$acl_save_prefix"
10582
10583
10584 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10585 if test "${with_libiconv_prefix+set}" = set; then
10586   withval="$with_libiconv_prefix"
10587
10588     if test "X$withval" = "Xno"; then
10589       use_additional=no
10590     else
10591       if test "X$withval" = "X"; then
10592
10593   acl_save_prefix="$prefix"
10594   prefix="$acl_final_prefix"
10595   acl_save_exec_prefix="$exec_prefix"
10596   exec_prefix="$acl_final_exec_prefix"
10597
10598           eval additional_includedir=\"$includedir\"
10599           eval additional_libdir=\"$libdir\"
10600
10601   exec_prefix="$acl_save_exec_prefix"
10602   prefix="$acl_save_prefix"
10603
10604       else
10605         additional_includedir="$withval/include"
10606         additional_libdir="$withval/lib"
10607       fi
10608     fi
10609
10610 fi;
10611       LIBICONV=
10612   LTLIBICONV=
10613   INCICONV=
10614   rpathdirs=
10615   ltrpathdirs=
10616   names_already_handled=
10617   names_next_round='iconv '
10618   while test -n "$names_next_round"; do
10619     names_this_round="$names_next_round"
10620     names_next_round=
10621     for name in $names_this_round; do
10622       already_handled=
10623       for n in $names_already_handled; do
10624         if test "$n" = "$name"; then
10625           already_handled=yes
10626           break
10627         fi
10628       done
10629       if test -z "$already_handled"; then
10630         names_already_handled="$names_already_handled $name"
10631                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10632         eval value=\"\$HAVE_LIB$uppername\"
10633         if test -n "$value"; then
10634           if test "$value" = yes; then
10635             eval value=\"\$LIB$uppername\"
10636             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10637             eval value=\"\$LTLIB$uppername\"
10638             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10639           else
10640                                     :
10641           fi
10642         else
10643                               found_dir=
10644           found_la=
10645           found_so=
10646           found_a=
10647           if test $use_additional = yes; then
10648             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10649               found_dir="$additional_libdir"
10650               found_so="$additional_libdir/lib$name.$shlibext"
10651               if test -f "$additional_libdir/lib$name.la"; then
10652                 found_la="$additional_libdir/lib$name.la"
10653               fi
10654             else
10655               if test -f "$additional_libdir/lib$name.$libext"; then
10656                 found_dir="$additional_libdir"
10657                 found_a="$additional_libdir/lib$name.$libext"
10658                 if test -f "$additional_libdir/lib$name.la"; then
10659                   found_la="$additional_libdir/lib$name.la"
10660                 fi
10661               fi
10662             fi
10663           fi
10664           if test "X$found_dir" = "X"; then
10665             for x in $LDFLAGS $LTLIBICONV; do
10666
10667   acl_save_prefix="$prefix"
10668   prefix="$acl_final_prefix"
10669   acl_save_exec_prefix="$exec_prefix"
10670   exec_prefix="$acl_final_exec_prefix"
10671   eval x=\"$x\"
10672   exec_prefix="$acl_save_exec_prefix"
10673   prefix="$acl_save_prefix"
10674
10675               case "$x" in
10676                 -L*)
10677                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10678                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10679                     found_dir="$dir"
10680                     found_so="$dir/lib$name.$shlibext"
10681                     if test -f "$dir/lib$name.la"; then
10682                       found_la="$dir/lib$name.la"
10683                     fi
10684                   else
10685                     if test -f "$dir/lib$name.$libext"; then
10686                       found_dir="$dir"
10687                       found_a="$dir/lib$name.$libext"
10688                       if test -f "$dir/lib$name.la"; then
10689                         found_la="$dir/lib$name.la"
10690                       fi
10691                     fi
10692                   fi
10693                   ;;
10694               esac
10695               if test "X$found_dir" != "X"; then
10696                 break
10697               fi
10698             done
10699           fi
10700           if test "X$found_dir" != "X"; then
10701                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10702             if test "X$found_so" != "X"; then
10703                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10704                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10705               else
10706                                                                                 haveit=
10707                 for x in $ltrpathdirs; do
10708                   if test "X$x" = "X$found_dir"; then
10709                     haveit=yes
10710                     break
10711                   fi
10712                 done
10713                 if test -z "$haveit"; then
10714                   ltrpathdirs="$ltrpathdirs $found_dir"
10715                 fi
10716                                 if test "$hardcode_direct" = yes; then
10717                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10718                 else
10719                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10720                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10721                                                             haveit=
10722                     for x in $rpathdirs; do
10723                       if test "X$x" = "X$found_dir"; then
10724                         haveit=yes
10725                         break
10726                       fi
10727                     done
10728                     if test -z "$haveit"; then
10729                       rpathdirs="$rpathdirs $found_dir"
10730                     fi
10731                   else
10732                                                                                 haveit=
10733                     for x in $LDFLAGS $LIBICONV; do
10734
10735   acl_save_prefix="$prefix"
10736   prefix="$acl_final_prefix"
10737   acl_save_exec_prefix="$exec_prefix"
10738   exec_prefix="$acl_final_exec_prefix"
10739   eval x=\"$x\"
10740   exec_prefix="$acl_save_exec_prefix"
10741   prefix="$acl_save_prefix"
10742
10743                       if test "X$x" = "X-L$found_dir"; then
10744                         haveit=yes
10745                         break
10746                       fi
10747                     done
10748                     if test -z "$haveit"; then
10749                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10750                     fi
10751                     if test "$hardcode_minus_L" != no; then
10752                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10753                     else
10754                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10755                     fi
10756                   fi
10757                 fi
10758               fi
10759             else
10760               if test "X$found_a" != "X"; then
10761                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10762               else
10763                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10764               fi
10765             fi
10766                         additional_includedir=
10767             case "$found_dir" in
10768               */lib | */lib/)
10769                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10770                 additional_includedir="$basedir/include"
10771                 ;;
10772             esac
10773             if test "X$additional_includedir" != "X"; then
10774                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10775                 haveit=
10776                 if test "X$additional_includedir" = "X/usr/local/include"; then
10777                   if test -n "$GCC"; then
10778                     case $host_os in
10779                       linux*) haveit=yes;;
10780                     esac
10781                   fi
10782                 fi
10783                 if test -z "$haveit"; then
10784                   for x in $CPPFLAGS $INCICONV; do
10785
10786   acl_save_prefix="$prefix"
10787   prefix="$acl_final_prefix"
10788   acl_save_exec_prefix="$exec_prefix"
10789   exec_prefix="$acl_final_exec_prefix"
10790   eval x=\"$x\"
10791   exec_prefix="$acl_save_exec_prefix"
10792   prefix="$acl_save_prefix"
10793
10794                     if test "X$x" = "X-I$additional_includedir"; then
10795                       haveit=yes
10796                       break
10797                     fi
10798                   done
10799                   if test -z "$haveit"; then
10800                     if test -d "$additional_includedir"; then
10801                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10802                     fi
10803                   fi
10804                 fi
10805               fi
10806             fi
10807                         if test -n "$found_la"; then
10808                                                         save_libdir="$libdir"
10809               case "$found_la" in
10810                 */* | *\\*) . "$found_la" ;;
10811                 *) . "./$found_la" ;;
10812               esac
10813               libdir="$save_libdir"
10814                             for dep in $dependency_libs; do
10815                 case "$dep" in
10816                   -L*)
10817                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10818                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10819                       haveit=
10820                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10821                         if test -n "$GCC"; then
10822                           case $host_os in
10823                             linux*) haveit=yes;;
10824                           esac
10825                         fi
10826                       fi
10827                       if test -z "$haveit"; then
10828                         haveit=
10829                         for x in $LDFLAGS $LIBICONV; do
10830
10831   acl_save_prefix="$prefix"
10832   prefix="$acl_final_prefix"
10833   acl_save_exec_prefix="$exec_prefix"
10834   exec_prefix="$acl_final_exec_prefix"
10835   eval x=\"$x\"
10836   exec_prefix="$acl_save_exec_prefix"
10837   prefix="$acl_save_prefix"
10838
10839                           if test "X$x" = "X-L$additional_libdir"; then
10840                             haveit=yes
10841                             break
10842                           fi
10843                         done
10844                         if test -z "$haveit"; then
10845                           if test -d "$additional_libdir"; then
10846                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10847                           fi
10848                         fi
10849                         haveit=
10850                         for x in $LDFLAGS $LTLIBICONV; do
10851
10852   acl_save_prefix="$prefix"
10853   prefix="$acl_final_prefix"
10854   acl_save_exec_prefix="$exec_prefix"
10855   exec_prefix="$acl_final_exec_prefix"
10856   eval x=\"$x\"
10857   exec_prefix="$acl_save_exec_prefix"
10858   prefix="$acl_save_prefix"
10859
10860                           if test "X$x" = "X-L$additional_libdir"; then
10861                             haveit=yes
10862                             break
10863                           fi
10864                         done
10865                         if test -z "$haveit"; then
10866                           if test -d "$additional_libdir"; then
10867                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10868                           fi
10869                         fi
10870                       fi
10871                     fi
10872                     ;;
10873                   -R*)
10874                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10875                     if test "$enable_rpath" != no; then
10876                                                                   haveit=
10877                       for x in $rpathdirs; do
10878                         if test "X$x" = "X$dir"; then
10879                           haveit=yes
10880                           break
10881                         fi
10882                       done
10883                       if test -z "$haveit"; then
10884                         rpathdirs="$rpathdirs $dir"
10885                       fi
10886                                                                   haveit=
10887                       for x in $ltrpathdirs; do
10888                         if test "X$x" = "X$dir"; then
10889                           haveit=yes
10890                           break
10891                         fi
10892                       done
10893                       if test -z "$haveit"; then
10894                         ltrpathdirs="$ltrpathdirs $dir"
10895                       fi
10896                     fi
10897                     ;;
10898                   -l*)
10899                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10900                     ;;
10901                   *.la)
10902                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10903                     ;;
10904                   *)
10905                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10906                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10907                     ;;
10908                 esac
10909               done
10910             fi
10911           else
10912                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10913             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10914           fi
10915         fi
10916       fi
10917     done
10918   done
10919   if test "X$rpathdirs" != "X"; then
10920     if test -n "$hardcode_libdir_separator"; then
10921                         alldirs=
10922       for found_dir in $rpathdirs; do
10923         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10924       done
10925             acl_save_libdir="$libdir"
10926       libdir="$alldirs"
10927       eval flag=\"$hardcode_libdir_flag_spec\"
10928       libdir="$acl_save_libdir"
10929       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10930     else
10931             for found_dir in $rpathdirs; do
10932         acl_save_libdir="$libdir"
10933         libdir="$found_dir"
10934         eval flag=\"$hardcode_libdir_flag_spec\"
10935         libdir="$acl_save_libdir"
10936         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10937       done
10938     fi
10939   fi
10940   if test "X$ltrpathdirs" != "X"; then
10941             for found_dir in $ltrpathdirs; do
10942       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10943     done
10944   fi
10945
10946
10947
10948
10949
10950
10951
10952           am_save_CPPFLAGS="$CPPFLAGS"
10953
10954   for element in $INCICONV; do
10955     haveit=
10956     for x in $CPPFLAGS; do
10957
10958   acl_save_prefix="$prefix"
10959   prefix="$acl_final_prefix"
10960   acl_save_exec_prefix="$exec_prefix"
10961   exec_prefix="$acl_final_exec_prefix"
10962   eval x=\"$x\"
10963   exec_prefix="$acl_save_exec_prefix"
10964   prefix="$acl_save_prefix"
10965
10966       if test "X$x" = "X$element"; then
10967         haveit=yes
10968         break
10969       fi
10970     done
10971     if test -z "$haveit"; then
10972       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10973     fi
10974   done
10975
10976
10977   echo "$as_me:$LINENO: checking for iconv" >&5
10978 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10979 if test "${am_cv_func_iconv+set}" = set; then
10980   echo $ECHO_N "(cached) $ECHO_C" >&6
10981 else
10982
10983     am_cv_func_iconv="no, consider installing GNU libiconv"
10984     am_cv_lib_iconv=no
10985     cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991 #include <stdlib.h>
10992 #include <iconv.h>
10993 int
10994 main ()
10995 {
10996 iconv_t cd = iconv_open("","");
10997        iconv(cd,NULL,NULL,NULL,NULL);
10998        iconv_close(cd);
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005   (eval $ac_link) 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } &&
11012          { ac_try='test -z "$ac_c_werror_flag"
11013                          || test ! -s conftest.err'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; } &&
11019          { ac_try='test -s conftest$ac_exeext'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }; then
11025   am_cv_func_iconv=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 fi
11031 rm -f conftest.err conftest.$ac_objext \
11032       conftest$ac_exeext conftest.$ac_ext
11033     if test "$am_cv_func_iconv" != yes; then
11034       am_save_LIBS="$LIBS"
11035       LIBS="$LIBS $LIBICONV"
11036       cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h.  */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h.  */
11042 #include <stdlib.h>
11043 #include <iconv.h>
11044 int
11045 main ()
11046 {
11047 iconv_t cd = iconv_open("","");
11048          iconv(cd,NULL,NULL,NULL,NULL);
11049          iconv_close(cd);
11050   ;
11051   return 0;
11052 }
11053 _ACEOF
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056   (eval $ac_link) 2>conftest.er1
11057   ac_status=$?
11058   grep -v '^ *+' conftest.er1 >conftest.err
11059   rm -f conftest.er1
11060   cat conftest.err >&5
11061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062   (exit $ac_status); } &&
11063          { ac_try='test -z "$ac_c_werror_flag"
11064                          || test ! -s conftest.err'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; } &&
11070          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11076   am_cv_lib_iconv=yes
11077         am_cv_func_iconv=yes
11078 else
11079   echo "$as_me: failed program was:" >&5
11080 sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 fi
11083 rm -f conftest.err conftest.$ac_objext \
11084       conftest$ac_exeext conftest.$ac_ext
11085       LIBS="$am_save_LIBS"
11086     fi
11087
11088 fi
11089 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11090 echo "${ECHO_T}$am_cv_func_iconv" >&6
11091   if test "$am_cv_func_iconv" = yes; then
11092
11093 cat >>confdefs.h <<\_ACEOF
11094 #define HAVE_ICONV 1
11095 _ACEOF
11096
11097   fi
11098   if test "$am_cv_lib_iconv" = yes; then
11099     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11100 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11101     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11102 echo "${ECHO_T}$LIBICONV" >&6
11103   else
11104             CPPFLAGS="$am_save_CPPFLAGS"
11105     LIBICONV=
11106     LTLIBICONV=
11107   fi
11108
11109
11110
11111   if test "$am_cv_func_iconv" = yes; then
11112     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11113 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11114     if test "${am_cv_proto_iconv+set}" = set; then
11115   echo $ECHO_N "(cached) $ECHO_C" >&6
11116 else
11117
11118       cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124
11125 #include <stdlib.h>
11126 #include <iconv.h>
11127 extern
11128 #ifdef __cplusplus
11129 "C"
11130 #endif
11131 #if defined(__STDC__) || defined(__cplusplus)
11132 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11133 #else
11134 size_t iconv();
11135 #endif
11136
11137 int
11138 main ()
11139 {
11140
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147   (eval $ac_compile) 2>conftest.er1
11148   ac_status=$?
11149   grep -v '^ *+' conftest.er1 >conftest.err
11150   rm -f conftest.er1
11151   cat conftest.err >&5
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); } &&
11154          { ac_try='test -z "$ac_c_werror_flag"
11155                          || test ! -s conftest.err'
11156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157   (eval $ac_try) 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; } &&
11161          { ac_try='test -s conftest.$ac_objext'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; }; then
11167   am_cv_proto_iconv_arg1=""
11168 else
11169   echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 am_cv_proto_iconv_arg1="const"
11173 fi
11174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11175       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);"
11176 fi
11177
11178     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11179     echo "$as_me:$LINENO: result: ${ac_t:-
11180          }$am_cv_proto_iconv" >&5
11181 echo "${ECHO_T}${ac_t:-
11182          }$am_cv_proto_iconv" >&6
11183
11184 cat >>confdefs.h <<_ACEOF
11185 #define ICONV_CONST $am_cv_proto_iconv_arg1
11186 _ACEOF
11187
11188   fi
11189
11190 # Until we have in-tree GNU iconv:
11191 LIBICONV_DEP=
11192
11193
11194
11195   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11196 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11197 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11198   echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200   cat >conftest.$ac_ext <<_ACEOF
11201 /* confdefs.h.  */
11202 _ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h.  */
11206 #include <locale.h>
11207 int
11208 main ()
11209 {
11210 return LC_MESSAGES
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 rm -f conftest.$ac_objext conftest$ac_exeext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11217   (eval $ac_link) 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } &&
11224          { ac_try='test -z "$ac_c_werror_flag"
11225                          || test ! -s conftest.err'
11226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11227   (eval $ac_try) 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; } &&
11231          { ac_try='test -s conftest$ac_exeext'
11232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233   (eval $ac_try) 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   am_cv_val_LC_MESSAGES=yes
11238 else
11239   echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 am_cv_val_LC_MESSAGES=no
11243 fi
11244 rm -f conftest.err conftest.$ac_objext \
11245       conftest$ac_exeext conftest.$ac_ext
11246 fi
11247 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11248 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11249   if test $am_cv_val_LC_MESSAGES = yes; then
11250
11251 cat >>confdefs.h <<\_ACEOF
11252 #define HAVE_LC_MESSAGES 1
11253 _ACEOF
11254
11255   fi
11256
11257
11258
11259   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11260 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11261 if test "${am_cv_langinfo_codeset+set}" = set; then
11262   echo $ECHO_N "(cached) $ECHO_C" >&6
11263 else
11264   cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 #include <langinfo.h>
11271 int
11272 main ()
11273 {
11274 char* cs = nl_langinfo(CODESET);
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281   (eval $ac_link) 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } &&
11288          { ac_try='test -z "$ac_c_werror_flag"
11289                          || test ! -s conftest.err'
11290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291   (eval $ac_try) 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); }; } &&
11295          { ac_try='test -s conftest$ac_exeext'
11296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297   (eval $ac_try) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); }; }; then
11301   am_cv_langinfo_codeset=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306 am_cv_langinfo_codeset=no
11307 fi
11308 rm -f conftest.err conftest.$ac_objext \
11309       conftest$ac_exeext conftest.$ac_ext
11310
11311 fi
11312 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11313 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11314   if test $am_cv_langinfo_codeset = yes; then
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_LANGINFO_CODESET 1
11318 _ACEOF
11319
11320   fi
11321
11322
11323 # We will need to find libiberty.h and ansidecl.h
11324 saved_CFLAGS="$CFLAGS"
11325 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11366         strsignal strstr strverscmp \
11367         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11368         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
11369 do
11370   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11371 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11372 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11373 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 #undef $ac_tr_decl
11383 #define $ac_tr_decl 1
11384
11385 #include "ansidecl.h"
11386 #include "system.h"
11387
11388 int
11389 main ()
11390 {
11391 #ifndef $ac_func
11392 char *(*pfn) = (char *(*)) $ac_func ;
11393 #endif
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 rm -f conftest.$ac_objext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400   (eval $ac_compile) 2>conftest.er1
11401   ac_status=$?
11402   grep -v '^ *+' conftest.er1 >conftest.err
11403   rm -f conftest.er1
11404   cat conftest.err >&5
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } &&
11407          { ac_try='test -z "$ac_c_werror_flag"
11408                          || test ! -s conftest.err'
11409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410   (eval $ac_try) 2>&5
11411   ac_status=$?
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); }; } &&
11414          { ac_try='test -s conftest.$ac_objext'
11415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11416   (eval $ac_try) 2>&5
11417   ac_status=$?
11418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419   (exit $ac_status); }; }; then
11420   eval "gcc_cv_have_decl_$ac_func=yes"
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425 eval "gcc_cv_have_decl_$ac_func=no"
11426 fi
11427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11428 fi
11429
11430 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11431   echo "$as_me:$LINENO: result: yes" >&5
11432 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11433 #define $ac_tr_decl 1
11434 _ACEOF
11435
11436 else
11437   echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11439 #define $ac_tr_decl 0
11440 _ACEOF
11441
11442 fi
11443
11444 done
11445
11446
11447
11448
11449
11450 for ac_func in getrlimit setrlimit getrusage
11451 do
11452   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11453 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11454 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11455 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 #undef $ac_tr_decl
11465 #define $ac_tr_decl 1
11466
11467 #include "ansidecl.h"
11468 #include "system.h"
11469 #ifdef HAVE_SYS_RESOURCE_H
11470 #include <sys/resource.h>
11471 #endif
11472
11473
11474 int
11475 main ()
11476 {
11477 #ifndef $ac_func
11478 char *(*pfn) = (char *(*)) $ac_func ;
11479 #endif
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486   (eval $ac_compile) 2>conftest.er1
11487   ac_status=$?
11488   grep -v '^ *+' conftest.er1 >conftest.err
11489   rm -f conftest.er1
11490   cat conftest.err >&5
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); } &&
11493          { ac_try='test -z "$ac_c_werror_flag"
11494                          || test ! -s conftest.err'
11495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496   (eval $ac_try) 2>&5
11497   ac_status=$?
11498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499   (exit $ac_status); }; } &&
11500          { ac_try='test -s conftest.$ac_objext'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; }; then
11506   eval "gcc_cv_have_decl_$ac_func=yes"
11507 else
11508   echo "$as_me: failed program was:" >&5
11509 sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 eval "gcc_cv_have_decl_$ac_func=no"
11512 fi
11513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11514 fi
11515
11516 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11517   echo "$as_me:$LINENO: result: yes" >&5
11518 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11519 #define $ac_tr_decl 1
11520 _ACEOF
11521
11522 else
11523   echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11525 #define $ac_tr_decl 0
11526 _ACEOF
11527
11528 fi
11529
11530 done
11531
11532
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539
11540 #include "ansidecl.h"
11541 #include "system.h"
11542 #ifdef HAVE_SYS_RESOURCE_H
11543 #include <sys/resource.h>
11544 #endif
11545
11546 int
11547 main ()
11548 {
11549 rlim_t l = 0;
11550   ;
11551   return 0;
11552 }
11553 _ACEOF
11554 rm -f conftest.$ac_objext
11555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11556   (eval $ac_compile) 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -z "$ac_c_werror_flag"
11564                          || test ! -s conftest.err'
11565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566   (eval $ac_try) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; } &&
11570          { ac_try='test -s conftest.$ac_objext'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   :
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581
11582 cat >>confdefs.h <<\_ACEOF
11583 #define rlim_t long
11584 _ACEOF
11585
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588
11589 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11590 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11591 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11592 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11593
11594 for ac_func in ldgetname
11595 do
11596   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11597 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11598 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11599 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h.  */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h.  */
11608 #undef $ac_tr_decl
11609 #define $ac_tr_decl 1
11610
11611 #include "ansidecl.h"
11612 #include "system.h"
11613 #ifdef HAVE_LDFCN_H
11614 #undef FREAD
11615 #undef FWRITE
11616 #include <ldfcn.h>
11617 #endif
11618
11619
11620 int
11621 main ()
11622 {
11623 #ifndef $ac_func
11624 char *(*pfn) = (char *(*)) $ac_func ;
11625 #endif
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext
11631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632   (eval $ac_compile) 2>conftest.er1
11633   ac_status=$?
11634   grep -v '^ *+' conftest.er1 >conftest.err
11635   rm -f conftest.er1
11636   cat conftest.err >&5
11637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638   (exit $ac_status); } &&
11639          { ac_try='test -z "$ac_c_werror_flag"
11640                          || test ! -s conftest.err'
11641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642   (eval $ac_try) 2>&5
11643   ac_status=$?
11644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645   (exit $ac_status); }; } &&
11646          { ac_try='test -s conftest.$ac_objext'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; }; then
11652   eval "gcc_cv_have_decl_$ac_func=yes"
11653 else
11654   echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11656
11657 eval "gcc_cv_have_decl_$ac_func=no"
11658 fi
11659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11660 fi
11661
11662 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11663   echo "$as_me:$LINENO: result: yes" >&5
11664 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11665 #define $ac_tr_decl 1
11666 _ACEOF
11667
11668 else
11669   echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11671 #define $ac_tr_decl 0
11672 _ACEOF
11673
11674 fi
11675
11676 done
11677
11678
11679
11680 for ac_func in times
11681 do
11682   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11683 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11684 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11685 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11686   echo $ECHO_N "(cached) $ECHO_C" >&6
11687 else
11688   cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 #undef $ac_tr_decl
11695 #define $ac_tr_decl 1
11696
11697 #include "ansidecl.h"
11698 #include "system.h"
11699 #ifdef HAVE_SYS_TIMES_H
11700 #include <sys/times.h>
11701 #endif
11702
11703
11704 int
11705 main ()
11706 {
11707 #ifndef $ac_func
11708 char *(*pfn) = (char *(*)) $ac_func ;
11709 #endif
11710   ;
11711   return 0;
11712 }
11713 _ACEOF
11714 rm -f conftest.$ac_objext
11715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11716   (eval $ac_compile) 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } &&
11723          { ac_try='test -z "$ac_c_werror_flag"
11724                          || test ! -s conftest.err'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; } &&
11730          { ac_try='test -s conftest.$ac_objext'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   eval "gcc_cv_have_decl_$ac_func=yes"
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 eval "gcc_cv_have_decl_$ac_func=no"
11742 fi
11743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11744 fi
11745
11746 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11747   echo "$as_me:$LINENO: result: yes" >&5
11748 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11749 #define $ac_tr_decl 1
11750 _ACEOF
11751
11752 else
11753   echo "$as_me:$LINENO: result: no" >&5
11754 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11755 #define $ac_tr_decl 0
11756 _ACEOF
11757
11758 fi
11759
11760 done
11761
11762
11763
11764 for ac_func in sigaltstack
11765 do
11766   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11767 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11768 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11769 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11770   echo $ECHO_N "(cached) $ECHO_C" >&6
11771 else
11772   cat >conftest.$ac_ext <<_ACEOF
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 #undef $ac_tr_decl
11779 #define $ac_tr_decl 1
11780
11781 #include "ansidecl.h"
11782 #include "system.h"
11783 #include <signal.h>
11784
11785
11786 int
11787 main ()
11788 {
11789 #ifndef $ac_func
11790 char *(*pfn) = (char *(*)) $ac_func ;
11791 #endif
11792   ;
11793   return 0;
11794 }
11795 _ACEOF
11796 rm -f conftest.$ac_objext
11797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11798   (eval $ac_compile) 2>conftest.er1
11799   ac_status=$?
11800   grep -v '^ *+' conftest.er1 >conftest.err
11801   rm -f conftest.er1
11802   cat conftest.err >&5
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); } &&
11805          { ac_try='test -z "$ac_c_werror_flag"
11806                          || test ! -s conftest.err'
11807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808   (eval $ac_try) 2>&5
11809   ac_status=$?
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); }; } &&
11812          { ac_try='test -s conftest.$ac_objext'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; }; then
11818   eval "gcc_cv_have_decl_$ac_func=yes"
11819 else
11820   echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11822
11823 eval "gcc_cv_have_decl_$ac_func=no"
11824 fi
11825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11826 fi
11827
11828 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11829   echo "$as_me:$LINENO: result: yes" >&5
11830 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11831 #define $ac_tr_decl 1
11832 _ACEOF
11833
11834 else
11835   echo "$as_me:$LINENO: result: no" >&5
11836 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11837 #define $ac_tr_decl 0
11838 _ACEOF
11839
11840 fi
11841
11842 done
11843
11844
11845 # More time-related stuff.
11846 echo "$as_me:$LINENO: checking for struct tms" >&5
11847 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11848 if test "${ac_cv_struct_tms+set}" = set; then
11849   echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h.  */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h.  */
11858
11859 #include "ansidecl.h"
11860 #include "system.h"
11861 #ifdef HAVE_SYS_TIMES_H
11862 #include <sys/times.h>
11863 #endif
11864
11865 int
11866 main ()
11867 {
11868 struct tms tms;
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875   (eval $ac_compile) 2>conftest.er1
11876   ac_status=$?
11877   grep -v '^ *+' conftest.er1 >conftest.err
11878   rm -f conftest.er1
11879   cat conftest.err >&5
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); } &&
11882          { ac_try='test -z "$ac_c_werror_flag"
11883                          || test ! -s conftest.err'
11884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885   (eval $ac_try) 2>&5
11886   ac_status=$?
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); }; } &&
11889          { ac_try='test -s conftest.$ac_objext'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; }; then
11895   ac_cv_struct_tms=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_cv_struct_tms=no
11901 fi
11902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11903 fi
11904 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11905 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11906 if test $ac_cv_struct_tms = yes; then
11907
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_STRUCT_TMS 1
11910 _ACEOF
11911
11912 fi
11913
11914 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11915 # revisit after autoconf 2.50.
11916 echo "$as_me:$LINENO: checking for clock_t" >&5
11917 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11918 if test "${gcc_cv_type_clock_t+set}" = set; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h.  */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h.  */
11928
11929 #include "ansidecl.h"
11930 #include "system.h"
11931
11932 int
11933 main ()
11934 {
11935 clock_t x;
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942   (eval $ac_compile) 2>conftest.er1
11943   ac_status=$?
11944   grep -v '^ *+' conftest.er1 >conftest.err
11945   rm -f conftest.er1
11946   cat conftest.err >&5
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); } &&
11949          { ac_try='test -z "$ac_c_werror_flag"
11950                          || test ! -s conftest.err'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; } &&
11956          { ac_try='test -s conftest.$ac_objext'
11957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958   (eval $ac_try) 2>&5
11959   ac_status=$?
11960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961   (exit $ac_status); }; }; then
11962   gcc_cv_type_clock_t=yes
11963 else
11964   echo "$as_me: failed program was:" >&5
11965 sed 's/^/| /' conftest.$ac_ext >&5
11966
11967 gcc_cv_type_clock_t=no
11968 fi
11969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11970 fi
11971 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
11972 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
11973 if test $gcc_cv_type_clock_t = yes; then
11974
11975 cat >>confdefs.h <<\_ACEOF
11976 #define HAVE_CLOCK_T 1
11977 _ACEOF
11978
11979 fi
11980
11981 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11982 CFLAGS="$saved_CFLAGS"
11983
11984 # Check whether --enable-initfini-array or --disable-initfini-array was given.
11985 if test "${enable_initfini_array+set}" = set; then
11986   enableval="$enable_initfini_array"
11987
11988 else
11989
11990 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
11991 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
11992 if test "${gcc_cv_initfini_array+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995     if test "$cross_compiling" = yes; then
11996   gcc_cv_initfini_array=no
11997 else
11998   cat >conftest.$ac_ext <<_ACEOF
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004
12005 static int x = -1;
12006 int main (void) { return x; }
12007 int foo (void) { x = 0; }
12008 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12009 _ACEOF
12010 rm -f conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012   (eval $ac_link) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   gcc_cv_initfini_array=yes
12022 else
12023   echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 ( exit $ac_status )
12028 gcc_cv_initfini_array=no
12029 fi
12030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12031 fi
12032 fi
12033 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12034 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12035   enable_initfini_array=$gcc_cv_initfini_array
12036
12037 fi;
12038 if test $enable_initfini_array = yes; then
12039
12040 cat >>confdefs.h <<\_ACEOF
12041 #define HAVE_INITFINI_ARRAY 1
12042 _ACEOF
12043
12044 fi
12045
12046 # mkdir takes a single argument on some systems.
12047 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12048 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12049 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h.  */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h.  */
12058
12059 #include <sys/types.h>
12060 #ifdef HAVE_SYS_STAT_H
12061 # include <sys/stat.h>
12062 #endif
12063 #ifdef HAVE_UNISTD_H
12064 # include <unistd.h>
12065 #endif
12066 #ifdef HAVE_DIRECT_H
12067 # include <direct.h>
12068 #endif
12069 int
12070 main ()
12071 {
12072 mkdir ("foo", 0);
12073   ;
12074   return 0;
12075 }
12076 _ACEOF
12077 rm -f conftest.$ac_objext
12078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079   (eval $ac_compile) 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } &&
12086          { ac_try='test -z "$ac_c_werror_flag"
12087                          || test ! -s conftest.err'
12088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089   (eval $ac_try) 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; } &&
12093          { ac_try='test -s conftest.$ac_objext'
12094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095   (eval $ac_try) 2>&5
12096   ac_status=$?
12097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098   (exit $ac_status); }; }; then
12099   gcc_cv_mkdir_takes_one_arg=no
12100 else
12101   echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12103
12104 gcc_cv_mkdir_takes_one_arg=yes
12105 fi
12106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12107 fi
12108 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12109 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12110 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12111
12112 cat >>confdefs.h <<\_ACEOF
12113 #define MKDIR_TAKES_ONE_ARG 1
12114 _ACEOF
12115
12116 fi
12117
12118
12119 # File extensions
12120 manext='.1'
12121 objext='.o'
12122
12123
12124
12125 # With Setjmp/Longjmp based exception handling.
12126 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12127 if test "${enable_sjlj_exceptions+set}" = set; then
12128   enableval="$enable_sjlj_exceptions"
12129   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12130
12131 cat >>confdefs.h <<_ACEOF
12132 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12133 _ACEOF
12134
12135 fi;
12136
12137 # For platforms with the unwind ABI which includes an unwind library,
12138 # libunwind, we can choose to use the system libunwind.
12139
12140 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12141 if test "${with_system_libunwind+set}" = set; then
12142   withval="$with_system_libunwind"
12143
12144 fi;
12145
12146 # config.gcc also contains tests of with_system_libunwind.
12147 if test x$with_system_libunwind = xyes; then
12148
12149 cat >>confdefs.h <<\_ACEOF
12150 #define HAVE_GETIPINFO 1
12151 _ACEOF
12152
12153 fi
12154
12155 # --------------------------------------------------------
12156 # Build, host, and target specific configuration fragments
12157 # --------------------------------------------------------
12158
12159 # Collect build-machine-specific information.
12160 . ${srcdir}/config.build
12161
12162 # Collect host-machine-specific information.
12163 . ${srcdir}/config.host
12164
12165 target_gtfiles=
12166
12167 # Collect target-machine-specific information.
12168 . ${srcdir}/config.gcc
12169
12170 extra_objs="${host_extra_objs} ${extra_objs}"
12171 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12172
12173 # Default the target-machine variables that were not explicitly set.
12174 if test x"$tm_file" = x
12175 then tm_file=$cpu_type/$cpu_type.h; fi
12176
12177 if test x"$extra_headers" = x
12178 then extra_headers=; fi
12179
12180 if test x$md_file = x
12181 then md_file=$cpu_type/$cpu_type.md; fi
12182
12183 if test x$out_file = x
12184 then out_file=$cpu_type/$cpu_type.c; fi
12185
12186 if test x"$tmake_file" = x
12187 then tmake_file=$cpu_type/t-$cpu_type
12188 fi
12189
12190 if test x"$dwarf2" = xyes
12191 then tm_file="$tm_file tm-dwarf2.h"
12192 fi
12193
12194 # Say what files are being used for the output code and MD file.
12195 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12196 echo "Using \`$srcdir/config/$md_file' as machine description file."
12197
12198 # If any of the xm_file variables contain nonexistent files, warn
12199 # about them and drop them.
12200
12201 bx=
12202 for x in $build_xm_file; do
12203   if    test -f $srcdir/config/$x
12204   then      bx="$bx $x"
12205   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12206 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12207   fi
12208 done
12209 build_xm_file="$bx"
12210
12211 hx=
12212 for x in $host_xm_file; do
12213   if    test -f $srcdir/config/$x
12214   then      hx="$hx $x"
12215   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12216 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12217   fi
12218 done
12219 host_xm_file="$hx"
12220
12221 tx=
12222 for x in $xm_file; do
12223   if    test -f $srcdir/config/$x
12224   then      tx="$tx $x"
12225   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12226 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12227   fi
12228 done
12229 xm_file="$tx"
12230
12231 count=a
12232 for f in $tm_file; do
12233         count=${count}x
12234 done
12235 if test $count = ax; then
12236         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12237 else
12238         echo "Using the following target machine macro files:"
12239         for f in $tm_file; do
12240                 echo "  $srcdir/config/$f"
12241         done
12242 fi
12243
12244 if test x$need_64bit_hwint = xyes; then
12245
12246 cat >>confdefs.h <<\_ACEOF
12247 #define NEED_64BIT_HOST_WIDE_INT 1
12248 _ACEOF
12249
12250 fi
12251
12252 if test x$use_long_long_for_widest_fast_int = xyes; then
12253
12254 cat >>confdefs.h <<\_ACEOF
12255 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12256 _ACEOF
12257
12258 fi
12259
12260 count=a
12261 for f in $host_xm_file; do
12262         count=${count}x
12263 done
12264 if test $count = a; then
12265         :
12266 elif test $count = ax; then
12267         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12268 else
12269         echo "Using the following host machine macro files:"
12270         for f in $host_xm_file; do
12271                 echo "  $srcdir/config/$f"
12272         done
12273 fi
12274 echo "Using ${out_host_hook_obj} for host machine hooks."
12275
12276 if test "$host_xm_file" != "$build_xm_file"; then
12277         count=a
12278         for f in $build_xm_file; do
12279                 count=${count}x
12280         done
12281         if test $count = a; then
12282                 :
12283         elif test $count = ax; then
12284                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12285         else
12286                 echo "Using the following build machine macro files:"
12287                 for f in $build_xm_file; do
12288                         echo "  $srcdir/config/$f"
12289                 done
12290         fi
12291 fi
12292
12293 case ${host} in
12294   powerpc*-*-darwin*)
12295     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12296 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12297 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   cat >conftest.$ac_ext <<_ACEOF
12301
12302 #include <sys/cdefs.h>
12303 #include <sys/signal.h>
12304 #include <ucontext.h>
12305 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12306
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12310   (eval $ac_compile) 2>conftest.er1
12311   ac_status=$?
12312   grep -v '^ *+' conftest.er1 >conftest.err
12313   rm -f conftest.er1
12314   cat conftest.err >&5
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); } &&
12317          { ac_try='test -z "$ac_c_werror_flag"
12318                          || test ! -s conftest.err'
12319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320   (eval $ac_try) 2>&5
12321   ac_status=$?
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); }; } &&
12324          { ac_try='test -s conftest.$ac_objext'
12325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326   (eval $ac_try) 2>&5
12327   ac_status=$?
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); }; }; then
12330   gcc_cv_mcontext_underscores=no
12331 else
12332   echo "$as_me: failed program was:" >&5
12333 sed 's/^/| /' conftest.$ac_ext >&5
12334
12335 gcc_cv_mcontext_underscores=yes
12336 fi
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12338 fi
12339 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12340 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12341       if test $gcc_cv_mcontext_underscores = yes; then
12342
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAS_MCONTEXT_T_UNDERSCORES
12345 _ACEOF
12346
12347       fi
12348     ;;
12349 esac
12350
12351 # ---------
12352 # Threading
12353 # ---------
12354
12355 # Check if a valid thread package
12356 case ${enable_threads} in
12357   "" | no)
12358     # No threads
12359     target_thread_file='single'
12360     ;;
12361   yes)
12362     # default
12363     target_thread_file='single'
12364     ;;
12365   aix | dce | gnat | irix | posix | posix95 | rtems | \
12366   single | solaris | vxworks | win32 )
12367     target_thread_file=${enable_threads}
12368     ;;
12369   *)
12370     echo "${enable_threads} is an unknown thread package" 1>&2
12371     exit 1
12372     ;;
12373 esac
12374
12375 if test x${thread_file} = x; then
12376   # No thread file set by target-specific clauses in config.gcc,
12377   # so use file chosen by default logic above
12378   thread_file=${target_thread_file}
12379 fi
12380
12381 # Make gthr-default.h if we have a thread file.
12382 gthread_flags=
12383 if test $thread_file != single; then
12384   rm -f gthr-default.h
12385   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12386   gthread_flags=-DHAVE_GTHR_DEFAULT
12387 fi
12388
12389
12390 # --------
12391 # UNSORTED
12392 # --------
12393
12394 use_cxa_atexit=no
12395 if test x$enable___cxa_atexit = xyes || \
12396    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12397   if test x$host = x$target; then
12398     case $host in
12399       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12400       # keyed to flag_use_cxa_atexit
12401       *-*-mingw32*)
12402         use_cxa_atexit=yes
12403         ;;
12404       *)
12405         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12406 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12407 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12408   echo $ECHO_N "(cached) $ECHO_C" >&6
12409 else
12410   cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h.  */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h.  */
12416 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12418 #define __cxa_atexit innocuous___cxa_atexit
12419
12420 /* System header to define __stub macros and hopefully few prototypes,
12421     which can conflict with char __cxa_atexit (); below.
12422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12423     <limits.h> exists even on freestanding compilers.  */
12424
12425 #ifdef __STDC__
12426 # include <limits.h>
12427 #else
12428 # include <assert.h>
12429 #endif
12430
12431 #undef __cxa_atexit
12432
12433 /* Override any gcc2 internal prototype to avoid an error.  */
12434 #ifdef __cplusplus
12435 extern "C"
12436 {
12437 #endif
12438 /* We use char because int might match the return type of a gcc2
12439    builtin and then its argument prototype would still apply.  */
12440 char __cxa_atexit ();
12441 /* The GNU C library defines this for functions which it implements
12442     to always fail with ENOSYS.  Some functions are actually named
12443     something starting with __ and the normal name is an alias.  */
12444 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12445 choke me
12446 #else
12447 char (*f) () = __cxa_atexit;
12448 #endif
12449 #ifdef __cplusplus
12450 }
12451 #endif
12452
12453 int
12454 main ()
12455 {
12456 return f != __cxa_atexit;
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 rm -f conftest.$ac_objext conftest$ac_exeext
12462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12463   (eval $ac_link) 2>conftest.er1
12464   ac_status=$?
12465   grep -v '^ *+' conftest.er1 >conftest.err
12466   rm -f conftest.er1
12467   cat conftest.err >&5
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } &&
12470          { ac_try='test -z "$ac_c_werror_flag"
12471                          || test ! -s conftest.err'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; } &&
12477          { ac_try='test -s conftest$ac_exeext'
12478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479   (eval $ac_try) 2>&5
12480   ac_status=$?
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); }; }; then
12483   ac_cv_func___cxa_atexit=yes
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488 ac_cv_func___cxa_atexit=no
12489 fi
12490 rm -f conftest.err conftest.$ac_objext \
12491       conftest$ac_exeext conftest.$ac_ext
12492 fi
12493 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12494 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12495 if test $ac_cv_func___cxa_atexit = yes; then
12496   use_cxa_atexit=yes
12497 else
12498   echo "__cxa_atexit can't be enabled on this target"
12499 fi
12500
12501         ;;
12502     esac
12503   else
12504     # We can't check for __cxa_atexit when building a cross, so assume
12505     # it is available
12506     use_cxa_atexit=yes
12507   fi
12508   if test x$use_cxa_atexit = xyes; then
12509
12510 cat >>confdefs.h <<\_ACEOF
12511 #define DEFAULT_USE_CXA_ATEXIT 2
12512 _ACEOF
12513
12514   fi
12515 fi
12516
12517 use_getipinfo=yes
12518 if test x$with_system_libunwind = xyes; then
12519    if test x$host = x$target; then
12520      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12521 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12522 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_func_search_save_LIBS=$LIBS
12526 ac_cv_search__Unwind_GetIPInfo=no
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any gcc2 internal prototype to avoid an error.  */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 /* We use char because int might match the return type of a gcc2
12539    builtin and then its argument prototype would still apply.  */
12540 char _Unwind_GetIPInfo ();
12541 int
12542 main ()
12543 {
12544 _Unwind_GetIPInfo ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551   (eval $ac_link) 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -z "$ac_c_werror_flag"
12559                          || test ! -s conftest.err'
12560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561   (eval $ac_try) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest$ac_exeext'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; }; then
12571   ac_cv_search__Unwind_GetIPInfo="none required"
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 fi
12577 rm -f conftest.err conftest.$ac_objext \
12578       conftest$ac_exeext conftest.$ac_ext
12579 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12580   for ac_lib in unwind; do
12581     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12582     cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588
12589 /* Override any gcc2 internal prototype to avoid an error.  */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 /* We use char because int might match the return type of a gcc2
12594    builtin and then its argument prototype would still apply.  */
12595 char _Unwind_GetIPInfo ();
12596 int
12597 main ()
12598 {
12599 _Unwind_GetIPInfo ();
12600   ;
12601   return 0;
12602 }
12603 _ACEOF
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12606   (eval $ac_link) 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -z "$ac_c_werror_flag"
12614                          || test ! -s conftest.err'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12627 break
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 fi
12633 rm -f conftest.err conftest.$ac_objext \
12634       conftest$ac_exeext conftest.$ac_ext
12635   done
12636 fi
12637 LIBS=$ac_func_search_save_LIBS
12638 fi
12639 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12640 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12641 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12642   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12643
12644 else
12645   use_getipinfo=no
12646 fi
12647
12648    fi
12649 fi
12650
12651 if test x$use_getipinfo = xyes; then
12652
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_GETIPINFO 1
12655 _ACEOF
12656
12657 else
12658    echo "The system unwind library does not support _Unwind_GetIPInfo."
12659 fi
12660
12661 # Look for a file containing extra machine modes.
12662 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12663   extra_modes_file='$(srcdir)'/config/${extra_modes}
12664
12665
12666 cat >>confdefs.h <<_ACEOF
12667 #define EXTRA_MODES_FILE "config/$extra_modes"
12668 _ACEOF
12669
12670 fi
12671
12672 # Convert extra_options into a form suitable for Makefile use.
12673 extra_opt_files=
12674 for f in $extra_options; do
12675   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12676 done
12677
12678
12679 # auto-host.h is the file containing items generated by autoconf and is
12680 # the first file included by config.h.
12681 # If host=build, it is correct to have bconfig include auto-host.h
12682 # as well.  If host!=build, we are in error and need to do more
12683 # work to find out the build config parameters.
12684 if test x$host = x$build
12685 then
12686         build_auto=auto-host.h
12687 else
12688         # We create a subdir, then run autoconf in the subdir.
12689         # To prevent recursion we set host and build for the new
12690         # invocation of configure to the build for this invocation
12691         # of configure.
12692         tempdir=build.$$
12693         rm -rf $tempdir
12694         mkdir $tempdir
12695         cd $tempdir
12696         case ${srcdir} in
12697         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12698         *) realsrcdir=../${srcdir};;
12699         esac
12700         saved_CFLAGS="${CFLAGS}"
12701         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12702         ${realsrcdir}/configure \
12703                 --enable-languages=${enable_languages-all} \
12704                 --target=$target_alias --host=$build_alias --build=$build_alias
12705         CFLAGS="${saved_CFLAGS}"
12706
12707         # We just finished tests for the build machine, so rename
12708         # the file auto-build.h in the gcc directory.
12709         mv auto-host.h ../auto-build.h
12710         cd ..
12711         rm -rf $tempdir
12712         build_auto=auto-build.h
12713 fi
12714
12715
12716 tm_file="${tm_file} defaults.h"
12717 tm_p_file="${tm_p_file} tm-preds.h"
12718 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12719 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12720 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12721 # put this back in temporarily.
12722 xm_file="auto-host.h ansidecl.h ${xm_file}"
12723
12724 # --------
12725 # UNSORTED
12726 # --------
12727
12728 # Compile in configure arguments.
12729 if test -f configargs.h ; then
12730         # Being re-configured.
12731         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12732         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12733 else
12734         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12735 fi
12736
12737 # Double all backslashes and backslash all quotes to turn
12738 # gcc_config_arguments into a C string.
12739 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12740 $gcc_config_arguments
12741 EOF
12742 gcc_config_arguments_str=`cat conftest.out`
12743 rm -f conftest.out
12744
12745 cat > configargs.h <<EOF
12746 /* Generated automatically. */
12747 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12748 static const char thread_model[] = "$thread_file";
12749
12750 static const struct {
12751   const char *name, *value;
12752 } configure_default_options[] = $configure_default_options;
12753 EOF
12754
12755 # Internationalization
12756 # If we haven't got the data from the intl directory,
12757 # assume NLS is disabled.
12758 USE_NLS=no
12759 LIBINTL=
12760 LIBINTL_DEP=
12761 INCINTL=
12762 XGETTEXT=
12763 GMSGFMT=
12764 POSUB=
12765
12766 if test -f  ../intl/config.intl; then
12767   .  ../intl/config.intl
12768 fi
12769 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12770 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12771 if test x"$USE_NLS" != xyes; then
12772   echo "$as_me:$LINENO: result: no" >&5
12773 echo "${ECHO_T}no" >&6
12774 else
12775   echo "$as_me:$LINENO: result: yes" >&5
12776 echo "${ECHO_T}yes" >&6
12777
12778 cat >>confdefs.h <<\_ACEOF
12779 #define ENABLE_NLS 1
12780 _ACEOF
12781
12782
12783   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12784 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12785   # Look for .po and .gmo files in the source directory.
12786   CATALOGS=
12787   XLINGUAS=
12788   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12789     # If there aren't any .gmo files the shell will give us the
12790     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12791     # weeded out.
12792     case "$cat" in *\**)
12793       continue;;
12794     esac
12795     # The quadruple backslash is collapsed to a double backslash
12796     # by the backticks, then collapsed again by the double quotes,
12797     # leaving us with one backslash in the sed expression (right
12798     # before the dot that mustn't act as a wildcard).
12799     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12800     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12801     # The user is allowed to set LINGUAS to a list of languages to
12802     # install catalogs for.  If it's empty that means "all of them."
12803     if test "x$LINGUAS" = x; then
12804       CATALOGS="$CATALOGS $cat"
12805       XLINGUAS="$XLINGUAS $lang"
12806     else
12807       case "$LINGUAS" in *$lang*)
12808         CATALOGS="$CATALOGS $cat"
12809         XLINGUAS="$XLINGUAS $lang"
12810         ;;
12811       esac
12812     fi
12813   done
12814   LINGUAS="$XLINGUAS"
12815   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12816 echo "${ECHO_T}$LINGUAS" >&6
12817
12818
12819     DATADIRNAME=share
12820
12821   INSTOBJEXT=.mo
12822
12823   GENCAT=gencat
12824
12825   CATOBJEXT=.gmo
12826
12827 fi
12828
12829 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12830 # -liconv on the link line twice.
12831 case "$LIBINTL" in *$LIBICONV*)
12832         LIBICONV= ;;
12833 esac
12834
12835 # Check whether --enable-secureplt or --disable-secureplt was given.
12836 if test "${enable_secureplt+set}" = set; then
12837   enableval="$enable_secureplt"
12838
12839 fi;
12840
12841 # Windows32 Registry support for specifying GCC installation paths.
12842 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12843 if test "${enable_win32_registry+set}" = set; then
12844   enableval="$enable_win32_registry"
12845
12846 fi;
12847
12848 case $host_os in
12849   win32 | pe | cygwin* | mingw32* | uwin*)
12850     if test "x$enable_win32_registry" != xno; then
12851       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12852 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12853 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   ac_func_search_save_LIBS=$LIBS
12857 ac_cv_search_RegOpenKeyExA=no
12858 cat >conftest.$ac_ext <<_ACEOF
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864
12865 /* Override any gcc2 internal prototype to avoid an error.  */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 /* We use char because int might match the return type of a gcc2
12870    builtin and then its argument prototype would still apply.  */
12871 char RegOpenKeyExA ();
12872 int
12873 main ()
12874 {
12875 RegOpenKeyExA ();
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext conftest$ac_exeext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12882   (eval $ac_link) 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -z "$ac_c_werror_flag"
12890                          || test ! -s conftest.err'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest$ac_exeext'
12897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898   (eval $ac_try) 2>&5
12899   ac_status=$?
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); }; }; then
12902   ac_cv_search_RegOpenKeyExA="none required"
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 fi
12908 rm -f conftest.err conftest.$ac_objext \
12909       conftest$ac_exeext conftest.$ac_ext
12910 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12911   for ac_lib in advapi32; do
12912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12913     cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919
12920 /* Override any gcc2 internal prototype to avoid an error.  */
12921 #ifdef __cplusplus
12922 extern "C"
12923 #endif
12924 /* We use char because int might match the return type of a gcc2
12925    builtin and then its argument prototype would still apply.  */
12926 char RegOpenKeyExA ();
12927 int
12928 main ()
12929 {
12930 RegOpenKeyExA ();
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937   (eval $ac_link) 2>conftest.er1
12938   ac_status=$?
12939   grep -v '^ *+' conftest.er1 >conftest.err
12940   rm -f conftest.er1
12941   cat conftest.err >&5
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } &&
12944          { ac_try='test -z "$ac_c_werror_flag"
12945                          || test ! -s conftest.err'
12946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947   (eval $ac_try) 2>&5
12948   ac_status=$?
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); }; } &&
12951          { ac_try='test -s conftest$ac_exeext'
12952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953   (eval $ac_try) 2>&5
12954   ac_status=$?
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); }; }; then
12957   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
12958 break
12959 else
12960   echo "$as_me: failed program was:" >&5
12961 sed 's/^/| /' conftest.$ac_ext >&5
12962
12963 fi
12964 rm -f conftest.err conftest.$ac_objext \
12965       conftest$ac_exeext conftest.$ac_ext
12966   done
12967 fi
12968 LIBS=$ac_func_search_save_LIBS
12969 fi
12970 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
12971 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
12972 if test "$ac_cv_search_RegOpenKeyExA" != no; then
12973   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
12974
12975 else
12976   enable_win32_registry=no
12977 fi
12978
12979     fi
12980
12981     if test "x$enable_win32_registry" != xno; then
12982
12983 cat >>confdefs.h <<\_ACEOF
12984 #define ENABLE_WIN32_REGISTRY 1
12985 _ACEOF
12986
12987
12988       if test "x$enable_win32_registry" != xyes \
12989          && test "x$enable_win32_registry" != x; then
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12993 _ACEOF
12994
12995       fi
12996     fi
12997   ;;
12998 esac
12999
13000 # Get an absolute path to the GCC top-level source directory
13001 holddir=`${PWDCMD-pwd}`
13002 cd $srcdir
13003 topdir=`${PWDCMD-pwd}`
13004 cd $holddir
13005
13006 # Conditionalize the makefile for this host machine.
13007 xmake_file=
13008 for f in ${host_xmake_file}
13009 do
13010         if test -f ${srcdir}/config/$f
13011         then
13012                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13013         fi
13014 done
13015
13016 # Conditionalize the makefile for this target machine.
13017 tmake_file_=
13018 for f in ${tmake_file}
13019 do
13020         if test -f ${srcdir}/config/$f
13021         then
13022                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13023         fi
13024 done
13025 tmake_file="${tmake_file_}"
13026
13027 # This is a terrible hack which will go away some day.
13028 host_cc_for_libada=${CC}
13029
13030
13031 out_object_file=`basename $out_file .c`.o
13032
13033 tm_file_list="options.h"
13034 tm_include_list="options.h"
13035 for f in $tm_file; do
13036   case $f in
13037     ./* )
13038        f=`echo $f | sed 's/^..//'`
13039        tm_file_list="${tm_file_list} $f"
13040        tm_include_list="${tm_include_list} $f"
13041        ;;
13042     defaults.h )
13043        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13044        tm_include_list="${tm_include_list} $f"
13045        ;;
13046     * )
13047        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13048        tm_include_list="${tm_include_list} config/$f"
13049        ;;
13050   esac
13051 done
13052
13053 tm_p_file_list=
13054 tm_p_include_list=
13055 for f in $tm_p_file; do
13056   case $f in
13057     tm-preds.h )
13058        tm_p_file_list="${tm_p_file_list} $f"
13059        tm_p_include_list="${tm_p_include_list} $f"
13060        ;;
13061     * )
13062        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13063        tm_p_include_list="${tm_p_include_list} config/$f"
13064   esac
13065 done
13066
13067 xm_file_list=
13068 xm_include_list=
13069 for f in $xm_file; do
13070   case $f in
13071     ansidecl.h )
13072        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13073        xm_include_list="${xm_include_list} $f"
13074        ;;
13075     auto-host.h )
13076        xm_file_list="${xm_file_list} $f"
13077        xm_include_list="${xm_include_list} $f"
13078        ;;
13079     * )
13080        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13081        xm_include_list="${xm_include_list} config/$f"
13082        ;;
13083   esac
13084 done
13085
13086 host_xm_file_list=
13087 host_xm_include_list=
13088 for f in $host_xm_file; do
13089   case $f in
13090     ansidecl.h )
13091        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13092        host_xm_include_list="${host_xm_include_list} $f"
13093        ;;
13094     auto-host.h )
13095        host_xm_file_list="${host_xm_file_list} $f"
13096        host_xm_include_list="${host_xm_include_list} $f"
13097        ;;
13098     * )
13099        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13100        host_xm_include_list="${host_xm_include_list} config/$f"
13101        ;;
13102   esac
13103 done
13104
13105 build_xm_file_list=
13106 for f in $build_xm_file; do
13107   case $f in
13108     ansidecl.h )
13109        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13110        build_xm_include_list="${build_xm_include_list} $f"
13111        ;;
13112     auto-build.h | auto-host.h )
13113        build_xm_file_list="${build_xm_file_list} $f"
13114        build_xm_include_list="${build_xm_include_list} $f"
13115        ;;
13116     * )
13117        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13118        build_xm_include_list="${build_xm_include_list} config/$f"
13119        ;;
13120   esac
13121 done
13122
13123 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13124 # cross-compiler which does not use the native headers and libraries.
13125 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13126 CROSS=
13127 ALL=all.internal
13128 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13129
13130 if test "x$with_build_sysroot" != x; then
13131   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13132 else
13133   # This value is used, even on a native system, because
13134   # CROSS_SYSTEM_HEADER_DIR is just
13135   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13136   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13137 fi
13138
13139 if test x$host != x$target
13140 then
13141         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13142         ALL=all.cross
13143         SYSTEM_HEADER_DIR=$build_system_header_dir
13144         case "$host","$target" in
13145         # Darwin crosses can use the host system's libraries and headers,
13146         # because of the fat library support.  Of course, it must be the
13147         # same version of Darwin on both sides.  Allow the user to
13148         # just say --target=foo-darwin without a version number to mean
13149         # "the version on this system".
13150             *-*-darwin*,*-*-darwin*)
13151                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13152                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13153                 if test $hostos = $targetos -o $targetos = darwin ; then
13154                     CROSS=
13155                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13156                     with_headers=yes
13157                 fi
13158                 ;;
13159
13160             i?86-*-*,x86_64-*-* \
13161             | powerpc*-*-*,powerpc64*-*-*)
13162                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13163         esac
13164 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13165         SYSTEM_HEADER_DIR=$build_system_header_dir
13166 fi
13167
13168 # If this is a cross-compiler that does not
13169 # have its own set of headers then define
13170 # inhibit_libc
13171
13172 # If this is using newlib, without having the headers available now,
13173 # then define inhibit_libc in LIBGCC2_CFLAGS.
13174 # This prevents libgcc2 from containing any code which requires libc
13175 # support.
13176 inhibit_libc=false
13177 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13178        test x$with_newlib = xyes ; } &&
13179      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13180        inhibit_libc=true
13181 fi
13182
13183
13184 # When building gcc with a cross-compiler, we need to adjust things so
13185 # that the generator programs are still built with the native compiler.
13186 # Also, we cannot run fixincludes or fix-header.
13187
13188 # These are the normal (build=host) settings:
13189 CC_FOR_BUILD='$(CC)'
13190 BUILD_CFLAGS='$(ALL_CFLAGS)'
13191 STMP_FIXINC=stmp-fixinc
13192
13193 # Possibly disable fixproto, on a per-target basis.
13194 case ${use_fixproto} in
13195   no)
13196     STMP_FIXPROTO=
13197     ;;
13198   yes)
13199     STMP_FIXPROTO=stmp-fixproto
13200     ;;
13201 esac
13202
13203
13204 # And these apply if build != host, or we are generating coverage data
13205 if test x$build != x$host || test "x$coverage_flags" != x
13206 then
13207     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13208
13209     if test "x$TARGET_SYSTEM_ROOT" = x; then
13210         if test "x$STMP_FIXPROTO" != x; then
13211           STMP_FIXPROTO=stmp-install-fixproto
13212         fi
13213     fi
13214 fi
13215
13216 # Expand extra_headers to include complete path.
13217 # This substitutes for lots of t-* files.
13218 extra_headers_list=
13219 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13220 for file in ${extra_headers} ; do
13221   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13222 done
13223
13224 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13225 if test x"$use_gcc_tgmath" = xyes
13226 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13227 fi
13228
13229 # Define collect2 in Makefile.
13230 case $host_can_use_collect2 in
13231   no) collect2= ;;
13232   *) collect2='collect2$(exeext)' ;;
13233 esac
13234
13235
13236 # Add a definition of USE_COLLECT2 if system wants one.
13237 case $use_collect2 in
13238   no) use_collect2= ;;
13239   "") ;;
13240   *)
13241     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13242     xm_defines="${xm_defines} USE_COLLECT2"
13243     case $host_can_use_collect2 in
13244       no)
13245         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13246 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13247    { (exit 1); exit 1; }; }
13248         ;;
13249     esac
13250     ;;
13251 esac
13252
13253 # ---------------------------
13254 # Assembler & linker features
13255 # ---------------------------
13256
13257 # Identify the assembler which will work hand-in-glove with the newly
13258 # built GCC, so that we can examine its features.  This is the assembler
13259 # which will be driven by the driver program.
13260 #
13261 # If build != host, and we aren't building gas in-tree, we identify a
13262 # build->target assembler and hope that it will have the same features
13263 # as the host->target assembler we'll be using.
13264 gcc_cv_gas_major_version=
13265 gcc_cv_gas_minor_version=
13266 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13267
13268 if test "${gcc_cv_as+set}" = set; then
13269   :
13270 else
13271
13272 if test -x "$DEFAULT_ASSEMBLER"; then
13273         gcc_cv_as="$DEFAULT_ASSEMBLER"
13274 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13275      && test -f ../gas/Makefile \
13276      && test x$build = x$host; then
13277         gcc_cv_as=../gas/as-new$build_exeext
13278 elif test -x as$build_exeext; then
13279         # Build using assembler in the current directory.
13280         gcc_cv_as=./as$build_exeext
13281 elif test -x $AS_FOR_TARGET; then
13282         gcc_cv_as="$AS_FOR_TARGET"
13283 else
13284         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13285 set dummy $AS_FOR_TARGET; ac_word=$2
13286 echo "$as_me:$LINENO: checking for $ac_word" >&5
13287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13288 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   case $gcc_cv_as in
13292   [\\/]* | ?:[\\/]*)
13293   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13294   ;;
13295   *)
13296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13297 for as_dir in $PATH
13298 do
13299   IFS=$as_save_IFS
13300   test -z "$as_dir" && as_dir=.
13301   for ac_exec_ext in '' $ac_executable_extensions; do
13302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13303     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13305     break 2
13306   fi
13307 done
13308 done
13309
13310   ;;
13311 esac
13312 fi
13313 gcc_cv_as=$ac_cv_path_gcc_cv_as
13314
13315 if test -n "$gcc_cv_as"; then
13316   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13317 echo "${ECHO_T}$gcc_cv_as" >&6
13318 else
13319   echo "$as_me:$LINENO: result: no" >&5
13320 echo "${ECHO_T}no" >&6
13321 fi
13322
13323 fi
13324 fi
13325
13326
13327 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13328
13329 case "$ORIGINAL_AS_FOR_TARGET" in
13330   ./as | ./as$build_exeext) ;;
13331   *)           ac_config_files="$ac_config_files as:exec-tool.in"
13332  ;;
13333 esac
13334
13335 echo "$as_me:$LINENO: checking what assembler to use" >&5
13336 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13337 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13338   # Single tree build which includes gas.  We want to prefer it
13339   # over whatever linker top-level may have detected, since
13340   # we'll use what we're building after installation anyway.
13341   echo "$as_me:$LINENO: result: newly built gas" >&5
13342 echo "${ECHO_T}newly built gas" >&6
13343   in_tree_gas=yes
13344   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13345 for f in $gcc_cv_as_bfd_srcdir/configure \
13346          $gcc_cv_as_gas_srcdir/configure \
13347          $gcc_cv_as_gas_srcdir/configure.in \
13348          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13349   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13350   if test x$gcc_cv_gas_version != x; then
13351     break
13352   fi
13353 done
13354 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13355 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13356 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13357 case $gcc_cv_gas_patch_version in
13358   "") gcc_cv_gas_patch_version="0" ;;
13359 esac
13360 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13361                             + $gcc_cv_gas_minor_version \) \* 1000 \
13362                             + $gcc_cv_gas_patch_version`
13363
13364   in_tree_gas_is_elf=no
13365   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13366      || (grep 'obj_format = multi' ../gas/Makefile \
13367          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13368   then
13369     in_tree_gas_is_elf=yes
13370   fi
13371 else
13372   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13373 echo "${ECHO_T}$gcc_cv_as" >&6
13374   in_tree_gas=no
13375 fi
13376
13377 # Identify the linker which will work hand-in-glove with the newly
13378 # built GCC, so that we can examine its features.  This is the linker
13379 # which will be driven by the driver program.
13380 #
13381 # If build != host, and we aren't building gas in-tree, we identify a
13382 # build->target linker and hope that it will have the same features
13383 # as the host->target linker we'll be using.
13384 gcc_cv_gld_major_version=
13385 gcc_cv_gld_minor_version=
13386 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13387 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13388
13389 if test "${gcc_cv_ld+set}" = set; then
13390   :
13391 else
13392
13393 if test -x "$DEFAULT_LINKER"; then
13394         gcc_cv_ld="$DEFAULT_LINKER"
13395 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13396      && test -f ../ld/Makefile \
13397      && test x$build = x$host; then
13398         gcc_cv_ld=../ld/ld-new$build_exeext
13399 elif test -x collect-ld$build_exeext; then
13400         # Build using linker in the current directory.
13401         gcc_cv_ld=./collect-ld$build_exeext
13402 elif test -x $LD_FOR_TARGET; then
13403         gcc_cv_ld="$LD_FOR_TARGET"
13404 else
13405         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13406 set dummy $LD_FOR_TARGET; ac_word=$2
13407 echo "$as_me:$LINENO: checking for $ac_word" >&5
13408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13409 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   case $gcc_cv_ld in
13413   [\\/]* | ?:[\\/]*)
13414   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13415   ;;
13416   *)
13417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418 for as_dir in $PATH
13419 do
13420   IFS=$as_save_IFS
13421   test -z "$as_dir" && as_dir=.
13422   for ac_exec_ext in '' $ac_executable_extensions; do
13423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13424     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13426     break 2
13427   fi
13428 done
13429 done
13430
13431   ;;
13432 esac
13433 fi
13434 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13435
13436 if test -n "$gcc_cv_ld"; then
13437   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13438 echo "${ECHO_T}$gcc_cv_ld" >&6
13439 else
13440   echo "$as_me:$LINENO: result: no" >&5
13441 echo "${ECHO_T}no" >&6
13442 fi
13443
13444 fi
13445 fi
13446
13447
13448 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13449
13450 case "$ORIGINAL_LD_FOR_TARGET" in
13451   ./collect-ld | ./collect-ld$build_exeext) ;;
13452   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13453  ;;
13454 esac
13455
13456 echo "$as_me:$LINENO: checking what linker to use" >&5
13457 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13458 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13459         # Single tree build which includes ld.  We want to prefer it
13460         # over whatever linker top-level may have detected, since
13461         # we'll use what we're building after installation anyway.
13462         echo "$as_me:$LINENO: result: newly built ld" >&5
13463 echo "${ECHO_T}newly built ld" >&6
13464         in_tree_ld=yes
13465         in_tree_ld_is_elf=no
13466         if (grep 'EMUL = .*elf' ../ld/Makefile \
13467             || grep 'EMUL = .*linux' ../ld/Makefile \
13468             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13469           in_tree_ld_is_elf=yes
13470         fi
13471         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
13472         do
13473                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13474                 if test x$gcc_cv_gld_version != x; then
13475                         break
13476                 fi
13477         done
13478         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13479         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13480 else
13481         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13482 echo "${ECHO_T}$gcc_cv_ld" >&6
13483         in_tree_ld=no
13484 fi
13485
13486 # Figure out what nm we will be using.
13487 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13488 if test "${gcc_cv_nm+set}" = set; then
13489   :
13490 else
13491
13492 if test -f $gcc_cv_binutils_srcdir/configure.in \
13493      && test -f ../binutils/Makefile \
13494      && test x$build = x$host; then
13495         gcc_cv_nm=../binutils/nm-new$build_exeext
13496 elif test -x nm$build_exeext; then
13497         gcc_cv_nm=./nm$build_exeext
13498 elif test -x $NM_FOR_TARGET; then
13499         gcc_cv_nm="$NM_FOR_TARGET"
13500 else
13501         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13502 set dummy $NM_FOR_TARGET; 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 fi
13542
13543
13544 echo "$as_me:$LINENO: checking what nm to use" >&5
13545 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13546 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13547         # Single tree build which includes binutils.
13548         echo "$as_me:$LINENO: result: newly built nm" >&5
13549 echo "${ECHO_T}newly built nm" >&6
13550         in_tree_nm=yes
13551 else
13552         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13553 echo "${ECHO_T}$gcc_cv_nm" >&6
13554         in_tree_nm=no
13555 fi
13556
13557 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13558
13559 case "$ORIGINAL_NM_FOR_TARGET" in
13560   ./nm | ./nm$build_exeext) ;;
13561   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
13562  ;;
13563 esac
13564
13565
13566 # Figure out what objdump we will be using.
13567 if test "${gcc_cv_objdump+set}" = set; then
13568   :
13569 else
13570
13571 if test -f $gcc_cv_binutils_srcdir/configure.in \
13572      && test -f ../binutils/Makefile \
13573      && test x$build = x$host; then
13574         # Single tree build which includes binutils.
13575         gcc_cv_objdump=../binutils/objdump$build_exeext
13576 elif test -x objdump$build_exeext; then
13577         gcc_cv_objdump=./objdump$build_exeext
13578 elif test -x $OBJDUMP_FOR_TARGET; then
13579         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13580 else
13581         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13582 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13583 echo "$as_me:$LINENO: checking for $ac_word" >&5
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13585 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13586   echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588   case $gcc_cv_objdump in
13589   [\\/]* | ?:[\\/]*)
13590   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13591   ;;
13592   *)
13593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13594 for as_dir in $PATH
13595 do
13596   IFS=$as_save_IFS
13597   test -z "$as_dir" && as_dir=.
13598   for ac_exec_ext in '' $ac_executable_extensions; do
13599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13600     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13602     break 2
13603   fi
13604 done
13605 done
13606
13607   ;;
13608 esac
13609 fi
13610 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13611
13612 if test -n "$gcc_cv_objdump"; then
13613   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13614 echo "${ECHO_T}$gcc_cv_objdump" >&6
13615 else
13616   echo "$as_me:$LINENO: result: no" >&5
13617 echo "${ECHO_T}no" >&6
13618 fi
13619
13620 fi
13621 fi
13622
13623
13624 echo "$as_me:$LINENO: checking what objdump to use" >&5
13625 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13626 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13627         # Single tree build which includes binutils.
13628         echo "$as_me:$LINENO: result: newly built objdump" >&5
13629 echo "${ECHO_T}newly built objdump" >&6
13630 elif test x$gcc_cv_objdump = x; then
13631         echo "$as_me:$LINENO: result: not found" >&5
13632 echo "${ECHO_T}not found" >&6
13633 else
13634         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13635 echo "${ECHO_T}$gcc_cv_objdump" >&6
13636 fi
13637
13638 # Figure out what assembler alignment features are present.
13639 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13640 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13641 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13642   echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644   gcc_cv_as_balign_and_p2align=no
13645     if test $in_tree_gas = yes; then
13646     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13647   then gcc_cv_as_balign_and_p2align=yes
13648 fi
13649   elif test x$gcc_cv_as != x; then
13650     echo '.balign 4
13651 .p2align 2' > conftest.s
13652     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; }
13658     then
13659         gcc_cv_as_balign_and_p2align=yes
13660     else
13661       echo "configure: failed program was" >&5
13662       cat conftest.s >&5
13663     fi
13664     rm -f conftest.o conftest.s
13665   fi
13666 fi
13667 echo "$as_me:$LINENO: result: $gcc_cv_as_balign_and_p2align" >&5
13668 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13669 if test $gcc_cv_as_balign_and_p2align = yes; then
13670
13671 cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13673 _ACEOF
13674
13675 fi
13676
13677 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13678 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13679 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13680   echo $ECHO_N "(cached) $ECHO_C" >&6
13681 else
13682   gcc_cv_as_max_skip_p2align=no
13683     if test $in_tree_gas = yes; then
13684     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13685   then gcc_cv_as_max_skip_p2align=yes
13686 fi
13687   elif test x$gcc_cv_as != x; then
13688     echo '.p2align 4,,7' > conftest.s
13689     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }
13695     then
13696         gcc_cv_as_max_skip_p2align=yes
13697     else
13698       echo "configure: failed program was" >&5
13699       cat conftest.s >&5
13700     fi
13701     rm -f conftest.o conftest.s
13702   fi
13703 fi
13704 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13705 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13706 if test $gcc_cv_as_max_skip_p2align = yes; then
13707
13708 cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13710 _ACEOF
13711
13712 fi
13713
13714 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13715 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13716 if test "${gcc_cv_as_literal16+set}" = set; then
13717   echo $ECHO_N "(cached) $ECHO_C" >&6
13718 else
13719   gcc_cv_as_literal16=no
13720     if test $in_tree_gas = yes; then
13721     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13722   then gcc_cv_as_literal16=yes
13723 fi
13724   elif test x$gcc_cv_as != x; then
13725     echo '.literal16' > conftest.s
13726     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }
13732     then
13733         gcc_cv_as_literal16=yes
13734     else
13735       echo "configure: failed program was" >&5
13736       cat conftest.s >&5
13737     fi
13738     rm -f conftest.o conftest.s
13739   fi
13740 fi
13741 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13742 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13743 if test $gcc_cv_as_literal16 = yes; then
13744
13745 cat >>confdefs.h <<\_ACEOF
13746 #define HAVE_GAS_LITERAL16 1
13747 _ACEOF
13748
13749 fi
13750
13751 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13752 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13753 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   gcc_cv_as_subsection_m1=no
13757     if test $in_tree_gas = yes; then
13758     if test $in_tree_gas_is_elf = yes \
13759   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13760   then gcc_cv_as_subsection_m1=yes
13761 fi
13762   elif test x$gcc_cv_as != x; then
13763     echo 'conftest_label1: .word 0
13764 .subsection -1
13765 conftest_label2: .word 0
13766 .previous' > conftest.s
13767     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769   (eval $ac_try) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }
13773     then
13774         if test x$gcc_cv_nm != x; then
13775     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13776     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13777     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13778     then :
13779     else gcc_cv_as_subsection_m1=yes
13780     fi
13781     rm -f conftest.nm1 conftest.nm2
13782   fi
13783     else
13784       echo "configure: failed program was" >&5
13785       cat conftest.s >&5
13786     fi
13787     rm -f conftest.o conftest.s
13788   fi
13789 fi
13790 echo "$as_me:$LINENO: result: $gcc_cv_as_subsection_m1" >&5
13791 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13792 if test $gcc_cv_as_subsection_m1 = yes; then
13793
13794 cat >>confdefs.h <<\_ACEOF
13795 #define HAVE_GAS_SUBSECTION_ORDERING 1
13796 _ACEOF
13797
13798 fi
13799
13800 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13801 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13802 if test "${gcc_cv_as_weak+set}" = set; then
13803   echo $ECHO_N "(cached) $ECHO_C" >&6
13804 else
13805   gcc_cv_as_weak=no
13806     if test $in_tree_gas = yes; then
13807     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13808   then gcc_cv_as_weak=yes
13809 fi
13810   elif test x$gcc_cv_as != x; then
13811     echo '      .weak foobar' > conftest.s
13812     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814   (eval $ac_try) 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }
13818     then
13819         gcc_cv_as_weak=yes
13820     else
13821       echo "configure: failed program was" >&5
13822       cat conftest.s >&5
13823     fi
13824     rm -f conftest.o conftest.s
13825   fi
13826 fi
13827 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13828 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13829 if test $gcc_cv_as_weak = yes; then
13830
13831 cat >>confdefs.h <<\_ACEOF
13832 #define HAVE_GAS_WEAK 1
13833 _ACEOF
13834
13835 fi
13836
13837 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13838 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13839 if test "${gcc_cv_as_weakref+set}" = set; then
13840   echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842   gcc_cv_as_weakref=no
13843     if test $in_tree_gas = yes; then
13844     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13845   then gcc_cv_as_weakref=yes
13846 fi
13847   elif test x$gcc_cv_as != x; then
13848     echo '      .weakref foobar, barfnot' > conftest.s
13849     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851   (eval $ac_try) 2>&5
13852   ac_status=$?
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); }; }
13855     then
13856         gcc_cv_as_weakref=yes
13857     else
13858       echo "configure: failed program was" >&5
13859       cat conftest.s >&5
13860     fi
13861     rm -f conftest.o conftest.s
13862   fi
13863 fi
13864 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13865 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13866 if test $gcc_cv_as_weakref = yes; then
13867
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_GAS_WEAKREF 1
13870 _ACEOF
13871
13872 fi
13873
13874 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13875 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13876 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   gcc_cv_as_nsubspa_comdat=no
13880     if test $in_tree_gas = yes; then
13881     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13882   then gcc_cv_as_nsubspa_comdat=yes
13883 fi
13884   elif test x$gcc_cv_as != x; then
13885     echo '      .SPACE $TEXT$
13886         .NSUBSPA $CODE$,COMDAT' > conftest.s
13887     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }
13893     then
13894         gcc_cv_as_nsubspa_comdat=yes
13895     else
13896       echo "configure: failed program was" >&5
13897       cat conftest.s >&5
13898     fi
13899     rm -f conftest.o conftest.s
13900   fi
13901 fi
13902 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13903 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13904 if test $gcc_cv_as_nsubspa_comdat = yes; then
13905
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_GAS_NSUBSPA_COMDAT 1
13908 _ACEOF
13909
13910 fi
13911
13912 # .hidden needs to be supported in both the assembler and the linker,
13913 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13914 # This is irritatingly difficult to feature test for; we have to check the
13915 # date string after the version number.  If we've got an in-tree
13916 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13917 # to be safe.
13918 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13919 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13920 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13921 if test "${gcc_cv_as_hidden+set}" = set; then
13922   echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924   gcc_cv_as_hidden=no
13925     if test $in_tree_gas = yes; then
13926     if test $in_tree_gas_is_elf = yes \
13927   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
13928   then gcc_cv_as_hidden=yes
13929 fi
13930   elif test x$gcc_cv_as != x; then
13931     echo '      .hidden foobar
13932 foobar:' > conftest.s
13933     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935   (eval $ac_try) 2>&5
13936   ac_status=$?
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); }; }
13939     then
13940         gcc_cv_as_hidden=yes
13941     else
13942       echo "configure: failed program was" >&5
13943       cat conftest.s >&5
13944     fi
13945     rm -f conftest.o conftest.s
13946   fi
13947 fi
13948 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
13949 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
13950
13951
13952 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
13953 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
13954 if test "${gcc_cv_ld_hidden+set}" = set; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   if test $in_tree_ld = yes ; then
13958   gcc_cv_ld_hidden=no
13959   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 \
13960      && test $in_tree_ld_is_elf = yes; then
13961      gcc_cv_ld_hidden=yes
13962   fi
13963 else
13964   gcc_cv_ld_hidden=yes
13965   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
13966   if echo "$ld_ver" | grep GNU > /dev/null; then
13967     ld_vers=`echo $ld_ver | sed -n \
13968         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13969         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13970         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
13971         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\)[  ].*$,\1,p' \
13972         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[     ].*$,\1,p' \
13973         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[       ].*$,\1,p' \
13974         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[   -].*$,\1,p'`
13975     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'`
13976     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
13977     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
13978     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
13979     if test 0"$ld_date" -lt 20020404; then
13980       if test -n "$ld_date"; then
13981         # If there was date string, but was earlier than 2002-04-04, fail
13982         gcc_cv_ld_hidden=no
13983       elif test -z "$ld_vers"; then
13984         # If there was no date string nor ld version number, something is wrong
13985         gcc_cv_ld_hidden=no
13986       else
13987         test -z "$ld_vers_patch" && ld_vers_patch=0
13988         if test "$ld_vers_major" -lt 2; then
13989           gcc_cv_ld_hidden=no
13990         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
13991           gcc_cv_ld_hidden="no"
13992         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
13993           gcc_cv_ld_hidden=no
13994         fi
13995       fi
13996     fi
13997   else
13998     case "${target}" in
13999       hppa64*-*-hpux* | ia64*-*-hpux*)
14000         gcc_cv_ld_hidden=yes
14001         ;;
14002       *)
14003         gcc_cv_ld_hidden=no
14004         ;;
14005     esac
14006   fi
14007 fi
14008 fi
14009 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14010 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14011 libgcc_visibility=no
14012
14013
14014 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14015   libgcc_visibility=yes
14016
14017 cat >>confdefs.h <<\_ACEOF
14018 #define HAVE_GAS_HIDDEN 1
14019 _ACEOF
14020
14021 fi
14022
14023 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14024 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14025 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14026 if test "${gcc_cv_as_leb128+set}" = set; then
14027   echo $ECHO_N "(cached) $ECHO_C" >&6
14028 else
14029   gcc_cv_as_leb128=no
14030     if test $in_tree_gas = yes; then
14031     if test $in_tree_gas_is_elf = yes \
14032   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14033   then gcc_cv_as_leb128=yes
14034 fi
14035   elif test x$gcc_cv_as != x; then
14036     echo '      .data
14037         .uleb128 L2 - L1
14038 L1:
14039         .uleb128 1280
14040         .sleb128 -1010
14041 L2:' > conftest.s
14042     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044   (eval $ac_try) 2>&5
14045   ac_status=$?
14046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047   (exit $ac_status); }; }
14048     then
14049         # GAS versions before 2.11 do not support uleb128,
14050   # despite appearing to.
14051   # ??? There exists an elf-specific test that will crash
14052   # the assembler.  Perhaps it's better to figure out whether
14053   # arbitrary sections are supported and try the test.
14054   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14055   if echo "$as_ver" | grep GNU > /dev/null; then
14056     as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
14057     as_major=`echo $as_ver | sed 's/\..*//'`
14058     as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
14059     if test $as_major -eq 2 && test $as_minor -lt 11
14060     then :
14061     else gcc_cv_as_leb128=yes
14062     fi
14063   fi
14064     else
14065       echo "configure: failed program was" >&5
14066       cat conftest.s >&5
14067     fi
14068     rm -f conftest.o conftest.s
14069   fi
14070 fi
14071 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14072 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14073 if test $gcc_cv_as_leb128 = yes; then
14074
14075 cat >>confdefs.h <<\_ACEOF
14076 #define HAVE_AS_LEB128 1
14077 _ACEOF
14078
14079 fi
14080
14081 # GAS versions up to and including 2.11.0 may mis-optimize
14082 # .eh_frame data.
14083 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14084 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14085 if test "${gcc_cv_as_eh_frame+set}" = set; then
14086   echo $ECHO_N "(cached) $ECHO_C" >&6
14087 else
14088   gcc_cv_as_eh_frame=no
14089     if test $in_tree_gas = yes; then
14090     if test $in_tree_gas_is_elf = yes \
14091   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14092   then gcc_cv_as_eh_frame=yes
14093 fi
14094   elif test x$gcc_cv_as != x; then
14095     echo '      .text
14096 .LFB1:
14097         .4byte  0
14098 .L1:
14099         .4byte  0
14100 .LFE1:
14101         .section        .eh_frame,"aw",@progbits
14102 __FRAME_BEGIN__:
14103         .4byte  .LECIE1-.LSCIE1
14104 .LSCIE1:
14105         .4byte  0x0
14106         .byte   0x1
14107         .ascii "z\0"
14108         .byte   0x1
14109         .byte   0x78
14110         .byte   0x1a
14111         .byte   0x0
14112         .byte   0x4
14113         .4byte  1
14114         .p2align 1
14115 .LECIE1:
14116 .LSFDE1:
14117         .4byte  .LEFDE1-.LASFDE1
14118 .LASFDE1:
14119         .4byte  .LASFDE1-__FRAME_BEGIN__
14120         .4byte  .LFB1
14121         .4byte  .LFE1-.LFB1
14122         .byte   0x4
14123         .4byte  .LFE1-.LFB1
14124         .byte   0x4
14125         .4byte  .L1-.LFB1
14126 .LEFDE1:' > conftest.s
14127     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129   (eval $ac_try) 2>&5
14130   ac_status=$?
14131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132   (exit $ac_status); }; }
14133     then
14134           cat > conftest.lit <<EOF
14135  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14136  0010 01000000 12000000 18000000 00000000  ................
14137  0020 08000000 04080000 0044               .........D      
14138 EOF
14139 cat > conftest.big <<EOF
14140  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14141  0010 00000001 00000012 00000018 00000000  ................
14142  0020 00000008 04000000 0844               .........D      
14143 EOF
14144   # If the assembler didn't choke, and we can objdump,
14145   # and we got the correct data, then succeed.
14146   # The text in the here-document typically retains its unix-style line
14147   # endings, while the output of objdump will use host line endings.
14148   # Therefore, use diff -b for the comparisons.
14149   if test x$gcc_cv_objdump != x \
14150   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14151      | tail -3 > conftest.got \
14152   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14153     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14154   then
14155     gcc_cv_as_eh_frame=yes
14156   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158   (eval $ac_try) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162     gcc_cv_as_eh_frame=buggy
14163   else
14164     # Uh oh, what do we do now?
14165     gcc_cv_as_eh_frame=no
14166   fi
14167     else
14168       echo "configure: failed program was" >&5
14169       cat conftest.s >&5
14170     fi
14171     rm -f conftest.o conftest.s
14172   fi
14173 fi
14174 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14175 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14176
14177
14178 if test $gcc_cv_as_eh_frame = buggy; then
14179
14180 cat >>confdefs.h <<\_ACEOF
14181 #define USE_AS_TRADITIONAL_FORMAT 1
14182 _ACEOF
14183
14184 fi
14185
14186 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14187 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14188 if test "${gcc_cv_as_shf_merge+set}" = set; then
14189   echo $ECHO_N "(cached) $ECHO_C" >&6
14190 else
14191   gcc_cv_as_shf_merge=no
14192     if test $in_tree_gas = yes; then
14193     if test $in_tree_gas_is_elf = yes \
14194   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14195   then gcc_cv_as_shf_merge=yes
14196 fi
14197   elif test x$gcc_cv_as != x; then
14198     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14199     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201   (eval $ac_try) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); }; }
14205     then
14206         gcc_cv_as_shf_merge=yes
14207     else
14208       echo "configure: failed program was" >&5
14209       cat conftest.s >&5
14210     fi
14211     rm -f conftest.o conftest.s
14212   fi
14213 fi
14214 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14215 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14216
14217 if test $gcc_cv_as_shf_merge = no; then
14218   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14219 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14220 if test "${gcc_cv_as_shf_merge+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   gcc_cv_as_shf_merge=no
14224     if test $in_tree_gas = yes; then
14225     if test $in_tree_gas_is_elf = yes \
14226   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14227   then gcc_cv_as_shf_merge=yes
14228 fi
14229   elif test x$gcc_cv_as != x; then
14230     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14231     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233   (eval $ac_try) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); }; }
14237     then
14238         gcc_cv_as_shf_merge=yes
14239     else
14240       echo "configure: failed program was" >&5
14241       cat conftest.s >&5
14242     fi
14243     rm -f conftest.o conftest.s
14244   fi
14245 fi
14246 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14247 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14248
14249 fi
14250
14251 cat >>confdefs.h <<_ACEOF
14252 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14253 _ACEOF
14254
14255
14256 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14257 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14258 if test "${gcc_cv_as_comdat_group+set}" = set; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   gcc_cv_as_comdat_group=no
14262     if test $in_tree_gas = yes; then
14263     if test $in_tree_gas_is_elf = yes \
14264   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14265   then gcc_cv_as_comdat_group=yes
14266 fi
14267   elif test x$gcc_cv_as != x; then
14268     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14269     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }
14275     then
14276         gcc_cv_as_comdat_group=yes
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_comdat_group" >&5
14285 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14286
14287 if test $gcc_cv_as_comdat_group = yes; then
14288   gcc_cv_as_comdat_group_percent=no
14289 else
14290  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14291 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14292 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14293   echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295   gcc_cv_as_comdat_group_percent=no
14296     if test $in_tree_gas = yes; then
14297     if test $in_tree_gas_is_elf = yes \
14298   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14299   then gcc_cv_as_comdat_group_percent=yes
14300 fi
14301   elif test x$gcc_cv_as != x; then
14302     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14303     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305   (eval $ac_try) 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; }
14309     then
14310         gcc_cv_as_comdat_group_percent=yes
14311     else
14312       echo "configure: failed program was" >&5
14313       cat conftest.s >&5
14314     fi
14315     rm -f conftest.o conftest.s
14316   fi
14317 fi
14318 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14319 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14320
14321 fi
14322 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14323   comdat_group=yes
14324   if test 0"$ld_date" -lt 20050308; then
14325     if test -n "$ld_date"; then
14326       # If there was date string, but was earlier than 2005-03-08, fail
14327       comdat_group=no
14328     elif test "$ld_vers_major" -lt 2; then
14329       comdat_group=no
14330     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14331       comdat_group=no
14332     fi
14333   fi
14334 else
14335   # assume linkers other than GNU ld don't support COMDAT group
14336   comdat_group=no
14337 fi
14338 if test $comdat_group = no; then
14339   gcc_cv_as_comdat_group=no
14340   gcc_cv_as_comdat_group_percent=no
14341 fi
14342
14343 cat >>confdefs.h <<_ACEOF
14344 #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`
14345 _ACEOF
14346
14347
14348 # Thread-local storage - the check is heavily parametrized.
14349 conftest_s=
14350 tls_first_major=
14351 tls_first_minor=
14352 tls_as_opt=
14353 case "$target" in
14354   alpha*-*-*)
14355     conftest_s='
14356         .section ".tdata","awT",@progbits
14357 foo:    .long   25
14358         .text
14359         ldq     $27,__tls_get_addr($29)         !literal!1
14360         lda     $16,foo($29)                    !tlsgd!1
14361         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14362         ldq     $27,__tls_get_addr($29)         !literal!2
14363         lda     $16,foo($29)                    !tlsldm!2
14364         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14365         ldq     $1,foo($29)                     !gotdtprel
14366         ldah    $2,foo($29)                     !dtprelhi
14367         lda     $3,foo($2)                      !dtprello
14368         lda     $4,foo($29)                     !dtprel
14369         ldq     $1,foo($29)                     !gottprel
14370         ldah    $2,foo($29)                     !tprelhi
14371         lda     $3,foo($2)                      !tprello
14372         lda     $4,foo($29)                     !tprel'
14373         tls_first_major=2
14374         tls_first_minor=13
14375         tls_as_opt=--fatal-warnings
14376         ;;
14377   frv*-*-*)
14378     conftest_s='
14379         .section ".tdata","awT",@progbits
14380 x:      .long   25
14381         .text
14382         call    #gettlsoff(x)'
14383         tls_first_major=2
14384         tls_first_minor=14
14385         ;;
14386   hppa*-*-linux*)
14387     conftest_s='
14388 t1:     .reg    %r20
14389 t2:     .reg    %r21
14390 gp:     .reg    %r19
14391         .section ".tdata","awT",@progbits
14392 foo:    .long   25
14393         .text
14394         .align  4
14395         addil LT%foo-$tls_gdidx$,gp
14396         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14397         b __tls_get_addr
14398         nop
14399         addil LT%foo-$tls_ldidx$,gp
14400         b __tls_get_addr
14401         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14402         addil LR%foo-$tls_dtpoff$,%ret0
14403         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14404         mfctl %cr27,%t1
14405         addil LT%foo-$tls_ieoff$,gp
14406         ldw RT%foo-$tls_ieoff$(%r1),%t2
14407         add %t1,%t2,%t3
14408         mfctl %cr27,%t1
14409         addil LR%foo-$tls_leoff$,%t1
14410         ldo RR%foo-$tls_leoff$(%r1),%t2'
14411         tls_first_major=2
14412         tls_first_minor=15
14413         tls_as_opt=--fatal-warnings
14414         ;;
14415   arm*-*-*)
14416     conftest_s='
14417         .section ".tdata","awT",%progbits
14418 foo:    .long   25
14419         .text
14420 .word foo(gottpoff)
14421 .word foo(tpoff)
14422 .word foo(tlsgd)
14423 .word foo(tlsldm)
14424 .word foo(tlsldo)'
14425         tls_first_major=2
14426         tls_first_minor=17
14427         ;;
14428   i[34567]86-*-*)
14429     conftest_s='
14430         .section ".tdata","awT",@progbits
14431 foo:    .long   25
14432         .text
14433         movl    %gs:0, %eax
14434         leal    foo@TLSGD(,%ebx,1), %eax
14435         leal    foo@TLSLDM(%ebx), %eax
14436         leal    foo@DTPOFF(%eax), %edx
14437         movl    foo@GOTTPOFF(%ebx), %eax
14438         subl    foo@GOTTPOFF(%ebx), %eax
14439         addl    foo@GOTNTPOFF(%ebx), %eax
14440         movl    foo@INDNTPOFF, %eax
14441         movl    $foo@TPOFF, %eax
14442         subl    $foo@TPOFF, %eax
14443         leal    foo@NTPOFF(%ecx), %eax'
14444         tls_first_major=2
14445         tls_first_minor=14
14446         tls_as_opt=--fatal-warnings
14447         ;;
14448   x86_64-*-*)
14449     conftest_s='
14450         .section ".tdata","awT",@progbits
14451 foo:    .long   25
14452         .text
14453         movq    %fs:0, %rax
14454         leaq    foo@TLSGD(%rip), %rdi
14455         leaq    foo@TLSLD(%rip), %rdi
14456         leaq    foo@DTPOFF(%rax), %rdx
14457         movq    foo@GOTTPOFF(%rip), %rax
14458         movq    $foo@TPOFF, %rax'
14459         tls_first_major=2
14460         tls_first_minor=14
14461         tls_as_opt=--fatal-warnings
14462         ;;
14463   ia64-*-*)
14464     conftest_s='
14465         .section ".tdata","awT",@progbits
14466 foo:    data8   25
14467         .text
14468         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14469         addl    r17 = @ltoff(@dtprel(foo#)), gp
14470         addl    r18 = @ltoff(@tprel(foo#)), gp
14471         addl    r19 = @dtprel(foo#), gp
14472         adds    r21 = @dtprel(foo#), r13
14473         movl    r23 = @dtprel(foo#)
14474         addl    r20 = @tprel(foo#), gp
14475         adds    r22 = @tprel(foo#), r13
14476         movl    r24 = @tprel(foo#)'
14477         tls_first_major=2
14478         tls_first_minor=13
14479         tls_as_opt=--fatal-warnings
14480         ;;
14481   mips*-*-*)
14482     conftest_s='
14483         .section .tdata,"awT",@progbits
14484 x:
14485         .word 2
14486         .text
14487         addiu $4, $28, %tlsgd(x)
14488         addiu $4, $28, %tlsldm(x)
14489         lui $4, %dtprel_hi(x)
14490         addiu $4, $4, %dtprel_lo(x)
14491         lw $4, %gottprel(x)($28)
14492         lui $4, %tprel_hi(x)
14493         addiu $4, $4, %tprel_lo(x)'
14494         tls_first_major=2
14495         tls_first_minor=16
14496         tls_as_opt='-32 --fatal-warnings'
14497         ;;
14498   powerpc-*-*)
14499     conftest_s='
14500         .section ".tdata","awT",@progbits
14501         .align 2
14502 ld0:    .space 4
14503 ld1:    .space 4
14504 x1:     .space 4
14505 x2:     .space 4
14506 x3:     .space 4
14507         .text
14508         addi 3,31,ld0@got@tlsgd
14509         bl __tls_get_addr
14510         addi 3,31,x1@got@tlsld
14511         bl __tls_get_addr
14512         addi 9,3,x1@dtprel
14513         addis 9,3,x2@dtprel@ha
14514         addi 9,9,x2@dtprel@l
14515         lwz 9,x3@got@tprel(31)
14516         add 9,9,x@tls
14517         addi 9,2,x1@tprel
14518         addis 9,2,x2@tprel@ha
14519         addi 9,9,x2@tprel@l'
14520         tls_first_major=2
14521         tls_first_minor=14
14522         tls_as_opt="-a32 --fatal-warnings"
14523         ;;
14524   powerpc64-*-*)
14525     conftest_s='
14526         .section ".tdata","awT",@progbits
14527         .align 3
14528 ld0:    .space 8
14529 ld1:    .space 8
14530 x1:     .space 8
14531 x2:     .space 8
14532 x3:     .space 8
14533         .text
14534         addi 3,2,ld0@got@tlsgd
14535         bl .__tls_get_addr
14536         nop
14537         addi 3,2,ld1@toc
14538         bl .__tls_get_addr
14539         nop
14540         addi 3,2,x1@got@tlsld
14541         bl .__tls_get_addr
14542         nop
14543         addi 9,3,x1@dtprel
14544         bl .__tls_get_addr
14545         nop
14546         addis 9,3,x2@dtprel@ha
14547         addi 9,9,x2@dtprel@l
14548         bl .__tls_get_addr
14549         nop
14550         ld 9,x3@got@dtprel(2)
14551         add 9,9,3
14552         bl .__tls_get_addr
14553         nop'
14554         tls_first_major=2
14555         tls_first_minor=14
14556         tls_as_opt="-a64 --fatal-warnings"
14557         ;;
14558   s390-*-*)
14559     conftest_s='
14560         .section ".tdata","awT",@progbits
14561 foo:    .long   25
14562         .text
14563         .long   foo@TLSGD
14564         .long   foo@TLSLDM
14565         .long   foo@DTPOFF
14566         .long   foo@NTPOFF
14567         .long   foo@GOTNTPOFF
14568         .long   foo@INDNTPOFF
14569         l       %r1,foo@GOTNTPOFF(%r12)
14570         l       %r1,0(%r1):tls_load:foo
14571         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14572         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14573         tls_first_major=2
14574         tls_first_minor=14
14575         tls_as_opt="-m31 --fatal-warnings"
14576         ;;
14577   s390x-*-*)
14578     conftest_s='
14579         .section ".tdata","awT",@progbits
14580 foo:    .long   25
14581         .text
14582         .quad   foo@TLSGD
14583         .quad   foo@TLSLDM
14584         .quad   foo@DTPOFF
14585         .quad   foo@NTPOFF
14586         .quad   foo@GOTNTPOFF
14587         lg      %r1,foo@GOTNTPOFF(%r12)
14588         larl    %r1,foo@INDNTPOFF
14589         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14590         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14591         tls_first_major=2
14592         tls_first_minor=14
14593         tls_as_opt="-m64 -Aesame --fatal-warnings"
14594         ;;
14595   sh-*-* | sh[34]-*-*)
14596     conftest_s='
14597         .section ".tdata","awT",@progbits
14598 foo:    .long   25
14599         .text
14600         .long   foo@TLSGD
14601         .long   foo@TLSLDM
14602         .long   foo@DTPOFF
14603         .long   foo@GOTTPOFF
14604         .long   foo@TPOFF'
14605         tls_first_major=2
14606         tls_first_minor=13
14607         tls_as_opt=--fatal-warnings
14608         ;;
14609   sparc*-*-*)
14610     case "$target" in
14611       sparc*-sun-solaris2.[56789]*)
14612         # TLS was introduced in the Solaris 9 4/04 release but
14613         # we do not enable it by default on Solaris 9 either.
14614         if test "x$enable_tls" = xyes ; then
14615           on_solaris=yes
14616         else
14617           enable_tls=no;
14618         fi
14619         ;;
14620       sparc*-sun-solaris2.*)
14621         on_solaris=yes
14622         ;;
14623       *)
14624         on_solaris=no
14625         ;;
14626     esac
14627     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14628       conftest_s='
14629         .section ".tdata",#alloc,#write,#tls
14630 foo:    .long   25
14631         .text
14632         sethi   %tgd_hi22(foo), %o0
14633         add     %o0, %tgd_lo10(foo), %o1
14634         add     %l7, %o1, %o0, %tgd_add(foo)
14635         call    __tls_get_addr, %tgd_call(foo)
14636         sethi   %tldm_hi22(foo), %l1
14637         add     %l1, %tldm_lo10(foo), %l2
14638         add     %l7, %l2, %o0, %tldm_add(foo)
14639         call    __tls_get_addr, %tldm_call(foo)
14640         sethi   %tldo_hix22(foo), %l3
14641         xor     %l3, %tldo_lox10(foo), %l4
14642         add     %o0, %l4, %l5, %tldo_add(foo)
14643         sethi   %tie_hi22(foo), %o3
14644         add     %o3, %tie_lo10(foo), %o3
14645         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14646         add     %g7, %o2, %o4, %tie_add(foo)
14647         sethi   %tle_hix22(foo), %l1
14648         xor     %l1, %tle_lox10(foo), %o5
14649         ld      [%g7 + %o5], %o1'
14650         tls_first_major=0
14651         tls_first_minor=0
14652     else
14653       conftest_s='
14654         .section ".tdata","awT",@progbits
14655 foo:    .long   25
14656         .text
14657         sethi   %tgd_hi22(foo), %o0
14658         add     %o0, %tgd_lo10(foo), %o1
14659         add     %l7, %o1, %o0, %tgd_add(foo)
14660         call    __tls_get_addr, %tgd_call(foo)
14661         sethi   %tldm_hi22(foo), %l1
14662         add     %l1, %tldm_lo10(foo), %l2
14663         add     %l7, %l2, %o0, %tldm_add(foo)
14664         call    __tls_get_addr, %tldm_call(foo)
14665         sethi   %tldo_hix22(foo), %l3
14666         xor     %l3, %tldo_lox10(foo), %l4
14667         add     %o0, %l4, %l5, %tldo_add(foo)
14668         sethi   %tie_hi22(foo), %o3
14669         add     %o3, %tie_lo10(foo), %o3
14670         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14671         add     %g7, %o2, %o4, %tie_add(foo)
14672         sethi   %tle_hix22(foo), %l1
14673         xor     %l1, %tle_lox10(foo), %o5
14674         ld      [%g7 + %o5], %o1'
14675         tls_first_major=2
14676         tls_first_minor=14
14677         tls_as_opt="-32 --fatal-warnings"
14678       fi
14679         ;;
14680 esac
14681 set_have_as_tls=no
14682 if test "x$enable_tls" = xno ; then
14683   : # TLS explicitly disabled.
14684 elif test "x$enable_tls" = xyes ; then
14685   set_have_as_tls=yes # TLS explicitly enabled.
14686 elif test -z "$tls_first_major"; then
14687   : # If we don't have a check, assume no support.
14688 else
14689   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14690 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14691 if test "${gcc_cv_as_tls+set}" = set; then
14692   echo $ECHO_N "(cached) $ECHO_C" >&6
14693 else
14694   gcc_cv_as_tls=no
14695     if test $in_tree_gas = yes; then
14696     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14697   then gcc_cv_as_tls=yes
14698 fi
14699   elif test x$gcc_cv_as != x; then
14700     echo "$conftest_s" > conftest.s
14701     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; }
14707     then
14708         gcc_cv_as_tls=yes
14709     else
14710       echo "configure: failed program was" >&5
14711       cat conftest.s >&5
14712     fi
14713     rm -f conftest.o conftest.s
14714   fi
14715 fi
14716 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14717 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14718 if test $gcc_cv_as_tls = yes; then
14719   set_have_as_tls=yes
14720 fi
14721 fi
14722 if test $set_have_as_tls = yes ; then
14723
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_AS_TLS 1
14726 _ACEOF
14727
14728 fi
14729
14730 # Target-specific assembler checks.
14731
14732 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14733 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14734 gcc_cv_ld_static_dynamic=no
14735 if test $in_tree_ld = yes ; then
14736   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14737     gcc_cv_ld_static_dynamic=yes
14738   fi
14739 elif test x$gcc_cv_ld != x; then
14740         # Check if linker supports -Bstatic/-Bdynamic option
14741         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14742           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14743                 gcc_cv_ld_static_dynamic=yes
14744         fi
14745 fi
14746 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14747
14748 cat >>confdefs.h <<\_ACEOF
14749 #define HAVE_LD_STATIC_DYNAMIC 1
14750 _ACEOF
14751
14752 fi
14753 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14754 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14755
14756 if test x"$demangler_in_ld" = xyes; then
14757   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14758 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14759   gcc_cv_ld_demangle=no
14760   if test $in_tree_ld = yes; then
14761     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 \
14762       gcc_cv_ld_demangle=yes
14763     fi
14764   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14765     # Check if the GNU linker supports --demangle option
14766     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14767       gcc_cv_ld_demangle=yes
14768     fi
14769   fi
14770   if test x"$gcc_cv_ld_demangle" = xyes; then
14771
14772 cat >>confdefs.h <<\_ACEOF
14773 #define HAVE_LD_DEMANGLE 1
14774 _ACEOF
14775
14776   fi
14777   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14778 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14779 fi
14780
14781 case "$target" in
14782   # All TARGET_ABI_OSF targets.
14783   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14784     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14785 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14786 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14787   echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789   gcc_cv_as_alpha_explicit_relocs=no
14790     if test $in_tree_gas = yes; then
14791     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14792   then gcc_cv_as_alpha_explicit_relocs=yes
14793 fi
14794   elif test x$gcc_cv_as != x; then
14795     echo '      .set nomacro
14796         .text
14797         extbl   $3, $2, $3      !lituse_bytoff!1
14798         ldq     $2, a($29)      !literal!1
14799         ldq     $4, b($29)      !literal!2
14800         ldq_u   $3, 0($2)       !lituse_base!1
14801         ldq     $27, f($29)     !literal!5
14802         jsr     $26, ($27), f   !lituse_jsr!5
14803         ldah    $29, 0($26)     !gpdisp!3
14804         lda     $0, c($29)      !gprel
14805         ldah    $1, d($29)      !gprelhigh
14806         lda     $1, d($1)       !gprellow
14807         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14808     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }
14814     then
14815         gcc_cv_as_alpha_explicit_relocs=yes
14816     else
14817       echo "configure: failed program was" >&5
14818       cat conftest.s >&5
14819     fi
14820     rm -f conftest.o conftest.s
14821   fi
14822 fi
14823 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14824 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14825 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14826
14827 cat >>confdefs.h <<\_ACEOF
14828 #define HAVE_AS_EXPLICIT_RELOCS 1
14829 _ACEOF
14830
14831 fi
14832     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14833 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14834 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   gcc_cv_as_alpha_jsrdirect_relocs=no
14838     if test $in_tree_gas = yes; then
14839     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14840   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14841 fi
14842   elif test x$gcc_cv_as != x; then
14843     echo '      .set nomacro
14844         .text
14845         ldq     $27, a($29)     !literal!1
14846         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14847     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849   (eval $ac_try) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; }
14853     then
14854         gcc_cv_as_alpha_jsrdirect_relocs=yes
14855     else
14856       echo "configure: failed program was" >&5
14857       cat conftest.s >&5
14858     fi
14859     rm -f conftest.o conftest.s
14860   fi
14861 fi
14862 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14863 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14864 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14865
14866 cat >>confdefs.h <<\_ACEOF
14867 #define HAVE_AS_JSRDIRECT_RELOCS 1
14868 _ACEOF
14869
14870 fi
14871     ;;
14872
14873   cris-*-*)
14874     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14875 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14876 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14877   echo $ECHO_N "(cached) $ECHO_C" >&6
14878 else
14879   gcc_cv_as_cris_no_mul_bug=no
14880     if test $in_tree_gas = yes; then
14881     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14882   then gcc_cv_as_cris_no_mul_bug=yes
14883 fi
14884   elif test x$gcc_cv_as != x; then
14885     echo '.text' > conftest.s
14886     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888   (eval $ac_try) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); }; }
14892     then
14893         gcc_cv_as_cris_no_mul_bug=yes
14894     else
14895       echo "configure: failed program was" >&5
14896       cat conftest.s >&5
14897     fi
14898     rm -f conftest.o conftest.s
14899   fi
14900 fi
14901 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14902 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14903 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14904
14905 cat >>confdefs.h <<\_ACEOF
14906 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14907 _ACEOF
14908
14909 fi
14910     ;;
14911
14912   sparc*-*-*)
14913     echo "$as_me:$LINENO: checking assembler for .register" >&5
14914 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14915 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14916   echo $ECHO_N "(cached) $ECHO_C" >&6
14917 else
14918   gcc_cv_as_sparc_register_op=no
14919   if test x$gcc_cv_as != x; then
14920     echo '.register %g2, #scratch' > conftest.s
14921     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923   (eval $ac_try) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; }
14927     then
14928         gcc_cv_as_sparc_register_op=yes
14929     else
14930       echo "configure: failed program was" >&5
14931       cat conftest.s >&5
14932     fi
14933     rm -f conftest.o conftest.s
14934   fi
14935 fi
14936 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
14937 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
14938 if test $gcc_cv_as_sparc_register_op = yes; then
14939
14940 cat >>confdefs.h <<\_ACEOF
14941 #define HAVE_AS_REGISTER_PSEUDO_OP 1
14942 _ACEOF
14943
14944 fi
14945
14946     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
14947 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
14948 if test "${gcc_cv_as_sparc_relax+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   gcc_cv_as_sparc_relax=no
14952   if test x$gcc_cv_as != x; then
14953     echo '.text' > conftest.s
14954     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }
14960     then
14961         gcc_cv_as_sparc_relax=yes
14962     else
14963       echo "configure: failed program was" >&5
14964       cat conftest.s >&5
14965     fi
14966     rm -f conftest.o conftest.s
14967   fi
14968 fi
14969 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
14970 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
14971 if test $gcc_cv_as_sparc_relax = yes; then
14972
14973 cat >>confdefs.h <<\_ACEOF
14974 #define HAVE_AS_RELAX_OPTION 1
14975 _ACEOF
14976
14977 fi
14978
14979     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
14980 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
14981 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   gcc_cv_as_sparc_ua_pcrel=no
14985   if test x$gcc_cv_as != x; then
14986     echo '.text
14987 foo:
14988         nop
14989 .data
14990 .align 4
14991 .byte 0
14992 .uaword %r_disp32(foo)' > conftest.s
14993     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
14994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14995   (eval $ac_try) 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; }
14999     then
15000         if test x$gcc_cv_ld != x \
15001        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15002          gcc_cv_as_sparc_ua_pcrel=yes
15003        fi
15004        rm -f conftest
15005     else
15006       echo "configure: failed program was" >&5
15007       cat conftest.s >&5
15008     fi
15009     rm -f conftest.o conftest.s
15010   fi
15011 fi
15012 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15013 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15014 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_AS_SPARC_UA_PCREL 1
15018 _ACEOF
15019
15020
15021       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15022 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15023 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15024   echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026   gcc_cv_as_sparc_ua_pcrel_hidden=no
15027   if test x$gcc_cv_as != x; then
15028     echo '.data
15029 .align 4
15030 .byte 0x31
15031 .uaword %r_disp32(foo)
15032 .byte 0x32, 0x33, 0x34
15033 .global foo
15034 .hidden foo
15035 foo:
15036 .skip 4' > conftest.s
15037     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039   (eval $ac_try) 2>&5
15040   ac_status=$?
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); }; }
15043     then
15044         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15045          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15046          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15047             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15048             if $gcc_cv_objdump -R conftest 2> /dev/null \
15049                | grep 'DISP32' > /dev/null 2>&1; then
15050                 :
15051             else
15052                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15053             fi
15054          fi
15055          rm -f conftest
15056     else
15057       echo "configure: failed program was" >&5
15058       cat conftest.s >&5
15059     fi
15060     rm -f conftest.o conftest.s
15061   fi
15062 fi
15063 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15064 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15065 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15066
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15069 _ACEOF
15070
15071 fi
15072
15073 fi # unaligned pcrel relocs
15074
15075     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15076 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15077 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   gcc_cv_as_sparc_offsetable_lo10=no
15081   if test x$gcc_cv_as != x; then
15082     echo '.text
15083         or %g1, %lo(ab) + 12, %g1
15084         or %g1, %lo(ab + 12), %g1' > conftest.s
15085     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087   (eval $ac_try) 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; }
15091     then
15092         if test x$gcc_cv_objdump != x \
15093        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15094           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15095          gcc_cv_as_sparc_offsetable_lo10=yes
15096        fi
15097     else
15098       echo "configure: failed program was" >&5
15099       cat conftest.s >&5
15100     fi
15101     rm -f conftest.o conftest.s
15102   fi
15103 fi
15104 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15105 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15106 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15107
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_AS_OFFSETABLE_LO10 1
15110 _ACEOF
15111
15112 fi
15113     ;;
15114
15115   i[34567]86-*-* | x86_64-*-*)
15116     case $target_os in
15117       cygwin* | pe | mingw32*)
15118         # Used for DWARF 2 in PE
15119         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15120 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15121 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   gcc_cv_as_ix86_pe_secrel32=no
15125     if test $in_tree_gas = yes; then
15126     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15127   then gcc_cv_as_ix86_pe_secrel32=yes
15128 fi
15129   elif test x$gcc_cv_as != x; then
15130     echo '.text
15131 foo:    nop
15132 .data
15133         .secrel32 foo' > conftest.s
15134     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136   (eval $ac_try) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); }; }
15140     then
15141         if test x$gcc_cv_ld != x \
15142            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15143              gcc_cv_as_ix86_pe_secrel32=yes
15144            fi
15145            rm -f conftest
15146     else
15147       echo "configure: failed program was" >&5
15148       cat conftest.s >&5
15149     fi
15150     rm -f conftest.o conftest.s
15151   fi
15152 fi
15153 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15154 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15155 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15156
15157 cat >>confdefs.h <<\_ACEOF
15158 #define HAVE_GAS_PE_SECREL32_RELOC 1
15159 _ACEOF
15160
15161 fi
15162         ;;
15163     esac
15164
15165     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15166 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15167 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15168   echo $ECHO_N "(cached) $ECHO_C" >&6
15169 else
15170   gcc_cv_as_ix86_filds_fists=no
15171     if test $in_tree_gas = yes; then
15172     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15173   then gcc_cv_as_ix86_filds_fists=yes
15174 fi
15175   elif test x$gcc_cv_as != x; then
15176     echo 'filds mem; fists mem' > conftest.s
15177     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }
15183     then
15184         gcc_cv_as_ix86_filds_fists=yes
15185     else
15186       echo "configure: failed program was" >&5
15187       cat conftest.s >&5
15188     fi
15189     rm -f conftest.o conftest.s
15190   fi
15191 fi
15192 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15193 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15194 if test $gcc_cv_as_ix86_filds_fists = yes; then
15195
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_GAS_FILDS_FISTS 1
15198 _ACEOF
15199
15200 fi
15201
15202     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15203 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15204 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15205   echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207   gcc_cv_as_ix86_cmov_sun_syntax=no
15208   if test x$gcc_cv_as != x; then
15209     echo 'cmovl.l %edx, %eax' > conftest.s
15210     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212   (eval $ac_try) 2>&5
15213   ac_status=$?
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); }; }
15216     then
15217         gcc_cv_as_ix86_cmov_sun_syntax=yes
15218     else
15219       echo "configure: failed program was" >&5
15220       cat conftest.s >&5
15221     fi
15222     rm -f conftest.o conftest.s
15223   fi
15224 fi
15225 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15226 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15227 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15228
15229 cat >>confdefs.h <<\_ACEOF
15230 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15231 _ACEOF
15232
15233 fi
15234
15235     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15236 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15237 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240   gcc_cv_as_ix86_ffreep=no
15241   if test x$gcc_cv_as != x; then
15242     echo 'ffreep %st(1)' > conftest.s
15243     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245   (eval $ac_try) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; }
15249     then
15250         gcc_cv_as_ix86_ffreep=yes
15251     else
15252       echo "configure: failed program was" >&5
15253       cat conftest.s >&5
15254     fi
15255     rm -f conftest.o conftest.s
15256   fi
15257 fi
15258 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15259 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15260 if test $gcc_cv_as_ix86_ffreep = yes; then
15261
15262 cat >>confdefs.h <<\_ACEOF
15263 #define HAVE_AS_IX86_FFREEP 1
15264 _ACEOF
15265
15266 fi
15267
15268     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15269 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15270 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   gcc_cv_as_ix86_sahf=no
15274   if test x$gcc_cv_as != x; then
15275     echo 'sahf' > conftest.s
15276     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278   (eval $ac_try) 2>&5
15279   ac_status=$?
15280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281   (exit $ac_status); }; }
15282     then
15283         gcc_cv_as_ix86_sahf=yes
15284     else
15285       echo "configure: failed program was" >&5
15286       cat conftest.s >&5
15287     fi
15288     rm -f conftest.o conftest.s
15289   fi
15290 fi
15291 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15292 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15293 if test $gcc_cv_as_ix86_sahf = yes; then
15294
15295 cat >>confdefs.h <<\_ACEOF
15296 #define HAVE_AS_IX86_SAHF 1
15297 _ACEOF
15298
15299 fi
15300
15301     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15302 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15303 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   gcc_cv_as_ix86_diff_sect_delta=no
15307   if test x$gcc_cv_as != x; then
15308     echo '.section .rodata
15309 .L1:
15310         .long .L2-.L1
15311         .long .L3-.L1
15312         .text
15313 .L3:    nop
15314 .L2:    nop' > conftest.s
15315     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317   (eval $ac_try) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; }
15321     then
15322         gcc_cv_as_ix86_diff_sect_delta=yes
15323     else
15324       echo "configure: failed program was" >&5
15325       cat conftest.s >&5
15326     fi
15327     rm -f conftest.o conftest.s
15328   fi
15329 fi
15330 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15331 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15332 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15333
15334 cat >>confdefs.h <<\_ACEOF
15335 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15336 _ACEOF
15337
15338 fi
15339
15340     # This one is used unconditionally by i386.[ch]; it is to be defined
15341     # to 1 if the feature is present, 0 otherwise.
15342     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15343 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15344 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347   gcc_cv_as_ix86_gotoff_in_data=no
15348     if test $in_tree_gas = yes; then
15349     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15350   then gcc_cv_as_ix86_gotoff_in_data=yes
15351 fi
15352   elif test x$gcc_cv_as != x; then
15353     echo '      .text
15354 .L0:
15355         nop
15356         .data
15357         .long .L0@GOTOFF' > conftest.s
15358     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; }
15364     then
15365         gcc_cv_as_ix86_gotoff_in_data=yes
15366     else
15367       echo "configure: failed program was" >&5
15368       cat conftest.s >&5
15369     fi
15370     rm -f conftest.o conftest.s
15371   fi
15372 fi
15373 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15374 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15375
15376
15377 cat >>confdefs.h <<_ACEOF
15378 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15379 _ACEOF
15380
15381     ;;
15382
15383   ia64*-*-*)
15384     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15385 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15386 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15390     if test $in_tree_gas = yes; then
15391     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15392   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15393 fi
15394   elif test x$gcc_cv_as != x; then
15395     echo '      .text
15396         addl r15 = @ltoffx(x#), gp
15397         ;;
15398         ld8.mov r16 = [r15], x#' > conftest.s
15399     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401   (eval $ac_try) 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; }
15405     then
15406         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15407     else
15408       echo "configure: failed program was" >&5
15409       cat conftest.s >&5
15410     fi
15411     rm -f conftest.o conftest.s
15412   fi
15413 fi
15414 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15415 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15416 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15417
15418 cat >>confdefs.h <<\_ACEOF
15419 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15420 _ACEOF
15421
15422 fi
15423
15424     ;;
15425
15426   powerpc*-*-*)
15427     case $target in
15428       *-*-aix*) conftest_s='    .machine "pwr5"
15429         .csect .text[PR]
15430         mfcr 3,128';;
15431       *-*-darwin*)
15432         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15433 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15434 if test "${gcc_cv_as_machine_directive+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437   gcc_cv_as_machine_directive=no
15438   if test x$gcc_cv_as != x; then
15439     echo '      .machine ppc7400' > conftest.s
15440     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442   (eval $ac_try) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }
15446     then
15447         gcc_cv_as_machine_directive=yes
15448     else
15449       echo "configure: failed program was" >&5
15450       cat conftest.s >&5
15451     fi
15452     rm -f conftest.o conftest.s
15453   fi
15454 fi
15455 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15456 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15457
15458         if test x$gcc_cv_as_machine_directive != xyes; then
15459           echo "*** This target requires an assembler supporting \".machine\"" >&2
15460           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15461           test x$build = x$target && exit 1
15462         fi
15463         conftest_s='    .text
15464         mfcr r3,128';;
15465       *) conftest_s='   .machine power4
15466         .text
15467         mfcr 3,128';;
15468     esac
15469
15470     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15471 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15472 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15473   echo $ECHO_N "(cached) $ECHO_C" >&6
15474 else
15475   gcc_cv_as_powerpc_mfcrf=no
15476     if test $in_tree_gas = yes; then
15477     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15478   then gcc_cv_as_powerpc_mfcrf=yes
15479 fi
15480   elif test x$gcc_cv_as != x; then
15481     echo "$conftest_s" > conftest.s
15482     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }
15488     then
15489         gcc_cv_as_powerpc_mfcrf=yes
15490     else
15491       echo "configure: failed program was" >&5
15492       cat conftest.s >&5
15493     fi
15494     rm -f conftest.o conftest.s
15495   fi
15496 fi
15497 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15498 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15499 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15500
15501 cat >>confdefs.h <<\_ACEOF
15502 #define HAVE_AS_MFCRF 1
15503 _ACEOF
15504
15505 fi
15506
15507     case $target in
15508       *-*-aix*) conftest_s='    .machine "pwr5"
15509         .csect .text[PR]
15510         popcntb 3,3';;
15511       *) conftest_s='   .machine power5
15512         .text
15513         popcntb 3,3';;
15514     esac
15515
15516     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15517 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15518 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15519   echo $ECHO_N "(cached) $ECHO_C" >&6
15520 else
15521   gcc_cv_as_powerpc_popcntb=no
15522     if test $in_tree_gas = yes; then
15523     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15524   then gcc_cv_as_powerpc_popcntb=yes
15525 fi
15526   elif test x$gcc_cv_as != x; then
15527     echo "$conftest_s" > conftest.s
15528     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }
15534     then
15535         gcc_cv_as_powerpc_popcntb=yes
15536     else
15537       echo "configure: failed program was" >&5
15538       cat conftest.s >&5
15539     fi
15540     rm -f conftest.o conftest.s
15541   fi
15542 fi
15543 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15544 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15545 if test $gcc_cv_as_powerpc_popcntb = yes; then
15546
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_AS_POPCNTB 1
15549 _ACEOF
15550
15551 fi
15552
15553     case $target in
15554       *-*-aix*) conftest_s='    .machine "pwr5x"
15555         .csect .text[PR]
15556         frin 1,1';;
15557       *) conftest_s='   .machine power5
15558         .text
15559         frin 1,1';;
15560     esac
15561
15562     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15563 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15564 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15565   echo $ECHO_N "(cached) $ECHO_C" >&6
15566 else
15567   gcc_cv_as_powerpc_fprnd=no
15568     if test $in_tree_gas = yes; then
15569     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15570   then gcc_cv_as_powerpc_fprnd=yes
15571 fi
15572   elif test x$gcc_cv_as != x; then
15573     echo "$conftest_s" > conftest.s
15574     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; }
15580     then
15581         gcc_cv_as_powerpc_fprnd=yes
15582     else
15583       echo "configure: failed program was" >&5
15584       cat conftest.s >&5
15585     fi
15586     rm -f conftest.o conftest.s
15587   fi
15588 fi
15589 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15590 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15591 if test $gcc_cv_as_powerpc_fprnd = yes; then
15592
15593 cat >>confdefs.h <<\_ACEOF
15594 #define HAVE_AS_FPRND 1
15595 _ACEOF
15596
15597 fi
15598
15599     case $target in
15600       *-*-aix*) conftest_s='    .machine "pwr6"
15601         .csect .text[PR]
15602         mffgpr 1,3';;
15603       *) conftest_s='   .machine power6
15604         .text
15605         mffgpr 1,3';;
15606     esac
15607
15608     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15609 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15610 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15611   echo $ECHO_N "(cached) $ECHO_C" >&6
15612 else
15613   gcc_cv_as_powerpc_mfpgpr=no
15614     if test $in_tree_gas = yes; then
15615     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15616   then gcc_cv_as_powerpc_mfpgpr=yes
15617 fi
15618   elif test x$gcc_cv_as != x; then
15619     echo "$conftest_s" > conftest.s
15620     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15622   (eval $ac_try) 2>&5
15623   ac_status=$?
15624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625   (exit $ac_status); }; }
15626     then
15627         gcc_cv_as_powerpc_mfpgpr=yes
15628     else
15629       echo "configure: failed program was" >&5
15630       cat conftest.s >&5
15631     fi
15632     rm -f conftest.o conftest.s
15633   fi
15634 fi
15635 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15636 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15637 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15638
15639 cat >>confdefs.h <<\_ACEOF
15640 #define HAVE_AS_MFPGPR 1
15641 _ACEOF
15642
15643 fi
15644
15645     case $target in
15646       *-*-aix*) conftest_s='    .csect .text[PR]
15647 LCF..0:
15648         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15649       *-*-darwin*)
15650         conftest_s='    .text
15651 LCF0:
15652         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15653       *) conftest_s='   .text
15654 .LCF0:
15655         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15656     esac
15657
15658     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15659 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15660 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   gcc_cv_as_powerpc_rel16=no
15664     if test $in_tree_gas = yes; then
15665     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15666   then gcc_cv_as_powerpc_rel16=yes
15667 fi
15668   elif test x$gcc_cv_as != x; then
15669     echo "$conftest_s" > conftest.s
15670     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15672   (eval $ac_try) 2>&5
15673   ac_status=$?
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); }; }
15676     then
15677         gcc_cv_as_powerpc_rel16=yes
15678     else
15679       echo "configure: failed program was" >&5
15680       cat conftest.s >&5
15681     fi
15682     rm -f conftest.o conftest.s
15683   fi
15684 fi
15685 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15686 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15687 if test $gcc_cv_as_powerpc_rel16 = yes; then
15688
15689 cat >>confdefs.h <<\_ACEOF
15690 #define HAVE_AS_REL16 1
15691 _ACEOF
15692
15693 fi
15694
15695     case $target in
15696       *-*-aix*) conftest_s='    .machine "pwr6"
15697         .csect .text[PR]
15698         cmpb 3,4,5';;
15699       *) conftest_s='   .machine power6
15700         .text
15701         cmpb 3,4,5';;
15702     esac
15703
15704     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15705 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15706 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15707   echo $ECHO_N "(cached) $ECHO_C" >&6
15708 else
15709   gcc_cv_as_powerpc_cmpb=no
15710     if test $in_tree_gas = yes; then
15711     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15712   then gcc_cv_as_powerpc_cmpb=yes
15713 fi
15714   elif test x$gcc_cv_as != x; then
15715     echo "$conftest_s" > conftest.s
15716     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718   (eval $ac_try) 2>&5
15719   ac_status=$?
15720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721   (exit $ac_status); }; }
15722     then
15723         gcc_cv_as_powerpc_cmpb=yes
15724     else
15725       echo "configure: failed program was" >&5
15726       cat conftest.s >&5
15727     fi
15728     rm -f conftest.o conftest.s
15729   fi
15730 fi
15731 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15732 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15733 if test $gcc_cv_as_powerpc_cmpb = yes; then
15734
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_AS_CMPB 1
15737 _ACEOF
15738
15739 fi
15740
15741     case $target in
15742       *-*-aix*) conftest_s='    .machine "pwr6"
15743         .csect .text[PR]
15744         dadd 1,2,3';;
15745       *) conftest_s='   .machine power6
15746         .text
15747         dadd 1,2,3';;
15748     esac
15749
15750     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15751 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15752 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   gcc_cv_as_powerpc_dfp=no
15756     if test $in_tree_gas = yes; then
15757     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15758   then gcc_cv_as_powerpc_dfp=yes
15759 fi
15760   elif test x$gcc_cv_as != x; then
15761     echo "$conftest_s" > conftest.s
15762     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764   (eval $ac_try) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; }
15768     then
15769         gcc_cv_as_powerpc_dfp=yes
15770     else
15771       echo "configure: failed program was" >&5
15772       cat conftest.s >&5
15773     fi
15774     rm -f conftest.o conftest.s
15775   fi
15776 fi
15777 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15778 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15779 if test $gcc_cv_as_powerpc_dfp = yes; then
15780
15781 cat >>confdefs.h <<\_ACEOF
15782 #define HAVE_AS_DFP 1
15783 _ACEOF
15784
15785 fi
15786
15787     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15788 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15789 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   gcc_cv_as_powerpc_gnu_attribute=no
15793     if test $in_tree_gas = yes; then
15794     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15795   then gcc_cv_as_powerpc_gnu_attribute=yes
15796 fi
15797   elif test x$gcc_cv_as != x; then
15798     echo '.gnu_attribute 4,1' > conftest.s
15799     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }
15805     then
15806         gcc_cv_as_powerpc_gnu_attribute=yes
15807     else
15808       echo "configure: failed program was" >&5
15809       cat conftest.s >&5
15810     fi
15811     rm -f conftest.o conftest.s
15812   fi
15813 fi
15814 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15815 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15816 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15817
15818 cat >>confdefs.h <<\_ACEOF
15819 #define HAVE_AS_GNU_ATTRIBUTE 1
15820 _ACEOF
15821
15822 fi
15823     ;;
15824
15825   mips*-*-*)
15826     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15827 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15828 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15829   echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831   gcc_cv_as_mips_explicit_relocs=no
15832     if test $in_tree_gas = yes; then
15833     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15834   then gcc_cv_as_mips_explicit_relocs=yes
15835 fi
15836   elif test x$gcc_cv_as != x; then
15837     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15838     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840   (eval $ac_try) 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; }
15844     then
15845         gcc_cv_as_mips_explicit_relocs=yes
15846     else
15847       echo "configure: failed program was" >&5
15848       cat conftest.s >&5
15849     fi
15850     rm -f conftest.o conftest.s
15851   fi
15852 fi
15853 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15854 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15855 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15856   if test x$target_cpu_default = x
15857        then target_cpu_default=MASK_EXPLICIT_RELOCS
15858        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15859        fi
15860 fi
15861     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15862 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15863 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15864   echo $ECHO_N "(cached) $ECHO_C" >&6
15865 else
15866   gcc_cv_as_mips_no_shared=no
15867     if test $in_tree_gas = yes; then
15868     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15869   then gcc_cv_as_mips_no_shared=yes
15870 fi
15871   elif test x$gcc_cv_as != x; then
15872     echo 'nop' > conftest.s
15873     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875   (eval $ac_try) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); }; }
15879     then
15880         gcc_cv_as_mips_no_shared=yes
15881     else
15882       echo "configure: failed program was" >&5
15883       cat conftest.s >&5
15884     fi
15885     rm -f conftest.o conftest.s
15886   fi
15887 fi
15888 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15889 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15890 if test $gcc_cv_as_mips_no_shared = yes; then
15891
15892 cat >>confdefs.h <<\_ACEOF
15893 #define HAVE_AS_NO_SHARED 1
15894 _ACEOF
15895
15896 fi
15897
15898     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15899 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15900 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   gcc_cv_as_mips_gnu_attribute=no
15904     if test $in_tree_gas = yes; then
15905     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15906   then gcc_cv_as_mips_gnu_attribute=yes
15907 fi
15908   elif test x$gcc_cv_as != x; then
15909     echo '.gnu_attribute 4,1' > conftest.s
15910     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912   (eval $ac_try) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); }; }
15916     then
15917         gcc_cv_as_mips_gnu_attribute=yes
15918     else
15919       echo "configure: failed program was" >&5
15920       cat conftest.s >&5
15921     fi
15922     rm -f conftest.o conftest.s
15923   fi
15924 fi
15925 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
15926 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
15927 if test $gcc_cv_as_mips_gnu_attribute = yes; then
15928
15929 cat >>confdefs.h <<\_ACEOF
15930 #define HAVE_AS_GNU_ATTRIBUTE 1
15931 _ACEOF
15932
15933 fi
15934
15935     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
15936 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
15937 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
15938   echo $ECHO_N "(cached) $ECHO_C" >&6
15939 else
15940   gcc_cv_as_mips_dtprelword=no
15941     if test $in_tree_gas = yes; then
15942     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15943   then gcc_cv_as_mips_dtprelword=yes
15944 fi
15945   elif test x$gcc_cv_as != x; then
15946     echo '.section .tdata,"awT",@progbits
15947 x:
15948         .word 2
15949         .text
15950         .dtprelword x+0x8000' > conftest.s
15951     if { ac_try='$gcc_cv_as  -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         gcc_cv_as_mips_dtprelword=yes
15959     else
15960       echo "configure: failed program was" >&5
15961       cat conftest.s >&5
15962     fi
15963     rm -f conftest.o conftest.s
15964   fi
15965 fi
15966 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
15967 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
15968 if test $gcc_cv_as_mips_dtprelword = yes; then
15969
15970 cat >>confdefs.h <<\_ACEOF
15971 #define HAVE_AS_DTPRELWORD 1
15972 _ACEOF
15973
15974 fi
15975     ;;
15976 esac
15977
15978 # Mips and HP-UX need the GNU assembler.
15979 # Linux on IA64 might be able to use the Intel assembler.
15980
15981 case "$target" in
15982   mips*-*-* | *-*-hpux* )
15983     if test x$gas_flag = xyes \
15984        || test x"$host" != x"$build" \
15985        || test ! -x "$gcc_cv_as" \
15986        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
15987       :
15988     else
15989       echo "*** This configuration requires the GNU assembler" >&2
15990       exit 1
15991     fi
15992     ;;
15993 esac
15994
15995 # ??? Not all targets support dwarf2 debug_line, even within a version
15996 # of gas.  Moreover, we need to emit a valid instruction to trigger any
15997 # info to the output file.  So, as supported targets are added to gas 2.11,
15998 # add some instruction here to (also) show we expect this might work.
15999 # ??? Once 2.11 is released, probably need to add first known working
16000 # version to the per-target configury.
16001 case "$target" in
16002   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16003   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16004   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16005     insn="nop"
16006     ;;
16007   ia64*-*-* | s390*-*-*)
16008     insn="nop 0"
16009     ;;
16010   mmix-*-*)
16011     insn="swym 0"
16012     ;;
16013 esac
16014 if test x"$insn" != x; then
16015  conftest_s="\
16016         .file 1 \"conftest.s\"
16017         .loc 1 3 0
16018         $insn"
16019  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16020 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16021 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024   gcc_cv_as_dwarf2_debug_line=no
16025     if test $in_tree_gas = yes; then
16026     if test $in_tree_gas_is_elf = yes \
16027   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16028   then gcc_cv_as_dwarf2_debug_line=yes
16029 fi
16030   elif test x$gcc_cv_as != x; then
16031     echo "$conftest_s" > conftest.s
16032     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034   (eval $ac_try) 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; }
16038     then
16039         if test x$gcc_cv_objdump != x \
16040    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16041       | grep debug_line > /dev/null 2>&1; then
16042      gcc_cv_as_dwarf2_debug_line=yes
16043    fi
16044     else
16045       echo "configure: failed program was" >&5
16046       cat conftest.s >&5
16047     fi
16048     rm -f conftest.o conftest.s
16049   fi
16050 fi
16051 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16052 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16053
16054
16055 # The .debug_line file table must be in the exact order that
16056 # we specified the files, since these indices are also used
16057 # by DW_AT_decl_file.  Approximate this test by testing if
16058 # the assembler bitches if the same index is assigned twice.
16059  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16060 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16061 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16062   echo $ECHO_N "(cached) $ECHO_C" >&6
16063 else
16064   gcc_cv_as_dwarf2_file_buggy=no
16065   if test x$gcc_cv_as != x; then
16066     echo '      .file 1 "foo.s"
16067         .file 1 "bar.s"' > conftest.s
16068     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070   (eval $ac_try) 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }
16074     then
16075         gcc_cv_as_dwarf2_file_buggy=yes
16076     else
16077       echo "configure: failed program was" >&5
16078       cat conftest.s >&5
16079     fi
16080     rm -f conftest.o conftest.s
16081   fi
16082 fi
16083 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16084 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16085
16086
16087  if test $gcc_cv_as_dwarf2_debug_line = yes \
16088  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16089
16090 cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16092 _ACEOF
16093
16094  fi
16095
16096  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16097 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16098 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   gcc_cv_as_gdwarf2_flag=no
16102     if test $in_tree_gas = yes; then
16103     if test $in_tree_gas_is_elf = yes \
16104   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16105   then gcc_cv_as_gdwarf2_flag=yes
16106 fi
16107   elif test x$gcc_cv_as != x; then
16108     echo "$insn" > conftest.s
16109     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111   (eval $ac_try) 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; }
16115     then
16116         gcc_cv_as_gdwarf2_flag=yes
16117     else
16118       echo "configure: failed program was" >&5
16119       cat conftest.s >&5
16120     fi
16121     rm -f conftest.o conftest.s
16122   fi
16123 fi
16124 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16125 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16126 if test $gcc_cv_as_gdwarf2_flag = yes; then
16127
16128 cat >>confdefs.h <<\_ACEOF
16129 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16130 _ACEOF
16131
16132 fi
16133
16134  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16135 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16136 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16137   echo $ECHO_N "(cached) $ECHO_C" >&6
16138 else
16139   gcc_cv_as_gstabs_flag=no
16140     if test $in_tree_gas = yes; then
16141     if test $in_tree_gas_is_elf = yes \
16142   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16143   then gcc_cv_as_gstabs_flag=yes
16144 fi
16145   elif test x$gcc_cv_as != x; then
16146     echo "$insn" > conftest.s
16147     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16149   (eval $ac_try) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); }; }
16153     then
16154         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16155    # and warns about it, but still exits successfully.  So check for
16156    # this.
16157    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }
16163    then :
16164    else gcc_cv_as_gstabs_flag=yes
16165    fi
16166     else
16167       echo "configure: failed program was" >&5
16168       cat conftest.s >&5
16169     fi
16170     rm -f conftest.o conftest.s
16171   fi
16172 fi
16173 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16174 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16175 if test $gcc_cv_as_gstabs_flag = yes; then
16176
16177 cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16179 _ACEOF
16180
16181 fi
16182 fi
16183
16184 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16185 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16186 if test "${gcc_cv_as_line_zero+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   gcc_cv_as_line_zero=no
16190   if test $in_tree_gas = yes; then
16191     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16192   then gcc_cv_as_line_zero=yes
16193 fi
16194   elif test "x$gcc_cv_as" != x; then
16195     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16196     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198   (eval $ac_try) 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; } &&
16202        test "x`cat conftest.out`" = x
16203     then
16204       gcc_cv_as_line_zero=yes
16205     else
16206       echo "configure: failed program was" >&5
16207       cat conftest.s >&5
16208       echo "configure: error output was" >&5
16209       cat conftest.out >&5
16210     fi
16211     rm -f conftest.o conftest.s conftest.out
16212   fi
16213 fi
16214 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16215 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16216 if test "x$gcc_cv_as_line_zero" = xyes; then
16217
16218 cat >>confdefs.h <<\_ACEOF
16219 #define HAVE_AS_LINE_ZERO 1
16220 _ACEOF
16221
16222 fi
16223
16224 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16225 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16226 gcc_cv_ld_ro_rw_mix=unknown
16227 if test $in_tree_ld = yes ; then
16228   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 \
16229      && test $in_tree_ld_is_elf = yes; then
16230     gcc_cv_ld_ro_rw_mix=read-write
16231   fi
16232 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16233   echo '.section myfoosect, "a"' > conftest1.s
16234   echo '.section myfoosect, "aw"' > conftest2.s
16235   echo '.byte 1' >> conftest2.s
16236   echo '.section myfoosect, "a"' > conftest3.s
16237   echo '.byte 0' >> conftest3.s
16238   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16239      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16240      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16241      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16242         conftest2.o conftest3.o > /dev/null 2>&1; then
16243     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16244                          | sed -e '/myfoosect/!d' -e N`
16245     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16246       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16247         gcc_cv_ld_ro_rw_mix=read-only
16248       else
16249         gcc_cv_ld_ro_rw_mix=read-write
16250       fi
16251     fi
16252   fi
16253   rm -f conftest.* conftest[123].*
16254 fi
16255 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16256
16257 cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16259 _ACEOF
16260
16261 fi
16262 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16263 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16264
16265 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16266 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16267 gcc_cv_ld_eh_frame_hdr=no
16268 if test $in_tree_ld = yes ; then
16269   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 \
16270      && test $in_tree_ld_is_elf = yes; then
16271     gcc_cv_ld_eh_frame_hdr=yes
16272   fi
16273 elif test x$gcc_cv_ld != x; then
16274         # Check if linker supports --eh-frame-hdr option
16275         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16276                 gcc_cv_ld_eh_frame_hdr=yes
16277         fi
16278 fi
16279
16280 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16281
16282 cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_LD_EH_FRAME_HDR 1
16284 _ACEOF
16285
16286 fi
16287 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16288 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16289
16290 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16291 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16292 gcc_cv_ld_pie=no
16293 if test $in_tree_ld = yes ; then
16294   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 \
16295      && test $in_tree_ld_is_elf = yes; then
16296     gcc_cv_ld_pie=yes
16297   fi
16298 elif test x$gcc_cv_ld != x; then
16299         # Check if linker supports -pie option
16300         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16301                 gcc_cv_ld_pie=yes
16302         fi
16303 fi
16304 if test x"$gcc_cv_ld_pie" = xyes; then
16305
16306 cat >>confdefs.h <<\_ACEOF
16307 #define HAVE_LD_PIE 1
16308 _ACEOF
16309
16310 fi
16311 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16312 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16313
16314 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16315 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16316 gcc_cv_ld_eh_gc_sections=no
16317 if test $in_tree_ld = yes ; then
16318   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
16319      && test $in_tree_ld_is_elf = yes; then
16320     gcc_cv_ld_eh_gc_sections=yes
16321   fi
16322 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16323   cat > conftest.s <<EOF
16324         .section        .text
16325 .globl _start
16326         .type _start, @function
16327 _start:
16328         .long foo
16329         .size _start, .-_start
16330         .section        .text.foo,"ax",@progbits
16331         .type foo, @function
16332 foo:
16333         .long 0
16334         .size foo, .-foo
16335         .section        .gcc_except_table.foo,"a",@progbits
16336 .L0:
16337         .long 0
16338         .section        .eh_frame,"a",@progbits
16339         .long .L0
16340 EOF
16341   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16342     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16343          | grep "gc-sections option ignored" > /dev/null; then
16344       gcc_cv_ld_eh_gc_sections=no
16345     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16346       gcc_cv_ld_eh_gc_sections=yes
16347       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16348       if test x$gcc_cv_as_comdat_group != xyes; then
16349         gcc_cv_ld_eh_gc_sections=no
16350         cat > conftest.s <<EOF
16351         .section        .text
16352 .globl _start
16353         .type _start, @function
16354 _start:
16355         .long foo
16356         .size _start, .-_start
16357         .section        .gnu.linkonce.t.foo,"ax",@progbits
16358         .type foo, @function
16359 foo:
16360         .long 0
16361         .size foo, .-foo
16362         .section        .gcc_except_table.foo,"a",@progbits
16363 .L0:
16364         .long 0
16365         .section        .eh_frame,"a",@progbits
16366         .long .L0
16367 EOF
16368         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16369           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16370                | grep "gc-sections option ignored" > /dev/null; then
16371             gcc_cv_ld_eh_gc_sections=no
16372           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16373             gcc_cv_ld_eh_gc_sections=yes
16374           fi
16375         fi
16376       fi
16377     fi
16378   fi
16379   rm -f conftest.s conftest.o conftest
16380 fi
16381 case "$target" in
16382   hppa*-*-linux*)
16383     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16384     gcc_cv_ld_eh_gc_sections=no
16385     ;;
16386 esac
16387 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16388
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE_LD_EH_GC_SECTIONS 1
16391 _ACEOF
16392
16393 fi
16394 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16395 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16396
16397 # --------
16398 # UNSORTED
16399 # --------
16400
16401 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16402 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16403 if test "${gcc_cv_ld_as_needed+set}" = set; then
16404   echo $ECHO_N "(cached) $ECHO_C" >&6
16405 else
16406   gcc_cv_ld_as_needed=no
16407 if test $in_tree_ld = yes ; then
16408   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 \
16409      && test $in_tree_ld_is_elf = yes; then
16410     gcc_cv_ld_as_needed=yes
16411   fi
16412 elif test x$gcc_cv_ld != x; then
16413         # Check if linker supports --as-needed and --no-as-needed options
16414         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16415                 gcc_cv_ld_as_needed=yes
16416         fi
16417 fi
16418
16419 fi
16420 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16421 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16422 if test x"$gcc_cv_ld_as_needed" = xyes; then
16423
16424 cat >>confdefs.h <<\_ACEOF
16425 #define HAVE_LD_AS_NEEDED 1
16426 _ACEOF
16427
16428 fi
16429
16430 case "$target:$tm_file" in
16431   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16432     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16433 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16434 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16435   echo $ECHO_N "(cached) $ECHO_C" >&6
16436 else
16437   gcc_cv_ld_no_dot_syms=no
16438     if test $in_tree_ld = yes ; then
16439       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
16440         gcc_cv_ld_no_dot_syms=yes
16441       fi
16442     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16443       cat > conftest1.s <<EOF
16444         .text
16445         bl .foo
16446 EOF
16447       cat > conftest2.s <<EOF
16448         .section ".opd","aw"
16449         .align 3
16450         .globl foo
16451         .type foo,@function
16452 foo:
16453         .quad .LEfoo,.TOC.@tocbase,0
16454         .text
16455 .LEfoo:
16456         blr
16457         .size foo,.-.LEfoo
16458 EOF
16459       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16460          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16461          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16462         gcc_cv_ld_no_dot_syms=yes
16463       fi
16464       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16465     fi
16466
16467 fi
16468 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16469 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16470     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16471
16472 cat >>confdefs.h <<\_ACEOF
16473 #define HAVE_LD_NO_DOT_SYMS 1
16474 _ACEOF
16475
16476     fi
16477     ;;
16478 esac
16479
16480 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16481 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16482 if test "${gcc_cv_ld_sysroot+set}" = set; then
16483   echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485   gcc_cv_ld_sysroot=no
16486   if test $in_tree_ld = yes ; then
16487       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
16488         gcc_cv_ld_sysroot=yes
16489       fi
16490   elif test x$gcc_cv_ld != x; then
16491     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16492       gcc_cv_ld_sysroot=yes
16493     fi
16494   fi
16495 fi
16496 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16497 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16498 if test x"$gcc_cv_ld_sysroot" = xyes; then
16499
16500 cat >>confdefs.h <<\_ACEOF
16501 #define HAVE_LD_SYSROOT 1
16502 _ACEOF
16503
16504 fi
16505
16506 if test x$with_sysroot = x && test x$host = x$target \
16507    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16508    && test "$prefix" != "NONE"; then
16509
16510 cat >>confdefs.h <<_ACEOF
16511 #define PREFIX_INCLUDE_DIR "$prefix/include"
16512 _ACEOF
16513
16514 fi
16515
16516 # Test for stack protector support in target C library.
16517 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16518 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16519 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16520   echo $ECHO_N "(cached) $ECHO_C" >&6
16521 else
16522   gcc_cv_libc_provides_ssp=no
16523     case "$target" in
16524        *-*-linux*)
16525       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16526         if test "x$with_sysroot" = x; then
16527           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16528         elif test "x$with_build_sysroot" != "x"; then
16529           glibc_header_dir="${with_build_sysroot}/usr/include"
16530         elif test "x$with_sysroot" = xyes; then
16531           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16532         else
16533           glibc_header_dir="${with_sysroot}/usr/include"
16534         fi
16535       else
16536         glibc_header_dir=/usr/include
16537       fi
16538       # glibc 2.4 and later provides __stack_chk_fail and
16539       # either __stack_chk_guard, or TLS access to stack guard canary.
16540       if test -f $glibc_header_dir/features.h \
16541          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16542             $glibc_header_dir/features.h > /dev/null; then
16543         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16544            $glibc_header_dir/features.h > /dev/null; then
16545           gcc_cv_libc_provides_ssp=yes
16546         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16547              $glibc_header_dir/features.h > /dev/null \
16548              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16549              $glibc_header_dir/features.h > /dev/null; then
16550           gcc_cv_libc_provides_ssp=yes
16551         fi
16552         fi
16553         ;;
16554        *-*-darwin*)
16555          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16556 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16557 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560   cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16568 #define __stack_chk_fail innocuous___stack_chk_fail
16569
16570 /* System header to define __stub macros and hopefully few prototypes,
16571     which can conflict with char __stack_chk_fail (); below.
16572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16573     <limits.h> exists even on freestanding compilers.  */
16574
16575 #ifdef __STDC__
16576 # include <limits.h>
16577 #else
16578 # include <assert.h>
16579 #endif
16580
16581 #undef __stack_chk_fail
16582
16583 /* Override any gcc2 internal prototype to avoid an error.  */
16584 #ifdef __cplusplus
16585 extern "C"
16586 {
16587 #endif
16588 /* We use char because int might match the return type of a gcc2
16589    builtin and then its argument prototype would still apply.  */
16590 char __stack_chk_fail ();
16591 /* The GNU C library defines this for functions which it implements
16592     to always fail with ENOSYS.  Some functions are actually named
16593     something starting with __ and the normal name is an alias.  */
16594 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16595 choke me
16596 #else
16597 char (*f) () = __stack_chk_fail;
16598 #endif
16599 #ifdef __cplusplus
16600 }
16601 #endif
16602
16603 int
16604 main ()
16605 {
16606 return f != __stack_chk_fail;
16607   ;
16608   return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext conftest$ac_exeext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16613   (eval $ac_link) 2>conftest.er1
16614   ac_status=$?
16615   grep -v '^ *+' conftest.er1 >conftest.err
16616   rm -f conftest.er1
16617   cat conftest.err >&5
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } &&
16620          { ac_try='test -z "$ac_c_werror_flag"
16621                          || test ! -s conftest.err'
16622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623   (eval $ac_try) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; } &&
16627          { ac_try='test -s conftest$ac_exeext'
16628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629   (eval $ac_try) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; }; then
16633   ac_cv_func___stack_chk_fail=yes
16634 else
16635   echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 ac_cv_func___stack_chk_fail=no
16639 fi
16640 rm -f conftest.err conftest.$ac_objext \
16641       conftest$ac_exeext conftest.$ac_ext
16642 fi
16643 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16644 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16645 if test $ac_cv_func___stack_chk_fail = yes; then
16646   gcc_cv_libc_provides_ssp=yes
16647 else
16648   echo "no __stack_chk_fail on this target"
16649 fi
16650
16651         ;;
16652   *) gcc_cv_libc_provides_ssp=no ;;
16653     esac
16654 fi
16655 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16656 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16657
16658 if test x$gcc_cv_libc_provides_ssp = xyes; then
16659
16660 cat >>confdefs.h <<\_ACEOF
16661 #define TARGET_LIBC_PROVIDES_SSP 1
16662 _ACEOF
16663
16664 fi
16665
16666 # Check if TFmode long double should be used by default or not.
16667 # Some glibc targets used DFmode long double, but with glibc 2.4
16668 # and later they can use TFmode.
16669 case "$target" in
16670   powerpc*-*-linux* | \
16671   powerpc*-*-gnu* | \
16672   sparc*-*-linux* | \
16673   s390*-*-linux* | \
16674   alpha*-*-linux*)
16675
16676 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16677 if test "${with_long_double_128+set}" = set; then
16678   withval="$with_long_double_128"
16679   gcc_cv_target_ldbl128="$with_long_double_128"
16680 else
16681   gcc_cv_target_ldbl128=no
16682       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16683         if test "x$with_sysroot" = x; then
16684           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16685         elif test "x$with_build_sysroot" != "x"; then
16686           glibc_header_dir="${with_build_sysroot}/usr/include"
16687         elif test "x$with_sysroot" = xyes; then
16688           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16689         else
16690           glibc_header_dir="${with_sysroot}/usr/include"
16691         fi
16692       else
16693         glibc_header_dir=/usr/include
16694       fi
16695       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16696         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16697       && gcc_cv_target_ldbl128=yes
16698
16699 fi;
16700     ;;
16701 esac
16702 if test x$gcc_cv_target_ldbl128 = xyes; then
16703
16704 cat >>confdefs.h <<\_ACEOF
16705 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16706 _ACEOF
16707
16708 fi
16709
16710 # Find out what GC implementation we want, or may, use.
16711
16712 # Check whether --with-gc or --without-gc was given.
16713 if test "${with_gc+set}" = set; then
16714   withval="$with_gc"
16715   case "$withval" in
16716   page)
16717     GGC=ggc-$withval
16718     ;;
16719   zone)
16720     GGC=ggc-$withval
16721
16722 cat >>confdefs.h <<\_ACEOF
16723 #define GGC_ZONE 1
16724 _ACEOF
16725
16726     ;;
16727   *)
16728     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16729 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16730    { (exit 1); exit 1; }; }
16731     ;;
16732 esac
16733 else
16734   GGC=ggc-page
16735 fi;
16736
16737 echo "Using $GGC for garbage collection."
16738
16739 # Use the system's zlib library.
16740 zlibdir=-L../zlib
16741 zlibinc="-I\$(srcdir)/../zlib"
16742
16743 # Check whether --with-system-zlib or --without-system-zlib was given.
16744 if test "${with_system_zlib+set}" = set; then
16745   withval="$with_system_zlib"
16746   zlibdir=
16747 zlibinc=
16748
16749 fi;
16750
16751
16752
16753
16754 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16755 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16756     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16757 if test "${enable_maintainer_mode+set}" = set; then
16758   enableval="$enable_maintainer_mode"
16759   maintainer_mode=$enableval
16760 else
16761   maintainer_mode=no
16762 fi;
16763
16764 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16765 echo "${ECHO_T}$maintainer_mode" >&6
16766
16767 if test "$maintainer_mode" = "yes"; then
16768   MAINT=''
16769 else
16770   MAINT='#'
16771 fi
16772
16773 # --------------
16774 # Language hooks
16775 # --------------
16776
16777 # Make empty files to contain the specs and options for each language.
16778 # Then add #include lines to for a compiler that has specs and/or options.
16779
16780 subdirs=
16781 lang_opt_files=
16782 lang_specs_files=
16783 lang_tree_files=
16784 # These (without "all_") are set in each config-lang.in.
16785 # `language' must be a single word so is spelled singularly.
16786 all_languages=
16787 all_compilers=
16788 all_outputs='Makefile gccbug libada-mk'
16789 # List of language makefile fragments.
16790 all_lang_makefrags=
16791 # List of language subdirectory makefiles.  Deprecated.
16792 all_lang_makefiles=
16793 # Additional files for gengtype
16794 all_gtfiles="$target_gtfiles"
16795
16796 # These are the languages that are set in --enable-languages,
16797 # and are available in the GCC tree.
16798 all_selected_languages=
16799
16800 # Add the language fragments.
16801 # Languages are added via two mechanisms.  Some information must be
16802 # recorded in makefile variables, these are defined in config-lang.in.
16803 # We accumulate them and plug them into the main Makefile.
16804 # The other mechanism is a set of hooks for each of the main targets
16805 # like `clean', `install', etc.
16806
16807 language_hooks="Make-hooks"
16808
16809 for lang in ${srcdir}/*/config-lang.in
16810 do
16811         test "$lang" = "${srcdir}/*/config-lang.in" && continue
16812
16813         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
16814         if test "x$lang_alias" = x
16815         then
16816               echo "$lang doesn't set \$language." 1>&2
16817               exit 1
16818         fi
16819         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16820         subdirs="$subdirs $subdir"
16821         case ",$enable_languages," in
16822         *,$lang_alias,*)
16823             all_selected_languages="$all_selected_languages $lang_alias"
16824             if test -f $srcdir/$subdir/lang-specs.h; then
16825                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16826             fi
16827             ;;
16828         esac
16829
16830         language=
16831         boot_language=
16832         compilers=
16833         outputs=
16834         gtfiles=
16835         subdir_requires=
16836         . ${srcdir}/$subdir/config-lang.in
16837         if test "x$language" = x
16838         then
16839                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16840                 exit 1
16841         fi
16842
16843         ok=:
16844         case ",$enable_languages," in
16845                 *,$lang_alias,*) ;;
16846                 *)
16847                         for i in $subdir_requires; do
16848                                 test -f "${srcdir}/$i/config-lang.in" && continue
16849                                 ok=false
16850                                 break
16851                         done
16852                 ;;
16853         esac
16854         $ok || continue
16855
16856         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16857         if test -f $srcdir/$subdir/lang.opt; then
16858             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16859         fi
16860         if test -f $srcdir/$subdir/$subdir-tree.def; then
16861             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16862         fi
16863         if test -f ${srcdir}/$subdir/Makefile.in
16864                 then all_lang_makefiles="$subdir/Makefile"
16865         fi
16866         all_languages="$all_languages $language"
16867         all_compilers="$all_compilers $compilers"
16868         all_outputs="$all_outputs $outputs"
16869         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16870 done
16871
16872 # Pick up gtfiles for c
16873 gtfiles=
16874 . ${srcdir}/c-config-lang.in
16875 all_gtfiles="$all_gtfiles [c] $gtfiles"
16876
16877 check_languages=
16878 for language in $all_selected_languages
16879 do
16880         check_languages="$check_languages check-$language"
16881 done
16882
16883 # We link each language in with a set of hooks, reached indirectly via
16884 # lang.${target}.  Only do so for selected languages.
16885
16886 rm -f Make-hooks
16887 touch Make-hooks
16888 target_list="all.cross start.encap rest.encap tags \
16889         install-common install-man install-info install-pdf dvi pdf \
16890         html uninstall info man srcextra srcman srcinfo \
16891         mostlyclean clean distclean maintainer-clean"
16892
16893 for t in $target_list
16894 do
16895         x=
16896         for lang in $all_selected_languages
16897         do
16898                 x="$x $lang.$t"
16899         done
16900         echo "lang.$t: $x" >> Make-hooks
16901 done
16902
16903 # --------
16904 # UNSORTED
16905 # --------
16906
16907 # Create .gdbinit.
16908
16909 echo "dir ." > .gdbinit
16910 echo "dir ${srcdir}" >> .gdbinit
16911 if test x$gdb_needs_out_file_path = xyes
16912 then
16913         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
16914 fi
16915 if test "x$subdirs" != x; then
16916         for s in $subdirs
16917         do
16918                 echo "dir ${srcdir}/$s" >> .gdbinit
16919         done
16920 fi
16921 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
16922
16923 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
16924
16925
16926
16927 # Find a directory in which to install a shared libgcc.
16928
16929 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
16930 if test "${enable_version_specific_runtime_libs+set}" = set; then
16931   enableval="$enable_version_specific_runtime_libs"
16932
16933 fi;
16934
16935
16936 # Check whether --with-slibdir or --without-slibdir was given.
16937 if test "${with_slibdir+set}" = set; then
16938   withval="$with_slibdir"
16939   slibdir="$with_slibdir"
16940 else
16941   if test "${enable_version_specific_runtime_libs+set}" = set; then
16942   slibdir='$(libsubdir)'
16943 elif test "$host" != "$target"; then
16944   slibdir='$(build_tooldir)/lib'
16945 else
16946   slibdir='$(libdir)'
16947 fi
16948 fi;
16949
16950
16951 objdir=`${PWDCMD-pwd}`
16952
16953
16954
16955 # Check whether --with-datarootdir or --without-datarootdir was given.
16956 if test "${with_datarootdir+set}" = set; then
16957   withval="$with_datarootdir"
16958   datarootdir="\${prefix}/$with_datarootdir"
16959 else
16960   datarootdir='$(prefix)/share'
16961 fi;
16962
16963
16964
16965 # Check whether --with-docdir or --without-docdir was given.
16966 if test "${with_docdir+set}" = set; then
16967   withval="$with_docdir"
16968   docdir="\${prefix}/$with_docdir"
16969 else
16970   docdir='$(datarootdir)'
16971 fi;
16972
16973
16974
16975 # Check whether --with-htmldir or --without-htmldir was given.
16976 if test "${with_htmldir+set}" = set; then
16977   withval="$with_htmldir"
16978   htmldir="\${prefix}/$with_htmldir"
16979 else
16980   htmldir='$(docdir)'
16981 fi;
16982
16983
16984 # Substitute configuration variables
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040 # Echo link setup.
17041 if test x${build} = x${host} ; then
17042   if test x${host} = x${target} ; then
17043     echo "Links are now set up to build a native compiler for ${target}." 1>&2
17044   else
17045     echo "Links are now set up to build a cross-compiler" 1>&2
17046     echo " from ${host} to ${target}." 1>&2
17047   fi
17048 else
17049   if test x${host} = x${target} ; then
17050     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17051     echo " for ${target}." 1>&2
17052   else
17053     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17054     echo " from ${host} to ${target}." 1>&2
17055   fi
17056 fi
17057
17058
17059
17060
17061 # Configure the subdirectories
17062 # AC_CONFIG_SUBDIRS($subdirs)
17063
17064 # Create the Makefile
17065 # and configure language subdirectories
17066           ac_config_files="$ac_config_files $all_outputs"
17067
17068
17069           ac_config_commands="$ac_config_commands default"
17070
17071 cat >confcache <<\_ACEOF
17072 # This file is a shell script that caches the results of configure
17073 # tests run on this system so they can be shared between configure
17074 # scripts and configure runs, see configure's option --config-cache.
17075 # It is not useful on other systems.  If it contains results you don't
17076 # want to keep, you may remove or edit it.
17077 #
17078 # config.status only pays attention to the cache file if you give it
17079 # the --recheck option to rerun configure.
17080 #
17081 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17083 # following values.
17084
17085 _ACEOF
17086
17087 # The following way of writing the cache mishandles newlines in values,
17088 # but we know of no workaround that is simple, portable, and efficient.
17089 # So, don't put newlines in cache variables' values.
17090 # Ultrix sh set writes to stderr and can't be redirected directly,
17091 # and sets the high bit in the cache file unless we assign to the vars.
17092 {
17093   (set) 2>&1 |
17094     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17095     *ac_space=\ *)
17096       # `set' does not quote correctly, so add quotes (double-quote
17097       # substitution turns \\\\ into \\, and sed turns \\ into \).
17098       sed -n \
17099         "s/'/'\\\\''/g;
17100           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17101       ;;
17102     *)
17103       # `set' quotes correctly as required by POSIX, so do not add quotes.
17104       sed -n \
17105         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17106       ;;
17107     esac;
17108 } |
17109   sed '
17110      t clear
17111      : clear
17112      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17113      t end
17114      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17115      : end' >>confcache
17116 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17117   if test -w $cache_file; then
17118     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17119     cat confcache >$cache_file
17120   else
17121     echo "not updating unwritable cache $cache_file"
17122   fi
17123 fi
17124 rm -f confcache
17125
17126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17127 # Let make expand exec_prefix.
17128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17129
17130 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17131 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17132 # trailing colons and then remove the whole line if VPATH becomes empty
17133 # (actually we leave an empty line to preserve line numbers).
17134 if test "x$srcdir" = x.; then
17135   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17136 s/:*\$(srcdir):*/:/;
17137 s/:*\${srcdir}:*/:/;
17138 s/:*@srcdir@:*/:/;
17139 s/^\([^=]*=[     ]*\):*/\1/;
17140 s/:*$//;
17141 s/^[^=]*=[       ]*$//;
17142 }'
17143 fi
17144
17145 DEFS=-DHAVE_CONFIG_H
17146
17147 ac_libobjs=
17148 ac_ltlibobjs=
17149 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17150   # 1. Remove the extension, and $U if already installed.
17151   ac_i=`echo "$ac_i" |
17152          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17153   # 2. Add them.
17154   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17155   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17156 done
17157 LIBOBJS=$ac_libobjs
17158
17159 LTLIBOBJS=$ac_ltlibobjs
17160
17161
17162
17163 : ${CONFIG_STATUS=./config.status}
17164 ac_clean_files_save=$ac_clean_files
17165 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17166 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17167 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17168 cat >$CONFIG_STATUS <<_ACEOF
17169 #! $SHELL
17170 # Generated by $as_me.
17171 # Run this file to recreate the current configuration.
17172 # Compiler output produced by configure, useful for debugging
17173 # configure, is in config.log if it exists.
17174
17175 debug=false
17176 ac_cs_recheck=false
17177 ac_cs_silent=false
17178 SHELL=\${CONFIG_SHELL-$SHELL}
17179 _ACEOF
17180
17181 cat >>$CONFIG_STATUS <<\_ACEOF
17182 ## --------------------- ##
17183 ## M4sh Initialization.  ##
17184 ## --------------------- ##
17185
17186 # Be Bourne compatible
17187 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17188   emulate sh
17189   NULLCMD=:
17190   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17191   # is contrary to our usage.  Disable this feature.
17192   alias -g '${1+"$@"}'='"$@"'
17193 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17194   set -o posix
17195 fi
17196 DUALCASE=1; export DUALCASE # for MKS sh
17197
17198 # Support unset when possible.
17199 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17200   as_unset=unset
17201 else
17202   as_unset=false
17203 fi
17204
17205
17206 # Work around bugs in pre-3.0 UWIN ksh.
17207 $as_unset ENV MAIL MAILPATH
17208 PS1='$ '
17209 PS2='> '
17210 PS4='+ '
17211
17212 # NLS nuisances.
17213 for as_var in \
17214   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17215   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17216   LC_TELEPHONE LC_TIME
17217 do
17218   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17219     eval $as_var=C; export $as_var
17220   else
17221     $as_unset $as_var
17222   fi
17223 done
17224
17225 # Required to use basename.
17226 if expr a : '\(a\)' >/dev/null 2>&1; then
17227   as_expr=expr
17228 else
17229   as_expr=false
17230 fi
17231
17232 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17233   as_basename=basename
17234 else
17235   as_basename=false
17236 fi
17237
17238
17239 # Name of the executable.
17240 as_me=`$as_basename "$0" ||
17241 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17242          X"$0" : 'X\(//\)$' \| \
17243          X"$0" : 'X\(/\)$' \| \
17244          .     : '\(.\)' 2>/dev/null ||
17245 echo X/"$0" |
17246     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17247           /^X\/\(\/\/\)$/{ s//\1/; q; }
17248           /^X\/\(\/\).*/{ s//\1/; q; }
17249           s/.*/./; q'`
17250
17251
17252 # PATH needs CR, and LINENO needs CR and PATH.
17253 # Avoid depending upon Character Ranges.
17254 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17255 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17256 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17257 as_cr_digits='0123456789'
17258 as_cr_alnum=$as_cr_Letters$as_cr_digits
17259
17260 # The user is always right.
17261 if test "${PATH_SEPARATOR+set}" != set; then
17262   echo "#! /bin/sh" >conf$$.sh
17263   echo  "exit 0"   >>conf$$.sh
17264   chmod +x conf$$.sh
17265   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17266     PATH_SEPARATOR=';'
17267   else
17268     PATH_SEPARATOR=:
17269   fi
17270   rm -f conf$$.sh
17271 fi
17272
17273
17274   as_lineno_1=$LINENO
17275   as_lineno_2=$LINENO
17276   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17277   test "x$as_lineno_1" != "x$as_lineno_2" &&
17278   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17279   # Find who we are.  Look in the path if we contain no path at all
17280   # relative or not.
17281   case $0 in
17282     *[\\/]* ) as_myself=$0 ;;
17283     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17284 for as_dir in $PATH
17285 do
17286   IFS=$as_save_IFS
17287   test -z "$as_dir" && as_dir=.
17288   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17289 done
17290
17291        ;;
17292   esac
17293   # We did not find ourselves, most probably we were run as `sh COMMAND'
17294   # in which case we are not to be found in the path.
17295   if test "x$as_myself" = x; then
17296     as_myself=$0
17297   fi
17298   if test ! -f "$as_myself"; then
17299     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17300 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17301    { (exit 1); exit 1; }; }
17302   fi
17303   case $CONFIG_SHELL in
17304   '')
17305     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17306 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17307 do
17308   IFS=$as_save_IFS
17309   test -z "$as_dir" && as_dir=.
17310   for as_base in sh bash ksh sh5; do
17311          case $as_dir in
17312          /*)
17313            if ("$as_dir/$as_base" -c '
17314   as_lineno_1=$LINENO
17315   as_lineno_2=$LINENO
17316   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17317   test "x$as_lineno_1" != "x$as_lineno_2" &&
17318   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17319              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17320              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17321              CONFIG_SHELL=$as_dir/$as_base
17322              export CONFIG_SHELL
17323              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17324            fi;;
17325          esac
17326        done
17327 done
17328 ;;
17329   esac
17330
17331   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17332   # uniformly replaced by the line number.  The first 'sed' inserts a
17333   # line-number line before each line; the second 'sed' does the real
17334   # work.  The second script uses 'N' to pair each line-number line
17335   # with the numbered line, and appends trailing '-' during
17336   # substitution so that $LINENO is not a special case at line end.
17337   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17338   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17339   sed '=' <$as_myself |
17340     sed '
17341       N
17342       s,$,-,
17343       : loop
17344       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17345       t loop
17346       s,-$,,
17347       s,^['$as_cr_digits']*\n,,
17348     ' >$as_me.lineno &&
17349   chmod +x $as_me.lineno ||
17350     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17351 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17352    { (exit 1); exit 1; }; }
17353
17354   # Don't try to exec as it changes $[0], causing all sort of problems
17355   # (the dirname of $[0] is not the place where we might find the
17356   # original and so on.  Autoconf is especially sensible to this).
17357   . ./$as_me.lineno
17358   # Exit status is that of the last command.
17359   exit
17360 }
17361
17362
17363 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17364   *c*,-n*) ECHO_N= ECHO_C='
17365 ' ECHO_T='      ' ;;
17366   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17367   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17368 esac
17369
17370 if expr a : '\(a\)' >/dev/null 2>&1; then
17371   as_expr=expr
17372 else
17373   as_expr=false
17374 fi
17375
17376 rm -f conf$$ conf$$.exe conf$$.file
17377 echo >conf$$.file
17378 if ln -s conf$$.file conf$$ 2>/dev/null; then
17379   # We could just check for DJGPP; but this test a) works b) is more generic
17380   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17381   if test -f conf$$.exe; then
17382     # Don't use ln at all; we don't have any links
17383     as_ln_s='cp -p'
17384   else
17385     as_ln_s='ln -s'
17386   fi
17387 elif ln conf$$.file conf$$ 2>/dev/null; then
17388   as_ln_s=ln
17389 else
17390   as_ln_s='cp -p'
17391 fi
17392 rm -f conf$$ conf$$.exe conf$$.file
17393
17394 if mkdir -p . 2>/dev/null; then
17395   as_mkdir_p=:
17396 else
17397   test -d ./-p && rmdir ./-p
17398   as_mkdir_p=false
17399 fi
17400
17401 as_executable_p="test -f"
17402
17403 # Sed expression to map a string onto a valid CPP name.
17404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17405
17406 # Sed expression to map a string onto a valid variable name.
17407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17408
17409
17410 # IFS
17411 # We need space, tab and new line, in precisely that order.
17412 as_nl='
17413 '
17414 IFS="   $as_nl"
17415
17416 # CDPATH.
17417 $as_unset CDPATH
17418
17419 exec 6>&1
17420
17421 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17422 # report actual input values of CONFIG_FILES etc. instead of their
17423 # values after options handling.  Logging --version etc. is OK.
17424 exec 5>>config.log
17425 {
17426   echo
17427   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17428 ## Running $as_me. ##
17429 _ASBOX
17430 } >&5
17431 cat >&5 <<_CSEOF
17432
17433 This file was extended by $as_me, which was
17434 generated by GNU Autoconf 2.59.  Invocation command line was
17435
17436   CONFIG_FILES    = $CONFIG_FILES
17437   CONFIG_HEADERS  = $CONFIG_HEADERS
17438   CONFIG_LINKS    = $CONFIG_LINKS
17439   CONFIG_COMMANDS = $CONFIG_COMMANDS
17440   $ $0 $@
17441
17442 _CSEOF
17443 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17444 echo >&5
17445 _ACEOF
17446
17447 # Files that config.status was made for.
17448 if test -n "$ac_config_files"; then
17449   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17450 fi
17451
17452 if test -n "$ac_config_headers"; then
17453   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17454 fi
17455
17456 if test -n "$ac_config_links"; then
17457   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17458 fi
17459
17460 if test -n "$ac_config_commands"; then
17461   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17462 fi
17463
17464 cat >>$CONFIG_STATUS <<\_ACEOF
17465
17466 ac_cs_usage="\
17467 \`$as_me' instantiates files from templates according to the
17468 current configuration.
17469
17470 Usage: $0 [OPTIONS] [FILE]...
17471
17472   -h, --help       print this help, then exit
17473   -V, --version    print version number, then exit
17474   -q, --quiet      do not print progress messages
17475   -d, --debug      don't remove temporary files
17476       --recheck    update $as_me by reconfiguring in the same conditions
17477   --file=FILE[:TEMPLATE]
17478                    instantiate the configuration file FILE
17479   --header=FILE[:TEMPLATE]
17480                    instantiate the configuration header FILE
17481
17482 Configuration files:
17483 $config_files
17484
17485 Configuration headers:
17486 $config_headers
17487
17488 Configuration commands:
17489 $config_commands
17490
17491 Report bugs to <bug-autoconf@gnu.org>."
17492 _ACEOF
17493
17494 cat >>$CONFIG_STATUS <<_ACEOF
17495 ac_cs_version="\\
17496 config.status
17497 configured by $0, generated by GNU Autoconf 2.59,
17498   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17499
17500 Copyright (C) 2003 Free Software Foundation, Inc.
17501 This config.status script is free software; the Free Software Foundation
17502 gives unlimited permission to copy, distribute and modify it."
17503 srcdir=$srcdir
17504 _ACEOF
17505
17506 cat >>$CONFIG_STATUS <<\_ACEOF
17507 # If no file are specified by the user, then we need to provide default
17508 # value.  By we need to know if files were specified by the user.
17509 ac_need_defaults=:
17510 while test $# != 0
17511 do
17512   case $1 in
17513   --*=*)
17514     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17515     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17516     ac_shift=:
17517     ;;
17518   -*)
17519     ac_option=$1
17520     ac_optarg=$2
17521     ac_shift=shift
17522     ;;
17523   *) # This is not an option, so the user has probably given explicit
17524      # arguments.
17525      ac_option=$1
17526      ac_need_defaults=false;;
17527   esac
17528
17529   case $ac_option in
17530   # Handling of the options.
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<\_ACEOF
17533   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17534     ac_cs_recheck=: ;;
17535   --version | --vers* | -V )
17536     echo "$ac_cs_version"; exit 0 ;;
17537   --he | --h)
17538     # Conflict between --help and --header
17539     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17540 Try \`$0 --help' for more information." >&5
17541 echo "$as_me: error: ambiguous option: $1
17542 Try \`$0 --help' for more information." >&2;}
17543    { (exit 1); exit 1; }; };;
17544   --help | --hel | -h )
17545     echo "$ac_cs_usage"; exit 0 ;;
17546   --debug | --d* | -d )
17547     debug=: ;;
17548   --file | --fil | --fi | --f )
17549     $ac_shift
17550     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17551     ac_need_defaults=false;;
17552   --header | --heade | --head | --hea )
17553     $ac_shift
17554     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17555     ac_need_defaults=false;;
17556   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17557   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17558     ac_cs_silent=: ;;
17559
17560   # This is an error.
17561   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17562 Try \`$0 --help' for more information." >&5
17563 echo "$as_me: error: unrecognized option: $1
17564 Try \`$0 --help' for more information." >&2;}
17565    { (exit 1); exit 1; }; } ;;
17566
17567   *) ac_config_targets="$ac_config_targets $1" ;;
17568
17569   esac
17570   shift
17571 done
17572
17573 ac_configure_extra_args=
17574
17575 if $ac_cs_silent; then
17576   exec 6>/dev/null
17577   ac_configure_extra_args="$ac_configure_extra_args --silent"
17578 fi
17579
17580 _ACEOF
17581 cat >>$CONFIG_STATUS <<_ACEOF
17582 if \$ac_cs_recheck; then
17583   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17584   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17585 fi
17586
17587 _ACEOF
17588
17589 cat >>$CONFIG_STATUS <<_ACEOF
17590 #
17591 # INIT-COMMANDS section.
17592 #
17593
17594 subdirs='$subdirs'
17595
17596 _ACEOF
17597
17598
17599
17600 cat >>$CONFIG_STATUS <<\_ACEOF
17601 for ac_config_target in $ac_config_targets
17602 do
17603   case "$ac_config_target" in
17604   # Handling of arguments.
17605   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17606   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17607   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17608   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17609   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17610   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17611   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17613    { (exit 1); exit 1; }; };;
17614   esac
17615 done
17616
17617 # If the user did not use the arguments to specify the items to instantiate,
17618 # then the envvar interface is used.  Set only those that are not.
17619 # We use the long form for the default assignment because of an extremely
17620 # bizarre bug on SunOS 4.1.3.
17621 if $ac_need_defaults; then
17622   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17623   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17624   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17625 fi
17626
17627 # Have a temporary directory for convenience.  Make it in the build tree
17628 # simply because there is no reason to put it here, and in addition,
17629 # creating and moving files from /tmp can sometimes cause problems.
17630 # Create a temporary directory, and hook for its removal unless debugging.
17631 $debug ||
17632 {
17633   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17634   trap '{ (exit 1); exit 1; }' 1 2 13 15
17635 }
17636
17637 # Create a (secure) tmp directory for tmp files.
17638
17639 {
17640   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17641   test -n "$tmp" && test -d "$tmp"
17642 }  ||
17643 {
17644   tmp=./confstat$$-$RANDOM
17645   (umask 077 && mkdir $tmp)
17646 } ||
17647 {
17648    echo "$me: cannot create a temporary directory in ." >&2
17649    { (exit 1); exit 1; }
17650 }
17651
17652 _ACEOF
17653
17654 cat >>$CONFIG_STATUS <<_ACEOF
17655
17656 #
17657 # CONFIG_FILES section.
17658 #
17659
17660 # No need to generate the scripts if there are no CONFIG_FILES.
17661 # This happens for instance when ./config.status config.h
17662 if test -n "\$CONFIG_FILES"; then
17663   # Protect against being on the right side of a sed subst in config.status.
17664   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17665    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17666 s,@SHELL@,$SHELL,;t t
17667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17673 s,@exec_prefix@,$exec_prefix,;t t
17674 s,@prefix@,$prefix,;t t
17675 s,@program_transform_name@,$program_transform_name,;t t
17676 s,@bindir@,$bindir,;t t
17677 s,@sbindir@,$sbindir,;t t
17678 s,@libexecdir@,$libexecdir,;t t
17679 s,@datadir@,$datadir,;t t
17680 s,@sysconfdir@,$sysconfdir,;t t
17681 s,@sharedstatedir@,$sharedstatedir,;t t
17682 s,@localstatedir@,$localstatedir,;t t
17683 s,@libdir@,$libdir,;t t
17684 s,@includedir@,$includedir,;t t
17685 s,@oldincludedir@,$oldincludedir,;t t
17686 s,@infodir@,$infodir,;t t
17687 s,@mandir@,$mandir,;t t
17688 s,@build_alias@,$build_alias,;t t
17689 s,@host_alias@,$host_alias,;t t
17690 s,@target_alias@,$target_alias,;t t
17691 s,@DEFS@,$DEFS,;t t
17692 s,@ECHO_C@,$ECHO_C,;t t
17693 s,@ECHO_N@,$ECHO_N,;t t
17694 s,@ECHO_T@,$ECHO_T,;t t
17695 s,@LIBS@,$LIBS,;t t
17696 s,@build@,$build,;t t
17697 s,@build_cpu@,$build_cpu,;t t
17698 s,@build_vendor@,$build_vendor,;t t
17699 s,@build_os@,$build_os,;t t
17700 s,@host@,$host,;t t
17701 s,@host_cpu@,$host_cpu,;t t
17702 s,@host_vendor@,$host_vendor,;t t
17703 s,@host_os@,$host_os,;t t
17704 s,@target@,$target,;t t
17705 s,@target_cpu@,$target_cpu,;t t
17706 s,@target_vendor@,$target_vendor,;t t
17707 s,@target_os@,$target_os,;t t
17708 s,@target_noncanonical@,$target_noncanonical,;t t
17709 s,@build_libsubdir@,$build_libsubdir,;t t
17710 s,@build_subdir@,$build_subdir,;t t
17711 s,@host_subdir@,$host_subdir,;t t
17712 s,@target_subdir@,$target_subdir,;t t
17713 s,@GENINSRC@,$GENINSRC,;t t
17714 s,@CC@,$CC,;t t
17715 s,@CFLAGS@,$CFLAGS,;t t
17716 s,@LDFLAGS@,$LDFLAGS,;t t
17717 s,@CPPFLAGS@,$CPPFLAGS,;t t
17718 s,@ac_ct_CC@,$ac_ct_CC,;t t
17719 s,@EXEEXT@,$EXEEXT,;t t
17720 s,@OBJEXT@,$OBJEXT,;t t
17721 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17722 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17723 s,@CPP@,$CPP,;t t
17724 s,@EGREP@,$EGREP,;t t
17725 s,@loose_warn@,$loose_warn,;t t
17726 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17727 s,@strict_warn@,$strict_warn,;t t
17728 s,@warn_cflags@,$warn_cflags,;t t
17729 s,@nocommon_flag@,$nocommon_flag,;t t
17730 s,@TREEBROWSER@,$TREEBROWSER,;t t
17731 s,@valgrind_path@,$valgrind_path,;t t
17732 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17733 s,@valgrind_command@,$valgrind_command,;t t
17734 s,@coverage_flags@,$coverage_flags,;t t
17735 s,@enable_multilib@,$enable_multilib,;t t
17736 s,@enable_decimal_float@,$enable_decimal_float,;t t
17737 s,@enable_shared@,$enable_shared,;t t
17738 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17739 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17740 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17741 s,@onestep@,$onestep,;t t
17742 s,@datarootdir@,$datarootdir,;t t
17743 s,@docdir@,$docdir,;t t
17744 s,@htmldir@,$htmldir,;t t
17745 s,@SET_MAKE@,$SET_MAKE,;t t
17746 s,@AWK@,$AWK,;t t
17747 s,@LN_S@,$LN_S,;t t
17748 s,@LN@,$LN,;t t
17749 s,@RANLIB@,$RANLIB,;t t
17750 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17751 s,@ranlib_flags@,$ranlib_flags,;t t
17752 s,@INSTALL@,$INSTALL,;t t
17753 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17754 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17755 s,@make_compare_target@,$make_compare_target,;t t
17756 s,@have_mktemp_command@,$have_mktemp_command,;t t
17757 s,@MAKEINFO@,$MAKEINFO,;t t
17758 s,@BUILD_INFO@,$BUILD_INFO,;t t
17759 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17760 s,@FLEX@,$FLEX,;t t
17761 s,@BISON@,$BISON,;t t
17762 s,@NM@,$NM,;t t
17763 s,@AR@,$AR,;t t
17764 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17765 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17766 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17767 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17768 s,@LIBICONV@,$LIBICONV,;t t
17769 s,@LTLIBICONV@,$LTLIBICONV,;t t
17770 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17771 s,@manext@,$manext,;t t
17772 s,@objext@,$objext,;t t
17773 s,@gthread_flags@,$gthread_flags,;t t
17774 s,@extra_modes_file@,$extra_modes_file,;t t
17775 s,@extra_opt_files@,$extra_opt_files,;t t
17776 s,@USE_NLS@,$USE_NLS,;t t
17777 s,@LIBINTL@,$LIBINTL,;t t
17778 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17779 s,@INCINTL@,$INCINTL,;t t
17780 s,@XGETTEXT@,$XGETTEXT,;t t
17781 s,@GMSGFMT@,$GMSGFMT,;t t
17782 s,@POSUB@,$POSUB,;t t
17783 s,@CATALOGS@,$CATALOGS,;t t
17784 s,@DATADIRNAME@,$DATADIRNAME,;t t
17785 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17786 s,@GENCAT@,$GENCAT,;t t
17787 s,@CATOBJEXT@,$CATOBJEXT,;t t
17788 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17789 s,@CROSS@,$CROSS,;t t
17790 s,@ALL@,$ALL,;t t
17791 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17792 s,@inhibit_libc@,$inhibit_libc,;t t
17793 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17794 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17795 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17796 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17797 s,@collect2@,$collect2,;t t
17798 s,@gcc_cv_as@,$gcc_cv_as,;t t
17799 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17800 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17801 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17802 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17803 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17804 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17805 s,@libgcc_visibility@,$libgcc_visibility,;t t
17806 s,@GGC@,$GGC,;t t
17807 s,@zlibdir@,$zlibdir,;t t
17808 s,@zlibinc@,$zlibinc,;t t
17809 s,@MAINT@,$MAINT,;t t
17810 s,@gcc_tooldir@,$gcc_tooldir,;t t
17811 s,@dollar@,$dollar,;t t
17812 s,@slibdir@,$slibdir,;t t
17813 s,@objdir@,$objdir,;t t
17814 s,@subdirs@,$subdirs,;t t
17815 s,@srcdir@,$srcdir,;t t
17816 s,@all_compilers@,$all_compilers,;t t
17817 s,@all_gtfiles@,$all_gtfiles,;t t
17818 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17819 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17820 s,@all_languages@,$all_languages,;t t
17821 s,@all_selected_languages@,$all_selected_languages,;t t
17822 s,@build_exeext@,$build_exeext,;t t
17823 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17824 s,@build_xm_file_list@,$build_xm_file_list,;t t
17825 s,@build_xm_include_list@,$build_xm_include_list,;t t
17826 s,@build_xm_defines@,$build_xm_defines,;t t
17827 s,@check_languages@,$check_languages,;t t
17828 s,@cpp_install_dir@,$cpp_install_dir,;t t
17829 s,@xmake_file@,$xmake_file,;t t
17830 s,@tmake_file@,$tmake_file,;t t
17831 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17832 s,@extra_headers_list@,$extra_headers_list,;t t
17833 s,@extra_objs@,$extra_objs,;t t
17834 s,@extra_parts@,$extra_parts,;t t
17835 s,@extra_passes@,$extra_passes,;t t
17836 s,@extra_programs@,$extra_programs,;t t
17837 s,@float_h_file@,$float_h_file,;t t
17838 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17839 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17840 s,@host_exeext@,$host_exeext,;t t
17841 s,@host_xm_file_list@,$host_xm_file_list,;t t
17842 s,@host_xm_include_list@,$host_xm_include_list,;t t
17843 s,@host_xm_defines@,$host_xm_defines,;t t
17844 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17845 s,@install@,$install,;t t
17846 s,@lang_opt_files@,$lang_opt_files,;t t
17847 s,@lang_specs_files@,$lang_specs_files,;t t
17848 s,@lang_tree_files@,$lang_tree_files,;t t
17849 s,@local_prefix@,$local_prefix,;t t
17850 s,@md_file@,$md_file,;t t
17851 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17852 s,@out_file@,$out_file,;t t
17853 s,@out_object_file@,$out_object_file,;t t
17854 s,@thread_file@,$thread_file,;t t
17855 s,@tm_file_list@,$tm_file_list,;t t
17856 s,@tm_include_list@,$tm_include_list,;t t
17857 s,@tm_defines@,$tm_defines,;t t
17858 s,@tm_p_file_list@,$tm_p_file_list,;t t
17859 s,@tm_p_include_list@,$tm_p_include_list,;t t
17860 s,@xm_file_list@,$xm_file_list,;t t
17861 s,@xm_include_list@,$xm_include_list,;t t
17862 s,@xm_defines@,$xm_defines,;t t
17863 s,@c_target_objs@,$c_target_objs,;t t
17864 s,@cxx_target_objs@,$cxx_target_objs,;t t
17865 s,@target_cpu_default@,$target_cpu_default,;t t
17866 s,@GMPLIBS@,$GMPLIBS,;t t
17867 s,@GMPINC@,$GMPINC,;t t
17868 s,@LIBOBJS@,$LIBOBJS,;t t
17869 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17870 /@language_hooks@/r $language_hooks
17871 s,@language_hooks@,,;t t
17872 CEOF
17873
17874 _ACEOF
17875
17876   cat >>$CONFIG_STATUS <<\_ACEOF
17877   # Split the substitutions into bite-sized pieces for seds with
17878   # small command number limits, like on Digital OSF/1 and HP-UX.
17879   ac_max_sed_lines=48
17880   ac_sed_frag=1 # Number of current file.
17881   ac_beg=1 # First line for current file.
17882   ac_end=$ac_max_sed_lines # Line after last line for current file.
17883   ac_more_lines=:
17884   ac_sed_cmds=
17885   while $ac_more_lines; do
17886     if test $ac_beg -gt 1; then
17887       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17888     else
17889       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17890     fi
17891     if test ! -s $tmp/subs.frag; then
17892       ac_more_lines=false
17893     else
17894       # The purpose of the label and of the branching condition is to
17895       # speed up the sed processing (if there are no `@' at all, there
17896       # is no need to browse any of the substitutions).
17897       # These are the two extra sed commands mentioned above.
17898       (echo ':t
17899   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17900       if test -z "$ac_sed_cmds"; then
17901         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17902       else
17903         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17904       fi
17905       ac_sed_frag=`expr $ac_sed_frag + 1`
17906       ac_beg=$ac_end
17907       ac_end=`expr $ac_end + $ac_max_sed_lines`
17908     fi
17909   done
17910   if test -z "$ac_sed_cmds"; then
17911     ac_sed_cmds=cat
17912   fi
17913 fi # test -n "$CONFIG_FILES"
17914
17915 _ACEOF
17916 cat >>$CONFIG_STATUS <<\_ACEOF
17917 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17918   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17919   case $ac_file in
17920   - | *:- | *:-:* ) # input from stdin
17921         cat >$tmp/stdin
17922         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17923         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17924   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17925         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17926   * )   ac_file_in=$ac_file.in ;;
17927   esac
17928
17929   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17930   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17931 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17932          X"$ac_file" : 'X\(//\)[^/]' \| \
17933          X"$ac_file" : 'X\(//\)$' \| \
17934          X"$ac_file" : 'X\(/\)' \| \
17935          .     : '\(.\)' 2>/dev/null ||
17936 echo X"$ac_file" |
17937     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17938           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17939           /^X\(\/\/\)$/{ s//\1/; q; }
17940           /^X\(\/\).*/{ s//\1/; q; }
17941           s/.*/./; q'`
17942   { if $as_mkdir_p; then
17943     mkdir -p "$ac_dir"
17944   else
17945     as_dir="$ac_dir"
17946     as_dirs=
17947     while test ! -d "$as_dir"; do
17948       as_dirs="$as_dir $as_dirs"
17949       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17950 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17951          X"$as_dir" : 'X\(//\)[^/]' \| \
17952          X"$as_dir" : 'X\(//\)$' \| \
17953          X"$as_dir" : 'X\(/\)' \| \
17954          .     : '\(.\)' 2>/dev/null ||
17955 echo X"$as_dir" |
17956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17957           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17958           /^X\(\/\/\)$/{ s//\1/; q; }
17959           /^X\(\/\).*/{ s//\1/; q; }
17960           s/.*/./; q'`
17961     done
17962     test ! -n "$as_dirs" || mkdir $as_dirs
17963   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17964 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17965    { (exit 1); exit 1; }; }; }
17966
17967   ac_builddir=.
17968
17969 if test "$ac_dir" != .; then
17970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17971   # A "../" for each directory in $ac_dir_suffix.
17972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17973 else
17974   ac_dir_suffix= ac_top_builddir=
17975 fi
17976
17977 case $srcdir in
17978   .)  # No --srcdir option.  We are building in place.
17979     ac_srcdir=.
17980     if test -z "$ac_top_builddir"; then
17981        ac_top_srcdir=.
17982     else
17983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17984     fi ;;
17985   [\\/]* | ?:[\\/]* )  # Absolute path.
17986     ac_srcdir=$srcdir$ac_dir_suffix;
17987     ac_top_srcdir=$srcdir ;;
17988   *) # Relative path.
17989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17991 esac
17992
17993 # Do not use `cd foo && pwd` to compute absolute paths, because
17994 # the directories may not exist.
17995 case `pwd` in
17996 .) ac_abs_builddir="$ac_dir";;
17997 *)
17998   case "$ac_dir" in
17999   .) ac_abs_builddir=`pwd`;;
18000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18002   esac;;
18003 esac
18004 case $ac_abs_builddir in
18005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18006 *)
18007   case ${ac_top_builddir}. in
18008   .) ac_abs_top_builddir=$ac_abs_builddir;;
18009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18011   esac;;
18012 esac
18013 case $ac_abs_builddir in
18014 .) ac_abs_srcdir=$ac_srcdir;;
18015 *)
18016   case $ac_srcdir in
18017   .) ac_abs_srcdir=$ac_abs_builddir;;
18018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18020   esac;;
18021 esac
18022 case $ac_abs_builddir in
18023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18024 *)
18025   case $ac_top_srcdir in
18026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18029   esac;;
18030 esac
18031
18032
18033
18034   if test x"$ac_file" != x-; then
18035     { echo "$as_me:$LINENO: creating $ac_file" >&5
18036 echo "$as_me: creating $ac_file" >&6;}
18037     rm -f "$ac_file"
18038   fi
18039   # Let's still pretend it is `configure' which instantiates (i.e., don't
18040   # use $as_me), people would be surprised to read:
18041   #    /* config.h.  Generated by config.status.  */
18042   if test x"$ac_file" = x-; then
18043     configure_input=
18044   else
18045     configure_input="$ac_file.  "
18046   fi
18047   configure_input=$configure_input"Generated from `echo $ac_file_in |
18048                                      sed 's,.*/,,'` by configure."
18049
18050   # First look for the input files in the build tree, otherwise in the
18051   # src tree.
18052   ac_file_inputs=`IFS=:
18053     for f in $ac_file_in; do
18054       case $f in
18055       -) echo $tmp/stdin ;;
18056       [\\/$]*)
18057          # Absolute (can't be DOS-style, as IFS=:)
18058          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18059 echo "$as_me: error: cannot find input file: $f" >&2;}
18060    { (exit 1); exit 1; }; }
18061          echo "$f";;
18062       *) # Relative
18063          if test -f "$f"; then
18064            # Build tree
18065            echo "$f"
18066          elif test -f "$srcdir/$f"; then
18067            # Source tree
18068            echo "$srcdir/$f"
18069          else
18070            # /dev/null tree
18071            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18072 echo "$as_me: error: cannot find input file: $f" >&2;}
18073    { (exit 1); exit 1; }; }
18074          fi;;
18075       esac
18076     done` || { (exit 1); exit 1; }
18077 _ACEOF
18078 cat >>$CONFIG_STATUS <<_ACEOF
18079   sed "$ac_vpsub
18080 $extrasub
18081 _ACEOF
18082 cat >>$CONFIG_STATUS <<\_ACEOF
18083 :t
18084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18085 s,@configure_input@,$configure_input,;t t
18086 s,@srcdir@,$ac_srcdir,;t t
18087 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18088 s,@top_srcdir@,$ac_top_srcdir,;t t
18089 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18090 s,@builddir@,$ac_builddir,;t t
18091 s,@abs_builddir@,$ac_abs_builddir,;t t
18092 s,@top_builddir@,$ac_top_builddir,;t t
18093 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18094 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18095   rm -f $tmp/stdin
18096   if test x"$ac_file" != x-; then
18097     mv $tmp/out $ac_file
18098   else
18099     cat $tmp/out
18100     rm -f $tmp/out
18101   fi
18102
18103   # Run the commands associated with the file.
18104   case $ac_file in
18105     as ) chmod +x as ;;
18106     collect-ld ) chmod +x collect-ld ;;
18107     nm ) chmod +x nm ;;
18108   esac
18109 done
18110 _ACEOF
18111 cat >>$CONFIG_STATUS <<\_ACEOF
18112
18113 #
18114 # CONFIG_HEADER section.
18115 #
18116
18117 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18118 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18119 #
18120 # ac_d sets the value in "#define NAME VALUE" lines.
18121 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18122 ac_dB='[         ].*$,\1#\2'
18123 ac_dC=' '
18124 ac_dD=',;t'
18125 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18126 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18127 ac_uB='$,\1#\2define\3'
18128 ac_uC=' '
18129 ac_uD=',;t'
18130
18131 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18132   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18133   case $ac_file in
18134   - | *:- | *:-:* ) # input from stdin
18135         cat >$tmp/stdin
18136         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18137         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18138   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18139         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18140   * )   ac_file_in=$ac_file.in ;;
18141   esac
18142
18143   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18144 echo "$as_me: creating $ac_file" >&6;}
18145
18146   # First look for the input files in the build tree, otherwise in the
18147   # src tree.
18148   ac_file_inputs=`IFS=:
18149     for f in $ac_file_in; do
18150       case $f in
18151       -) echo $tmp/stdin ;;
18152       [\\/$]*)
18153          # Absolute (can't be DOS-style, as IFS=:)
18154          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18155 echo "$as_me: error: cannot find input file: $f" >&2;}
18156    { (exit 1); exit 1; }; }
18157          # Do quote $f, to prevent DOS paths from being IFS'd.
18158          echo "$f";;
18159       *) # Relative
18160          if test -f "$f"; then
18161            # Build tree
18162            echo "$f"
18163          elif test -f "$srcdir/$f"; then
18164            # Source tree
18165            echo "$srcdir/$f"
18166          else
18167            # /dev/null tree
18168            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18169 echo "$as_me: error: cannot find input file: $f" >&2;}
18170    { (exit 1); exit 1; }; }
18171          fi;;
18172       esac
18173     done` || { (exit 1); exit 1; }
18174   # Remove the trailing spaces.
18175   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18176
18177 _ACEOF
18178
18179 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18180 # `conftest.undefs', that substitutes the proper values into
18181 # config.h.in to produce config.h.  The first handles `#define'
18182 # templates, and the second `#undef' templates.
18183 # And first: Protect against being on the right side of a sed subst in
18184 # config.status.  Protect against being in an unquoted here document
18185 # in config.status.
18186 rm -f conftest.defines conftest.undefs
18187 # Using a here document instead of a string reduces the quoting nightmare.
18188 # Putting comments in sed scripts is not portable.
18189 #
18190 # `end' is used to avoid that the second main sed command (meant for
18191 # 0-ary CPP macros) applies to n-ary macro definitions.
18192 # See the Autoconf documentation for `clear'.
18193 cat >confdef2sed.sed <<\_ACEOF
18194 s/[\\&,]/\\&/g
18195 s,[\\$`],\\&,g
18196 t clear
18197 : clear
18198 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18199 t end
18200 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18201 : end
18202 _ACEOF
18203 # If some macros were called several times there might be several times
18204 # the same #defines, which is useless.  Nevertheless, we may not want to
18205 # sort them, since we want the *last* AC-DEFINE to be honored.
18206 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18207 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18208 rm -f confdef2sed.sed
18209
18210 # This sed command replaces #undef with comments.  This is necessary, for
18211 # example, in the case of _POSIX_SOURCE, which is predefined and required
18212 # on some systems where configure will not decide to define it.
18213 cat >>conftest.undefs <<\_ACEOF
18214 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18215 _ACEOF
18216
18217 # Break up conftest.defines because some shells have a limit on the size
18218 # of here documents, and old seds have small limits too (100 cmds).
18219 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18220 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18221 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18222 echo '  :' >>$CONFIG_STATUS
18223 rm -f conftest.tail
18224 while grep . conftest.defines >/dev/null
18225 do
18226   # Write a limited-size here document to $tmp/defines.sed.
18227   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18228   # Speed up: don't consider the non `#define' lines.
18229   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18230   # Work around the forget-to-reset-the-flag bug.
18231   echo 't clr' >>$CONFIG_STATUS
18232   echo ': clr' >>$CONFIG_STATUS
18233   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18234   echo 'CEOF
18235   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18236   rm -f $tmp/in
18237   mv $tmp/out $tmp/in
18238 ' >>$CONFIG_STATUS
18239   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18240   rm -f conftest.defines
18241   mv conftest.tail conftest.defines
18242 done
18243 rm -f conftest.defines
18244 echo '  fi # grep' >>$CONFIG_STATUS
18245 echo >>$CONFIG_STATUS
18246
18247 # Break up conftest.undefs because some shells have a limit on the size
18248 # of here documents, and old seds have small limits too (100 cmds).
18249 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18250 rm -f conftest.tail
18251 while grep . conftest.undefs >/dev/null
18252 do
18253   # Write a limited-size here document to $tmp/undefs.sed.
18254   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18255   # Speed up: don't consider the non `#undef'
18256   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18257   # Work around the forget-to-reset-the-flag bug.
18258   echo 't clr' >>$CONFIG_STATUS
18259   echo ': clr' >>$CONFIG_STATUS
18260   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18261   echo 'CEOF
18262   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18263   rm -f $tmp/in
18264   mv $tmp/out $tmp/in
18265 ' >>$CONFIG_STATUS
18266   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18267   rm -f conftest.undefs
18268   mv conftest.tail conftest.undefs
18269 done
18270 rm -f conftest.undefs
18271
18272 cat >>$CONFIG_STATUS <<\_ACEOF
18273   # Let's still pretend it is `configure' which instantiates (i.e., don't
18274   # use $as_me), people would be surprised to read:
18275   #    /* config.h.  Generated by config.status.  */
18276   if test x"$ac_file" = x-; then
18277     echo "/* Generated by configure.  */" >$tmp/config.h
18278   else
18279     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18280   fi
18281   cat $tmp/in >>$tmp/config.h
18282   rm -f $tmp/in
18283   if test x"$ac_file" != x-; then
18284     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18285       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18286 echo "$as_me: $ac_file is unchanged" >&6;}
18287     else
18288       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18289 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18290          X"$ac_file" : 'X\(//\)[^/]' \| \
18291          X"$ac_file" : 'X\(//\)$' \| \
18292          X"$ac_file" : 'X\(/\)' \| \
18293          .     : '\(.\)' 2>/dev/null ||
18294 echo X"$ac_file" |
18295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18296           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18297           /^X\(\/\/\)$/{ s//\1/; q; }
18298           /^X\(\/\).*/{ s//\1/; q; }
18299           s/.*/./; q'`
18300       { if $as_mkdir_p; then
18301     mkdir -p "$ac_dir"
18302   else
18303     as_dir="$ac_dir"
18304     as_dirs=
18305     while test ! -d "$as_dir"; do
18306       as_dirs="$as_dir $as_dirs"
18307       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18309          X"$as_dir" : 'X\(//\)[^/]' \| \
18310          X"$as_dir" : 'X\(//\)$' \| \
18311          X"$as_dir" : 'X\(/\)' \| \
18312          .     : '\(.\)' 2>/dev/null ||
18313 echo X"$as_dir" |
18314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18315           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18316           /^X\(\/\/\)$/{ s//\1/; q; }
18317           /^X\(\/\).*/{ s//\1/; q; }
18318           s/.*/./; q'`
18319     done
18320     test ! -n "$as_dirs" || mkdir $as_dirs
18321   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18322 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18323    { (exit 1); exit 1; }; }; }
18324
18325       rm -f $ac_file
18326       mv $tmp/config.h $ac_file
18327     fi
18328   else
18329     cat $tmp/config.h
18330     rm -f $tmp/config.h
18331   fi
18332 done
18333 _ACEOF
18334 cat >>$CONFIG_STATUS <<\_ACEOF
18335
18336 #
18337 # CONFIG_COMMANDS section.
18338 #
18339 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18340   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18341   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18342   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18343 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18344          X"$ac_dest" : 'X\(//\)[^/]' \| \
18345          X"$ac_dest" : 'X\(//\)$' \| \
18346          X"$ac_dest" : 'X\(/\)' \| \
18347          .     : '\(.\)' 2>/dev/null ||
18348 echo X"$ac_dest" |
18349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18350           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18351           /^X\(\/\/\)$/{ s//\1/; q; }
18352           /^X\(\/\).*/{ s//\1/; q; }
18353           s/.*/./; q'`
18354   { if $as_mkdir_p; then
18355     mkdir -p "$ac_dir"
18356   else
18357     as_dir="$ac_dir"
18358     as_dirs=
18359     while test ! -d "$as_dir"; do
18360       as_dirs="$as_dir $as_dirs"
18361       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18363          X"$as_dir" : 'X\(//\)[^/]' \| \
18364          X"$as_dir" : 'X\(//\)$' \| \
18365          X"$as_dir" : 'X\(/\)' \| \
18366          .     : '\(.\)' 2>/dev/null ||
18367 echo X"$as_dir" |
18368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18369           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18370           /^X\(\/\/\)$/{ s//\1/; q; }
18371           /^X\(\/\).*/{ s//\1/; q; }
18372           s/.*/./; q'`
18373     done
18374     test ! -n "$as_dirs" || mkdir $as_dirs
18375   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18376 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18377    { (exit 1); exit 1; }; }; }
18378
18379   ac_builddir=.
18380
18381 if test "$ac_dir" != .; then
18382   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18383   # A "../" for each directory in $ac_dir_suffix.
18384   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18385 else
18386   ac_dir_suffix= ac_top_builddir=
18387 fi
18388
18389 case $srcdir in
18390   .)  # No --srcdir option.  We are building in place.
18391     ac_srcdir=.
18392     if test -z "$ac_top_builddir"; then
18393        ac_top_srcdir=.
18394     else
18395        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18396     fi ;;
18397   [\\/]* | ?:[\\/]* )  # Absolute path.
18398     ac_srcdir=$srcdir$ac_dir_suffix;
18399     ac_top_srcdir=$srcdir ;;
18400   *) # Relative path.
18401     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18402     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18403 esac
18404
18405 # Do not use `cd foo && pwd` to compute absolute paths, because
18406 # the directories may not exist.
18407 case `pwd` in
18408 .) ac_abs_builddir="$ac_dir";;
18409 *)
18410   case "$ac_dir" in
18411   .) ac_abs_builddir=`pwd`;;
18412   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18413   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18414   esac;;
18415 esac
18416 case $ac_abs_builddir in
18417 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18418 *)
18419   case ${ac_top_builddir}. in
18420   .) ac_abs_top_builddir=$ac_abs_builddir;;
18421   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18422   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18423   esac;;
18424 esac
18425 case $ac_abs_builddir in
18426 .) ac_abs_srcdir=$ac_srcdir;;
18427 *)
18428   case $ac_srcdir in
18429   .) ac_abs_srcdir=$ac_abs_builddir;;
18430   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18431   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18432   esac;;
18433 esac
18434 case $ac_abs_builddir in
18435 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18436 *)
18437   case $ac_top_srcdir in
18438   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18439   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18440   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18441   esac;;
18442 esac
18443
18444
18445   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18446 echo "$as_me: executing $ac_dest commands" >&6;}
18447   case $ac_dest in
18448     default )
18449 case ${CONFIG_HEADERS} in
18450   *auto-host.h:config.in*)
18451   echo > cstamp-h ;;
18452 esac
18453 # Make sure all the subdirs exist.
18454 for d in $subdirs doc build
18455 do
18456     test -d $d || mkdir $d
18457 done
18458  ;;
18459   esac
18460 done
18461 _ACEOF
18462
18463 cat >>$CONFIG_STATUS <<\_ACEOF
18464
18465 { (exit 0); exit 0; }
18466 _ACEOF
18467 chmod +x $CONFIG_STATUS
18468 ac_clean_files=$ac_clean_files_save
18469
18470
18471 # configure is writing to config.log, and then calls config.status.
18472 # config.status does its own redirection, appending to config.log.
18473 # Unfortunately, on DOS this fails, as config.log is still kept open
18474 # by configure, so config.status won't be able to write to it; its
18475 # output is simply discarded.  So we exec the FD to /dev/null,
18476 # effectively closing config.log, so it can be properly (re)opened and
18477 # appended to by config.status.  When coming back to configure, we
18478 # need to make the FD available again.
18479 if test "$no_create" != yes; then
18480   ac_cs_success=:
18481   ac_config_status_args=
18482   test "$silent" = yes &&
18483     ac_config_status_args="$ac_config_status_args --quiet"
18484   exec 5>/dev/null
18485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18486   exec 5>>config.log
18487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18488   # would make configure fail if this is the last instruction.
18489   $ac_cs_success || { (exit 1); exit 1; }
18490 fi
18491