OSDN Git Service

* gcc.target/i386/builtin-apply-mmx.c: Do not XFAIL on Darwin.
[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_fixed_point enable_shared TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE CROSS_SYSTEM_HEADER_DIR onestep PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI 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 build_file_translate 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-coverage=LEVEL
873                           enable compiler's code coverage collection.
874                           Use to measure compiler performance and locate
875                           unused parts of the compiler. With LEVEL, specify
876                           optimization. Values are opt, noopt,
877                           default is noopt
878   --enable-gather-detailed-mem-stats         enable detailed memory allocation stats gathering
879   --enable-multilib       enable library support for multiple ABIs
880   --enable-__cxa_atexit   enable __cxa_atexit for C++
881   --enable-decimal-float={no,yes,bid,dpd}
882                         enable decimal float extension to C.  Selecting 'bid'
883                         or 'dpd' choses which decimal floating point format
884                         to use
885   --enable-fixed-point    enable fixed-point arithmetic extension to C
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-pkgversion=PKG   Use PKG in the version string in place of "GCC"
935   --with-bugurl=URL       Direct users to URL to report a bug
936   --with-gnu-ld           assume the C compiler uses GNU ld default=no
937   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
938   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
939   --with-system-libunwind use installed libunwind
940   --with-long-double-128  Use 128-bit long double by default.
941   --with-gc={page,zone}   choose the garbage collection mechanism to use
942                           with the compiler
943   --with-system-zlib      use installed libz
944   --with-slibdir=DIR      shared libraries in DIR [LIBDIR]
945   --with-datarootdir=DIR  Use DIR as the data root [PREFIX/share]
946   --with-docdir=DIR       Install documentation in DIR [DATAROOTDIR]
947   --with-htmldir=DIR      html documentation in in DIR [DOCDIR]
948
949 Some influential environment variables:
950   CC          C compiler command
951   CFLAGS      C compiler flags
952   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
953               nonstandard directory <lib dir>
954   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
955               headers in a nonstandard directory <include dir>
956   CPP         C preprocessor
957   GMPLIBS     How to link GMP
958   GMPINC      How to find GMP include files
959
960 Use these variables to override the choices made by `configure' or to help
961 it to find libraries and programs with nonstandard names/locations.
962
963 _ACEOF
964 fi
965
966 if test "$ac_init_help" = "recursive"; then
967   # If there are subdirs, report their specific --help.
968   ac_popdir=`pwd`
969   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
970     test -d $ac_dir || continue
971     ac_builddir=.
972
973 if test "$ac_dir" != .; then
974   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
975   # A "../" for each directory in $ac_dir_suffix.
976   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
977 else
978   ac_dir_suffix= ac_top_builddir=
979 fi
980
981 case $srcdir in
982   .)  # No --srcdir option.  We are building in place.
983     ac_srcdir=.
984     if test -z "$ac_top_builddir"; then
985        ac_top_srcdir=.
986     else
987        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
988     fi ;;
989   [\\/]* | ?:[\\/]* )  # Absolute path.
990     ac_srcdir=$srcdir$ac_dir_suffix;
991     ac_top_srcdir=$srcdir ;;
992   *) # Relative path.
993     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
994     ac_top_srcdir=$ac_top_builddir$srcdir ;;
995 esac
996
997 # Do not use `cd foo && pwd` to compute absolute paths, because
998 # the directories may not exist.
999 case `pwd` in
1000 .) ac_abs_builddir="$ac_dir";;
1001 *)
1002   case "$ac_dir" in
1003   .) ac_abs_builddir=`pwd`;;
1004   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1005   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1006   esac;;
1007 esac
1008 case $ac_abs_builddir in
1009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1010 *)
1011   case ${ac_top_builddir}. in
1012   .) ac_abs_top_builddir=$ac_abs_builddir;;
1013   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1014   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1015   esac;;
1016 esac
1017 case $ac_abs_builddir in
1018 .) ac_abs_srcdir=$ac_srcdir;;
1019 *)
1020   case $ac_srcdir in
1021   .) ac_abs_srcdir=$ac_abs_builddir;;
1022   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1023   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1024   esac;;
1025 esac
1026 case $ac_abs_builddir in
1027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1028 *)
1029   case $ac_top_srcdir in
1030   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1031   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1032   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1033   esac;;
1034 esac
1035
1036     cd $ac_dir
1037     # Check for guested configure; otherwise get Cygnus style configure.
1038     if test -f $ac_srcdir/configure.gnu; then
1039       echo
1040       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1041     elif test -f $ac_srcdir/configure; then
1042       echo
1043       $SHELL $ac_srcdir/configure  --help=recursive
1044     elif test -f $ac_srcdir/configure.ac ||
1045            test -f $ac_srcdir/configure.in; then
1046       echo
1047       $ac_configure --help
1048     else
1049       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1050     fi
1051     cd $ac_popdir
1052   done
1053 fi
1054
1055 test -n "$ac_init_help" && exit 0
1056 if $ac_init_version; then
1057   cat <<\_ACEOF
1058
1059 Copyright (C) 2003 Free Software Foundation, Inc.
1060 This configure script is free software; the Free Software Foundation
1061 gives unlimited permission to copy, distribute and modify it.
1062 _ACEOF
1063   exit 0
1064 fi
1065 exec 5>config.log
1066 cat >&5 <<_ACEOF
1067 This file contains any messages produced by compilers while
1068 running configure, to aid debugging if configure makes a mistake.
1069
1070 It was created by $as_me, which was
1071 generated by GNU Autoconf 2.59.  Invocation command line was
1072
1073   $ $0 $@
1074
1075 _ACEOF
1076 {
1077 cat <<_ASUNAME
1078 ## --------- ##
1079 ## Platform. ##
1080 ## --------- ##
1081
1082 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1083 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1084 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1085 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1086 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1087
1088 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1089 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1090
1091 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1092 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1093 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1094 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1095 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1096 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1097 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1098
1099 _ASUNAME
1100
1101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1102 for as_dir in $PATH
1103 do
1104   IFS=$as_save_IFS
1105   test -z "$as_dir" && as_dir=.
1106   echo "PATH: $as_dir"
1107 done
1108
1109 } >&5
1110
1111 cat >&5 <<_ACEOF
1112
1113
1114 ## ----------- ##
1115 ## Core tests. ##
1116 ## ----------- ##
1117
1118 _ACEOF
1119
1120
1121 # Keep a trace of the command line.
1122 # Strip out --no-create and --no-recursion so they do not pile up.
1123 # Strip out --silent because we don't want to record it for future runs.
1124 # Also quote any args containing shell meta-characters.
1125 # Make two passes to allow for proper duplicate-argument suppression.
1126 ac_configure_args=
1127 ac_configure_args0=
1128 ac_configure_args1=
1129 ac_sep=
1130 ac_must_keep_next=false
1131 for ac_pass in 1 2
1132 do
1133   for ac_arg
1134   do
1135     case $ac_arg in
1136     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1137     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1138     | -silent | --silent | --silen | --sile | --sil)
1139       continue ;;
1140     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1141       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1142     esac
1143     case $ac_pass in
1144     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1145     2)
1146       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1147       if test $ac_must_keep_next = true; then
1148         ac_must_keep_next=false # Got value, back to normal.
1149       else
1150         case $ac_arg in
1151           *=* | --config-cache | -C | -disable-* | --disable-* \
1152           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1153           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1154           | -with-* | --with-* | -without-* | --without-* | --x)
1155             case "$ac_configure_args0 " in
1156               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1157             esac
1158             ;;
1159           -* ) ac_must_keep_next=true ;;
1160         esac
1161       fi
1162       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1163       # Get rid of the leading space.
1164       ac_sep=" "
1165       ;;
1166     esac
1167   done
1168 done
1169 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1170 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1171
1172 # When interrupted or exit'd, cleanup temporary files, and complete
1173 # config.log.  We remove comments because anyway the quotes in there
1174 # would cause problems or look ugly.
1175 # WARNING: Be sure not to use single quotes in there, as some shells,
1176 # such as our DU 5.0 friend, will then `close' the trap.
1177 trap 'exit_status=$?
1178   # Save into config.log some information that might help in debugging.
1179   {
1180     echo
1181
1182     cat <<\_ASBOX
1183 ## ---------------- ##
1184 ## Cache variables. ##
1185 ## ---------------- ##
1186 _ASBOX
1187     echo
1188     # The following way of writing the cache mishandles newlines in values,
1189 {
1190   (set) 2>&1 |
1191     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1192     *ac_space=\ *)
1193       sed -n \
1194         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1195           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1196       ;;
1197     *)
1198       sed -n \
1199         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1200       ;;
1201     esac;
1202 }
1203     echo
1204
1205     cat <<\_ASBOX
1206 ## ----------------- ##
1207 ## Output variables. ##
1208 ## ----------------- ##
1209 _ASBOX
1210     echo
1211     for ac_var in $ac_subst_vars
1212     do
1213       eval ac_val=$`echo $ac_var`
1214       echo "$ac_var='"'"'$ac_val'"'"'"
1215     done | sort
1216     echo
1217
1218     if test -n "$ac_subst_files"; then
1219       cat <<\_ASBOX
1220 ## ------------- ##
1221 ## Output files. ##
1222 ## ------------- ##
1223 _ASBOX
1224       echo
1225       for ac_var in $ac_subst_files
1226       do
1227         eval ac_val=$`echo $ac_var`
1228         echo "$ac_var='"'"'$ac_val'"'"'"
1229       done | sort
1230       echo
1231     fi
1232
1233     if test -s confdefs.h; then
1234       cat <<\_ASBOX
1235 ## ----------- ##
1236 ## confdefs.h. ##
1237 ## ----------- ##
1238 _ASBOX
1239       echo
1240       sed "/^$/d" confdefs.h | sort
1241       echo
1242     fi
1243     test "$ac_signal" != 0 &&
1244       echo "$as_me: caught signal $ac_signal"
1245     echo "$as_me: exit $exit_status"
1246   } >&5
1247   rm -f core *.core &&
1248   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1249     exit $exit_status
1250      ' 0
1251 for ac_signal in 1 2 13 15; do
1252   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1253 done
1254 ac_signal=0
1255
1256 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1257 rm -rf conftest* confdefs.h
1258 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1259 echo >confdefs.h
1260
1261 # Predefined preprocessor variables.
1262
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_NAME "$PACKAGE_NAME"
1265 _ACEOF
1266
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_STRING "$PACKAGE_STRING"
1280 _ACEOF
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1285 _ACEOF
1286
1287
1288 # Let the site file select an alternate cache file if it wants to.
1289 # Prefer explicitly selected file to automatically selected ones.
1290 if test -z "$CONFIG_SITE"; then
1291   if test "x$prefix" != xNONE; then
1292     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1293   else
1294     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1295   fi
1296 fi
1297 for ac_site_file in $CONFIG_SITE; do
1298   if test -r "$ac_site_file"; then
1299     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1300 echo "$as_me: loading site script $ac_site_file" >&6;}
1301     sed 's/^/| /' "$ac_site_file" >&5
1302     . "$ac_site_file"
1303   fi
1304 done
1305
1306 if test -r "$cache_file"; then
1307   # Some versions of bash will fail to source /dev/null (special
1308   # files actually), so we avoid doing that.
1309   if test -f "$cache_file"; then
1310     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1311 echo "$as_me: loading cache $cache_file" >&6;}
1312     case $cache_file in
1313       [\\/]* | ?:[\\/]* ) . $cache_file;;
1314       *)                      . ./$cache_file;;
1315     esac
1316   fi
1317 else
1318   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1319 echo "$as_me: creating cache $cache_file" >&6;}
1320   >$cache_file
1321 fi
1322
1323 # Check that the precious variables saved in the cache have kept the same
1324 # value.
1325 ac_cache_corrupted=false
1326 for ac_var in `(set) 2>&1 |
1327                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1328   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1329   eval ac_new_set=\$ac_env_${ac_var}_set
1330   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1331   eval ac_new_val="\$ac_env_${ac_var}_value"
1332   case $ac_old_set,$ac_new_set in
1333     set,)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,set)
1338       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1339 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1340       ac_cache_corrupted=: ;;
1341     ,);;
1342     *)
1343       if test "x$ac_old_val" != "x$ac_new_val"; then
1344         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1345 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1346         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1347 echo "$as_me:   former value:  $ac_old_val" >&2;}
1348         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1349 echo "$as_me:   current value: $ac_new_val" >&2;}
1350         ac_cache_corrupted=:
1351       fi;;
1352   esac
1353   # Pass precious variables to config.status.
1354   if test "$ac_new_set" = set; then
1355     case $ac_new_val in
1356     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1357       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1358     *) ac_arg=$ac_var=$ac_new_val ;;
1359     esac
1360     case " $ac_configure_args " in
1361       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1362       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1363     esac
1364   fi
1365 done
1366 if $ac_cache_corrupted; then
1367   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1368 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1369   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1370 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1371    { (exit 1); exit 1; }; }
1372 fi
1373
1374 ac_ext=c
1375 ac_cpp='$CPP $CPPFLAGS'
1376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399           ac_config_headers="$ac_config_headers auto-host.h:config.in"
1400
1401
1402 gcc_version=`cat $srcdir/BASE-VER`
1403
1404 # Determine the host, build, and target systems
1405 ac_aux_dir=
1406 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1407   if test -f $ac_dir/install-sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install-sh -c"
1410     break
1411   elif test -f $ac_dir/install.sh; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/install.sh -c"
1414     break
1415   elif test -f $ac_dir/shtool; then
1416     ac_aux_dir=$ac_dir
1417     ac_install_sh="$ac_aux_dir/shtool install -c"
1418     break
1419   fi
1420 done
1421 if test -z "$ac_aux_dir"; then
1422   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1423 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1424    { (exit 1); exit 1; }; }
1425 fi
1426 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1427 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1428 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1429
1430 # Make sure we can run config.sub.
1431 $ac_config_sub sun4 >/dev/null 2>&1 ||
1432   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1433 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1434    { (exit 1); exit 1; }; }
1435
1436 echo "$as_me:$LINENO: checking build system type" >&5
1437 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1438 if test "${ac_cv_build+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   ac_cv_build_alias=$build_alias
1442 test -z "$ac_cv_build_alias" &&
1443   ac_cv_build_alias=`$ac_config_guess`
1444 test -z "$ac_cv_build_alias" &&
1445   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1446 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1447    { (exit 1); exit 1; }; }
1448 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1449   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1450 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1451    { (exit 1); exit 1; }; }
1452
1453 fi
1454 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1455 echo "${ECHO_T}$ac_cv_build" >&6
1456 build=$ac_cv_build
1457 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1458 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1459 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1460
1461
1462 echo "$as_me:$LINENO: checking host system type" >&5
1463 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1464 if test "${ac_cv_host+set}" = set; then
1465   echo $ECHO_N "(cached) $ECHO_C" >&6
1466 else
1467   ac_cv_host_alias=$host_alias
1468 test -z "$ac_cv_host_alias" &&
1469   ac_cv_host_alias=$ac_cv_build_alias
1470 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1471   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1473    { (exit 1); exit 1; }; }
1474
1475 fi
1476 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1477 echo "${ECHO_T}$ac_cv_host" >&6
1478 host=$ac_cv_host
1479 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482
1483
1484 echo "$as_me:$LINENO: checking target system type" >&5
1485 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1486 if test "${ac_cv_target+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_target_alias=$target_alias
1490 test "x$ac_cv_target_alias" = "x" &&
1491   ac_cv_target_alias=$ac_cv_host_alias
1492 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1499 echo "${ECHO_T}$ac_cv_target" >&6
1500 target=$ac_cv_target
1501 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 # The aliases save the names the user supplied, while $host etc.
1507 # will get canonicalized.
1508 test -n "$target_alias" &&
1509   test "$program_prefix$program_suffix$program_transform_name" = \
1510     NONENONEs,x,x, &&
1511   program_prefix=${target_alias}-
1512
1513 # Determine the noncanonical target name, for directory use.
1514  case ${build_alias} in
1515   "") build_noncanonical=${build} ;;
1516   *) build_noncanonical=${build_alias} ;;
1517 esac
1518
1519  case ${host_alias} in
1520   "") host_noncanonical=${build_noncanonical} ;;
1521   *) host_noncanonical=${host_alias} ;;
1522 esac
1523
1524  case ${target_alias} in
1525   "") target_noncanonical=${host_noncanonical} ;;
1526   *) target_noncanonical=${target_alias} ;;
1527 esac
1528
1529
1530
1531
1532 # Determine the target- and build-specific subdirectories
1533
1534 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1535 # have matching libraries, they should use host libraries: Makefile.tpl
1536 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1537 # However, they still use the build modules, because the corresponding
1538 # host modules (e.g. bison) are only built for the host when bootstrap
1539 # finishes. So:
1540 # - build_subdir is where we find build modules, and never changes.
1541 # - build_libsubdir is where we find build libraries, and can be overridden.
1542
1543 # Prefix 'build-' so this never conflicts with target_subdir.
1544 build_subdir="build-${build_noncanonical}"
1545
1546 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1547 if test "${with_build_libsubdir+set}" = set; then
1548   withval="$with_build_libsubdir"
1549   build_libsubdir="$withval"
1550 else
1551   build_libsubdir="$build_subdir"
1552 fi;
1553 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1554 if ( test $srcdir = . && test -d gcc ) \
1555    || test -d $srcdir/../host-${host_noncanonical}; then
1556   host_subdir="host-${host_noncanonical}"
1557 else
1558   host_subdir=.
1559 fi
1560 # No prefix.
1561 target_subdir=${target_noncanonical}
1562
1563
1564 # Set program_transform_name
1565 test "$program_prefix" != NONE &&
1566   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1567 # Use a double $ so make ignores it.
1568 test "$program_suffix" != NONE &&
1569   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1570 # Double any \ or $.  echo might interpret backslashes.
1571 # By default was `s,x,x', remove it if useless.
1572 cat <<\_ACEOF >conftest.sed
1573 s/[\\$]/&&/g;s/;s,x,x,$//
1574 _ACEOF
1575 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1576 rm conftest.sed
1577
1578
1579 # Check for bogus environment variables.
1580 # Test if LIBRARY_PATH contains the notation for the current directory
1581 # since this would lead to problems installing/building glibc.
1582 # LIBRARY_PATH contains the current directory if one of the following
1583 # is true:
1584 # - one of the terminals (":" and ";") is the first or last sign
1585 # - two terminals occur directly after each other
1586 # - the path contains an element with a dot in it
1587 echo "$as_me:$LINENO: checking LIBRARY_PATH variable" >&5
1588 echo $ECHO_N "checking LIBRARY_PATH variable... $ECHO_C" >&6
1589 case ${LIBRARY_PATH} in
1590   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1591     library_path_setting="contains current directory"
1592     ;;
1593   *)
1594     library_path_setting="ok"
1595     ;;
1596 esac
1597 echo "$as_me:$LINENO: result: $library_path_setting" >&5
1598 echo "${ECHO_T}$library_path_setting" >&6
1599 if test "$library_path_setting" != "ok"; then
1600 { { echo "$as_me:$LINENO: error:
1601 *** LIBRARY_PATH shouldn't contain the current directory when
1602 *** building gcc. Please change the environment variable
1603 *** and run configure again." >&5
1604 echo "$as_me: error:
1605 *** LIBRARY_PATH shouldn't contain the current directory when
1606 *** building gcc. Please change the environment variable
1607 *** and run configure again." >&2;}
1608    { (exit 1); exit 1; }; }
1609 fi
1610
1611 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
1612 # since this would lead to problems installing/building glibc.
1613 # GCC_EXEC_PREFIX contains the current directory if one of the following
1614 # is true:
1615 # - one of the terminals (":" and ";") is the first or last sign
1616 # - two terminals occur directly after each other
1617 # - the path contains an element with a dot in it
1618 echo "$as_me:$LINENO: checking GCC_EXEC_PREFIX variable" >&5
1619 echo $ECHO_N "checking GCC_EXEC_PREFIX variable... $ECHO_C" >&6
1620 case ${GCC_EXEC_PREFIX} in
1621   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
1622     gcc_exec_prefix_setting="contains current directory"
1623     ;;
1624   *)
1625     gcc_exec_prefix_setting="ok"
1626     ;;
1627 esac
1628 echo "$as_me:$LINENO: result: $gcc_exec_prefix_setting" >&5
1629 echo "${ECHO_T}$gcc_exec_prefix_setting" >&6
1630 if test "$gcc_exec_prefix_setting" != "ok"; then
1631 { { echo "$as_me:$LINENO: error:
1632 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1633 *** building gcc. Please change the environment variable
1634 *** and run configure again." >&5
1635 echo "$as_me: error:
1636 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
1637 *** building gcc. Please change the environment variable
1638 *** and run configure again." >&2;}
1639    { (exit 1); exit 1; }; }
1640 fi
1641
1642 # -----------
1643 # Directories
1644 # -----------
1645
1646 # Specify the local prefix
1647 local_prefix=
1648
1649 # Check whether --with-local-prefix or --without-local-prefix was given.
1650 if test "${with_local_prefix+set}" = set; then
1651   withval="$with_local_prefix"
1652   case "${withval}" in
1653 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for local include directory prefix" >&5
1654 echo "$as_me: error: bad value ${withval} given for local include directory prefix" >&2;}
1655    { (exit 1); exit 1; }; } ;;
1656 no)     ;;
1657 *)      local_prefix=$with_local_prefix ;;
1658 esac
1659 fi;
1660
1661 # Default local prefix if it is empty
1662 if test x$local_prefix = x; then
1663         local_prefix=/usr/local
1664 fi
1665
1666 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
1667 # passed in by the toplevel make and thus we'd get different behavior
1668 # depending on where we built the sources.
1669 gcc_gxx_include_dir=
1670 # Specify the g++ header file directory
1671
1672 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
1673 if test "${with_gxx_include_dir+set}" = set; then
1674   withval="$with_gxx_include_dir"
1675   case "${withval}" in
1676 yes)    { { echo "$as_me:$LINENO: error: bad value ${withval} given for g++ include directory" >&5
1677 echo "$as_me: error: bad value ${withval} given for g++ include directory" >&2;}
1678    { (exit 1); exit 1; }; } ;;
1679 no)     ;;
1680 *)      gcc_gxx_include_dir=$with_gxx_include_dir ;;
1681 esac
1682 fi;
1683
1684 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
1685 if test x${gcc_gxx_include_dir} = x; then
1686   if test x${enable_version_specific_runtime_libs} = xyes; then
1687     gcc_gxx_include_dir='${libsubdir}/include/c++'
1688   else
1689     libstdcxx_incdir='include/c++/$(version)'
1690     if test x$host != x$target; then
1691        libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
1692     fi
1693     gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
1694   fi
1695 fi
1696
1697
1698 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given.
1699 if test "${with_cpp_install_dir+set}" = set; then
1700   withval="$with_cpp_install_dir"
1701   if test x$withval = xyes; then
1702   { { echo "$as_me:$LINENO: error: option --with-cpp-install-dir requires an argument" >&5
1703 echo "$as_me: error: option --with-cpp-install-dir requires an argument" >&2;}
1704    { (exit 1); exit 1; }; }
1705 elif test x$withval != xno; then
1706   cpp_install_dir=$withval
1707 fi
1708 fi;
1709
1710 # We would like to our source tree to be readonly.  However when releases or
1711 # pre-releases are generated, the flex/bison generated files as well as the
1712 # various formats of manuals need to be included along with the rest of the
1713 # sources.  Therefore we have --enable-generated-files-in-srcdir to do
1714 # just that.
1715
1716 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1717 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1718     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1719 if test "${enable_generated_files_in_srcdir+set}" = set; then
1720   enableval="$enable_generated_files_in_srcdir"
1721   generated_files_in_srcdir=$enableval
1722 else
1723   generated_files_in_srcdir=no
1724 fi;
1725
1726 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1727 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1728
1729 if test "$generated_files_in_srcdir" = "yes"; then
1730   GENINSRC=''
1731 else
1732   GENINSRC='#'
1733 fi
1734
1735
1736 # -------------------
1737 # Find default linker
1738 # -------------------
1739
1740 # With GNU ld
1741
1742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1743 if test "${with_gnu_ld+set}" = set; then
1744   withval="$with_gnu_ld"
1745   gnu_ld_flag="$with_gnu_ld"
1746 else
1747   gnu_ld_flag=no
1748 fi;
1749
1750 # With pre-defined ld
1751
1752 # Check whether --with-ld or --without-ld was given.
1753 if test "${with_ld+set}" = set; then
1754   withval="$with_ld"
1755   DEFAULT_LINKER="$with_ld"
1756 fi;
1757 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1758   if test ! -x "$DEFAULT_LINKER"; then
1759     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&5
1760 echo "$as_me: error: cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" >&2;}
1761    { (exit 1); exit 1; }; }
1762   elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1763     gnu_ld_flag=yes
1764   fi
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define DEFAULT_LINKER "$DEFAULT_LINKER"
1768 _ACEOF
1769
1770 fi
1771
1772 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
1773
1774 cat >>confdefs.h <<_ACEOF
1775 #define HAVE_GNU_LD $gnu_ld
1776 _ACEOF
1777
1778
1779 echo "$as_me:$LINENO: checking whether a default linker was specified" >&5
1780 echo $ECHO_N "checking whether a default linker was specified... $ECHO_C" >&6
1781 if test x"${DEFAULT_LINKER+set}" = x"set"; then
1782   if test x"$gnu_ld_flag" = x"no"; then
1783     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER)" >&5
1784 echo "${ECHO_T}yes ($DEFAULT_LINKER)" >&6
1785   else
1786     echo "$as_me:$LINENO: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
1787 echo "${ECHO_T}yes ($DEFAULT_LINKER - GNU ld)" >&6
1788   fi
1789 else
1790   echo "$as_me:$LINENO: result: no" >&5
1791 echo "${ECHO_T}no" >&6
1792 fi
1793
1794 # With demangler in GNU ld
1795
1796 # Check whether --with-demangler-in-ld or --without-demangler-in-ld was given.
1797 if test "${with_demangler_in_ld+set}" = set; then
1798   withval="$with_demangler_in_ld"
1799   demangler_in_ld="$with_demangler_in_ld"
1800 else
1801   demangler_in_ld=no
1802 fi;
1803
1804 # ----------------------
1805 # Find default assembler
1806 # ----------------------
1807
1808 # With GNU as
1809
1810 # Check whether --with-gnu-as or --without-gnu-as was given.
1811 if test "${with_gnu_as+set}" = set; then
1812   withval="$with_gnu_as"
1813   gas_flag="$with_gnu_as"
1814 else
1815   gas_flag=no
1816 fi;
1817
1818
1819 # Check whether --with-as or --without-as was given.
1820 if test "${with_as+set}" = set; then
1821   withval="$with_as"
1822   DEFAULT_ASSEMBLER="$with_as"
1823 fi;
1824 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1825   if test ! -x "$DEFAULT_ASSEMBLER"; then
1826     { { echo "$as_me:$LINENO: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&5
1827 echo "$as_me: error: cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" >&2;}
1828    { (exit 1); exit 1; }; }
1829   elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
1830     gas_flag=yes
1831   fi
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
1835 _ACEOF
1836
1837 fi
1838
1839 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
1840
1841 cat >>confdefs.h <<_ACEOF
1842 #define HAVE_GNU_AS $gnu_as
1843 _ACEOF
1844
1845
1846 echo "$as_me:$LINENO: checking whether a default assembler was specified" >&5
1847 echo $ECHO_N "checking whether a default assembler was specified... $ECHO_C" >&6
1848 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
1849   if test x"$gas_flag" = x"no"; then
1850     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER)" >&5
1851 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER)" >&6
1852   else
1853     echo "$as_me:$LINENO: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
1854 echo "${ECHO_T}yes ($DEFAULT_ASSEMBLER - GNU as)" >&6
1855   fi
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861 # ---------------
1862 # Find C compiler
1863 # ---------------
1864
1865 # If a non-executable a.out is present (e.g. created by GNU as above even if
1866 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
1867 # file, even when creating an executable, so an execution test fails.
1868 # Remove possible default executable files to avoid this.
1869 #
1870 # FIXME: This really belongs into AC_PROG_CC and can be removed once
1871 # Autoconf includes it.
1872 rm -f a.out a.exe b.out
1873
1874 # Find the native compiler
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$CC"; then
1889   ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 fi
1917 if test -z "$ac_cv_prog_CC"; then
1918   ac_ct_CC=$CC
1919   # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="gcc"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   CC=$ac_ct_CC
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 if test -z "$CC"; then
1960   if test -n "$ac_tool_prefix"; then
1961   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_CC="${ac_tool_prefix}cc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 CC=$ac_cv_prog_CC
1988 if test -n "$CC"; then
1989   echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996 fi
1997 if test -z "$ac_cv_prog_CC"; then
1998   ac_ct_CC=$CC
1999   # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CC"; then
2007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CC="cc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   CC=$ac_ct_CC
2035 else
2036   CC="$ac_cv_prog_CC"
2037 fi
2038
2039 fi
2040 if test -z "$CC"; then
2041   # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$CC"; then
2049   ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051   ac_prog_rejected=no
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060        ac_prog_rejected=yes
2061        continue
2062      fi
2063     ac_cv_prog_CC="cc"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 if test $ac_prog_rejected = yes; then
2071   # We found a bogon in the path, so make sure we never use it.
2072   set dummy $ac_cv_prog_CC
2073   shift
2074   if test $# != 0; then
2075     # We chose a different compiler from the bogus one.
2076     # However, it has the same basename, so the bogon will be chosen
2077     # first if we set CC to just the basename; use the full file name.
2078     shift
2079     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2080   fi
2081 fi
2082 fi
2083 fi
2084 CC=$ac_cv_prog_CC
2085 if test -n "$CC"; then
2086   echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2088 else
2089   echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 fi
2094 if test -z "$CC"; then
2095   if test -n "$ac_tool_prefix"; then
2096   for ac_prog in cl
2097   do
2098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test -n "$CC"; then
2106   ac_cv_prog_CC="$CC" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111   IFS=$as_save_IFS
2112   test -z "$as_dir" && as_dir=.
2113   for ac_exec_ext in '' $ac_executable_extensions; do
2114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121
2122 fi
2123 fi
2124 CC=$ac_cv_prog_CC
2125 if test -n "$CC"; then
2126   echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2128 else
2129   echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2131 fi
2132
2133     test -n "$CC" && break
2134   done
2135 fi
2136 if test -z "$CC"; then
2137   ac_ct_CC=$CC
2138   for ac_prog in cl
2139 do
2140   # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$ac_ct_CC"; then
2148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_ac_ct_CC="$ac_prog"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175   test -n "$ac_ct_CC" && break
2176 done
2177
2178   CC=$ac_ct_CC
2179 fi
2180
2181 fi
2182
2183
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188    { (exit 1); exit 1; }; }
2189
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192      "checking for C compiler version" >&5
2193 ac_compiler=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195   (eval $ac_compiler --version </dev/null >&5) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200   (eval $ac_compiler -v </dev/null >&5) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205   (eval $ac_compiler -V </dev/null >&5) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }
2209
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h.  */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h.  */
2216
2217 int
2218 main ()
2219 {
2220
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2229 # of exeext.
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234   (eval $ac_link_default) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; then
2238   # Find the output, starting from the most likely.  This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2240 # resort.
2241
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2244 ac_cv_exeext=
2245 # b.out is created by i960 compilers.
2246 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2247 do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2251         ;;
2252     conftest.$ac_ext )
2253         # This is the source file.
2254         ;;
2255     [ab].out )
2256         # We found the default executable, but exeext='' is most
2257         # certainly right.
2258         break;;
2259     *.* )
2260         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261         # FIXME: I believe we export ac_cv_exeext for Libtool,
2262         # but it would be cool to find out if it's true.  Does anybody
2263         # maintain Libtool? --akim.
2264         export ac_cv_exeext
2265         break;;
2266     * )
2267         break;;
2268   esac
2269 done
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278    { (exit 77); exit 77; }; }
2279 fi
2280
2281 ac_exeext=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2284
2285 # Check the compiler produces executables we can run.  If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292   if { ac_try='./$ac_file'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298     cross_compiling=no
2299   else
2300     if test "$cross_compiling" = maybe; then
2301         cross_compiling=yes
2302     else
2303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310     fi
2311   fi
2312 fi
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2315
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check the compiler produces executables we can run.  If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2324
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328   (eval $ac_link) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2335 # `rm'.
2336 for ac_file in conftest.exe conftest conftest.*; do
2337   test -f "$ac_file" || continue
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2340     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2341           export ac_cv_exeext
2342           break;;
2343     * ) break;;
2344   esac
2345 done
2346 else
2347   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354 rm -f conftest$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2357
2358 rm -f conftest.$ac_ext
2359 EXEEXT=$ac_cv_exeext
2360 ac_exeext=$EXEEXT
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; then
2387   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2388   case $ac_file in
2389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2390     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2391        break;;
2392   esac
2393 done
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402    { (exit 1); exit 1; }; }
2403 fi
2404
2405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT=$ac_cv_objext
2410 ac_objext=$OBJEXT
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422
2423 int
2424 main ()
2425 {
2426 #ifndef __GNUC__
2427        choke me
2428 #endif
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_compiler_gnu=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_compiler_gnu=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 CFLAGS="-g"
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_cv_prog_cc_g=no
2521 fi
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527   CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529   if test "$GCC" = yes; then
2530     CFLAGS="-g -O2"
2531   else
2532     CFLAGS="-g"
2533   fi
2534 else
2535   if test "$GCC" = yes; then
2536     CFLAGS="-O2"
2537   else
2538     CFLAGS=
2539   fi
2540 fi
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   ac_cv_prog_cc_stdc=no
2547 ac_save_CC=$CC
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554 #include <stdarg.h>
2555 #include <stdio.h>
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2562      char **p;
2563      int i;
2564 {
2565   return p[i];
2566 }
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2568 {
2569   char *s;
2570   va_list v;
2571   va_start (v,p);
2572   s = g (p, va_arg (v,int));
2573   va_end (v);
2574   return s;
2575 }
2576
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2578    function prototypes and stuff, but not '\xHH' hex character constants.
2579    These don't provoke an error unfortunately, instead are silently treated
2580    as 'x'.  The following induces an error, until -std1 is added to get
2581    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2582    array size at least.  It's necessary to write '\x00'==0 to get something
2583    that's true only with -std1.  */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2590 int argc;
2591 char **argv;
2592 int
2593 main ()
2594 {
2595 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX                   -qlanglvl=ansi
2603 # Ultrix and OSF/1      -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2606 # SVR4                  -Xc -D__EXTENSIONS__
2607 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2608 do
2609   CC="$ac_save_CC $ac_arg"
2610   rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_stdc=$ac_arg
2633 break
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 fi
2639 rm -f conftest.err conftest.$ac_objext
2640 done
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2642 CC=$ac_save_CC
2643
2644 fi
2645
2646 case "x$ac_cv_prog_cc_stdc" in
2647   x|xno)
2648     echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2650   *)
2651     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653     CC="$CC $ac_cv_prog_cc_stdc" ;;
2654 esac
2655
2656 # Some people use a C++ compiler to compile C.  Since we use `exit',
2657 # in C++ we need to declare it.  In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #ifndef __cplusplus
2662   choke me
2663 #endif
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   for ac_declaration in \
2688    '' \
2689    'extern "C" void std::exit (int) throw (); using std::exit;' \
2690    'extern "C" void std::exit (int); using std::exit;' \
2691    'extern "C" void exit (int) throw ();' \
2692    'extern "C" void exit (int);' \
2693    'void exit (int);'
2694 do
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 $ac_declaration
2702 #include <stdlib.h>
2703 int
2704 main ()
2705 {
2706 exit (42);
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713   (eval $ac_compile) 2>conftest.er1
2714   ac_status=$?
2715   grep -v '^ *+' conftest.er1 >conftest.err
2716   rm -f conftest.er1
2717   cat conftest.err >&5
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); } &&
2720          { ac_try='test -z "$ac_c_werror_flag"
2721                          || test ! -s conftest.err'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 $ac_declaration
2748 int
2749 main ()
2750 {
2751 exit (42);
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_c_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   break
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788   echo '#ifdef __cplusplus' >>confdefs.h
2789   echo $ac_declaration      >>confdefs.h
2790   echo '#endif'             >>confdefs.h
2791 fi
2792
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 fi
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
2805 if test "x$CC" != xcc; then
2806   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2807 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2808 else
2809   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2810 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2811 fi
2812 set dummy $CC; ac_cc=`echo $2 |
2813                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2814 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2815   echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817   cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823
2824 int
2825 main ()
2826 {
2827
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 # Make sure it works both with $CC and with simple cc.
2833 # We do the test twice because some compilers refuse to overwrite an
2834 # existing .o file with -o, though they will create one.
2835 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2836 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837   (eval $ac_try) 2>&5
2838   ac_status=$?
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842   (eval $ac_try) 2>&5
2843   ac_status=$?
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); };
2846 then
2847   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2848   if test "x$CC" != xcc; then
2849     # Test first that cc exists at all.
2850     if { ac_try='cc -c conftest.$ac_ext >&5'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); };
2867       then
2868         # cc works too.
2869         :
2870       else
2871         # cc exists but doesn't like -o.
2872         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2873       fi
2874     fi
2875   fi
2876 else
2877   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2878 fi
2879 rm -f conftest*
2880
2881 fi
2882 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2883   echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888
2889 cat >>confdefs.h <<\_ACEOF
2890 #define NO_MINUS_C_MINUS_O 1
2891 _ACEOF
2892
2893 fi
2894
2895 # expand $ac_aux_dir to an absolute path
2896 am_aux_dir=`cd $ac_aux_dir && pwd`
2897
2898 # FIXME: we rely on the cache variable name because
2899 # there is no other way.
2900 set dummy $CC
2901 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2903    # Losing compiler, so override with the script.
2904    # FIXME: It is wrong to rewrite CC.
2905    # But if we don't then we get into trouble of one sort or another.
2906    # A longer-term fix would be to have automake use am__CC in this case,
2907    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2908    CC="$am_aux_dir/compile $CC"
2909 fi
2910
2911 # autoconf is lame and doesn't give us any substitution variable for this.
2912 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
2913   NO_MINUS_C_MINUS_O=yes
2914 else
2915   OUTPUT_OPTION='-o $@'
2916 fi
2917
2918
2919
2920 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
2921 # optimizations to be activated explicitly by the toplevel.
2922 case "$CC" in
2923   */prev-gcc/xgcc*) ;;
2924   *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
2925 esac
2926
2927
2928 # -------------------------
2929 # Check C compiler features
2930 # -------------------------
2931
2932 ac_ext=c
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2938 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2939 # On Suns, sometimes $CPP names a directory.
2940 if test -n "$CPP" && test -d "$CPP"; then
2941   CPP=
2942 fi
2943 if test -z "$CPP"; then
2944   if test "${ac_cv_prog_CPP+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947       # Double quotes because CPP needs to be expanded
2948     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2949     do
2950       ac_preproc_ok=false
2951 for ac_c_preproc_warn_flag in '' yes
2952 do
2953   # Use a header file that comes with gcc, so configuring glibc
2954   # with a fresh cross-compiler works.
2955   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2956   # <limits.h> exists even on freestanding compilers.
2957   # On the NeXT, cc -E runs the code through the compiler's parser,
2958   # not just through cpp. "Syntax error" is here to catch this case.
2959   cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h.  */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h.  */
2965 #ifdef __STDC__
2966 # include <limits.h>
2967 #else
2968 # include <assert.h>
2969 #endif
2970                      Syntax error
2971 _ACEOF
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } >/dev/null; then
2980   if test -s conftest.err; then
2981     ac_cpp_err=$ac_c_preproc_warn_flag
2982     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2983   else
2984     ac_cpp_err=
2985   fi
2986 else
2987   ac_cpp_err=yes
2988 fi
2989 if test -z "$ac_cpp_err"; then
2990   :
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995   # Broken: fails on valid input.
2996 continue
2997 fi
2998 rm -f conftest.err conftest.$ac_ext
2999
3000   # OK, works on sane cases.  Now check whether non-existent headers
3001   # can be detected and how.
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 #include <ac_nonexistent.h>
3009 _ACEOF
3010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3012   ac_status=$?
3013   grep -v '^ *+' conftest.er1 >conftest.err
3014   rm -f conftest.er1
3015   cat conftest.err >&5
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); } >/dev/null; then
3018   if test -s conftest.err; then
3019     ac_cpp_err=$ac_c_preproc_warn_flag
3020     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3021   else
3022     ac_cpp_err=
3023   fi
3024 else
3025   ac_cpp_err=yes
3026 fi
3027 if test -z "$ac_cpp_err"; then
3028   # Broken: success on invalid input.
3029 continue
3030 else
3031   echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3033
3034   # Passes both tests.
3035 ac_preproc_ok=:
3036 break
3037 fi
3038 rm -f conftest.err conftest.$ac_ext
3039
3040 done
3041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3042 rm -f conftest.err conftest.$ac_ext
3043 if $ac_preproc_ok; then
3044   break
3045 fi
3046
3047     done
3048     ac_cv_prog_CPP=$CPP
3049
3050 fi
3051   CPP=$ac_cv_prog_CPP
3052 else
3053   ac_cv_prog_CPP=$CPP
3054 fi
3055 echo "$as_me:$LINENO: result: $CPP" >&5
3056 echo "${ECHO_T}$CPP" >&6
3057 ac_preproc_ok=false
3058 for ac_c_preproc_warn_flag in '' yes
3059 do
3060   # Use a header file that comes with gcc, so configuring glibc
3061   # with a fresh cross-compiler works.
3062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3063   # <limits.h> exists even on freestanding compilers.
3064   # On the NeXT, cc -E runs the code through the compiler's parser,
3065   # not just through cpp. "Syntax error" is here to catch this case.
3066   cat >conftest.$ac_ext <<_ACEOF
3067 /* confdefs.h.  */
3068 _ACEOF
3069 cat confdefs.h >>conftest.$ac_ext
3070 cat >>conftest.$ac_ext <<_ACEOF
3071 /* end confdefs.h.  */
3072 #ifdef __STDC__
3073 # include <limits.h>
3074 #else
3075 # include <assert.h>
3076 #endif
3077                      Syntax error
3078 _ACEOF
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081   ac_status=$?
3082   grep -v '^ *+' conftest.er1 >conftest.err
3083   rm -f conftest.er1
3084   cat conftest.err >&5
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); } >/dev/null; then
3087   if test -s conftest.err; then
3088     ac_cpp_err=$ac_c_preproc_warn_flag
3089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3090   else
3091     ac_cpp_err=
3092   fi
3093 else
3094   ac_cpp_err=yes
3095 fi
3096 if test -z "$ac_cpp_err"; then
3097   :
3098 else
3099   echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102   # Broken: fails on valid input.
3103 continue
3104 fi
3105 rm -f conftest.err conftest.$ac_ext
3106
3107   # OK, works on sane cases.  Now check whether non-existent headers
3108   # can be detected and how.
3109   cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115 #include <ac_nonexistent.h>
3116 _ACEOF
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } >/dev/null; then
3125   if test -s conftest.err; then
3126     ac_cpp_err=$ac_c_preproc_warn_flag
3127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3128   else
3129     ac_cpp_err=
3130   fi
3131 else
3132   ac_cpp_err=yes
3133 fi
3134 if test -z "$ac_cpp_err"; then
3135   # Broken: success on invalid input.
3136 continue
3137 else
3138   echo "$as_me: failed program was:" >&5
3139 sed 's/^/| /' conftest.$ac_ext >&5
3140
3141   # Passes both tests.
3142 ac_preproc_ok=:
3143 break
3144 fi
3145 rm -f conftest.err conftest.$ac_ext
3146
3147 done
3148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3149 rm -f conftest.err conftest.$ac_ext
3150 if $ac_preproc_ok; then
3151   :
3152 else
3153   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3156 See \`config.log' for more details." >&2;}
3157    { (exit 1); exit 1; }; }
3158 fi
3159
3160 ac_ext=c
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3165
3166
3167 echo "$as_me:$LINENO: checking for inline" >&5
3168 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3169 if test "${ac_cv_c_inline+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172   ac_cv_c_inline=no
3173 for ac_kw in inline __inline__ __inline; do
3174   cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 #ifndef __cplusplus
3181 typedef int foo_t;
3182 static $ac_kw foo_t static_foo () {return 0; }
3183 $ac_kw foo_t foo () {return 0; }
3184 #endif
3185
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189   (eval $ac_compile) 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } &&
3196          { ac_try='test -z "$ac_c_werror_flag"
3197                          || test ! -s conftest.err'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; } &&
3203          { ac_try='test -s conftest.$ac_objext'
3204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205   (eval $ac_try) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   ac_cv_c_inline=$ac_kw; break
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 fi
3215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216 done
3217
3218 fi
3219 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3220 echo "${ECHO_T}$ac_cv_c_inline" >&6
3221
3222
3223 case $ac_cv_c_inline in
3224   inline | yes) ;;
3225   *)
3226     case $ac_cv_c_inline in
3227       no) ac_val=;;
3228       *) ac_val=$ac_cv_c_inline;;
3229     esac
3230     cat >>confdefs.h <<_ACEOF
3231 #ifndef __cplusplus
3232 #define inline $ac_val
3233 #endif
3234 _ACEOF
3235     ;;
3236 esac
3237
3238
3239 # sizeof(char) is 1 by definition.
3240
3241 echo "$as_me:$LINENO: checking for egrep" >&5
3242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3243 if test "${ac_cv_prog_egrep+set}" = set; then
3244   echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3247     then ac_cv_prog_egrep='grep -E'
3248     else ac_cv_prog_egrep='egrep'
3249     fi
3250 fi
3251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3253  EGREP=$ac_cv_prog_egrep
3254
3255
3256 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3257 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3258 if test "${ac_cv_header_stdc+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   cat >conftest.$ac_ext <<_ACEOF
3262 /* confdefs.h.  */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h.  */
3267 #include <stdlib.h>
3268 #include <stdarg.h>
3269 #include <string.h>
3270 #include <float.h>
3271
3272 int
3273 main ()
3274 {
3275
3276   ;
3277   return 0;
3278 }
3279 _ACEOF
3280 rm -f conftest.$ac_objext
3281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3282   (eval $ac_compile) 2>conftest.er1
3283   ac_status=$?
3284   grep -v '^ *+' conftest.er1 >conftest.err
3285   rm -f conftest.er1
3286   cat conftest.err >&5
3287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288   (exit $ac_status); } &&
3289          { ac_try='test -z "$ac_c_werror_flag"
3290                          || test ! -s conftest.err'
3291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292   (eval $ac_try) 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }; } &&
3296          { ac_try='test -s conftest.$ac_objext'
3297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298   (eval $ac_try) 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_cv_header_stdc=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 ac_cv_header_stdc=no
3308 fi
3309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3310
3311 if test $ac_cv_header_stdc = yes; then
3312   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3313   cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h.  */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h.  */
3319 #include <string.h>
3320
3321 _ACEOF
3322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3323   $EGREP "memchr" >/dev/null 2>&1; then
3324   :
3325 else
3326   ac_cv_header_stdc=no
3327 fi
3328 rm -f conftest*
3329
3330 fi
3331
3332 if test $ac_cv_header_stdc = yes; then
3333   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3334   cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340 #include <stdlib.h>
3341
3342 _ACEOF
3343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3344   $EGREP "free" >/dev/null 2>&1; then
3345   :
3346 else
3347   ac_cv_header_stdc=no
3348 fi
3349 rm -f conftest*
3350
3351 fi
3352
3353 if test $ac_cv_header_stdc = yes; then
3354   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3355   if test "$cross_compiling" = yes; then
3356   :
3357 else
3358   cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364 #include <ctype.h>
3365 #if ((' ' & 0x0FF) == 0x020)
3366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3368 #else
3369 # define ISLOWER(c) \
3370                    (('a' <= (c) && (c) <= 'i') \
3371                      || ('j' <= (c) && (c) <= 'r') \
3372                      || ('s' <= (c) && (c) <= 'z'))
3373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3374 #endif
3375
3376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3377 int
3378 main ()
3379 {
3380   int i;
3381   for (i = 0; i < 256; i++)
3382     if (XOR (islower (i), ISLOWER (i))
3383         || toupper (i) != TOUPPER (i))
3384       exit(2);
3385   exit (0);
3386 }
3387 _ACEOF
3388 rm -f conftest$ac_exeext
3389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3390   (eval $ac_link) 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395   (eval $ac_try) 2>&5
3396   ac_status=$?
3397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398   (exit $ac_status); }; }; then
3399   :
3400 else
3401   echo "$as_me: program exited with status $ac_status" >&5
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 ( exit $ac_status )
3406 ac_cv_header_stdc=no
3407 fi
3408 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3409 fi
3410 fi
3411 fi
3412 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3413 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3414 if test $ac_cv_header_stdc = yes; then
3415
3416 cat >>confdefs.h <<\_ACEOF
3417 #define STDC_HEADERS 1
3418 _ACEOF
3419
3420 fi
3421
3422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3433                   inttypes.h stdint.h unistd.h
3434 do
3435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 echo "$as_me:$LINENO: checking for $ac_header" >&5
3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3439   echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 $ac_includes_default
3448
3449 #include <$ac_header>
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3453   (eval $ac_compile) 2>conftest.er1
3454   ac_status=$?
3455   grep -v '^ *+' conftest.er1 >conftest.err
3456   rm -f conftest.er1
3457   cat conftest.err >&5
3458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459   (exit $ac_status); } &&
3460          { ac_try='test -z "$ac_c_werror_flag"
3461                          || test ! -s conftest.err'
3462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463   (eval $ac_try) 2>&5
3464   ac_status=$?
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); }; } &&
3467          { ac_try='test -s conftest.$ac_objext'
3468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469   (eval $ac_try) 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; }; then
3473   eval "$as_ac_Header=yes"
3474 else
3475   echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 eval "$as_ac_Header=no"
3479 fi
3480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481 fi
3482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3485   cat >>confdefs.h <<_ACEOF
3486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3487 _ACEOF
3488
3489 fi
3490
3491 done
3492
3493
3494 echo "$as_me:$LINENO: checking for void *" >&5
3495 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3496 if test "${ac_cv_type_void_p+set}" = set; then
3497   echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 $ac_includes_default
3506 int
3507 main ()
3508 {
3509 if ((void * *) 0)
3510   return 0;
3511 if (sizeof (void *))
3512   return 0;
3513   ;
3514   return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519   (eval $ac_compile) 2>conftest.er1
3520   ac_status=$?
3521   grep -v '^ *+' conftest.er1 >conftest.err
3522   rm -f conftest.er1
3523   cat conftest.err >&5
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); } &&
3526          { ac_try='test -z "$ac_c_werror_flag"
3527                          || test ! -s conftest.err'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; } &&
3533          { ac_try='test -s conftest.$ac_objext'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; }; then
3539   ac_cv_type_void_p=yes
3540 else
3541   echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 ac_cv_type_void_p=no
3545 fi
3546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3547 fi
3548 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3549 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3550
3551 echo "$as_me:$LINENO: checking size of void *" >&5
3552 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3553 if test "${ac_cv_sizeof_void_p+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   if test "$ac_cv_type_void_p" = yes; then
3557   # The cast to unsigned long works around a bug in the HP C Compiler
3558   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3559   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3560   # This bug is HP SR number 8606223364.
3561   if test "$cross_compiling" = yes; then
3562   # Depending upon the size, compute the lo and hi bounds.
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h.  */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h.  */
3569 $ac_includes_default
3570 int
3571 main ()
3572 {
3573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3574 test_array [0] = 0
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582   (eval $ac_compile) 2>conftest.er1
3583   ac_status=$?
3584   grep -v '^ *+' conftest.er1 >conftest.err
3585   rm -f conftest.er1
3586   cat conftest.err >&5
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } &&
3589          { ac_try='test -z "$ac_c_werror_flag"
3590                          || test ! -s conftest.err'
3591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592   (eval $ac_try) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; } &&
3596          { ac_try='test -s conftest.$ac_objext'
3597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598   (eval $ac_try) 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); }; }; then
3602   ac_lo=0 ac_mid=0
3603   while :; do
3604     cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h.  */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h.  */
3610 $ac_includes_default
3611 int
3612 main ()
3613 {
3614 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3615 test_array [0] = 0
3616
3617   ;
3618   return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3623   (eval $ac_compile) 2>conftest.er1
3624   ac_status=$?
3625   grep -v '^ *+' conftest.er1 >conftest.err
3626   rm -f conftest.er1
3627   cat conftest.err >&5
3628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629   (exit $ac_status); } &&
3630          { ac_try='test -z "$ac_c_werror_flag"
3631                          || test ! -s conftest.err'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; } &&
3637          { ac_try='test -s conftest.$ac_objext'
3638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639   (eval $ac_try) 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; }; then
3643   ac_hi=$ac_mid; break
3644 else
3645   echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 ac_lo=`expr $ac_mid + 1`
3649                     if test $ac_lo -le $ac_mid; then
3650                       ac_lo= ac_hi=
3651                       break
3652                     fi
3653                     ac_mid=`expr 2 '*' $ac_mid + 1`
3654 fi
3655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3656   done
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 $ac_includes_default
3668 int
3669 main ()
3670 {
3671 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3672 test_array [0] = 0
3673
3674   ;
3675   return 0;
3676 }
3677 _ACEOF
3678 rm -f conftest.$ac_objext
3679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3680   (eval $ac_compile) 2>conftest.er1
3681   ac_status=$?
3682   grep -v '^ *+' conftest.er1 >conftest.err
3683   rm -f conftest.er1
3684   cat conftest.err >&5
3685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686   (exit $ac_status); } &&
3687          { ac_try='test -z "$ac_c_werror_flag"
3688                          || test ! -s conftest.err'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; } &&
3694          { ac_try='test -s conftest.$ac_objext'
3695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696   (eval $ac_try) 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   ac_hi=-1 ac_mid=-1
3701   while :; do
3702     cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h.  */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h.  */
3708 $ac_includes_default
3709 int
3710 main ()
3711 {
3712 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3713 test_array [0] = 0
3714
3715   ;
3716   return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3721   (eval $ac_compile) 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -z "$ac_c_werror_flag"
3729                          || test ! -s conftest.err'
3730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731   (eval $ac_try) 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; } &&
3735          { ac_try='test -s conftest.$ac_objext'
3736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737   (eval $ac_try) 2>&5
3738   ac_status=$?
3739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740   (exit $ac_status); }; }; then
3741   ac_lo=$ac_mid; break
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 ac_hi=`expr '(' $ac_mid ')' - 1`
3747                        if test $ac_mid -le $ac_hi; then
3748                          ac_lo= ac_hi=
3749                          break
3750                        fi
3751                        ac_mid=`expr 2 '*' $ac_mid`
3752 fi
3753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3754   done
3755 else
3756   echo "$as_me: failed program was:" >&5
3757 sed 's/^/| /' conftest.$ac_ext >&5
3758
3759 ac_lo= ac_hi=
3760 fi
3761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3762 fi
3763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3764 # Binary search between lo and hi bounds.
3765 while test "x$ac_lo" != "x$ac_hi"; do
3766   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3767   cat >conftest.$ac_ext <<_ACEOF
3768 /* confdefs.h.  */
3769 _ACEOF
3770 cat confdefs.h >>conftest.$ac_ext
3771 cat >>conftest.$ac_ext <<_ACEOF
3772 /* end confdefs.h.  */
3773 $ac_includes_default
3774 int
3775 main ()
3776 {
3777 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3778 test_array [0] = 0
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 rm -f conftest.$ac_objext
3785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3786   (eval $ac_compile) 2>conftest.er1
3787   ac_status=$?
3788   grep -v '^ *+' conftest.er1 >conftest.err
3789   rm -f conftest.er1
3790   cat conftest.err >&5
3791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792   (exit $ac_status); } &&
3793          { ac_try='test -z "$ac_c_werror_flag"
3794                          || test ! -s conftest.err'
3795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796   (eval $ac_try) 2>&5
3797   ac_status=$?
3798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799   (exit $ac_status); }; } &&
3800          { ac_try='test -s conftest.$ac_objext'
3801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802   (eval $ac_try) 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); }; }; then
3806   ac_hi=$ac_mid
3807 else
3808   echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 ac_lo=`expr '(' $ac_mid ')' + 1`
3812 fi
3813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 done
3815 case $ac_lo in
3816 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3818 See \`config.log' for more details." >&5
3819 echo "$as_me: error: cannot compute sizeof (void *), 77
3820 See \`config.log' for more details." >&2;}
3821    { (exit 1); exit 1; }; } ;;
3822 esac
3823 else
3824   if test "$cross_compiling" = yes; then
3825   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3826 See \`config.log' for more details." >&5
3827 echo "$as_me: error: cannot run test program while cross compiling
3828 See \`config.log' for more details." >&2;}
3829    { (exit 1); exit 1; }; }
3830 else
3831   cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h.  */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h.  */
3837 $ac_includes_default
3838 long longval () { return (long) (sizeof (void *)); }
3839 unsigned long ulongval () { return (long) (sizeof (void *)); }
3840 #include <stdio.h>
3841 #include <stdlib.h>
3842 int
3843 main ()
3844 {
3845
3846   FILE *f = fopen ("conftest.val", "w");
3847   if (! f)
3848     exit (1);
3849   if (((long) (sizeof (void *))) < 0)
3850     {
3851       long i = longval ();
3852       if (i != ((long) (sizeof (void *))))
3853         exit (1);
3854       fprintf (f, "%ld\n", i);
3855     }
3856   else
3857     {
3858       unsigned long i = ulongval ();
3859       if (i != ((long) (sizeof (void *))))
3860         exit (1);
3861       fprintf (f, "%lu\n", i);
3862     }
3863   exit (ferror (f) || fclose (f) != 0);
3864
3865   ;
3866   return 0;
3867 }
3868 _ACEOF
3869 rm -f conftest$ac_exeext
3870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3871   (eval $ac_link) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; }; then
3880   ac_cv_sizeof_void_p=`cat conftest.val`
3881 else
3882   echo "$as_me: program exited with status $ac_status" >&5
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3885
3886 ( exit $ac_status )
3887 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3888 See \`config.log' for more details." >&5
3889 echo "$as_me: error: cannot compute sizeof (void *), 77
3890 See \`config.log' for more details." >&2;}
3891    { (exit 1); exit 1; }; }
3892 fi
3893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 fi
3896 rm -f conftest.val
3897 else
3898   ac_cv_sizeof_void_p=0
3899 fi
3900 fi
3901 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3902 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3903 cat >>confdefs.h <<_ACEOF
3904 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3905 _ACEOF
3906
3907
3908 echo "$as_me:$LINENO: checking for short" >&5
3909 echo $ECHO_N "checking for short... $ECHO_C" >&6
3910 if test "${ac_cv_type_short+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 $ac_includes_default
3920 int
3921 main ()
3922 {
3923 if ((short *) 0)
3924   return 0;
3925 if (sizeof (short))
3926   return 0;
3927   ;
3928   return 0;
3929 }
3930 _ACEOF
3931 rm -f conftest.$ac_objext
3932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933   (eval $ac_compile) 2>conftest.er1
3934   ac_status=$?
3935   grep -v '^ *+' conftest.er1 >conftest.err
3936   rm -f conftest.er1
3937   cat conftest.err >&5
3938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939   (exit $ac_status); } &&
3940          { ac_try='test -z "$ac_c_werror_flag"
3941                          || test ! -s conftest.err'
3942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943   (eval $ac_try) 2>&5
3944   ac_status=$?
3945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946   (exit $ac_status); }; } &&
3947          { ac_try='test -s conftest.$ac_objext'
3948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3949   (eval $ac_try) 2>&5
3950   ac_status=$?
3951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952   (exit $ac_status); }; }; then
3953   ac_cv_type_short=yes
3954 else
3955   echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 ac_cv_type_short=no
3959 fi
3960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3961 fi
3962 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3963 echo "${ECHO_T}$ac_cv_type_short" >&6
3964
3965 echo "$as_me:$LINENO: checking size of short" >&5
3966 echo $ECHO_N "checking size of short... $ECHO_C" >&6
3967 if test "${ac_cv_sizeof_short+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   if test "$ac_cv_type_short" = yes; then
3971   # The cast to unsigned long works around a bug in the HP C Compiler
3972   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3973   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3974   # This bug is HP SR number 8606223364.
3975   if test "$cross_compiling" = yes; then
3976   # Depending upon the size, compute the lo and hi bounds.
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h.  */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h.  */
3983 $ac_includes_default
3984 int
3985 main ()
3986 {
3987 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3988 test_array [0] = 0
3989
3990   ;
3991   return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996   (eval $ac_compile) 2>conftest.er1
3997   ac_status=$?
3998   grep -v '^ *+' conftest.er1 >conftest.err
3999   rm -f conftest.er1
4000   cat conftest.err >&5
4001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002   (exit $ac_status); } &&
4003          { ac_try='test -z "$ac_c_werror_flag"
4004                          || test ! -s conftest.err'
4005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006   (eval $ac_try) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); }; } &&
4010          { ac_try='test -s conftest.$ac_objext'
4011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012   (eval $ac_try) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; }; then
4016   ac_lo=0 ac_mid=0
4017   while :; do
4018     cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 $ac_includes_default
4025 int
4026 main ()
4027 {
4028 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4029 test_array [0] = 0
4030
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037   (eval $ac_compile) 2>conftest.er1
4038   ac_status=$?
4039   grep -v '^ *+' conftest.er1 >conftest.err
4040   rm -f conftest.er1
4041   cat conftest.err >&5
4042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); } &&
4044          { ac_try='test -z "$ac_c_werror_flag"
4045                          || test ! -s conftest.err'
4046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047   (eval $ac_try) 2>&5
4048   ac_status=$?
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); }; } &&
4051          { ac_try='test -s conftest.$ac_objext'
4052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053   (eval $ac_try) 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   ac_hi=$ac_mid; break
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062 ac_lo=`expr $ac_mid + 1`
4063                     if test $ac_lo -le $ac_mid; then
4064                       ac_lo= ac_hi=
4065                       break
4066                     fi
4067                     ac_mid=`expr 2 '*' $ac_mid + 1`
4068 fi
4069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4070   done
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 cat >conftest.$ac_ext <<_ACEOF
4076 /* confdefs.h.  */
4077 _ACEOF
4078 cat confdefs.h >>conftest.$ac_ext
4079 cat >>conftest.$ac_ext <<_ACEOF
4080 /* end confdefs.h.  */
4081 $ac_includes_default
4082 int
4083 main ()
4084 {
4085 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4086 test_array [0] = 0
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>conftest.er1
4095   ac_status=$?
4096   grep -v '^ *+' conftest.er1 >conftest.err
4097   rm -f conftest.er1
4098   cat conftest.err >&5
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); } &&
4101          { ac_try='test -z "$ac_c_werror_flag"
4102                          || test ! -s conftest.err'
4103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104   (eval $ac_try) 2>&5
4105   ac_status=$?
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); }; } &&
4108          { ac_try='test -s conftest.$ac_objext'
4109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110   (eval $ac_try) 2>&5
4111   ac_status=$?
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); }; }; then
4114   ac_hi=-1 ac_mid=-1
4115   while :; do
4116     cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 $ac_includes_default
4123 int
4124 main ()
4125 {
4126 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4127 test_array [0] = 0
4128
4129   ;
4130   return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4135   (eval $ac_compile) 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } &&
4142          { ac_try='test -z "$ac_c_werror_flag"
4143                          || test ! -s conftest.err'
4144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145   (eval $ac_try) 2>&5
4146   ac_status=$?
4147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148   (exit $ac_status); }; } &&
4149          { ac_try='test -s conftest.$ac_objext'
4150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151   (eval $ac_try) 2>&5
4152   ac_status=$?
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); }; }; then
4155   ac_lo=$ac_mid; break
4156 else
4157   echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 ac_hi=`expr '(' $ac_mid ')' - 1`
4161                        if test $ac_mid -le $ac_hi; then
4162                          ac_lo= ac_hi=
4163                          break
4164                        fi
4165                        ac_mid=`expr 2 '*' $ac_mid`
4166 fi
4167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4168   done
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 ac_lo= ac_hi=
4174 fi
4175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4176 fi
4177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178 # Binary search between lo and hi bounds.
4179 while test "x$ac_lo" != "x$ac_hi"; do
4180   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4181   cat >conftest.$ac_ext <<_ACEOF
4182 /* confdefs.h.  */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h.  */
4187 $ac_includes_default
4188 int
4189 main ()
4190 {
4191 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4192 test_array [0] = 0
4193
4194   ;
4195   return 0;
4196 }
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200   (eval $ac_compile) 2>conftest.er1
4201   ac_status=$?
4202   grep -v '^ *+' conftest.er1 >conftest.err
4203   rm -f conftest.er1
4204   cat conftest.err >&5
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); } &&
4207          { ac_try='test -z "$ac_c_werror_flag"
4208                          || test ! -s conftest.err'
4209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210   (eval $ac_try) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; } &&
4214          { ac_try='test -s conftest.$ac_objext'
4215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216   (eval $ac_try) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; }; then
4220   ac_hi=$ac_mid
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_lo=`expr '(' $ac_mid ')' + 1`
4226 fi
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 done
4229 case $ac_lo in
4230 ?*) ac_cv_sizeof_short=$ac_lo;;
4231 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4232 See \`config.log' for more details." >&5
4233 echo "$as_me: error: cannot compute sizeof (short), 77
4234 See \`config.log' for more details." >&2;}
4235    { (exit 1); exit 1; }; } ;;
4236 esac
4237 else
4238   if test "$cross_compiling" = yes; then
4239   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4240 See \`config.log' for more details." >&5
4241 echo "$as_me: error: cannot run test program while cross compiling
4242 See \`config.log' for more details." >&2;}
4243    { (exit 1); exit 1; }; }
4244 else
4245   cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h.  */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h.  */
4251 $ac_includes_default
4252 long longval () { return (long) (sizeof (short)); }
4253 unsigned long ulongval () { return (long) (sizeof (short)); }
4254 #include <stdio.h>
4255 #include <stdlib.h>
4256 int
4257 main ()
4258 {
4259
4260   FILE *f = fopen ("conftest.val", "w");
4261   if (! f)
4262     exit (1);
4263   if (((long) (sizeof (short))) < 0)
4264     {
4265       long i = longval ();
4266       if (i != ((long) (sizeof (short))))
4267         exit (1);
4268       fprintf (f, "%ld\n", i);
4269     }
4270   else
4271     {
4272       unsigned long i = ulongval ();
4273       if (i != ((long) (sizeof (short))))
4274         exit (1);
4275       fprintf (f, "%lu\n", i);
4276     }
4277   exit (ferror (f) || fclose (f) != 0);
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest$ac_exeext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285   (eval $ac_link) 2>&5
4286   ac_status=$?
4287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   ac_cv_sizeof_short=`cat conftest.val`
4295 else
4296   echo "$as_me: program exited with status $ac_status" >&5
4297 echo "$as_me: failed program was:" >&5
4298 sed 's/^/| /' conftest.$ac_ext >&5
4299
4300 ( exit $ac_status )
4301 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4302 See \`config.log' for more details." >&5
4303 echo "$as_me: error: cannot compute sizeof (short), 77
4304 See \`config.log' for more details." >&2;}
4305    { (exit 1); exit 1; }; }
4306 fi
4307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4308 fi
4309 fi
4310 rm -f conftest.val
4311 else
4312   ac_cv_sizeof_short=0
4313 fi
4314 fi
4315 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
4316 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4317 cat >>confdefs.h <<_ACEOF
4318 #define SIZEOF_SHORT $ac_cv_sizeof_short
4319 _ACEOF
4320
4321
4322 echo "$as_me:$LINENO: checking for int" >&5
4323 echo $ECHO_N "checking for int... $ECHO_C" >&6
4324 if test "${ac_cv_type_int+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h.  */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h.  */
4333 $ac_includes_default
4334 int
4335 main ()
4336 {
4337 if ((int *) 0)
4338   return 0;
4339 if (sizeof (int))
4340   return 0;
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 rm -f conftest.$ac_objext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347   (eval $ac_compile) 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } &&
4354          { ac_try='test -z "$ac_c_werror_flag"
4355                          || test ! -s conftest.err'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   ac_cv_type_int=yes
4368 else
4369   echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 ac_cv_type_int=no
4373 fi
4374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
4377 echo "${ECHO_T}$ac_cv_type_int" >&6
4378
4379 echo "$as_me:$LINENO: checking size of int" >&5
4380 echo $ECHO_N "checking size of int... $ECHO_C" >&6
4381 if test "${ac_cv_sizeof_int+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   if test "$ac_cv_type_int" = yes; then
4385   # The cast to unsigned long works around a bug in the HP C Compiler
4386   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4387   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4388   # This bug is HP SR number 8606223364.
4389   if test "$cross_compiling" = yes; then
4390   # Depending upon the size, compute the lo and hi bounds.
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h.  */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h.  */
4397 $ac_includes_default
4398 int
4399 main ()
4400 {
4401 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4402 test_array [0] = 0
4403
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 rm -f conftest.$ac_objext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4410   (eval $ac_compile) 2>conftest.er1
4411   ac_status=$?
4412   grep -v '^ *+' conftest.er1 >conftest.err
4413   rm -f conftest.er1
4414   cat conftest.err >&5
4415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416   (exit $ac_status); } &&
4417          { ac_try='test -z "$ac_c_werror_flag"
4418                          || test ! -s conftest.err'
4419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420   (eval $ac_try) 2>&5
4421   ac_status=$?
4422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423   (exit $ac_status); }; } &&
4424          { ac_try='test -s conftest.$ac_objext'
4425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426   (eval $ac_try) 2>&5
4427   ac_status=$?
4428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429   (exit $ac_status); }; }; then
4430   ac_lo=0 ac_mid=0
4431   while :; do
4432     cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438 $ac_includes_default
4439 int
4440 main ()
4441 {
4442 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4443 test_array [0] = 0
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4451   (eval $ac_compile) 2>conftest.er1
4452   ac_status=$?
4453   grep -v '^ *+' conftest.er1 >conftest.err
4454   rm -f conftest.er1
4455   cat conftest.err >&5
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); } &&
4458          { ac_try='test -z "$ac_c_werror_flag"
4459                          || test ! -s conftest.err'
4460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4461   (eval $ac_try) 2>&5
4462   ac_status=$?
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); }; } &&
4465          { ac_try='test -s conftest.$ac_objext'
4466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467   (eval $ac_try) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; }; then
4471   ac_hi=$ac_mid; break
4472 else
4473   echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4475
4476 ac_lo=`expr $ac_mid + 1`
4477                     if test $ac_lo -le $ac_mid; then
4478                       ac_lo= ac_hi=
4479                       break
4480                     fi
4481                     ac_mid=`expr 2 '*' $ac_mid + 1`
4482 fi
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484   done
4485 else
4486   echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 $ac_includes_default
4496 int
4497 main ()
4498 {
4499 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4500 test_array [0] = 0
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508   (eval $ac_compile) 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag"
4516                          || test ! -s conftest.err'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_hi=-1 ac_mid=-1
4529   while :; do
4530     cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h.  */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h.  */
4536 $ac_includes_default
4537 int
4538 main ()
4539 {
4540 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4541 test_array [0] = 0
4542
4543   ;
4544   return 0;
4545 }
4546 _ACEOF
4547 rm -f conftest.$ac_objext
4548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4549   (eval $ac_compile) 2>conftest.er1
4550   ac_status=$?
4551   grep -v '^ *+' conftest.er1 >conftest.err
4552   rm -f conftest.er1
4553   cat conftest.err >&5
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); } &&
4556          { ac_try='test -z "$ac_c_werror_flag"
4557                          || test ! -s conftest.err'
4558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4559   (eval $ac_try) 2>&5
4560   ac_status=$?
4561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562   (exit $ac_status); }; } &&
4563          { ac_try='test -s conftest.$ac_objext'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; }; then
4569   ac_lo=$ac_mid; break
4570 else
4571   echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4573
4574 ac_hi=`expr '(' $ac_mid ')' - 1`
4575                        if test $ac_mid -le $ac_hi; then
4576                          ac_lo= ac_hi=
4577                          break
4578                        fi
4579                        ac_mid=`expr 2 '*' $ac_mid`
4580 fi
4581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4582   done
4583 else
4584   echo "$as_me: failed program was:" >&5
4585 sed 's/^/| /' conftest.$ac_ext >&5
4586
4587 ac_lo= ac_hi=
4588 fi
4589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4590 fi
4591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 # Binary search between lo and hi bounds.
4593 while test "x$ac_lo" != "x$ac_hi"; do
4594   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4595   cat >conftest.$ac_ext <<_ACEOF
4596 /* confdefs.h.  */
4597 _ACEOF
4598 cat confdefs.h >>conftest.$ac_ext
4599 cat >>conftest.$ac_ext <<_ACEOF
4600 /* end confdefs.h.  */
4601 $ac_includes_default
4602 int
4603 main ()
4604 {
4605 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4606 test_array [0] = 0
4607
4608   ;
4609   return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4614   (eval $ac_compile) 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } &&
4621          { ac_try='test -z "$ac_c_werror_flag"
4622                          || test ! -s conftest.err'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; } &&
4628          { ac_try='test -s conftest.$ac_objext'
4629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630   (eval $ac_try) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; }; then
4634   ac_hi=$ac_mid
4635 else
4636   echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4638
4639 ac_lo=`expr '(' $ac_mid ')' + 1`
4640 fi
4641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4642 done
4643 case $ac_lo in
4644 ?*) ac_cv_sizeof_int=$ac_lo;;
4645 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: cannot compute sizeof (int), 77
4648 See \`config.log' for more details." >&2;}
4649    { (exit 1); exit 1; }; } ;;
4650 esac
4651 else
4652   if test "$cross_compiling" = yes; then
4653   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4654 See \`config.log' for more details." >&5
4655 echo "$as_me: error: cannot run test program while cross compiling
4656 See \`config.log' for more details." >&2;}
4657    { (exit 1); exit 1; }; }
4658 else
4659   cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665 $ac_includes_default
4666 long longval () { return (long) (sizeof (int)); }
4667 unsigned long ulongval () { return (long) (sizeof (int)); }
4668 #include <stdio.h>
4669 #include <stdlib.h>
4670 int
4671 main ()
4672 {
4673
4674   FILE *f = fopen ("conftest.val", "w");
4675   if (! f)
4676     exit (1);
4677   if (((long) (sizeof (int))) < 0)
4678     {
4679       long i = longval ();
4680       if (i != ((long) (sizeof (int))))
4681         exit (1);
4682       fprintf (f, "%ld\n", i);
4683     }
4684   else
4685     {
4686       unsigned long i = ulongval ();
4687       if (i != ((long) (sizeof (int))))
4688         exit (1);
4689       fprintf (f, "%lu\n", i);
4690     }
4691   exit (ferror (f) || fclose (f) != 0);
4692
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest$ac_exeext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4699   (eval $ac_link) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704   (eval $ac_try) 2>&5
4705   ac_status=$?
4706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707   (exit $ac_status); }; }; then
4708   ac_cv_sizeof_int=`cat conftest.val`
4709 else
4710   echo "$as_me: program exited with status $ac_status" >&5
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 ( exit $ac_status )
4715 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4716 See \`config.log' for more details." >&5
4717 echo "$as_me: error: cannot compute sizeof (int), 77
4718 See \`config.log' for more details." >&2;}
4719    { (exit 1); exit 1; }; }
4720 fi
4721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4722 fi
4723 fi
4724 rm -f conftest.val
4725 else
4726   ac_cv_sizeof_int=0
4727 fi
4728 fi
4729 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
4730 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4731 cat >>confdefs.h <<_ACEOF
4732 #define SIZEOF_INT $ac_cv_sizeof_int
4733 _ACEOF
4734
4735
4736 echo "$as_me:$LINENO: checking for long" >&5
4737 echo $ECHO_N "checking for long... $ECHO_C" >&6
4738 if test "${ac_cv_type_long+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747 $ac_includes_default
4748 int
4749 main ()
4750 {
4751 if ((long *) 0)
4752   return 0;
4753 if (sizeof (long))
4754   return 0;
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4761   (eval $ac_compile) 2>conftest.er1
4762   ac_status=$?
4763   grep -v '^ *+' conftest.er1 >conftest.err
4764   rm -f conftest.er1
4765   cat conftest.err >&5
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); } &&
4768          { ac_try='test -z "$ac_c_werror_flag"
4769                          || test ! -s conftest.err'
4770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771   (eval $ac_try) 2>&5
4772   ac_status=$?
4773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774   (exit $ac_status); }; } &&
4775          { ac_try='test -s conftest.$ac_objext'
4776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777   (eval $ac_try) 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; }; then
4781   ac_cv_type_long=yes
4782 else
4783   echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 ac_cv_type_long=no
4787 fi
4788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4791 echo "${ECHO_T}$ac_cv_type_long" >&6
4792
4793 echo "$as_me:$LINENO: checking size of long" >&5
4794 echo $ECHO_N "checking size of long... $ECHO_C" >&6
4795 if test "${ac_cv_sizeof_long+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   if test "$ac_cv_type_long" = yes; then
4799   # The cast to unsigned long works around a bug in the HP C Compiler
4800   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4801   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4802   # This bug is HP SR number 8606223364.
4803   if test "$cross_compiling" = yes; then
4804   # Depending upon the size, compute the lo and hi bounds.
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 $ac_includes_default
4812 int
4813 main ()
4814 {
4815 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4816 test_array [0] = 0
4817
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824   (eval $ac_compile) 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } &&
4831          { ac_try='test -z "$ac_c_werror_flag"
4832                          || test ! -s conftest.err'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; } &&
4838          { ac_try='test -s conftest.$ac_objext'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   ac_lo=0 ac_mid=0
4845   while :; do
4846     cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h.  */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h.  */
4852 $ac_includes_default
4853 int
4854 main ()
4855 {
4856 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4857 test_array [0] = 0
4858
4859   ;
4860   return 0;
4861 }
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4865   (eval $ac_compile) 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } &&
4872          { ac_try='test -z "$ac_c_werror_flag"
4873                          || test ! -s conftest.err'
4874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875   (eval $ac_try) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; } &&
4879          { ac_try='test -s conftest.$ac_objext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_hi=$ac_mid; break
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 ac_lo=`expr $ac_mid + 1`
4891                     if test $ac_lo -le $ac_mid; then
4892                       ac_lo= ac_hi=
4893                       break
4894                     fi
4895                     ac_mid=`expr 2 '*' $ac_mid + 1`
4896 fi
4897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4898   done
4899 else
4900   echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 cat >conftest.$ac_ext <<_ACEOF
4904 /* confdefs.h.  */
4905 _ACEOF
4906 cat confdefs.h >>conftest.$ac_ext
4907 cat >>conftest.$ac_ext <<_ACEOF
4908 /* end confdefs.h.  */
4909 $ac_includes_default
4910 int
4911 main ()
4912 {
4913 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4914 test_array [0] = 0
4915
4916   ;
4917   return 0;
4918 }
4919 _ACEOF
4920 rm -f conftest.$ac_objext
4921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922   (eval $ac_compile) 2>conftest.er1
4923   ac_status=$?
4924   grep -v '^ *+' conftest.er1 >conftest.err
4925   rm -f conftest.er1
4926   cat conftest.err >&5
4927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928   (exit $ac_status); } &&
4929          { ac_try='test -z "$ac_c_werror_flag"
4930                          || test ! -s conftest.err'
4931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932   (eval $ac_try) 2>&5
4933   ac_status=$?
4934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935   (exit $ac_status); }; } &&
4936          { ac_try='test -s conftest.$ac_objext'
4937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938   (eval $ac_try) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); }; }; then
4942   ac_hi=-1 ac_mid=-1
4943   while :; do
4944     cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 $ac_includes_default
4951 int
4952 main ()
4953 {
4954 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4955 test_array [0] = 0
4956
4957   ;
4958   return 0;
4959 }
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963   (eval $ac_compile) 2>conftest.er1
4964   ac_status=$?
4965   grep -v '^ *+' conftest.er1 >conftest.err
4966   rm -f conftest.er1
4967   cat conftest.err >&5
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); } &&
4970          { ac_try='test -z "$ac_c_werror_flag"
4971                          || test ! -s conftest.err'
4972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973   (eval $ac_try) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; } &&
4977          { ac_try='test -s conftest.$ac_objext'
4978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); }; }; then
4983   ac_lo=$ac_mid; break
4984 else
4985   echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.$ac_ext >&5
4987
4988 ac_hi=`expr '(' $ac_mid ')' - 1`
4989                        if test $ac_mid -le $ac_hi; then
4990                          ac_lo= ac_hi=
4991                          break
4992                        fi
4993                        ac_mid=`expr 2 '*' $ac_mid`
4994 fi
4995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996   done
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5000
5001 ac_lo= ac_hi=
5002 fi
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 fi
5005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006 # Binary search between lo and hi bounds.
5007 while test "x$ac_lo" != "x$ac_hi"; do
5008   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5009   cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h.  */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h.  */
5015 $ac_includes_default
5016 int
5017 main ()
5018 {
5019 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5020 test_array [0] = 0
5021
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5028   (eval $ac_compile) 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -z "$ac_c_werror_flag"
5036                          || test ! -s conftest.err'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; } &&
5042          { ac_try='test -s conftest.$ac_objext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   ac_hi=$ac_mid
5049 else
5050   echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053 ac_lo=`expr '(' $ac_mid ')' + 1`
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 done
5057 case $ac_lo in
5058 ?*) ac_cv_sizeof_long=$ac_lo;;
5059 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5060 See \`config.log' for more details." >&5
5061 echo "$as_me: error: cannot compute sizeof (long), 77
5062 See \`config.log' for more details." >&2;}
5063    { (exit 1); exit 1; }; } ;;
5064 esac
5065 else
5066   if test "$cross_compiling" = yes; then
5067   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5068 See \`config.log' for more details." >&5
5069 echo "$as_me: error: cannot run test program while cross compiling
5070 See \`config.log' for more details." >&2;}
5071    { (exit 1); exit 1; }; }
5072 else
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 $ac_includes_default
5080 long longval () { return (long) (sizeof (long)); }
5081 unsigned long ulongval () { return (long) (sizeof (long)); }
5082 #include <stdio.h>
5083 #include <stdlib.h>
5084 int
5085 main ()
5086 {
5087
5088   FILE *f = fopen ("conftest.val", "w");
5089   if (! f)
5090     exit (1);
5091   if (((long) (sizeof (long))) < 0)
5092     {
5093       long i = longval ();
5094       if (i != ((long) (sizeof (long))))
5095         exit (1);
5096       fprintf (f, "%ld\n", i);
5097     }
5098   else
5099     {
5100       unsigned long i = ulongval ();
5101       if (i != ((long) (sizeof (long))))
5102         exit (1);
5103       fprintf (f, "%lu\n", i);
5104     }
5105   exit (ferror (f) || fclose (f) != 0);
5106
5107   ;
5108   return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest$ac_exeext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5113   (eval $ac_link) 2>&5
5114   ac_status=$?
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118   (eval $ac_try) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }; }; then
5122   ac_cv_sizeof_long=`cat conftest.val`
5123 else
5124   echo "$as_me: program exited with status $ac_status" >&5
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ( exit $ac_status )
5129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5130 See \`config.log' for more details." >&5
5131 echo "$as_me: error: cannot compute sizeof (long), 77
5132 See \`config.log' for more details." >&2;}
5133    { (exit 1); exit 1; }; }
5134 fi
5135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5136 fi
5137 fi
5138 rm -f conftest.val
5139 else
5140   ac_cv_sizeof_long=0
5141 fi
5142 fi
5143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5144 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5145 cat >>confdefs.h <<_ACEOF
5146 #define SIZEOF_LONG $ac_cv_sizeof_long
5147 _ACEOF
5148
5149
5150 echo "$as_me:$LINENO: checking for long long" >&5
5151 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5152 if test "${ac_cv_type_long_long+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   cat >conftest.$ac_ext <<_ACEOF
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 $ac_includes_default
5162 int
5163 main ()
5164 {
5165 if ((long long *) 0)
5166   return 0;
5167 if (sizeof (long long))
5168   return 0;
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175   (eval $ac_compile) 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -z "$ac_c_werror_flag"
5183                          || test ! -s conftest.err'
5184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185   (eval $ac_try) 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); }; } &&
5189          { ac_try='test -s conftest.$ac_objext'
5190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191   (eval $ac_try) 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); }; }; then
5195   ac_cv_type_long_long=yes
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_cv_type_long_long=no
5201 fi
5202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5203 fi
5204 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5205 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5206 if test $ac_cv_type_long_long = yes; then
5207
5208 cat >>confdefs.h <<_ACEOF
5209 #define HAVE_LONG_LONG 1
5210 _ACEOF
5211
5212 echo "$as_me:$LINENO: checking for long long" >&5
5213 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5214 if test "${ac_cv_type_long_long+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 $ac_includes_default
5224 int
5225 main ()
5226 {
5227 if ((long long *) 0)
5228   return 0;
5229 if (sizeof (long long))
5230   return 0;
5231   ;
5232   return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237   (eval $ac_compile) 2>conftest.er1
5238   ac_status=$?
5239   grep -v '^ *+' conftest.er1 >conftest.err
5240   rm -f conftest.er1
5241   cat conftest.err >&5
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); } &&
5244          { ac_try='test -z "$ac_c_werror_flag"
5245                          || test ! -s conftest.err'
5246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247   (eval $ac_try) 2>&5
5248   ac_status=$?
5249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250   (exit $ac_status); }; } &&
5251          { ac_try='test -s conftest.$ac_objext'
5252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253   (eval $ac_try) 2>&5
5254   ac_status=$?
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); }; }; then
5257   ac_cv_type_long_long=yes
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 ac_cv_type_long_long=no
5263 fi
5264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5267 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5268
5269 echo "$as_me:$LINENO: checking size of long long" >&5
5270 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5271 if test "${ac_cv_sizeof_long_long+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test "$ac_cv_type_long_long" = yes; then
5275   # The cast to unsigned long works around a bug in the HP C Compiler
5276   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278   # This bug is HP SR number 8606223364.
5279   if test "$cross_compiling" = yes; then
5280   # Depending upon the size, compute the lo and hi bounds.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 $ac_includes_default
5288 int
5289 main ()
5290 {
5291 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5292 test_array [0] = 0
5293
5294   ;
5295   return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300   (eval $ac_compile) 2>conftest.er1
5301   ac_status=$?
5302   grep -v '^ *+' conftest.er1 >conftest.err
5303   rm -f conftest.er1
5304   cat conftest.err >&5
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); } &&
5307          { ac_try='test -z "$ac_c_werror_flag"
5308                          || test ! -s conftest.err'
5309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310   (eval $ac_try) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }; } &&
5314          { ac_try='test -s conftest.$ac_objext'
5315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316   (eval $ac_try) 2>&5
5317   ac_status=$?
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); }; }; then
5320   ac_lo=0 ac_mid=0
5321   while :; do
5322     cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328 $ac_includes_default
5329 int
5330 main ()
5331 {
5332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5333 test_array [0] = 0
5334
5335   ;
5336   return 0;
5337 }
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341   (eval $ac_compile) 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } &&
5348          { ac_try='test -z "$ac_c_werror_flag"
5349                          || test ! -s conftest.err'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; } &&
5355          { ac_try='test -s conftest.$ac_objext'
5356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357   (eval $ac_try) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }; }; then
5361   ac_hi=$ac_mid; break
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 ac_lo=`expr $ac_mid + 1`
5367                     if test $ac_lo -le $ac_mid; then
5368                       ac_lo= ac_hi=
5369                       break
5370                     fi
5371                     ac_mid=`expr 2 '*' $ac_mid + 1`
5372 fi
5373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5374   done
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h.  */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h.  */
5385 $ac_includes_default
5386 int
5387 main ()
5388 {
5389 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
5390 test_array [0] = 0
5391
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5398   (eval $ac_compile) 2>conftest.er1
5399   ac_status=$?
5400   grep -v '^ *+' conftest.er1 >conftest.err
5401   rm -f conftest.er1
5402   cat conftest.err >&5
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); } &&
5405          { ac_try='test -z "$ac_c_werror_flag"
5406                          || test ! -s conftest.err'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; } &&
5412          { ac_try='test -s conftest.$ac_objext'
5413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414   (eval $ac_try) 2>&5
5415   ac_status=$?
5416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417   (exit $ac_status); }; }; then
5418   ac_hi=-1 ac_mid=-1
5419   while :; do
5420     cat >conftest.$ac_ext <<_ACEOF
5421 /* confdefs.h.  */
5422 _ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h.  */
5426 $ac_includes_default
5427 int
5428 main ()
5429 {
5430 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
5431 test_array [0] = 0
5432
5433   ;
5434   return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5439   (eval $ac_compile) 2>conftest.er1
5440   ac_status=$?
5441   grep -v '^ *+' conftest.er1 >conftest.err
5442   rm -f conftest.er1
5443   cat conftest.err >&5
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -z "$ac_c_werror_flag"
5447                          || test ! -s conftest.err'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; } &&
5453          { ac_try='test -s conftest.$ac_objext'
5454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455   (eval $ac_try) 2>&5
5456   ac_status=$?
5457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458   (exit $ac_status); }; }; then
5459   ac_lo=$ac_mid; break
5460 else
5461   echo "$as_me: failed program was:" >&5
5462 sed 's/^/| /' conftest.$ac_ext >&5
5463
5464 ac_hi=`expr '(' $ac_mid ')' - 1`
5465                        if test $ac_mid -le $ac_hi; then
5466                          ac_lo= ac_hi=
5467                          break
5468                        fi
5469                        ac_mid=`expr 2 '*' $ac_mid`
5470 fi
5471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5472   done
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_lo= ac_hi=
5478 fi
5479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482 # Binary search between lo and hi bounds.
5483 while test "x$ac_lo" != "x$ac_hi"; do
5484   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5485   cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491 $ac_includes_default
5492 int
5493 main ()
5494 {
5495 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5496 test_array [0] = 0
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504   (eval $ac_compile) 2>conftest.er1
5505   ac_status=$?
5506   grep -v '^ *+' conftest.er1 >conftest.err
5507   rm -f conftest.er1
5508   cat conftest.err >&5
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); } &&
5511          { ac_try='test -z "$ac_c_werror_flag"
5512                          || test ! -s conftest.err'
5513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514   (eval $ac_try) 2>&5
5515   ac_status=$?
5516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517   (exit $ac_status); }; } &&
5518          { ac_try='test -s conftest.$ac_objext'
5519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520   (eval $ac_try) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); }; }; then
5524   ac_hi=$ac_mid
5525 else
5526   echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ac_lo=`expr '(' $ac_mid ')' + 1`
5530 fi
5531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5532 done
5533 case $ac_lo in
5534 ?*) ac_cv_sizeof_long_long=$ac_lo;;
5535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5536 See \`config.log' for more details." >&5
5537 echo "$as_me: error: cannot compute sizeof (long long), 77
5538 See \`config.log' for more details." >&2;}
5539    { (exit 1); exit 1; }; } ;;
5540 esac
5541 else
5542   if test "$cross_compiling" = yes; then
5543   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5544 See \`config.log' for more details." >&5
5545 echo "$as_me: error: cannot run test program while cross compiling
5546 See \`config.log' for more details." >&2;}
5547    { (exit 1); exit 1; }; }
5548 else
5549   cat >conftest.$ac_ext <<_ACEOF
5550 /* confdefs.h.  */
5551 _ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h.  */
5555 $ac_includes_default
5556 long longval () { return (long) (sizeof (long long)); }
5557 unsigned long ulongval () { return (long) (sizeof (long long)); }
5558 #include <stdio.h>
5559 #include <stdlib.h>
5560 int
5561 main ()
5562 {
5563
5564   FILE *f = fopen ("conftest.val", "w");
5565   if (! f)
5566     exit (1);
5567   if (((long) (sizeof (long long))) < 0)
5568     {
5569       long i = longval ();
5570       if (i != ((long) (sizeof (long long))))
5571         exit (1);
5572       fprintf (f, "%ld\n", i);
5573     }
5574   else
5575     {
5576       unsigned long i = ulongval ();
5577       if (i != ((long) (sizeof (long long))))
5578         exit (1);
5579       fprintf (f, "%lu\n", i);
5580     }
5581   exit (ferror (f) || fclose (f) != 0);
5582
5583   ;
5584   return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589   (eval $ac_link) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   ac_cv_sizeof_long_long=`cat conftest.val`
5599 else
5600   echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ( exit $ac_status )
5605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: cannot compute sizeof (long long), 77
5608 See \`config.log' for more details." >&2;}
5609    { (exit 1); exit 1; }; }
5610 fi
5611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5612 fi
5613 fi
5614 rm -f conftest.val
5615 else
5616   ac_cv_sizeof_long_long=0
5617 fi
5618 fi
5619 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
5621 cat >>confdefs.h <<_ACEOF
5622 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5623 _ACEOF
5624
5625
5626 fi
5627
5628 echo "$as_me:$LINENO: checking for __int64" >&5
5629 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5630 if test "${ac_cv_type___int64+set}" = set; then
5631   echo $ECHO_N "(cached) $ECHO_C" >&6
5632 else
5633   cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h.  */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h.  */
5639 $ac_includes_default
5640 int
5641 main ()
5642 {
5643 if ((__int64 *) 0)
5644   return 0;
5645 if (sizeof (__int64))
5646   return 0;
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext
5652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5653   (eval $ac_compile) 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } &&
5660          { ac_try='test -z "$ac_c_werror_flag"
5661                          || test ! -s conftest.err'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; } &&
5667          { ac_try='test -s conftest.$ac_objext'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; }; then
5673   ac_cv_type___int64=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678 ac_cv_type___int64=no
5679 fi
5680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5683 echo "${ECHO_T}$ac_cv_type___int64" >&6
5684 if test $ac_cv_type___int64 = yes; then
5685
5686 cat >>confdefs.h <<_ACEOF
5687 #define HAVE___INT64 1
5688 _ACEOF
5689
5690 echo "$as_me:$LINENO: checking for __int64" >&5
5691 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
5692 if test "${ac_cv_type___int64+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 $ac_includes_default
5702 int
5703 main ()
5704 {
5705 if ((__int64 *) 0)
5706   return 0;
5707 if (sizeof (__int64))
5708   return 0;
5709   ;
5710   return 0;
5711 }
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715   (eval $ac_compile) 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } &&
5722          { ac_try='test -z "$ac_c_werror_flag"
5723                          || test ! -s conftest.err'
5724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725   (eval $ac_try) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); }; } &&
5729          { ac_try='test -s conftest.$ac_objext'
5730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5731   (eval $ac_try) 2>&5
5732   ac_status=$?
5733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734   (exit $ac_status); }; }; then
5735   ac_cv_type___int64=yes
5736 else
5737   echo "$as_me: failed program was:" >&5
5738 sed 's/^/| /' conftest.$ac_ext >&5
5739
5740 ac_cv_type___int64=no
5741 fi
5742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5743 fi
5744 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
5745 echo "${ECHO_T}$ac_cv_type___int64" >&6
5746
5747 echo "$as_me:$LINENO: checking size of __int64" >&5
5748 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
5749 if test "${ac_cv_sizeof___int64+set}" = set; then
5750   echo $ECHO_N "(cached) $ECHO_C" >&6
5751 else
5752   if test "$ac_cv_type___int64" = yes; then
5753   # The cast to unsigned long works around a bug in the HP C Compiler
5754   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5755   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5756   # This bug is HP SR number 8606223364.
5757   if test "$cross_compiling" = yes; then
5758   # Depending upon the size, compute the lo and hi bounds.
5759 cat >conftest.$ac_ext <<_ACEOF
5760 /* confdefs.h.  */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h.  */
5765 $ac_includes_default
5766 int
5767 main ()
5768 {
5769 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
5770 test_array [0] = 0
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778   (eval $ac_compile) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"
5786                          || test ! -s conftest.err'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; } &&
5792          { ac_try='test -s conftest.$ac_objext'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; }; then
5798   ac_lo=0 ac_mid=0
5799   while :; do
5800     cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 $ac_includes_default
5807 int
5808 main ()
5809 {
5810 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5811 test_array [0] = 0
5812
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5819   (eval $ac_compile) 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -z "$ac_c_werror_flag"
5827                          || test ! -s conftest.err'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; } &&
5833          { ac_try='test -s conftest.$ac_objext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   ac_hi=$ac_mid; break
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_lo=`expr $ac_mid + 1`
5845                     if test $ac_lo -le $ac_mid; then
5846                       ac_lo= ac_hi=
5847                       break
5848                     fi
5849                     ac_mid=`expr 2 '*' $ac_mid + 1`
5850 fi
5851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5852   done
5853 else
5854   echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5856
5857 cat >conftest.$ac_ext <<_ACEOF
5858 /* confdefs.h.  */
5859 _ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h.  */
5863 $ac_includes_default
5864 int
5865 main ()
5866 {
5867 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
5868 test_array [0] = 0
5869
5870   ;
5871   return 0;
5872 }
5873 _ACEOF
5874 rm -f conftest.$ac_objext
5875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5876   (eval $ac_compile) 2>conftest.er1
5877   ac_status=$?
5878   grep -v '^ *+' conftest.er1 >conftest.err
5879   rm -f conftest.er1
5880   cat conftest.err >&5
5881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882   (exit $ac_status); } &&
5883          { ac_try='test -z "$ac_c_werror_flag"
5884                          || test ! -s conftest.err'
5885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); }; } &&
5890          { ac_try='test -s conftest.$ac_objext'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; }; then
5896   ac_hi=-1 ac_mid=-1
5897   while :; do
5898     cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h.  */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h.  */
5904 $ac_includes_default
5905 int
5906 main ()
5907 {
5908 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
5909 test_array [0] = 0
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5917   (eval $ac_compile) 2>conftest.er1
5918   ac_status=$?
5919   grep -v '^ *+' conftest.er1 >conftest.err
5920   rm -f conftest.er1
5921   cat conftest.err >&5
5922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923   (exit $ac_status); } &&
5924          { ac_try='test -z "$ac_c_werror_flag"
5925                          || test ! -s conftest.err'
5926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927   (eval $ac_try) 2>&5
5928   ac_status=$?
5929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930   (exit $ac_status); }; } &&
5931          { ac_try='test -s conftest.$ac_objext'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; }; then
5937   ac_lo=$ac_mid; break
5938 else
5939   echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_hi=`expr '(' $ac_mid ')' - 1`
5943                        if test $ac_mid -le $ac_hi; then
5944                          ac_lo= ac_hi=
5945                          break
5946                        fi
5947                        ac_mid=`expr 2 '*' $ac_mid`
5948 fi
5949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5950   done
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_lo= ac_hi=
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5960 # Binary search between lo and hi bounds.
5961 while test "x$ac_lo" != "x$ac_hi"; do
5962   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5963   cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 $ac_includes_default
5970 int
5971 main ()
5972 {
5973 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
5974 test_array [0] = 0
5975
5976   ;
5977   return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982   (eval $ac_compile) 2>conftest.er1
5983   ac_status=$?
5984   grep -v '^ *+' conftest.er1 >conftest.err
5985   rm -f conftest.er1
5986   cat conftest.err >&5
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); } &&
5989          { ac_try='test -z "$ac_c_werror_flag"
5990                          || test ! -s conftest.err'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; } &&
5996          { ac_try='test -s conftest.$ac_objext'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; }; then
6002   ac_hi=$ac_mid
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_lo=`expr '(' $ac_mid ')' + 1`
6008 fi
6009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6010 done
6011 case $ac_lo in
6012 ?*) ac_cv_sizeof___int64=$ac_lo;;
6013 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6014 See \`config.log' for more details." >&5
6015 echo "$as_me: error: cannot compute sizeof (__int64), 77
6016 See \`config.log' for more details." >&2;}
6017    { (exit 1); exit 1; }; } ;;
6018 esac
6019 else
6020   if test "$cross_compiling" = yes; then
6021   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6022 See \`config.log' for more details." >&5
6023 echo "$as_me: error: cannot run test program while cross compiling
6024 See \`config.log' for more details." >&2;}
6025    { (exit 1); exit 1; }; }
6026 else
6027   cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033 $ac_includes_default
6034 long longval () { return (long) (sizeof (__int64)); }
6035 unsigned long ulongval () { return (long) (sizeof (__int64)); }
6036 #include <stdio.h>
6037 #include <stdlib.h>
6038 int
6039 main ()
6040 {
6041
6042   FILE *f = fopen ("conftest.val", "w");
6043   if (! f)
6044     exit (1);
6045   if (((long) (sizeof (__int64))) < 0)
6046     {
6047       long i = longval ();
6048       if (i != ((long) (sizeof (__int64))))
6049         exit (1);
6050       fprintf (f, "%ld\n", i);
6051     }
6052   else
6053     {
6054       unsigned long i = ulongval ();
6055       if (i != ((long) (sizeof (__int64))))
6056         exit (1);
6057       fprintf (f, "%lu\n", i);
6058     }
6059   exit (ferror (f) || fclose (f) != 0);
6060
6061   ;
6062   return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067   (eval $ac_link) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072   (eval $ac_try) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; }; then
6076   ac_cv_sizeof___int64=`cat conftest.val`
6077 else
6078   echo "$as_me: program exited with status $ac_status" >&5
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ( exit $ac_status )
6083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
6084 See \`config.log' for more details." >&5
6085 echo "$as_me: error: cannot compute sizeof (__int64), 77
6086 See \`config.log' for more details." >&2;}
6087    { (exit 1); exit 1; }; }
6088 fi
6089 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6090 fi
6091 fi
6092 rm -f conftest.val
6093 else
6094   ac_cv_sizeof___int64=0
6095 fi
6096 fi
6097 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
6098 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
6099 cat >>confdefs.h <<_ACEOF
6100 #define SIZEOF___INT64 $ac_cv_sizeof___int64
6101 _ACEOF
6102
6103
6104 fi
6105
6106
6107 # ---------------------
6108 # Warnings and checking
6109 # ---------------------
6110
6111 # Check $CC warning features (if it's GCC).
6112 # We want to use -pedantic, but we don't want warnings about
6113 # * 'long long'
6114 # * variadic macros
6115 # * overlong strings
6116 # So, we only use -pedantic if we can disable those warnings.
6117
6118 loose_warn=
6119 save_CFLAGS="$CFLAGS"
6120 for option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
6121                           -Wmissing-prototypes; do
6122   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6123
6124   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6125 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6126 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129   CFLAGS="$option"
6130     cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h.  */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h.  */
6136
6137 int
6138 main ()
6139 {
6140
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147   (eval $ac_compile) 2>conftest.er1
6148   ac_status=$?
6149   grep -v '^ *+' conftest.er1 >conftest.err
6150   rm -f conftest.er1
6151   cat conftest.err >&5
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); } &&
6154          { ac_try='test -z "$ac_c_werror_flag"
6155                          || test ! -s conftest.err'
6156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157   (eval $ac_try) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; } &&
6161          { ac_try='test -s conftest.$ac_objext'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   eval "$as_acx_Woption=yes"
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 eval "$as_acx_Woption=no"
6173 fi
6174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6175
6176 fi
6177 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6179   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6180   loose_warn="$loose_warn${loose_warn:+ }$option"
6181 fi
6182
6183   done
6184 CFLAGS="$save_CFLAGS"
6185
6186 cxx_compat_warn=
6187 save_CFLAGS="$CFLAGS"
6188 for option in -Wc++-compat; do
6189   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6190
6191   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6192 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6193 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   CFLAGS="$option"
6197     cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203
6204 int
6205 main ()
6206 {
6207
6208   ;
6209   return 0;
6210 }
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214   (eval $ac_compile) 2>conftest.er1
6215   ac_status=$?
6216   grep -v '^ *+' conftest.er1 >conftest.err
6217   rm -f conftest.er1
6218   cat conftest.err >&5
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } &&
6221          { ac_try='test -z "$ac_c_werror_flag"
6222                          || test ! -s conftest.err'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; } &&
6228          { ac_try='test -s conftest.$ac_objext'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; }; then
6234   eval "$as_acx_Woption=yes"
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 eval "$as_acx_Woption=no"
6240 fi
6241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6242
6243 fi
6244 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6245 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6246   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6247   cxx_compat_warn="$cxx_compat_warn${cxx_compat_warn:+ }$option"
6248 fi
6249
6250   done
6251 CFLAGS="$save_CFLAGS"
6252
6253 strict_warn=
6254 save_CFLAGS="$CFLAGS"
6255 for option in -Wold-style-definition \
6256                           -Wmissing-format-attribute; do
6257   as_acx_Woption=`echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6258
6259   echo "$as_me:$LINENO: checking whether $CC supports $option" >&5
6260 echo $ECHO_N "checking whether $CC supports $option... $ECHO_C" >&6
6261 if eval "test \"\${$as_acx_Woption+set}\" = set"; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   CFLAGS="$option"
6265     cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271
6272 int
6273 main ()
6274 {
6275
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext
6281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282   (eval $ac_compile) 2>conftest.er1
6283   ac_status=$?
6284   grep -v '^ *+' conftest.er1 >conftest.err
6285   rm -f conftest.er1
6286   cat conftest.err >&5
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -z "$ac_c_werror_flag"
6290                          || test ! -s conftest.err'
6291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292   (eval $ac_try) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; } &&
6296          { ac_try='test -s conftest.$ac_objext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   eval "$as_acx_Woption=yes"
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 eval "$as_acx_Woption=no"
6308 fi
6309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6310
6311 fi
6312 echo "$as_me:$LINENO: result: `eval echo '${'$as_acx_Woption'}'`" >&5
6313 echo "${ECHO_T}`eval echo '${'$as_acx_Woption'}'`" >&6
6314   if test `eval echo '${'$as_acx_Woption'}'` = yes; then
6315   strict_warn="$strict_warn${strict_warn:+ }$option"
6316 fi
6317
6318   done
6319 CFLAGS="$save_CFLAGS"
6320
6321 if test "$GCC" = yes; then
6322   echo "$as_me:$LINENO: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6323                                      -Wno-overlength-strings" >&5
6324 echo $ECHO_N "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros \
6325                                      -Wno-overlength-strings... $ECHO_C" >&6
6326 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings+set}" = set; then
6327   echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329   save_CFLAGS="$CFLAGS"
6330 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros \
6331                                      -Wno-overlength-strings"
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6349   (eval $ac_compile) 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } &&
6356          { ac_try='test -z "$ac_c_werror_flag"
6357                          || test ! -s conftest.err'
6358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359   (eval $ac_try) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }; } &&
6363          { ac_try='test -s conftest.$ac_objext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=yes
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings=no
6375 fi
6376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6377 CFLAGS="$save_CFLAGS"
6378 fi
6379 echo "$as_me:$LINENO: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&5
6380 echo "${ECHO_T}$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings" >&6
6381 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros_____________Wno_overlength_strings = yes; then
6382   strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros \
6383                                      -Wno-overlength-strings"
6384 fi
6385
6386
6387 fi
6388
6389
6390 # Check whether --enable-werror-always or --disable-werror-always was given.
6391 if test "${enable_werror_always+set}" = set; then
6392   enableval="$enable_werror_always"
6393
6394 else
6395   enable_werror_always=no
6396 fi;
6397 if test $enable_werror_always = yes; then
6398   strict_warn="$strict_warn${strict_warn:+ }-Werror"
6399 fi
6400
6401
6402
6403
6404 # The above macros do nothing if the compiler is not GCC.  However, the
6405 # Makefile has more goo to add other flags, so this variabl is used to
6406 # enables warnings only for GCC.
6407 warn_cflags=
6408 if test "x$GCC" = "xyes"; then
6409   warn_cflags='$(GCC_WARN_CFLAGS)'
6410 fi
6411
6412
6413 # Enable expensive internal checks
6414 is_release=
6415 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6416   is_release=yes
6417 fi
6418
6419 # Check whether --enable-checking or --disable-checking was given.
6420 if test "${enable_checking+set}" = set; then
6421   enableval="$enable_checking"
6422   ac_checking_flags="${enableval}"
6423 else
6424
6425 # Determine the default checks.
6426 if test x$is_release = x ; then
6427   ac_checking_flags=yes
6428 else
6429   ac_checking_flags=release
6430 fi
6431 fi;
6432 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6433 for check in release $ac_checking_flags
6434 do
6435         case $check in
6436         # these set all the flags to specific states
6437         yes)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6438                         ac_fold_checking= ; ac_gc_checking=1 ;
6439                         ac_gc_always_collect= ; ac_rtl_checking= ;
6440                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6441                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6442                         ac_types_checking= ;;
6443         no|none)        ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6444                         ac_fold_checking= ; ac_gc_checking= ;
6445                         ac_gc_always_collect= ; ac_rtl_checking= ;
6446                         ac_rtlflag_checking= ; ac_runtime_checking= ;
6447                         ac_tree_checking= ; ac_valgrind_checking= ;
6448                         ac_types_checking= ;;
6449         all)            ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6450                         ac_fold_checking=1 ; ac_gc_checking=1 ;
6451                         ac_gc_always_collect=1 ; ac_rtl_checking=1 ;
6452                         ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6453                         ac_tree_checking=1 ; ac_valgrind_checking= ;
6454                         ac_types_checking=1 ;;
6455         release)        ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6456                         ac_fold_checking= ; ac_gc_checking= ;
6457                         ac_gc_always_collect= ; ac_rtl_checking= ;
6458                         ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6459                         ac_tree_checking= ; ac_valgrind_checking= ;
6460                         ac_types_checking= ;;
6461         # these enable particular checks
6462         assert)         ac_assert_checking=1 ;;
6463         df)             ac_df_checking=1 ;;
6464         fold)           ac_fold_checking=1 ;;
6465         gc)             ac_gc_checking=1 ;;
6466         gcac)           ac_gc_always_collect=1 ;;
6467         misc)           ac_checking=1 ;;
6468         rtl)            ac_rtl_checking=1 ;;
6469         rtlflag)        ac_rtlflag_checking=1 ;;
6470         runtime)        ac_runtime_checking=1 ;;
6471         tree)           ac_tree_checking=1 ;;
6472         types)          ac_types_checking=1 ;;
6473         valgrind)       ac_valgrind_checking=1 ;;
6474         *)      { { echo "$as_me:$LINENO: error: unknown check category $check" >&5
6475 echo "$as_me: error: unknown check category $check" >&2;}
6476    { (exit 1); exit 1; }; } ;;
6477         esac
6478 done
6479 IFS="$ac_save_IFS"
6480
6481 nocommon_flag=""
6482 if test x$ac_checking != x ; then
6483
6484 cat >>confdefs.h <<\_ACEOF
6485 #define ENABLE_CHECKING 1
6486 _ACEOF
6487
6488   nocommon_flag=-fno-common
6489 fi
6490
6491 if test x$ac_df_checking != x ; then
6492
6493 cat >>confdefs.h <<\_ACEOF
6494 #define ENABLE_DF_CHECKING 1
6495 _ACEOF
6496
6497 fi
6498 if test x$ac_assert_checking != x ; then
6499
6500 cat >>confdefs.h <<\_ACEOF
6501 #define ENABLE_ASSERT_CHECKING 1
6502 _ACEOF
6503
6504 fi
6505
6506 if test x$ac_runtime_checking != x ; then
6507
6508 cat >>confdefs.h <<\_ACEOF
6509 #define ENABLE_RUNTIME_CHECKING 1
6510 _ACEOF
6511
6512 fi
6513 if test x$ac_tree_checking != x ; then
6514
6515 cat >>confdefs.h <<\_ACEOF
6516 #define ENABLE_TREE_CHECKING 1
6517 _ACEOF
6518
6519   TREEBROWSER=tree-browser.o
6520 fi
6521 if test x$ac_types_checking != x ; then
6522
6523 cat >>confdefs.h <<\_ACEOF
6524 #define ENABLE_TYPES_CHECKING 1
6525 _ACEOF
6526
6527 fi
6528
6529 if test x$ac_rtl_checking != x ; then
6530
6531 cat >>confdefs.h <<\_ACEOF
6532 #define ENABLE_RTL_CHECKING 1
6533 _ACEOF
6534
6535 fi
6536 if test x$ac_rtlflag_checking != x ; then
6537
6538 cat >>confdefs.h <<\_ACEOF
6539 #define ENABLE_RTL_FLAG_CHECKING 1
6540 _ACEOF
6541
6542 fi
6543 if test x$ac_gc_checking != x ; then
6544
6545 cat >>confdefs.h <<\_ACEOF
6546 #define ENABLE_GC_CHECKING 1
6547 _ACEOF
6548
6549 fi
6550 if test x$ac_gc_always_collect != x ; then
6551
6552 cat >>confdefs.h <<\_ACEOF
6553 #define ENABLE_GC_ALWAYS_COLLECT 1
6554 _ACEOF
6555
6556 fi
6557 if test x$ac_fold_checking != x ; then
6558
6559 cat >>confdefs.h <<\_ACEOF
6560 #define ENABLE_FOLD_CHECKING 1
6561 _ACEOF
6562
6563 fi
6564 valgrind_path_defines=
6565 valgrind_command=
6566
6567 if test "${ac_cv_header_valgrind_h+set}" = set; then
6568   echo "$as_me:$LINENO: checking for valgrind.h" >&5
6569 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6570 if test "${ac_cv_header_valgrind_h+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 fi
6573 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6574 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6575 else
6576   # Is the header compilable?
6577 echo "$as_me:$LINENO: checking valgrind.h usability" >&5
6578 echo $ECHO_N "checking valgrind.h usability... $ECHO_C" >&6
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585 $ac_includes_default
6586 #include <valgrind.h>
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6590   (eval $ac_compile) 2>conftest.er1
6591   ac_status=$?
6592   grep -v '^ *+' conftest.er1 >conftest.err
6593   rm -f conftest.er1
6594   cat conftest.err >&5
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); } &&
6597          { ac_try='test -z "$ac_c_werror_flag"
6598                          || test ! -s conftest.err'
6599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600   (eval $ac_try) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; } &&
6604          { ac_try='test -s conftest.$ac_objext'
6605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606   (eval $ac_try) 2>&5
6607   ac_status=$?
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); }; }; then
6610   ac_header_compiler=yes
6611 else
6612   echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6614
6615 ac_header_compiler=no
6616 fi
6617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6618 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6619 echo "${ECHO_T}$ac_header_compiler" >&6
6620
6621 # Is the header present?
6622 echo "$as_me:$LINENO: checking valgrind.h presence" >&5
6623 echo $ECHO_N "checking valgrind.h presence... $ECHO_C" >&6
6624 cat >conftest.$ac_ext <<_ACEOF
6625 /* confdefs.h.  */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h.  */
6630 #include <valgrind.h>
6631 _ACEOF
6632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634   ac_status=$?
6635   grep -v '^ *+' conftest.er1 >conftest.err
6636   rm -f conftest.er1
6637   cat conftest.err >&5
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); } >/dev/null; then
6640   if test -s conftest.err; then
6641     ac_cpp_err=$ac_c_preproc_warn_flag
6642     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6643   else
6644     ac_cpp_err=
6645   fi
6646 else
6647   ac_cpp_err=yes
6648 fi
6649 if test -z "$ac_cpp_err"; then
6650   ac_header_preproc=yes
6651 else
6652   echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655   ac_header_preproc=no
6656 fi
6657 rm -f conftest.err conftest.$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6659 echo "${ECHO_T}$ac_header_preproc" >&6
6660
6661 # So?  What about this header?
6662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6663   yes:no: )
6664     { echo "$as_me:$LINENO: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&5
6665 echo "$as_me: WARNING: valgrind.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the compiler's result" >&5
6667 echo "$as_me: WARNING: valgrind.h: proceeding with the compiler's result" >&2;}
6668     ac_header_preproc=yes
6669     ;;
6670   no:yes:* )
6671     { echo "$as_me:$LINENO: WARNING: valgrind.h: present but cannot be compiled" >&5
6672 echo "$as_me: WARNING: valgrind.h: present but cannot be compiled" >&2;}
6673     { echo "$as_me:$LINENO: WARNING: valgrind.h:     check for missing prerequisite headers?" >&5
6674 echo "$as_me: WARNING: valgrind.h:     check for missing prerequisite headers?" >&2;}
6675     { echo "$as_me:$LINENO: WARNING: valgrind.h: see the Autoconf documentation" >&5
6676 echo "$as_me: WARNING: valgrind.h: see the Autoconf documentation" >&2;}
6677     { echo "$as_me:$LINENO: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&5
6678 echo "$as_me: WARNING: valgrind.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6679     { echo "$as_me:$LINENO: WARNING: valgrind.h: proceeding with the preprocessor's result" >&5
6680 echo "$as_me: WARNING: valgrind.h: proceeding with the preprocessor's result" >&2;}
6681     { echo "$as_me:$LINENO: WARNING: valgrind.h: in the future, the compiler will take precedence" >&5
6682 echo "$as_me: WARNING: valgrind.h: in the future, the compiler will take precedence" >&2;}
6683     (
6684       cat <<\_ASBOX
6685 ## ------------------------------------------ ##
6686 ## Report this to the AC_PACKAGE_NAME lists.  ##
6687 ## ------------------------------------------ ##
6688 _ASBOX
6689     ) |
6690       sed "s/^/$as_me: WARNING:     /" >&2
6691     ;;
6692 esac
6693 echo "$as_me:$LINENO: checking for valgrind.h" >&5
6694 echo $ECHO_N "checking for valgrind.h... $ECHO_C" >&6
6695 if test "${ac_cv_header_valgrind_h+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   ac_cv_header_valgrind_h=$ac_header_preproc
6699 fi
6700 echo "$as_me:$LINENO: result: $ac_cv_header_valgrind_h" >&5
6701 echo "${ECHO_T}$ac_cv_header_valgrind_h" >&6
6702
6703 fi
6704 if test $ac_cv_header_valgrind_h = yes; then
6705   have_valgrind_h=yes
6706 else
6707   have_valgrind_h=no
6708 fi
6709
6710
6711
6712 if test x$ac_valgrind_checking != x ; then
6713   # It is certainly possible that there's valgrind but no valgrind.h.
6714   # GCC relies on making annotations so we must have both.
6715   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6716 echo $ECHO_N "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... $ECHO_C" >&6
6717   cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h.  */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h.  */
6723 #include <valgrind/memcheck.h>
6724 #ifndef VALGRIND_DISCARD
6725 #error VALGRIND_DISCARD not defined
6726 #endif
6727 _ACEOF
6728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730   ac_status=$?
6731   grep -v '^ *+' conftest.er1 >conftest.err
6732   rm -f conftest.er1
6733   cat conftest.err >&5
6734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735   (exit $ac_status); } >/dev/null; then
6736   if test -s conftest.err; then
6737     ac_cpp_err=$ac_c_preproc_warn_flag
6738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6739   else
6740     ac_cpp_err=
6741   fi
6742 else
6743   ac_cpp_err=yes
6744 fi
6745 if test -z "$ac_cpp_err"; then
6746   gcc_cv_header_valgrind_memcheck_h=yes
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751   gcc_cv_header_valgrind_memcheck_h=no
6752 fi
6753 rm -f conftest.err conftest.$ac_ext
6754   echo "$as_me:$LINENO: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6755 echo "${ECHO_T}$gcc_cv_header_valgrind_memcheck_h" >&6
6756   echo "$as_me:$LINENO: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6757 echo $ECHO_N "checking for VALGRIND_DISCARD in <memcheck.h>... $ECHO_C" >&6
6758   cat >conftest.$ac_ext <<_ACEOF
6759 /* confdefs.h.  */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h.  */
6764 #include <memcheck.h>
6765 #ifndef VALGRIND_DISCARD
6766 #error VALGRIND_DISCARD not defined
6767 #endif
6768 _ACEOF
6769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } >/dev/null; then
6777   if test -s conftest.err; then
6778     ac_cpp_err=$ac_c_preproc_warn_flag
6779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6780   else
6781     ac_cpp_err=
6782   fi
6783 else
6784   ac_cpp_err=yes
6785 fi
6786 if test -z "$ac_cpp_err"; then
6787   gcc_cv_header_memcheck_h=yes
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792   gcc_cv_header_memcheck_h=no
6793 fi
6794 rm -f conftest.err conftest.$ac_ext
6795   echo "$as_me:$LINENO: result: $gcc_cv_header_memcheck_h" >&5
6796 echo "${ECHO_T}$gcc_cv_header_memcheck_h" >&6
6797
6798 # Prepare PATH_SEPARATOR.
6799 # The user is always right.
6800 if test "${PATH_SEPARATOR+set}" != set; then
6801   echo "#! /bin/sh" >conf$$.sh
6802   echo  "exit 0"   >>conf$$.sh
6803   chmod +x conf$$.sh
6804   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6805     PATH_SEPARATOR=';'
6806   else
6807     PATH_SEPARATOR=:
6808   fi
6809   rm -f conf$$.sh
6810 fi
6811
6812 # Find out how to test for executable files. Don't use a zero-byte file,
6813 # as systems may use methods other than mode bits to determine executability.
6814 cat >conf$$.file <<_ASEOF
6815 #! /bin/sh
6816 exit 0
6817 _ASEOF
6818 chmod +x conf$$.file
6819 if test -x conf$$.file >/dev/null 2>&1; then
6820   ac_executable_p="test -x"
6821 else
6822   ac_executable_p="test -f"
6823 fi
6824 rm -f conf$$.file
6825
6826 # Extract the first word of "valgrind", so it can be a program name with args.
6827 set dummy valgrind; ac_word=$2
6828 echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6830 if test "${ac_cv_path_valgrind_path+set}" = set; then
6831   echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833   case "$valgrind_path" in
6834   [\\/]* | ?:[\\/]*)
6835     ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6836     ;;
6837   *)
6838     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6839     for ac_dir in $PATH; do
6840       IFS="$ac_save_IFS"
6841       test -z "$ac_dir" && ac_dir=.
6842       for ac_exec_ext in '' $ac_executable_extensions; do
6843         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6844           if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6845             ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6846             break 2
6847           fi
6848         fi
6849       done
6850     done
6851     IFS="$ac_save_IFS"
6852     ;;
6853 esac
6854 fi
6855 valgrind_path="$ac_cv_path_valgrind_path"
6856 if test -n "$valgrind_path"; then
6857   echo "$as_me:$LINENO: result: $valgrind_path" >&5
6858 echo "${ECHO_T}$valgrind_path" >&6
6859 else
6860   echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6
6862 fi
6863
6864   if test "x$valgrind_path" = "x" \
6865     || (test $have_valgrind_h = no \
6866         && test $gcc_cv_header_memcheck_h = no \
6867         && test $gcc_cv_header_valgrind_memcheck_h = no); then
6868         { { echo "$as_me:$LINENO: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&5
6869 echo "$as_me: error: *** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" >&2;}
6870    { (exit 1); exit 1; }; }
6871   fi
6872   valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6873   valgrind_command="$valgrind_path -q"
6874
6875 cat >>confdefs.h <<\_ACEOF
6876 #define ENABLE_VALGRIND_CHECKING 1
6877 _ACEOF
6878
6879   if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6880
6881 cat >>confdefs.h <<\_ACEOF
6882 #define HAVE_VALGRIND_MEMCHECK_H 1
6883 _ACEOF
6884
6885   fi
6886   if test $gcc_cv_header_memcheck_h = yes; then
6887
6888 cat >>confdefs.h <<\_ACEOF
6889 #define HAVE_MEMCHECK_H 1
6890 _ACEOF
6891
6892   fi
6893 fi
6894
6895
6896
6897 # Enable code coverage collection
6898 # Check whether --enable-coverage or --disable-coverage was given.
6899 if test "${enable_coverage+set}" = set; then
6900   enableval="$enable_coverage"
6901   case "${enableval}" in
6902   yes|noopt)
6903     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6904     ;;
6905   opt)
6906     coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6907     ;;
6908   no)
6909     # a.k.a. --disable-coverage
6910     coverage_flags=""
6911     ;;
6912   *)
6913     { { echo "$as_me:$LINENO: error: unknown coverage setting $enableval" >&5
6914 echo "$as_me: error: unknown coverage setting $enableval" >&2;}
6915    { (exit 1); exit 1; }; }
6916     ;;
6917 esac
6918 else
6919   coverage_flags=""
6920 fi;
6921
6922
6923 # Check whether --enable-gather-detailed-mem-stats or --disable-gather-detailed-mem-stats was given.
6924 if test "${enable_gather_detailed_mem_stats+set}" = set; then
6925   enableval="$enable_gather_detailed_mem_stats"
6926
6927 else
6928   enable_gather_detailed_mem_stats=no
6929 fi;
6930 if test x$enable_gather_detailed_mem_stats = xyes ; then
6931
6932 cat >>confdefs.h <<\_ACEOF
6933 #define GATHER_STATISTICS 1
6934 _ACEOF
6935
6936 fi
6937
6938 # -------------------------------
6939 # Miscenalleous configure options
6940 # -------------------------------
6941
6942 # With stabs
6943
6944 # Check whether --with-stabs or --without-stabs was given.
6945 if test "${with_stabs+set}" = set; then
6946   withval="$with_stabs"
6947   stabs="$with_stabs"
6948 else
6949   stabs=no
6950 fi;
6951
6952 # Determine whether or not multilibs are enabled.
6953 # Check whether --enable-multilib or --disable-multilib was given.
6954 if test "${enable_multilib+set}" = set; then
6955   enableval="$enable_multilib"
6956
6957 else
6958   enable_multilib=yes
6959 fi;
6960
6961
6962 # Enable __cxa_atexit for C++.
6963 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given.
6964 if test "${enable___cxa_atexit+set}" = set; then
6965   enableval="$enable___cxa_atexit"
6966
6967 fi;
6968
6969 # Enable C extension for decimal float if target supports it.
6970 # Check whether --enable-decimal-float or --disable-decimal-float was given.
6971 if test "${enable_decimal_float+set}" = set; then
6972   enableval="$enable_decimal_float"
6973
6974   case $enable_decimal_float in
6975     yes | no | bid | dpd) ;;
6976     *) { { echo "$as_me:$LINENO: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6977 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&5
6978 echo "$as_me: error: '$enable_decimal_float' is an invalid value for --enable-decimal-float.
6979 Valid choices are 'yes', 'bid', 'dpd', and 'no'." >&2;}
6980    { (exit 1); exit 1; }; } ;;
6981   esac
6982
6983 else
6984
6985   case $target in
6986     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6987       enable_decimal_float=yes
6988       ;;
6989     *)
6990       { echo "$as_me:$LINENO: WARNING: decimal float is not supported for this target" >&5
6991 echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6992       enable_decimal_float=no
6993       ;;
6994   esac
6995
6996 fi;
6997
6998 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6999
7000 cat >>confdefs.h <<_ACEOF
7001 #define ENABLE_DECIMAL_FLOAT $dfp
7002 _ACEOF
7003
7004
7005 # x86's use BID format instead of DPD
7006 case x$enable_decimal_float in
7007   xyes)
7008     case $target in
7009       i?86*-*-linux* | x86_64*-*-linux*)
7010         enable_decimal_float=bid
7011         ;;
7012       *)
7013         enable_decimal_float=dpd
7014         ;;
7015     esac
7016     ;;
7017   xno)
7018     # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7019     # dependency on libdecnumber.
7020     enable_decimal_float=dpd
7021     ;;
7022 esac
7023
7024
7025 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7026
7027 cat >>confdefs.h <<_ACEOF
7028 #define ENABLE_DECIMAL_BID_FORMAT $bid
7029 _ACEOF
7030
7031
7032 # Enable C extension for fixed-point arithmetic.
7033 # Check whether --enable-fixed-point or --disable-fixed-point was given.
7034 if test "${enable_fixed_point+set}" = set; then
7035   enableval="$enable_fixed_point"
7036
7037
7038 else
7039
7040   case $target in
7041     mips*-*-*)
7042       case $host in
7043         mips*-sgi-irix*)
7044           { echo "$as_me:$LINENO: WARNING: fixed-point is not supported on IRIX" >&5
7045 echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
7046           enable_fixed_point=no
7047           ;;
7048         *)
7049           enable_fixed_point=yes
7050           ;;
7051       esac
7052       ;;
7053     *)
7054       { echo "$as_me:$LINENO: WARNING: fixed-point is not supported for this target" >&5
7055 echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
7056       enable_fixed_point=no
7057       ;;
7058   esac
7059
7060 fi;
7061
7062
7063 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7064
7065 cat >>confdefs.h <<_ACEOF
7066 #define ENABLE_FIXED_POINT $fixedpoint
7067 _ACEOF
7068
7069
7070 # Enable threads
7071 # Pass with no value to take the default
7072 # Pass with a value to specify a thread package
7073 # Check whether --enable-threads or --disable-threads was given.
7074 if test "${enable_threads+set}" = set; then
7075   enableval="$enable_threads"
7076
7077 else
7078   enable_threads=''
7079 fi;
7080
7081 # Check whether --enable-tls or --disable-tls was given.
7082 if test "${enable_tls+set}" = set; then
7083   enableval="$enable_tls"
7084
7085   case $enable_tls in
7086     yes | no) ;;
7087     *) { { echo "$as_me:$LINENO: error: '$enable_tls' is an invalid value for --enable-tls.
7088 Valid choices are 'yes' and 'no'." >&5
7089 echo "$as_me: error: '$enable_tls' is an invalid value for --enable-tls.
7090 Valid choices are 'yes' and 'no'." >&2;}
7091    { (exit 1); exit 1; }; } ;;
7092   esac
7093
7094 else
7095   enable_tls=''
7096 fi;
7097
7098 # Check whether --enable-objc-gc or --disable-objc-gc was given.
7099 if test "${enable_objc_gc+set}" = set; then
7100   enableval="$enable_objc_gc"
7101   if test x$enable_objc_gc = xno; then
7102         objc_boehm_gc=''
7103 else
7104         objc_boehm_gc=1
7105 fi
7106 else
7107   objc_boehm_gc=''
7108 fi;
7109
7110
7111 # Check whether --with-dwarf2 or --without-dwarf2 was given.
7112 if test "${with_dwarf2+set}" = set; then
7113   withval="$with_dwarf2"
7114   dwarf2="$with_dwarf2"
7115 else
7116   dwarf2=no
7117 fi;
7118
7119 # Check whether --enable-shared or --disable-shared was given.
7120 if test "${enable_shared+set}" = set; then
7121   enableval="$enable_shared"
7122
7123   case $enable_shared in
7124   yes | no) ;;
7125   *)
7126     enable_shared=no
7127     IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7128     for pkg in $enableval; do
7129       if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7130         enable_shared=yes
7131       fi
7132     done
7133     IFS="$ac_save_ifs"
7134     ;;
7135   esac
7136
7137 else
7138   enable_shared=yes
7139 fi;
7140
7141
7142
7143 # Check whether --with-build-sysroot or --without-build-sysroot was given.
7144 if test "${with_build_sysroot+set}" = set; then
7145   withval="$with_build_sysroot"
7146
7147 fi;
7148
7149
7150 # Check whether --with-sysroot or --without-sysroot was given.
7151 if test "${with_sysroot+set}" = set; then
7152   withval="$with_sysroot"
7153
7154  case ${with_sysroot} in
7155  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7156  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7157  esac
7158
7159  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7160  CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7161
7162  if test "x$prefix" = xNONE; then
7163   test_prefix=/usr/local
7164  else
7165   test_prefix=$prefix
7166  fi
7167  if test "x$exec_prefix" = xNONE; then
7168   test_exec_prefix=$test_prefix
7169  else
7170   test_exec_prefix=$exec_prefix
7171  fi
7172  case ${TARGET_SYSTEM_ROOT} in
7173  "${test_prefix}"|"${test_prefix}/"*|\
7174  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7175  '${prefix}'|'${prefix}/'*|\
7176  '${exec_prefix}'|'${exec_prefix}/'*)
7177    t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7178    TARGET_SYSTEM_ROOT_DEFINE="$t"
7179    ;;
7180  esac
7181
7182 else
7183
7184  TARGET_SYSTEM_ROOT=
7185  TARGET_SYSTEM_ROOT_DEFINE=
7186  CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7187
7188 fi;
7189
7190
7191
7192
7193 # Build with intermodule optimisations
7194 # Check whether --enable-intermodule or --disable-intermodule was given.
7195 if test "${enable_intermodule+set}" = set; then
7196   enableval="$enable_intermodule"
7197   case ${enable_intermodule} in
7198   yes) onestep="-onestep";;
7199   *) onestep="";;
7200 esac
7201 else
7202   onestep=""
7203 fi;
7204
7205
7206
7207
7208 # Check whether --with-pkgversion or --without-pkgversion was given.
7209 if test "${with_pkgversion+set}" = set; then
7210   withval="$with_pkgversion"
7211   case "$withval" in
7212       yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
7213 echo "$as_me: error: package version not specified" >&2;}
7214    { (exit 1); exit 1; }; } ;;
7215       no)  PKGVERSION= ;;
7216       *)   PKGVERSION="($withval) " ;;
7217      esac
7218 else
7219   PKGVERSION="(GCC) "
7220
7221 fi;
7222
7223
7224
7225
7226 # Check whether --with-bugurl or --without-bugurl was given.
7227 if test "${with_bugurl+set}" = set; then
7228   withval="$with_bugurl"
7229   case "$withval" in
7230       yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
7231 echo "$as_me: error: bug URL not specified" >&2;}
7232    { (exit 1); exit 1; }; } ;;
7233       no)  BUGURL=
7234            ;;
7235       *)   BUGURL="$withval"
7236            ;;
7237      esac
7238 else
7239   BUGURL="http://gcc.gnu.org/bugs.html"
7240
7241 fi;
7242   case ${BUGURL} in
7243   "")
7244     REPORT_BUGS_TO=
7245     REPORT_BUGS_TEXI=
7246     ;;
7247   *)
7248     REPORT_BUGS_TO="<$BUGURL>"
7249     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7250     ;;
7251   esac;
7252
7253
7254
7255
7256 # Sanity check enable_languages in case someone does not run the toplevel
7257 # configure # script.
7258 # Check whether --enable-languages or --disable-languages was given.
7259 if test "${enable_languages+set}" = set; then
7260   enableval="$enable_languages"
7261   case ,${enable_languages}, in
7262        ,,|,yes,)
7263                 # go safe -- we cannot be much sure without the toplevel
7264                 # configure's
7265                 # analysis of which target libs are present and usable
7266                 enable_languages=c
7267                 ;;
7268          *,all,*)
7269                 { { echo "$as_me:$LINENO: error: only the toplevel supports --enable-languages=all" >&5
7270 echo "$as_me: error: only the toplevel supports --enable-languages=all" >&2;}
7271    { (exit 1); exit 1; }; }
7272                 ;;
7273         *,c,*)
7274                 ;;
7275         *)
7276                 enable_languages=c,${enable_languages}
7277                 ;;
7278 esac
7279 else
7280   enable_languages=c
7281 fi;
7282
7283 # Used by documentation targets
7284
7285
7286
7287
7288 # -------------------------
7289 # Checks for other programs
7290 # -------------------------
7291
7292 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7293 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7294 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7295 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7296   echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298   cat >conftest.make <<\_ACEOF
7299 all:
7300         @echo 'ac_maketemp="$(MAKE)"'
7301 _ACEOF
7302 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7303 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7304 if test -n "$ac_maketemp"; then
7305   eval ac_cv_prog_make_${ac_make}_set=yes
7306 else
7307   eval ac_cv_prog_make_${ac_make}_set=no
7308 fi
7309 rm -f conftest.make
7310 fi
7311 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7312   echo "$as_me:$LINENO: result: yes" >&5
7313 echo "${ECHO_T}yes" >&6
7314   SET_MAKE=
7315 else
7316   echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7318   SET_MAKE="MAKE=${MAKE-make}"
7319 fi
7320
7321
7322 # Find some useful tools
7323 for ac_prog in gawk mawk nawk awk
7324 do
7325   # Extract the first word of "$ac_prog", so it can be a program name with args.
7326 set dummy $ac_prog; ac_word=$2
7327 echo "$as_me:$LINENO: checking for $ac_word" >&5
7328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7329 if test "${ac_cv_prog_AWK+set}" = set; then
7330   echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332   if test -n "$AWK"; then
7333   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340   for ac_exec_ext in '' $ac_executable_extensions; do
7341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342     ac_cv_prog_AWK="$ac_prog"
7343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347 done
7348
7349 fi
7350 fi
7351 AWK=$ac_cv_prog_AWK
7352 if test -n "$AWK"; then
7353   echo "$as_me:$LINENO: result: $AWK" >&5
7354 echo "${ECHO_T}$AWK" >&6
7355 else
7356   echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6
7358 fi
7359
7360   test -n "$AWK" && break
7361 done
7362
7363 # We need awk to create options.c and options.h.
7364 # Bail out if it's missing.
7365 case ${AWK} in
7366   "") { { echo "$as_me:$LINENO: error: can't build without awk, bailing out" >&5
7367 echo "$as_me: error: can't build without awk, bailing out" >&2;}
7368    { (exit 1); exit 1; }; } ;;
7369 esac
7370
7371 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7372 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7373 if test "${gcc_cv_prog_LN_S+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376   rm -f conftestdata_t
7377 echo >conftestdata_f
7378 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7379 then
7380   gcc_cv_prog_LN_S="ln -s"
7381 else
7382   if ln conftestdata_f conftestdata_t 2>/dev/null
7383   then
7384     gcc_cv_prog_LN_S=ln
7385   else
7386     if cp -p conftestdata_f conftestdata_t 2>/dev/null
7387     then
7388       gcc_cv_prog_LN_S="cp -p"
7389     else
7390       gcc_cv_prog_LN_S=cp
7391     fi
7392   fi
7393 fi
7394 rm -f conftestdata_f conftestdata_t
7395
7396 fi
7397 LN_S="$gcc_cv_prog_LN_S"
7398 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7399   echo "$as_me:$LINENO: result: yes" >&5
7400 echo "${ECHO_T}yes" >&6
7401 else
7402   if test "$gcc_cv_prog_LN_S" = "ln"; then
7403     echo "$as_me:$LINENO: result: no, using ln" >&5
7404 echo "${ECHO_T}no, using ln" >&6
7405   else
7406     echo "$as_me:$LINENO: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7407 echo "${ECHO_T}no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6
7408   fi
7409 fi
7410
7411 echo "$as_me:$LINENO: checking whether ln works" >&5
7412 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
7413 if test "${acx_cv_prog_LN+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   rm -f conftestdata_t
7417 echo >conftestdata_f
7418 if ln conftestdata_f conftestdata_t 2>/dev/null
7419 then
7420   acx_cv_prog_LN=ln
7421 else
7422   acx_cv_prog_LN=no
7423 fi
7424 rm -f conftestdata_f conftestdata_t
7425
7426 fi
7427 if test $acx_cv_prog_LN = no; then
7428   LN="$LN_S"
7429   echo "$as_me:$LINENO: result: no, using $LN" >&5
7430 echo "${ECHO_T}no, using $LN" >&6
7431 else
7432   LN="$acx_cv_prog_LN"
7433   echo "$as_me:$LINENO: result: yes" >&5
7434 echo "${ECHO_T}yes" >&6
7435 fi
7436
7437 if test -n "$ac_tool_prefix"; then
7438   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7440 echo "$as_me:$LINENO: checking for $ac_word" >&5
7441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7442 if test "${ac_cv_prog_RANLIB+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   if test -n "$RANLIB"; then
7446   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453   for ac_exec_ext in '' $ac_executable_extensions; do
7454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460 done
7461
7462 fi
7463 fi
7464 RANLIB=$ac_cv_prog_RANLIB
7465 if test -n "$RANLIB"; then
7466   echo "$as_me:$LINENO: result: $RANLIB" >&5
7467 echo "${ECHO_T}$RANLIB" >&6
7468 else
7469   echo "$as_me:$LINENO: result: no" >&5
7470 echo "${ECHO_T}no" >&6
7471 fi
7472
7473 fi
7474 if test -z "$ac_cv_prog_RANLIB"; then
7475   ac_ct_RANLIB=$RANLIB
7476   # Extract the first word of "ranlib", so it can be a program name with args.
7477 set dummy ranlib; ac_word=$2
7478 echo "$as_me:$LINENO: checking for $ac_word" >&5
7479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   if test -n "$ac_ct_RANLIB"; then
7484   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491   for ac_exec_ext in '' $ac_executable_extensions; do
7492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_ac_ct_RANLIB="ranlib"
7494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498 done
7499
7500   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7501 fi
7502 fi
7503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7504 if test -n "$ac_ct_RANLIB"; then
7505   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7506 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7507 else
7508   echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 fi
7511
7512   RANLIB=$ac_ct_RANLIB
7513 else
7514   RANLIB="$ac_cv_prog_RANLIB"
7515 fi
7516
7517 case "${host}" in
7518 *-*-darwin*)
7519   # By default, the Darwin ranlib will not treat common symbols as
7520   # definitions when  building the archive table of contents.  Other
7521   # ranlibs do that; pass an option to the Darwin ranlib that makes
7522   # it behave similarly.
7523   ranlib_flags="-c"
7524   ;;
7525 *)
7526   ranlib_flags=""
7527 esac
7528
7529
7530 # Find a good install program.  We prefer a C program (faster),
7531 # so one script is as good as another.  But avoid the broken or
7532 # incompatible versions:
7533 # SysV /etc/install, /usr/sbin/install
7534 # SunOS /usr/etc/install
7535 # IRIX /sbin/install
7536 # AIX /bin/install
7537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7539 # ./install, which can be erroneously created by make from ./install.sh.
7540 echo "$as_me:$LINENO: checking for a BSD compatible install" >&5
7541 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
7542 if test -z "$INSTALL"; then
7543 if test "${ac_cv_path_install+set}" = set; then
7544   echo $ECHO_N "(cached) $ECHO_C" >&6
7545 else
7546     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7547   for ac_dir in $PATH; do
7548     # Account for people who put trailing slashes in PATH elements.
7549     case "$ac_dir/" in
7550     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7551     *)
7552       # OSF1 and SCO ODT 3.0 have their own names for install.
7553       for ac_prog in ginstall scoinst install; do
7554         if test -f $ac_dir/$ac_prog; then
7555           if test $ac_prog = install &&
7556             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7557             # AIX install.  It has an incompatible calling convention.
7558             # OSF/1 installbsd also uses dspmsg, but is usable.
7559             :
7560           else
7561             ac_cv_path_install="$ac_dir/$ac_prog -c"
7562             break 2
7563           fi
7564         fi
7565       done
7566       ;;
7567     esac
7568   done
7569   IFS="$ac_save_IFS"
7570
7571 fi
7572   if test "${ac_cv_path_install+set}" = set; then
7573     INSTALL="$ac_cv_path_install"
7574   else
7575     # As a last resort, use the slow shell script.  We don't cache a
7576     # path for INSTALL within a source directory, because that will
7577     # break other packages using the cache if that directory is
7578     # removed, or if the path is relative.
7579     INSTALL="$ac_install_sh"
7580   fi
7581 fi
7582 echo "$as_me:$LINENO: result: $INSTALL" >&5
7583 echo "${ECHO_T}$INSTALL" >&6
7584
7585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7586 # It thinks the first close brace ends the variable substitution.
7587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7588
7589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7590
7591
7592 # See if cmp has --ignore-initial.
7593 echo "$as_me:$LINENO: checking for cmp's capabilities" >&5
7594 echo $ECHO_N "checking for cmp's capabilities... $ECHO_C" >&6
7595 if test "${gcc_cv_prog_cmp_skip+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598    echo abfoo >t1
7599   echo cdfoo >t2
7600   gcc_cv_prog_cmp_skip=slowcompare
7601   if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7602     if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7603       :
7604     else
7605       gcc_cv_prog_cmp_skip=gnucompare
7606     fi
7607   fi
7608   if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7609     if cmp t1 t2 2 2 > /dev/null 2>&1; then
7610       if cmp t1 t2 1 1 > /dev/null 2>&1; then
7611         :
7612       else
7613         gcc_cv_prog_cmp_skip=fastcompare
7614       fi
7615     fi
7616   fi
7617   rm t1 t2
7618
7619 fi
7620 echo "$as_me:$LINENO: result: $gcc_cv_prog_cmp_skip" >&5
7621 echo "${ECHO_T}$gcc_cv_prog_cmp_skip" >&6
7622 make_compare_target=$gcc_cv_prog_cmp_skip
7623
7624
7625
7626 # See if we have the mktemp command.
7627 # Extract the first word of "mktemp", so it can be a program name with args.
7628 set dummy mktemp; ac_word=$2
7629 echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7631 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then
7632   echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634   if test -n "$have_mktemp_command"; then
7635   ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642   for ac_exec_ext in '' $ac_executable_extensions; do
7643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644     ac_cv_prog_have_mktemp_command="yes"
7645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649 done
7650
7651   test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7652 fi
7653 fi
7654 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7655 if test -n "$have_mktemp_command"; then
7656   echo "$as_me:$LINENO: result: $have_mktemp_command" >&5
7657 echo "${ECHO_T}$have_mktemp_command" >&6
7658 else
7659   echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7661 fi
7662
7663
7664 # See if makeinfo has been installed and is modern enough
7665 # that we can use it.
7666
7667   # Extract the first word of "makeinfo", so it can be a program name with args.
7668 set dummy makeinfo; ac_word=$2
7669 echo "$as_me:$LINENO: checking for $ac_word" >&5
7670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   if test -n "$MAKEINFO"; then
7675   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682   for ac_exec_ext in '' $ac_executable_extensions; do
7683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684     ac_cv_prog_MAKEINFO="makeinfo"
7685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689 done
7690
7691 fi
7692 fi
7693 MAKEINFO=$ac_cv_prog_MAKEINFO
7694 if test -n "$MAKEINFO"; then
7695   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
7696 echo "${ECHO_T}$MAKEINFO" >&6
7697 else
7698   echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6
7700 fi
7701
7702   if test -n "$MAKEINFO"; then
7703     # Found it, now check the version.
7704     echo "$as_me:$LINENO: checking for modern makeinfo" >&5
7705 echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6
7706 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
7707   echo $ECHO_N "(cached) $ECHO_C" >&6
7708 else
7709   ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7710                                      sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7711
7712                     case $ac_prog_version in
7713                       '')  gcc_cv_prog_makeinfo_modern=no;;
7714                       4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*)  gcc_cv_prog_makeinfo_modern=yes;;
7715                       *)   gcc_cv_prog_makeinfo_modern=no;;
7716                     esac
7717
7718 fi
7719 echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5
7720 echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6
7721   else
7722     gcc_cv_prog_makeinfo_modern=no
7723   fi
7724   if test $gcc_cv_prog_makeinfo_modern = no; then
7725     MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7726   fi
7727
7728 if test $gcc_cv_prog_makeinfo_modern = no; then
7729   { echo "$as_me:$LINENO: WARNING:
7730 *** Makeinfo is missing or too old.
7731 *** Info documentation will not be built." >&5
7732 echo "$as_me: WARNING:
7733 *** Makeinfo is missing or too old.
7734 *** Info documentation will not be built." >&2;}
7735   BUILD_INFO=
7736 else
7737   BUILD_INFO=info
7738 fi
7739
7740
7741 # Is pod2man recent enough to regenerate manpages?
7742 echo "$as_me:$LINENO: checking for recent Pod::Man" >&5
7743 echo $ECHO_N "checking for recent Pod::Man... $ECHO_C" >&6
7744 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7745   echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6
7747   GENERATED_MANPAGES=generated-manpages
7748 else
7749   echo "$as_me:$LINENO: result: no" >&5
7750 echo "${ECHO_T}no" >&6
7751   GENERATED_MANPAGES=
7752 fi
7753
7754
7755 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7756
7757 # How about lex?
7758 for ac_prog in flex
7759 do
7760   # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764 if test "${ac_cv_prog_FLEX+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   if test -n "$FLEX"; then
7768   ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775   for ac_exec_ext in '' $ac_executable_extensions; do
7776   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777     ac_cv_prog_FLEX="$ac_prog"
7778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782 done
7783
7784 fi
7785 fi
7786 FLEX=$ac_cv_prog_FLEX
7787 if test -n "$FLEX"; then
7788   echo "$as_me:$LINENO: result: $FLEX" >&5
7789 echo "${ECHO_T}$FLEX" >&6
7790 else
7791   echo "$as_me:$LINENO: result: no" >&5
7792 echo "${ECHO_T}no" >&6
7793 fi
7794
7795   test -n "$FLEX" && break
7796 done
7797 test -n "$FLEX" || FLEX="$MISSING flex"
7798
7799
7800 # Bison?
7801 for ac_prog in bison
7802 do
7803   # Extract the first word of "$ac_prog", so it can be a program name with args.
7804 set dummy $ac_prog; ac_word=$2
7805 echo "$as_me:$LINENO: checking for $ac_word" >&5
7806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7807 if test "${ac_cv_prog_BISON+set}" = set; then
7808   echo $ECHO_N "(cached) $ECHO_C" >&6
7809 else
7810   if test -n "$BISON"; then
7811   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816   IFS=$as_save_IFS
7817   test -z "$as_dir" && as_dir=.
7818   for ac_exec_ext in '' $ac_executable_extensions; do
7819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820     ac_cv_prog_BISON="$ac_prog"
7821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822     break 2
7823   fi
7824 done
7825 done
7826
7827 fi
7828 fi
7829 BISON=$ac_cv_prog_BISON
7830 if test -n "$BISON"; then
7831   echo "$as_me:$LINENO: result: $BISON" >&5
7832 echo "${ECHO_T}$BISON" >&6
7833 else
7834   echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6
7836 fi
7837
7838   test -n "$BISON" && break
7839 done
7840 test -n "$BISON" || BISON="$MISSING bison"
7841
7842
7843 # Binutils are not build modules, unlike bison/flex/makeinfo.  So we
7844 # check for build == host before using them.
7845
7846 # NM
7847 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7848   && test -d ../binutils ; then
7849   NM='$(objdir)/../binutils/nm-new'
7850 else
7851   # Extract the first word of "nm", so it can be a program name with args.
7852 set dummy nm; ac_word=$2
7853 echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7855 if test "${ac_cv_prog_NM+set}" = set; then
7856   echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858   if test -n "$NM"; then
7859   ac_cv_prog_NM="$NM" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866   for ac_exec_ext in '' $ac_executable_extensions; do
7867   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868     ac_cv_prog_NM="nm"
7869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870     break 2
7871   fi
7872 done
7873 done
7874
7875   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7876 fi
7877 fi
7878 NM=$ac_cv_prog_NM
7879 if test -n "$NM"; then
7880   echo "$as_me:$LINENO: result: $NM" >&5
7881 echo "${ECHO_T}$NM" >&6
7882 else
7883   echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7885 fi
7886
7887 fi
7888
7889 # AR
7890 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7891   && test -d ../binutils ; then
7892   AR='$(objdir)/../binutils/ar'
7893 else
7894   # Extract the first word of "ar", so it can be a program name with args.
7895 set dummy ar; ac_word=$2
7896 echo "$as_me:$LINENO: checking for $ac_word" >&5
7897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7898 if test "${ac_cv_prog_AR+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   if test -n "$AR"; then
7902   ac_cv_prog_AR="$AR" # Let the user override the test.
7903 else
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7905 for as_dir in $PATH
7906 do
7907   IFS=$as_save_IFS
7908   test -z "$as_dir" && as_dir=.
7909   for ac_exec_ext in '' $ac_executable_extensions; do
7910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7911     ac_cv_prog_AR="ar"
7912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7913     break 2
7914   fi
7915 done
7916 done
7917
7918   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7919 fi
7920 fi
7921 AR=$ac_cv_prog_AR
7922 if test -n "$AR"; then
7923   echo "$as_me:$LINENO: result: $AR" >&5
7924 echo "${ECHO_T}$AR" >&6
7925 else
7926   echo "$as_me:$LINENO: result: no" >&5
7927 echo "${ECHO_T}no" >&6
7928 fi
7929
7930 fi
7931
7932
7933 # --------------------
7934 # Checks for C headers
7935 # --------------------
7936
7937 echo "$as_me:$LINENO: checking for GNU C library" >&5
7938 echo $ECHO_N "checking for GNU C library... $ECHO_C" >&6
7939 if test "${gcc_cv_glibc+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948 #include <features.h>
7949 int
7950 main ()
7951 {
7952
7953 #if ! (defined __GLIBC__ || defined __GNU_LIBRARY__)
7954 #error Not a GNU C library system
7955 #endif
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7962   (eval $ac_compile) 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag"
7970                          || test ! -s conftest.err'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; } &&
7976          { ac_try='test -s conftest.$ac_objext'
7977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978   (eval $ac_try) 2>&5
7979   ac_status=$?
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   (exit $ac_status); }; }; then
7982   gcc_cv_glibc=yes
7983 else
7984   echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 gcc_cv_glibc=no
7988 fi
7989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7990 fi
7991
7992 echo "$as_me:$LINENO: result: $gcc_cv_glibc" >&5
7993 echo "${ECHO_T}$gcc_cv_glibc" >&6
7994 if test $gcc_cv_glibc = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define _GNU_SOURCE 1
7998 _ACEOF
7999
8000 fi
8001
8002 # Need to reject headers which give warnings, so that the -Werror bootstrap
8003 # works later. *sigh*  This needs to come before all header checks.
8004
8005 ac_c_preproc_warn_flag=yes
8006
8007 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8008 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8009 if test "${ac_cv_header_stdc+set}" = set; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h.  */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h.  */
8018 #include <stdlib.h>
8019 #include <stdarg.h>
8020 #include <string.h>
8021 #include <float.h>
8022
8023 int
8024 main ()
8025 {
8026
8027   ;
8028   return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8033   (eval $ac_compile) 2>conftest.er1
8034   ac_status=$?
8035   grep -v '^ *+' conftest.er1 >conftest.err
8036   rm -f conftest.er1
8037   cat conftest.err >&5
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } &&
8040          { ac_try='test -z "$ac_c_werror_flag"
8041                          || test ! -s conftest.err'
8042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043   (eval $ac_try) 2>&5
8044   ac_status=$?
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); }; } &&
8047          { ac_try='test -s conftest.$ac_objext'
8048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8049   (eval $ac_try) 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); }; }; then
8053   ac_cv_header_stdc=yes
8054 else
8055   echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ac_cv_header_stdc=no
8059 fi
8060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8061
8062 if test $ac_cv_header_stdc = yes; then
8063   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8064   cat >conftest.$ac_ext <<_ACEOF
8065 /* confdefs.h.  */
8066 _ACEOF
8067 cat confdefs.h >>conftest.$ac_ext
8068 cat >>conftest.$ac_ext <<_ACEOF
8069 /* end confdefs.h.  */
8070 #include <string.h>
8071
8072 _ACEOF
8073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074   $EGREP "memchr" >/dev/null 2>&1; then
8075   :
8076 else
8077   ac_cv_header_stdc=no
8078 fi
8079 rm -f conftest*
8080
8081 fi
8082
8083 if test $ac_cv_header_stdc = yes; then
8084   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <stdlib.h>
8092
8093 _ACEOF
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095   $EGREP "free" >/dev/null 2>&1; then
8096   :
8097 else
8098   ac_cv_header_stdc=no
8099 fi
8100 rm -f conftest*
8101
8102 fi
8103
8104 if test $ac_cv_header_stdc = yes; then
8105   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8106   if test "$cross_compiling" = yes; then
8107   :
8108 else
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 #include <ctype.h>
8116 #if ((' ' & 0x0FF) == 0x020)
8117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8119 #else
8120 # define ISLOWER(c) \
8121                    (('a' <= (c) && (c) <= 'i') \
8122                      || ('j' <= (c) && (c) <= 'r') \
8123                      || ('s' <= (c) && (c) <= 'z'))
8124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8125 #endif
8126
8127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8128 int
8129 main ()
8130 {
8131   int i;
8132   for (i = 0; i < 256; i++)
8133     if (XOR (islower (i), ISLOWER (i))
8134         || toupper (i) != TOUPPER (i))
8135       exit(2);
8136   exit (0);
8137 }
8138 _ACEOF
8139 rm -f conftest$ac_exeext
8140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8141   (eval $ac_link) 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146   (eval $ac_try) 2>&5
8147   ac_status=$?
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); }; }; then
8150   :
8151 else
8152   echo "$as_me: program exited with status $ac_status" >&5
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 ( exit $ac_status )
8157 ac_cv_header_stdc=no
8158 fi
8159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8160 fi
8161 fi
8162 fi
8163 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8164 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8165 if test $ac_cv_header_stdc = yes; then
8166
8167 cat >>confdefs.h <<\_ACEOF
8168 #define STDC_HEADERS 1
8169 _ACEOF
8170
8171 fi
8172
8173 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8174 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8175 if test "${ac_cv_header_time+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   cat >conftest.$ac_ext <<_ACEOF
8179 /* confdefs.h.  */
8180 _ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h.  */
8184 #include <sys/types.h>
8185 #include <sys/time.h>
8186 #include <time.h>
8187
8188 int
8189 main ()
8190 {
8191 if ((struct tm *) 0)
8192 return 0;
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8199   (eval $ac_compile) 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag"
8207                          || test ! -s conftest.err'
8208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209   (eval $ac_try) 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; } &&
8213          { ac_try='test -s conftest.$ac_objext'
8214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215   (eval $ac_try) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219   ac_cv_header_time=yes
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 ac_cv_header_time=no
8225 fi
8226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8227 fi
8228 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8229 echo "${ECHO_T}$ac_cv_header_time" >&6
8230 if test $ac_cv_header_time = yes; then
8231
8232 cat >>confdefs.h <<\_ACEOF
8233 #define TIME_WITH_SYS_TIME 1
8234 _ACEOF
8235
8236 fi
8237
8238 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
8239 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
8240 if test "${gcc_cv_header_string+set}" = set; then
8241   echo $ECHO_N "(cached) $ECHO_C" >&6
8242 else
8243   cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249 #include <string.h>
8250 #include <strings.h>
8251 int
8252 main ()
8253 {
8254
8255   ;
8256   return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8261   (eval $ac_compile) 2>conftest.er1
8262   ac_status=$?
8263   grep -v '^ *+' conftest.er1 >conftest.err
8264   rm -f conftest.er1
8265   cat conftest.err >&5
8266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267   (exit $ac_status); } &&
8268          { ac_try='test -z "$ac_c_werror_flag"
8269                          || test ! -s conftest.err'
8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271   (eval $ac_try) 2>&5
8272   ac_status=$?
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); }; } &&
8275          { ac_try='test -s conftest.$ac_objext'
8276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8277   (eval $ac_try) 2>&5
8278   ac_status=$?
8279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); }; }; then
8281   gcc_cv_header_string=yes
8282 else
8283   echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 gcc_cv_header_string=no
8287 fi
8288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8289 fi
8290 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
8291 echo "${ECHO_T}$gcc_cv_header_string" >&6
8292 if test $gcc_cv_header_string = yes; then
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define STRING_WITH_STRINGS 1
8296 _ACEOF
8297
8298 fi
8299
8300 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8301 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8302 if test "${ac_cv_header_sys_wait_h+set}" = set; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 #include <sys/types.h>
8312 #include <sys/wait.h>
8313 #ifndef WEXITSTATUS
8314 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8315 #endif
8316 #ifndef WIFEXITED
8317 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8318 #endif
8319
8320 int
8321 main ()
8322 {
8323   int s;
8324   wait (&s);
8325   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332   (eval $ac_compile) 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } &&
8339          { ac_try='test -z "$ac_c_werror_flag"
8340                          || test ! -s conftest.err'
8341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342   (eval $ac_try) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); }; } &&
8346          { ac_try='test -s conftest.$ac_objext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_header_sys_wait_h=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_header_sys_wait_h=no
8358 fi
8359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8360 fi
8361 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8362 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8363 if test $ac_cv_header_sys_wait_h = yes; then
8364
8365 cat >>confdefs.h <<\_ACEOF
8366 #define HAVE_SYS_WAIT_H 1
8367 _ACEOF
8368
8369 fi
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8394                  fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8395                  sys/resource.h sys/param.h sys/times.h sys/stat.h \
8396                  direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8397 do
8398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8399 echo "$as_me:$LINENO: checking for $ac_header" >&5
8400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 #include <$ac_header>
8411 _ACEOF
8412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8414   ac_status=$?
8415   grep -v '^ *+' conftest.er1 >conftest.err
8416   rm -f conftest.er1
8417   cat conftest.err >&5
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } >/dev/null; then
8420   if test -s conftest.err; then
8421     ac_cpp_err=$ac_c_preproc_warn_flag
8422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8423   else
8424     ac_cpp_err=
8425   fi
8426 else
8427   ac_cpp_err=yes
8428 fi
8429 if test -z "$ac_cpp_err"; then
8430   eval "$as_ac_Header=yes"
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435   eval "$as_ac_Header=no"
8436 fi
8437 rm -f conftest.err conftest.$ac_ext
8438 fi
8439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8442   cat >>confdefs.h <<_ACEOF
8443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8444 _ACEOF
8445
8446 fi
8447 done
8448
8449
8450 # Check for thread headers.
8451 echo "$as_me:$LINENO: checking for thread.h" >&5
8452 echo $ECHO_N "checking for thread.h... $ECHO_C" >&6
8453 if test "${ac_cv_header_thread_h+set}" = set; then
8454   echo $ECHO_N "(cached) $ECHO_C" >&6
8455 else
8456   cat >conftest.$ac_ext <<_ACEOF
8457 /* confdefs.h.  */
8458 _ACEOF
8459 cat confdefs.h >>conftest.$ac_ext
8460 cat >>conftest.$ac_ext <<_ACEOF
8461 /* end confdefs.h.  */
8462 #include <thread.h>
8463 _ACEOF
8464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8465   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8466   ac_status=$?
8467   grep -v '^ *+' conftest.er1 >conftest.err
8468   rm -f conftest.er1
8469   cat conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); } >/dev/null; then
8472   if test -s conftest.err; then
8473     ac_cpp_err=$ac_c_preproc_warn_flag
8474     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8475   else
8476     ac_cpp_err=
8477   fi
8478 else
8479   ac_cpp_err=yes
8480 fi
8481 if test -z "$ac_cpp_err"; then
8482   ac_cv_header_thread_h=yes
8483 else
8484   echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8486
8487   ac_cv_header_thread_h=no
8488 fi
8489 rm -f conftest.err conftest.$ac_ext
8490 fi
8491 echo "$as_me:$LINENO: result: $ac_cv_header_thread_h" >&5
8492 echo "${ECHO_T}$ac_cv_header_thread_h" >&6
8493 if test $ac_cv_header_thread_h = yes; then
8494   have_thread_h=yes
8495 else
8496   have_thread_h=
8497 fi
8498
8499 echo "$as_me:$LINENO: checking for pthread.h" >&5
8500 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8501 if test "${ac_cv_header_pthread_h+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510 #include <pthread.h>
8511 _ACEOF
8512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8514   ac_status=$?
8515   grep -v '^ *+' conftest.er1 >conftest.err
8516   rm -f conftest.er1
8517   cat conftest.err >&5
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } >/dev/null; then
8520   if test -s conftest.err; then
8521     ac_cpp_err=$ac_c_preproc_warn_flag
8522     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8523   else
8524     ac_cpp_err=
8525   fi
8526 else
8527   ac_cpp_err=yes
8528 fi
8529 if test -z "$ac_cpp_err"; then
8530   ac_cv_header_pthread_h=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535   ac_cv_header_pthread_h=no
8536 fi
8537 rm -f conftest.err conftest.$ac_ext
8538 fi
8539 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
8540 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8541 if test $ac_cv_header_pthread_h = yes; then
8542   have_pthread_h=yes
8543 else
8544   have_pthread_h=
8545 fi
8546
8547
8548 # These tests can't be done till we know if we have limits.h.
8549 echo "$as_me:$LINENO: checking for CHAR_BIT" >&5
8550 echo $ECHO_N "checking for CHAR_BIT... $ECHO_C" >&6
8551 if test "${gcc_cv_decl_char_bit+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560 #ifdef HAVE_LIMITS_H
8561 #include <limits.h>
8562 #endif
8563 #ifdef CHAR_BIT
8564 found
8565 #endif
8566 _ACEOF
8567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8568   $EGREP "found" >/dev/null 2>&1; then
8569   gcc_cv_decl_char_bit=yes
8570 else
8571   gcc_cv_decl_char_bit=no
8572 fi
8573 rm -f conftest*
8574
8575
8576 fi
8577 echo "$as_me:$LINENO: result: $gcc_cv_decl_char_bit" >&5
8578 echo "${ECHO_T}$gcc_cv_decl_char_bit" >&6
8579 if test $gcc_cv_decl_char_bit = no; then
8580   echo "$as_me:$LINENO: checking number of bits in a byte" >&5
8581 echo $ECHO_N "checking number of bits in a byte... $ECHO_C" >&6
8582 if test "${gcc_cv_c_nbby+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   i=8
8586  gcc_cv_c_nbby=
8587  while test $i -lt 65; do
8588    cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594
8595 int
8596 main ()
8597 {
8598 switch(0) {
8599   case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8600   case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
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   gcc_cv_c_nbby=$i; break
8629 else
8630   echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 fi
8634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8635    i=`expr $i + 1`
8636  done
8637  test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8638
8639 fi
8640 echo "$as_me:$LINENO: result: $gcc_cv_c_nbby" >&5
8641 echo "${ECHO_T}$gcc_cv_c_nbby" >&6
8642 if test $gcc_cv_c_nbby = failed; then
8643   { { echo "$as_me:$LINENO: error: cannot determine number of bits in a byte" >&5
8644 echo "$as_me: error: cannot determine number of bits in a byte" >&2;}
8645    { (exit 1); exit 1; }; }
8646 else
8647
8648 cat >>confdefs.h <<_ACEOF
8649 #define CHAR_BIT $gcc_cv_c_nbby
8650 _ACEOF
8651
8652 fi
8653 fi
8654 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8655 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8656 if test "${ac_cv_c_bigendian+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   # See if sys/param.h defines the BYTE_ORDER macro.
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 #include <sys/types.h>
8667 #include <sys/param.h>
8668
8669 int
8670 main ()
8671 {
8672 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8673  bogus endian macros
8674 #endif
8675
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8682   (eval $ac_compile) 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -z "$ac_c_werror_flag"
8690                          || test ! -s conftest.err'
8691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8692   (eval $ac_try) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); }; } &&
8696          { ac_try='test -s conftest.$ac_objext'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; }; then
8702   # It does; now see whether it defined to BIG_ENDIAN or not.
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h.  */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h.  */
8709 #include <sys/types.h>
8710 #include <sys/param.h>
8711
8712 int
8713 main ()
8714 {
8715 #if BYTE_ORDER != BIG_ENDIAN
8716  not big endian
8717 #endif
8718
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 rm -f conftest.$ac_objext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8725   (eval $ac_compile) 2>conftest.er1
8726   ac_status=$?
8727   grep -v '^ *+' conftest.er1 >conftest.err
8728   rm -f conftest.er1
8729   cat conftest.err >&5
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); } &&
8732          { ac_try='test -z "$ac_c_werror_flag"
8733                          || test ! -s conftest.err'
8734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735   (eval $ac_try) 2>&5
8736   ac_status=$?
8737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738   (exit $ac_status); }; } &&
8739          { ac_try='test -s conftest.$ac_objext'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; }; then
8745   ac_cv_c_bigendian=yes
8746 else
8747   echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_cv_c_bigendian=no
8751 fi
8752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 else
8754   echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8756
8757 # It does not; compile a test program.
8758 if test "$cross_compiling" = yes; then
8759   # try to guess the endianness by grepping values into an object file
8760   ac_cv_c_bigendian=unknown
8761   cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8768 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8769 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
8770 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8771 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8772 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
8773 int
8774 main ()
8775 {
8776  _ascii (); _ebcdic ();
8777   ;
8778   return 0;
8779 }
8780 _ACEOF
8781 rm -f conftest.$ac_objext
8782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8783   (eval $ac_compile) 2>conftest.er1
8784   ac_status=$?
8785   grep -v '^ *+' conftest.er1 >conftest.err
8786   rm -f conftest.er1
8787   cat conftest.err >&5
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); } &&
8790          { ac_try='test -z "$ac_c_werror_flag"
8791                          || test ! -s conftest.err'
8792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793   (eval $ac_try) 2>&5
8794   ac_status=$?
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); }; } &&
8797          { ac_try='test -s conftest.$ac_objext'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; }; then
8803   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
8804   ac_cv_c_bigendian=yes
8805 fi
8806 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8807   if test "$ac_cv_c_bigendian" = unknown; then
8808     ac_cv_c_bigendian=no
8809   else
8810     # finding both strings is unlikely to happen, but who knows?
8811     ac_cv_c_bigendian=unknown
8812   fi
8813 fi
8814 else
8815   echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8817
8818 fi
8819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8820 else
8821   cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h.  */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h.  */
8827 int
8828 main ()
8829 {
8830   /* Are we little or big endian?  From Harbison&Steele.  */
8831   union
8832   {
8833     long l;
8834     char c[sizeof (long)];
8835   } u;
8836   u.l = 1;
8837   exit (u.c[sizeof (long) - 1] == 1);
8838 }
8839 _ACEOF
8840 rm -f conftest$ac_exeext
8841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847   (eval $ac_try) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); }; }; then
8851   ac_cv_c_bigendian=no
8852 else
8853   echo "$as_me: program exited with status $ac_status" >&5
8854 echo "$as_me: failed program was:" >&5
8855 sed 's/^/| /' conftest.$ac_ext >&5
8856
8857 ( exit $ac_status )
8858 ac_cv_c_bigendian=yes
8859 fi
8860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8861 fi
8862 fi
8863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8864 fi
8865 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8866 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8867 case $ac_cv_c_bigendian in
8868   yes)
8869
8870 cat >>confdefs.h <<\_ACEOF
8871 #define WORDS_BIGENDIAN 1
8872 _ACEOF
8873  ;;
8874   no)
8875      ;;
8876   *)
8877     { { echo "$as_me:$LINENO: error: unknown endianness
8878 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
8879 echo "$as_me: error: unknown endianness
8880 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
8881    { (exit 1); exit 1; }; } ;;
8882 esac
8883
8884
8885 # --------
8886 # UNSORTED
8887 # --------
8888
8889
8890 # These libraries may be used by collect2.
8891 # We may need a special search path to get them linked.
8892 echo "$as_me:$LINENO: checking for collect2 libraries" >&5
8893 echo $ECHO_N "checking for collect2 libraries... $ECHO_C" >&6
8894 if test "${gcc_cv_collect2_libs+set}" = set; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   save_LIBS="$LIBS"
8898 for libs in '' -lld -lmld \
8899                 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8900                 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8901 do
8902         LIBS="$libs"
8903         cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909
8910 /* Override any gcc2 internal prototype to avoid an error.  */
8911 #ifdef __cplusplus
8912 extern "C"
8913 #endif
8914 /* We use char because int might match the return type of a gcc2
8915    builtin and then its argument prototype would still apply.  */
8916 char ldopen ();
8917 int
8918 main ()
8919 {
8920 ldopen ();
8921   ;
8922   return 0;
8923 }
8924 _ACEOF
8925 rm -f conftest.$ac_objext conftest$ac_exeext
8926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8927   (eval $ac_link) 2>conftest.er1
8928   ac_status=$?
8929   grep -v '^ *+' conftest.er1 >conftest.err
8930   rm -f conftest.er1
8931   cat conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); } &&
8934          { ac_try='test -z "$ac_c_werror_flag"
8935                          || test ! -s conftest.err'
8936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8937   (eval $ac_try) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; } &&
8941          { ac_try='test -s conftest$ac_exeext'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; }; then
8947   gcc_cv_collect2_libs="$libs"; break
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 fi
8953 rm -f conftest.err conftest.$ac_objext \
8954       conftest$ac_exeext conftest.$ac_ext
8955 done
8956 LIBS="$save_LIBS"
8957 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8958 fi
8959 echo "$as_me:$LINENO: result: $gcc_cv_collect2_libs" >&5
8960 echo "${ECHO_T}$gcc_cv_collect2_libs" >&6
8961 case $gcc_cv_collect2_libs in
8962         "none required")        ;;
8963         *)      COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8964 esac
8965
8966
8967 # When building Ada code on Alpha, we need exc_resume which is usually in
8968 # -lexc.  So test for it.
8969 save_LIBS="$LIBS"
8970 LIBS=
8971 echo "$as_me:$LINENO: checking for library containing exc_resume" >&5
8972 echo $ECHO_N "checking for library containing exc_resume... $ECHO_C" >&6
8973 if test "${ac_cv_search_exc_resume+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   ac_func_search_save_LIBS=$LIBS
8977 ac_cv_search_exc_resume=no
8978 cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984
8985 /* Override any gcc2 internal prototype to avoid an error.  */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 /* We use char because int might match the return type of a gcc2
8990    builtin and then its argument prototype would still apply.  */
8991 char exc_resume ();
8992 int
8993 main ()
8994 {
8995 exc_resume ();
8996   ;
8997   return 0;
8998 }
8999 _ACEOF
9000 rm -f conftest.$ac_objext conftest$ac_exeext
9001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002   (eval $ac_link) 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } &&
9009          { ac_try='test -z "$ac_c_werror_flag"
9010                          || test ! -s conftest.err'
9011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012   (eval $ac_try) 2>&5
9013   ac_status=$?
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); }; } &&
9016          { ac_try='test -s conftest$ac_exeext'
9017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018   (eval $ac_try) 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   ac_cv_search_exc_resume="none required"
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027 fi
9028 rm -f conftest.err conftest.$ac_objext \
9029       conftest$ac_exeext conftest.$ac_ext
9030 if test "$ac_cv_search_exc_resume" = no; then
9031   for ac_lib in exc; do
9032     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9033     cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h.  */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h.  */
9039
9040 /* Override any gcc2 internal prototype to avoid an error.  */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045    builtin and then its argument prototype would still apply.  */
9046 char exc_resume ();
9047 int
9048 main ()
9049 {
9050 exc_resume ();
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057   (eval $ac_link) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_search_exc_resume="-l$ac_lib"
9078 break
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 fi
9084 rm -f conftest.err conftest.$ac_objext \
9085       conftest$ac_exeext conftest.$ac_ext
9086   done
9087 fi
9088 LIBS=$ac_func_search_save_LIBS
9089 fi
9090 echo "$as_me:$LINENO: result: $ac_cv_search_exc_resume" >&5
9091 echo "${ECHO_T}$ac_cv_search_exc_resume" >&6
9092 if test "$ac_cv_search_exc_resume" != no; then
9093   test "$ac_cv_search_exc_resume" = "none required" || LIBS="$ac_cv_search_exc_resume $LIBS"
9094
9095 fi
9096
9097 GNAT_LIBEXC="$LIBS"
9098 LIBS="$save_LIBS"
9099
9100
9101 # Some systems put ldexp and frexp in libm instead of libc; assume
9102 # they're both in the same place.  jcf-dump needs them.
9103 save_LIBS="$LIBS"
9104 LIBS=
9105 echo "$as_me:$LINENO: checking for library containing ldexp" >&5
9106 echo $ECHO_N "checking for library containing ldexp... $ECHO_C" >&6
9107 if test "${ac_cv_search_ldexp+set}" = set; then
9108   echo $ECHO_N "(cached) $ECHO_C" >&6
9109 else
9110   ac_func_search_save_LIBS=$LIBS
9111 ac_cv_search_ldexp=no
9112 cat >conftest.$ac_ext <<_ACEOF
9113 /* confdefs.h.  */
9114 _ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h.  */
9118
9119 /* Override any gcc2 internal prototype to avoid an error.  */
9120 #ifdef __cplusplus
9121 extern "C"
9122 #endif
9123 /* We use char because int might match the return type of a gcc2
9124    builtin and then its argument prototype would still apply.  */
9125 char ldexp ();
9126 int
9127 main ()
9128 {
9129 ldexp ();
9130   ;
9131   return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9136   (eval $ac_link) 2>conftest.er1
9137   ac_status=$?
9138   grep -v '^ *+' conftest.er1 >conftest.err
9139   rm -f conftest.er1
9140   cat conftest.err >&5
9141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142   (exit $ac_status); } &&
9143          { ac_try='test -z "$ac_c_werror_flag"
9144                          || test ! -s conftest.err'
9145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146   (eval $ac_try) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); }; } &&
9150          { ac_try='test -s conftest$ac_exeext'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; }; then
9156   ac_cv_search_ldexp="none required"
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 fi
9162 rm -f conftest.err conftest.$ac_objext \
9163       conftest$ac_exeext conftest.$ac_ext
9164 if test "$ac_cv_search_ldexp" = no; then
9165   for ac_lib in m; do
9166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9167     cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h.  */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h.  */
9173
9174 /* Override any gcc2 internal prototype to avoid an error.  */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 /* We use char because int might match the return type of a gcc2
9179    builtin and then its argument prototype would still apply.  */
9180 char ldexp ();
9181 int
9182 main ()
9183 {
9184 ldexp ();
9185   ;
9186   return 0;
9187 }
9188 _ACEOF
9189 rm -f conftest.$ac_objext conftest$ac_exeext
9190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9191   (eval $ac_link) 2>conftest.er1
9192   ac_status=$?
9193   grep -v '^ *+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } &&
9198          { ac_try='test -z "$ac_c_werror_flag"
9199                          || test ! -s conftest.err'
9200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201   (eval $ac_try) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); }; } &&
9205          { ac_try='test -s conftest$ac_exeext'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; }; then
9211   ac_cv_search_ldexp="-l$ac_lib"
9212 break
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217 fi
9218 rm -f conftest.err conftest.$ac_objext \
9219       conftest$ac_exeext conftest.$ac_ext
9220   done
9221 fi
9222 LIBS=$ac_func_search_save_LIBS
9223 fi
9224 echo "$as_me:$LINENO: result: $ac_cv_search_ldexp" >&5
9225 echo "${ECHO_T}$ac_cv_search_ldexp" >&6
9226 if test "$ac_cv_search_ldexp" != no; then
9227   test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS"
9228
9229 fi
9230
9231 LDEXP_LIB="$LIBS"
9232 LIBS="$save_LIBS"
9233
9234
9235 # Use <inttypes.h> only if it exists,
9236 # doesn't clash with <sys/types.h>, and declares intmax_t.
9237 echo "$as_me:$LINENO: checking for inttypes.h" >&5
9238 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9239 if test "${gcc_cv_header_inttypes_h+set}" = set; then
9240   echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 #include <sys/types.h>
9249 #include <inttypes.h>
9250 int
9251 main ()
9252 {
9253 intmax_t i = -1;
9254   ;
9255   return 0;
9256 }
9257 _ACEOF
9258 rm -f conftest.$ac_objext
9259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9260   (eval $ac_compile) 2>conftest.er1
9261   ac_status=$?
9262   grep -v '^ *+' conftest.er1 >conftest.err
9263   rm -f conftest.er1
9264   cat conftest.err >&5
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); } &&
9267          { ac_try='test -z "$ac_c_werror_flag"
9268                          || test ! -s conftest.err'
9269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270   (eval $ac_try) 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); }; } &&
9274          { ac_try='test -s conftest.$ac_objext'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; }; then
9280   gcc_cv_header_inttypes_h=yes
9281 else
9282   echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 gcc_cv_header_inttypes_h=no
9286 fi
9287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9288 fi
9289
9290 echo "$as_me:$LINENO: result: $gcc_cv_header_inttypes_h" >&5
9291 echo "${ECHO_T}$gcc_cv_header_inttypes_h" >&6
9292 if test $gcc_cv_header_inttypes_h = yes; then
9293
9294 cat >>confdefs.h <<\_ACEOF
9295 #define HAVE_INTTYPES_H 1
9296 _ACEOF
9297
9298 fi
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
9338         sysconf strsignal getrusage nl_langinfo scandir alphasort \
9339         gettimeofday mbstowcs wcswidth mmap mincore setlocale \
9340         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
9341 do
9342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9343 echo "$as_me:$LINENO: checking for $ac_func" >&5
9344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9345 if eval "test \"\${$as_ac_var+set}\" = set"; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   cat >conftest.$ac_ext <<_ACEOF
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9356 #define $ac_func innocuous_$ac_func
9357
9358 /* System header to define __stub macros and hopefully few prototypes,
9359     which can conflict with char $ac_func (); below.
9360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9361     <limits.h> exists even on freestanding compilers.  */
9362
9363 #ifdef __STDC__
9364 # include <limits.h>
9365 #else
9366 # include <assert.h>
9367 #endif
9368
9369 #undef $ac_func
9370
9371 /* Override any gcc2 internal prototype to avoid an error.  */
9372 #ifdef __cplusplus
9373 extern "C"
9374 {
9375 #endif
9376 /* We use char because int might match the return type of a gcc2
9377    builtin and then its argument prototype would still apply.  */
9378 char $ac_func ();
9379 /* The GNU C library defines this for functions which it implements
9380     to always fail with ENOSYS.  Some functions are actually named
9381     something starting with __ and the normal name is an alias.  */
9382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9383 choke me
9384 #else
9385 char (*f) () = $ac_func;
9386 #endif
9387 #ifdef __cplusplus
9388 }
9389 #endif
9390
9391 int
9392 main ()
9393 {
9394 return f != $ac_func;
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401   (eval $ac_link) 2>conftest.er1
9402   ac_status=$?
9403   grep -v '^ *+' conftest.er1 >conftest.err
9404   rm -f conftest.er1
9405   cat conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -z "$ac_c_werror_flag"
9409                          || test ! -s conftest.err'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; } &&
9415          { ac_try='test -s conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   eval "$as_ac_var=yes"
9422 else
9423   echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426 eval "$as_ac_var=no"
9427 fi
9428 rm -f conftest.err conftest.$ac_objext \
9429       conftest$ac_exeext conftest.$ac_ext
9430 fi
9431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9433 if test `eval echo '${'$as_ac_var'}'` = yes; then
9434   cat >>confdefs.h <<_ACEOF
9435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9436 _ACEOF
9437
9438 fi
9439 done
9440
9441
9442 if test x$ac_cv_func_mbstowcs = xyes; then
9443   echo "$as_me:$LINENO: checking whether mbstowcs works" >&5
9444 echo $ECHO_N "checking whether mbstowcs works... $ECHO_C" >&6
9445 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448       if test "$cross_compiling" = yes; then
9449   gcc_cv_func_mbstowcs_works=yes
9450 else
9451   cat >conftest.$ac_ext <<_ACEOF
9452 /* confdefs.h.  */
9453 _ACEOF
9454 cat confdefs.h >>conftest.$ac_ext
9455 cat >>conftest.$ac_ext <<_ACEOF
9456 /* end confdefs.h.  */
9457 #include <stdlib.h>
9458 int main()
9459 {
9460   mbstowcs(0, "", 0);
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   gcc_cv_func_mbstowcs_works=yes
9476 else
9477   echo "$as_me: program exited with status $ac_status" >&5
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9480
9481 ( exit $ac_status )
9482 gcc_cv_func_mbstowcs_works=no
9483 fi
9484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9485 fi
9486 fi
9487 echo "$as_me:$LINENO: result: $gcc_cv_func_mbstowcs_works" >&5
9488 echo "${ECHO_T}$gcc_cv_func_mbstowcs_works" >&6
9489   if test x$gcc_cv_func_mbstowcs_works = xyes; then
9490
9491 cat >>confdefs.h <<\_ACEOF
9492 #define HAVE_WORKING_MBSTOWCS 1
9493 _ACEOF
9494
9495   fi
9496 fi
9497
9498 echo "$as_me:$LINENO: checking for ssize_t" >&5
9499 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
9500 if test "${ac_cv_type_ssize_t+set}" = set; then
9501   echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503   cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 $ac_includes_default
9510 int
9511 main ()
9512 {
9513 if ((ssize_t *) 0)
9514   return 0;
9515 if (sizeof (ssize_t))
9516   return 0;
9517   ;
9518   return 0;
9519 }
9520 _ACEOF
9521 rm -f conftest.$ac_objext
9522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9523   (eval $ac_compile) 2>conftest.er1
9524   ac_status=$?
9525   grep -v '^ *+' conftest.er1 >conftest.err
9526   rm -f conftest.er1
9527   cat conftest.err >&5
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); } &&
9530          { ac_try='test -z "$ac_c_werror_flag"
9531                          || test ! -s conftest.err'
9532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9533   (eval $ac_try) 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; } &&
9537          { ac_try='test -s conftest.$ac_objext'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; }; then
9543   ac_cv_type_ssize_t=yes
9544 else
9545   echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 ac_cv_type_ssize_t=no
9549 fi
9550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9553 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
9554 if test $ac_cv_type_ssize_t = yes; then
9555   :
9556 else
9557
9558 cat >>confdefs.h <<_ACEOF
9559 #define ssize_t int
9560 _ACEOF
9561
9562 fi
9563
9564
9565 # Try to determine the array type of the second argument of getgroups
9566 # for the target system (int or gid_t).
9567 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9568 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9569 if test "${ac_cv_type_uid_t+set}" = set; then
9570   echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572   cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h.  */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h.  */
9578 #include <sys/types.h>
9579
9580 _ACEOF
9581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9582   $EGREP "uid_t" >/dev/null 2>&1; then
9583   ac_cv_type_uid_t=yes
9584 else
9585   ac_cv_type_uid_t=no
9586 fi
9587 rm -f conftest*
9588
9589 fi
9590 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9591 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9592 if test $ac_cv_type_uid_t = no; then
9593
9594 cat >>confdefs.h <<\_ACEOF
9595 #define uid_t int
9596 _ACEOF
9597
9598
9599 cat >>confdefs.h <<\_ACEOF
9600 #define gid_t int
9601 _ACEOF
9602
9603 fi
9604
9605 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
9606 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
9607 if test "${ac_cv_type_getgroups+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610   if test "$cross_compiling" = yes; then
9611   ac_cv_type_getgroups=cross
9612 else
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 /* Thanks to Mike Rendell for this test.  */
9620 #include <sys/types.h>
9621 #define NGID 256
9622 #undef MAX
9623 #define MAX(x, y) ((x) > (y) ? (x) : (y))
9624
9625 int
9626 main ()
9627 {
9628   gid_t gidset[NGID];
9629   int i, n;
9630   union { gid_t gval; long lval; }  val;
9631
9632   val.lval = -1;
9633   for (i = 0; i < NGID; i++)
9634     gidset[i] = val.gval;
9635   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
9636                  gidset);
9637   /* Exit non-zero if getgroups seems to require an array of ints.  This
9638      happens when gid_t is short but getgroups modifies an array of ints.  */
9639   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
9640 }
9641 _ACEOF
9642 rm -f conftest$ac_exeext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644   (eval $ac_link) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649   (eval $ac_try) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); }; }; then
9653   ac_cv_type_getgroups=gid_t
9654 else
9655   echo "$as_me: program exited with status $ac_status" >&5
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659 ( exit $ac_status )
9660 ac_cv_type_getgroups=int
9661 fi
9662 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9663 fi
9664 if test $ac_cv_type_getgroups = cross; then
9665         cat >conftest.$ac_ext <<_ACEOF
9666 /* confdefs.h.  */
9667 _ACEOF
9668 cat confdefs.h >>conftest.$ac_ext
9669 cat >>conftest.$ac_ext <<_ACEOF
9670 /* end confdefs.h.  */
9671 #include <unistd.h>
9672
9673 _ACEOF
9674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9675   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
9676   ac_cv_type_getgroups=gid_t
9677 else
9678   ac_cv_type_getgroups=int
9679 fi
9680 rm -f conftest*
9681
9682 fi
9683 fi
9684 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
9685 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
9686
9687 cat >>confdefs.h <<_ACEOF
9688 #define GETGROUPS_T $ac_cv_type_getgroups
9689 _ACEOF
9690
9691
9692 if test "${target}" = "${build}"; then
9693   TARGET_GETGROUPS_T=$ac_cv_type_getgroups
9694 else
9695   case "${target}" in
9696         # This condition may need some tweaking.  It should include all
9697         # targets where the array type of the second argument of getgroups
9698         # is int and the type of gid_t is not equivalent to int.
9699         *-*-sunos* | *-*-ultrix*)
9700                 TARGET_GETGROUPS_T=int
9701                 ;;
9702         *)
9703                 TARGET_GETGROUPS_T=gid_t
9704                 ;;
9705   esac
9706 fi
9707
9708
9709
9710 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9711 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9712 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 #include <sys/mman.h>
9722 _ACEOF
9723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9724   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9725   ac_status=$?
9726   grep -v '^ *+' conftest.er1 >conftest.err
9727   rm -f conftest.er1
9728   cat conftest.err >&5
9729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730   (exit $ac_status); } >/dev/null; then
9731   if test -s conftest.err; then
9732     ac_cpp_err=$ac_c_preproc_warn_flag
9733     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9734   else
9735     ac_cpp_err=
9736   fi
9737 else
9738   ac_cpp_err=yes
9739 fi
9740 if test -z "$ac_cpp_err"; then
9741   ac_cv_header_sys_mman_h=yes
9742 else
9743   echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746   ac_cv_header_sys_mman_h=no
9747 fi
9748 rm -f conftest.err conftest.$ac_ext
9749 fi
9750 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9751 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9752 if test $ac_cv_header_sys_mman_h = yes; then
9753   gcc_header_sys_mman_h=yes
9754 else
9755   gcc_header_sys_mman_h=no
9756 fi
9757
9758 echo "$as_me:$LINENO: checking for mmap" >&5
9759 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
9760 if test "${ac_cv_func_mmap+set}" = set; then
9761   echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763   cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
9770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9771 #define mmap innocuous_mmap
9772
9773 /* System header to define __stub macros and hopefully few prototypes,
9774     which can conflict with char mmap (); below.
9775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9776     <limits.h> exists even on freestanding compilers.  */
9777
9778 #ifdef __STDC__
9779 # include <limits.h>
9780 #else
9781 # include <assert.h>
9782 #endif
9783
9784 #undef mmap
9785
9786 /* Override any gcc2 internal prototype to avoid an error.  */
9787 #ifdef __cplusplus
9788 extern "C"
9789 {
9790 #endif
9791 /* We use char because int might match the return type of a gcc2
9792    builtin and then its argument prototype would still apply.  */
9793 char mmap ();
9794 /* The GNU C library defines this for functions which it implements
9795     to always fail with ENOSYS.  Some functions are actually named
9796     something starting with __ and the normal name is an alias.  */
9797 #if defined (__stub_mmap) || defined (__stub___mmap)
9798 choke me
9799 #else
9800 char (*f) () = mmap;
9801 #endif
9802 #ifdef __cplusplus
9803 }
9804 #endif
9805
9806 int
9807 main ()
9808 {
9809 return f != mmap;
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9816   (eval $ac_link) 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag"
9824                          || test ! -s conftest.err'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; } &&
9830          { ac_try='test -s conftest$ac_exeext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_cv_func_mmap=yes
9837 else
9838   echo "$as_me: failed program was:" >&5
9839 sed 's/^/| /' conftest.$ac_ext >&5
9840
9841 ac_cv_func_mmap=no
9842 fi
9843 rm -f conftest.err conftest.$ac_objext \
9844       conftest$ac_exeext conftest.$ac_ext
9845 fi
9846 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
9847 echo "${ECHO_T}$ac_cv_func_mmap" >&6
9848 if test $ac_cv_func_mmap = yes; then
9849   gcc_func_mmap=yes
9850 else
9851   gcc_func_mmap=no
9852 fi
9853
9854 if test "$gcc_header_sys_mman_h" != yes \
9855  || test "$gcc_func_mmap" != yes; then
9856    gcc_cv_func_mmap_file=no
9857    gcc_cv_func_mmap_dev_zero=no
9858    gcc_cv_func_mmap_anon=no
9859 else
9860    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
9861 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
9862 if test "${gcc_cv_func_mmap_file+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   # Add a system to this blacklist if
9866    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9867    # memory area containing the same data that you'd get if you applied
9868    # read() to the same fd.  The only system known to have a problem here
9869    # is VMS, where text files have record structure.
9870    case "$host_os" in
9871      vms* | ultrix*)
9872         gcc_cv_func_mmap_file=no ;;
9873      *)
9874         gcc_cv_func_mmap_file=yes;;
9875    esac
9876 fi
9877 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_file" >&5
9878 echo "${ECHO_T}$gcc_cv_func_mmap_file" >&6
9879    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
9880 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
9881 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then
9882   echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884   # Add a system to this blacklist if it has mmap() but /dev/zero
9885    # does not exist, or if mmapping /dev/zero does not give anonymous
9886    # zeroed pages with both the following properties:
9887    # 1. If you map N consecutive pages in with one call, and then
9888    #    unmap any subset of those pages, the pages that were not
9889    #    explicitly unmapped remain accessible.
9890    # 2. If you map two adjacent blocks of memory and then unmap them
9891    #    both at once, they must both go away.
9892    # Systems known to be in this category are Windows (all variants),
9893    # VMS, and Darwin.
9894    case "$host_os" in
9895      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
9896         gcc_cv_func_mmap_dev_zero=no ;;
9897      *)
9898         gcc_cv_func_mmap_dev_zero=yes;;
9899    esac
9900 fi
9901 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_dev_zero" >&5
9902 echo "${ECHO_T}$gcc_cv_func_mmap_dev_zero" >&6
9903
9904    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9905    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
9906 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
9907 if test "${gcc_cv_decl_map_anon+set}" = set; then
9908   echo $ECHO_N "(cached) $ECHO_C" >&6
9909 else
9910   cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916 #include <sys/types.h>
9917 #include <sys/mman.h>
9918 #include <unistd.h>
9919
9920 #ifndef MAP_ANONYMOUS
9921 #define MAP_ANONYMOUS MAP_ANON
9922 #endif
9923
9924 int
9925 main ()
9926 {
9927 int n = MAP_ANONYMOUS;
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9934   (eval $ac_compile) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest.$ac_objext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   gcc_cv_decl_map_anon=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 gcc_cv_decl_map_anon=no
9960 fi
9961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9962 fi
9963 echo "$as_me:$LINENO: result: $gcc_cv_decl_map_anon" >&5
9964 echo "${ECHO_T}$gcc_cv_decl_map_anon" >&6
9965
9966    if test $gcc_cv_decl_map_anon = no; then
9967      gcc_cv_func_mmap_anon=no
9968    else
9969      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9970 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
9971 if test "${gcc_cv_func_mmap_anon+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   # Add a system to this blacklist if it has mmap() and MAP_ANON or
9975    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9976    # doesn't give anonymous zeroed pages with the same properties listed
9977    # above for use of /dev/zero.
9978    # Systems known to be in this category are Windows, VMS, and SCO Unix.
9979    case "$host_os" in
9980      vms* | cygwin* | pe | mingw* | sco* | udk* )
9981         gcc_cv_func_mmap_anon=no ;;
9982      *)
9983         gcc_cv_func_mmap_anon=yes;;
9984    esac
9985 fi
9986 echo "$as_me:$LINENO: result: $gcc_cv_func_mmap_anon" >&5
9987 echo "${ECHO_T}$gcc_cv_func_mmap_anon" >&6
9988    fi
9989 fi
9990
9991 if test $gcc_cv_func_mmap_file = yes; then
9992
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_MMAP_FILE 1
9995 _ACEOF
9996
9997 fi
9998 if test $gcc_cv_func_mmap_dev_zero = yes; then
9999
10000 cat >>confdefs.h <<\_ACEOF
10001 #define HAVE_MMAP_DEV_ZERO 1
10002 _ACEOF
10003
10004 fi
10005 if test $gcc_cv_func_mmap_anon = yes; then
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_MMAP_ANON 1
10009 _ACEOF
10010
10011 fi
10012
10013
10014 case "${host}" in
10015 *-*-*vms*)
10016   # Under VMS, vfork works very differently than on Unix. The standard test
10017   # won't work, and it isn't easily adaptable. It makes more sense to
10018   # just force it.
10019   ac_cv_func_vfork_works=yes
10020   ;;
10021 esac
10022 echo "$as_me:$LINENO: checking for pid_t" >&5
10023 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10024 if test "${ac_cv_type_pid_t+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033 $ac_includes_default
10034 int
10035 main ()
10036 {
10037 if ((pid_t *) 0)
10038   return 0;
10039 if (sizeof (pid_t))
10040   return 0;
10041   ;
10042   return 0;
10043 }
10044 _ACEOF
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047   (eval $ac_compile) 2>conftest.er1
10048   ac_status=$?
10049   grep -v '^ *+' conftest.er1 >conftest.err
10050   rm -f conftest.er1
10051   cat conftest.err >&5
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); } &&
10054          { ac_try='test -z "$ac_c_werror_flag"
10055                          || test ! -s conftest.err'
10056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057   (eval $ac_try) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); }; } &&
10061          { ac_try='test -s conftest.$ac_objext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_cv_type_pid_t=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 ac_cv_type_pid_t=no
10073 fi
10074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10077 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10078 if test $ac_cv_type_pid_t = yes; then
10079   :
10080 else
10081
10082 cat >>confdefs.h <<_ACEOF
10083 #define pid_t int
10084 _ACEOF
10085
10086 fi
10087
10088
10089
10090 for ac_header in unistd.h vfork.h
10091 do
10092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10093 echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 #include <$ac_header>
10105 _ACEOF
10106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } >/dev/null; then
10114   if test -s conftest.err; then
10115     ac_cpp_err=$ac_c_preproc_warn_flag
10116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10117   else
10118     ac_cpp_err=
10119   fi
10120 else
10121   ac_cpp_err=yes
10122 fi
10123 if test -z "$ac_cpp_err"; then
10124   eval "$as_ac_Header=yes"
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129   eval "$as_ac_Header=no"
10130 fi
10131 rm -f conftest.err conftest.$ac_ext
10132 fi
10133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10136   cat >>confdefs.h <<_ACEOF
10137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10138 _ACEOF
10139
10140 fi
10141 done
10142
10143
10144
10145 for ac_func in fork vfork
10146 do
10147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10148 echo "$as_me:$LINENO: checking for $ac_func" >&5
10149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10150 if eval "test \"\${$as_ac_var+set}\" = set"; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10161 #define $ac_func innocuous_$ac_func
10162
10163 /* System header to define __stub macros and hopefully few prototypes,
10164     which can conflict with char $ac_func (); below.
10165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166     <limits.h> exists even on freestanding compilers.  */
10167
10168 #ifdef __STDC__
10169 # include <limits.h>
10170 #else
10171 # include <assert.h>
10172 #endif
10173
10174 #undef $ac_func
10175
10176 /* Override any gcc2 internal prototype to avoid an error.  */
10177 #ifdef __cplusplus
10178 extern "C"
10179 {
10180 #endif
10181 /* We use char because int might match the return type of a gcc2
10182    builtin and then its argument prototype would still apply.  */
10183 char $ac_func ();
10184 /* The GNU C library defines this for functions which it implements
10185     to always fail with ENOSYS.  Some functions are actually named
10186     something starting with __ and the normal name is an alias.  */
10187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10188 choke me
10189 #else
10190 char (*f) () = $ac_func;
10191 #endif
10192 #ifdef __cplusplus
10193 }
10194 #endif
10195
10196 int
10197 main ()
10198 {
10199 return f != $ac_func;
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 rm -f conftest.$ac_objext conftest$ac_exeext
10205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10206   (eval $ac_link) 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } &&
10213          { ac_try='test -z "$ac_c_werror_flag"
10214                          || test ! -s conftest.err'
10215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216   (eval $ac_try) 2>&5
10217   ac_status=$?
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); }; } &&
10220          { ac_try='test -s conftest$ac_exeext'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; }; then
10226   eval "$as_ac_var=yes"
10227 else
10228   echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 eval "$as_ac_var=no"
10232 fi
10233 rm -f conftest.err conftest.$ac_objext \
10234       conftest$ac_exeext conftest.$ac_ext
10235 fi
10236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10238 if test `eval echo '${'$as_ac_var'}'` = yes; then
10239   cat >>confdefs.h <<_ACEOF
10240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10241 _ACEOF
10242
10243 fi
10244 done
10245
10246 if test "x$ac_cv_func_fork" = xyes; then
10247   echo "$as_me:$LINENO: checking for working fork" >&5
10248 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
10249 if test "${ac_cv_func_fork_works+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   if test "$cross_compiling" = yes; then
10253   ac_cv_func_fork_works=cross
10254 else
10255   cat >conftest.$ac_ext <<_ACEOF
10256 /* By Ruediger Kuhlmann. */
10257       #include <sys/types.h>
10258       #if HAVE_UNISTD_H
10259       # include <unistd.h>
10260       #endif
10261       /* Some systems only have a dummy stub for fork() */
10262       int main ()
10263       {
10264         if (fork() < 0)
10265           exit (1);
10266         exit (0);
10267       }
10268 _ACEOF
10269 rm -f conftest$ac_exeext
10270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10271   (eval $ac_link) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276   (eval $ac_try) 2>&5
10277   ac_status=$?
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); }; }; then
10280   ac_cv_func_fork_works=yes
10281 else
10282   echo "$as_me: program exited with status $ac_status" >&5
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 ( exit $ac_status )
10287 ac_cv_func_fork_works=no
10288 fi
10289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10290 fi
10291 fi
10292 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10293 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
10294
10295 else
10296   ac_cv_func_fork_works=$ac_cv_func_fork
10297 fi
10298 if test "x$ac_cv_func_fork_works" = xcross; then
10299   case $host in
10300     *-*-amigaos* | *-*-msdosdjgpp*)
10301       # Override, as these systems have only a dummy fork() stub
10302       ac_cv_func_fork_works=no
10303       ;;
10304     *)
10305       ac_cv_func_fork_works=yes
10306       ;;
10307   esac
10308   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10309 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10310 fi
10311 ac_cv_func_vfork_works=$ac_cv_func_vfork
10312 if test "x$ac_cv_func_vfork" = xyes; then
10313   echo "$as_me:$LINENO: checking for working vfork" >&5
10314 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
10315 if test "${ac_cv_func_vfork_works+set}" = set; then
10316   echo $ECHO_N "(cached) $ECHO_C" >&6
10317 else
10318   if test "$cross_compiling" = yes; then
10319   ac_cv_func_vfork_works=cross
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h.  */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h.  */
10327 /* Thanks to Paul Eggert for this test.  */
10328 #include <stdio.h>
10329 #include <stdlib.h>
10330 #include <sys/types.h>
10331 #include <sys/stat.h>
10332 #include <sys/wait.h>
10333 #if HAVE_UNISTD_H
10334 # include <unistd.h>
10335 #endif
10336 #if HAVE_VFORK_H
10337 # include <vfork.h>
10338 #endif
10339 /* On some sparc systems, changes by the child to local and incoming
10340    argument registers are propagated back to the parent.  The compiler
10341    is told about this with #include <vfork.h>, but some compilers
10342    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10343    static variable whose address is put into a register that is
10344    clobbered by the vfork.  */
10345 static void
10346 #ifdef __cplusplus
10347 sparc_address_test (int arg)
10348 # else
10349 sparc_address_test (arg) int arg;
10350 #endif
10351 {
10352   static pid_t child;
10353   if (!child) {
10354     child = vfork ();
10355     if (child < 0) {
10356       perror ("vfork");
10357       _exit(2);
10358     }
10359     if (!child) {
10360       arg = getpid();
10361       write(-1, "", 0);
10362       _exit (arg);
10363     }
10364   }
10365 }
10366
10367 int
10368 main ()
10369 {
10370   pid_t parent = getpid ();
10371   pid_t child;
10372
10373   sparc_address_test (0);
10374
10375   child = vfork ();
10376
10377   if (child == 0) {
10378     /* Here is another test for sparc vfork register problems.  This
10379        test uses lots of local variables, at least as many local
10380        variables as main has allocated so far including compiler
10381        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10382        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10383        reuse the register of parent for one of the local variables,
10384        since it will think that parent can't possibly be used any more
10385        in this routine.  Assigning to the local variable will thus
10386        munge parent in the parent process.  */
10387     pid_t
10388       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10389       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10390     /* Convince the compiler that p..p7 are live; otherwise, it might
10391        use the same hardware register for all 8 local variables.  */
10392     if (p != p1 || p != p2 || p != p3 || p != p4
10393         || p != p5 || p != p6 || p != p7)
10394       _exit(1);
10395
10396     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10397        from child file descriptors.  If the child closes a descriptor
10398        before it execs or exits, this munges the parent's descriptor
10399        as well.  Test for this by closing stdout in the child.  */
10400     _exit(close(fileno(stdout)) != 0);
10401   } else {
10402     int status;
10403     struct stat st;
10404
10405     while (wait(&status) != child)
10406       ;
10407     exit(
10408          /* Was there some problem with vforking?  */
10409          child < 0
10410
10411          /* Did the child fail?  (This shouldn't happen.)  */
10412          || status
10413
10414          /* Did the vfork/compiler bug occur?  */
10415          || parent != getpid()
10416
10417          /* Did the file descriptor bug occur?  */
10418          || fstat(fileno(stdout), &st) != 0
10419          );
10420   }
10421 }
10422 _ACEOF
10423 rm -f conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425   (eval $ac_link) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430   (eval $ac_try) 2>&5
10431   ac_status=$?
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); }; }; then
10434   ac_cv_func_vfork_works=yes
10435 else
10436   echo "$as_me: program exited with status $ac_status" >&5
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10439
10440 ( exit $ac_status )
10441 ac_cv_func_vfork_works=no
10442 fi
10443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10444 fi
10445 fi
10446 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10447 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
10448
10449 fi;
10450 if test "x$ac_cv_func_fork_works" = xcross; then
10451   ac_cv_func_vfork_works=$ac_cv_func_vfork
10452   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10453 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10454 fi
10455
10456 if test "x$ac_cv_func_vfork_works" = xyes; then
10457
10458 cat >>confdefs.h <<\_ACEOF
10459 #define HAVE_WORKING_VFORK 1
10460 _ACEOF
10461
10462 else
10463
10464 cat >>confdefs.h <<\_ACEOF
10465 #define vfork fork
10466 _ACEOF
10467
10468 fi
10469 if test "x$ac_cv_func_fork_works" = xyes; then
10470
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_WORKING_FORK 1
10473 _ACEOF
10474
10475 fi
10476
10477
10478
10479       if test "X$prefix" = "XNONE"; then
10480     acl_final_prefix="$ac_default_prefix"
10481   else
10482     acl_final_prefix="$prefix"
10483   fi
10484   if test "X$exec_prefix" = "XNONE"; then
10485     acl_final_exec_prefix='${prefix}'
10486   else
10487     acl_final_exec_prefix="$exec_prefix"
10488   fi
10489   acl_save_prefix="$prefix"
10490   prefix="$acl_final_prefix"
10491   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10492   prefix="$acl_save_prefix"
10493
10494
10495 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10496 if test "${with_gnu_ld+set}" = set; then
10497   withval="$with_gnu_ld"
10498   test "$withval" = no || with_gnu_ld=yes
10499 else
10500   with_gnu_ld=no
10501 fi;
10502 # Prepare PATH_SEPARATOR.
10503 # The user is always right.
10504 if test "${PATH_SEPARATOR+set}" != set; then
10505   echo "#! /bin/sh" >conf$$.sh
10506   echo  "exit 0"   >>conf$$.sh
10507   chmod +x conf$$.sh
10508   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10509     PATH_SEPARATOR=';'
10510   else
10511     PATH_SEPARATOR=:
10512   fi
10513   rm -f conf$$.sh
10514 fi
10515 ac_prog=ld
10516 if test "$GCC" = yes; then
10517   # Check if gcc -print-prog-name=ld gives a path.
10518   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10519 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10520   case $host in
10521   *-*-mingw*)
10522     # gcc leaves a trailing carriage return which upsets mingw
10523     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10524   *)
10525     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10526   esac
10527   case $ac_prog in
10528     # Accept absolute paths.
10529     [\\/]* | [A-Za-z]:[\\/]*)
10530       re_direlt='/[^/][^/]*/\.\./'
10531       # Canonicalize the path of ld
10532       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10533       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10534         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10535       done
10536       test -z "$LD" && LD="$ac_prog"
10537       ;;
10538   "")
10539     # If it fails, then pretend we aren't using GCC.
10540     ac_prog=ld
10541     ;;
10542   *)
10543     # If it is relative, then search for the first ld in PATH.
10544     with_gnu_ld=unknown
10545     ;;
10546   esac
10547 elif test "$with_gnu_ld" = yes; then
10548   echo "$as_me:$LINENO: checking for GNU ld" >&5
10549 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10550 else
10551   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10552 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10553 fi
10554 if test "${acl_cv_path_LD+set}" = set; then
10555   echo $ECHO_N "(cached) $ECHO_C" >&6
10556 else
10557   if test -z "$LD"; then
10558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10559   for ac_dir in $PATH; do
10560     test -z "$ac_dir" && ac_dir=.
10561     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10562       acl_cv_path_LD="$ac_dir/$ac_prog"
10563       # Check to see if the program is GNU ld.  I'd rather use --version,
10564       # but apparently some GNU ld's only accept -v.
10565       # Break only if it was the GNU/non-GNU ld that we prefer.
10566       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10567         test "$with_gnu_ld" != no && break
10568       else
10569         test "$with_gnu_ld" != yes && break
10570       fi
10571     fi
10572   done
10573   IFS="$ac_save_ifs"
10574 else
10575   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10576 fi
10577 fi
10578
10579 LD="$acl_cv_path_LD"
10580 if test -n "$LD"; then
10581   echo "$as_me:$LINENO: result: $LD" >&5
10582 echo "${ECHO_T}$LD" >&6
10583 else
10584   echo "$as_me:$LINENO: result: no" >&5
10585 echo "${ECHO_T}no" >&6
10586 fi
10587 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10588 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10589    { (exit 1); exit 1; }; }
10590 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10591 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10592 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10596 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10597   acl_cv_prog_gnu_ld=yes
10598 else
10599   acl_cv_prog_gnu_ld=no
10600 fi
10601 fi
10602 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10603 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10604 with_gnu_ld=$acl_cv_prog_gnu_ld
10605
10606
10607
10608                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10609 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10610 if test "${acl_cv_rpath+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613
10614     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10615     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10616     . ./conftest.sh
10617     rm -f ./conftest.sh
10618     acl_cv_rpath=done
10619
10620 fi
10621 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10622 echo "${ECHO_T}$acl_cv_rpath" >&6
10623   wl="$acl_cv_wl"
10624   libext="$acl_cv_libext"
10625   shlibext="$acl_cv_shlibext"
10626   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10627   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10628   hardcode_direct="$acl_cv_hardcode_direct"
10629   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10630     # Check whether --enable-rpath or --disable-rpath was given.
10631 if test "${enable_rpath+set}" = set; then
10632   enableval="$enable_rpath"
10633   :
10634 else
10635   enable_rpath=yes
10636 fi;
10637
10638
10639
10640
10641
10642
10643
10644     use_additional=yes
10645
10646   acl_save_prefix="$prefix"
10647   prefix="$acl_final_prefix"
10648   acl_save_exec_prefix="$exec_prefix"
10649   exec_prefix="$acl_final_exec_prefix"
10650
10651     eval additional_includedir=\"$includedir\"
10652     eval additional_libdir=\"$libdir\"
10653
10654   exec_prefix="$acl_save_exec_prefix"
10655   prefix="$acl_save_prefix"
10656
10657
10658 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10659 if test "${with_libiconv_prefix+set}" = set; then
10660   withval="$with_libiconv_prefix"
10661
10662     if test "X$withval" = "Xno"; then
10663       use_additional=no
10664     else
10665       if test "X$withval" = "X"; then
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
10672           eval additional_includedir=\"$includedir\"
10673           eval additional_libdir=\"$libdir\"
10674
10675   exec_prefix="$acl_save_exec_prefix"
10676   prefix="$acl_save_prefix"
10677
10678       else
10679         additional_includedir="$withval/include"
10680         additional_libdir="$withval/lib"
10681       fi
10682     fi
10683
10684 fi;
10685       LIBICONV=
10686   LTLIBICONV=
10687   INCICONV=
10688   rpathdirs=
10689   ltrpathdirs=
10690   names_already_handled=
10691   names_next_round='iconv '
10692   while test -n "$names_next_round"; do
10693     names_this_round="$names_next_round"
10694     names_next_round=
10695     for name in $names_this_round; do
10696       already_handled=
10697       for n in $names_already_handled; do
10698         if test "$n" = "$name"; then
10699           already_handled=yes
10700           break
10701         fi
10702       done
10703       if test -z "$already_handled"; then
10704         names_already_handled="$names_already_handled $name"
10705                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10706         eval value=\"\$HAVE_LIB$uppername\"
10707         if test -n "$value"; then
10708           if test "$value" = yes; then
10709             eval value=\"\$LIB$uppername\"
10710             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10711             eval value=\"\$LTLIB$uppername\"
10712             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10713           else
10714                                     :
10715           fi
10716         else
10717                               found_dir=
10718           found_la=
10719           found_so=
10720           found_a=
10721           if test $use_additional = yes; then
10722             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10723               found_dir="$additional_libdir"
10724               found_so="$additional_libdir/lib$name.$shlibext"
10725               if test -f "$additional_libdir/lib$name.la"; then
10726                 found_la="$additional_libdir/lib$name.la"
10727               fi
10728             else
10729               if test -f "$additional_libdir/lib$name.$libext"; then
10730                 found_dir="$additional_libdir"
10731                 found_a="$additional_libdir/lib$name.$libext"
10732                 if test -f "$additional_libdir/lib$name.la"; then
10733                   found_la="$additional_libdir/lib$name.la"
10734                 fi
10735               fi
10736             fi
10737           fi
10738           if test "X$found_dir" = "X"; then
10739             for x in $LDFLAGS $LTLIBICONV; do
10740
10741   acl_save_prefix="$prefix"
10742   prefix="$acl_final_prefix"
10743   acl_save_exec_prefix="$exec_prefix"
10744   exec_prefix="$acl_final_exec_prefix"
10745   eval x=\"$x\"
10746   exec_prefix="$acl_save_exec_prefix"
10747   prefix="$acl_save_prefix"
10748
10749               case "$x" in
10750                 -L*)
10751                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10752                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10753                     found_dir="$dir"
10754                     found_so="$dir/lib$name.$shlibext"
10755                     if test -f "$dir/lib$name.la"; then
10756                       found_la="$dir/lib$name.la"
10757                     fi
10758                   else
10759                     if test -f "$dir/lib$name.$libext"; then
10760                       found_dir="$dir"
10761                       found_a="$dir/lib$name.$libext"
10762                       if test -f "$dir/lib$name.la"; then
10763                         found_la="$dir/lib$name.la"
10764                       fi
10765                     fi
10766                   fi
10767                   ;;
10768               esac
10769               if test "X$found_dir" != "X"; then
10770                 break
10771               fi
10772             done
10773           fi
10774           if test "X$found_dir" != "X"; then
10775                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10776             if test "X$found_so" != "X"; then
10777                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10778                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10779               else
10780                                                                                 haveit=
10781                 for x in $ltrpathdirs; do
10782                   if test "X$x" = "X$found_dir"; then
10783                     haveit=yes
10784                     break
10785                   fi
10786                 done
10787                 if test -z "$haveit"; then
10788                   ltrpathdirs="$ltrpathdirs $found_dir"
10789                 fi
10790                                 if test "$hardcode_direct" = yes; then
10791                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10792                 else
10793                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10794                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10795                                                             haveit=
10796                     for x in $rpathdirs; do
10797                       if test "X$x" = "X$found_dir"; then
10798                         haveit=yes
10799                         break
10800                       fi
10801                     done
10802                     if test -z "$haveit"; then
10803                       rpathdirs="$rpathdirs $found_dir"
10804                     fi
10805                   else
10806                                                                                 haveit=
10807                     for x in $LDFLAGS $LIBICONV; do
10808
10809   acl_save_prefix="$prefix"
10810   prefix="$acl_final_prefix"
10811   acl_save_exec_prefix="$exec_prefix"
10812   exec_prefix="$acl_final_exec_prefix"
10813   eval x=\"$x\"
10814   exec_prefix="$acl_save_exec_prefix"
10815   prefix="$acl_save_prefix"
10816
10817                       if test "X$x" = "X-L$found_dir"; then
10818                         haveit=yes
10819                         break
10820                       fi
10821                     done
10822                     if test -z "$haveit"; then
10823                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10824                     fi
10825                     if test "$hardcode_minus_L" != no; then
10826                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10827                     else
10828                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10829                     fi
10830                   fi
10831                 fi
10832               fi
10833             else
10834               if test "X$found_a" != "X"; then
10835                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10836               else
10837                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10838               fi
10839             fi
10840                         additional_includedir=
10841             case "$found_dir" in
10842               */lib | */lib/)
10843                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10844                 additional_includedir="$basedir/include"
10845                 ;;
10846             esac
10847             if test "X$additional_includedir" != "X"; then
10848                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10849                 haveit=
10850                 if test "X$additional_includedir" = "X/usr/local/include"; then
10851                   if test -n "$GCC"; then
10852                     case $host_os in
10853                       linux*) haveit=yes;;
10854                     esac
10855                   fi
10856                 fi
10857                 if test -z "$haveit"; then
10858                   for x in $CPPFLAGS $INCICONV; do
10859
10860   acl_save_prefix="$prefix"
10861   prefix="$acl_final_prefix"
10862   acl_save_exec_prefix="$exec_prefix"
10863   exec_prefix="$acl_final_exec_prefix"
10864   eval x=\"$x\"
10865   exec_prefix="$acl_save_exec_prefix"
10866   prefix="$acl_save_prefix"
10867
10868                     if test "X$x" = "X-I$additional_includedir"; then
10869                       haveit=yes
10870                       break
10871                     fi
10872                   done
10873                   if test -z "$haveit"; then
10874                     if test -d "$additional_includedir"; then
10875                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10876                     fi
10877                   fi
10878                 fi
10879               fi
10880             fi
10881                         if test -n "$found_la"; then
10882                                                         save_libdir="$libdir"
10883               case "$found_la" in
10884                 */* | *\\*) . "$found_la" ;;
10885                 *) . "./$found_la" ;;
10886               esac
10887               libdir="$save_libdir"
10888                             for dep in $dependency_libs; do
10889                 case "$dep" in
10890                   -L*)
10891                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10892                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10893                       haveit=
10894                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10895                         if test -n "$GCC"; then
10896                           case $host_os in
10897                             linux*) haveit=yes;;
10898                           esac
10899                         fi
10900                       fi
10901                       if test -z "$haveit"; then
10902                         haveit=
10903                         for x in $LDFLAGS $LIBICONV; do
10904
10905   acl_save_prefix="$prefix"
10906   prefix="$acl_final_prefix"
10907   acl_save_exec_prefix="$exec_prefix"
10908   exec_prefix="$acl_final_exec_prefix"
10909   eval x=\"$x\"
10910   exec_prefix="$acl_save_exec_prefix"
10911   prefix="$acl_save_prefix"
10912
10913                           if test "X$x" = "X-L$additional_libdir"; then
10914                             haveit=yes
10915                             break
10916                           fi
10917                         done
10918                         if test -z "$haveit"; then
10919                           if test -d "$additional_libdir"; then
10920                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10921                           fi
10922                         fi
10923                         haveit=
10924                         for x in $LDFLAGS $LTLIBICONV; do
10925
10926   acl_save_prefix="$prefix"
10927   prefix="$acl_final_prefix"
10928   acl_save_exec_prefix="$exec_prefix"
10929   exec_prefix="$acl_final_exec_prefix"
10930   eval x=\"$x\"
10931   exec_prefix="$acl_save_exec_prefix"
10932   prefix="$acl_save_prefix"
10933
10934                           if test "X$x" = "X-L$additional_libdir"; then
10935                             haveit=yes
10936                             break
10937                           fi
10938                         done
10939                         if test -z "$haveit"; then
10940                           if test -d "$additional_libdir"; then
10941                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10942                           fi
10943                         fi
10944                       fi
10945                     fi
10946                     ;;
10947                   -R*)
10948                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10949                     if test "$enable_rpath" != no; then
10950                                                                   haveit=
10951                       for x in $rpathdirs; do
10952                         if test "X$x" = "X$dir"; then
10953                           haveit=yes
10954                           break
10955                         fi
10956                       done
10957                       if test -z "$haveit"; then
10958                         rpathdirs="$rpathdirs $dir"
10959                       fi
10960                                                                   haveit=
10961                       for x in $ltrpathdirs; do
10962                         if test "X$x" = "X$dir"; then
10963                           haveit=yes
10964                           break
10965                         fi
10966                       done
10967                       if test -z "$haveit"; then
10968                         ltrpathdirs="$ltrpathdirs $dir"
10969                       fi
10970                     fi
10971                     ;;
10972                   -l*)
10973                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10974                     ;;
10975                   *.la)
10976                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10977                     ;;
10978                   *)
10979                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10980                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10981                     ;;
10982                 esac
10983               done
10984             fi
10985           else
10986                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10987             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10988           fi
10989         fi
10990       fi
10991     done
10992   done
10993   if test "X$rpathdirs" != "X"; then
10994     if test -n "$hardcode_libdir_separator"; then
10995                         alldirs=
10996       for found_dir in $rpathdirs; do
10997         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10998       done
10999             acl_save_libdir="$libdir"
11000       libdir="$alldirs"
11001       eval flag=\"$hardcode_libdir_flag_spec\"
11002       libdir="$acl_save_libdir"
11003       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11004     else
11005             for found_dir in $rpathdirs; do
11006         acl_save_libdir="$libdir"
11007         libdir="$found_dir"
11008         eval flag=\"$hardcode_libdir_flag_spec\"
11009         libdir="$acl_save_libdir"
11010         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11011       done
11012     fi
11013   fi
11014   if test "X$ltrpathdirs" != "X"; then
11015             for found_dir in $ltrpathdirs; do
11016       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11017     done
11018   fi
11019
11020
11021
11022
11023
11024
11025
11026           am_save_CPPFLAGS="$CPPFLAGS"
11027
11028   for element in $INCICONV; do
11029     haveit=
11030     for x in $CPPFLAGS; do
11031
11032   acl_save_prefix="$prefix"
11033   prefix="$acl_final_prefix"
11034   acl_save_exec_prefix="$exec_prefix"
11035   exec_prefix="$acl_final_exec_prefix"
11036   eval x=\"$x\"
11037   exec_prefix="$acl_save_exec_prefix"
11038   prefix="$acl_save_prefix"
11039
11040       if test "X$x" = "X$element"; then
11041         haveit=yes
11042         break
11043       fi
11044     done
11045     if test -z "$haveit"; then
11046       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11047     fi
11048   done
11049
11050
11051   echo "$as_me:$LINENO: checking for iconv" >&5
11052 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11053 if test "${am_cv_func_iconv+set}" = set; then
11054   echo $ECHO_N "(cached) $ECHO_C" >&6
11055 else
11056
11057     am_cv_func_iconv="no, consider installing GNU libiconv"
11058     am_cv_lib_iconv=no
11059     cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065 #include <stdlib.h>
11066 #include <iconv.h>
11067 int
11068 main ()
11069 {
11070 iconv_t cd = iconv_open("","");
11071        iconv(cd,NULL,NULL,NULL,NULL);
11072        iconv_close(cd);
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079   (eval $ac_link) 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } &&
11086          { ac_try='test -z "$ac_c_werror_flag"
11087                          || test ! -s conftest.err'
11088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089   (eval $ac_try) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; } &&
11093          { ac_try='test -s conftest$ac_exeext'
11094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095   (eval $ac_try) 2>&5
11096   ac_status=$?
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); }; }; then
11099   am_cv_func_iconv=yes
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 fi
11105 rm -f conftest.err conftest.$ac_objext \
11106       conftest$ac_exeext conftest.$ac_ext
11107     if test "$am_cv_func_iconv" != yes; then
11108       am_save_LIBS="$LIBS"
11109       LIBS="$LIBS $LIBICONV"
11110       cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <stdlib.h>
11117 #include <iconv.h>
11118 int
11119 main ()
11120 {
11121 iconv_t cd = iconv_open("","");
11122          iconv(cd,NULL,NULL,NULL,NULL);
11123          iconv_close(cd);
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11130   (eval $ac_link) 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -z "$ac_c_werror_flag"
11138                          || test ! -s conftest.err'
11139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11140   (eval $ac_try) 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; } &&
11144          { ac_try='test -s conftest$ac_exeext'
11145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11146   (eval $ac_try) 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; }; then
11150   am_cv_lib_iconv=yes
11151         am_cv_func_iconv=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 fi
11157 rm -f conftest.err conftest.$ac_objext \
11158       conftest$ac_exeext conftest.$ac_ext
11159       LIBS="$am_save_LIBS"
11160     fi
11161
11162 fi
11163 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11164 echo "${ECHO_T}$am_cv_func_iconv" >&6
11165   if test "$am_cv_func_iconv" = yes; then
11166
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_ICONV 1
11169 _ACEOF
11170
11171   fi
11172   if test "$am_cv_lib_iconv" = yes; then
11173     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11174 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11175     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11176 echo "${ECHO_T}$LIBICONV" >&6
11177   else
11178             CPPFLAGS="$am_save_CPPFLAGS"
11179     LIBICONV=
11180     LTLIBICONV=
11181   fi
11182
11183
11184
11185   if test "$am_cv_func_iconv" = yes; then
11186     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11187 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11188     if test "${am_cv_proto_iconv+set}" = set; then
11189   echo $ECHO_N "(cached) $ECHO_C" >&6
11190 else
11191
11192       cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h.  */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h.  */
11198
11199 #include <stdlib.h>
11200 #include <iconv.h>
11201 extern
11202 #ifdef __cplusplus
11203 "C"
11204 #endif
11205 #if defined(__STDC__) || defined(__cplusplus)
11206 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11207 #else
11208 size_t iconv();
11209 #endif
11210
11211 int
11212 main ()
11213 {
11214
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11221   (eval $ac_compile) 2>conftest.er1
11222   ac_status=$?
11223   grep -v '^ *+' conftest.er1 >conftest.err
11224   rm -f conftest.er1
11225   cat conftest.err >&5
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } &&
11228          { ac_try='test -z "$ac_c_werror_flag"
11229                          || test ! -s conftest.err'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; } &&
11235          { ac_try='test -s conftest.$ac_objext'
11236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237   (eval $ac_try) 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; }; then
11241   am_cv_proto_iconv_arg1=""
11242 else
11243   echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246 am_cv_proto_iconv_arg1="const"
11247 fi
11248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11249       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);"
11250 fi
11251
11252     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11253     echo "$as_me:$LINENO: result: ${ac_t:-
11254          }$am_cv_proto_iconv" >&5
11255 echo "${ECHO_T}${ac_t:-
11256          }$am_cv_proto_iconv" >&6
11257
11258 cat >>confdefs.h <<_ACEOF
11259 #define ICONV_CONST $am_cv_proto_iconv_arg1
11260 _ACEOF
11261
11262   fi
11263
11264 # Until we have in-tree GNU iconv:
11265 LIBICONV_DEP=
11266
11267
11268
11269   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11270 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11271 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11272   echo $ECHO_N "(cached) $ECHO_C" >&6
11273 else
11274   cat >conftest.$ac_ext <<_ACEOF
11275 /* confdefs.h.  */
11276 _ACEOF
11277 cat confdefs.h >>conftest.$ac_ext
11278 cat >>conftest.$ac_ext <<_ACEOF
11279 /* end confdefs.h.  */
11280 #include <locale.h>
11281 int
11282 main ()
11283 {
11284 return LC_MESSAGES
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291   (eval $ac_link) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"
11299                          || test ! -s conftest.err'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest$ac_exeext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   am_cv_val_LC_MESSAGES=yes
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 am_cv_val_LC_MESSAGES=no
11317 fi
11318 rm -f conftest.err conftest.$ac_objext \
11319       conftest$ac_exeext conftest.$ac_ext
11320 fi
11321 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11322 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11323   if test $am_cv_val_LC_MESSAGES = yes; then
11324
11325 cat >>confdefs.h <<\_ACEOF
11326 #define HAVE_LC_MESSAGES 1
11327 _ACEOF
11328
11329   fi
11330
11331
11332
11333   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11334 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11335 if test "${am_cv_langinfo_codeset+set}" = set; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338   cat >conftest.$ac_ext <<_ACEOF
11339 /* confdefs.h.  */
11340 _ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h.  */
11344 #include <langinfo.h>
11345 int
11346 main ()
11347 {
11348 char* cs = nl_langinfo(CODESET);
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355   (eval $ac_link) 2>conftest.er1
11356   ac_status=$?
11357   grep -v '^ *+' conftest.er1 >conftest.err
11358   rm -f conftest.er1
11359   cat conftest.err >&5
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); } &&
11362          { ac_try='test -z "$ac_c_werror_flag"
11363                          || test ! -s conftest.err'
11364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365   (eval $ac_try) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; } &&
11369          { ac_try='test -s conftest$ac_exeext'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; }; then
11375   am_cv_langinfo_codeset=yes
11376 else
11377   echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 am_cv_langinfo_codeset=no
11381 fi
11382 rm -f conftest.err conftest.$ac_objext \
11383       conftest$ac_exeext conftest.$ac_ext
11384
11385 fi
11386 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11387 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11388   if test $am_cv_langinfo_codeset = yes; then
11389
11390 cat >>confdefs.h <<\_ACEOF
11391 #define HAVE_LANGINFO_CODESET 1
11392 _ACEOF
11393
11394   fi
11395
11396
11397 # We will need to find libiberty.h and ansidecl.h
11398 saved_CFLAGS="$CFLAGS"
11399 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
11440         strsignal strstr strverscmp \
11441         errno snprintf vsnprintf vasprintf malloc realloc calloc \
11442         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
11443 do
11444   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11445 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11446 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11447 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11448   echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450   cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 #undef $ac_tr_decl
11457 #define $ac_tr_decl 1
11458
11459 #include "ansidecl.h"
11460 #include "system.h"
11461
11462 int
11463 main ()
11464 {
11465 #ifndef $ac_func
11466 char *(*pfn) = (char *(*)) $ac_func ;
11467 #endif
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest.$ac_objext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11474   (eval $ac_compile) 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } &&
11481          { ac_try='test -z "$ac_c_werror_flag"
11482                          || test ! -s conftest.err'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; } &&
11488          { ac_try='test -s conftest.$ac_objext'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494   eval "gcc_cv_have_decl_$ac_func=yes"
11495 else
11496   echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 eval "gcc_cv_have_decl_$ac_func=no"
11500 fi
11501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11502 fi
11503
11504 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11505   echo "$as_me:$LINENO: result: yes" >&5
11506 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11507 #define $ac_tr_decl 1
11508 _ACEOF
11509
11510 else
11511   echo "$as_me:$LINENO: result: no" >&5
11512 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11513 #define $ac_tr_decl 0
11514 _ACEOF
11515
11516 fi
11517
11518 done
11519
11520
11521
11522
11523
11524 for ac_func in getrlimit setrlimit getrusage
11525 do
11526   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11527 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11528 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11529 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11530   echo $ECHO_N "(cached) $ECHO_C" >&6
11531 else
11532   cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h.  */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h.  */
11538 #undef $ac_tr_decl
11539 #define $ac_tr_decl 1
11540
11541 #include "ansidecl.h"
11542 #include "system.h"
11543 #ifdef HAVE_SYS_RESOURCE_H
11544 #include <sys/resource.h>
11545 #endif
11546
11547
11548 int
11549 main ()
11550 {
11551 #ifndef $ac_func
11552 char *(*pfn) = (char *(*)) $ac_func ;
11553 #endif
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } &&
11567          { ac_try='test -z "$ac_c_werror_flag"
11568                          || test ! -s conftest.err'
11569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11570   (eval $ac_try) 2>&5
11571   ac_status=$?
11572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573   (exit $ac_status); }; } &&
11574          { ac_try='test -s conftest.$ac_objext'
11575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11576   (eval $ac_try) 2>&5
11577   ac_status=$?
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); }; }; then
11580   eval "gcc_cv_have_decl_$ac_func=yes"
11581 else
11582   echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.$ac_ext >&5
11584
11585 eval "gcc_cv_have_decl_$ac_func=no"
11586 fi
11587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588 fi
11589
11590 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11591   echo "$as_me:$LINENO: result: yes" >&5
11592 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11593 #define $ac_tr_decl 1
11594 _ACEOF
11595
11596 else
11597   echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11599 #define $ac_tr_decl 0
11600 _ACEOF
11601
11602 fi
11603
11604 done
11605
11606
11607 cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613
11614 #include "ansidecl.h"
11615 #include "system.h"
11616 #ifdef HAVE_SYS_RESOURCE_H
11617 #include <sys/resource.h>
11618 #endif
11619
11620 int
11621 main ()
11622 {
11623 rlim_t l = 0;
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11630   (eval $ac_compile) 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -z "$ac_c_werror_flag"
11638                          || test ! -s conftest.err'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; } &&
11644          { ac_try='test -s conftest.$ac_objext'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   :
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define rlim_t long
11658 _ACEOF
11659
11660 fi
11661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11662
11663 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11664 # FREAD and FWRITE macros.  Fortunately, for GCC's single usage of ldgetname
11665 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11666 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11667
11668 for ac_func in ldgetname
11669 do
11670   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11671 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11672 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11673 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682 #undef $ac_tr_decl
11683 #define $ac_tr_decl 1
11684
11685 #include "ansidecl.h"
11686 #include "system.h"
11687 #ifdef HAVE_LDFCN_H
11688 #undef FREAD
11689 #undef FWRITE
11690 #include <ldfcn.h>
11691 #endif
11692
11693
11694 int
11695 main ()
11696 {
11697 #ifndef $ac_func
11698 char *(*pfn) = (char *(*)) $ac_func ;
11699 #endif
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706   (eval $ac_compile) 2>conftest.er1
11707   ac_status=$?
11708   grep -v '^ *+' conftest.er1 >conftest.err
11709   rm -f conftest.er1
11710   cat conftest.err >&5
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } &&
11713          { ac_try='test -z "$ac_c_werror_flag"
11714                          || test ! -s conftest.err'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; } &&
11720          { ac_try='test -s conftest.$ac_objext'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; }; then
11726   eval "gcc_cv_have_decl_$ac_func=yes"
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 eval "gcc_cv_have_decl_$ac_func=no"
11732 fi
11733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11734 fi
11735
11736 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11737   echo "$as_me:$LINENO: result: yes" >&5
11738 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11739 #define $ac_tr_decl 1
11740 _ACEOF
11741
11742 else
11743   echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11745 #define $ac_tr_decl 0
11746 _ACEOF
11747
11748 fi
11749
11750 done
11751
11752
11753
11754 for ac_func in times
11755 do
11756   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11757 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11758 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11759 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11760   echo $ECHO_N "(cached) $ECHO_C" >&6
11761 else
11762   cat >conftest.$ac_ext <<_ACEOF
11763 /* confdefs.h.  */
11764 _ACEOF
11765 cat confdefs.h >>conftest.$ac_ext
11766 cat >>conftest.$ac_ext <<_ACEOF
11767 /* end confdefs.h.  */
11768 #undef $ac_tr_decl
11769 #define $ac_tr_decl 1
11770
11771 #include "ansidecl.h"
11772 #include "system.h"
11773 #ifdef HAVE_SYS_TIMES_H
11774 #include <sys/times.h>
11775 #endif
11776
11777
11778 int
11779 main ()
11780 {
11781 #ifndef $ac_func
11782 char *(*pfn) = (char *(*)) $ac_func ;
11783 #endif
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11790   (eval $ac_compile) 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } &&
11797          { ac_try='test -z "$ac_c_werror_flag"
11798                          || test ! -s conftest.err'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; } &&
11804          { ac_try='test -s conftest.$ac_objext'
11805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806   (eval $ac_try) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; }; then
11810   eval "gcc_cv_have_decl_$ac_func=yes"
11811 else
11812   echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815 eval "gcc_cv_have_decl_$ac_func=no"
11816 fi
11817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11818 fi
11819
11820 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11821   echo "$as_me:$LINENO: result: yes" >&5
11822 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11823 #define $ac_tr_decl 1
11824 _ACEOF
11825
11826 else
11827   echo "$as_me:$LINENO: result: no" >&5
11828 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11829 #define $ac_tr_decl 0
11830 _ACEOF
11831
11832 fi
11833
11834 done
11835
11836
11837
11838 for ac_func in sigaltstack
11839 do
11840   ac_tr_decl=`echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11841 echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5
11842 echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6
11843 if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852 #undef $ac_tr_decl
11853 #define $ac_tr_decl 1
11854
11855 #include "ansidecl.h"
11856 #include "system.h"
11857 #include <signal.h>
11858
11859
11860 int
11861 main ()
11862 {
11863 #ifndef $ac_func
11864 char *(*pfn) = (char *(*)) $ac_func ;
11865 #endif
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11872   (eval $ac_compile) 2>conftest.er1
11873   ac_status=$?
11874   grep -v '^ *+' conftest.er1 >conftest.err
11875   rm -f conftest.er1
11876   cat conftest.err >&5
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -z "$ac_c_werror_flag"
11880                          || test ! -s conftest.err'
11881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882   (eval $ac_try) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; } &&
11886          { ac_try='test -s conftest.$ac_objext'
11887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888   (eval $ac_try) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892   eval "gcc_cv_have_decl_$ac_func=yes"
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 eval "gcc_cv_have_decl_$ac_func=no"
11898 fi
11899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11900 fi
11901
11902 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11903   echo "$as_me:$LINENO: result: yes" >&5
11904 echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF
11905 #define $ac_tr_decl 1
11906 _ACEOF
11907
11908 else
11909   echo "$as_me:$LINENO: result: no" >&5
11910 echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF
11911 #define $ac_tr_decl 0
11912 _ACEOF
11913
11914 fi
11915
11916 done
11917
11918
11919 # More time-related stuff.
11920 echo "$as_me:$LINENO: checking for struct tms" >&5
11921 echo $ECHO_N "checking for struct tms... $ECHO_C" >&6
11922 if test "${ac_cv_struct_tms+set}" = set; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932
11933 #include "ansidecl.h"
11934 #include "system.h"
11935 #ifdef HAVE_SYS_TIMES_H
11936 #include <sys/times.h>
11937 #endif
11938
11939 int
11940 main ()
11941 {
11942 struct tms tms;
11943   ;
11944   return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949   (eval $ac_compile) 2>conftest.er1
11950   ac_status=$?
11951   grep -v '^ *+' conftest.er1 >conftest.err
11952   rm -f conftest.er1
11953   cat conftest.err >&5
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); } &&
11956          { ac_try='test -z "$ac_c_werror_flag"
11957                          || test ! -s conftest.err'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; } &&
11963          { ac_try='test -s conftest.$ac_objext'
11964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965   (eval $ac_try) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; }; then
11969   ac_cv_struct_tms=yes
11970 else
11971   echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 ac_cv_struct_tms=no
11975 fi
11976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11977 fi
11978 echo "$as_me:$LINENO: result: $ac_cv_struct_tms" >&5
11979 echo "${ECHO_T}$ac_cv_struct_tms" >&6
11980 if test $ac_cv_struct_tms = yes; then
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_STRUCT_TMS 1
11984 _ACEOF
11985
11986 fi
11987
11988 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11989 # revisit after autoconf 2.50.
11990 echo "$as_me:$LINENO: checking for clock_t" >&5
11991 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
11992 if test "${gcc_cv_type_clock_t+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995
11996 cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002
12003 #include "ansidecl.h"
12004 #include "system.h"
12005
12006 int
12007 main ()
12008 {
12009 clock_t x;
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 rm -f conftest.$ac_objext
12015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12016   (eval $ac_compile) 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } &&
12023          { ac_try='test -z "$ac_c_werror_flag"
12024                          || test ! -s conftest.err'
12025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026   (eval $ac_try) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; } &&
12030          { ac_try='test -s conftest.$ac_objext'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; }; then
12036   gcc_cv_type_clock_t=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 gcc_cv_type_clock_t=no
12042 fi
12043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12044 fi
12045 echo "$as_me:$LINENO: result: $gcc_cv_type_clock_t" >&5
12046 echo "${ECHO_T}$gcc_cv_type_clock_t" >&6
12047 if test $gcc_cv_type_clock_t = yes; then
12048
12049 cat >>confdefs.h <<\_ACEOF
12050 #define HAVE_CLOCK_T 1
12051 _ACEOF
12052
12053 fi
12054
12055 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
12056 CFLAGS="$saved_CFLAGS"
12057
12058 # Check whether --enable-initfini-array or --disable-initfini-array was given.
12059 if test "${enable_initfini_array+set}" = set; then
12060   enableval="$enable_initfini_array"
12061
12062 else
12063
12064 echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
12065 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
12066 if test "${gcc_cv_initfini_array+set}" = set; then
12067   echo $ECHO_N "(cached) $ECHO_C" >&6
12068 else
12069     if test "$cross_compiling" = yes; then
12070   gcc_cv_initfini_array=no
12071 else
12072   cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078
12079 static int x = -1;
12080 int main (void) { return x; }
12081 int foo (void) { x = 0; }
12082 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12083 _ACEOF
12084 rm -f conftest$ac_exeext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086   (eval $ac_link) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; }; then
12095   gcc_cv_initfini_array=yes
12096 else
12097   echo "$as_me: program exited with status $ac_status" >&5
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101 ( exit $ac_status )
12102 gcc_cv_initfini_array=no
12103 fi
12104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12105 fi
12106 fi
12107 echo "$as_me:$LINENO: result: $gcc_cv_initfini_array" >&5
12108 echo "${ECHO_T}$gcc_cv_initfini_array" >&6
12109   enable_initfini_array=$gcc_cv_initfini_array
12110
12111 fi;
12112 if test $enable_initfini_array = yes; then
12113
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_INITFINI_ARRAY 1
12116 _ACEOF
12117
12118 fi
12119
12120 # mkdir takes a single argument on some systems.
12121 echo "$as_me:$LINENO: checking if mkdir takes one argument" >&5
12122 echo $ECHO_N "checking if mkdir takes one argument... $ECHO_C" >&6
12123 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then
12124   echo $ECHO_N "(cached) $ECHO_C" >&6
12125 else
12126   cat >conftest.$ac_ext <<_ACEOF
12127 /* confdefs.h.  */
12128 _ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h.  */
12132
12133 #include <sys/types.h>
12134 #ifdef HAVE_SYS_STAT_H
12135 # include <sys/stat.h>
12136 #endif
12137 #ifdef HAVE_UNISTD_H
12138 # include <unistd.h>
12139 #endif
12140 #ifdef HAVE_DIRECT_H
12141 # include <direct.h>
12142 #endif
12143 int
12144 main ()
12145 {
12146 mkdir ("foo", 0);
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153   (eval $ac_compile) 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -z "$ac_c_werror_flag"
12161                          || test ! -s conftest.err'
12162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163   (eval $ac_try) 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); }; } &&
12167          { ac_try='test -s conftest.$ac_objext'
12168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169   (eval $ac_try) 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; }; then
12173   gcc_cv_mkdir_takes_one_arg=no
12174 else
12175   echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 gcc_cv_mkdir_takes_one_arg=yes
12179 fi
12180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12181 fi
12182 echo "$as_me:$LINENO: result: $gcc_cv_mkdir_takes_one_arg" >&5
12183 echo "${ECHO_T}$gcc_cv_mkdir_takes_one_arg" >&6
12184 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define MKDIR_TAKES_ONE_ARG 1
12188 _ACEOF
12189
12190 fi
12191
12192
12193 # File extensions
12194 manext='.1'
12195 objext='.o'
12196
12197
12198
12199 # With Setjmp/Longjmp based exception handling.
12200 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
12201 if test "${enable_sjlj_exceptions+set}" = set; then
12202   enableval="$enable_sjlj_exceptions"
12203   sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
12204
12205 cat >>confdefs.h <<_ACEOF
12206 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
12207 _ACEOF
12208
12209 fi;
12210
12211 # For platforms with the unwind ABI which includes an unwind library,
12212 # libunwind, we can choose to use the system libunwind.
12213
12214 # Check whether --with-system-libunwind or --without-system-libunwind was given.
12215 if test "${with_system_libunwind+set}" = set; then
12216   withval="$with_system_libunwind"
12217
12218 fi;
12219
12220 # config.gcc also contains tests of with_system_libunwind.
12221 if test x$with_system_libunwind = xyes; then
12222
12223 cat >>confdefs.h <<\_ACEOF
12224 #define HAVE_GETIPINFO 1
12225 _ACEOF
12226
12227 fi
12228
12229 # --------------------------------------------------------
12230 # Build, host, and target specific configuration fragments
12231 # --------------------------------------------------------
12232
12233 # Collect build-machine-specific information.
12234 . ${srcdir}/config.build
12235
12236 # Collect host-machine-specific information.
12237 . ${srcdir}/config.host
12238
12239 target_gtfiles=
12240
12241 # Collect target-machine-specific information.
12242 . ${srcdir}/config.gcc
12243
12244 extra_objs="${host_extra_objs} ${extra_objs}"
12245 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
12246
12247 # Default the target-machine variables that were not explicitly set.
12248 if test x"$tm_file" = x
12249 then tm_file=$cpu_type/$cpu_type.h; fi
12250
12251 if test x"$extra_headers" = x
12252 then extra_headers=; fi
12253
12254 if test x$md_file = x
12255 then md_file=$cpu_type/$cpu_type.md; fi
12256
12257 if test x$out_file = x
12258 then out_file=$cpu_type/$cpu_type.c; fi
12259
12260 if test x"$tmake_file" = x
12261 then tmake_file=$cpu_type/t-$cpu_type
12262 fi
12263
12264 if test x"$dwarf2" = xyes
12265 then tm_file="$tm_file tm-dwarf2.h"
12266 fi
12267
12268 # Say what files are being used for the output code and MD file.
12269 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12270 echo "Using \`$srcdir/config/$md_file' as machine description file."
12271
12272 # If any of the xm_file variables contain nonexistent files, warn
12273 # about them and drop them.
12274
12275 bx=
12276 for x in $build_xm_file; do
12277   if    test -f $srcdir/config/$x
12278   then      bx="$bx $x"
12279   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12280 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12281   fi
12282 done
12283 build_xm_file="$bx"
12284
12285 hx=
12286 for x in $host_xm_file; do
12287   if    test -f $srcdir/config/$x
12288   then      hx="$hx $x"
12289   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12290 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12291   fi
12292 done
12293 host_xm_file="$hx"
12294
12295 tx=
12296 for x in $xm_file; do
12297   if    test -f $srcdir/config/$x
12298   then      tx="$tx $x"
12299   else      { echo "$as_me:$LINENO: WARNING: $srcdir/config/$x does not exist." >&5
12300 echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12301   fi
12302 done
12303 xm_file="$tx"
12304
12305 count=a
12306 for f in $tm_file; do
12307         count=${count}x
12308 done
12309 if test $count = ax; then
12310         echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12311 else
12312         echo "Using the following target machine macro files:"
12313         for f in $tm_file; do
12314                 echo "  $srcdir/config/$f"
12315         done
12316 fi
12317
12318 if test x$need_64bit_hwint = xyes; then
12319
12320 cat >>confdefs.h <<\_ACEOF
12321 #define NEED_64BIT_HOST_WIDE_INT 1
12322 _ACEOF
12323
12324 fi
12325
12326 if test x$use_long_long_for_widest_fast_int = xyes; then
12327
12328 cat >>confdefs.h <<\_ACEOF
12329 #define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1
12330 _ACEOF
12331
12332 fi
12333
12334 count=a
12335 for f in $host_xm_file; do
12336         count=${count}x
12337 done
12338 if test $count = a; then
12339         :
12340 elif test $count = ax; then
12341         echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12342 else
12343         echo "Using the following host machine macro files:"
12344         for f in $host_xm_file; do
12345                 echo "  $srcdir/config/$f"
12346         done
12347 fi
12348 echo "Using ${out_host_hook_obj} for host machine hooks."
12349
12350 if test "$host_xm_file" != "$build_xm_file"; then
12351         count=a
12352         for f in $build_xm_file; do
12353                 count=${count}x
12354         done
12355         if test $count = a; then
12356                 :
12357         elif test $count = ax; then
12358                 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12359         else
12360                 echo "Using the following build machine macro files:"
12361                 for f in $build_xm_file; do
12362                         echo "  $srcdir/config/$f"
12363                 done
12364         fi
12365 fi
12366
12367 case ${host} in
12368   powerpc*-*-darwin*)
12369     echo "$as_me:$LINENO: checking whether mcontext_t fields have underscores" >&5
12370 echo $ECHO_N "checking whether mcontext_t fields have underscores... $ECHO_C" >&6
12371 if test "${gcc_cv_mcontext_underscores+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374   cat >conftest.$ac_ext <<_ACEOF
12375
12376 #include <sys/cdefs.h>
12377 #include <sys/signal.h>
12378 #include <ucontext.h>
12379 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12380
12381 _ACEOF
12382 rm -f conftest.$ac_objext
12383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12384   (eval $ac_compile) 2>conftest.er1
12385   ac_status=$?
12386   grep -v '^ *+' conftest.er1 >conftest.err
12387   rm -f conftest.er1
12388   cat conftest.err >&5
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } &&
12391          { ac_try='test -z "$ac_c_werror_flag"
12392                          || test ! -s conftest.err'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; } &&
12398          { ac_try='test -s conftest.$ac_objext'
12399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400   (eval $ac_try) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); }; }; then
12404   gcc_cv_mcontext_underscores=no
12405 else
12406   echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 gcc_cv_mcontext_underscores=yes
12410 fi
12411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12412 fi
12413 echo "$as_me:$LINENO: result: $gcc_cv_mcontext_underscores" >&5
12414 echo "${ECHO_T}$gcc_cv_mcontext_underscores" >&6
12415       if test $gcc_cv_mcontext_underscores = yes; then
12416
12417 cat >>confdefs.h <<\_ACEOF
12418 #define HAS_MCONTEXT_T_UNDERSCORES
12419 _ACEOF
12420
12421       fi
12422     ;;
12423 esac
12424
12425 # ---------
12426 # Threading
12427 # ---------
12428
12429 # Check if a valid thread package
12430 case ${enable_threads} in
12431   "" | no)
12432     # No threads
12433     target_thread_file='single'
12434     ;;
12435   yes)
12436     # default
12437     target_thread_file='single'
12438     ;;
12439   aix | dce | gnat | irix | posix | posix95 | rtems | \
12440   single | solaris | vxworks | win32 | mipssde)
12441     target_thread_file=${enable_threads}
12442     ;;
12443   *)
12444     echo "${enable_threads} is an unknown thread package" 1>&2
12445     exit 1
12446     ;;
12447 esac
12448
12449 if test x${thread_file} = x; then
12450   # No thread file set by target-specific clauses in config.gcc,
12451   # so use file chosen by default logic above
12452   thread_file=${target_thread_file}
12453 fi
12454
12455 # Make gthr-default.h if we have a thread file.
12456 gthread_flags=
12457 if test $thread_file != single; then
12458   rm -f gthr-default.h
12459   echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h
12460   gthread_flags=-DHAVE_GTHR_DEFAULT
12461 fi
12462
12463
12464 # --------
12465 # UNSORTED
12466 # --------
12467
12468 use_cxa_atexit=no
12469 if test x$enable___cxa_atexit = xyes || \
12470    test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
12471   if test x$host = x$target; then
12472     case $host in
12473       # mingw32 doesn't have __cxa_atexit but uses atexit registration
12474       # keyed to flag_use_cxa_atexit
12475       *-*-mingw32*)
12476         use_cxa_atexit=yes
12477         ;;
12478       *)
12479         echo "$as_me:$LINENO: checking for __cxa_atexit" >&5
12480 echo $ECHO_N "checking for __cxa_atexit... $ECHO_C" >&6
12481 if test "${ac_cv_func___cxa_atexit+set}" = set; then
12482   echo $ECHO_N "(cached) $ECHO_C" >&6
12483 else
12484   cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 /* Define __cxa_atexit to an innocuous variant, in case <limits.h> declares __cxa_atexit.
12491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12492 #define __cxa_atexit innocuous___cxa_atexit
12493
12494 /* System header to define __stub macros and hopefully few prototypes,
12495     which can conflict with char __cxa_atexit (); below.
12496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12497     <limits.h> exists even on freestanding compilers.  */
12498
12499 #ifdef __STDC__
12500 # include <limits.h>
12501 #else
12502 # include <assert.h>
12503 #endif
12504
12505 #undef __cxa_atexit
12506
12507 /* Override any gcc2 internal prototype to avoid an error.  */
12508 #ifdef __cplusplus
12509 extern "C"
12510 {
12511 #endif
12512 /* We use char because int might match the return type of a gcc2
12513    builtin and then its argument prototype would still apply.  */
12514 char __cxa_atexit ();
12515 /* The GNU C library defines this for functions which it implements
12516     to always fail with ENOSYS.  Some functions are actually named
12517     something starting with __ and the normal name is an alias.  */
12518 #if defined (__stub___cxa_atexit) || defined (__stub_____cxa_atexit)
12519 choke me
12520 #else
12521 char (*f) () = __cxa_atexit;
12522 #endif
12523 #ifdef __cplusplus
12524 }
12525 #endif
12526
12527 int
12528 main ()
12529 {
12530 return f != __cxa_atexit;
12531   ;
12532   return 0;
12533 }
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12537   (eval $ac_link) 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag"
12545                          || test ! -s conftest.err'
12546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12547   (eval $ac_try) 2>&5
12548   ac_status=$?
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); }; } &&
12551          { ac_try='test -s conftest$ac_exeext'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; }; then
12557   ac_cv_func___cxa_atexit=yes
12558 else
12559   echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12561
12562 ac_cv_func___cxa_atexit=no
12563 fi
12564 rm -f conftest.err conftest.$ac_objext \
12565       conftest$ac_exeext conftest.$ac_ext
12566 fi
12567 echo "$as_me:$LINENO: result: $ac_cv_func___cxa_atexit" >&5
12568 echo "${ECHO_T}$ac_cv_func___cxa_atexit" >&6
12569 if test $ac_cv_func___cxa_atexit = yes; then
12570   use_cxa_atexit=yes
12571 else
12572   echo "__cxa_atexit can't be enabled on this target"
12573 fi
12574
12575         ;;
12576     esac
12577   else
12578     # We can't check for __cxa_atexit when building a cross, so assume
12579     # it is available
12580     use_cxa_atexit=yes
12581   fi
12582   if test x$use_cxa_atexit = xyes; then
12583
12584 cat >>confdefs.h <<\_ACEOF
12585 #define DEFAULT_USE_CXA_ATEXIT 2
12586 _ACEOF
12587
12588   fi
12589 fi
12590
12591 use_getipinfo=yes
12592 if test x$with_system_libunwind = xyes; then
12593    if test x$host = x$target; then
12594      echo "$as_me:$LINENO: checking for library containing _Unwind_GetIPInfo" >&5
12595 echo $ECHO_N "checking for library containing _Unwind_GetIPInfo... $ECHO_C" >&6
12596 if test "${ac_cv_search__Unwind_GetIPInfo+set}" = set; then
12597   echo $ECHO_N "(cached) $ECHO_C" >&6
12598 else
12599   ac_func_search_save_LIBS=$LIBS
12600 ac_cv_search__Unwind_GetIPInfo=no
12601 cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607
12608 /* Override any gcc2 internal prototype to avoid an error.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 /* We use char because int might match the return type of a gcc2
12613    builtin and then its argument prototype would still apply.  */
12614 char _Unwind_GetIPInfo ();
12615 int
12616 main ()
12617 {
12618 _Unwind_GetIPInfo ();
12619   ;
12620   return 0;
12621 }
12622 _ACEOF
12623 rm -f conftest.$ac_objext conftest$ac_exeext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12625   (eval $ac_link) 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -z "$ac_c_werror_flag"
12633                          || test ! -s conftest.err'
12634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635   (eval $ac_try) 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } &&
12639          { ac_try='test -s conftest$ac_exeext'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; }; then
12645   ac_cv_search__Unwind_GetIPInfo="none required"
12646 else
12647   echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650 fi
12651 rm -f conftest.err conftest.$ac_objext \
12652       conftest$ac_exeext conftest.$ac_ext
12653 if test "$ac_cv_search__Unwind_GetIPInfo" = no; then
12654   for ac_lib in unwind; do
12655     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12656     cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h.  */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h.  */
12662
12663 /* Override any gcc2 internal prototype to avoid an error.  */
12664 #ifdef __cplusplus
12665 extern "C"
12666 #endif
12667 /* We use char because int might match the return type of a gcc2
12668    builtin and then its argument prototype would still apply.  */
12669 char _Unwind_GetIPInfo ();
12670 int
12671 main ()
12672 {
12673 _Unwind_GetIPInfo ();
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680   (eval $ac_link) 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } &&
12687          { ac_try='test -z "$ac_c_werror_flag"
12688                          || test ! -s conftest.err'
12689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690   (eval $ac_try) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; } &&
12694          { ac_try='test -s conftest$ac_exeext'
12695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696   (eval $ac_try) 2>&5
12697   ac_status=$?
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); }; }; then
12700   ac_cv_search__Unwind_GetIPInfo="-l$ac_lib"
12701 break
12702 else
12703   echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 fi
12707 rm -f conftest.err conftest.$ac_objext \
12708       conftest$ac_exeext conftest.$ac_ext
12709   done
12710 fi
12711 LIBS=$ac_func_search_save_LIBS
12712 fi
12713 echo "$as_me:$LINENO: result: $ac_cv_search__Unwind_GetIPInfo" >&5
12714 echo "${ECHO_T}$ac_cv_search__Unwind_GetIPInfo" >&6
12715 if test "$ac_cv_search__Unwind_GetIPInfo" != no; then
12716   test "$ac_cv_search__Unwind_GetIPInfo" = "none required" || LIBS="$ac_cv_search__Unwind_GetIPInfo $LIBS"
12717
12718 else
12719   use_getipinfo=no
12720 fi
12721
12722    fi
12723 fi
12724
12725 if test x$use_getipinfo = xyes; then
12726
12727 cat >>confdefs.h <<\_ACEOF
12728 #define HAVE_GETIPINFO 1
12729 _ACEOF
12730
12731 else
12732    echo "The system unwind library does not support _Unwind_GetIPInfo."
12733 fi
12734
12735 # Look for a file containing extra machine modes.
12736 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
12737   extra_modes_file='$(srcdir)'/config/${extra_modes}
12738
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define EXTRA_MODES_FILE "config/$extra_modes"
12742 _ACEOF
12743
12744 fi
12745
12746 # Convert extra_options into a form suitable for Makefile use.
12747 extra_opt_files=
12748 for f in $extra_options; do
12749   extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
12750 done
12751
12752
12753 # auto-host.h is the file containing items generated by autoconf and is
12754 # the first file included by config.h.
12755 # If host=build, it is correct to have bconfig include auto-host.h
12756 # as well.  If host!=build, we are in error and need to do more
12757 # work to find out the build config parameters.
12758 if test x$host = x$build
12759 then
12760         build_auto=auto-host.h
12761 else
12762         # We create a subdir, then run autoconf in the subdir.
12763         # To prevent recursion we set host and build for the new
12764         # invocation of configure to the build for this invocation
12765         # of configure.
12766         tempdir=build.$$
12767         rm -rf $tempdir
12768         mkdir $tempdir
12769         cd $tempdir
12770         case ${srcdir} in
12771         /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
12772         *) realsrcdir=../${srcdir};;
12773         esac
12774         saved_CFLAGS="${CFLAGS}"
12775         CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
12776         ${realsrcdir}/configure \
12777                 --enable-languages=${enable_languages-all} \
12778                 --target=$target_alias --host=$build_alias --build=$build_alias
12779         CFLAGS="${saved_CFLAGS}"
12780
12781         # We just finished tests for the build machine, so rename
12782         # the file auto-build.h in the gcc directory.
12783         mv auto-host.h ../auto-build.h
12784         cd ..
12785         rm -rf $tempdir
12786         build_auto=auto-build.h
12787 fi
12788
12789
12790 tm_file="${tm_file} defaults.h"
12791 tm_p_file="${tm_p_file} tm-preds.h"
12792 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
12793 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
12794 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12795 # put this back in temporarily.
12796 xm_file="auto-host.h ansidecl.h ${xm_file}"
12797
12798 # --------
12799 # UNSORTED
12800 # --------
12801
12802 # Compile in configure arguments.
12803 if test -f configargs.h ; then
12804         # Being re-configured.
12805         gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12806         gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12807 else
12808         gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12809 fi
12810
12811 # Double all backslashes and backslash all quotes to turn
12812 # gcc_config_arguments into a C string.
12813 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12814 $gcc_config_arguments
12815 EOF
12816 gcc_config_arguments_str=`cat conftest.out`
12817 rm -f conftest.out
12818
12819 cat > configargs.h <<EOF
12820 /* Generated automatically. */
12821 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12822 static const char thread_model[] = "$thread_file";
12823
12824 static const struct {
12825   const char *name, *value;
12826 } configure_default_options[] = $configure_default_options;
12827 EOF
12828
12829 # Internationalization
12830 # If we haven't got the data from the intl directory,
12831 # assume NLS is disabled.
12832 USE_NLS=no
12833 LIBINTL=
12834 LIBINTL_DEP=
12835 INCINTL=
12836 XGETTEXT=
12837 GMSGFMT=
12838 POSUB=
12839
12840 if test -f  ../intl/config.intl; then
12841   .  ../intl/config.intl
12842 fi
12843 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12844 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12845 if test x"$USE_NLS" != xyes; then
12846   echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6
12848 else
12849   echo "$as_me:$LINENO: result: yes" >&5
12850 echo "${ECHO_T}yes" >&6
12851
12852 cat >>confdefs.h <<\_ACEOF
12853 #define ENABLE_NLS 1
12854 _ACEOF
12855
12856
12857   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
12858 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
12859   # Look for .po and .gmo files in the source directory.
12860   CATALOGS=
12861   XLINGUAS=
12862   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12863     # If there aren't any .gmo files the shell will give us the
12864     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12865     # weeded out.
12866     case "$cat" in *\**)
12867       continue;;
12868     esac
12869     # The quadruple backslash is collapsed to a double backslash
12870     # by the backticks, then collapsed again by the double quotes,
12871     # leaving us with one backslash in the sed expression (right
12872     # before the dot that mustn't act as a wildcard).
12873     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12874     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12875     # The user is allowed to set LINGUAS to a list of languages to
12876     # install catalogs for.  If it's empty that means "all of them."
12877     if test "x$LINGUAS" = x; then
12878       CATALOGS="$CATALOGS $cat"
12879       XLINGUAS="$XLINGUAS $lang"
12880     else
12881       case "$LINGUAS" in *$lang*)
12882         CATALOGS="$CATALOGS $cat"
12883         XLINGUAS="$XLINGUAS $lang"
12884         ;;
12885       esac
12886     fi
12887   done
12888   LINGUAS="$XLINGUAS"
12889   echo "$as_me:$LINENO: result: $LINGUAS" >&5
12890 echo "${ECHO_T}$LINGUAS" >&6
12891
12892
12893     DATADIRNAME=share
12894
12895   INSTOBJEXT=.mo
12896
12897   GENCAT=gencat
12898
12899   CATOBJEXT=.gmo
12900
12901 fi
12902
12903 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12904 # -liconv on the link line twice.
12905 case "$LIBINTL" in *$LIBICONV*)
12906         LIBICONV= ;;
12907 esac
12908
12909 # Check whether --enable-secureplt or --disable-secureplt was given.
12910 if test "${enable_secureplt+set}" = set; then
12911   enableval="$enable_secureplt"
12912
12913 fi;
12914
12915 # Windows32 Registry support for specifying GCC installation paths.
12916 # Check whether --enable-win32-registry or --disable-win32-registry was given.
12917 if test "${enable_win32_registry+set}" = set; then
12918   enableval="$enable_win32_registry"
12919
12920 fi;
12921
12922 case $host_os in
12923   win32 | pe | cygwin* | mingw32* | uwin*)
12924     if test "x$enable_win32_registry" != xno; then
12925       echo "$as_me:$LINENO: checking for library containing RegOpenKeyExA" >&5
12926 echo $ECHO_N "checking for library containing RegOpenKeyExA... $ECHO_C" >&6
12927 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930   ac_func_search_save_LIBS=$LIBS
12931 ac_cv_search_RegOpenKeyExA=no
12932 cat >conftest.$ac_ext <<_ACEOF
12933 /* confdefs.h.  */
12934 _ACEOF
12935 cat confdefs.h >>conftest.$ac_ext
12936 cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h.  */
12938
12939 /* Override any gcc2 internal prototype to avoid an error.  */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 /* We use char because int might match the return type of a gcc2
12944    builtin and then its argument prototype would still apply.  */
12945 char RegOpenKeyExA ();
12946 int
12947 main ()
12948 {
12949 RegOpenKeyExA ();
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext conftest$ac_exeext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12956   (eval $ac_link) 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } &&
12963          { ac_try='test -z "$ac_c_werror_flag"
12964                          || test ! -s conftest.err'
12965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966   (eval $ac_try) 2>&5
12967   ac_status=$?
12968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969   (exit $ac_status); }; } &&
12970          { ac_try='test -s conftest$ac_exeext'
12971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972   (eval $ac_try) 2>&5
12973   ac_status=$?
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); }; }; then
12976   ac_cv_search_RegOpenKeyExA="none required"
12977 else
12978   echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981 fi
12982 rm -f conftest.err conftest.$ac_objext \
12983       conftest$ac_exeext conftest.$ac_ext
12984 if test "$ac_cv_search_RegOpenKeyExA" = no; then
12985   for ac_lib in advapi32; do
12986     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12987     cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993
12994 /* Override any gcc2 internal prototype to avoid an error.  */
12995 #ifdef __cplusplus
12996 extern "C"
12997 #endif
12998 /* We use char because int might match the return type of a gcc2
12999    builtin and then its argument prototype would still apply.  */
13000 char RegOpenKeyExA ();
13001 int
13002 main ()
13003 {
13004 RegOpenKeyExA ();
13005   ;
13006   return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest.$ac_objext conftest$ac_exeext
13010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011   (eval $ac_link) 2>conftest.er1
13012   ac_status=$?
13013   grep -v '^ *+' conftest.er1 >conftest.err
13014   rm -f conftest.er1
13015   cat conftest.err >&5
13016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017   (exit $ac_status); } &&
13018          { ac_try='test -z "$ac_c_werror_flag"
13019                          || test ! -s conftest.err'
13020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021   (eval $ac_try) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; } &&
13025          { ac_try='test -s conftest$ac_exeext'
13026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027   (eval $ac_try) 2>&5
13028   ac_status=$?
13029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030   (exit $ac_status); }; }; then
13031   ac_cv_search_RegOpenKeyExA="-l$ac_lib"
13032 break
13033 else
13034   echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037 fi
13038 rm -f conftest.err conftest.$ac_objext \
13039       conftest$ac_exeext conftest.$ac_ext
13040   done
13041 fi
13042 LIBS=$ac_func_search_save_LIBS
13043 fi
13044 echo "$as_me:$LINENO: result: $ac_cv_search_RegOpenKeyExA" >&5
13045 echo "${ECHO_T}$ac_cv_search_RegOpenKeyExA" >&6
13046 if test "$ac_cv_search_RegOpenKeyExA" != no; then
13047   test "$ac_cv_search_RegOpenKeyExA" = "none required" || LIBS="$ac_cv_search_RegOpenKeyExA $LIBS"
13048
13049 else
13050   enable_win32_registry=no
13051 fi
13052
13053     fi
13054
13055     if test "x$enable_win32_registry" != xno; then
13056
13057 cat >>confdefs.h <<\_ACEOF
13058 #define ENABLE_WIN32_REGISTRY 1
13059 _ACEOF
13060
13061
13062       if test "x$enable_win32_registry" != xyes \
13063          && test "x$enable_win32_registry" != x; then
13064
13065 cat >>confdefs.h <<_ACEOF
13066 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
13067 _ACEOF
13068
13069       fi
13070     fi
13071   ;;
13072 esac
13073
13074 # Get an absolute path to the GCC top-level source directory
13075 holddir=`${PWDCMD-pwd}`
13076 cd $srcdir
13077 topdir=`${PWDCMD-pwd}`
13078 cd $holddir
13079
13080 # Conditionalize the makefile for this host machine.
13081 xmake_file=
13082 for f in ${host_xmake_file}
13083 do
13084         if test -f ${srcdir}/config/$f
13085         then
13086                 xmake_file="${xmake_file} \$(srcdir)/config/$f"
13087         fi
13088 done
13089
13090 # Conditionalize the makefile for this target machine.
13091 tmake_file_=
13092 for f in ${tmake_file}
13093 do
13094         if test -f ${srcdir}/config/$f
13095         then
13096                 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
13097         fi
13098 done
13099 tmake_file="${tmake_file_}"
13100
13101 # This is a terrible hack which will go away some day.
13102 host_cc_for_libada=${CC}
13103
13104
13105 out_object_file=`basename $out_file .c`.o
13106
13107 tm_file_list="options.h"
13108 tm_include_list="options.h"
13109 for f in $tm_file; do
13110   case $f in
13111     ./* )
13112        f=`echo $f | sed 's/^..//'`
13113        tm_file_list="${tm_file_list} $f"
13114        tm_include_list="${tm_include_list} $f"
13115        ;;
13116     defaults.h )
13117        tm_file_list="${tm_file_list} \$(srcdir)/$f"
13118        tm_include_list="${tm_include_list} $f"
13119        ;;
13120     * )
13121        tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
13122        tm_include_list="${tm_include_list} config/$f"
13123        ;;
13124   esac
13125 done
13126
13127 tm_p_file_list=
13128 tm_p_include_list=
13129 for f in $tm_p_file; do
13130   case $f in
13131     tm-preds.h )
13132        tm_p_file_list="${tm_p_file_list} $f"
13133        tm_p_include_list="${tm_p_include_list} $f"
13134        ;;
13135     * )
13136        tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
13137        tm_p_include_list="${tm_p_include_list} config/$f"
13138   esac
13139 done
13140
13141 xm_file_list=
13142 xm_include_list=
13143 for f in $xm_file; do
13144   case $f in
13145     ansidecl.h )
13146        xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
13147        xm_include_list="${xm_include_list} $f"
13148        ;;
13149     auto-host.h )
13150        xm_file_list="${xm_file_list} $f"
13151        xm_include_list="${xm_include_list} $f"
13152        ;;
13153     * )
13154        xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
13155        xm_include_list="${xm_include_list} config/$f"
13156        ;;
13157   esac
13158 done
13159
13160 host_xm_file_list=
13161 host_xm_include_list=
13162 for f in $host_xm_file; do
13163   case $f in
13164     ansidecl.h )
13165        host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
13166        host_xm_include_list="${host_xm_include_list} $f"
13167        ;;
13168     auto-host.h )
13169        host_xm_file_list="${host_xm_file_list} $f"
13170        host_xm_include_list="${host_xm_include_list} $f"
13171        ;;
13172     * )
13173        host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
13174        host_xm_include_list="${host_xm_include_list} config/$f"
13175        ;;
13176   esac
13177 done
13178
13179 build_xm_file_list=
13180 for f in $build_xm_file; do
13181   case $f in
13182     ansidecl.h )
13183        build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
13184        build_xm_include_list="${build_xm_include_list} $f"
13185        ;;
13186     auto-build.h | auto-host.h )
13187        build_xm_file_list="${build_xm_file_list} $f"
13188        build_xm_include_list="${build_xm_include_list} $f"
13189        ;;
13190     * )
13191        build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
13192        build_xm_include_list="${build_xm_include_list} config/$f"
13193        ;;
13194   esac
13195 done
13196
13197 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
13198 # cross-compiler which does not use the native headers and libraries.
13199 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
13200 CROSS=
13201 ALL=all.internal
13202 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13203
13204 if test "x$with_build_sysroot" != x; then
13205   build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
13206 else
13207   # This value is used, even on a native system, because
13208   # CROSS_SYSTEM_HEADER_DIR is just
13209   # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
13210   build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
13211 fi
13212
13213 if test x$host != x$target
13214 then
13215         CROSS="-DCROSS_DIRECTORY_STRUCTURE"
13216         ALL=all.cross
13217         SYSTEM_HEADER_DIR=$build_system_header_dir
13218         case "$host","$target" in
13219         # Darwin crosses can use the host system's libraries and headers,
13220         # because of the fat library support.  Of course, it must be the
13221         # same version of Darwin on both sides.  Allow the user to
13222         # just say --target=foo-darwin without a version number to mean
13223         # "the version on this system".
13224             *-*-darwin*,*-*-darwin*)
13225                 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
13226                 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
13227                 if test $hostos = $targetos -o $targetos = darwin ; then
13228                     CROSS=
13229                     SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
13230                     with_headers=yes
13231                 fi
13232                 ;;
13233
13234             i?86-*-*,x86_64-*-* \
13235             | powerpc*-*-*,powerpc64*-*-*)
13236                 CROSS="$CROSS -DNATIVE_CROSS" ;;
13237         esac
13238 elif test "x$TARGET_SYSTEM_ROOT" != x; then
13239         SYSTEM_HEADER_DIR=$build_system_header_dir
13240 fi
13241
13242 # If this is a cross-compiler that does not
13243 # have its own set of headers then define
13244 # inhibit_libc
13245
13246 # If this is using newlib, without having the headers available now,
13247 # then define inhibit_libc in LIBGCC2_CFLAGS.
13248 # This prevents libgcc2 from containing any code which requires libc
13249 # support.
13250 inhibit_libc=false
13251 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
13252        test x$with_newlib = xyes ; } &&
13253      { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
13254        inhibit_libc=true
13255 fi
13256
13257
13258 # When building gcc with a cross-compiler, we need to adjust things so
13259 # that the generator programs are still built with the native compiler.
13260 # Also, we cannot run fixincludes or fix-header.
13261
13262 # These are the normal (build=host) settings:
13263 CC_FOR_BUILD='$(CC)'
13264 BUILD_CFLAGS='$(ALL_CFLAGS)'
13265 STMP_FIXINC=stmp-fixinc
13266
13267 # Possibly disable fixproto, on a per-target basis.
13268 case ${use_fixproto} in
13269   no)
13270     STMP_FIXPROTO=
13271     ;;
13272   yes)
13273     STMP_FIXPROTO=stmp-fixproto
13274     ;;
13275 esac
13276
13277
13278 # And these apply if build != host, or we are generating coverage data
13279 if test x$build != x$host || test "x$coverage_flags" != x
13280 then
13281     BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
13282
13283     if test "x$TARGET_SYSTEM_ROOT" = x; then
13284         if test "x$STMP_FIXPROTO" != x; then
13285           STMP_FIXPROTO=stmp-install-fixproto
13286         fi
13287     fi
13288 fi
13289
13290 # Expand extra_headers to include complete path.
13291 # This substitutes for lots of t-* files.
13292 extra_headers_list=
13293 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
13294 for file in ${extra_headers} ; do
13295   extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
13296 done
13297
13298 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
13299 if test x"$use_gcc_tgmath" = xyes
13300 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
13301 fi
13302
13303 # Define collect2 in Makefile.
13304 case $host_can_use_collect2 in
13305   no) collect2= ;;
13306   *) collect2='collect2$(exeext)' ;;
13307 esac
13308
13309
13310 # Add a definition of USE_COLLECT2 if system wants one.
13311 case $use_collect2 in
13312   no) use_collect2= ;;
13313   "") ;;
13314   *)
13315     host_xm_defines="${host_xm_defines} USE_COLLECT2"
13316     xm_defines="${xm_defines} USE_COLLECT2"
13317     case $host_can_use_collect2 in
13318       no)
13319         { { echo "$as_me:$LINENO: error: collect2 is required but cannot be built on this system" >&5
13320 echo "$as_me: error: collect2 is required but cannot be built on this system" >&2;}
13321    { (exit 1); exit 1; }; }
13322         ;;
13323     esac
13324     ;;
13325 esac
13326
13327 # ---------------------------
13328 # Assembler & linker features
13329 # ---------------------------
13330
13331 # Identify the assembler which will work hand-in-glove with the newly
13332 # built GCC, so that we can examine its features.  This is the assembler
13333 # which will be driven by the driver program.
13334 #
13335 # If build != host, and we aren't building gas in-tree, we identify a
13336 # build->target assembler and hope that it will have the same features
13337 # as the host->target assembler we'll be using.
13338 gcc_cv_gas_major_version=
13339 gcc_cv_gas_minor_version=
13340 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
13341
13342 if test "${gcc_cv_as+set}" = set; then
13343   :
13344 else
13345
13346 if test -x "$DEFAULT_ASSEMBLER"; then
13347         gcc_cv_as="$DEFAULT_ASSEMBLER"
13348 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
13349      && test -f ../gas/Makefile \
13350      && test x$build = x$host; then
13351         gcc_cv_as=../gas/as-new$build_exeext
13352 elif test -x as$build_exeext; then
13353         # Build using assembler in the current directory.
13354         gcc_cv_as=./as$build_exeext
13355 elif test -x $AS_FOR_TARGET; then
13356         gcc_cv_as="$AS_FOR_TARGET"
13357 else
13358         # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
13359 set dummy $AS_FOR_TARGET; ac_word=$2
13360 echo "$as_me:$LINENO: checking for $ac_word" >&5
13361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13362 if test "${ac_cv_path_gcc_cv_as+set}" = set; then
13363   echo $ECHO_N "(cached) $ECHO_C" >&6
13364 else
13365   case $gcc_cv_as in
13366   [\\/]* | ?:[\\/]*)
13367   ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
13368   ;;
13369   *)
13370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373   IFS=$as_save_IFS
13374   test -z "$as_dir" && as_dir=.
13375   for ac_exec_ext in '' $ac_executable_extensions; do
13376   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377     ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
13378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13379     break 2
13380   fi
13381 done
13382 done
13383
13384   ;;
13385 esac
13386 fi
13387 gcc_cv_as=$ac_cv_path_gcc_cv_as
13388
13389 if test -n "$gcc_cv_as"; then
13390   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13391 echo "${ECHO_T}$gcc_cv_as" >&6
13392 else
13393   echo "$as_me:$LINENO: result: no" >&5
13394 echo "${ECHO_T}no" >&6
13395 fi
13396
13397 fi
13398 fi
13399
13400
13401 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
13402
13403 case "$ORIGINAL_AS_FOR_TARGET" in
13404   ./as | ./as$build_exeext) ;;
13405   *)           ac_config_files="$ac_config_files as:exec-tool.in"
13406  ;;
13407 esac
13408
13409 echo "$as_me:$LINENO: checking what assembler to use" >&5
13410 echo $ECHO_N "checking what assembler to use... $ECHO_C" >&6
13411 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
13412   # Single tree build which includes gas.  We want to prefer it
13413   # over whatever linker top-level may have detected, since
13414   # we'll use what we're building after installation anyway.
13415   echo "$as_me:$LINENO: result: newly built gas" >&5
13416 echo "${ECHO_T}newly built gas" >&6
13417   in_tree_gas=yes
13418   gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13419 for f in $gcc_cv_as_bfd_srcdir/configure \
13420          $gcc_cv_as_gas_srcdir/configure \
13421          $gcc_cv_as_gas_srcdir/configure.in \
13422          $gcc_cv_as_gas_srcdir/Makefile.in ; do
13423   gcc_cv_gas_version=`sed -n -e 's/^[   ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13424   if test x$gcc_cv_gas_version != x; then
13425     break
13426   fi
13427 done
13428 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
13429 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13430 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
13431 case $gcc_cv_gas_patch_version in
13432   "") gcc_cv_gas_patch_version="0" ;;
13433 esac
13434 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
13435                             + $gcc_cv_gas_minor_version \) \* 1000 \
13436                             + $gcc_cv_gas_patch_version`
13437
13438   in_tree_gas_is_elf=no
13439   if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
13440      || (grep 'obj_format = multi' ../gas/Makefile \
13441          && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
13442   then
13443     in_tree_gas_is_elf=yes
13444   fi
13445 else
13446   echo "$as_me:$LINENO: result: $gcc_cv_as" >&5
13447 echo "${ECHO_T}$gcc_cv_as" >&6
13448   in_tree_gas=no
13449 fi
13450
13451 # Identify the linker which will work hand-in-glove with the newly
13452 # built GCC, so that we can examine its features.  This is the linker
13453 # which will be driven by the driver program.
13454 #
13455 # If build != host, and we aren't building gas in-tree, we identify a
13456 # build->target linker and hope that it will have the same features
13457 # as the host->target linker we'll be using.
13458 gcc_cv_gld_major_version=
13459 gcc_cv_gld_minor_version=
13460 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
13461 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
13462
13463 if test "${gcc_cv_ld+set}" = set; then
13464   :
13465 else
13466
13467 if test -x "$DEFAULT_LINKER"; then
13468         gcc_cv_ld="$DEFAULT_LINKER"
13469 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
13470      && test -f ../ld/Makefile \
13471      && test x$build = x$host; then
13472         gcc_cv_ld=../ld/ld-new$build_exeext
13473 elif test -x collect-ld$build_exeext; then
13474         # Build using linker in the current directory.
13475         gcc_cv_ld=./collect-ld$build_exeext
13476 elif test -x $LD_FOR_TARGET; then
13477         gcc_cv_ld="$LD_FOR_TARGET"
13478 else
13479         # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
13480 set dummy $LD_FOR_TARGET; ac_word=$2
13481 echo "$as_me:$LINENO: checking for $ac_word" >&5
13482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13483 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   case $gcc_cv_ld in
13487   [\\/]* | ?:[\\/]*)
13488   ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
13489   ;;
13490   *)
13491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492 for as_dir in $PATH
13493 do
13494   IFS=$as_save_IFS
13495   test -z "$as_dir" && as_dir=.
13496   for ac_exec_ext in '' $ac_executable_extensions; do
13497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498     ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
13499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13500     break 2
13501   fi
13502 done
13503 done
13504
13505   ;;
13506 esac
13507 fi
13508 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
13509
13510 if test -n "$gcc_cv_ld"; then
13511   echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13512 echo "${ECHO_T}$gcc_cv_ld" >&6
13513 else
13514   echo "$as_me:$LINENO: result: no" >&5
13515 echo "${ECHO_T}no" >&6
13516 fi
13517
13518 fi
13519 fi
13520
13521
13522 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
13523
13524 case "$ORIGINAL_LD_FOR_TARGET" in
13525   ./collect-ld | ./collect-ld$build_exeext) ;;
13526   *)           ac_config_files="$ac_config_files collect-ld:exec-tool.in"
13527  ;;
13528 esac
13529
13530 echo "$as_me:$LINENO: checking what linker to use" >&5
13531 echo $ECHO_N "checking what linker to use... $ECHO_C" >&6
13532 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
13533         # Single tree build which includes ld.  We want to prefer it
13534         # over whatever linker top-level may have detected, since
13535         # we'll use what we're building after installation anyway.
13536         echo "$as_me:$LINENO: result: newly built ld" >&5
13537 echo "${ECHO_T}newly built ld" >&6
13538         in_tree_ld=yes
13539         in_tree_ld_is_elf=no
13540         if (grep 'EMUL = .*elf' ../ld/Makefile \
13541             || grep 'EMUL = .*linux' ../ld/Makefile \
13542             || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
13543           in_tree_ld_is_elf=yes
13544         fi
13545         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
13546         do
13547                 gcc_cv_gld_version=`sed -n -e 's/^[     ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
13548                 if test x$gcc_cv_gld_version != x; then
13549                         break
13550                 fi
13551         done
13552         gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
13553         gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
13554 else
13555         echo "$as_me:$LINENO: result: $gcc_cv_ld" >&5
13556 echo "${ECHO_T}$gcc_cv_ld" >&6
13557         in_tree_ld=no
13558 fi
13559
13560 # Figure out what nm we will be using.
13561 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
13562 if test "${gcc_cv_nm+set}" = set; then
13563   :
13564 else
13565
13566 if test -f $gcc_cv_binutils_srcdir/configure.in \
13567      && test -f ../binutils/Makefile \
13568      && test x$build = x$host; then
13569         gcc_cv_nm=../binutils/nm-new$build_exeext
13570 elif test -x nm$build_exeext; then
13571         gcc_cv_nm=./nm$build_exeext
13572 elif test -x $NM_FOR_TARGET; then
13573         gcc_cv_nm="$NM_FOR_TARGET"
13574 else
13575         # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
13576 set dummy $NM_FOR_TARGET; ac_word=$2
13577 echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13579 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   case $gcc_cv_nm in
13583   [\\/]* | ?:[\\/]*)
13584   ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
13585   ;;
13586   *)
13587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13589 do
13590   IFS=$as_save_IFS
13591   test -z "$as_dir" && as_dir=.
13592   for ac_exec_ext in '' $ac_executable_extensions; do
13593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13594     ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
13595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13596     break 2
13597   fi
13598 done
13599 done
13600
13601   ;;
13602 esac
13603 fi
13604 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
13605
13606 if test -n "$gcc_cv_nm"; then
13607   echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13608 echo "${ECHO_T}$gcc_cv_nm" >&6
13609 else
13610   echo "$as_me:$LINENO: result: no" >&5
13611 echo "${ECHO_T}no" >&6
13612 fi
13613
13614 fi
13615 fi
13616
13617
13618 echo "$as_me:$LINENO: checking what nm to use" >&5
13619 echo $ECHO_N "checking what nm to use... $ECHO_C" >&6
13620 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
13621         # Single tree build which includes binutils.
13622         echo "$as_me:$LINENO: result: newly built nm" >&5
13623 echo "${ECHO_T}newly built nm" >&6
13624         in_tree_nm=yes
13625 else
13626         echo "$as_me:$LINENO: result: $gcc_cv_nm" >&5
13627 echo "${ECHO_T}$gcc_cv_nm" >&6
13628         in_tree_nm=no
13629 fi
13630
13631 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
13632
13633 case "$ORIGINAL_NM_FOR_TARGET" in
13634   ./nm | ./nm$build_exeext) ;;
13635   *)           ac_config_files="$ac_config_files nm:exec-tool.in"
13636  ;;
13637 esac
13638
13639
13640 # Figure out what objdump we will be using.
13641 if test "${gcc_cv_objdump+set}" = set; then
13642   :
13643 else
13644
13645 if test -f $gcc_cv_binutils_srcdir/configure.in \
13646      && test -f ../binutils/Makefile \
13647      && test x$build = x$host; then
13648         # Single tree build which includes binutils.
13649         gcc_cv_objdump=../binutils/objdump$build_exeext
13650 elif test -x objdump$build_exeext; then
13651         gcc_cv_objdump=./objdump$build_exeext
13652 elif test -x $OBJDUMP_FOR_TARGET; then
13653         gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
13654 else
13655         # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
13656 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
13657 echo "$as_me:$LINENO: checking for $ac_word" >&5
13658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13659 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then
13660   echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662   case $gcc_cv_objdump in
13663   [\\/]* | ?:[\\/]*)
13664   ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
13665   ;;
13666   *)
13667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13669 do
13670   IFS=$as_save_IFS
13671   test -z "$as_dir" && as_dir=.
13672   for ac_exec_ext in '' $ac_executable_extensions; do
13673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674     ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
13675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13676     break 2
13677   fi
13678 done
13679 done
13680
13681   ;;
13682 esac
13683 fi
13684 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
13685
13686 if test -n "$gcc_cv_objdump"; then
13687   echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13688 echo "${ECHO_T}$gcc_cv_objdump" >&6
13689 else
13690   echo "$as_me:$LINENO: result: no" >&5
13691 echo "${ECHO_T}no" >&6
13692 fi
13693
13694 fi
13695 fi
13696
13697
13698 echo "$as_me:$LINENO: checking what objdump to use" >&5
13699 echo $ECHO_N "checking what objdump to use... $ECHO_C" >&6
13700 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
13701         # Single tree build which includes binutils.
13702         echo "$as_me:$LINENO: result: newly built objdump" >&5
13703 echo "${ECHO_T}newly built objdump" >&6
13704 elif test x$gcc_cv_objdump = x; then
13705         echo "$as_me:$LINENO: result: not found" >&5
13706 echo "${ECHO_T}not found" >&6
13707 else
13708         echo "$as_me:$LINENO: result: $gcc_cv_objdump" >&5
13709 echo "${ECHO_T}$gcc_cv_objdump" >&6
13710 fi
13711
13712 # Figure out what assembler alignment features are present.
13713 echo "$as_me:$LINENO: checking assembler for .balign and .p2align" >&5
13714 echo $ECHO_N "checking assembler for .balign and .p2align... $ECHO_C" >&6
13715 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   gcc_cv_as_balign_and_p2align=no
13719     if test $in_tree_gas = yes; then
13720     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
13721   then gcc_cv_as_balign_and_p2align=yes
13722 fi
13723   elif test x$gcc_cv_as != x; then
13724     echo '.balign 4
13725 .p2align 2' > 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_balign_and_p2align=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_balign_and_p2align" >&5
13742 echo "${ECHO_T}$gcc_cv_as_balign_and_p2align" >&6
13743 if test $gcc_cv_as_balign_and_p2align = yes; then
13744
13745 cat >>confdefs.h <<\_ACEOF
13746 #define HAVE_GAS_BALIGN_AND_P2ALIGN 1
13747 _ACEOF
13748
13749 fi
13750
13751 echo "$as_me:$LINENO: checking assembler for .p2align with maximum skip" >&5
13752 echo $ECHO_N "checking assembler for .p2align with maximum skip... $ECHO_C" >&6
13753 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then
13754   echo $ECHO_N "(cached) $ECHO_C" >&6
13755 else
13756   gcc_cv_as_max_skip_p2align=no
13757     if test $in_tree_gas = yes; then
13758     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13759   then gcc_cv_as_max_skip_p2align=yes
13760 fi
13761   elif test x$gcc_cv_as != x; then
13762     echo '.p2align 4,,7' > conftest.s
13763     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }
13769     then
13770         gcc_cv_as_max_skip_p2align=yes
13771     else
13772       echo "configure: failed program was" >&5
13773       cat conftest.s >&5
13774     fi
13775     rm -f conftest.o conftest.s
13776   fi
13777 fi
13778 echo "$as_me:$LINENO: result: $gcc_cv_as_max_skip_p2align" >&5
13779 echo "${ECHO_T}$gcc_cv_as_max_skip_p2align" >&6
13780 if test $gcc_cv_as_max_skip_p2align = yes; then
13781
13782 cat >>confdefs.h <<\_ACEOF
13783 #define HAVE_GAS_MAX_SKIP_P2ALIGN 1
13784 _ACEOF
13785
13786 fi
13787
13788 echo "$as_me:$LINENO: checking assembler for .literal16" >&5
13789 echo $ECHO_N "checking assembler for .literal16... $ECHO_C" >&6
13790 if test "${gcc_cv_as_literal16+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   gcc_cv_as_literal16=no
13794     if test $in_tree_gas = yes; then
13795     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
13796   then gcc_cv_as_literal16=yes
13797 fi
13798   elif test x$gcc_cv_as != x; then
13799     echo '.literal16' > conftest.s
13800     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }
13806     then
13807         gcc_cv_as_literal16=yes
13808     else
13809       echo "configure: failed program was" >&5
13810       cat conftest.s >&5
13811     fi
13812     rm -f conftest.o conftest.s
13813   fi
13814 fi
13815 echo "$as_me:$LINENO: result: $gcc_cv_as_literal16" >&5
13816 echo "${ECHO_T}$gcc_cv_as_literal16" >&6
13817 if test $gcc_cv_as_literal16 = yes; then
13818
13819 cat >>confdefs.h <<\_ACEOF
13820 #define HAVE_GAS_LITERAL16 1
13821 _ACEOF
13822
13823 fi
13824
13825 echo "$as_me:$LINENO: checking assembler for working .subsection -1" >&5
13826 echo $ECHO_N "checking assembler for working .subsection -1... $ECHO_C" >&6
13827 if test "${gcc_cv_as_subsection_m1+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   gcc_cv_as_subsection_m1=no
13831     if test $in_tree_gas = yes; then
13832     if test $in_tree_gas_is_elf = yes \
13833   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
13834   then gcc_cv_as_subsection_m1=yes
13835 fi
13836   elif test x$gcc_cv_as != x; then
13837     echo 'conftest_label1: .word 0
13838 .subsection -1
13839 conftest_label2: .word 0
13840 .previous' > conftest.s
13841     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843   (eval $ac_try) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; }
13847     then
13848         if test x$gcc_cv_nm != x; then
13849     $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
13850     $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
13851     if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
13852     then :
13853     else gcc_cv_as_subsection_m1=yes
13854     fi
13855     rm -f conftest.nm1 conftest.nm2
13856   fi
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_subsection_m1" >&5
13865 echo "${ECHO_T}$gcc_cv_as_subsection_m1" >&6
13866 if test $gcc_cv_as_subsection_m1 = yes; then
13867
13868 cat >>confdefs.h <<\_ACEOF
13869 #define HAVE_GAS_SUBSECTION_ORDERING 1
13870 _ACEOF
13871
13872 fi
13873
13874 echo "$as_me:$LINENO: checking assembler for .weak" >&5
13875 echo $ECHO_N "checking assembler for .weak... $ECHO_C" >&6
13876 if test "${gcc_cv_as_weak+set}" = set; then
13877   echo $ECHO_N "(cached) $ECHO_C" >&6
13878 else
13879   gcc_cv_as_weak=no
13880     if test $in_tree_gas = yes; then
13881     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
13882   then gcc_cv_as_weak=yes
13883 fi
13884   elif test x$gcc_cv_as != x; then
13885     echo '      .weak foobar' > conftest.s
13886     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13888   (eval $ac_try) 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }
13892     then
13893         gcc_cv_as_weak=yes
13894     else
13895       echo "configure: failed program was" >&5
13896       cat conftest.s >&5
13897     fi
13898     rm -f conftest.o conftest.s
13899   fi
13900 fi
13901 echo "$as_me:$LINENO: result: $gcc_cv_as_weak" >&5
13902 echo "${ECHO_T}$gcc_cv_as_weak" >&6
13903 if test $gcc_cv_as_weak = yes; then
13904
13905 cat >>confdefs.h <<\_ACEOF
13906 #define HAVE_GAS_WEAK 1
13907 _ACEOF
13908
13909 fi
13910
13911 echo "$as_me:$LINENO: checking assembler for .weakref" >&5
13912 echo $ECHO_N "checking assembler for .weakref... $ECHO_C" >&6
13913 if test "${gcc_cv_as_weakref+set}" = set; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 else
13916   gcc_cv_as_weakref=no
13917     if test $in_tree_gas = yes; then
13918     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
13919   then gcc_cv_as_weakref=yes
13920 fi
13921   elif test x$gcc_cv_as != x; then
13922     echo '      .weakref foobar, barfnot' > conftest.s
13923     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; }
13929     then
13930         gcc_cv_as_weakref=yes
13931     else
13932       echo "configure: failed program was" >&5
13933       cat conftest.s >&5
13934     fi
13935     rm -f conftest.o conftest.s
13936   fi
13937 fi
13938 echo "$as_me:$LINENO: result: $gcc_cv_as_weakref" >&5
13939 echo "${ECHO_T}$gcc_cv_as_weakref" >&6
13940 if test $gcc_cv_as_weakref = yes; then
13941
13942 cat >>confdefs.h <<\_ACEOF
13943 #define HAVE_GAS_WEAKREF 1
13944 _ACEOF
13945
13946 fi
13947
13948 echo "$as_me:$LINENO: checking assembler for .nsubspa comdat" >&5
13949 echo $ECHO_N "checking assembler for .nsubspa comdat... $ECHO_C" >&6
13950 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   gcc_cv_as_nsubspa_comdat=no
13954     if test $in_tree_gas = yes; then
13955     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
13956   then gcc_cv_as_nsubspa_comdat=yes
13957 fi
13958   elif test x$gcc_cv_as != x; then
13959     echo '      .SPACE $TEXT$
13960         .NSUBSPA $CODE$,COMDAT' > conftest.s
13961     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
13962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963   (eval $ac_try) 2>&5
13964   ac_status=$?
13965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966   (exit $ac_status); }; }
13967     then
13968         gcc_cv_as_nsubspa_comdat=yes
13969     else
13970       echo "configure: failed program was" >&5
13971       cat conftest.s >&5
13972     fi
13973     rm -f conftest.o conftest.s
13974   fi
13975 fi
13976 echo "$as_me:$LINENO: result: $gcc_cv_as_nsubspa_comdat" >&5
13977 echo "${ECHO_T}$gcc_cv_as_nsubspa_comdat" >&6
13978 if test $gcc_cv_as_nsubspa_comdat = yes; then
13979
13980 cat >>confdefs.h <<\_ACEOF
13981 #define HAVE_GAS_NSUBSPA_COMDAT 1
13982 _ACEOF
13983
13984 fi
13985
13986 # .hidden needs to be supported in both the assembler and the linker,
13987 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
13988 # This is irritatingly difficult to feature test for; we have to check the
13989 # date string after the version number.  If we've got an in-tree
13990 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
13991 # to be safe.
13992 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
13993 echo "$as_me:$LINENO: checking assembler for .hidden" >&5
13994 echo $ECHO_N "checking assembler for .hidden... $ECHO_C" >&6
13995 if test "${gcc_cv_as_hidden+set}" = set; then
13996   echo $ECHO_N "(cached) $ECHO_C" >&6
13997 else
13998   gcc_cv_as_hidden=no
13999     if test $in_tree_gas = yes; then
14000     if test $in_tree_gas_is_elf = yes \
14001   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
14002   then gcc_cv_as_hidden=yes
14003 fi
14004   elif test x$gcc_cv_as != x; then
14005     echo '      .hidden foobar
14006 foobar:' > conftest.s
14007     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }
14013     then
14014         gcc_cv_as_hidden=yes
14015     else
14016       echo "configure: failed program was" >&5
14017       cat conftest.s >&5
14018     fi
14019     rm -f conftest.o conftest.s
14020   fi
14021 fi
14022 echo "$as_me:$LINENO: result: $gcc_cv_as_hidden" >&5
14023 echo "${ECHO_T}$gcc_cv_as_hidden" >&6
14024
14025
14026 echo "$as_me:$LINENO: checking linker for .hidden support" >&5
14027 echo $ECHO_N "checking linker for .hidden support... $ECHO_C" >&6
14028 if test "${gcc_cv_ld_hidden+set}" = set; then
14029   echo $ECHO_N "(cached) $ECHO_C" >&6
14030 else
14031   if test $in_tree_ld = yes ; then
14032   gcc_cv_ld_hidden=no
14033   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 \
14034      && test $in_tree_ld_is_elf = yes; then
14035      gcc_cv_ld_hidden=yes
14036   fi
14037 else
14038   gcc_cv_ld_hidden=yes
14039   ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
14040   if echo "$ld_ver" | grep GNU > /dev/null; then
14041     ld_vers=`echo $ld_ver | sed -n \
14042         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14043     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'`
14044     ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
14045     ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
14046     ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
14047     if test 0"$ld_date" -lt 20020404; then
14048       if test -n "$ld_date"; then
14049         # If there was date string, but was earlier than 2002-04-04, fail
14050         gcc_cv_ld_hidden=no
14051       elif test -z "$ld_vers"; then
14052         # If there was no date string nor ld version number, something is wrong
14053         gcc_cv_ld_hidden=no
14054       else
14055         test -z "$ld_vers_patch" && ld_vers_patch=0
14056         if test "$ld_vers_major" -lt 2; then
14057           gcc_cv_ld_hidden=no
14058         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
14059           gcc_cv_ld_hidden="no"
14060         elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
14061           gcc_cv_ld_hidden=no
14062         fi
14063       fi
14064     fi
14065   else
14066     case "${target}" in
14067       hppa64*-*-hpux* | ia64*-*-hpux*)
14068         gcc_cv_ld_hidden=yes
14069         ;;
14070       *)
14071         gcc_cv_ld_hidden=no
14072         ;;
14073     esac
14074   fi
14075 fi
14076 fi
14077 echo "$as_me:$LINENO: result: $gcc_cv_ld_hidden" >&5
14078 echo "${ECHO_T}$gcc_cv_ld_hidden" >&6
14079 libgcc_visibility=no
14080
14081
14082 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
14083   libgcc_visibility=yes
14084
14085 cat >>confdefs.h <<\_ACEOF
14086 #define HAVE_GAS_HIDDEN 1
14087 _ACEOF
14088
14089 fi
14090
14091 # Check if we have .[us]leb128, and support symbol arithmetic with it.
14092 echo "$as_me:$LINENO: checking assembler for .sleb128 and .uleb128" >&5
14093 echo $ECHO_N "checking assembler for .sleb128 and .uleb128... $ECHO_C" >&6
14094 if test "${gcc_cv_as_leb128+set}" = set; then
14095   echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097   gcc_cv_as_leb128=no
14098     if test $in_tree_gas = yes; then
14099     if test $in_tree_gas_is_elf = yes \
14100   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
14101   then gcc_cv_as_leb128=yes
14102 fi
14103   elif test x$gcc_cv_as != x; then
14104     echo '      .data
14105         .uleb128 L2 - L1
14106 L1:
14107         .uleb128 1280
14108         .sleb128 -1010
14109 L2:' > conftest.s
14110     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112   (eval $ac_try) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); }; }
14116     then
14117         # GAS versions before 2.11 do not support uleb128,
14118   # despite appearing to.
14119   # ??? There exists an elf-specific test that will crash
14120   # the assembler.  Perhaps it's better to figure out whether
14121   # arbitrary sections are supported and try the test.
14122   as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
14123   if echo "$as_ver" | grep GNU > /dev/null; then
14124     as_vers=`echo $as_ver | sed -n \
14125         -e 's,^.*[       ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
14126     as_major=`expr "$as_vers" : '\([0-9]*\)'`
14127     as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
14128     if test $as_major -eq 2 && test $as_minor -lt 11
14129     then :
14130     else gcc_cv_as_leb128=yes
14131     fi
14132   fi
14133     else
14134       echo "configure: failed program was" >&5
14135       cat conftest.s >&5
14136     fi
14137     rm -f conftest.o conftest.s
14138   fi
14139 fi
14140 echo "$as_me:$LINENO: result: $gcc_cv_as_leb128" >&5
14141 echo "${ECHO_T}$gcc_cv_as_leb128" >&6
14142 if test $gcc_cv_as_leb128 = yes; then
14143
14144 cat >>confdefs.h <<\_ACEOF
14145 #define HAVE_AS_LEB128 1
14146 _ACEOF
14147
14148 fi
14149
14150 # GAS versions up to and including 2.11.0 may mis-optimize
14151 # .eh_frame data.
14152 echo "$as_me:$LINENO: checking assembler for eh_frame optimization" >&5
14153 echo $ECHO_N "checking assembler for eh_frame optimization... $ECHO_C" >&6
14154 if test "${gcc_cv_as_eh_frame+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   gcc_cv_as_eh_frame=no
14158     if test $in_tree_gas = yes; then
14159     if test $in_tree_gas_is_elf = yes \
14160   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14161   then gcc_cv_as_eh_frame=yes
14162 fi
14163   elif test x$gcc_cv_as != x; then
14164     echo '      .text
14165 .LFB1:
14166         .4byte  0
14167 .L1:
14168         .4byte  0
14169 .LFE1:
14170         .section        .eh_frame,"aw",@progbits
14171 __FRAME_BEGIN__:
14172         .4byte  .LECIE1-.LSCIE1
14173 .LSCIE1:
14174         .4byte  0x0
14175         .byte   0x1
14176         .ascii "z\0"
14177         .byte   0x1
14178         .byte   0x78
14179         .byte   0x1a
14180         .byte   0x0
14181         .byte   0x4
14182         .4byte  1
14183         .p2align 1
14184 .LECIE1:
14185 .LSFDE1:
14186         .4byte  .LEFDE1-.LASFDE1
14187 .LASFDE1:
14188         .4byte  .LASFDE1-__FRAME_BEGIN__
14189         .4byte  .LFB1
14190         .4byte  .LFE1-.LFB1
14191         .byte   0x4
14192         .4byte  .LFE1-.LFB1
14193         .byte   0x4
14194         .4byte  .L1-.LFB1
14195 .LEFDE1:' > conftest.s
14196     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198   (eval $ac_try) 2>&5
14199   ac_status=$?
14200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201   (exit $ac_status); }; }
14202     then
14203           cat > conftest.lit <<EOF
14204  0000 10000000 00000000 017a0001 781a0004  .........z..x...
14205  0010 01000000 12000000 18000000 00000000  ................
14206  0020 08000000 04080000 0044               .........D      
14207 EOF
14208 cat > conftest.big <<EOF
14209  0000 00000010 00000000 017a0001 781a0004  .........z..x...
14210  0010 00000001 00000012 00000018 00000000  ................
14211  0020 00000008 04000000 0844               .........D      
14212 EOF
14213   # If the assembler didn't choke, and we can objdump,
14214   # and we got the correct data, then succeed.
14215   # The text in the here-document typically retains its unix-style line
14216   # endings, while the output of objdump will use host line endings.
14217   # Therefore, use diff -b for the comparisons.
14218   if test x$gcc_cv_objdump != x \
14219   && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
14220      | tail -3 > conftest.got \
14221   && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
14222     || diff -b conftest.big conftest.got > /dev/null 2>&1; }
14223   then
14224     gcc_cv_as_eh_frame=yes
14225   elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231     gcc_cv_as_eh_frame=buggy
14232   else
14233     # Uh oh, what do we do now?
14234     gcc_cv_as_eh_frame=no
14235   fi
14236     else
14237       echo "configure: failed program was" >&5
14238       cat conftest.s >&5
14239     fi
14240     rm -f conftest.o conftest.s
14241   fi
14242 fi
14243 echo "$as_me:$LINENO: result: $gcc_cv_as_eh_frame" >&5
14244 echo "${ECHO_T}$gcc_cv_as_eh_frame" >&6
14245
14246
14247 if test $gcc_cv_as_eh_frame = buggy; then
14248
14249 cat >>confdefs.h <<\_ACEOF
14250 #define USE_AS_TRADITIONAL_FORMAT 1
14251 _ACEOF
14252
14253 fi
14254
14255 echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14256 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14257 if test "${gcc_cv_as_shf_merge+set}" = set; then
14258   echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260   gcc_cv_as_shf_merge=no
14261     if test $in_tree_gas = yes; then
14262     if test $in_tree_gas_is_elf = yes \
14263   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14264   then gcc_cv_as_shf_merge=yes
14265 fi
14266   elif test x$gcc_cv_as != x; then
14267     echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
14268     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270   (eval $ac_try) 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; }
14274     then
14275         gcc_cv_as_shf_merge=yes
14276     else
14277       echo "configure: failed program was" >&5
14278       cat conftest.s >&5
14279     fi
14280     rm -f conftest.o conftest.s
14281   fi
14282 fi
14283 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14284 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14285
14286 if test $gcc_cv_as_shf_merge = no; then
14287   echo "$as_me:$LINENO: checking assembler for section merging support" >&5
14288 echo $ECHO_N "checking assembler for section merging support... $ECHO_C" >&6
14289 if test "${gcc_cv_as_shf_merge+set}" = set; then
14290   echo $ECHO_N "(cached) $ECHO_C" >&6
14291 else
14292   gcc_cv_as_shf_merge=no
14293     if test $in_tree_gas = yes; then
14294     if test $in_tree_gas_is_elf = yes \
14295   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14296   then gcc_cv_as_shf_merge=yes
14297 fi
14298   elif test x$gcc_cv_as != x; then
14299     echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
14300     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; }
14306     then
14307         gcc_cv_as_shf_merge=yes
14308     else
14309       echo "configure: failed program was" >&5
14310       cat conftest.s >&5
14311     fi
14312     rm -f conftest.o conftest.s
14313   fi
14314 fi
14315 echo "$as_me:$LINENO: result: $gcc_cv_as_shf_merge" >&5
14316 echo "${ECHO_T}$gcc_cv_as_shf_merge" >&6
14317
14318 fi
14319
14320 cat >>confdefs.h <<_ACEOF
14321 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
14322 _ACEOF
14323
14324
14325 echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14326 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14327 if test "${gcc_cv_as_comdat_group+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   gcc_cv_as_comdat_group=no
14331     if test $in_tree_gas = yes; then
14332     if test $in_tree_gas_is_elf = yes \
14333   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14334   then gcc_cv_as_comdat_group=yes
14335 fi
14336   elif test x$gcc_cv_as != x; then
14337     echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
14338     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; }
14344     then
14345         gcc_cv_as_comdat_group=yes
14346     else
14347       echo "configure: failed program was" >&5
14348       cat conftest.s >&5
14349     fi
14350     rm -f conftest.o conftest.s
14351   fi
14352 fi
14353 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group" >&5
14354 echo "${ECHO_T}$gcc_cv_as_comdat_group" >&6
14355
14356 if test $gcc_cv_as_comdat_group = yes; then
14357   gcc_cv_as_comdat_group_percent=no
14358 else
14359  echo "$as_me:$LINENO: checking assembler for COMDAT group support" >&5
14360 echo $ECHO_N "checking assembler for COMDAT group support... $ECHO_C" >&6
14361 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then
14362   echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364   gcc_cv_as_comdat_group_percent=no
14365     if test $in_tree_gas = yes; then
14366     if test $in_tree_gas_is_elf = yes \
14367   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
14368   then gcc_cv_as_comdat_group_percent=yes
14369 fi
14370   elif test x$gcc_cv_as != x; then
14371     echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
14372     if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
14373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374   (eval $ac_try) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; }
14378     then
14379         gcc_cv_as_comdat_group_percent=yes
14380     else
14381       echo "configure: failed program was" >&5
14382       cat conftest.s >&5
14383     fi
14384     rm -f conftest.o conftest.s
14385   fi
14386 fi
14387 echo "$as_me:$LINENO: result: $gcc_cv_as_comdat_group_percent" >&5
14388 echo "${ECHO_T}$gcc_cv_as_comdat_group_percent" >&6
14389
14390 fi
14391 if test $in_tree_ld != yes && test x"$ld_vers" != x; then
14392   comdat_group=yes
14393   if test 0"$ld_date" -lt 20050308; then
14394     if test -n "$ld_date"; then
14395       # If there was date string, but was earlier than 2005-03-08, fail
14396       comdat_group=no
14397     elif test "$ld_vers_major" -lt 2; then
14398       comdat_group=no
14399     elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
14400       comdat_group=no
14401     fi
14402   fi
14403 else
14404   # assume linkers other than GNU ld don't support COMDAT group
14405   comdat_group=no
14406 fi
14407 if test $comdat_group = no; then
14408   gcc_cv_as_comdat_group=no
14409   gcc_cv_as_comdat_group_percent=no
14410 fi
14411
14412 cat >>confdefs.h <<_ACEOF
14413 #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`
14414 _ACEOF
14415
14416
14417 # Thread-local storage - the check is heavily parametrized.
14418 conftest_s=
14419 tls_first_major=
14420 tls_first_minor=
14421 tls_as_opt=
14422 case "$target" in
14423   alpha*-*-*)
14424     conftest_s='
14425         .section ".tdata","awT",@progbits
14426 foo:    .long   25
14427         .text
14428         ldq     $27,__tls_get_addr($29)         !literal!1
14429         lda     $16,foo($29)                    !tlsgd!1
14430         jsr     $26,($27),__tls_get_addr        !lituse_tlsgd!1
14431         ldq     $27,__tls_get_addr($29)         !literal!2
14432         lda     $16,foo($29)                    !tlsldm!2
14433         jsr     $26,($27),__tls_get_addr        !lituse_tlsldm!2
14434         ldq     $1,foo($29)                     !gotdtprel
14435         ldah    $2,foo($29)                     !dtprelhi
14436         lda     $3,foo($2)                      !dtprello
14437         lda     $4,foo($29)                     !dtprel
14438         ldq     $1,foo($29)                     !gottprel
14439         ldah    $2,foo($29)                     !tprelhi
14440         lda     $3,foo($2)                      !tprello
14441         lda     $4,foo($29)                     !tprel'
14442         tls_first_major=2
14443         tls_first_minor=13
14444         tls_as_opt=--fatal-warnings
14445         ;;
14446   frv*-*-*)
14447     conftest_s='
14448         .section ".tdata","awT",@progbits
14449 x:      .long   25
14450         .text
14451         call    #gettlsoff(x)'
14452         tls_first_major=2
14453         tls_first_minor=14
14454         ;;
14455   hppa*-*-linux*)
14456     conftest_s='
14457 t1:     .reg    %r20
14458 t2:     .reg    %r21
14459 gp:     .reg    %r19
14460         .section ".tdata","awT",@progbits
14461 foo:    .long   25
14462         .text
14463         .align  4
14464         addil LT%foo-$tls_gdidx$,gp
14465         ldo RT%foo-$tls_gdidx$(%r1),%arg0
14466         b __tls_get_addr
14467         nop
14468         addil LT%foo-$tls_ldidx$,gp
14469         b __tls_get_addr
14470         ldo RT%foo-$tls_ldidx$(%r1),%arg0
14471         addil LR%foo-$tls_dtpoff$,%ret0
14472         ldo RR%foo-$tls_dtpoff$(%r1),%t1
14473         mfctl %cr27,%t1
14474         addil LT%foo-$tls_ieoff$,gp
14475         ldw RT%foo-$tls_ieoff$(%r1),%t2
14476         add %t1,%t2,%t3
14477         mfctl %cr27,%t1
14478         addil LR%foo-$tls_leoff$,%t1
14479         ldo RR%foo-$tls_leoff$(%r1),%t2'
14480         tls_first_major=2
14481         tls_first_minor=15
14482         tls_as_opt=--fatal-warnings
14483         ;;
14484   arm*-*-*)
14485     conftest_s='
14486         .section ".tdata","awT",%progbits
14487 foo:    .long   25
14488         .text
14489 .word foo(gottpoff)
14490 .word foo(tpoff)
14491 .word foo(tlsgd)
14492 .word foo(tlsldm)
14493 .word foo(tlsldo)'
14494         tls_first_major=2
14495         tls_first_minor=17
14496         ;;
14497   i[34567]86-*-*)
14498     conftest_s='
14499         .section ".tdata","awT",@progbits
14500 foo:    .long   25
14501         .text
14502         movl    %gs:0, %eax
14503         leal    foo@TLSGD(,%ebx,1), %eax
14504         leal    foo@TLSLDM(%ebx), %eax
14505         leal    foo@DTPOFF(%eax), %edx
14506         movl    foo@GOTTPOFF(%ebx), %eax
14507         subl    foo@GOTTPOFF(%ebx), %eax
14508         addl    foo@GOTNTPOFF(%ebx), %eax
14509         movl    foo@INDNTPOFF, %eax
14510         movl    $foo@TPOFF, %eax
14511         subl    $foo@TPOFF, %eax
14512         leal    foo@NTPOFF(%ecx), %eax'
14513         tls_first_major=2
14514         tls_first_minor=14
14515         tls_as_opt=--fatal-warnings
14516         ;;
14517   x86_64-*-*)
14518     conftest_s='
14519         .section ".tdata","awT",@progbits
14520 foo:    .long   25
14521         .text
14522         movq    %fs:0, %rax
14523         leaq    foo@TLSGD(%rip), %rdi
14524         leaq    foo@TLSLD(%rip), %rdi
14525         leaq    foo@DTPOFF(%rax), %rdx
14526         movq    foo@GOTTPOFF(%rip), %rax
14527         movq    $foo@TPOFF, %rax'
14528         tls_first_major=2
14529         tls_first_minor=14
14530         tls_as_opt=--fatal-warnings
14531         ;;
14532   ia64-*-*)
14533     conftest_s='
14534         .section ".tdata","awT",@progbits
14535 foo:    data8   25
14536         .text
14537         addl    r16 = @ltoff(@dtpmod(foo#)), gp
14538         addl    r17 = @ltoff(@dtprel(foo#)), gp
14539         addl    r18 = @ltoff(@tprel(foo#)), gp
14540         addl    r19 = @dtprel(foo#), gp
14541         adds    r21 = @dtprel(foo#), r13
14542         movl    r23 = @dtprel(foo#)
14543         addl    r20 = @tprel(foo#), gp
14544         adds    r22 = @tprel(foo#), r13
14545         movl    r24 = @tprel(foo#)'
14546         tls_first_major=2
14547         tls_first_minor=13
14548         tls_as_opt=--fatal-warnings
14549         ;;
14550   mips*-*-*)
14551     conftest_s='
14552         .section .tdata,"awT",@progbits
14553 x:
14554         .word 2
14555         .text
14556         addiu $4, $28, %tlsgd(x)
14557         addiu $4, $28, %tlsldm(x)
14558         lui $4, %dtprel_hi(x)
14559         addiu $4, $4, %dtprel_lo(x)
14560         lw $4, %gottprel(x)($28)
14561         lui $4, %tprel_hi(x)
14562         addiu $4, $4, %tprel_lo(x)'
14563         tls_first_major=2
14564         tls_first_minor=16
14565         tls_as_opt='-32 --fatal-warnings'
14566         ;;
14567   powerpc-*-*)
14568     conftest_s='
14569         .section ".tdata","awT",@progbits
14570         .align 2
14571 ld0:    .space 4
14572 ld1:    .space 4
14573 x1:     .space 4
14574 x2:     .space 4
14575 x3:     .space 4
14576         .text
14577         addi 3,31,ld0@got@tlsgd
14578         bl __tls_get_addr
14579         addi 3,31,x1@got@tlsld
14580         bl __tls_get_addr
14581         addi 9,3,x1@dtprel
14582         addis 9,3,x2@dtprel@ha
14583         addi 9,9,x2@dtprel@l
14584         lwz 9,x3@got@tprel(31)
14585         add 9,9,x@tls
14586         addi 9,2,x1@tprel
14587         addis 9,2,x2@tprel@ha
14588         addi 9,9,x2@tprel@l'
14589         tls_first_major=2
14590         tls_first_minor=14
14591         tls_as_opt="-a32 --fatal-warnings"
14592         ;;
14593   powerpc64-*-*)
14594     conftest_s='
14595         .section ".tdata","awT",@progbits
14596         .align 3
14597 ld0:    .space 8
14598 ld1:    .space 8
14599 x1:     .space 8
14600 x2:     .space 8
14601 x3:     .space 8
14602         .text
14603         addi 3,2,ld0@got@tlsgd
14604         bl .__tls_get_addr
14605         nop
14606         addi 3,2,ld1@toc
14607         bl .__tls_get_addr
14608         nop
14609         addi 3,2,x1@got@tlsld
14610         bl .__tls_get_addr
14611         nop
14612         addi 9,3,x1@dtprel
14613         bl .__tls_get_addr
14614         nop
14615         addis 9,3,x2@dtprel@ha
14616         addi 9,9,x2@dtprel@l
14617         bl .__tls_get_addr
14618         nop
14619         ld 9,x3@got@dtprel(2)
14620         add 9,9,3
14621         bl .__tls_get_addr
14622         nop'
14623         tls_first_major=2
14624         tls_first_minor=14
14625         tls_as_opt="-a64 --fatal-warnings"
14626         ;;
14627   s390-*-*)
14628     conftest_s='
14629         .section ".tdata","awT",@progbits
14630 foo:    .long   25
14631         .text
14632         .long   foo@TLSGD
14633         .long   foo@TLSLDM
14634         .long   foo@DTPOFF
14635         .long   foo@NTPOFF
14636         .long   foo@GOTNTPOFF
14637         .long   foo@INDNTPOFF
14638         l       %r1,foo@GOTNTPOFF(%r12)
14639         l       %r1,0(%r1):tls_load:foo
14640         bas     %r14,0(%r1,%r13):tls_gdcall:foo
14641         bas     %r14,0(%r1,%r13):tls_ldcall:foo'
14642         tls_first_major=2
14643         tls_first_minor=14
14644         tls_as_opt="-m31 --fatal-warnings"
14645         ;;
14646   s390x-*-*)
14647     conftest_s='
14648         .section ".tdata","awT",@progbits
14649 foo:    .long   25
14650         .text
14651         .quad   foo@TLSGD
14652         .quad   foo@TLSLDM
14653         .quad   foo@DTPOFF
14654         .quad   foo@NTPOFF
14655         .quad   foo@GOTNTPOFF
14656         lg      %r1,foo@GOTNTPOFF(%r12)
14657         larl    %r1,foo@INDNTPOFF
14658         brasl   %r14,__tls_get_offset@PLT:tls_gdcall:foo
14659         brasl   %r14,__tls_get_offset@PLT:tls_ldcall:foo'
14660         tls_first_major=2
14661         tls_first_minor=14
14662         tls_as_opt="-m64 -Aesame --fatal-warnings"
14663         ;;
14664   sh-*-* | sh[34]-*-*)
14665     conftest_s='
14666         .section ".tdata","awT",@progbits
14667 foo:    .long   25
14668         .text
14669         .long   foo@TLSGD
14670         .long   foo@TLSLDM
14671         .long   foo@DTPOFF
14672         .long   foo@GOTTPOFF
14673         .long   foo@TPOFF'
14674         tls_first_major=2
14675         tls_first_minor=13
14676         tls_as_opt=--fatal-warnings
14677         ;;
14678   sparc*-*-*)
14679     case "$target" in
14680       sparc*-sun-solaris2.[56789]*)
14681         # TLS was introduced in the Solaris 9 4/04 release but
14682         # we do not enable it by default on Solaris 9 either.
14683         if test "x$enable_tls" = xyes ; then
14684           on_solaris=yes
14685         else
14686           enable_tls=no;
14687         fi
14688         ;;
14689       sparc*-sun-solaris2.*)
14690         on_solaris=yes
14691         ;;
14692       *)
14693         on_solaris=no
14694         ;;
14695     esac
14696     if test x$on_solaris = xyes && test x$gas_flag = xno; then
14697       conftest_s='
14698         .section ".tdata",#alloc,#write,#tls
14699 foo:    .long   25
14700         .text
14701         sethi   %tgd_hi22(foo), %o0
14702         add     %o0, %tgd_lo10(foo), %o1
14703         add     %l7, %o1, %o0, %tgd_add(foo)
14704         call    __tls_get_addr, %tgd_call(foo)
14705         sethi   %tldm_hi22(foo), %l1
14706         add     %l1, %tldm_lo10(foo), %l2
14707         add     %l7, %l2, %o0, %tldm_add(foo)
14708         call    __tls_get_addr, %tldm_call(foo)
14709         sethi   %tldo_hix22(foo), %l3
14710         xor     %l3, %tldo_lox10(foo), %l4
14711         add     %o0, %l4, %l5, %tldo_add(foo)
14712         sethi   %tie_hi22(foo), %o3
14713         add     %o3, %tie_lo10(foo), %o3
14714         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14715         add     %g7, %o2, %o4, %tie_add(foo)
14716         sethi   %tle_hix22(foo), %l1
14717         xor     %l1, %tle_lox10(foo), %o5
14718         ld      [%g7 + %o5], %o1'
14719         tls_first_major=0
14720         tls_first_minor=0
14721     else
14722       conftest_s='
14723         .section ".tdata","awT",@progbits
14724 foo:    .long   25
14725         .text
14726         sethi   %tgd_hi22(foo), %o0
14727         add     %o0, %tgd_lo10(foo), %o1
14728         add     %l7, %o1, %o0, %tgd_add(foo)
14729         call    __tls_get_addr, %tgd_call(foo)
14730         sethi   %tldm_hi22(foo), %l1
14731         add     %l1, %tldm_lo10(foo), %l2
14732         add     %l7, %l2, %o0, %tldm_add(foo)
14733         call    __tls_get_addr, %tldm_call(foo)
14734         sethi   %tldo_hix22(foo), %l3
14735         xor     %l3, %tldo_lox10(foo), %l4
14736         add     %o0, %l4, %l5, %tldo_add(foo)
14737         sethi   %tie_hi22(foo), %o3
14738         add     %o3, %tie_lo10(foo), %o3
14739         ld      [%l7 + %o3], %o2, %tie_ld(foo)
14740         add     %g7, %o2, %o4, %tie_add(foo)
14741         sethi   %tle_hix22(foo), %l1
14742         xor     %l1, %tle_lox10(foo), %o5
14743         ld      [%g7 + %o5], %o1'
14744         tls_first_major=2
14745         tls_first_minor=14
14746         tls_as_opt="-32 --fatal-warnings"
14747       fi
14748         ;;
14749 esac
14750 set_have_as_tls=no
14751 if test "x$enable_tls" = xno ; then
14752   : # TLS explicitly disabled.
14753 elif test "x$enable_tls" = xyes ; then
14754   set_have_as_tls=yes # TLS explicitly enabled.
14755 elif test -z "$tls_first_major"; then
14756   : # If we don't have a check, assume no support.
14757 else
14758   echo "$as_me:$LINENO: checking assembler for thread-local storage support" >&5
14759 echo $ECHO_N "checking assembler for thread-local storage support... $ECHO_C" >&6
14760 if test "${gcc_cv_as_tls+set}" = set; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   gcc_cv_as_tls=no
14764     if test $in_tree_gas = yes; then
14765     if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
14766   then gcc_cv_as_tls=yes
14767 fi
14768   elif test x$gcc_cv_as != x; then
14769     echo "$conftest_s" > conftest.s
14770     if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
14771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772   (eval $ac_try) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; }
14776     then
14777         gcc_cv_as_tls=yes
14778     else
14779       echo "configure: failed program was" >&5
14780       cat conftest.s >&5
14781     fi
14782     rm -f conftest.o conftest.s
14783   fi
14784 fi
14785 echo "$as_me:$LINENO: result: $gcc_cv_as_tls" >&5
14786 echo "${ECHO_T}$gcc_cv_as_tls" >&6
14787 if test $gcc_cv_as_tls = yes; then
14788   set_have_as_tls=yes
14789 fi
14790 fi
14791 if test $set_have_as_tls = yes ; then
14792
14793 cat >>confdefs.h <<\_ACEOF
14794 #define HAVE_AS_TLS 1
14795 _ACEOF
14796
14797 fi
14798
14799 # Target-specific assembler checks.
14800
14801 echo "$as_me:$LINENO: checking linker -Bstatic/-Bdynamic option" >&5
14802 echo $ECHO_N "checking linker -Bstatic/-Bdynamic option... $ECHO_C" >&6
14803 gcc_cv_ld_static_dynamic=no
14804 if test $in_tree_ld = yes ; then
14805   if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10; then
14806     gcc_cv_ld_static_dynamic=yes
14807   fi
14808 elif test x$gcc_cv_ld != x; then
14809         # Check if linker supports -Bstatic/-Bdynamic option
14810         if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
14811           && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
14812                 gcc_cv_ld_static_dynamic=yes
14813         fi
14814 fi
14815 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
14816
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_LD_STATIC_DYNAMIC 1
14819 _ACEOF
14820
14821 fi
14822 echo "$as_me:$LINENO: result: $gcc_cv_ld_static_dynamic" >&5
14823 echo "${ECHO_T}$gcc_cv_ld_static_dynamic" >&6
14824
14825 if test x"$demangler_in_ld" = xyes; then
14826   echo "$as_me:$LINENO: checking linker --demangle support" >&5
14827 echo $ECHO_N "checking linker --demangle support... $ECHO_C" >&6
14828   gcc_cv_ld_demangle=no
14829   if test $in_tree_ld = yes; then
14830     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 \
14831       gcc_cv_ld_demangle=yes
14832     fi
14833   elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
14834     # Check if the GNU linker supports --demangle option
14835     if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
14836       gcc_cv_ld_demangle=yes
14837     fi
14838   fi
14839   if test x"$gcc_cv_ld_demangle" = xyes; then
14840
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_LD_DEMANGLE 1
14843 _ACEOF
14844
14845   fi
14846   echo "$as_me:$LINENO: result: $gcc_cv_ld_demangle" >&5
14847 echo "${ECHO_T}$gcc_cv_ld_demangle" >&6
14848 fi
14849
14850 case "$target" in
14851   # All TARGET_ABI_OSF targets.
14852   alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
14853     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
14854 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
14855 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then
14856   echo $ECHO_N "(cached) $ECHO_C" >&6
14857 else
14858   gcc_cv_as_alpha_explicit_relocs=no
14859     if test $in_tree_gas = yes; then
14860     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
14861   then gcc_cv_as_alpha_explicit_relocs=yes
14862 fi
14863   elif test x$gcc_cv_as != x; then
14864     echo '      .set nomacro
14865         .text
14866         extbl   $3, $2, $3      !lituse_bytoff!1
14867         ldq     $2, a($29)      !literal!1
14868         ldq     $4, b($29)      !literal!2
14869         ldq_u   $3, 0($2)       !lituse_base!1
14870         ldq     $27, f($29)     !literal!5
14871         jsr     $26, ($27), f   !lituse_jsr!5
14872         ldah    $29, 0($26)     !gpdisp!3
14873         lda     $0, c($29)      !gprel
14874         ldah    $1, d($29)      !gprelhigh
14875         lda     $1, d($1)       !gprellow
14876         lda     $29, 0($29)     !gpdisp!3' > conftest.s
14877     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14879   (eval $ac_try) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); }; }
14883     then
14884         gcc_cv_as_alpha_explicit_relocs=yes
14885     else
14886       echo "configure: failed program was" >&5
14887       cat conftest.s >&5
14888     fi
14889     rm -f conftest.o conftest.s
14890   fi
14891 fi
14892 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_explicit_relocs" >&5
14893 echo "${ECHO_T}$gcc_cv_as_alpha_explicit_relocs" >&6
14894 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
14895
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_AS_EXPLICIT_RELOCS 1
14898 _ACEOF
14899
14900 fi
14901     echo "$as_me:$LINENO: checking assembler for jsrdirect relocation support" >&5
14902 echo $ECHO_N "checking assembler for jsrdirect relocation support... $ECHO_C" >&6
14903 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906   gcc_cv_as_alpha_jsrdirect_relocs=no
14907     if test $in_tree_gas = yes; then
14908     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
14909   then gcc_cv_as_alpha_jsrdirect_relocs=yes
14910 fi
14911   elif test x$gcc_cv_as != x; then
14912     echo '      .set nomacro
14913         .text
14914         ldq     $27, a($29)     !literal!1
14915         jsr     $26, ($27), a   !lituse_jsrdirect!1' > conftest.s
14916     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918   (eval $ac_try) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; }
14922     then
14923         gcc_cv_as_alpha_jsrdirect_relocs=yes
14924     else
14925       echo "configure: failed program was" >&5
14926       cat conftest.s >&5
14927     fi
14928     rm -f conftest.o conftest.s
14929   fi
14930 fi
14931 echo "$as_me:$LINENO: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
14932 echo "${ECHO_T}$gcc_cv_as_alpha_jsrdirect_relocs" >&6
14933 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
14934
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_AS_JSRDIRECT_RELOCS 1
14937 _ACEOF
14938
14939 fi
14940     ;;
14941
14942   cris-*-*)
14943     echo "$as_me:$LINENO: checking assembler for -no-mul-bug-abort option" >&5
14944 echo $ECHO_N "checking assembler for -no-mul-bug-abort option... $ECHO_C" >&6
14945 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then
14946   echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948   gcc_cv_as_cris_no_mul_bug=no
14949     if test $in_tree_gas = yes; then
14950     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
14951   then gcc_cv_as_cris_no_mul_bug=yes
14952 fi
14953   elif test x$gcc_cv_as != x; then
14954     echo '.text' > conftest.s
14955     if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }
14961     then
14962         gcc_cv_as_cris_no_mul_bug=yes
14963     else
14964       echo "configure: failed program was" >&5
14965       cat conftest.s >&5
14966     fi
14967     rm -f conftest.o conftest.s
14968   fi
14969 fi
14970 echo "$as_me:$LINENO: result: $gcc_cv_as_cris_no_mul_bug" >&5
14971 echo "${ECHO_T}$gcc_cv_as_cris_no_mul_bug" >&6
14972 if test $gcc_cv_as_cris_no_mul_bug = yes; then
14973
14974 cat >>confdefs.h <<\_ACEOF
14975 #define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1
14976 _ACEOF
14977
14978 fi
14979     ;;
14980
14981   sparc*-*-*)
14982     echo "$as_me:$LINENO: checking assembler for .register" >&5
14983 echo $ECHO_N "checking assembler for .register... $ECHO_C" >&6
14984 if test "${gcc_cv_as_sparc_register_op+set}" = set; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   gcc_cv_as_sparc_register_op=no
14988   if test x$gcc_cv_as != x; then
14989     echo '.register %g2, #scratch' > conftest.s
14990     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
14991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992   (eval $ac_try) 2>&5
14993   ac_status=$?
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); }; }
14996     then
14997         gcc_cv_as_sparc_register_op=yes
14998     else
14999       echo "configure: failed program was" >&5
15000       cat conftest.s >&5
15001     fi
15002     rm -f conftest.o conftest.s
15003   fi
15004 fi
15005 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_register_op" >&5
15006 echo "${ECHO_T}$gcc_cv_as_sparc_register_op" >&6
15007 if test $gcc_cv_as_sparc_register_op = yes; then
15008
15009 cat >>confdefs.h <<\_ACEOF
15010 #define HAVE_AS_REGISTER_PSEUDO_OP 1
15011 _ACEOF
15012
15013 fi
15014
15015     echo "$as_me:$LINENO: checking assembler for -relax option" >&5
15016 echo $ECHO_N "checking assembler for -relax option... $ECHO_C" >&6
15017 if test "${gcc_cv_as_sparc_relax+set}" = set; then
15018   echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020   gcc_cv_as_sparc_relax=no
15021   if test x$gcc_cv_as != x; then
15022     echo '.text' > conftest.s
15023     if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
15024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025   (eval $ac_try) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }; }
15029     then
15030         gcc_cv_as_sparc_relax=yes
15031     else
15032       echo "configure: failed program was" >&5
15033       cat conftest.s >&5
15034     fi
15035     rm -f conftest.o conftest.s
15036   fi
15037 fi
15038 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_relax" >&5
15039 echo "${ECHO_T}$gcc_cv_as_sparc_relax" >&6
15040 if test $gcc_cv_as_sparc_relax = yes; then
15041
15042 cat >>confdefs.h <<\_ACEOF
15043 #define HAVE_AS_RELAX_OPTION 1
15044 _ACEOF
15045
15046 fi
15047
15048     echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs" >&5
15049 echo $ECHO_N "checking assembler for unaligned pcrel relocs... $ECHO_C" >&6
15050 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then
15051   echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053   gcc_cv_as_sparc_ua_pcrel=no
15054   if test x$gcc_cv_as != x; then
15055     echo '.text
15056 foo:
15057         nop
15058 .data
15059 .align 4
15060 .byte 0
15061 .uaword %r_disp32(foo)' > conftest.s
15062     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }
15068     then
15069         if test x$gcc_cv_ld != x \
15070        && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
15071          gcc_cv_as_sparc_ua_pcrel=yes
15072        fi
15073        rm -f conftest
15074     else
15075       echo "configure: failed program was" >&5
15076       cat conftest.s >&5
15077     fi
15078     rm -f conftest.o conftest.s
15079   fi
15080 fi
15081 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel" >&5
15082 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel" >&6
15083 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
15084
15085 cat >>confdefs.h <<\_ACEOF
15086 #define HAVE_AS_SPARC_UA_PCREL 1
15087 _ACEOF
15088
15089
15090       echo "$as_me:$LINENO: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
15091 echo $ECHO_N "checking assembler for unaligned pcrel relocs against hidden symbols... $ECHO_C" >&6
15092 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then
15093   echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
15095   gcc_cv_as_sparc_ua_pcrel_hidden=no
15096   if test x$gcc_cv_as != x; then
15097     echo '.data
15098 .align 4
15099 .byte 0x31
15100 .uaword %r_disp32(foo)
15101 .byte 0x32, 0x33, 0x34
15102 .global foo
15103 .hidden foo
15104 foo:
15105 .skip 4' > conftest.s
15106     if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }
15112     then
15113         if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
15114          && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
15115          && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
15116             | grep ' 31000000 07323334' > /dev/null 2>&1; then
15117             if $gcc_cv_objdump -R conftest 2> /dev/null \
15118                | grep 'DISP32' > /dev/null 2>&1; then
15119                 :
15120             else
15121                 gcc_cv_as_sparc_ua_pcrel_hidden=yes
15122             fi
15123          fi
15124          rm -f conftest
15125     else
15126       echo "configure: failed program was" >&5
15127       cat conftest.s >&5
15128     fi
15129     rm -f conftest.o conftest.s
15130   fi
15131 fi
15132 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
15133 echo "${ECHO_T}$gcc_cv_as_sparc_ua_pcrel_hidden" >&6
15134 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
15135
15136 cat >>confdefs.h <<\_ACEOF
15137 #define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1
15138 _ACEOF
15139
15140 fi
15141
15142 fi # unaligned pcrel relocs
15143
15144     echo "$as_me:$LINENO: checking assembler for offsetable %lo()" >&5
15145 echo $ECHO_N "checking assembler for offsetable %lo()... $ECHO_C" >&6
15146 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then
15147   echo $ECHO_N "(cached) $ECHO_C" >&6
15148 else
15149   gcc_cv_as_sparc_offsetable_lo10=no
15150   if test x$gcc_cv_as != x; then
15151     echo '.text
15152         or %g1, %lo(ab) + 12, %g1
15153         or %g1, %lo(ab + 12), %g1' > conftest.s
15154     if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
15155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156   (eval $ac_try) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; }
15160     then
15161         if test x$gcc_cv_objdump != x \
15162        && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
15163           | grep ' 82106000 82106000' > /dev/null 2>&1; then
15164          gcc_cv_as_sparc_offsetable_lo10=yes
15165        fi
15166     else
15167       echo "configure: failed program was" >&5
15168       cat conftest.s >&5
15169     fi
15170     rm -f conftest.o conftest.s
15171   fi
15172 fi
15173 echo "$as_me:$LINENO: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
15174 echo "${ECHO_T}$gcc_cv_as_sparc_offsetable_lo10" >&6
15175 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
15176
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_AS_OFFSETABLE_LO10 1
15179 _ACEOF
15180
15181 fi
15182     ;;
15183
15184   i[34567]86-*-* | x86_64-*-*)
15185     case $target_os in
15186       cygwin* | pe | mingw32*)
15187         # Used for DWARF 2 in PE
15188         echo "$as_me:$LINENO: checking assembler for .secrel32 relocs" >&5
15189 echo $ECHO_N "checking assembler for .secrel32 relocs... $ECHO_C" >&6
15190 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then
15191   echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193   gcc_cv_as_ix86_pe_secrel32=no
15194     if test $in_tree_gas = yes; then
15195     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
15196   then gcc_cv_as_ix86_pe_secrel32=yes
15197 fi
15198   elif test x$gcc_cv_as != x; then
15199     echo '.text
15200 foo:    nop
15201 .data
15202         .secrel32 foo' > conftest.s
15203     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205   (eval $ac_try) 2>&5
15206   ac_status=$?
15207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208   (exit $ac_status); }; }
15209     then
15210         if test x$gcc_cv_ld != x \
15211            && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
15212              gcc_cv_as_ix86_pe_secrel32=yes
15213            fi
15214            rm -f conftest
15215     else
15216       echo "configure: failed program was" >&5
15217       cat conftest.s >&5
15218     fi
15219     rm -f conftest.o conftest.s
15220   fi
15221 fi
15222 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_pe_secrel32" >&5
15223 echo "${ECHO_T}$gcc_cv_as_ix86_pe_secrel32" >&6
15224 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
15225
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_GAS_PE_SECREL32_RELOC 1
15228 _ACEOF
15229
15230 fi
15231         ;;
15232     esac
15233
15234     echo "$as_me:$LINENO: checking assembler for filds and fists mnemonics" >&5
15235 echo $ECHO_N "checking assembler for filds and fists mnemonics... $ECHO_C" >&6
15236 if test "${gcc_cv_as_ix86_filds_fists+set}" = set; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   gcc_cv_as_ix86_filds_fists=no
15240     if test $in_tree_gas = yes; then
15241     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
15242   then gcc_cv_as_ix86_filds_fists=yes
15243 fi
15244   elif test x$gcc_cv_as != x; then
15245     echo 'filds mem; fists mem' > conftest.s
15246     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248   (eval $ac_try) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; }
15252     then
15253         gcc_cv_as_ix86_filds_fists=yes
15254     else
15255       echo "configure: failed program was" >&5
15256       cat conftest.s >&5
15257     fi
15258     rm -f conftest.o conftest.s
15259   fi
15260 fi
15261 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_filds_fists" >&5
15262 echo "${ECHO_T}$gcc_cv_as_ix86_filds_fists" >&6
15263 if test $gcc_cv_as_ix86_filds_fists = yes; then
15264
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_GAS_FILDS_FISTS 1
15267 _ACEOF
15268
15269 fi
15270
15271     echo "$as_me:$LINENO: checking assembler for cmov syntax" >&5
15272 echo $ECHO_N "checking assembler for cmov syntax... $ECHO_C" >&6
15273 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   gcc_cv_as_ix86_cmov_sun_syntax=no
15277   if test x$gcc_cv_as != x; then
15278     echo 'cmovl.l %edx, %eax' > conftest.s
15279     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281   (eval $ac_try) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; }
15285     then
15286         gcc_cv_as_ix86_cmov_sun_syntax=yes
15287     else
15288       echo "configure: failed program was" >&5
15289       cat conftest.s >&5
15290     fi
15291     rm -f conftest.o conftest.s
15292   fi
15293 fi
15294 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
15295 echo "${ECHO_T}$gcc_cv_as_ix86_cmov_sun_syntax" >&6
15296 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
15297
15298 cat >>confdefs.h <<\_ACEOF
15299 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1
15300 _ACEOF
15301
15302 fi
15303
15304     echo "$as_me:$LINENO: checking assembler for ffreep mnemonic" >&5
15305 echo $ECHO_N "checking assembler for ffreep mnemonic... $ECHO_C" >&6
15306 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then
15307   echo $ECHO_N "(cached) $ECHO_C" >&6
15308 else
15309   gcc_cv_as_ix86_ffreep=no
15310   if test x$gcc_cv_as != x; then
15311     echo 'ffreep %st(1)' > conftest.s
15312     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314   (eval $ac_try) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; }
15318     then
15319         gcc_cv_as_ix86_ffreep=yes
15320     else
15321       echo "configure: failed program was" >&5
15322       cat conftest.s >&5
15323     fi
15324     rm -f conftest.o conftest.s
15325   fi
15326 fi
15327 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_ffreep" >&5
15328 echo "${ECHO_T}$gcc_cv_as_ix86_ffreep" >&6
15329 if test $gcc_cv_as_ix86_ffreep = yes; then
15330
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_AS_IX86_FFREEP 1
15333 _ACEOF
15334
15335 fi
15336
15337     echo "$as_me:$LINENO: checking assembler for sahf mnemonic" >&5
15338 echo $ECHO_N "checking assembler for sahf mnemonic... $ECHO_C" >&6
15339 if test "${gcc_cv_as_ix86_sahf+set}" = set; then
15340   echo $ECHO_N "(cached) $ECHO_C" >&6
15341 else
15342   gcc_cv_as_ix86_sahf=no
15343   if test x$gcc_cv_as != x; then
15344     echo 'sahf' > conftest.s
15345     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347   (eval $ac_try) 2>&5
15348   ac_status=$?
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); }; }
15351     then
15352         gcc_cv_as_ix86_sahf=yes
15353     else
15354       echo "configure: failed program was" >&5
15355       cat conftest.s >&5
15356     fi
15357     rm -f conftest.o conftest.s
15358   fi
15359 fi
15360 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_sahf" >&5
15361 echo "${ECHO_T}$gcc_cv_as_ix86_sahf" >&6
15362 if test $gcc_cv_as_ix86_sahf = yes; then
15363
15364 cat >>confdefs.h <<\_ACEOF
15365 #define HAVE_AS_IX86_SAHF 1
15366 _ACEOF
15367
15368 fi
15369
15370     echo "$as_me:$LINENO: checking assembler for different section symbol subtraction" >&5
15371 echo $ECHO_N "checking assembler for different section symbol subtraction... $ECHO_C" >&6
15372 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   gcc_cv_as_ix86_diff_sect_delta=no
15376   if test x$gcc_cv_as != x; then
15377     echo '.section .rodata
15378 .L1:
15379         .long .L2-.L1
15380         .long .L3-.L1
15381         .text
15382 .L3:    nop
15383 .L2:    nop' > conftest.s
15384     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386   (eval $ac_try) 2>&5
15387   ac_status=$?
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); }; }
15390     then
15391         gcc_cv_as_ix86_diff_sect_delta=yes
15392     else
15393       echo "configure: failed program was" >&5
15394       cat conftest.s >&5
15395     fi
15396     rm -f conftest.o conftest.s
15397   fi
15398 fi
15399 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
15400 echo "${ECHO_T}$gcc_cv_as_ix86_diff_sect_delta" >&6
15401 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
15402
15403 cat >>confdefs.h <<\_ACEOF
15404 #define HAVE_AS_IX86_DIFF_SECT_DELTA 1
15405 _ACEOF
15406
15407 fi
15408
15409     # This one is used unconditionally by i386.[ch]; it is to be defined
15410     # to 1 if the feature is present, 0 otherwise.
15411     echo "$as_me:$LINENO: checking assembler for GOTOFF in data" >&5
15412 echo $ECHO_N "checking assembler for GOTOFF in data... $ECHO_C" >&6
15413 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then
15414   echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416   gcc_cv_as_ix86_gotoff_in_data=no
15417     if test $in_tree_gas = yes; then
15418     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
15419   then gcc_cv_as_ix86_gotoff_in_data=yes
15420 fi
15421   elif test x$gcc_cv_as != x; then
15422     echo '      .text
15423 .L0:
15424         nop
15425         .data
15426         .long .L0@GOTOFF' > conftest.s
15427     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429   (eval $ac_try) 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; }
15433     then
15434         gcc_cv_as_ix86_gotoff_in_data=yes
15435     else
15436       echo "configure: failed program was" >&5
15437       cat conftest.s >&5
15438     fi
15439     rm -f conftest.o conftest.s
15440   fi
15441 fi
15442 echo "$as_me:$LINENO: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
15443 echo "${ECHO_T}$gcc_cv_as_ix86_gotoff_in_data" >&6
15444
15445
15446 cat >>confdefs.h <<_ACEOF
15447 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
15448 _ACEOF
15449
15450     ;;
15451
15452   ia64*-*-*)
15453     echo "$as_me:$LINENO: checking assembler for ltoffx and ldxmov relocs" >&5
15454 echo $ECHO_N "checking assembler for ltoffx and ldxmov relocs... $ECHO_C" >&6
15455 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then
15456   echo $ECHO_N "(cached) $ECHO_C" >&6
15457 else
15458   gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
15459     if test $in_tree_gas = yes; then
15460     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15461   then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15462 fi
15463   elif test x$gcc_cv_as != x; then
15464     echo '      .text
15465         addl r15 = @ltoffx(x#), gp
15466         ;;
15467         ld8.mov r16 = [r15], x#' > conftest.s
15468     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470   (eval $ac_try) 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; }
15474     then
15475         gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
15476     else
15477       echo "configure: failed program was" >&5
15478       cat conftest.s >&5
15479     fi
15480     rm -f conftest.o conftest.s
15481   fi
15482 fi
15483 echo "$as_me:$LINENO: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
15484 echo "${ECHO_T}$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6
15485 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
15486
15487 cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1
15489 _ACEOF
15490
15491 fi
15492
15493     ;;
15494
15495   powerpc*-*-*)
15496     case $target in
15497       *-*-aix*) conftest_s='    .machine "pwr5"
15498         .csect .text[PR]
15499         mfcr 3,128';;
15500       *-*-darwin*)
15501         echo "$as_me:$LINENO: checking assembler for .machine directive support" >&5
15502 echo $ECHO_N "checking assembler for .machine directive support... $ECHO_C" >&6
15503 if test "${gcc_cv_as_machine_directive+set}" = set; then
15504   echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506   gcc_cv_as_machine_directive=no
15507   if test x$gcc_cv_as != x; then
15508     echo '      .machine ppc7400' > conftest.s
15509     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511   (eval $ac_try) 2>&5
15512   ac_status=$?
15513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514   (exit $ac_status); }; }
15515     then
15516         gcc_cv_as_machine_directive=yes
15517     else
15518       echo "configure: failed program was" >&5
15519       cat conftest.s >&5
15520     fi
15521     rm -f conftest.o conftest.s
15522   fi
15523 fi
15524 echo "$as_me:$LINENO: result: $gcc_cv_as_machine_directive" >&5
15525 echo "${ECHO_T}$gcc_cv_as_machine_directive" >&6
15526
15527         if test x$gcc_cv_as_machine_directive != xyes; then
15528           echo "*** This target requires an assembler supporting \".machine\"" >&2
15529           echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
15530           test x$build = x$target && exit 1
15531         fi
15532         conftest_s='    .text
15533         mfcr r3,128';;
15534       *) conftest_s='   .machine power4
15535         .text
15536         mfcr 3,128';;
15537     esac
15538
15539     echo "$as_me:$LINENO: checking assembler for mfcr field support" >&5
15540 echo $ECHO_N "checking assembler for mfcr field support... $ECHO_C" >&6
15541 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then
15542   echo $ECHO_N "(cached) $ECHO_C" >&6
15543 else
15544   gcc_cv_as_powerpc_mfcrf=no
15545     if test $in_tree_gas = yes; then
15546     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15547   then gcc_cv_as_powerpc_mfcrf=yes
15548 fi
15549   elif test x$gcc_cv_as != x; then
15550     echo "$conftest_s" > conftest.s
15551     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; }
15557     then
15558         gcc_cv_as_powerpc_mfcrf=yes
15559     else
15560       echo "configure: failed program was" >&5
15561       cat conftest.s >&5
15562     fi
15563     rm -f conftest.o conftest.s
15564   fi
15565 fi
15566 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfcrf" >&5
15567 echo "${ECHO_T}$gcc_cv_as_powerpc_mfcrf" >&6
15568 if test $gcc_cv_as_powerpc_mfcrf = yes; then
15569
15570 cat >>confdefs.h <<\_ACEOF
15571 #define HAVE_AS_MFCRF 1
15572 _ACEOF
15573
15574 fi
15575
15576     case $target in
15577       *-*-aix*) conftest_s='    .machine "pwr5"
15578         .csect .text[PR]
15579         popcntb 3,3';;
15580       *) conftest_s='   .machine power5
15581         .text
15582         popcntb 3,3';;
15583     esac
15584
15585     echo "$as_me:$LINENO: checking assembler for popcntb support" >&5
15586 echo $ECHO_N "checking assembler for popcntb support... $ECHO_C" >&6
15587 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then
15588   echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590   gcc_cv_as_powerpc_popcntb=no
15591     if test $in_tree_gas = yes; then
15592     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15593   then gcc_cv_as_powerpc_popcntb=yes
15594 fi
15595   elif test x$gcc_cv_as != x; then
15596     echo "$conftest_s" > conftest.s
15597     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599   (eval $ac_try) 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; }
15603     then
15604         gcc_cv_as_powerpc_popcntb=yes
15605     else
15606       echo "configure: failed program was" >&5
15607       cat conftest.s >&5
15608     fi
15609     rm -f conftest.o conftest.s
15610   fi
15611 fi
15612 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_popcntb" >&5
15613 echo "${ECHO_T}$gcc_cv_as_powerpc_popcntb" >&6
15614 if test $gcc_cv_as_powerpc_popcntb = yes; then
15615
15616 cat >>confdefs.h <<\_ACEOF
15617 #define HAVE_AS_POPCNTB 1
15618 _ACEOF
15619
15620 fi
15621
15622     case $target in
15623       *-*-aix*) conftest_s='    .machine "pwr5x"
15624         .csect .text[PR]
15625         frin 1,1';;
15626       *) conftest_s='   .machine power5
15627         .text
15628         frin 1,1';;
15629     esac
15630
15631     echo "$as_me:$LINENO: checking assembler for fp round support" >&5
15632 echo $ECHO_N "checking assembler for fp round support... $ECHO_C" >&6
15633 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then
15634   echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636   gcc_cv_as_powerpc_fprnd=no
15637     if test $in_tree_gas = yes; then
15638     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15639   then gcc_cv_as_powerpc_fprnd=yes
15640 fi
15641   elif test x$gcc_cv_as != x; then
15642     echo "$conftest_s" > conftest.s
15643     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; }
15649     then
15650         gcc_cv_as_powerpc_fprnd=yes
15651     else
15652       echo "configure: failed program was" >&5
15653       cat conftest.s >&5
15654     fi
15655     rm -f conftest.o conftest.s
15656   fi
15657 fi
15658 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_fprnd" >&5
15659 echo "${ECHO_T}$gcc_cv_as_powerpc_fprnd" >&6
15660 if test $gcc_cv_as_powerpc_fprnd = yes; then
15661
15662 cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_AS_FPRND 1
15664 _ACEOF
15665
15666 fi
15667
15668     case $target in
15669       *-*-aix*) conftest_s='    .machine "pwr6"
15670         .csect .text[PR]
15671         mffgpr 1,3';;
15672       *) conftest_s='   .machine power6
15673         .text
15674         mffgpr 1,3';;
15675     esac
15676
15677     echo "$as_me:$LINENO: checking assembler for move fp gpr support" >&5
15678 echo $ECHO_N "checking assembler for move fp gpr support... $ECHO_C" >&6
15679 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then
15680   echo $ECHO_N "(cached) $ECHO_C" >&6
15681 else
15682   gcc_cv_as_powerpc_mfpgpr=no
15683     if test $in_tree_gas = yes; then
15684     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15685   then gcc_cv_as_powerpc_mfpgpr=yes
15686 fi
15687   elif test x$gcc_cv_as != x; then
15688     echo "$conftest_s" > conftest.s
15689     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }
15695     then
15696         gcc_cv_as_powerpc_mfpgpr=yes
15697     else
15698       echo "configure: failed program was" >&5
15699       cat conftest.s >&5
15700     fi
15701     rm -f conftest.o conftest.s
15702   fi
15703 fi
15704 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_mfpgpr" >&5
15705 echo "${ECHO_T}$gcc_cv_as_powerpc_mfpgpr" >&6
15706 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
15707
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE_AS_MFPGPR 1
15710 _ACEOF
15711
15712 fi
15713
15714     case $target in
15715       *-*-aix*) conftest_s='    .csect .text[PR]
15716 LCF..0:
15717         addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
15718       *-*-darwin*)
15719         conftest_s='    .text
15720 LCF0:
15721         addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
15722       *) conftest_s='   .text
15723 .LCF0:
15724         addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
15725     esac
15726
15727     echo "$as_me:$LINENO: checking assembler for rel16 relocs" >&5
15728 echo $ECHO_N "checking assembler for rel16 relocs... $ECHO_C" >&6
15729 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732   gcc_cv_as_powerpc_rel16=no
15733     if test $in_tree_gas = yes; then
15734     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
15735   then gcc_cv_as_powerpc_rel16=yes
15736 fi
15737   elif test x$gcc_cv_as != x; then
15738     echo "$conftest_s" > conftest.s
15739     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }
15745     then
15746         gcc_cv_as_powerpc_rel16=yes
15747     else
15748       echo "configure: failed program was" >&5
15749       cat conftest.s >&5
15750     fi
15751     rm -f conftest.o conftest.s
15752   fi
15753 fi
15754 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_rel16" >&5
15755 echo "${ECHO_T}$gcc_cv_as_powerpc_rel16" >&6
15756 if test $gcc_cv_as_powerpc_rel16 = yes; then
15757
15758 cat >>confdefs.h <<\_ACEOF
15759 #define HAVE_AS_REL16 1
15760 _ACEOF
15761
15762 fi
15763
15764     case $target in
15765       *-*-aix*) conftest_s='    .machine "pwr6"
15766         .csect .text[PR]
15767         cmpb 3,4,5';;
15768       *) conftest_s='   .machine power6
15769         .text
15770         cmpb 3,4,5';;
15771     esac
15772
15773     echo "$as_me:$LINENO: checking assembler for compare bytes support" >&5
15774 echo $ECHO_N "checking assembler for compare bytes support... $ECHO_C" >&6
15775 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then
15776   echo $ECHO_N "(cached) $ECHO_C" >&6
15777 else
15778   gcc_cv_as_powerpc_cmpb=no
15779     if test $in_tree_gas = yes; then
15780     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15781   then gcc_cv_as_powerpc_cmpb=yes
15782 fi
15783   elif test x$gcc_cv_as != x; then
15784     echo "$conftest_s" > conftest.s
15785     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787   (eval $ac_try) 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; }
15791     then
15792         gcc_cv_as_powerpc_cmpb=yes
15793     else
15794       echo "configure: failed program was" >&5
15795       cat conftest.s >&5
15796     fi
15797     rm -f conftest.o conftest.s
15798   fi
15799 fi
15800 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_cmpb" >&5
15801 echo "${ECHO_T}$gcc_cv_as_powerpc_cmpb" >&6
15802 if test $gcc_cv_as_powerpc_cmpb = yes; then
15803
15804 cat >>confdefs.h <<\_ACEOF
15805 #define HAVE_AS_CMPB 1
15806 _ACEOF
15807
15808 fi
15809
15810     case $target in
15811       *-*-aix*) conftest_s='    .machine "pwr6"
15812         .csect .text[PR]
15813         dadd 1,2,3';;
15814       *) conftest_s='   .machine power6
15815         .text
15816         dadd 1,2,3';;
15817     esac
15818
15819     echo "$as_me:$LINENO: checking assembler for decimal float support" >&5
15820 echo $ECHO_N "checking assembler for decimal float support... $ECHO_C" >&6
15821 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   gcc_cv_as_powerpc_dfp=no
15825     if test $in_tree_gas = yes; then
15826     if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
15827   then gcc_cv_as_powerpc_dfp=yes
15828 fi
15829   elif test x$gcc_cv_as != x; then
15830     echo "$conftest_s" > conftest.s
15831     if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }
15837     then
15838         gcc_cv_as_powerpc_dfp=yes
15839     else
15840       echo "configure: failed program was" >&5
15841       cat conftest.s >&5
15842     fi
15843     rm -f conftest.o conftest.s
15844   fi
15845 fi
15846 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_dfp" >&5
15847 echo "${ECHO_T}$gcc_cv_as_powerpc_dfp" >&6
15848 if test $gcc_cv_as_powerpc_dfp = yes; then
15849
15850 cat >>confdefs.h <<\_ACEOF
15851 #define HAVE_AS_DFP 1
15852 _ACEOF
15853
15854 fi
15855
15856     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15857 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15858 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then
15859   echo $ECHO_N "(cached) $ECHO_C" >&6
15860 else
15861   gcc_cv_as_powerpc_gnu_attribute=no
15862     if test $in_tree_gas = yes; then
15863     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15864   then gcc_cv_as_powerpc_gnu_attribute=yes
15865 fi
15866   elif test x$gcc_cv_as != x; then
15867     echo '.gnu_attribute 4,1' > conftest.s
15868     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; }
15874     then
15875         gcc_cv_as_powerpc_gnu_attribute=yes
15876     else
15877       echo "configure: failed program was" >&5
15878       cat conftest.s >&5
15879     fi
15880     rm -f conftest.o conftest.s
15881   fi
15882 fi
15883 echo "$as_me:$LINENO: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
15884 echo "${ECHO_T}$gcc_cv_as_powerpc_gnu_attribute" >&6
15885 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
15886
15887 cat >>confdefs.h <<\_ACEOF
15888 #define HAVE_AS_GNU_ATTRIBUTE 1
15889 _ACEOF
15890
15891 fi
15892     ;;
15893
15894   mips*-*-*)
15895     echo "$as_me:$LINENO: checking assembler for explicit relocation support" >&5
15896 echo $ECHO_N "checking assembler for explicit relocation support... $ECHO_C" >&6
15897 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   gcc_cv_as_mips_explicit_relocs=no
15901     if test $in_tree_gas = yes; then
15902     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
15903   then gcc_cv_as_mips_explicit_relocs=yes
15904 fi
15905   elif test x$gcc_cv_as != x; then
15906     echo '      lw $4,%gp_rel(foo)($4)' > conftest.s
15907     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909   (eval $ac_try) 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); }; }
15913     then
15914         gcc_cv_as_mips_explicit_relocs=yes
15915     else
15916       echo "configure: failed program was" >&5
15917       cat conftest.s >&5
15918     fi
15919     rm -f conftest.o conftest.s
15920   fi
15921 fi
15922 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_explicit_relocs" >&5
15923 echo "${ECHO_T}$gcc_cv_as_mips_explicit_relocs" >&6
15924 if test $gcc_cv_as_mips_explicit_relocs = yes; then
15925   if test x$target_cpu_default = x
15926        then target_cpu_default=MASK_EXPLICIT_RELOCS
15927        else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
15928        fi
15929 fi
15930     echo "$as_me:$LINENO: checking assembler for -mno-shared support" >&5
15931 echo $ECHO_N "checking assembler for -mno-shared support... $ECHO_C" >&6
15932 if test "${gcc_cv_as_mips_no_shared+set}" = set; then
15933   echo $ECHO_N "(cached) $ECHO_C" >&6
15934 else
15935   gcc_cv_as_mips_no_shared=no
15936     if test $in_tree_gas = yes; then
15937     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
15938   then gcc_cv_as_mips_no_shared=yes
15939 fi
15940   elif test x$gcc_cv_as != x; then
15941     echo 'nop' > conftest.s
15942     if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }
15948     then
15949         gcc_cv_as_mips_no_shared=yes
15950     else
15951       echo "configure: failed program was" >&5
15952       cat conftest.s >&5
15953     fi
15954     rm -f conftest.o conftest.s
15955   fi
15956 fi
15957 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_no_shared" >&5
15958 echo "${ECHO_T}$gcc_cv_as_mips_no_shared" >&6
15959 if test $gcc_cv_as_mips_no_shared = yes; then
15960
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_AS_NO_SHARED 1
15963 _ACEOF
15964
15965 fi
15966
15967     echo "$as_me:$LINENO: checking assembler for .gnu_attribute support" >&5
15968 echo $ECHO_N "checking assembler for .gnu_attribute support... $ECHO_C" >&6
15969 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   gcc_cv_as_mips_gnu_attribute=no
15973     if test $in_tree_gas = yes; then
15974     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
15975   then gcc_cv_as_mips_gnu_attribute=yes
15976 fi
15977   elif test x$gcc_cv_as != x; then
15978     echo '.gnu_attribute 4,1' > conftest.s
15979     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
15980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15981   (eval $ac_try) 2>&5
15982   ac_status=$?
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); }; }
15985     then
15986         gcc_cv_as_mips_gnu_attribute=yes
15987     else
15988       echo "configure: failed program was" >&5
15989       cat conftest.s >&5
15990     fi
15991     rm -f conftest.o conftest.s
15992   fi
15993 fi
15994 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_gnu_attribute" >&5
15995 echo "${ECHO_T}$gcc_cv_as_mips_gnu_attribute" >&6
15996 if test $gcc_cv_as_mips_gnu_attribute = yes; then
15997
15998 cat >>confdefs.h <<\_ACEOF
15999 #define HAVE_AS_GNU_ATTRIBUTE 1
16000 _ACEOF
16001
16002 fi
16003
16004     echo "$as_me:$LINENO: checking assembler for .dtprelword support" >&5
16005 echo $ECHO_N "checking assembler for .dtprelword support... $ECHO_C" >&6
16006 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   gcc_cv_as_mips_dtprelword=no
16010     if test $in_tree_gas = yes; then
16011     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16012   then gcc_cv_as_mips_dtprelword=yes
16013 fi
16014   elif test x$gcc_cv_as != x; then
16015     echo '.section .tdata,"awT",@progbits
16016 x:
16017         .word 2
16018         .text
16019         .dtprelword x+0x8000' > conftest.s
16020     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022   (eval $ac_try) 2>&5
16023   ac_status=$?
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); }; }
16026     then
16027         gcc_cv_as_mips_dtprelword=yes
16028     else
16029       echo "configure: failed program was" >&5
16030       cat conftest.s >&5
16031     fi
16032     rm -f conftest.o conftest.s
16033   fi
16034 fi
16035 echo "$as_me:$LINENO: result: $gcc_cv_as_mips_dtprelword" >&5
16036 echo "${ECHO_T}$gcc_cv_as_mips_dtprelword" >&6
16037 if test $gcc_cv_as_mips_dtprelword = yes; then
16038
16039 cat >>confdefs.h <<\_ACEOF
16040 #define HAVE_AS_DTPRELWORD 1
16041 _ACEOF
16042
16043 fi
16044     ;;
16045 esac
16046
16047 # Mips and HP-UX need the GNU assembler.
16048 # Linux on IA64 might be able to use the Intel assembler.
16049
16050 case "$target" in
16051   mips*-*-* | *-*-hpux* )
16052     if test x$gas_flag = xyes \
16053        || test x"$host" != x"$build" \
16054        || test ! -x "$gcc_cv_as" \
16055        || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
16056       :
16057     else
16058       echo "*** This configuration requires the GNU assembler" >&2
16059       exit 1
16060     fi
16061     ;;
16062 esac
16063
16064 # ??? Not all targets support dwarf2 debug_line, even within a version
16065 # of gas.  Moreover, we need to emit a valid instruction to trigger any
16066 # info to the output file.  So, as supported targets are added to gas 2.11,
16067 # add some instruction here to (also) show we expect this might work.
16068 # ??? Once 2.11 is released, probably need to add first known working
16069 # version to the per-target configury.
16070 case "$target" in
16071   i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
16072   | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-* \
16073   | xstormy16*-*-* | cris-*-* | xtensa-*-* | bfin-*-* | score*-*-* | spu-*-*)
16074     insn="nop"
16075     ;;
16076   ia64*-*-* | s390*-*-*)
16077     insn="nop 0"
16078     ;;
16079   mmix-*-*)
16080     insn="swym 0"
16081     ;;
16082 esac
16083 if test x"$insn" != x; then
16084  conftest_s="\
16085         .file 1 \"conftest.s\"
16086         .loc 1 3 0
16087         $insn"
16088  echo "$as_me:$LINENO: checking assembler for dwarf2 debug_line support" >&5
16089 echo $ECHO_N "checking assembler for dwarf2 debug_line support... $ECHO_C" >&6
16090 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   gcc_cv_as_dwarf2_debug_line=no
16094     if test $in_tree_gas = yes; then
16095     if test $in_tree_gas_is_elf = yes \
16096   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16097   then gcc_cv_as_dwarf2_debug_line=yes
16098 fi
16099   elif test x$gcc_cv_as != x; then
16100     echo "$conftest_s" > conftest.s
16101     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103   (eval $ac_try) 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; }
16107     then
16108         if test x$gcc_cv_objdump != x \
16109    && $gcc_cv_objdump -h conftest.o 2> /dev/null \
16110       | grep debug_line > /dev/null 2>&1; then
16111      gcc_cv_as_dwarf2_debug_line=yes
16112    fi
16113     else
16114       echo "configure: failed program was" >&5
16115       cat conftest.s >&5
16116     fi
16117     rm -f conftest.o conftest.s
16118   fi
16119 fi
16120 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_debug_line" >&5
16121 echo "${ECHO_T}$gcc_cv_as_dwarf2_debug_line" >&6
16122
16123
16124 # The .debug_line file table must be in the exact order that
16125 # we specified the files, since these indices are also used
16126 # by DW_AT_decl_file.  Approximate this test by testing if
16127 # the assembler bitches if the same index is assigned twice.
16128  echo "$as_me:$LINENO: checking assembler for buggy dwarf2 .file directive" >&5
16129 echo $ECHO_N "checking assembler for buggy dwarf2 .file directive... $ECHO_C" >&6
16130 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133   gcc_cv_as_dwarf2_file_buggy=no
16134   if test x$gcc_cv_as != x; then
16135     echo '      .file 1 "foo.s"
16136         .file 1 "bar.s"' > conftest.s
16137     if { ac_try='$gcc_cv_as  -o conftest.o conftest.s >&5'
16138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139   (eval $ac_try) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); }; }
16143     then
16144         gcc_cv_as_dwarf2_file_buggy=yes
16145     else
16146       echo "configure: failed program was" >&5
16147       cat conftest.s >&5
16148     fi
16149     rm -f conftest.o conftest.s
16150   fi
16151 fi
16152 echo "$as_me:$LINENO: result: $gcc_cv_as_dwarf2_file_buggy" >&5
16153 echo "${ECHO_T}$gcc_cv_as_dwarf2_file_buggy" >&6
16154
16155
16156  if test $gcc_cv_as_dwarf2_debug_line = yes \
16157  && test $gcc_cv_as_dwarf2_file_buggy = no; then
16158
16159 cat >>confdefs.h <<\_ACEOF
16160 #define HAVE_AS_DWARF2_DEBUG_LINE 1
16161 _ACEOF
16162
16163  fi
16164
16165  echo "$as_me:$LINENO: checking assembler for --gdwarf2 option" >&5
16166 echo $ECHO_N "checking assembler for --gdwarf2 option... $ECHO_C" >&6
16167 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   gcc_cv_as_gdwarf2_flag=no
16171     if test $in_tree_gas = yes; then
16172     if test $in_tree_gas_is_elf = yes \
16173   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16174   then gcc_cv_as_gdwarf2_flag=yes
16175 fi
16176   elif test x$gcc_cv_as != x; then
16177     echo "$insn" > conftest.s
16178     if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; }
16184     then
16185         gcc_cv_as_gdwarf2_flag=yes
16186     else
16187       echo "configure: failed program was" >&5
16188       cat conftest.s >&5
16189     fi
16190     rm -f conftest.o conftest.s
16191   fi
16192 fi
16193 echo "$as_me:$LINENO: result: $gcc_cv_as_gdwarf2_flag" >&5
16194 echo "${ECHO_T}$gcc_cv_as_gdwarf2_flag" >&6
16195 if test $gcc_cv_as_gdwarf2_flag = yes; then
16196
16197 cat >>confdefs.h <<\_ACEOF
16198 #define HAVE_AS_GDWARF2_DEBUG_FLAG 1
16199 _ACEOF
16200
16201 fi
16202
16203  echo "$as_me:$LINENO: checking assembler for --gstabs option" >&5
16204 echo $ECHO_N "checking assembler for --gstabs option... $ECHO_C" >&6
16205 if test "${gcc_cv_as_gstabs_flag+set}" = set; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   gcc_cv_as_gstabs_flag=no
16209     if test $in_tree_gas = yes; then
16210     if test $in_tree_gas_is_elf = yes \
16211   && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
16212   then gcc_cv_as_gstabs_flag=yes
16213 fi
16214   elif test x$gcc_cv_as != x; then
16215     echo "$insn" > conftest.s
16216     if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; }
16222     then
16223         # The native Solaris 9/Intel assembler doesn't understand --gstabs
16224    # and warns about it, but still exits successfully.  So check for
16225    # this.
16226    if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
16227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228   (eval $ac_try) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); }; }
16232    then :
16233    else gcc_cv_as_gstabs_flag=yes
16234    fi
16235     else
16236       echo "configure: failed program was" >&5
16237       cat conftest.s >&5
16238     fi
16239     rm -f conftest.o conftest.s
16240   fi
16241 fi
16242 echo "$as_me:$LINENO: result: $gcc_cv_as_gstabs_flag" >&5
16243 echo "${ECHO_T}$gcc_cv_as_gstabs_flag" >&6
16244 if test $gcc_cv_as_gstabs_flag = yes; then
16245
16246 cat >>confdefs.h <<\_ACEOF
16247 #define HAVE_AS_GSTABS_DEBUG_FLAG 1
16248 _ACEOF
16249
16250 fi
16251
16252  echo "$as_me:$LINENO: checking assembler for --debug-prefix-map option" >&5
16253 echo $ECHO_N "checking assembler for --debug-prefix-map option... $ECHO_C" >&6
16254 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then
16255   echo $ECHO_N "(cached) $ECHO_C" >&6
16256 else
16257   gcc_cv_as_debug_prefix_map_flag=no
16258     if test $in_tree_gas = yes; then
16259     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
16260   then gcc_cv_as_debug_prefix_map_flag=yes
16261 fi
16262   elif test x$gcc_cv_as != x; then
16263     echo "$insn" > conftest.s
16264     if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
16265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266   (eval $ac_try) 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }
16270     then
16271         gcc_cv_as_debug_prefix_map_flag=yes
16272     else
16273       echo "configure: failed program was" >&5
16274       cat conftest.s >&5
16275     fi
16276     rm -f conftest.o conftest.s
16277   fi
16278 fi
16279 echo "$as_me:$LINENO: result: $gcc_cv_as_debug_prefix_map_flag" >&5
16280 echo "${ECHO_T}$gcc_cv_as_debug_prefix_map_flag" >&6
16281 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
16282
16283 cat >>confdefs.h <<\_ACEOF
16284 #define HAVE_AS_DEBUG_PREFIX_MAP 1
16285 _ACEOF
16286
16287 fi
16288 fi
16289
16290 echo "$as_me:$LINENO: checking assembler for tolerance to line number 0" >&5
16291 echo $ECHO_N "checking assembler for tolerance to line number 0... $ECHO_C" >&6
16292 if test "${gcc_cv_as_line_zero+set}" = set; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   gcc_cv_as_line_zero=no
16296   if test $in_tree_gas = yes; then
16297     if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
16298   then gcc_cv_as_line_zero=yes
16299 fi
16300   elif test "x$gcc_cv_as" != x; then
16301     { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
16302     if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; } &&
16308        test "x`cat conftest.out`" = x
16309     then
16310       gcc_cv_as_line_zero=yes
16311     else
16312       echo "configure: failed program was" >&5
16313       cat conftest.s >&5
16314       echo "configure: error output was" >&5
16315       cat conftest.out >&5
16316     fi
16317     rm -f conftest.o conftest.s conftest.out
16318   fi
16319 fi
16320 echo "$as_me:$LINENO: result: $gcc_cv_as_line_zero" >&5
16321 echo "${ECHO_T}$gcc_cv_as_line_zero" >&6
16322 if test "x$gcc_cv_as_line_zero" = xyes; then
16323
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_AS_LINE_ZERO 1
16326 _ACEOF
16327
16328 fi
16329
16330 echo "$as_me:$LINENO: checking linker read-only and read-write section mixing" >&5
16331 echo $ECHO_N "checking linker read-only and read-write section mixing... $ECHO_C" >&6
16332 gcc_cv_ld_ro_rw_mix=unknown
16333 if test $in_tree_ld = yes ; then
16334   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 \
16335      && test $in_tree_ld_is_elf = yes; then
16336     gcc_cv_ld_ro_rw_mix=read-write
16337   fi
16338 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16339   echo '.section myfoosect, "a"' > conftest1.s
16340   echo '.section myfoosect, "aw"' > conftest2.s
16341   echo '.byte 1' >> conftest2.s
16342   echo '.section myfoosect, "a"' > conftest3.s
16343   echo '.byte 0' >> conftest3.s
16344   if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
16345      && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
16346      && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
16347      && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
16348         conftest2.o conftest3.o > /dev/null 2>&1; then
16349     gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
16350                          | sed -e '/myfoosect/!d' -e N`
16351     if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
16352       if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
16353         gcc_cv_ld_ro_rw_mix=read-only
16354       else
16355         gcc_cv_ld_ro_rw_mix=read-write
16356       fi
16357     fi
16358   fi
16359   rm -f conftest.* conftest[123].*
16360 fi
16361 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
16362
16363 cat >>confdefs.h <<\_ACEOF
16364 #define HAVE_LD_RO_RW_SECTION_MIXING 1
16365 _ACEOF
16366
16367 fi
16368 echo "$as_me:$LINENO: result: $gcc_cv_ld_ro_rw_mix" >&5
16369 echo "${ECHO_T}$gcc_cv_ld_ro_rw_mix" >&6
16370
16371 echo "$as_me:$LINENO: checking linker PT_GNU_EH_FRAME support" >&5
16372 echo $ECHO_N "checking linker PT_GNU_EH_FRAME support... $ECHO_C" >&6
16373 gcc_cv_ld_eh_frame_hdr=no
16374 if test $in_tree_ld = yes ; then
16375   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 \
16376      && test $in_tree_ld_is_elf = yes; then
16377     gcc_cv_ld_eh_frame_hdr=yes
16378   fi
16379 elif test x$gcc_cv_ld != x; then
16380         # Check if linker supports --eh-frame-hdr option
16381         if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
16382                 gcc_cv_ld_eh_frame_hdr=yes
16383         fi
16384 fi
16385
16386 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
16387
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE_LD_EH_FRAME_HDR 1
16390 _ACEOF
16391
16392 fi
16393 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_frame_hdr" >&5
16394 echo "${ECHO_T}$gcc_cv_ld_eh_frame_hdr" >&6
16395
16396 echo "$as_me:$LINENO: checking linker position independent executable support" >&5
16397 echo $ECHO_N "checking linker position independent executable support... $ECHO_C" >&6
16398 gcc_cv_ld_pie=no
16399 if test $in_tree_ld = yes ; then
16400   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 \
16401      && test $in_tree_ld_is_elf = yes; then
16402     gcc_cv_ld_pie=yes
16403   fi
16404 elif test x$gcc_cv_ld != x; then
16405         # Check if linker supports -pie option
16406         if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
16407                 gcc_cv_ld_pie=yes
16408         fi
16409 fi
16410 if test x"$gcc_cv_ld_pie" = xyes; then
16411
16412 cat >>confdefs.h <<\_ACEOF
16413 #define HAVE_LD_PIE 1
16414 _ACEOF
16415
16416 fi
16417 echo "$as_me:$LINENO: result: $gcc_cv_ld_pie" >&5
16418 echo "${ECHO_T}$gcc_cv_ld_pie" >&6
16419
16420 echo "$as_me:$LINENO: checking linker EH-compatible garbage collection of sections" >&5
16421 echo $ECHO_N "checking linker EH-compatible garbage collection of sections... $ECHO_C" >&6
16422 gcc_cv_ld_eh_gc_sections=no
16423 if test $in_tree_ld = yes ; then
16424   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 \
16425      && test $in_tree_ld_is_elf = yes; then
16426     gcc_cv_ld_eh_gc_sections=yes
16427   fi
16428 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
16429   cat > conftest.s <<EOF
16430         .section        .text
16431 .globl _start
16432         .type _start, @function
16433 _start:
16434         .long foo
16435         .size _start, .-_start
16436         .section        .text.foo,"ax",@progbits
16437         .type foo, @function
16438 foo:
16439         .long 0
16440         .size foo, .-foo
16441         .section        .gcc_except_table.foo,"a",@progbits
16442 .L0:
16443         .long 0
16444         .section        .eh_frame,"a",@progbits
16445         .long .L0
16446 EOF
16447   if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16448     if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16449          | grep "gc-sections option ignored" > /dev/null; then
16450       gcc_cv_ld_eh_gc_sections=no
16451     elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16452       gcc_cv_ld_eh_gc_sections=yes
16453       # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
16454       if test x$gcc_cv_as_comdat_group != xyes; then
16455         gcc_cv_ld_eh_gc_sections=no
16456         cat > conftest.s <<EOF
16457         .section        .text
16458 .globl _start
16459         .type _start, @function
16460 _start:
16461         .long foo
16462         .size _start, .-_start
16463         .section        .gnu.linkonce.t.foo,"ax",@progbits
16464         .type foo, @function
16465 foo:
16466         .long 0
16467         .size foo, .-foo
16468         .section        .gcc_except_table.foo,"a",@progbits
16469 .L0:
16470         .long 0
16471         .section        .eh_frame,"a",@progbits
16472         .long .L0
16473 EOF
16474         if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
16475           if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
16476                | grep "gc-sections option ignored" > /dev/null; then
16477             gcc_cv_ld_eh_gc_sections=no
16478           elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
16479             gcc_cv_ld_eh_gc_sections=yes
16480           fi
16481         fi
16482       fi
16483     fi
16484   fi
16485   rm -f conftest.s conftest.o conftest
16486 fi
16487 case "$target" in
16488   hppa*-*-linux*)
16489     # ??? This apparently exposes a binutils bug with PC-relative relocations.
16490     gcc_cv_ld_eh_gc_sections=no
16491     ;;
16492 esac
16493 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
16494
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_LD_EH_GC_SECTIONS 1
16497 _ACEOF
16498
16499 fi
16500 echo "$as_me:$LINENO: result: $gcc_cv_ld_eh_gc_sections" >&5
16501 echo "${ECHO_T}$gcc_cv_ld_eh_gc_sections" >&6
16502
16503 # --------
16504 # UNSORTED
16505 # --------
16506
16507 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
16508 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
16509 if test "${gcc_cv_ld_as_needed+set}" = set; then
16510   echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512   gcc_cv_ld_as_needed=no
16513 if test $in_tree_ld = yes ; then
16514   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 \
16515      && test $in_tree_ld_is_elf = yes; then
16516     gcc_cv_ld_as_needed=yes
16517   fi
16518 elif test x$gcc_cv_ld != x; then
16519         # Check if linker supports --as-needed and --no-as-needed options
16520         if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
16521                 gcc_cv_ld_as_needed=yes
16522         fi
16523 fi
16524
16525 fi
16526 echo "$as_me:$LINENO: result: $gcc_cv_ld_as_needed" >&5
16527 echo "${ECHO_T}$gcc_cv_ld_as_needed" >&6
16528 if test x"$gcc_cv_ld_as_needed" = xyes; then
16529
16530 cat >>confdefs.h <<\_ACEOF
16531 #define HAVE_LD_AS_NEEDED 1
16532 _ACEOF
16533
16534 fi
16535
16536 case "$target:$tm_file" in
16537   powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
16538     echo "$as_me:$LINENO: checking linker support for omitting dot symbols" >&5
16539 echo $ECHO_N "checking linker support for omitting dot symbols... $ECHO_C" >&6
16540 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then
16541   echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543   gcc_cv_ld_no_dot_syms=no
16544     if test $in_tree_ld = yes ; then
16545       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
16546         gcc_cv_ld_no_dot_syms=yes
16547       fi
16548     elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
16549       cat > conftest1.s <<EOF
16550         .text
16551         bl .foo
16552 EOF
16553       cat > conftest2.s <<EOF
16554         .section ".opd","aw"
16555         .align 3
16556         .globl foo
16557         .type foo,@function
16558 foo:
16559         .quad .LEfoo,.TOC.@tocbase,0
16560         .text
16561 .LEfoo:
16562         blr
16563         .size foo,.-.LEfoo
16564 EOF
16565       if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
16566          && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
16567          && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
16568         gcc_cv_ld_no_dot_syms=yes
16569       fi
16570       rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
16571     fi
16572
16573 fi
16574 echo "$as_me:$LINENO: result: $gcc_cv_ld_no_dot_syms" >&5
16575 echo "${ECHO_T}$gcc_cv_ld_no_dot_syms" >&6
16576     if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
16577
16578 cat >>confdefs.h <<\_ACEOF
16579 #define HAVE_LD_NO_DOT_SYMS 1
16580 _ACEOF
16581
16582     fi
16583     ;;
16584 esac
16585
16586 echo "$as_me:$LINENO: checking linker --sysroot support" >&5
16587 echo $ECHO_N "checking linker --sysroot support... $ECHO_C" >&6
16588 if test "${gcc_cv_ld_sysroot+set}" = set; then
16589   echo $ECHO_N "(cached) $ECHO_C" >&6
16590 else
16591   gcc_cv_ld_sysroot=no
16592   if test $in_tree_ld = yes ; then
16593       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
16594         gcc_cv_ld_sysroot=yes
16595       fi
16596   elif test x$gcc_cv_ld != x; then
16597     if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
16598       gcc_cv_ld_sysroot=yes
16599     fi
16600   fi
16601 fi
16602 echo "$as_me:$LINENO: result: $gcc_cv_ld_sysroot" >&5
16603 echo "${ECHO_T}$gcc_cv_ld_sysroot" >&6
16604 if test x"$gcc_cv_ld_sysroot" = xyes; then
16605
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_LD_SYSROOT 1
16608 _ACEOF
16609
16610 fi
16611
16612 if test x$with_sysroot = x && test x$host = x$target \
16613    && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
16614    && test "$prefix" != "NONE"; then
16615
16616 cat >>confdefs.h <<_ACEOF
16617 #define PREFIX_INCLUDE_DIR "$prefix/include"
16618 _ACEOF
16619
16620 fi
16621
16622 # Test for stack protector support in target C library.
16623 echo "$as_me:$LINENO: checking __stack_chk_fail in target C library" >&5
16624 echo $ECHO_N "checking __stack_chk_fail in target C library... $ECHO_C" >&6
16625 if test "${gcc_cv_libc_provides_ssp+set}" = set; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628   gcc_cv_libc_provides_ssp=no
16629     case "$target" in
16630        *-*-linux*)
16631       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16632         if test "x$with_sysroot" = x; then
16633           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16634         elif test "x$with_build_sysroot" != "x"; then
16635           glibc_header_dir="${with_build_sysroot}/usr/include"
16636         elif test "x$with_sysroot" = xyes; then
16637           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16638         else
16639           glibc_header_dir="${with_sysroot}/usr/include"
16640         fi
16641       else
16642         glibc_header_dir=/usr/include
16643       fi
16644       # glibc 2.4 and later provides __stack_chk_fail and
16645       # either __stack_chk_guard, or TLS access to stack guard canary.
16646       if test -f $glibc_header_dir/features.h \
16647          && $EGREP '^[  ]*#[    ]*define[       ]+__GNU_LIBRARY__[      ]+([1-9][0-9]|[6-9])' \
16648             $glibc_header_dir/features.h > /dev/null; then
16649         if $EGREP '^[   ]*#[    ]*define[       ]+__GLIBC__[    ]+([1-9][0-9]|[3-9])' \
16650            $glibc_header_dir/features.h > /dev/null; then
16651           gcc_cv_libc_provides_ssp=yes
16652         elif $EGREP '^[         ]*#[    ]*define[       ]+__GLIBC__[    ]+2' \
16653              $glibc_header_dir/features.h > /dev/null \
16654              && $EGREP '^[      ]*#[    ]*define[       ]+__GLIBC_MINOR__[      ]+([1-9][0-9]|[4-9])' \
16655              $glibc_header_dir/features.h > /dev/null; then
16656           gcc_cv_libc_provides_ssp=yes
16657         elif $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC__[   ]+1' \
16658              $glibc_header_dir/features.h > /dev/null && \
16659              test -f $glibc_header_dir/bits/uClibc_config.h && \
16660              $EGREP '^[         ]*#[    ]*define[       ]+__UCLIBC_HAS_SSP__[   ]+1' \
16661              $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
16662           gcc_cv_libc_provides_ssp=yes
16663         fi
16664       fi
16665         ;;
16666        *-*-darwin*)
16667          echo "$as_me:$LINENO: checking for __stack_chk_fail" >&5
16668 echo $ECHO_N "checking for __stack_chk_fail... $ECHO_C" >&6
16669 if test "${ac_cv_func___stack_chk_fail+set}" = set; then
16670   echo $ECHO_N "(cached) $ECHO_C" >&6
16671 else
16672   cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678 /* Define __stack_chk_fail to an innocuous variant, in case <limits.h> declares __stack_chk_fail.
16679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16680 #define __stack_chk_fail innocuous___stack_chk_fail
16681
16682 /* System header to define __stub macros and hopefully few prototypes,
16683     which can conflict with char __stack_chk_fail (); below.
16684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16685     <limits.h> exists even on freestanding compilers.  */
16686
16687 #ifdef __STDC__
16688 # include <limits.h>
16689 #else
16690 # include <assert.h>
16691 #endif
16692
16693 #undef __stack_chk_fail
16694
16695 /* Override any gcc2 internal prototype to avoid an error.  */
16696 #ifdef __cplusplus
16697 extern "C"
16698 {
16699 #endif
16700 /* We use char because int might match the return type of a gcc2
16701    builtin and then its argument prototype would still apply.  */
16702 char __stack_chk_fail ();
16703 /* The GNU C library defines this for functions which it implements
16704     to always fail with ENOSYS.  Some functions are actually named
16705     something starting with __ and the normal name is an alias.  */
16706 #if defined (__stub___stack_chk_fail) || defined (__stub_____stack_chk_fail)
16707 choke me
16708 #else
16709 char (*f) () = __stack_chk_fail;
16710 #endif
16711 #ifdef __cplusplus
16712 }
16713 #endif
16714
16715 int
16716 main ()
16717 {
16718 return f != __stack_chk_fail;
16719   ;
16720   return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16725   (eval $ac_link) 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } &&
16732          { ac_try='test -z "$ac_c_werror_flag"
16733                          || test ! -s conftest.err'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; } &&
16739          { ac_try='test -s conftest$ac_exeext'
16740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741   (eval $ac_try) 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; }; then
16745   ac_cv_func___stack_chk_fail=yes
16746 else
16747   echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750 ac_cv_func___stack_chk_fail=no
16751 fi
16752 rm -f conftest.err conftest.$ac_objext \
16753       conftest$ac_exeext conftest.$ac_ext
16754 fi
16755 echo "$as_me:$LINENO: result: $ac_cv_func___stack_chk_fail" >&5
16756 echo "${ECHO_T}$ac_cv_func___stack_chk_fail" >&6
16757 if test $ac_cv_func___stack_chk_fail = yes; then
16758   gcc_cv_libc_provides_ssp=yes
16759 else
16760   echo "no __stack_chk_fail on this target"
16761 fi
16762
16763         ;;
16764   *) gcc_cv_libc_provides_ssp=no ;;
16765     esac
16766 fi
16767 echo "$as_me:$LINENO: result: $gcc_cv_libc_provides_ssp" >&5
16768 echo "${ECHO_T}$gcc_cv_libc_provides_ssp" >&6
16769
16770 if test x$gcc_cv_libc_provides_ssp = xyes; then
16771
16772 cat >>confdefs.h <<\_ACEOF
16773 #define TARGET_LIBC_PROVIDES_SSP 1
16774 _ACEOF
16775
16776 fi
16777
16778 # Check if TFmode long double should be used by default or not.
16779 # Some glibc targets used DFmode long double, but with glibc 2.4
16780 # and later they can use TFmode.
16781 case "$target" in
16782   powerpc*-*-linux* | \
16783   powerpc*-*-gnu* | \
16784   sparc*-*-linux* | \
16785   s390*-*-linux* | \
16786   alpha*-*-linux*)
16787
16788 # Check whether --with-long-double-128 or --without-long-double-128 was given.
16789 if test "${with_long_double_128+set}" = set; then
16790   withval="$with_long_double_128"
16791   gcc_cv_target_ldbl128="$with_long_double_128"
16792 else
16793   gcc_cv_target_ldbl128=no
16794       if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
16795         if test "x$with_sysroot" = x; then
16796           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
16797         elif test "x$with_build_sysroot" != "x"; then
16798           glibc_header_dir="${with_build_sysroot}/usr/include"
16799         elif test "x$with_sysroot" = xyes; then
16800           glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
16801         else
16802           glibc_header_dir="${with_sysroot}/usr/include"
16803         fi
16804       else
16805         glibc_header_dir=/usr/include
16806       fi
16807       grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL' \
16808         $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
16809       && gcc_cv_target_ldbl128=yes
16810
16811 fi;
16812     ;;
16813 esac
16814 if test x$gcc_cv_target_ldbl128 = xyes; then
16815
16816 cat >>confdefs.h <<\_ACEOF
16817 #define TARGET_DEFAULT_LONG_DOUBLE_128 1
16818 _ACEOF
16819
16820 fi
16821
16822 # Find out what GC implementation we want, or may, use.
16823
16824 # Check whether --with-gc or --without-gc was given.
16825 if test "${with_gc+set}" = set; then
16826   withval="$with_gc"
16827   case "$withval" in
16828   page)
16829     GGC=ggc-$withval
16830     ;;
16831   zone)
16832     GGC=ggc-$withval
16833
16834 cat >>confdefs.h <<\_ACEOF
16835 #define GGC_ZONE 1
16836 _ACEOF
16837
16838     ;;
16839   *)
16840     { { echo "$as_me:$LINENO: error: $withval is an invalid option to --with-gc" >&5
16841 echo "$as_me: error: $withval is an invalid option to --with-gc" >&2;}
16842    { (exit 1); exit 1; }; }
16843     ;;
16844 esac
16845 else
16846   GGC=ggc-page
16847 fi;
16848
16849 echo "Using $GGC for garbage collection."
16850
16851 # Use the system's zlib library.
16852 zlibdir=-L../zlib
16853 zlibinc="-I\$(srcdir)/../zlib"
16854
16855 # Check whether --with-system-zlib or --without-system-zlib was given.
16856 if test "${with_system_zlib+set}" = set; then
16857   withval="$with_system_zlib"
16858   zlibdir=
16859 zlibinc=
16860
16861 fi;
16862
16863
16864
16865
16866 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
16867 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
16868     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
16869 if test "${enable_maintainer_mode+set}" = set; then
16870   enableval="$enable_maintainer_mode"
16871   maintainer_mode=$enableval
16872 else
16873   maintainer_mode=no
16874 fi;
16875
16876 echo "$as_me:$LINENO: result: $maintainer_mode" >&5
16877 echo "${ECHO_T}$maintainer_mode" >&6
16878
16879 if test "$maintainer_mode" = "yes"; then
16880   MAINT=''
16881 else
16882   MAINT='#'
16883 fi
16884
16885 # --------------
16886 # Language hooks
16887 # --------------
16888
16889 # Make empty files to contain the specs and options for each language.
16890 # Then add #include lines to for a compiler that has specs and/or options.
16891
16892 subdirs=
16893 lang_opt_files=
16894 lang_specs_files=
16895 lang_tree_files=
16896 # These (without "all_") are set in each config-lang.in.
16897 # `language' must be a single word so is spelled singularly.
16898 all_languages=
16899 all_compilers=
16900 all_outputs='Makefile gccbug libada-mk'
16901 # List of language makefile fragments.
16902 all_lang_makefrags=
16903 # List of language subdirectory makefiles.  Deprecated.
16904 all_lang_makefiles=
16905 # Additional files for gengtype
16906 all_gtfiles="$target_gtfiles"
16907
16908 # These are the languages that are set in --enable-languages,
16909 # and are available in the GCC tree.
16910 all_selected_languages=
16911
16912 # Add the language fragments.
16913 # Languages are added via two mechanisms.  Some information must be
16914 # recorded in makefile variables, these are defined in config-lang.in.
16915 # We accumulate them and plug them into the main Makefile.
16916 # The other mechanism is a set of hooks for each of the main targets
16917 # like `clean', `install', etc.
16918
16919 language_hooks="Make-hooks"
16920
16921 for lang in ${srcdir}/*/config-lang.in
16922 do
16923         test "$lang" = "${srcdir}/*/config-lang.in" && continue
16924
16925         lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^   ]*\).*$,\1,p' $lang`
16926         if test "x$lang_alias" = x
16927         then
16928               echo "$lang doesn't set \$language." 1>&2
16929               exit 1
16930         fi
16931         subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
16932         subdirs="$subdirs $subdir"
16933         case ",$enable_languages," in
16934         *,$lang_alias,*)
16935             all_selected_languages="$all_selected_languages $lang_alias"
16936             if test -f $srcdir/$subdir/lang-specs.h; then
16937                 lang_specs_files="$lang_specs_files $srcdir/$subdir/lang-specs.h"
16938             fi
16939             ;;
16940         esac
16941
16942         language=
16943         boot_language=
16944         compilers=
16945         outputs=
16946         gtfiles=
16947         subdir_requires=
16948         . ${srcdir}/$subdir/config-lang.in
16949         if test "x$language" = x
16950         then
16951                 echo "${srcdir}/$subdir/config-lang.in doesn't set \$language." 1>&2
16952                 exit 1
16953         fi
16954
16955         ok=:
16956         case ",$enable_languages," in
16957                 *,$lang_alias,*) ;;
16958                 *)
16959                         for i in $subdir_requires; do
16960                                 test -f "${srcdir}/$i/config-lang.in" && continue
16961                                 ok=false
16962                                 break
16963                         done
16964                 ;;
16965         esac
16966         $ok || continue
16967
16968         all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$subdir/Make-lang.in"
16969         if test -f $srcdir/$subdir/lang.opt; then
16970             lang_opt_files="$lang_opt_files $srcdir/$subdir/lang.opt"
16971         fi
16972         if test -f $srcdir/$subdir/$subdir-tree.def; then
16973             lang_tree_files="$lang_tree_files $srcdir/$subdir/$subdir-tree.def"
16974         fi
16975         if test -f ${srcdir}/$subdir/Makefile.in
16976                 then all_lang_makefiles="$subdir/Makefile"
16977         fi
16978         all_languages="$all_languages $language"
16979         all_compilers="$all_compilers $compilers"
16980         all_outputs="$all_outputs $outputs"
16981         all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
16982 done
16983
16984 # Pick up gtfiles for c
16985 gtfiles=
16986 . ${srcdir}/c-config-lang.in
16987 all_gtfiles="$all_gtfiles [c] $gtfiles"
16988
16989 check_languages=
16990 for language in $all_selected_languages
16991 do
16992         check_languages="$check_languages check-$language"
16993 done
16994
16995 # We link each language in with a set of hooks, reached indirectly via
16996 # lang.${target}.  Only do so for selected languages.
16997
16998 rm -f Make-hooks
16999 touch Make-hooks
17000 target_list="all.cross start.encap rest.encap tags \
17001         install-common install-man install-info install-pdf dvi pdf \
17002         html uninstall info man srcextra srcman srcinfo \
17003         mostlyclean clean distclean maintainer-clean"
17004
17005 for t in $target_list
17006 do
17007         x=
17008         for lang in $all_selected_languages
17009         do
17010                 x="$x $lang.$t"
17011         done
17012         echo "lang.$t: $x" >> Make-hooks
17013 done
17014
17015 # --------
17016 # UNSORTED
17017 # --------
17018
17019 # Create .gdbinit.
17020
17021 echo "dir ." > .gdbinit
17022 echo "dir ${srcdir}" >> .gdbinit
17023 if test x$gdb_needs_out_file_path = xyes
17024 then
17025         echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
17026 fi
17027 if test "x$subdirs" != x; then
17028         for s in $subdirs
17029         do
17030                 echo "dir ${srcdir}/$s" >> .gdbinit
17031         done
17032 fi
17033 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
17034
17035 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
17036
17037
17038
17039 # Find a directory in which to install a shared libgcc.
17040
17041 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
17042 if test "${enable_version_specific_runtime_libs+set}" = set; then
17043   enableval="$enable_version_specific_runtime_libs"
17044
17045 fi;
17046
17047
17048 # Check whether --with-slibdir or --without-slibdir was given.
17049 if test "${with_slibdir+set}" = set; then
17050   withval="$with_slibdir"
17051   slibdir="$with_slibdir"
17052 else
17053   if test "${enable_version_specific_runtime_libs+set}" = set; then
17054   slibdir='$(libsubdir)'
17055 elif test "$host" != "$target"; then
17056   slibdir='$(build_tooldir)/lib'
17057 else
17058   slibdir='$(libdir)'
17059 fi
17060 fi;
17061
17062
17063 objdir=`${PWDCMD-pwd}`
17064
17065
17066
17067 # Check whether --with-datarootdir or --without-datarootdir was given.
17068 if test "${with_datarootdir+set}" = set; then
17069   withval="$with_datarootdir"
17070   datarootdir="\${prefix}/$with_datarootdir"
17071 else
17072   datarootdir='$(prefix)/share'
17073 fi;
17074
17075
17076
17077 # Check whether --with-docdir or --without-docdir was given.
17078 if test "${with_docdir+set}" = set; then
17079   withval="$with_docdir"
17080   docdir="\${prefix}/$with_docdir"
17081 else
17082   docdir='$(datarootdir)'
17083 fi;
17084
17085
17086
17087 # Check whether --with-htmldir or --without-htmldir was given.
17088 if test "${with_htmldir+set}" = set; then
17089   withval="$with_htmldir"
17090   htmldir="\${prefix}/$with_htmldir"
17091 else
17092   htmldir='$(docdir)'
17093 fi;
17094
17095
17096 # Substitute configuration variables
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153 # Echo link setup.
17154 if test x${build} = x${host} ; then
17155   if test x${host} = x${target} ; then
17156     echo "Links are now set up to build a native compiler for ${target}." 1>&2
17157   else
17158     echo "Links are now set up to build a cross-compiler" 1>&2
17159     echo " from ${host} to ${target}." 1>&2
17160   fi
17161 else
17162   if test x${host} = x${target} ; then
17163     echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
17164     echo " for ${target}." 1>&2
17165   else
17166     echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
17167     echo " from ${host} to ${target}." 1>&2
17168   fi
17169 fi
17170
17171
17172
17173
17174 # Configure the subdirectories
17175 # AC_CONFIG_SUBDIRS($subdirs)
17176
17177 # Create the Makefile
17178 # and configure language subdirectories
17179           ac_config_files="$ac_config_files $all_outputs"
17180
17181
17182           ac_config_commands="$ac_config_commands default"
17183
17184 cat >confcache <<\_ACEOF
17185 # This file is a shell script that caches the results of configure
17186 # tests run on this system so they can be shared between configure
17187 # scripts and configure runs, see configure's option --config-cache.
17188 # It is not useful on other systems.  If it contains results you don't
17189 # want to keep, you may remove or edit it.
17190 #
17191 # config.status only pays attention to the cache file if you give it
17192 # the --recheck option to rerun configure.
17193 #
17194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17196 # following values.
17197
17198 _ACEOF
17199
17200 # The following way of writing the cache mishandles newlines in values,
17201 # but we know of no workaround that is simple, portable, and efficient.
17202 # So, don't put newlines in cache variables' values.
17203 # Ultrix sh set writes to stderr and can't be redirected directly,
17204 # and sets the high bit in the cache file unless we assign to the vars.
17205 {
17206   (set) 2>&1 |
17207     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17208     *ac_space=\ *)
17209       # `set' does not quote correctly, so add quotes (double-quote
17210       # substitution turns \\\\ into \\, and sed turns \\ into \).
17211       sed -n \
17212         "s/'/'\\\\''/g;
17213           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17214       ;;
17215     *)
17216       # `set' quotes correctly as required by POSIX, so do not add quotes.
17217       sed -n \
17218         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17219       ;;
17220     esac;
17221 } |
17222   sed '
17223      t clear
17224      : clear
17225      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17226      t end
17227      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17228      : end' >>confcache
17229 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17230   if test -w $cache_file; then
17231     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17232     cat confcache >$cache_file
17233   else
17234     echo "not updating unwritable cache $cache_file"
17235   fi
17236 fi
17237 rm -f confcache
17238
17239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17240 # Let make expand exec_prefix.
17241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17242
17243 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17244 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17245 # trailing colons and then remove the whole line if VPATH becomes empty
17246 # (actually we leave an empty line to preserve line numbers).
17247 if test "x$srcdir" = x.; then
17248   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17249 s/:*\$(srcdir):*/:/;
17250 s/:*\${srcdir}:*/:/;
17251 s/:*@srcdir@:*/:/;
17252 s/^\([^=]*=[     ]*\):*/\1/;
17253 s/:*$//;
17254 s/^[^=]*=[       ]*$//;
17255 }'
17256 fi
17257
17258 DEFS=-DHAVE_CONFIG_H
17259
17260 ac_libobjs=
17261 ac_ltlibobjs=
17262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17263   # 1. Remove the extension, and $U if already installed.
17264   ac_i=`echo "$ac_i" |
17265          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17266   # 2. Add them.
17267   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17268   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17269 done
17270 LIBOBJS=$ac_libobjs
17271
17272 LTLIBOBJS=$ac_ltlibobjs
17273
17274
17275
17276 : ${CONFIG_STATUS=./config.status}
17277 ac_clean_files_save=$ac_clean_files
17278 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17279 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17280 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17281 cat >$CONFIG_STATUS <<_ACEOF
17282 #! $SHELL
17283 # Generated by $as_me.
17284 # Run this file to recreate the current configuration.
17285 # Compiler output produced by configure, useful for debugging
17286 # configure, is in config.log if it exists.
17287
17288 debug=false
17289 ac_cs_recheck=false
17290 ac_cs_silent=false
17291 SHELL=\${CONFIG_SHELL-$SHELL}
17292 _ACEOF
17293
17294 cat >>$CONFIG_STATUS <<\_ACEOF
17295 ## --------------------- ##
17296 ## M4sh Initialization.  ##
17297 ## --------------------- ##
17298
17299 # Be Bourne compatible
17300 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17301   emulate sh
17302   NULLCMD=:
17303   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17304   # is contrary to our usage.  Disable this feature.
17305   alias -g '${1+"$@"}'='"$@"'
17306 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17307   set -o posix
17308 fi
17309 DUALCASE=1; export DUALCASE # for MKS sh
17310
17311 # Support unset when possible.
17312 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17313   as_unset=unset
17314 else
17315   as_unset=false
17316 fi
17317
17318
17319 # Work around bugs in pre-3.0 UWIN ksh.
17320 $as_unset ENV MAIL MAILPATH
17321 PS1='$ '
17322 PS2='> '
17323 PS4='+ '
17324
17325 # NLS nuisances.
17326 for as_var in \
17327   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17328   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17329   LC_TELEPHONE LC_TIME
17330 do
17331   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17332     eval $as_var=C; export $as_var
17333   else
17334     $as_unset $as_var
17335   fi
17336 done
17337
17338 # Required to use basename.
17339 if expr a : '\(a\)' >/dev/null 2>&1; then
17340   as_expr=expr
17341 else
17342   as_expr=false
17343 fi
17344
17345 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17346   as_basename=basename
17347 else
17348   as_basename=false
17349 fi
17350
17351
17352 # Name of the executable.
17353 as_me=`$as_basename "$0" ||
17354 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17355          X"$0" : 'X\(//\)$' \| \
17356          X"$0" : 'X\(/\)$' \| \
17357          .     : '\(.\)' 2>/dev/null ||
17358 echo X/"$0" |
17359     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17360           /^X\/\(\/\/\)$/{ s//\1/; q; }
17361           /^X\/\(\/\).*/{ s//\1/; q; }
17362           s/.*/./; q'`
17363
17364
17365 # PATH needs CR, and LINENO needs CR and PATH.
17366 # Avoid depending upon Character Ranges.
17367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17370 as_cr_digits='0123456789'
17371 as_cr_alnum=$as_cr_Letters$as_cr_digits
17372
17373 # The user is always right.
17374 if test "${PATH_SEPARATOR+set}" != set; then
17375   echo "#! /bin/sh" >conf$$.sh
17376   echo  "exit 0"   >>conf$$.sh
17377   chmod +x conf$$.sh
17378   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17379     PATH_SEPARATOR=';'
17380   else
17381     PATH_SEPARATOR=:
17382   fi
17383   rm -f conf$$.sh
17384 fi
17385
17386
17387   as_lineno_1=$LINENO
17388   as_lineno_2=$LINENO
17389   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17390   test "x$as_lineno_1" != "x$as_lineno_2" &&
17391   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17392   # Find who we are.  Look in the path if we contain no path at all
17393   # relative or not.
17394   case $0 in
17395     *[\\/]* ) as_myself=$0 ;;
17396     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17397 for as_dir in $PATH
17398 do
17399   IFS=$as_save_IFS
17400   test -z "$as_dir" && as_dir=.
17401   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17402 done
17403
17404        ;;
17405   esac
17406   # We did not find ourselves, most probably we were run as `sh COMMAND'
17407   # in which case we are not to be found in the path.
17408   if test "x$as_myself" = x; then
17409     as_myself=$0
17410   fi
17411   if test ! -f "$as_myself"; then
17412     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17413 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17414    { (exit 1); exit 1; }; }
17415   fi
17416   case $CONFIG_SHELL in
17417   '')
17418     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17420 do
17421   IFS=$as_save_IFS
17422   test -z "$as_dir" && as_dir=.
17423   for as_base in sh bash ksh sh5; do
17424          case $as_dir in
17425          /*)
17426            if ("$as_dir/$as_base" -c '
17427   as_lineno_1=$LINENO
17428   as_lineno_2=$LINENO
17429   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17430   test "x$as_lineno_1" != "x$as_lineno_2" &&
17431   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17432              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17433              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17434              CONFIG_SHELL=$as_dir/$as_base
17435              export CONFIG_SHELL
17436              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17437            fi;;
17438          esac
17439        done
17440 done
17441 ;;
17442   esac
17443
17444   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17445   # uniformly replaced by the line number.  The first 'sed' inserts a
17446   # line-number line before each line; the second 'sed' does the real
17447   # work.  The second script uses 'N' to pair each line-number line
17448   # with the numbered line, and appends trailing '-' during
17449   # substitution so that $LINENO is not a special case at line end.
17450   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17451   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17452   sed '=' <$as_myself |
17453     sed '
17454       N
17455       s,$,-,
17456       : loop
17457       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17458       t loop
17459       s,-$,,
17460       s,^['$as_cr_digits']*\n,,
17461     ' >$as_me.lineno &&
17462   chmod +x $as_me.lineno ||
17463     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17464 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17465    { (exit 1); exit 1; }; }
17466
17467   # Don't try to exec as it changes $[0], causing all sort of problems
17468   # (the dirname of $[0] is not the place where we might find the
17469   # original and so on.  Autoconf is especially sensible to this).
17470   . ./$as_me.lineno
17471   # Exit status is that of the last command.
17472   exit
17473 }
17474
17475
17476 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17477   *c*,-n*) ECHO_N= ECHO_C='
17478 ' ECHO_T='      ' ;;
17479   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17480   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17481 esac
17482
17483 if expr a : '\(a\)' >/dev/null 2>&1; then
17484   as_expr=expr
17485 else
17486   as_expr=false
17487 fi
17488
17489 rm -f conf$$ conf$$.exe conf$$.file
17490 echo >conf$$.file
17491 if ln -s conf$$.file conf$$ 2>/dev/null; then
17492   # We could just check for DJGPP; but this test a) works b) is more generic
17493   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17494   if test -f conf$$.exe; then
17495     # Don't use ln at all; we don't have any links
17496     as_ln_s='cp -p'
17497   else
17498     as_ln_s='ln -s'
17499   fi
17500 elif ln conf$$.file conf$$ 2>/dev/null; then
17501   as_ln_s=ln
17502 else
17503   as_ln_s='cp -p'
17504 fi
17505 rm -f conf$$ conf$$.exe conf$$.file
17506
17507 if mkdir -p . 2>/dev/null; then
17508   as_mkdir_p=:
17509 else
17510   test -d ./-p && rmdir ./-p
17511   as_mkdir_p=false
17512 fi
17513
17514 as_executable_p="test -f"
17515
17516 # Sed expression to map a string onto a valid CPP name.
17517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17518
17519 # Sed expression to map a string onto a valid variable name.
17520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17521
17522
17523 # IFS
17524 # We need space, tab and new line, in precisely that order.
17525 as_nl='
17526 '
17527 IFS="   $as_nl"
17528
17529 # CDPATH.
17530 $as_unset CDPATH
17531
17532 exec 6>&1
17533
17534 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17535 # report actual input values of CONFIG_FILES etc. instead of their
17536 # values after options handling.  Logging --version etc. is OK.
17537 exec 5>>config.log
17538 {
17539   echo
17540   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17541 ## Running $as_me. ##
17542 _ASBOX
17543 } >&5
17544 cat >&5 <<_CSEOF
17545
17546 This file was extended by $as_me, which was
17547 generated by GNU Autoconf 2.59.  Invocation command line was
17548
17549   CONFIG_FILES    = $CONFIG_FILES
17550   CONFIG_HEADERS  = $CONFIG_HEADERS
17551   CONFIG_LINKS    = $CONFIG_LINKS
17552   CONFIG_COMMANDS = $CONFIG_COMMANDS
17553   $ $0 $@
17554
17555 _CSEOF
17556 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17557 echo >&5
17558 _ACEOF
17559
17560 # Files that config.status was made for.
17561 if test -n "$ac_config_files"; then
17562   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17563 fi
17564
17565 if test -n "$ac_config_headers"; then
17566   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17567 fi
17568
17569 if test -n "$ac_config_links"; then
17570   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17571 fi
17572
17573 if test -n "$ac_config_commands"; then
17574   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17575 fi
17576
17577 cat >>$CONFIG_STATUS <<\_ACEOF
17578
17579 ac_cs_usage="\
17580 \`$as_me' instantiates files from templates according to the
17581 current configuration.
17582
17583 Usage: $0 [OPTIONS] [FILE]...
17584
17585   -h, --help       print this help, then exit
17586   -V, --version    print version number, then exit
17587   -q, --quiet      do not print progress messages
17588   -d, --debug      don't remove temporary files
17589       --recheck    update $as_me by reconfiguring in the same conditions
17590   --file=FILE[:TEMPLATE]
17591                    instantiate the configuration file FILE
17592   --header=FILE[:TEMPLATE]
17593                    instantiate the configuration header FILE
17594
17595 Configuration files:
17596 $config_files
17597
17598 Configuration headers:
17599 $config_headers
17600
17601 Configuration commands:
17602 $config_commands
17603
17604 Report bugs to <bug-autoconf@gnu.org>."
17605 _ACEOF
17606
17607 cat >>$CONFIG_STATUS <<_ACEOF
17608 ac_cs_version="\\
17609 config.status
17610 configured by $0, generated by GNU Autoconf 2.59,
17611   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17612
17613 Copyright (C) 2003 Free Software Foundation, Inc.
17614 This config.status script is free software; the Free Software Foundation
17615 gives unlimited permission to copy, distribute and modify it."
17616 srcdir=$srcdir
17617 _ACEOF
17618
17619 cat >>$CONFIG_STATUS <<\_ACEOF
17620 # If no file are specified by the user, then we need to provide default
17621 # value.  By we need to know if files were specified by the user.
17622 ac_need_defaults=:
17623 while test $# != 0
17624 do
17625   case $1 in
17626   --*=*)
17627     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17628     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17629     ac_shift=:
17630     ;;
17631   -*)
17632     ac_option=$1
17633     ac_optarg=$2
17634     ac_shift=shift
17635     ;;
17636   *) # This is not an option, so the user has probably given explicit
17637      # arguments.
17638      ac_option=$1
17639      ac_need_defaults=false;;
17640   esac
17641
17642   case $ac_option in
17643   # Handling of the options.
17644 _ACEOF
17645 cat >>$CONFIG_STATUS <<\_ACEOF
17646   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17647     ac_cs_recheck=: ;;
17648   --version | --vers* | -V )
17649     echo "$ac_cs_version"; exit 0 ;;
17650   --he | --h)
17651     # Conflict between --help and --header
17652     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17653 Try \`$0 --help' for more information." >&5
17654 echo "$as_me: error: ambiguous option: $1
17655 Try \`$0 --help' for more information." >&2;}
17656    { (exit 1); exit 1; }; };;
17657   --help | --hel | -h )
17658     echo "$ac_cs_usage"; exit 0 ;;
17659   --debug | --d* | -d )
17660     debug=: ;;
17661   --file | --fil | --fi | --f )
17662     $ac_shift
17663     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17664     ac_need_defaults=false;;
17665   --header | --heade | --head | --hea )
17666     $ac_shift
17667     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17668     ac_need_defaults=false;;
17669   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17670   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17671     ac_cs_silent=: ;;
17672
17673   # This is an error.
17674   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17675 Try \`$0 --help' for more information." >&5
17676 echo "$as_me: error: unrecognized option: $1
17677 Try \`$0 --help' for more information." >&2;}
17678    { (exit 1); exit 1; }; } ;;
17679
17680   *) ac_config_targets="$ac_config_targets $1" ;;
17681
17682   esac
17683   shift
17684 done
17685
17686 ac_configure_extra_args=
17687
17688 if $ac_cs_silent; then
17689   exec 6>/dev/null
17690   ac_configure_extra_args="$ac_configure_extra_args --silent"
17691 fi
17692
17693 _ACEOF
17694 cat >>$CONFIG_STATUS <<_ACEOF
17695 if \$ac_cs_recheck; then
17696   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17697   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17698 fi
17699
17700 _ACEOF
17701
17702 cat >>$CONFIG_STATUS <<_ACEOF
17703 #
17704 # INIT-COMMANDS section.
17705 #
17706
17707 subdirs='$subdirs'
17708
17709 _ACEOF
17710
17711
17712
17713 cat >>$CONFIG_STATUS <<\_ACEOF
17714 for ac_config_target in $ac_config_targets
17715 do
17716   case "$ac_config_target" in
17717   # Handling of arguments.
17718   "as" ) CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
17719   "collect-ld" ) CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
17720   "nm" ) CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
17721   "$all_outputs" ) CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
17722   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17723   "auto-host.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
17724   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17725 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17726    { (exit 1); exit 1; }; };;
17727   esac
17728 done
17729
17730 # If the user did not use the arguments to specify the items to instantiate,
17731 # then the envvar interface is used.  Set only those that are not.
17732 # We use the long form for the default assignment because of an extremely
17733 # bizarre bug on SunOS 4.1.3.
17734 if $ac_need_defaults; then
17735   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17736   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17737   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17738 fi
17739
17740 # Have a temporary directory for convenience.  Make it in the build tree
17741 # simply because there is no reason to put it here, and in addition,
17742 # creating and moving files from /tmp can sometimes cause problems.
17743 # Create a temporary directory, and hook for its removal unless debugging.
17744 $debug ||
17745 {
17746   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17747   trap '{ (exit 1); exit 1; }' 1 2 13 15
17748 }
17749
17750 # Create a (secure) tmp directory for tmp files.
17751
17752 {
17753   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17754   test -n "$tmp" && test -d "$tmp"
17755 }  ||
17756 {
17757   tmp=./confstat$$-$RANDOM
17758   (umask 077 && mkdir $tmp)
17759 } ||
17760 {
17761    echo "$me: cannot create a temporary directory in ." >&2
17762    { (exit 1); exit 1; }
17763 }
17764
17765 _ACEOF
17766
17767 cat >>$CONFIG_STATUS <<_ACEOF
17768
17769 #
17770 # CONFIG_FILES section.
17771 #
17772
17773 # No need to generate the scripts if there are no CONFIG_FILES.
17774 # This happens for instance when ./config.status config.h
17775 if test -n "\$CONFIG_FILES"; then
17776   # Protect against being on the right side of a sed subst in config.status.
17777   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17778    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17779 s,@SHELL@,$SHELL,;t t
17780 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17781 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17782 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17783 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17784 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17785 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17786 s,@exec_prefix@,$exec_prefix,;t t
17787 s,@prefix@,$prefix,;t t
17788 s,@program_transform_name@,$program_transform_name,;t t
17789 s,@bindir@,$bindir,;t t
17790 s,@sbindir@,$sbindir,;t t
17791 s,@libexecdir@,$libexecdir,;t t
17792 s,@datadir@,$datadir,;t t
17793 s,@sysconfdir@,$sysconfdir,;t t
17794 s,@sharedstatedir@,$sharedstatedir,;t t
17795 s,@localstatedir@,$localstatedir,;t t
17796 s,@libdir@,$libdir,;t t
17797 s,@includedir@,$includedir,;t t
17798 s,@oldincludedir@,$oldincludedir,;t t
17799 s,@infodir@,$infodir,;t t
17800 s,@mandir@,$mandir,;t t
17801 s,@build_alias@,$build_alias,;t t
17802 s,@host_alias@,$host_alias,;t t
17803 s,@target_alias@,$target_alias,;t t
17804 s,@DEFS@,$DEFS,;t t
17805 s,@ECHO_C@,$ECHO_C,;t t
17806 s,@ECHO_N@,$ECHO_N,;t t
17807 s,@ECHO_T@,$ECHO_T,;t t
17808 s,@LIBS@,$LIBS,;t t
17809 s,@build@,$build,;t t
17810 s,@build_cpu@,$build_cpu,;t t
17811 s,@build_vendor@,$build_vendor,;t t
17812 s,@build_os@,$build_os,;t t
17813 s,@host@,$host,;t t
17814 s,@host_cpu@,$host_cpu,;t t
17815 s,@host_vendor@,$host_vendor,;t t
17816 s,@host_os@,$host_os,;t t
17817 s,@target@,$target,;t t
17818 s,@target_cpu@,$target_cpu,;t t
17819 s,@target_vendor@,$target_vendor,;t t
17820 s,@target_os@,$target_os,;t t
17821 s,@target_noncanonical@,$target_noncanonical,;t t
17822 s,@build_libsubdir@,$build_libsubdir,;t t
17823 s,@build_subdir@,$build_subdir,;t t
17824 s,@host_subdir@,$host_subdir,;t t
17825 s,@target_subdir@,$target_subdir,;t t
17826 s,@GENINSRC@,$GENINSRC,;t t
17827 s,@CC@,$CC,;t t
17828 s,@CFLAGS@,$CFLAGS,;t t
17829 s,@LDFLAGS@,$LDFLAGS,;t t
17830 s,@CPPFLAGS@,$CPPFLAGS,;t t
17831 s,@ac_ct_CC@,$ac_ct_CC,;t t
17832 s,@EXEEXT@,$EXEEXT,;t t
17833 s,@OBJEXT@,$OBJEXT,;t t
17834 s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t
17835 s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t
17836 s,@CPP@,$CPP,;t t
17837 s,@EGREP@,$EGREP,;t t
17838 s,@loose_warn@,$loose_warn,;t t
17839 s,@cxx_compat_warn@,$cxx_compat_warn,;t t
17840 s,@strict_warn@,$strict_warn,;t t
17841 s,@warn_cflags@,$warn_cflags,;t t
17842 s,@nocommon_flag@,$nocommon_flag,;t t
17843 s,@TREEBROWSER@,$TREEBROWSER,;t t
17844 s,@valgrind_path@,$valgrind_path,;t t
17845 s,@valgrind_path_defines@,$valgrind_path_defines,;t t
17846 s,@valgrind_command@,$valgrind_command,;t t
17847 s,@coverage_flags@,$coverage_flags,;t t
17848 s,@enable_multilib@,$enable_multilib,;t t
17849 s,@enable_decimal_float@,$enable_decimal_float,;t t
17850 s,@enable_fixed_point@,$enable_fixed_point,;t t
17851 s,@enable_shared@,$enable_shared,;t t
17852 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
17853 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
17854 s,@CROSS_SYSTEM_HEADER_DIR@,$CROSS_SYSTEM_HEADER_DIR,;t t
17855 s,@onestep@,$onestep,;t t
17856 s,@PKGVERSION@,$PKGVERSION,;t t
17857 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
17858 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
17859 s,@datarootdir@,$datarootdir,;t t
17860 s,@docdir@,$docdir,;t t
17861 s,@htmldir@,$htmldir,;t t
17862 s,@SET_MAKE@,$SET_MAKE,;t t
17863 s,@AWK@,$AWK,;t t
17864 s,@LN_S@,$LN_S,;t t
17865 s,@LN@,$LN,;t t
17866 s,@RANLIB@,$RANLIB,;t t
17867 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17868 s,@ranlib_flags@,$ranlib_flags,;t t
17869 s,@INSTALL@,$INSTALL,;t t
17870 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17871 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17872 s,@make_compare_target@,$make_compare_target,;t t
17873 s,@have_mktemp_command@,$have_mktemp_command,;t t
17874 s,@MAKEINFO@,$MAKEINFO,;t t
17875 s,@BUILD_INFO@,$BUILD_INFO,;t t
17876 s,@GENERATED_MANPAGES@,$GENERATED_MANPAGES,;t t
17877 s,@FLEX@,$FLEX,;t t
17878 s,@BISON@,$BISON,;t t
17879 s,@NM@,$NM,;t t
17880 s,@AR@,$AR,;t t
17881 s,@COLLECT2_LIBS@,$COLLECT2_LIBS,;t t
17882 s,@GNAT_LIBEXC@,$GNAT_LIBEXC,;t t
17883 s,@LDEXP_LIB@,$LDEXP_LIB,;t t
17884 s,@TARGET_GETGROUPS_T@,$TARGET_GETGROUPS_T,;t t
17885 s,@LIBICONV@,$LIBICONV,;t t
17886 s,@LTLIBICONV@,$LTLIBICONV,;t t
17887 s,@LIBICONV_DEP@,$LIBICONV_DEP,;t t
17888 s,@manext@,$manext,;t t
17889 s,@objext@,$objext,;t t
17890 s,@gthread_flags@,$gthread_flags,;t t
17891 s,@extra_modes_file@,$extra_modes_file,;t t
17892 s,@extra_opt_files@,$extra_opt_files,;t t
17893 s,@USE_NLS@,$USE_NLS,;t t
17894 s,@LIBINTL@,$LIBINTL,;t t
17895 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
17896 s,@INCINTL@,$INCINTL,;t t
17897 s,@XGETTEXT@,$XGETTEXT,;t t
17898 s,@GMSGFMT@,$GMSGFMT,;t t
17899 s,@POSUB@,$POSUB,;t t
17900 s,@CATALOGS@,$CATALOGS,;t t
17901 s,@DATADIRNAME@,$DATADIRNAME,;t t
17902 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17903 s,@GENCAT@,$GENCAT,;t t
17904 s,@CATOBJEXT@,$CATOBJEXT,;t t
17905 s,@host_cc_for_libada@,$host_cc_for_libada,;t t
17906 s,@CROSS@,$CROSS,;t t
17907 s,@ALL@,$ALL,;t t
17908 s,@SYSTEM_HEADER_DIR@,$SYSTEM_HEADER_DIR,;t t
17909 s,@inhibit_libc@,$inhibit_libc,;t t
17910 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
17911 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
17912 s,@STMP_FIXINC@,$STMP_FIXINC,;t t
17913 s,@STMP_FIXPROTO@,$STMP_FIXPROTO,;t t
17914 s,@collect2@,$collect2,;t t
17915 s,@gcc_cv_as@,$gcc_cv_as,;t t
17916 s,@ORIGINAL_AS_FOR_TARGET@,$ORIGINAL_AS_FOR_TARGET,;t t
17917 s,@gcc_cv_ld@,$gcc_cv_ld,;t t
17918 s,@ORIGINAL_LD_FOR_TARGET@,$ORIGINAL_LD_FOR_TARGET,;t t
17919 s,@gcc_cv_nm@,$gcc_cv_nm,;t t
17920 s,@ORIGINAL_NM_FOR_TARGET@,$ORIGINAL_NM_FOR_TARGET,;t t
17921 s,@gcc_cv_objdump@,$gcc_cv_objdump,;t t
17922 s,@libgcc_visibility@,$libgcc_visibility,;t t
17923 s,@GGC@,$GGC,;t t
17924 s,@zlibdir@,$zlibdir,;t t
17925 s,@zlibinc@,$zlibinc,;t t
17926 s,@MAINT@,$MAINT,;t t
17927 s,@gcc_tooldir@,$gcc_tooldir,;t t
17928 s,@dollar@,$dollar,;t t
17929 s,@slibdir@,$slibdir,;t t
17930 s,@objdir@,$objdir,;t t
17931 s,@subdirs@,$subdirs,;t t
17932 s,@srcdir@,$srcdir,;t t
17933 s,@all_compilers@,$all_compilers,;t t
17934 s,@all_gtfiles@,$all_gtfiles,;t t
17935 s,@all_lang_makefrags@,$all_lang_makefrags,;t t
17936 s,@all_lang_makefiles@,$all_lang_makefiles,;t t
17937 s,@all_languages@,$all_languages,;t t
17938 s,@all_selected_languages@,$all_selected_languages,;t t
17939 s,@build_exeext@,$build_exeext,;t t
17940 s,@build_install_headers_dir@,$build_install_headers_dir,;t t
17941 s,@build_xm_file_list@,$build_xm_file_list,;t t
17942 s,@build_xm_include_list@,$build_xm_include_list,;t t
17943 s,@build_xm_defines@,$build_xm_defines,;t t
17944 s,@build_file_translate@,$build_file_translate,;t t
17945 s,@check_languages@,$check_languages,;t t
17946 s,@cpp_install_dir@,$cpp_install_dir,;t t
17947 s,@xmake_file@,$xmake_file,;t t
17948 s,@tmake_file@,$tmake_file,;t t
17949 s,@extra_gcc_objs@,$extra_gcc_objs,;t t
17950 s,@extra_headers_list@,$extra_headers_list,;t t
17951 s,@extra_objs@,$extra_objs,;t t
17952 s,@extra_parts@,$extra_parts,;t t
17953 s,@extra_passes@,$extra_passes,;t t
17954 s,@extra_programs@,$extra_programs,;t t
17955 s,@float_h_file@,$float_h_file,;t t
17956 s,@gcc_config_arguments@,$gcc_config_arguments,;t t
17957 s,@gcc_gxx_include_dir@,$gcc_gxx_include_dir,;t t
17958 s,@host_exeext@,$host_exeext,;t t
17959 s,@host_xm_file_list@,$host_xm_file_list,;t t
17960 s,@host_xm_include_list@,$host_xm_include_list,;t t
17961 s,@host_xm_defines@,$host_xm_defines,;t t
17962 s,@out_host_hook_obj@,$out_host_hook_obj,;t t
17963 s,@install@,$install,;t t
17964 s,@lang_opt_files@,$lang_opt_files,;t t
17965 s,@lang_specs_files@,$lang_specs_files,;t t
17966 s,@lang_tree_files@,$lang_tree_files,;t t
17967 s,@local_prefix@,$local_prefix,;t t
17968 s,@md_file@,$md_file,;t t
17969 s,@objc_boehm_gc@,$objc_boehm_gc,;t t
17970 s,@out_file@,$out_file,;t t
17971 s,@out_object_file@,$out_object_file,;t t
17972 s,@thread_file@,$thread_file,;t t
17973 s,@tm_file_list@,$tm_file_list,;t t
17974 s,@tm_include_list@,$tm_include_list,;t t
17975 s,@tm_defines@,$tm_defines,;t t
17976 s,@tm_p_file_list@,$tm_p_file_list,;t t
17977 s,@tm_p_include_list@,$tm_p_include_list,;t t
17978 s,@xm_file_list@,$xm_file_list,;t t
17979 s,@xm_include_list@,$xm_include_list,;t t
17980 s,@xm_defines@,$xm_defines,;t t
17981 s,@c_target_objs@,$c_target_objs,;t t
17982 s,@cxx_target_objs@,$cxx_target_objs,;t t
17983 s,@target_cpu_default@,$target_cpu_default,;t t
17984 s,@GMPLIBS@,$GMPLIBS,;t t
17985 s,@GMPINC@,$GMPINC,;t t
17986 s,@LIBOBJS@,$LIBOBJS,;t t
17987 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17988 /@language_hooks@/r $language_hooks
17989 s,@language_hooks@,,;t t
17990 CEOF
17991
17992 _ACEOF
17993
17994   cat >>$CONFIG_STATUS <<\_ACEOF
17995   # Split the substitutions into bite-sized pieces for seds with
17996   # small command number limits, like on Digital OSF/1 and HP-UX.
17997   ac_max_sed_lines=48
17998   ac_sed_frag=1 # Number of current file.
17999   ac_beg=1 # First line for current file.
18000   ac_end=$ac_max_sed_lines # Line after last line for current file.
18001   ac_more_lines=:
18002   ac_sed_cmds=
18003   while $ac_more_lines; do
18004     if test $ac_beg -gt 1; then
18005       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18006     else
18007       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18008     fi
18009     if test ! -s $tmp/subs.frag; then
18010       ac_more_lines=false
18011     else
18012       # The purpose of the label and of the branching condition is to
18013       # speed up the sed processing (if there are no `@' at all, there
18014       # is no need to browse any of the substitutions).
18015       # These are the two extra sed commands mentioned above.
18016       (echo ':t
18017   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18018       if test -z "$ac_sed_cmds"; then
18019         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18020       else
18021         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18022       fi
18023       ac_sed_frag=`expr $ac_sed_frag + 1`
18024       ac_beg=$ac_end
18025       ac_end=`expr $ac_end + $ac_max_sed_lines`
18026     fi
18027   done
18028   if test -z "$ac_sed_cmds"; then
18029     ac_sed_cmds=cat
18030   fi
18031 fi # test -n "$CONFIG_FILES"
18032
18033 _ACEOF
18034 cat >>$CONFIG_STATUS <<\_ACEOF
18035 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18036   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18037   case $ac_file in
18038   - | *:- | *:-:* ) # input from stdin
18039         cat >$tmp/stdin
18040         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18041         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18042   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18043         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18044   * )   ac_file_in=$ac_file.in ;;
18045   esac
18046
18047   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18048   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18050          X"$ac_file" : 'X\(//\)[^/]' \| \
18051          X"$ac_file" : 'X\(//\)$' \| \
18052          X"$ac_file" : 'X\(/\)' \| \
18053          .     : '\(.\)' 2>/dev/null ||
18054 echo X"$ac_file" |
18055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18057           /^X\(\/\/\)$/{ s//\1/; q; }
18058           /^X\(\/\).*/{ s//\1/; q; }
18059           s/.*/./; q'`
18060   { if $as_mkdir_p; then
18061     mkdir -p "$ac_dir"
18062   else
18063     as_dir="$ac_dir"
18064     as_dirs=
18065     while test ! -d "$as_dir"; do
18066       as_dirs="$as_dir $as_dirs"
18067       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18069          X"$as_dir" : 'X\(//\)[^/]' \| \
18070          X"$as_dir" : 'X\(//\)$' \| \
18071          X"$as_dir" : 'X\(/\)' \| \
18072          .     : '\(.\)' 2>/dev/null ||
18073 echo X"$as_dir" |
18074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18076           /^X\(\/\/\)$/{ s//\1/; q; }
18077           /^X\(\/\).*/{ s//\1/; q; }
18078           s/.*/./; q'`
18079     done
18080     test ! -n "$as_dirs" || mkdir $as_dirs
18081   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18083    { (exit 1); exit 1; }; }; }
18084
18085   ac_builddir=.
18086
18087 if test "$ac_dir" != .; then
18088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18089   # A "../" for each directory in $ac_dir_suffix.
18090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18091 else
18092   ac_dir_suffix= ac_top_builddir=
18093 fi
18094
18095 case $srcdir in
18096   .)  # No --srcdir option.  We are building in place.
18097     ac_srcdir=.
18098     if test -z "$ac_top_builddir"; then
18099        ac_top_srcdir=.
18100     else
18101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18102     fi ;;
18103   [\\/]* | ?:[\\/]* )  # Absolute path.
18104     ac_srcdir=$srcdir$ac_dir_suffix;
18105     ac_top_srcdir=$srcdir ;;
18106   *) # Relative path.
18107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18109 esac
18110
18111 # Do not use `cd foo && pwd` to compute absolute paths, because
18112 # the directories may not exist.
18113 case `pwd` in
18114 .) ac_abs_builddir="$ac_dir";;
18115 *)
18116   case "$ac_dir" in
18117   .) ac_abs_builddir=`pwd`;;
18118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18120   esac;;
18121 esac
18122 case $ac_abs_builddir in
18123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18124 *)
18125   case ${ac_top_builddir}. in
18126   .) ac_abs_top_builddir=$ac_abs_builddir;;
18127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18129   esac;;
18130 esac
18131 case $ac_abs_builddir in
18132 .) ac_abs_srcdir=$ac_srcdir;;
18133 *)
18134   case $ac_srcdir in
18135   .) ac_abs_srcdir=$ac_abs_builddir;;
18136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18138   esac;;
18139 esac
18140 case $ac_abs_builddir in
18141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18142 *)
18143   case $ac_top_srcdir in
18144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18147   esac;;
18148 esac
18149
18150
18151
18152   if test x"$ac_file" != x-; then
18153     { echo "$as_me:$LINENO: creating $ac_file" >&5
18154 echo "$as_me: creating $ac_file" >&6;}
18155     rm -f "$ac_file"
18156   fi
18157   # Let's still pretend it is `configure' which instantiates (i.e., don't
18158   # use $as_me), people would be surprised to read:
18159   #    /* config.h.  Generated by config.status.  */
18160   if test x"$ac_file" = x-; then
18161     configure_input=
18162   else
18163     configure_input="$ac_file.  "
18164   fi
18165   configure_input=$configure_input"Generated from `echo $ac_file_in |
18166                                      sed 's,.*/,,'` by configure."
18167
18168   # First look for the input files in the build tree, otherwise in the
18169   # src tree.
18170   ac_file_inputs=`IFS=:
18171     for f in $ac_file_in; do
18172       case $f in
18173       -) echo $tmp/stdin ;;
18174       [\\/$]*)
18175          # Absolute (can't be DOS-style, as IFS=:)
18176          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18177 echo "$as_me: error: cannot find input file: $f" >&2;}
18178    { (exit 1); exit 1; }; }
18179          echo "$f";;
18180       *) # Relative
18181          if test -f "$f"; then
18182            # Build tree
18183            echo "$f"
18184          elif test -f "$srcdir/$f"; then
18185            # Source tree
18186            echo "$srcdir/$f"
18187          else
18188            # /dev/null tree
18189            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18190 echo "$as_me: error: cannot find input file: $f" >&2;}
18191    { (exit 1); exit 1; }; }
18192          fi;;
18193       esac
18194     done` || { (exit 1); exit 1; }
18195 _ACEOF
18196 cat >>$CONFIG_STATUS <<_ACEOF
18197   sed "$ac_vpsub
18198 $extrasub
18199 _ACEOF
18200 cat >>$CONFIG_STATUS <<\_ACEOF
18201 :t
18202 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18203 s,@configure_input@,$configure_input,;t t
18204 s,@srcdir@,$ac_srcdir,;t t
18205 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18206 s,@top_srcdir@,$ac_top_srcdir,;t t
18207 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18208 s,@builddir@,$ac_builddir,;t t
18209 s,@abs_builddir@,$ac_abs_builddir,;t t
18210 s,@top_builddir@,$ac_top_builddir,;t t
18211 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18212 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18213   rm -f $tmp/stdin
18214   if test x"$ac_file" != x-; then
18215     mv $tmp/out $ac_file
18216   else
18217     cat $tmp/out
18218     rm -f $tmp/out
18219   fi
18220
18221   # Run the commands associated with the file.
18222   case $ac_file in
18223     as ) chmod +x as ;;
18224     collect-ld ) chmod +x collect-ld ;;
18225     nm ) chmod +x nm ;;
18226   esac
18227 done
18228 _ACEOF
18229 cat >>$CONFIG_STATUS <<\_ACEOF
18230
18231 #
18232 # CONFIG_HEADER section.
18233 #
18234
18235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18237 #
18238 # ac_d sets the value in "#define NAME VALUE" lines.
18239 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18240 ac_dB='[         ].*$,\1#\2'
18241 ac_dC=' '
18242 ac_dD=',;t'
18243 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18244 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18245 ac_uB='$,\1#\2define\3'
18246 ac_uC=' '
18247 ac_uD=',;t'
18248
18249 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18250   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18251   case $ac_file in
18252   - | *:- | *:-:* ) # input from stdin
18253         cat >$tmp/stdin
18254         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18255         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18256   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18258   * )   ac_file_in=$ac_file.in ;;
18259   esac
18260
18261   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18262 echo "$as_me: creating $ac_file" >&6;}
18263
18264   # First look for the input files in the build tree, otherwise in the
18265   # src tree.
18266   ac_file_inputs=`IFS=:
18267     for f in $ac_file_in; do
18268       case $f in
18269       -) echo $tmp/stdin ;;
18270       [\\/$]*)
18271          # Absolute (can't be DOS-style, as IFS=:)
18272          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18273 echo "$as_me: error: cannot find input file: $f" >&2;}
18274    { (exit 1); exit 1; }; }
18275          # Do quote $f, to prevent DOS paths from being IFS'd.
18276          echo "$f";;
18277       *) # Relative
18278          if test -f "$f"; then
18279            # Build tree
18280            echo "$f"
18281          elif test -f "$srcdir/$f"; then
18282            # Source tree
18283            echo "$srcdir/$f"
18284          else
18285            # /dev/null tree
18286            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18287 echo "$as_me: error: cannot find input file: $f" >&2;}
18288    { (exit 1); exit 1; }; }
18289          fi;;
18290       esac
18291     done` || { (exit 1); exit 1; }
18292   # Remove the trailing spaces.
18293   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18294
18295 _ACEOF
18296
18297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18298 # `conftest.undefs', that substitutes the proper values into
18299 # config.h.in to produce config.h.  The first handles `#define'
18300 # templates, and the second `#undef' templates.
18301 # And first: Protect against being on the right side of a sed subst in
18302 # config.status.  Protect against being in an unquoted here document
18303 # in config.status.
18304 rm -f conftest.defines conftest.undefs
18305 # Using a here document instead of a string reduces the quoting nightmare.
18306 # Putting comments in sed scripts is not portable.
18307 #
18308 # `end' is used to avoid that the second main sed command (meant for
18309 # 0-ary CPP macros) applies to n-ary macro definitions.
18310 # See the Autoconf documentation for `clear'.
18311 cat >confdef2sed.sed <<\_ACEOF
18312 s/[\\&,]/\\&/g
18313 s,[\\$`],\\&,g
18314 t clear
18315 : clear
18316 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18317 t end
18318 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18319 : end
18320 _ACEOF
18321 # If some macros were called several times there might be several times
18322 # the same #defines, which is useless.  Nevertheless, we may not want to
18323 # sort them, since we want the *last* AC-DEFINE to be honored.
18324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18326 rm -f confdef2sed.sed
18327
18328 # This sed command replaces #undef with comments.  This is necessary, for
18329 # example, in the case of _POSIX_SOURCE, which is predefined and required
18330 # on some systems where configure will not decide to define it.
18331 cat >>conftest.undefs <<\_ACEOF
18332 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18333 _ACEOF
18334
18335 # Break up conftest.defines because some shells have a limit on the size
18336 # of here documents, and old seds have small limits too (100 cmds).
18337 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18338 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18339 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18340 echo '  :' >>$CONFIG_STATUS
18341 rm -f conftest.tail
18342 while grep . conftest.defines >/dev/null
18343 do
18344   # Write a limited-size here document to $tmp/defines.sed.
18345   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18346   # Speed up: don't consider the non `#define' lines.
18347   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18348   # Work around the forget-to-reset-the-flag bug.
18349   echo 't clr' >>$CONFIG_STATUS
18350   echo ': clr' >>$CONFIG_STATUS
18351   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18352   echo 'CEOF
18353   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18354   rm -f $tmp/in
18355   mv $tmp/out $tmp/in
18356 ' >>$CONFIG_STATUS
18357   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18358   rm -f conftest.defines
18359   mv conftest.tail conftest.defines
18360 done
18361 rm -f conftest.defines
18362 echo '  fi # grep' >>$CONFIG_STATUS
18363 echo >>$CONFIG_STATUS
18364
18365 # Break up conftest.undefs because some shells have a limit on the size
18366 # of here documents, and old seds have small limits too (100 cmds).
18367 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18368 rm -f conftest.tail
18369 while grep . conftest.undefs >/dev/null
18370 do
18371   # Write a limited-size here document to $tmp/undefs.sed.
18372   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18373   # Speed up: don't consider the non `#undef'
18374   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18375   # Work around the forget-to-reset-the-flag bug.
18376   echo 't clr' >>$CONFIG_STATUS
18377   echo ': clr' >>$CONFIG_STATUS
18378   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18379   echo 'CEOF
18380   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18381   rm -f $tmp/in
18382   mv $tmp/out $tmp/in
18383 ' >>$CONFIG_STATUS
18384   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18385   rm -f conftest.undefs
18386   mv conftest.tail conftest.undefs
18387 done
18388 rm -f conftest.undefs
18389
18390 cat >>$CONFIG_STATUS <<\_ACEOF
18391   # Let's still pretend it is `configure' which instantiates (i.e., don't
18392   # use $as_me), people would be surprised to read:
18393   #    /* config.h.  Generated by config.status.  */
18394   if test x"$ac_file" = x-; then
18395     echo "/* Generated by configure.  */" >$tmp/config.h
18396   else
18397     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18398   fi
18399   cat $tmp/in >>$tmp/config.h
18400   rm -f $tmp/in
18401   if test x"$ac_file" != x-; then
18402     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18403       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18404 echo "$as_me: $ac_file is unchanged" >&6;}
18405     else
18406       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18408          X"$ac_file" : 'X\(//\)[^/]' \| \
18409          X"$ac_file" : 'X\(//\)$' \| \
18410          X"$ac_file" : 'X\(/\)' \| \
18411          .     : '\(.\)' 2>/dev/null ||
18412 echo X"$ac_file" |
18413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18415           /^X\(\/\/\)$/{ s//\1/; q; }
18416           /^X\(\/\).*/{ s//\1/; q; }
18417           s/.*/./; q'`
18418       { if $as_mkdir_p; then
18419     mkdir -p "$ac_dir"
18420   else
18421     as_dir="$ac_dir"
18422     as_dirs=
18423     while test ! -d "$as_dir"; do
18424       as_dirs="$as_dir $as_dirs"
18425       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18427          X"$as_dir" : 'X\(//\)[^/]' \| \
18428          X"$as_dir" : 'X\(//\)$' \| \
18429          X"$as_dir" : 'X\(/\)' \| \
18430          .     : '\(.\)' 2>/dev/null ||
18431 echo X"$as_dir" |
18432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18434           /^X\(\/\/\)$/{ s//\1/; q; }
18435           /^X\(\/\).*/{ s//\1/; q; }
18436           s/.*/./; q'`
18437     done
18438     test ! -n "$as_dirs" || mkdir $as_dirs
18439   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18441    { (exit 1); exit 1; }; }; }
18442
18443       rm -f $ac_file
18444       mv $tmp/config.h $ac_file
18445     fi
18446   else
18447     cat $tmp/config.h
18448     rm -f $tmp/config.h
18449   fi
18450 done
18451 _ACEOF
18452 cat >>$CONFIG_STATUS <<\_ACEOF
18453
18454 #
18455 # CONFIG_COMMANDS section.
18456 #
18457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18458   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18459   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18460   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18462          X"$ac_dest" : 'X\(//\)[^/]' \| \
18463          X"$ac_dest" : 'X\(//\)$' \| \
18464          X"$ac_dest" : 'X\(/\)' \| \
18465          .     : '\(.\)' 2>/dev/null ||
18466 echo X"$ac_dest" |
18467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18469           /^X\(\/\/\)$/{ s//\1/; q; }
18470           /^X\(\/\).*/{ s//\1/; q; }
18471           s/.*/./; q'`
18472   { if $as_mkdir_p; then
18473     mkdir -p "$ac_dir"
18474   else
18475     as_dir="$ac_dir"
18476     as_dirs=
18477     while test ! -d "$as_dir"; do
18478       as_dirs="$as_dir $as_dirs"
18479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18481          X"$as_dir" : 'X\(//\)[^/]' \| \
18482          X"$as_dir" : 'X\(//\)$' \| \
18483          X"$as_dir" : 'X\(/\)' \| \
18484          .     : '\(.\)' 2>/dev/null ||
18485 echo X"$as_dir" |
18486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18488           /^X\(\/\/\)$/{ s//\1/; q; }
18489           /^X\(\/\).*/{ s//\1/; q; }
18490           s/.*/./; q'`
18491     done
18492     test ! -n "$as_dirs" || mkdir $as_dirs
18493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18495    { (exit 1); exit 1; }; }; }
18496
18497   ac_builddir=.
18498
18499 if test "$ac_dir" != .; then
18500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18501   # A "../" for each directory in $ac_dir_suffix.
18502   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18503 else
18504   ac_dir_suffix= ac_top_builddir=
18505 fi
18506
18507 case $srcdir in
18508   .)  # No --srcdir option.  We are building in place.
18509     ac_srcdir=.
18510     if test -z "$ac_top_builddir"; then
18511        ac_top_srcdir=.
18512     else
18513        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18514     fi ;;
18515   [\\/]* | ?:[\\/]* )  # Absolute path.
18516     ac_srcdir=$srcdir$ac_dir_suffix;
18517     ac_top_srcdir=$srcdir ;;
18518   *) # Relative path.
18519     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18520     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18521 esac
18522
18523 # Do not use `cd foo && pwd` to compute absolute paths, because
18524 # the directories may not exist.
18525 case `pwd` in
18526 .) ac_abs_builddir="$ac_dir";;
18527 *)
18528   case "$ac_dir" in
18529   .) ac_abs_builddir=`pwd`;;
18530   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18531   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18532   esac;;
18533 esac
18534 case $ac_abs_builddir in
18535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18536 *)
18537   case ${ac_top_builddir}. in
18538   .) ac_abs_top_builddir=$ac_abs_builddir;;
18539   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18540   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18541   esac;;
18542 esac
18543 case $ac_abs_builddir in
18544 .) ac_abs_srcdir=$ac_srcdir;;
18545 *)
18546   case $ac_srcdir in
18547   .) ac_abs_srcdir=$ac_abs_builddir;;
18548   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18549   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18550   esac;;
18551 esac
18552 case $ac_abs_builddir in
18553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18554 *)
18555   case $ac_top_srcdir in
18556   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18557   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18558   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18559   esac;;
18560 esac
18561
18562
18563   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18564 echo "$as_me: executing $ac_dest commands" >&6;}
18565   case $ac_dest in
18566     default )
18567 case ${CONFIG_HEADERS} in
18568   *auto-host.h:config.in*)
18569   echo > cstamp-h ;;
18570 esac
18571 # Make sure all the subdirs exist.
18572 for d in $subdirs doc build
18573 do
18574     test -d $d || mkdir $d
18575 done
18576  ;;
18577   esac
18578 done
18579 _ACEOF
18580
18581 cat >>$CONFIG_STATUS <<\_ACEOF
18582
18583 { (exit 0); exit 0; }
18584 _ACEOF
18585 chmod +x $CONFIG_STATUS
18586 ac_clean_files=$ac_clean_files_save
18587
18588
18589 # configure is writing to config.log, and then calls config.status.
18590 # config.status does its own redirection, appending to config.log.
18591 # Unfortunately, on DOS this fails, as config.log is still kept open
18592 # by configure, so config.status won't be able to write to it; its
18593 # output is simply discarded.  So we exec the FD to /dev/null,
18594 # effectively closing config.log, so it can be properly (re)opened and
18595 # appended to by config.status.  When coming back to configure, we
18596 # need to make the FD available again.
18597 if test "$no_create" != yes; then
18598   ac_cs_success=:
18599   ac_config_status_args=
18600   test "$silent" = yes &&
18601     ac_config_status_args="$ac_config_status_args --quiet"
18602   exec 5>/dev/null
18603   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18604   exec 5>>config.log
18605   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18606   # would make configure fail if this is the last instruction.
18607   $ac_cs_success || { (exit 1); exit 1; }
18608 fi
18609