bfd/
[platform/upstream/binutils.git] / gas / 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="as.h"
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof OPCODES_LIB YACC LEX LEXLIB LEX_OUTPUT_ROOT USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE CPP EGREP ALLOCA LIBM datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --disable-dependency-tracking  speeds up one-time build
854   --enable-dependency-tracking   do not reject slow dependency extractors
855   --enable-shared=PKGS  build shared libraries default=yes
856   --enable-static=PKGS  build static libraries default=yes
857   --enable-fast-install=PKGS  optimize for fast installation default=yes
858   --disable-libtool-lock  avoid locking (might break parallel builds)
859   --enable-targets        alternative target configurations besides the primary
860   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
861   --enable-werror         treat compile warnings as errors
862   --enable-build-warnings enable build-time compiler warnings
863   --disable-nls           do not use Native Language Support
864   --enable-maintainer-mode  enable make rules and dependencies not useful
865                           (and sometimes confusing) to the casual installer
866
867 Optional Packages:
868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
870   --with-gnu-ld           assume the C compiler uses GNU ld default=no
871   --with-pic              try to use only PIC/non-PIC objects default=use both
872
873 Some influential environment variables:
874   CC          C compiler command
875   CFLAGS      C compiler flags
876   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877               nonstandard directory <lib dir>
878   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879               headers in a nonstandard directory <include dir>
880   CPP         C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924   case "$ac_dir" in
925   .) ac_abs_builddir=`pwd`;;
926   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927   *) ac_abs_builddir=`pwd`/"$ac_dir";;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933   case ${ac_top_builddir}. in
934   .) ac_abs_top_builddir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942   case $ac_srcdir in
943   .) ac_abs_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951   case $ac_top_srcdir in
952   .) ac_abs_top_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955   esac;;
956 esac
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd $ac_popdir
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985   exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59.  Invocation command line was
994
995   $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1012
1013 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1014 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1017 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1018 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1019 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026   IFS=$as_save_IFS
1027   test -z "$as_dir" && as_dir=.
1028   echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1054 do
1055   for ac_arg
1056   do
1057     case $ac_arg in
1058     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060     | -silent | --silent | --silen | --sile | --sil)
1061       continue ;;
1062     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064     esac
1065     case $ac_pass in
1066     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067     2)
1068       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069       if test $ac_must_keep_next = true; then
1070         ac_must_keep_next=false # Got value, back to normal.
1071       else
1072         case $ac_arg in
1073           *=* | --config-cache | -C | -disable-* | --disable-* \
1074           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076           | -with-* | --with-* | -without-* | --without-* | --x)
1077             case "$ac_configure_args0 " in
1078               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079             esac
1080             ;;
1081           -* ) ac_must_keep_next=true ;;
1082         esac
1083       fi
1084       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085       # Get rid of the leading space.
1086       ac_sep=" "
1087       ;;
1088     esac
1089   done
1090 done
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log.  We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100   # Save into config.log some information that might help in debugging.
1101   {
1102     echo
1103
1104     cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109     echo
1110     # The following way of writing the cache mishandles newlines in values,
1111 {
1112   (set) 2>&1 |
1113     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114     *ac_space=\ *)
1115       sed -n \
1116         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118       ;;
1119     *)
1120       sed -n \
1121         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122       ;;
1123     esac;
1124 }
1125     echo
1126
1127     cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132     echo
1133     for ac_var in $ac_subst_vars
1134     do
1135       eval ac_val=$`echo $ac_var`
1136       echo "$ac_var='"'"'$ac_val'"'"'"
1137     done | sort
1138     echo
1139
1140     if test -n "$ac_subst_files"; then
1141       cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146       echo
1147       for ac_var in $ac_subst_files
1148       do
1149         eval ac_val=$`echo $ac_var`
1150         echo "$ac_var='"'"'$ac_val'"'"'"
1151       done | sort
1152       echo
1153     fi
1154
1155     if test -s confdefs.h; then
1156       cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161       echo
1162       sed "/^$/d" confdefs.h | sort
1163       echo
1164     fi
1165     test "$ac_signal" != 0 &&
1166       echo "$as_me: caught signal $ac_signal"
1167     echo "$as_me: exit $exit_status"
1168   } >&5
1169   rm -f core *.core &&
1170   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171     exit $exit_status
1172      ' 0
1173 for ac_signal in 1 2 13 15; do
1174   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1177
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 echo >confdefs.h
1182
1183 # Predefined preprocessor variables.
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1208
1209
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213   if test "x$prefix" != xNONE; then
1214     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215   else
1216     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217   fi
1218 fi
1219 for ac_site_file in $CONFIG_SITE; do
1220   if test -r "$ac_site_file"; then
1221     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223     sed 's/^/| /' "$ac_site_file" >&5
1224     . "$ac_site_file"
1225   fi
1226 done
1227
1228 if test -r "$cache_file"; then
1229   # Some versions of bash will fail to source /dev/null (special
1230   # files actually), so we avoid doing that.
1231   if test -f "$cache_file"; then
1232     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1234     case $cache_file in
1235       [\\/]* | ?:[\\/]* ) . $cache_file;;
1236       *)                      . ./$cache_file;;
1237     esac
1238   fi
1239 else
1240   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242   >$cache_file
1243 fi
1244
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251   eval ac_new_set=\$ac_env_${ac_var}_set
1252   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253   eval ac_new_val="\$ac_env_${ac_var}_value"
1254   case $ac_old_set,$ac_new_set in
1255     set,)
1256       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258       ac_cache_corrupted=: ;;
1259     ,set)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,);;
1264     *)
1265       if test "x$ac_old_val" != "x$ac_new_val"; then
1266         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1269 echo "$as_me:   former value:  $ac_old_val" >&2;}
1270         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1271 echo "$as_me:   current value: $ac_new_val" >&2;}
1272         ac_cache_corrupted=:
1273       fi;;
1274   esac
1275   # Pass precious variables to config.status.
1276   if test "$ac_new_set" = set; then
1277     case $ac_new_val in
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     *) ac_arg=$ac_var=$ac_new_val ;;
1281     esac
1282     case " $ac_configure_args " in
1283       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1284       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285     esac
1286   fi
1287 done
1288 if $ac_cache_corrupted; then
1289   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293    { (exit 1); exit 1; }; }
1294 fi
1295
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321 ac_aux_dir=
1322 for ac_dir in .. $srcdir/..; do
1323   if test -f $ac_dir/install-sh; then
1324     ac_aux_dir=$ac_dir
1325     ac_install_sh="$ac_aux_dir/install-sh -c"
1326     break
1327   elif test -f $ac_dir/install.sh; then
1328     ac_aux_dir=$ac_dir
1329     ac_install_sh="$ac_aux_dir/install.sh -c"
1330     break
1331   elif test -f $ac_dir/shtool; then
1332     ac_aux_dir=$ac_dir
1333     ac_install_sh="$ac_aux_dir/shtool install -c"
1334     break
1335   fi
1336 done
1337 if test -z "$ac_aux_dir"; then
1338   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1340    { (exit 1); exit 1; }; }
1341 fi
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346 # Make sure we can run config.sub.
1347 $ac_config_sub sun4 >/dev/null 2>&1 ||
1348   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1349 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1350    { (exit 1); exit 1; }; }
1351
1352 echo "$as_me:$LINENO: checking build system type" >&5
1353 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1354 if test "${ac_cv_build+set}" = set; then
1355   echo $ECHO_N "(cached) $ECHO_C" >&6
1356 else
1357   ac_cv_build_alias=$build_alias
1358 test -z "$ac_cv_build_alias" &&
1359   ac_cv_build_alias=`$ac_config_guess`
1360 test -z "$ac_cv_build_alias" &&
1361   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1362 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1363    { (exit 1); exit 1; }; }
1364 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1365   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1366 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1367    { (exit 1); exit 1; }; }
1368
1369 fi
1370 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1371 echo "${ECHO_T}$ac_cv_build" >&6
1372 build=$ac_cv_build
1373 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376
1377
1378 echo "$as_me:$LINENO: checking host system type" >&5
1379 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1380 if test "${ac_cv_host+set}" = set; then
1381   echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383   ac_cv_host_alias=$host_alias
1384 test -z "$ac_cv_host_alias" &&
1385   ac_cv_host_alias=$ac_cv_build_alias
1386 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1387   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1388 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1389    { (exit 1); exit 1; }; }
1390
1391 fi
1392 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1393 echo "${ECHO_T}$ac_cv_host" >&6
1394 host=$ac_cv_host
1395 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1396 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1397 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1398
1399
1400 echo "$as_me:$LINENO: checking target system type" >&5
1401 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1402 if test "${ac_cv_target+set}" = set; then
1403   echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405   ac_cv_target_alias=$target_alias
1406 test "x$ac_cv_target_alias" = "x" &&
1407   ac_cv_target_alias=$ac_cv_host_alias
1408 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1409   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1411    { (exit 1); exit 1; }; }
1412
1413 fi
1414 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1415 echo "${ECHO_T}$ac_cv_target" >&6
1416 target=$ac_cv_target
1417 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422 # The aliases save the names the user supplied, while $host etc.
1423 # will get canonicalized.
1424 test -n "$target_alias" &&
1425   test "$program_prefix$program_suffix$program_transform_name" = \
1426     NONENONEs,x,x, &&
1427   program_prefix=${target_alias}-
1428 ac_ext=c
1429 ac_cpp='$CPP $CPPFLAGS'
1430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1433 if test -n "$ac_tool_prefix"; then
1434   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_CC+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   if test -n "$CC"; then
1442   ac_cv_prog_CC="$CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453     break 2
1454   fi
1455 done
1456 done
1457
1458 fi
1459 fi
1460 CC=$ac_cv_prog_CC
1461 if test -n "$CC"; then
1462   echo "$as_me:$LINENO: result: $CC" >&5
1463 echo "${ECHO_T}$CC" >&6
1464 else
1465   echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469 fi
1470 if test -z "$ac_cv_prog_CC"; then
1471   ac_ct_CC=$CC
1472   # Extract the first word of "gcc", so it can be a program name with args.
1473 set dummy gcc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1477   echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479   if test -n "$ac_ct_CC"; then
1480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1481 else
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485   IFS=$as_save_IFS
1486   test -z "$as_dir" && as_dir=.
1487   for ac_exec_ext in '' $ac_executable_extensions; do
1488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489     ac_cv_prog_ac_ct_CC="gcc"
1490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491     break 2
1492   fi
1493 done
1494 done
1495
1496 fi
1497 fi
1498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1499 if test -n "$ac_ct_CC"; then
1500   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1501 echo "${ECHO_T}$ac_ct_CC" >&6
1502 else
1503   echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507   CC=$ac_ct_CC
1508 else
1509   CC="$ac_cv_prog_CC"
1510 fi
1511
1512 if test -z "$CC"; then
1513   if test -n "$ac_tool_prefix"; then
1514   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1515 set dummy ${ac_tool_prefix}cc; ac_word=$2
1516 echo "$as_me:$LINENO: checking for $ac_word" >&5
1517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1518 if test "${ac_cv_prog_CC+set}" = set; then
1519   echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521   if test -n "$CC"; then
1522   ac_cv_prog_CC="$CC" # Let the user override the test.
1523 else
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527   IFS=$as_save_IFS
1528   test -z "$as_dir" && as_dir=.
1529   for ac_exec_ext in '' $ac_executable_extensions; do
1530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1531     ac_cv_prog_CC="${ac_tool_prefix}cc"
1532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1533     break 2
1534   fi
1535 done
1536 done
1537
1538 fi
1539 fi
1540 CC=$ac_cv_prog_CC
1541 if test -n "$CC"; then
1542   echo "$as_me:$LINENO: result: $CC" >&5
1543 echo "${ECHO_T}$CC" >&6
1544 else
1545   echo "$as_me:$LINENO: result: no" >&5
1546 echo "${ECHO_T}no" >&6
1547 fi
1548
1549 fi
1550 if test -z "$ac_cv_prog_CC"; then
1551   ac_ct_CC=$CC
1552   # Extract the first word of "cc", so it can be a program name with args.
1553 set dummy cc; ac_word=$2
1554 echo "$as_me:$LINENO: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1557   echo $ECHO_N "(cached) $ECHO_C" >&6
1558 else
1559   if test -n "$ac_ct_CC"; then
1560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1561 else
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1564 do
1565   IFS=$as_save_IFS
1566   test -z "$as_dir" && as_dir=.
1567   for ac_exec_ext in '' $ac_executable_extensions; do
1568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1569     ac_cv_prog_ac_ct_CC="cc"
1570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1571     break 2
1572   fi
1573 done
1574 done
1575
1576 fi
1577 fi
1578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1579 if test -n "$ac_ct_CC"; then
1580   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1581 echo "${ECHO_T}$ac_ct_CC" >&6
1582 else
1583   echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587   CC=$ac_ct_CC
1588 else
1589   CC="$ac_cv_prog_CC"
1590 fi
1591
1592 fi
1593 if test -z "$CC"; then
1594   # Extract the first word of "cc", so it can be a program name with args.
1595 set dummy cc; ac_word=$2
1596 echo "$as_me:$LINENO: checking for $ac_word" >&5
1597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1598 if test "${ac_cv_prog_CC+set}" = set; then
1599   echo $ECHO_N "(cached) $ECHO_C" >&6
1600 else
1601   if test -n "$CC"; then
1602   ac_cv_prog_CC="$CC" # Let the user override the test.
1603 else
1604   ac_prog_rejected=no
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   for ac_exec_ext in '' $ac_executable_extensions; do
1611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1613        ac_prog_rejected=yes
1614        continue
1615      fi
1616     ac_cv_prog_CC="cc"
1617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1618     break 2
1619   fi
1620 done
1621 done
1622
1623 if test $ac_prog_rejected = yes; then
1624   # We found a bogon in the path, so make sure we never use it.
1625   set dummy $ac_cv_prog_CC
1626   shift
1627   if test $# != 0; then
1628     # We chose a different compiler from the bogus one.
1629     # However, it has the same basename, so the bogon will be chosen
1630     # first if we set CC to just the basename; use the full file name.
1631     shift
1632     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1633   fi
1634 fi
1635 fi
1636 fi
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639   echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642   echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1644 fi
1645
1646 fi
1647 if test -z "$CC"; then
1648   if test -n "$ac_tool_prefix"; then
1649   for ac_prog in cl
1650   do
1651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656   echo $ECHO_N "(cached) $ECHO_C" >&6
1657 else
1658   if test -n "$CC"; then
1659   ac_cv_prog_CC="$CC" # Let the user override the test.
1660 else
1661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1662 for as_dir in $PATH
1663 do
1664   IFS=$as_save_IFS
1665   test -z "$as_dir" && as_dir=.
1666   for ac_exec_ext in '' $ac_executable_extensions; do
1667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1668     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670     break 2
1671   fi
1672 done
1673 done
1674
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686     test -n "$CC" && break
1687   done
1688 fi
1689 if test -z "$CC"; then
1690   ac_ct_CC=$CC
1691   for ac_prog in cl
1692 do
1693   # Extract the first word of "$ac_prog", so it can be a program name with args.
1694 set dummy $ac_prog; ac_word=$2
1695 echo "$as_me:$LINENO: checking for $ac_word" >&5
1696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1698   echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700   if test -n "$ac_ct_CC"; then
1701   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1702 else
1703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   for ac_exec_ext in '' $ac_executable_extensions; do
1709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710     ac_cv_prog_ac_ct_CC="$ac_prog"
1711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1712     break 2
1713   fi
1714 done
1715 done
1716
1717 fi
1718 fi
1719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1720 if test -n "$ac_ct_CC"; then
1721   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1722 echo "${ECHO_T}$ac_ct_CC" >&6
1723 else
1724   echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1726 fi
1727
1728   test -n "$ac_ct_CC" && break
1729 done
1730
1731   CC=$ac_ct_CC
1732 fi
1733
1734 fi
1735
1736
1737 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&2;}
1741    { (exit 1); exit 1; }; }
1742
1743 # Provide some information about the compiler.
1744 echo "$as_me:$LINENO:" \
1745      "checking for C compiler version" >&5
1746 ac_compiler=`set X $ac_compile; echo $2`
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1748   (eval $ac_compiler --version </dev/null >&5) 2>&5
1749   ac_status=$?
1750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751   (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1753   (eval $ac_compiler -v </dev/null >&5) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1758   (eval $ac_compiler -V </dev/null >&5) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }
1762
1763 cat >conftest.$ac_ext <<_ACEOF
1764 /* confdefs.h.  */
1765 _ACEOF
1766 cat confdefs.h >>conftest.$ac_ext
1767 cat >>conftest.$ac_ext <<_ACEOF
1768 /* end confdefs.h.  */
1769
1770 int
1771 main ()
1772 {
1773
1774   ;
1775   return 0;
1776 }
1777 _ACEOF
1778 ac_clean_files_save=$ac_clean_files
1779 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1780 # Try to create an executable without -o first, disregard a.out.
1781 # It will help us diagnose broken compilers, and finding out an intuition
1782 # of exeext.
1783 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1784 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1785 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1786 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1787   (eval $ac_link_default) 2>&5
1788   ac_status=$?
1789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790   (exit $ac_status); }; then
1791   # Find the output, starting from the most likely.  This scheme is
1792 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1793 # resort.
1794
1795 # Be careful to initialize this variable, since it used to be cached.
1796 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1797 ac_cv_exeext=
1798 # b.out is created by i960 compilers.
1799 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1800 do
1801   test -f "$ac_file" || continue
1802   case $ac_file in
1803     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1804         ;;
1805     conftest.$ac_ext )
1806         # This is the source file.
1807         ;;
1808     [ab].out )
1809         # We found the default executable, but exeext='' is most
1810         # certainly right.
1811         break;;
1812     *.* )
1813         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1814         # FIXME: I believe we export ac_cv_exeext for Libtool,
1815         # but it would be cool to find out if it's true.  Does anybody
1816         # maintain Libtool? --akim.
1817         export ac_cv_exeext
1818         break;;
1819     * )
1820         break;;
1821   esac
1822 done
1823 else
1824   echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&2;}
1831    { (exit 77); exit 77; }; }
1832 fi
1833
1834 ac_exeext=$ac_cv_exeext
1835 echo "$as_me:$LINENO: result: $ac_file" >&5
1836 echo "${ECHO_T}$ac_file" >&6
1837
1838 # Check the compiler produces executables we can run.  If not, either
1839 # the compiler is broken, or we cross compile.
1840 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1841 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1842 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1843 # If not cross compiling, check that we can run a simple program.
1844 if test "$cross_compiling" != yes; then
1845   if { ac_try='./$ac_file'
1846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1847   (eval $ac_try) 2>&5
1848   ac_status=$?
1849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850   (exit $ac_status); }; }; then
1851     cross_compiling=no
1852   else
1853     if test "$cross_compiling" = maybe; then
1854         cross_compiling=yes
1855     else
1856         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1857 If you meant to cross compile, use \`--host'.
1858 See \`config.log' for more details." >&5
1859 echo "$as_me: error: cannot run C compiled programs.
1860 If you meant to cross compile, use \`--host'.
1861 See \`config.log' for more details." >&2;}
1862    { (exit 1); exit 1; }; }
1863     fi
1864   fi
1865 fi
1866 echo "$as_me:$LINENO: result: yes" >&5
1867 echo "${ECHO_T}yes" >&6
1868
1869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1870 ac_clean_files=$ac_clean_files_save
1871 # Check the compiler produces executables we can run.  If not, either
1872 # the compiler is broken, or we cross compile.
1873 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1875 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1876 echo "${ECHO_T}$cross_compiling" >&6
1877
1878 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1881   (eval $ac_link) 2>&5
1882   ac_status=$?
1883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884   (exit $ac_status); }; then
1885   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1886 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1887 # work properly (i.e., refer to `conftest.exe'), while it won't with
1888 # `rm'.
1889 for ac_file in conftest.exe conftest conftest.*; do
1890   test -f "$ac_file" || continue
1891   case $ac_file in
1892     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1893     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1894           export ac_cv_exeext
1895           break;;
1896     * ) break;;
1897   esac
1898 done
1899 else
1900   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&2;}
1904    { (exit 1); exit 1; }; }
1905 fi
1906
1907 rm -f conftest$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1909 echo "${ECHO_T}$ac_cv_exeext" >&6
1910
1911 rm -f conftest.$ac_ext
1912 EXEEXT=$ac_cv_exeext
1913 ac_exeext=$EXEEXT
1914 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1916 if test "${ac_cv_objext+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h.  */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h.  */
1925
1926 int
1927 main ()
1928 {
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 rm -f conftest.o conftest.obj
1935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1936   (eval $ac_compile) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }; then
1940   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1941   case $ac_file in
1942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1943     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1944        break;;
1945   esac
1946 done
1947 else
1948   echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1959 fi
1960 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1961 echo "${ECHO_T}$ac_cv_objext" >&6
1962 OBJEXT=$ac_cv_objext
1963 ac_objext=$OBJEXT
1964 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1965 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1966 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   cat >conftest.$ac_ext <<_ACEOF
1970 /* confdefs.h.  */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h.  */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980        choke me
1981 #endif
1982
1983   ;
1984   return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989   (eval $ac_compile) 2>conftest.er1
1990   ac_status=$?
1991   grep -v '^ *+' conftest.er1 >conftest.err
1992   rm -f conftest.er1
1993   cat conftest.err >&5
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); } &&
1996          { ac_try='test -z "$ac_c_werror_flag"
1997                          || test ! -s conftest.err'
1998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999   (eval $ac_try) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }; } &&
2003          { ac_try='test -s conftest.$ac_objext'
2004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005   (eval $ac_try) 2>&5
2006   ac_status=$?
2007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008   (exit $ac_status); }; }; then
2009   ac_compiler_gnu=yes
2010 else
2011   echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_compiler_gnu=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2018
2019 fi
2020 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2021 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2022 GCC=`test $ac_compiler_gnu = yes && echo yes`
2023 ac_test_CFLAGS=${CFLAGS+set}
2024 ac_save_CFLAGS=$CFLAGS
2025 CFLAGS="-g"
2026 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2027 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2028 if test "${ac_cv_prog_cc_g+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>conftest.er1
2049   ac_status=$?
2050   grep -v '^ *+' conftest.er1 >conftest.err
2051   rm -f conftest.er1
2052   cat conftest.err >&5
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); } &&
2055          { ac_try='test -z "$ac_c_werror_flag"
2056                          || test ! -s conftest.err'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; } &&
2062          { ac_try='test -s conftest.$ac_objext'
2063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064   (eval $ac_try) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; }; then
2068   ac_cv_prog_cc_g=yes
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_cv_prog_cc_g=no
2074 fi
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080   CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082   if test "$GCC" = yes; then
2083     CFLAGS="-g -O2"
2084   else
2085     CFLAGS="-g"
2086   fi
2087 else
2088   if test "$GCC" = yes; then
2089     CFLAGS="-O2"
2090   else
2091     CFLAGS=
2092   fi
2093 fi
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   ac_cv_prog_cc_stdc=no
2100 ac_save_CC=$CC
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107 #include <stdarg.h>
2108 #include <stdio.h>
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2115      char **p;
2116      int i;
2117 {
2118   return p[i];
2119 }
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2121 {
2122   char *s;
2123   va_list v;
2124   va_start (v,p);
2125   s = g (p, va_arg (v,int));
2126   va_end (v);
2127   return s;
2128 }
2129
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2131    function prototypes and stuff, but not '\xHH' hex character constants.
2132    These don't provoke an error unfortunately, instead are silently treated
2133    as 'x'.  The following induces an error, until -std1 is added to get
2134    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2135    array size at least.  It's necessary to write '\x00'==0 to get something
2136    that's true only with -std1.  */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143 int argc;
2144 char **argv;
2145 int
2146 main ()
2147 {
2148 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX                   -qlanglvl=ansi
2156 # Ultrix and OSF/1      -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2159 # SVR4                  -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 do
2162   CC="$ac_save_CC $ac_arg"
2163   rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165   (eval $ac_compile) 2>conftest.er1
2166   ac_status=$?
2167   grep -v '^ *+' conftest.er1 >conftest.err
2168   rm -f conftest.er1
2169   cat conftest.err >&5
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); } &&
2172          { ac_try='test -z "$ac_c_werror_flag"
2173                          || test ! -s conftest.err'
2174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2175   (eval $ac_try) 2>&5
2176   ac_status=$?
2177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178   (exit $ac_status); }; } &&
2179          { ac_try='test -s conftest.$ac_objext'
2180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181   (eval $ac_try) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); }; }; then
2185   ac_cv_prog_cc_stdc=$ac_arg
2186 break
2187 else
2188   echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 fi
2192 rm -f conftest.err conftest.$ac_objext
2193 done
2194 rm -f conftest.$ac_ext conftest.$ac_objext
2195 CC=$ac_save_CC
2196
2197 fi
2198
2199 case "x$ac_cv_prog_cc_stdc" in
2200   x|xno)
2201     echo "$as_me:$LINENO: result: none needed" >&5
2202 echo "${ECHO_T}none needed" >&6 ;;
2203   *)
2204     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2205 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2206     CC="$CC $ac_cv_prog_cc_stdc" ;;
2207 esac
2208
2209 # Some people use a C++ compiler to compile C.  Since we use `exit',
2210 # in C++ we need to declare it.  In case someone uses the same compiler
2211 # for both compiling C and C++ we need to have the C++ compiler decide
2212 # the declaration of exit, since it's the most demanding environment.
2213 cat >conftest.$ac_ext <<_ACEOF
2214 #ifndef __cplusplus
2215   choke me
2216 #endif
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220   (eval $ac_compile) 2>conftest.er1
2221   ac_status=$?
2222   grep -v '^ *+' conftest.er1 >conftest.err
2223   rm -f conftest.er1
2224   cat conftest.err >&5
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); } &&
2227          { ac_try='test -z "$ac_c_werror_flag"
2228                          || test ! -s conftest.err'
2229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230   (eval $ac_try) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }; } &&
2234          { ac_try='test -s conftest.$ac_objext'
2235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236   (eval $ac_try) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }; }; then
2240   for ac_declaration in \
2241    '' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h.  */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h.  */
2254 $ac_declaration
2255 #include <stdlib.h>
2256 int
2257 main ()
2258 {
2259 exit (42);
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266   (eval $ac_compile) 2>conftest.er1
2267   ac_status=$?
2268   grep -v '^ *+' conftest.er1 >conftest.err
2269   rm -f conftest.er1
2270   cat conftest.err >&5
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); } &&
2273          { ac_try='test -z "$ac_c_werror_flag"
2274                          || test ! -s conftest.err'
2275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276   (eval $ac_try) 2>&5
2277   ac_status=$?
2278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279   (exit $ac_status); }; } &&
2280          { ac_try='test -s conftest.$ac_objext'
2281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282   (eval $ac_try) 2>&5
2283   ac_status=$?
2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285   (exit $ac_status); }; }; then
2286   :
2287 else
2288   echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 continue
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294   cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300 $ac_declaration
2301 int
2302 main ()
2303 {
2304 exit (42);
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>conftest.er1
2312   ac_status=$?
2313   grep -v '^ *+' conftest.er1 >conftest.err
2314   rm -f conftest.er1
2315   cat conftest.err >&5
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); } &&
2318          { ac_try='test -z "$ac_c_werror_flag"
2319                          || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   break
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 fi
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341   echo '#ifdef __cplusplus' >>confdefs.h
2342   echo $ac_declaration      >>confdefs.h
2343   echo '#endif'             >>confdefs.h
2344 fi
2345
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361 if test "${ac_cv_search_strerror+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   ac_func_search_save_LIBS=$LIBS
2365 ac_cv_search_strerror=no
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 /* Override any gcc2 internal prototype to avoid an error.  */
2374 #ifdef __cplusplus
2375 extern "C"
2376 #endif
2377 /* We use char because int might match the return type of a gcc2
2378    builtin and then its argument prototype would still apply.  */
2379 char strerror ();
2380 int
2381 main ()
2382 {
2383 strerror ();
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390   (eval $ac_link) 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } &&
2397          { ac_try='test -z "$ac_c_werror_flag"
2398                          || test ! -s conftest.err'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; } &&
2404          { ac_try='test -s conftest$ac_exeext'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   ac_cv_search_strerror="none required"
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 fi
2416 rm -f conftest.err conftest.$ac_objext \
2417       conftest$ac_exeext conftest.$ac_ext
2418 if test "$ac_cv_search_strerror" = no; then
2419   for ac_lib in cposix; do
2420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2421     cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 /* Override any gcc2 internal prototype to avoid an error.  */
2429 #ifdef __cplusplus
2430 extern "C"
2431 #endif
2432 /* We use char because int might match the return type of a gcc2
2433    builtin and then its argument prototype would still apply.  */
2434 char strerror ();
2435 int
2436 main ()
2437 {
2438 strerror ();
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 rm -f conftest.$ac_objext conftest$ac_exeext
2444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2445   (eval $ac_link) 2>conftest.er1
2446   ac_status=$?
2447   grep -v '^ *+' conftest.er1 >conftest.err
2448   rm -f conftest.er1
2449   cat conftest.err >&5
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); } &&
2452          { ac_try='test -z "$ac_c_werror_flag"
2453                          || test ! -s conftest.err'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; } &&
2459          { ac_try='test -s conftest$ac_exeext'
2460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461   (eval $ac_try) 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; }; then
2465   ac_cv_search_strerror="-l$ac_lib"
2466 break
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 fi
2472 rm -f conftest.err conftest.$ac_objext \
2473       conftest$ac_exeext conftest.$ac_ext
2474   done
2475 fi
2476 LIBS=$ac_func_search_save_LIBS
2477 fi
2478 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2479 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2480 if test "$ac_cv_search_strerror" != no; then
2481   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2482
2483 fi
2484
2485
2486 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2487 am__api_version="1.9"
2488 # Find a good install program.  We prefer a C program (faster),
2489 # so one script is as good as another.  But avoid the broken or
2490 # incompatible versions:
2491 # SysV /etc/install, /usr/sbin/install
2492 # SunOS /usr/etc/install
2493 # IRIX /sbin/install
2494 # AIX /bin/install
2495 # AmigaOS /C/install, which installs bootblocks on floppy discs
2496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2499 # OS/2's system install, which has a completely different semantic
2500 # ./install, which can be erroneously created by make from ./install.sh.
2501 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2502 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2503 if test -z "$INSTALL"; then
2504 if test "${ac_cv_path_install+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512   # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in
2514   ./ | .// | /cC/* | \
2515   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2517   /usr/ucb/* ) ;;
2518   *)
2519     # OSF1 and SCO ODT 3.0 have their own names for install.
2520     # Don't use installbsd from OSF since it installs stuff as root
2521     # by default.
2522     for ac_prog in ginstall scoinst install; do
2523       for ac_exec_ext in '' $ac_executable_extensions; do
2524         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525           if test $ac_prog = install &&
2526             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527             # AIX install.  It has an incompatible calling convention.
2528             :
2529           elif test $ac_prog = install &&
2530             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531             # program-specific install script used by HP pwplus--don't use.
2532             :
2533           else
2534             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2535             break 3
2536           fi
2537         fi
2538       done
2539     done
2540     ;;
2541 esac
2542 done
2543
2544
2545 fi
2546   if test "${ac_cv_path_install+set}" = set; then
2547     INSTALL=$ac_cv_path_install
2548   else
2549     # As a last resort, use the slow shell script.  We don't cache a
2550     # path for INSTALL within a source directory, because that will
2551     # break other packages using the cache if that directory is
2552     # removed, or if the path is relative.
2553     INSTALL=$ac_install_sh
2554   fi
2555 fi
2556 echo "$as_me:$LINENO: result: $INSTALL" >&5
2557 echo "${ECHO_T}$INSTALL" >&6
2558
2559 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2560 # It thinks the first close brace ends the variable substitution.
2561 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2562
2563 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2564
2565 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2566
2567 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2568 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2569 # Just in case
2570 sleep 1
2571 echo timestamp > conftest.file
2572 # Do `set' in a subshell so we don't clobber the current shell's
2573 # arguments.  Must try -L first in case configure is actually a
2574 # symlink; some systems play weird games with the mod time of symlinks
2575 # (eg FreeBSD returns the mod time of the symlink's containing
2576 # directory).
2577 if (
2578    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2579    if test "$*" = "X"; then
2580       # -L didn't work.
2581       set X `ls -t $srcdir/configure conftest.file`
2582    fi
2583    rm -f conftest.file
2584    if test "$*" != "X $srcdir/configure conftest.file" \
2585       && test "$*" != "X conftest.file $srcdir/configure"; then
2586
2587       # If neither matched, then we have a broken ls.  This can happen
2588       # if, for instance, CONFIG_SHELL is bash and it inherits a
2589       # broken ls alias from the environment.  This has actually
2590       # happened.  Such a system could not be considered "sane".
2591       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2592 alias in your environment" >&5
2593 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2594 alias in your environment" >&2;}
2595    { (exit 1); exit 1; }; }
2596    fi
2597
2598    test "$2" = conftest.file
2599    )
2600 then
2601    # Ok.
2602    :
2603 else
2604    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2605 Check your system clock" >&5
2606 echo "$as_me: error: newly created file is older than distributed files!
2607 Check your system clock" >&2;}
2608    { (exit 1); exit 1; }; }
2609 fi
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 test "$program_prefix" != NONE &&
2613   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2614 # Use a double $ so make ignores it.
2615 test "$program_suffix" != NONE &&
2616   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2617 # Double any \ or $.  echo might interpret backslashes.
2618 # By default was `s,x,x', remove it if useless.
2619 cat <<\_ACEOF >conftest.sed
2620 s/[\\$]/&&/g;s/;s,x,x,$//
2621 _ACEOF
2622 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2623 rm conftest.sed
2624
2625 # expand $ac_aux_dir to an absolute path
2626 am_aux_dir=`cd $ac_aux_dir && pwd`
2627
2628 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2629 # Use eval to expand $SHELL
2630 if eval "$MISSING --run true"; then
2631   am_missing_run="$MISSING --run "
2632 else
2633   am_missing_run=
2634   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2635 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2636 fi
2637
2638 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2639   # We used to keeping the `.' as first argument, in order to
2640   # allow $(mkdir_p) to be used without argument.  As in
2641   #   $(mkdir_p) $(somedir)
2642   # where $(somedir) is conditionally defined.  However this is wrong
2643   # for two reasons:
2644   #  1. if the package is installed by a user who cannot write `.'
2645   #     make install will fail,
2646   #  2. the above comment should most certainly read
2647   #     $(mkdir_p) $(DESTDIR)$(somedir)
2648   #     so it does not work when $(somedir) is undefined and
2649   #     $(DESTDIR) is not.
2650   #  To support the latter case, we have to write
2651   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2652   #  so the `.' trick is pointless.
2653   mkdir_p='mkdir -p --'
2654 else
2655   # On NextStep and OpenStep, the `mkdir' command does not
2656   # recognize any option.  It will interpret all options as
2657   # directories to create, and then abort because `.' already
2658   # exists.
2659   for d in ./-p ./--version;
2660   do
2661     test -d $d && rmdir $d
2662   done
2663   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2664   if test -f "$ac_aux_dir/mkinstalldirs"; then
2665     mkdir_p='$(mkinstalldirs)'
2666   else
2667     mkdir_p='$(install_sh) -d'
2668   fi
2669 fi
2670
2671 for ac_prog in gawk mawk nawk awk
2672 do
2673   # Extract the first word of "$ac_prog", so it can be a program name with args.
2674 set dummy $ac_prog; ac_word=$2
2675 echo "$as_me:$LINENO: checking for $ac_word" >&5
2676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2677 if test "${ac_cv_prog_AWK+set}" = set; then
2678   echo $ECHO_N "(cached) $ECHO_C" >&6
2679 else
2680   if test -n "$AWK"; then
2681   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2682 else
2683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 for as_dir in $PATH
2685 do
2686   IFS=$as_save_IFS
2687   test -z "$as_dir" && as_dir=.
2688   for ac_exec_ext in '' $ac_executable_extensions; do
2689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2690     ac_cv_prog_AWK="$ac_prog"
2691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692     break 2
2693   fi
2694 done
2695 done
2696
2697 fi
2698 fi
2699 AWK=$ac_cv_prog_AWK
2700 if test -n "$AWK"; then
2701   echo "$as_me:$LINENO: result: $AWK" >&5
2702 echo "${ECHO_T}$AWK" >&6
2703 else
2704   echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2706 fi
2707
2708   test -n "$AWK" && break
2709 done
2710
2711 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2713 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2714 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2715   echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717   cat >conftest.make <<\_ACEOF
2718 all:
2719         @echo 'ac_maketemp="$(MAKE)"'
2720 _ACEOF
2721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2722 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2723 if test -n "$ac_maketemp"; then
2724   eval ac_cv_prog_make_${ac_make}_set=yes
2725 else
2726   eval ac_cv_prog_make_${ac_make}_set=no
2727 fi
2728 rm -f conftest.make
2729 fi
2730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2731   echo "$as_me:$LINENO: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2733   SET_MAKE=
2734 else
2735   echo "$as_me:$LINENO: result: no" >&5
2736 echo "${ECHO_T}no" >&6
2737   SET_MAKE="MAKE=${MAKE-make}"
2738 fi
2739
2740 rm -rf .tst 2>/dev/null
2741 mkdir .tst 2>/dev/null
2742 if test -d .tst; then
2743   am__leading_dot=.
2744 else
2745   am__leading_dot=_
2746 fi
2747 rmdir .tst 2>/dev/null
2748
2749 DEPDIR="${am__leading_dot}deps"
2750
2751           ac_config_commands="$ac_config_commands depfiles"
2752
2753
2754 am_make=${MAKE-make}
2755 cat > confinc << 'END'
2756 am__doit:
2757         @echo done
2758 .PHONY: am__doit
2759 END
2760 # If we don't find an include directive, just comment out the code.
2761 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2763 am__include="#"
2764 am__quote=
2765 _am_result=none
2766 # First try GNU make style include.
2767 echo "include confinc" > confmf
2768 # We grep out `Entering directory' and `Leaving directory'
2769 # messages which can occur if `w' ends up in MAKEFLAGS.
2770 # In particular we don't look at `^make:' because GNU make might
2771 # be invoked under some other name (usually "gmake"), in which
2772 # case it prints its new name instead of `make'.
2773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2774    am__include=include
2775    am__quote=
2776    _am_result=GNU
2777 fi
2778 # Now try BSD make style include.
2779 if test "$am__include" = "#"; then
2780    echo '.include "confinc"' > confmf
2781    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2782       am__include=.include
2783       am__quote="\""
2784       _am_result=BSD
2785    fi
2786 fi
2787
2788
2789 echo "$as_me:$LINENO: result: $_am_result" >&5
2790 echo "${ECHO_T}$_am_result" >&6
2791 rm -f confinc confmf
2792
2793 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2794 if test "${enable_dependency_tracking+set}" = set; then
2795   enableval="$enable_dependency_tracking"
2796
2797 fi;
2798 if test "x$enable_dependency_tracking" != xno; then
2799   am_depcomp="$ac_aux_dir/depcomp"
2800   AMDEPBACKSLASH='\'
2801 fi
2802
2803
2804 if test "x$enable_dependency_tracking" != xno; then
2805   AMDEP_TRUE=
2806   AMDEP_FALSE='#'
2807 else
2808   AMDEP_TRUE='#'
2809   AMDEP_FALSE=
2810 fi
2811
2812
2813
2814 # test to see if srcdir already configured
2815 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2816    test -f $srcdir/config.status; then
2817   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2818 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2819    { (exit 1); exit 1; }; }
2820 fi
2821
2822 # test whether we have cygpath
2823 if test -z "$CYGPATH_W"; then
2824   if (cygpath --version) >/dev/null 2>/dev/null; then
2825     CYGPATH_W='cygpath -w'
2826   else
2827     CYGPATH_W=echo
2828   fi
2829 fi
2830
2831
2832 # Define the identity of the package.
2833  PACKAGE=gas
2834  VERSION=${BFD_VERSION}
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE "$PACKAGE"
2839 _ACEOF
2840
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define VERSION "$VERSION"
2844 _ACEOF
2845
2846 # Some tools Automake needs.
2847
2848 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2849
2850
2851 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2852
2853
2854 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2855
2856
2857 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2858
2859
2860 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2861
2862 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2863
2864 # Installed binaries are usually stripped using `strip' when the user
2865 # run `make install-strip'.  However `strip' might not be the right
2866 # tool to use in cross-compilation environments, therefore Automake
2867 # will honor the `STRIP' environment variable to overrule this program.
2868 if test "$cross_compiling" != no; then
2869   if test -n "$ac_tool_prefix"; then
2870   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}strip; ac_word=$2
2872 echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2874 if test "${ac_cv_prog_STRIP+set}" = set; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877   if test -n "$STRIP"; then
2878   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885   for ac_exec_ext in '' $ac_executable_extensions; do
2886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889     break 2
2890   fi
2891 done
2892 done
2893
2894 fi
2895 fi
2896 STRIP=$ac_cv_prog_STRIP
2897 if test -n "$STRIP"; then
2898   echo "$as_me:$LINENO: result: $STRIP" >&5
2899 echo "${ECHO_T}$STRIP" >&6
2900 else
2901   echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6
2903 fi
2904
2905 fi
2906 if test -z "$ac_cv_prog_STRIP"; then
2907   ac_ct_STRIP=$STRIP
2908   # Extract the first word of "strip", so it can be a program name with args.
2909 set dummy strip; ac_word=$2
2910 echo "$as_me:$LINENO: checking for $ac_word" >&5
2911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2912 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2913   echo $ECHO_N "(cached) $ECHO_C" >&6
2914 else
2915   if test -n "$ac_ct_STRIP"; then
2916   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2920 do
2921   IFS=$as_save_IFS
2922   test -z "$as_dir" && as_dir=.
2923   for ac_exec_ext in '' $ac_executable_extensions; do
2924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925     ac_cv_prog_ac_ct_STRIP="strip"
2926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927     break 2
2928   fi
2929 done
2930 done
2931
2932   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2933 fi
2934 fi
2935 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2936 if test -n "$ac_ct_STRIP"; then
2937   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2938 echo "${ECHO_T}$ac_ct_STRIP" >&6
2939 else
2940   echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2942 fi
2943
2944   STRIP=$ac_ct_STRIP
2945 else
2946   STRIP="$ac_cv_prog_STRIP"
2947 fi
2948
2949 fi
2950 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2951
2952 # We need awk for the "check" target.  The system "awk" is bad on
2953 # some platforms.
2954 # Always define AMTAR for backward compatibility.
2955
2956 AMTAR=${AMTAR-"${am_missing_run}tar"}
2957
2958 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2959
2960
2961
2962
2963 depcc="$CC"   am_compiler_list=
2964
2965 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971   # We make a subdir and do the tests there.  Otherwise we can end up
2972   # making bogus files that we don't know about and never remove.  For
2973   # instance it was reported that on HP-UX the gcc test will end up
2974   # making a dummy file named `D' -- because `-MD' means `put the output
2975   # in D'.
2976   mkdir conftest.dir
2977   # Copy depcomp to subdir because otherwise we won't find it if we're
2978   # using a relative directory.
2979   cp "$am_depcomp" conftest.dir
2980   cd conftest.dir
2981   # We will build objects and dependencies in a subdirectory because
2982   # it helps to detect inapplicable dependency modes.  For instance
2983   # both Tru64's cc and ICC support -MD to output dependencies as a
2984   # side effect of compilation, but ICC will put the dependencies in
2985   # the current directory while Tru64 will put them in the object
2986   # directory.
2987   mkdir sub
2988
2989   am_cv_CC_dependencies_compiler_type=none
2990   if test "$am_compiler_list" = ""; then
2991      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2992   fi
2993   for depmode in $am_compiler_list; do
2994     # Setup a source with many dependencies, because some compilers
2995     # like to wrap large dependency lists on column 80 (with \), and
2996     # we should not choose a depcomp mode which is confused by this.
2997     #
2998     # We need to recreate these files for each test, as the compiler may
2999     # overwrite some of them when testing with obscure command lines.
3000     # This happens at least with the AIX C compiler.
3001     : > sub/conftest.c
3002     for i in 1 2 3 4 5 6; do
3003       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3004       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3005       # Solaris 8's {/usr,}/bin/sh.
3006       touch sub/conftst$i.h
3007     done
3008     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3009
3010     case $depmode in
3011     nosideeffect)
3012       # after this tag, mechanisms are not by side-effect, so they'll
3013       # only be used when explicitly requested
3014       if test "x$enable_dependency_tracking" = xyes; then
3015         continue
3016       else
3017         break
3018       fi
3019       ;;
3020     none) break ;;
3021     esac
3022     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3023     # mode.  It turns out that the SunPro C++ compiler does not properly
3024     # handle `-M -o', and we need to detect this.
3025     if depmode=$depmode \
3026        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3027        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3028        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3029          >/dev/null 2>conftest.err &&
3030        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3031        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3032        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3033       # icc doesn't choke on unknown options, it will just issue warnings
3034       # or remarks (even with -Werror).  So we grep stderr for any message
3035       # that says an option was ignored or not supported.
3036       # When given -MP, icc 7.0 and 7.1 complain thusly:
3037       #   icc: Command line warning: ignoring option '-M'; no argument required
3038       # The diagnosis changed in icc 8.0:
3039       #   icc: Command line remark: option '-MP' not supported
3040       if (grep 'ignoring option' conftest.err ||
3041           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3042         am_cv_CC_dependencies_compiler_type=$depmode
3043         break
3044       fi
3045     fi
3046   done
3047
3048   cd ..
3049   rm -rf conftest.dir
3050 else
3051   am_cv_CC_dependencies_compiler_type=none
3052 fi
3053
3054 fi
3055 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3056 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3058
3059
3060
3061 if
3062   test "x$enable_dependency_tracking" != xno \
3063   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3064   am__fastdepCC_TRUE=
3065   am__fastdepCC_FALSE='#'
3066 else
3067   am__fastdepCC_TRUE='#'
3068   am__fastdepCC_FALSE=
3069 fi
3070
3071
3072
3073
3074 # Check whether --enable-shared or --disable-shared was given.
3075 if test "${enable_shared+set}" = set; then
3076   enableval="$enable_shared"
3077   p=${PACKAGE-default}
3078 case $enableval in
3079 yes) enable_shared=yes ;;
3080 no) enable_shared=no ;;
3081 *)
3082   enable_shared=no
3083   # Look at the argument we got.  We use all the common list separators.
3084   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3085   for pkg in $enableval; do
3086     if test "X$pkg" = "X$p"; then
3087       enable_shared=yes
3088     fi
3089   done
3090   IFS="$ac_save_ifs"
3091   ;;
3092 esac
3093 else
3094   enable_shared=yes
3095 fi;
3096 # Check whether --enable-static or --disable-static was given.
3097 if test "${enable_static+set}" = set; then
3098   enableval="$enable_static"
3099   p=${PACKAGE-default}
3100 case $enableval in
3101 yes) enable_static=yes ;;
3102 no) enable_static=no ;;
3103 *)
3104   enable_static=no
3105   # Look at the argument we got.  We use all the common list separators.
3106   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3107   for pkg in $enableval; do
3108     if test "X$pkg" = "X$p"; then
3109       enable_static=yes
3110     fi
3111   done
3112   IFS="$ac_save_ifs"
3113   ;;
3114 esac
3115 else
3116   enable_static=yes
3117 fi;
3118 # Check whether --enable-fast-install or --disable-fast-install was given.
3119 if test "${enable_fast_install+set}" = set; then
3120   enableval="$enable_fast_install"
3121   p=${PACKAGE-default}
3122 case $enableval in
3123 yes) enable_fast_install=yes ;;
3124 no) enable_fast_install=no ;;
3125 *)
3126   enable_fast_install=no
3127   # Look at the argument we got.  We use all the common list separators.
3128   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3129   for pkg in $enableval; do
3130     if test "X$pkg" = "X$p"; then
3131       enable_fast_install=yes
3132     fi
3133   done
3134   IFS="$ac_save_ifs"
3135   ;;
3136 esac
3137 else
3138   enable_fast_install=yes
3139 fi;
3140
3141 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3142 if test "${with_gnu_ld+set}" = set; then
3143   withval="$with_gnu_ld"
3144   test "$withval" = no || with_gnu_ld=yes
3145 else
3146   with_gnu_ld=no
3147 fi;
3148 ac_prog=ld
3149 if test "$GCC" = yes; then
3150   # Check if gcc -print-prog-name=ld gives a path.
3151   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3152 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3153   case $host in
3154   *-*-mingw*)
3155     # gcc leaves a trailing carriage return which upsets mingw
3156     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3157   *)
3158     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159   esac
3160   case $ac_prog in
3161     # Accept absolute paths.
3162     [\\/]* | [A-Za-z]:[\\/]*)
3163       re_direlt='/[^/][^/]*/\.\./'
3164       # Canonicalize the path of ld
3165       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3166       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3167         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3168       done
3169       test -z "$LD" && LD="$ac_prog"
3170       ;;
3171   "")
3172     # If it fails, then pretend we aren't using GCC.
3173     ac_prog=ld
3174     ;;
3175   *)
3176     # If it is relative, then search for the first ld in PATH.
3177     with_gnu_ld=unknown
3178     ;;
3179   esac
3180 elif test "$with_gnu_ld" = yes; then
3181   echo "$as_me:$LINENO: checking for GNU ld" >&5
3182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3183 else
3184   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3186 fi
3187 if test "${lt_cv_path_LD+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   if test -z "$LD"; then
3191   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3192   for ac_dir in $PATH; do
3193     test -z "$ac_dir" && ac_dir=.
3194     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3195       lt_cv_path_LD="$ac_dir/$ac_prog"
3196       # Check to see if the program is GNU ld.  I'd rather use --version,
3197       # but apparently some GNU ld's only accept -v.
3198       # Break only if it was the GNU/non-GNU ld that we prefer.
3199       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3200         test "$with_gnu_ld" != no && break
3201       else
3202         test "$with_gnu_ld" != yes && break
3203       fi
3204     fi
3205   done
3206   IFS="$ac_save_ifs"
3207 else
3208   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3209 fi
3210 fi
3211
3212 LD="$lt_cv_path_LD"
3213 if test -n "$LD"; then
3214   echo "$as_me:$LINENO: result: $LD" >&5
3215 echo "${ECHO_T}$LD" >&6
3216 else
3217   echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3219 fi
3220 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3221 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3222    { (exit 1); exit 1; }; }
3223 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3224 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3225 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3226   echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3229 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3230   lt_cv_prog_gnu_ld=yes
3231 else
3232   lt_cv_prog_gnu_ld=no
3233 fi
3234 fi
3235 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3236 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3237 with_gnu_ld=$lt_cv_prog_gnu_ld
3238
3239
3240 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3241 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3242 if test "${lt_cv_ld_reload_flag+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   lt_cv_ld_reload_flag='-r'
3246 fi
3247 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3248 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3249 reload_flag=$lt_cv_ld_reload_flag
3250 test -n "$reload_flag" && reload_flag=" $reload_flag"
3251
3252 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3253 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3254 if test "${lt_cv_path_NM+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   if test -n "$NM"; then
3258   # Let the user override the test.
3259   lt_cv_path_NM="$NM"
3260 else
3261   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3262   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3263     test -z "$ac_dir" && ac_dir=.
3264     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3265     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3266       # Check to see if the nm accepts a BSD-compat flag.
3267       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268       #   nm: unknown option "B" ignored
3269       # Tru64's nm complains that /dev/null is an invalid object file
3270       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3271         lt_cv_path_NM="$tmp_nm -B"
3272         break
3273       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3274         lt_cv_path_NM="$tmp_nm -p"
3275         break
3276       else
3277         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3278         continue # so that we can try to find one that supports BSD flags
3279       fi
3280     fi
3281   done
3282   IFS="$ac_save_ifs"
3283   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3284 fi
3285 fi
3286
3287 NM="$lt_cv_path_NM"
3288 echo "$as_me:$LINENO: result: $NM" >&5
3289 echo "${ECHO_T}$NM" >&6
3290
3291 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3292 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3293 LN_S=$as_ln_s
3294 if test "$LN_S" = "ln -s"; then
3295   echo "$as_me:$LINENO: result: yes" >&5
3296 echo "${ECHO_T}yes" >&6
3297 else
3298   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3299 echo "${ECHO_T}no, using $LN_S" >&6
3300 fi
3301
3302 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3303 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3304 if test "${lt_cv_deplibs_check_method+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   lt_cv_file_magic_cmd='$MAGIC_CMD'
3308 lt_cv_file_magic_test_file=
3309 lt_cv_deplibs_check_method='unknown'
3310 # Need to set the preceding variable on all platforms that support
3311 # interlibrary dependencies.
3312 # 'none' -- dependencies not supported.
3313 # `unknown' -- same as none, but documents that we really don't know.
3314 # 'pass_all' -- all dependencies passed with no checks.
3315 # 'test_compile' -- check by making test program.
3316 # 'file_magic [regex]' -- check by looking for files in library path
3317 # which responds to the $file_magic_cmd with a given egrep regex.
3318 # If you have `file' or equivalent on your system and you're not sure
3319 # whether `pass_all' will *always* work, you probably want this one.
3320
3321 case $host_os in
3322 aix*)
3323   lt_cv_deplibs_check_method=pass_all
3324   ;;
3325
3326 beos*)
3327   lt_cv_deplibs_check_method=pass_all
3328   ;;
3329
3330 bsdi4*)
3331   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3332   lt_cv_file_magic_cmd='/usr/bin/file -L'
3333   lt_cv_file_magic_test_file=/shlib/libc.so
3334   ;;
3335
3336 cygwin* | mingw* |pw32*)
3337   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3338   lt_cv_file_magic_cmd='$OBJDUMP -f'
3339   ;;
3340
3341 darwin* | rhapsody*)
3342   # this will be overwritten by pass_all, but leave it in just in case
3343   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344   lt_cv_file_magic_cmd='/usr/bin/file -L'
3345   case "$host_os" in
3346   rhapsody* | darwin1.012)
3347     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3348     ;;
3349   *) # Darwin 1.3 on
3350     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3351     ;;
3352   esac
3353   lt_cv_deplibs_check_method=pass_all
3354   ;;
3355
3356 freebsd* | kfreebsd*-gnu)
3357   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3358     case $host_cpu in
3359     i*86 )
3360       # Not sure whether the presence of OpenBSD here was a mistake.
3361       # Let's accept both of them until this is cleared up.
3362       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3363       lt_cv_file_magic_cmd=/usr/bin/file
3364       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3365       ;;
3366     esac
3367   else
3368     lt_cv_deplibs_check_method=pass_all
3369   fi
3370   ;;
3371
3372 gnu*)
3373   lt_cv_deplibs_check_method=pass_all
3374   ;;
3375
3376 hpux10.20*|hpux11*)
3377   case $host_cpu in
3378   hppa*)
3379     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3380     lt_cv_file_magic_cmd=/usr/bin/file
3381     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3382     ;;
3383   ia64*)
3384     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3385     lt_cv_file_magic_cmd=/usr/bin/file
3386     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3387     ;;
3388   esac
3389   ;;
3390
3391 irix5* | irix6*)
3392   case $host_os in
3393   irix5*)
3394     # this will be overridden with pass_all, but let us keep it just in case
3395     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3396     ;;
3397   *)
3398     case $LD in
3399     *-32|*"-32 ") libmagic=32-bit;;
3400     *-n32|*"-n32 ") libmagic=N32;;
3401     *-64|*"-64 ") libmagic=64-bit;;
3402     *) libmagic=never-match;;
3403     esac
3404     # this will be overridden with pass_all, but let us keep it just in case
3405     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3406     ;;
3407   esac
3408   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3409   lt_cv_deplibs_check_method=pass_all
3410   ;;
3411
3412 # This must be Linux ELF.
3413 linux-gnu*)
3414   lt_cv_deplibs_check_method=pass_all
3415   ;;
3416
3417 netbsd* | knetbsd*-gnu)
3418   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3419     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3420   else
3421     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3422   fi
3423   ;;
3424
3425 newsos6)
3426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3427   lt_cv_file_magic_cmd=/usr/bin/file
3428   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3429   ;;
3430
3431 osf3* | osf4* | osf5*)
3432   # this will be overridden with pass_all, but let us keep it just in case
3433   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3434   lt_cv_file_magic_test_file=/shlib/libc.so
3435   lt_cv_deplibs_check_method=pass_all
3436   ;;
3437
3438 sco3.2v5*)
3439   lt_cv_deplibs_check_method=pass_all
3440   ;;
3441
3442 solaris*)
3443   lt_cv_deplibs_check_method=pass_all
3444   lt_cv_file_magic_test_file=/lib/libc.so
3445   ;;
3446
3447 sysv5uw[78]* | sysv4*uw2*)
3448   lt_cv_deplibs_check_method=pass_all
3449   ;;
3450
3451 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3452   case $host_vendor in
3453   ncr)
3454     lt_cv_deplibs_check_method=pass_all
3455     ;;
3456   motorola)
3457     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3458     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3459     ;;
3460   esac
3461   ;;
3462 esac
3463
3464 fi
3465 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3466 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3467 file_magic_cmd=$lt_cv_file_magic_cmd
3468 deplibs_check_method=$lt_cv_deplibs_check_method
3469
3470
3471
3472
3473 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3474
3475 # find the maximum length of command line arguments
3476 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3477 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3478 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481     i=0
3482   teststring="ABCD"
3483
3484   case $build_os in
3485   msdosdjgpp*)
3486     # On DJGPP, this test can blow up pretty badly due to problems in libc
3487     # (any single argument exceeding 2000 bytes causes a buffer overrun
3488     # during glob expansion).  Even if it were fixed, the result of this
3489     # check would be larger than it should be.
3490     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3491     ;;
3492
3493   cygwin* | mingw*)
3494     # On Win9x/ME, this test blows up -- it succeeds, but takes
3495     # about 5 minutes as the teststring grows exponentially.
3496     # Worse, since 9x/ME are not pre-emptively multitasking,
3497     # you end up with a "frozen" computer, even though with patience
3498     # the test eventually succeeds (with a max line length of 256k).
3499     # Instead, let's just punt: use the minimum linelength reported by
3500     # all of the supported platforms: 8192 (on NT/2K/XP).
3501     lt_cv_sys_max_cmd_len=8192;
3502     ;;
3503
3504   amigaos*)
3505     # On AmigaOS with pdksh, this test takes hours, literally.
3506     # So we just punt and use a minimum line length of 8192.
3507     lt_cv_sys_max_cmd_len=8192;
3508     ;;
3509
3510   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3511     # This has been around since 386BSD, at least.  Likely further.
3512     if test -x /sbin/sysctl; then
3513       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3514     elif test -x /usr/sbin/sysctl; then
3515       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3516     else
3517       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3518     fi
3519     # And add a safety zone
3520     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3521     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3522     ;;
3523   esac
3524
3525 fi
3526
3527 if test -n "$lt_cv_sys_max_cmd_len" ; then
3528   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3529 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3530 else
3531   echo "$as_me:$LINENO: result: none" >&5
3532 echo "${ECHO_T}none" >&6
3533 fi
3534
3535
3536 # Only perform the check for file, if the check method requires it
3537 case $deplibs_check_method in
3538 file_magic*)
3539   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3540     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3541 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3542 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $MAGIC_CMD in
3546   /*)
3547   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3548   ;;
3549   ?:/*)
3550   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3551   ;;
3552   *)
3553   ac_save_MAGIC_CMD="$MAGIC_CMD"
3554   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3555   ac_dummy="/usr/bin:$PATH"
3556   for ac_dir in $ac_dummy; do
3557     test -z "$ac_dir" && ac_dir=.
3558     if test -f $ac_dir/${ac_tool_prefix}file; then
3559       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3560       if test -n "$file_magic_test_file"; then
3561         case $deplibs_check_method in
3562         "file_magic "*)
3563           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3564           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3565           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3566             egrep "$file_magic_regex" > /dev/null; then
3567             :
3568           else
3569             cat <<EOF 1>&2
3570
3571 *** Warning: the command libtool uses to detect shared libraries,
3572 *** $file_magic_cmd, produces output that libtool cannot recognize.
3573 *** The result is that libtool may fail to recognize shared libraries
3574 *** as such.  This will affect the creation of libtool libraries that
3575 *** depend on shared libraries, but programs linked with such libtool
3576 *** libraries will work regardless of this problem.  Nevertheless, you
3577 *** may want to report the problem to your system manager and/or to
3578 *** bug-libtool@gnu.org
3579
3580 EOF
3581           fi ;;
3582         esac
3583       fi
3584       break
3585     fi
3586   done
3587   IFS="$ac_save_ifs"
3588   MAGIC_CMD="$ac_save_MAGIC_CMD"
3589   ;;
3590 esac
3591 fi
3592
3593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3594 if test -n "$MAGIC_CMD"; then
3595   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3596 echo "${ECHO_T}$MAGIC_CMD" >&6
3597 else
3598   echo "$as_me:$LINENO: result: no" >&5
3599 echo "${ECHO_T}no" >&6
3600 fi
3601
3602 if test -z "$lt_cv_path_MAGIC_CMD"; then
3603   if test -n "$ac_tool_prefix"; then
3604     echo "$as_me:$LINENO: checking for file" >&5
3605 echo $ECHO_N "checking for file... $ECHO_C" >&6
3606 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   case $MAGIC_CMD in
3610   /*)
3611   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3612   ;;
3613   ?:/*)
3614   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3615   ;;
3616   *)
3617   ac_save_MAGIC_CMD="$MAGIC_CMD"
3618   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3619   ac_dummy="/usr/bin:$PATH"
3620   for ac_dir in $ac_dummy; do
3621     test -z "$ac_dir" && ac_dir=.
3622     if test -f $ac_dir/file; then
3623       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3624       if test -n "$file_magic_test_file"; then
3625         case $deplibs_check_method in
3626         "file_magic "*)
3627           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3628           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3629           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3630             egrep "$file_magic_regex" > /dev/null; then
3631             :
3632           else
3633             cat <<EOF 1>&2
3634
3635 *** Warning: the command libtool uses to detect shared libraries,
3636 *** $file_magic_cmd, produces output that libtool cannot recognize.
3637 *** The result is that libtool may fail to recognize shared libraries
3638 *** as such.  This will affect the creation of libtool libraries that
3639 *** depend on shared libraries, but programs linked with such libtool
3640 *** libraries will work regardless of this problem.  Nevertheless, you
3641 *** may want to report the problem to your system manager and/or to
3642 *** bug-libtool@gnu.org
3643
3644 EOF
3645           fi ;;
3646         esac
3647       fi
3648       break
3649     fi
3650   done
3651   IFS="$ac_save_ifs"
3652   MAGIC_CMD="$ac_save_MAGIC_CMD"
3653   ;;
3654 esac
3655 fi
3656
3657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3658 if test -n "$MAGIC_CMD"; then
3659   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3660 echo "${ECHO_T}$MAGIC_CMD" >&6
3661 else
3662   echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3664 fi
3665
3666   else
3667     MAGIC_CMD=:
3668   fi
3669 fi
3670
3671   fi
3672   ;;
3673 esac
3674
3675 if test -n "$ac_tool_prefix"; then
3676   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3678 echo "$as_me:$LINENO: checking for $ac_word" >&5
3679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3680 if test "${ac_cv_prog_RANLIB+set}" = set; then
3681   echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683   if test -n "$RANLIB"; then
3684   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691   for ac_exec_ext in '' $ac_executable_extensions; do
3692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3693     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698 done
3699
3700 fi
3701 fi
3702 RANLIB=$ac_cv_prog_RANLIB
3703 if test -n "$RANLIB"; then
3704   echo "$as_me:$LINENO: result: $RANLIB" >&5
3705 echo "${ECHO_T}$RANLIB" >&6
3706 else
3707   echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3709 fi
3710
3711 fi
3712 if test -z "$ac_cv_prog_RANLIB"; then
3713   ac_ct_RANLIB=$RANLIB
3714   # Extract the first word of "ranlib", so it can be a program name with args.
3715 set dummy ranlib; ac_word=$2
3716 echo "$as_me:$LINENO: checking for $ac_word" >&5
3717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3718 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3719   echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721   if test -n "$ac_ct_RANLIB"; then
3722   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3723 else
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   for ac_exec_ext in '' $ac_executable_extensions; do
3730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731     ac_cv_prog_ac_ct_RANLIB="ranlib"
3732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733     break 2
3734   fi
3735 done
3736 done
3737
3738   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3739 fi
3740 fi
3741 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3742 if test -n "$ac_ct_RANLIB"; then
3743   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3744 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3745 else
3746   echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750   RANLIB=$ac_ct_RANLIB
3751 else
3752   RANLIB="$ac_cv_prog_RANLIB"
3753 fi
3754
3755 if test -n "$ac_tool_prefix"; then
3756   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}strip; ac_word=$2
3758 echo "$as_me:$LINENO: checking for $ac_word" >&5
3759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3760 if test "${ac_cv_prog_STRIP+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   if test -n "$STRIP"; then
3764   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   for ac_exec_ext in '' $ac_executable_extensions; do
3772   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778 done
3779
3780 fi
3781 fi
3782 STRIP=$ac_cv_prog_STRIP
3783 if test -n "$STRIP"; then
3784   echo "$as_me:$LINENO: result: $STRIP" >&5
3785 echo "${ECHO_T}$STRIP" >&6
3786 else
3787   echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789 fi
3790
3791 fi
3792 if test -z "$ac_cv_prog_STRIP"; then
3793   ac_ct_STRIP=$STRIP
3794   # Extract the first word of "strip", so it can be a program name with args.
3795 set dummy strip; ac_word=$2
3796 echo "$as_me:$LINENO: checking for $ac_word" >&5
3797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3799   echo $ECHO_N "(cached) $ECHO_C" >&6
3800 else
3801   if test -n "$ac_ct_STRIP"; then
3802   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
3808   test -z "$as_dir" && as_dir=.
3809   for ac_exec_ext in '' $ac_executable_extensions; do
3810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811     ac_cv_prog_ac_ct_STRIP="strip"
3812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813     break 2
3814   fi
3815 done
3816 done
3817
3818   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3819 fi
3820 fi
3821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3822 if test -n "$ac_ct_STRIP"; then
3823   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3824 echo "${ECHO_T}$ac_ct_STRIP" >&6
3825 else
3826   echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828 fi
3829
3830   STRIP=$ac_ct_STRIP
3831 else
3832   STRIP="$ac_cv_prog_STRIP"
3833 fi
3834
3835
3836 # Check for any special flags to pass to ltconfig.
3837 libtool_flags="--cache-file=$cache_file"
3838 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3839 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3840 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3841 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3842 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3843
3844
3845 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3846 if test "${enable_libtool_lock+set}" = set; then
3847   enableval="$enable_libtool_lock"
3848
3849 fi;
3850 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3851 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3852
3853
3854 # Check whether --with-pic or --without-pic was given.
3855 if test "${with_pic+set}" = set; then
3856   withval="$with_pic"
3857   pic_mode="$withval"
3858 else
3859   pic_mode=default
3860 fi;
3861 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3862 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3863
3864 # Some flags need to be propagated to the compiler or linker for good
3865 # libtool support.
3866 case $host in
3867 *-*-irix6*)
3868   # Find out which ABI we are using.
3869   echo '#line 3869 "configure"' > conftest.$ac_ext
3870   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871   (eval $ac_compile) 2>&5
3872   ac_status=$?
3873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874   (exit $ac_status); }; then
3875    if test "$lt_cv_prog_gnu_ld" = yes; then
3876     case `/usr/bin/file conftest.$ac_objext` in
3877     *32-bit*)
3878       LD="${LD-ld} -melf32bsmip"
3879       ;;
3880     *N32*)
3881       LD="${LD-ld} -melf32bmipn32"
3882       ;;
3883     *64-bit*)
3884       LD="${LD-ld} -melf64bmip"
3885       ;;
3886     esac
3887    else
3888     case `/usr/bin/file conftest.$ac_objext` in
3889     *32-bit*)
3890       LD="${LD-ld} -32"
3891       ;;
3892     *N32*)
3893       LD="${LD-ld} -n32"
3894       ;;
3895     *64-bit*)
3896       LD="${LD-ld} -64"
3897       ;;
3898     esac
3899    fi
3900   fi
3901   rm -rf conftest*
3902   ;;
3903
3904 ia64-*-hpux*)
3905   # Find out which ABI we are using.
3906   echo 'int i;' > conftest.$ac_ext
3907   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908   (eval $ac_compile) 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; then
3912     case "`/usr/bin/file conftest.o`" in
3913     *ELF-32*)
3914       HPUX_IA64_MODE="32"
3915       ;;
3916     *ELF-64*)
3917       HPUX_IA64_MODE="64"
3918       ;;
3919     esac
3920   fi
3921   rm -rf conftest*
3922   ;;
3923
3924 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3925   # Find out which ABI we are using.
3926   echo 'int i;' > conftest.$ac_ext
3927   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3928   (eval $ac_compile) 2>&5
3929   ac_status=$?
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); }; then
3932     case "`/usr/bin/file conftest.o`" in
3933     *32-bit*)
3934       case $host in
3935         x86_64-*linux*)
3936           LD="${LD-ld} -m elf_i386"
3937           ;;
3938         ppc64-*linux*|powerpc64-*linux*)
3939           LD="${LD-ld} -m elf32ppclinux"
3940           ;;
3941         s390x-*linux*)
3942           LD="${LD-ld} -m elf_s390"
3943           ;;
3944         sparc64-*linux*)
3945           LD="${LD-ld} -m elf32_sparc"
3946           ;;
3947       esac
3948       ;;
3949     *64-bit*)
3950       case $host in
3951         x86_64-*linux*)
3952           LD="${LD-ld} -m elf_x86_64"
3953           ;;
3954         ppc*-*linux*|powerpc*-*linux*)
3955           LD="${LD-ld} -m elf64ppc"
3956           ;;
3957         s390*-*linux*)
3958           LD="${LD-ld} -m elf64_s390"
3959           ;;
3960         sparc*-*linux*)
3961           LD="${LD-ld} -m elf64_sparc"
3962           ;;
3963       esac
3964       ;;
3965     esac
3966   fi
3967   rm -rf conftest*
3968   ;;
3969
3970 *-*-sco3.2v5*)
3971   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3972   SAVE_CFLAGS="$CFLAGS"
3973   CFLAGS="$CFLAGS -belf"
3974   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3975 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3976 if test "${lt_cv_cc_needs_belf+set}" = set; then
3977   echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979
3980
3981      ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986
3987      cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993
3994 int
3995 main ()
3996 {
3997
3998   ;
3999   return 0;
4000 }
4001 _ACEOF
4002 rm -f conftest.$ac_objext conftest$ac_exeext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4004   (eval $ac_link) 2>conftest.er1
4005   ac_status=$?
4006   grep -v '^ *+' conftest.er1 >conftest.err
4007   rm -f conftest.er1
4008   cat conftest.err >&5
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); } &&
4011          { ac_try='test -z "$ac_c_werror_flag"
4012                          || test ! -s conftest.err'
4013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014   (eval $ac_try) 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); }; } &&
4018          { ac_try='test -s conftest$ac_exeext'
4019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020   (eval $ac_try) 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); }; }; then
4024   lt_cv_cc_needs_belf=yes
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 lt_cv_cc_needs_belf=no
4030 fi
4031 rm -f conftest.err conftest.$ac_objext \
4032       conftest$ac_exeext conftest.$ac_ext
4033      ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038
4039 fi
4040 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4041 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4042   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4043     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4044     CFLAGS="$SAVE_CFLAGS"
4045   fi
4046   ;;
4047
4048
4049 esac
4050
4051
4052 # Save cache, so that ltconfig can load it
4053 cat >confcache <<\_ACEOF
4054 # This file is a shell script that caches the results of configure
4055 # tests run on this system so they can be shared between configure
4056 # scripts and configure runs, see configure's option --config-cache.
4057 # It is not useful on other systems.  If it contains results you don't
4058 # want to keep, you may remove or edit it.
4059 #
4060 # config.status only pays attention to the cache file if you give it
4061 # the --recheck option to rerun configure.
4062 #
4063 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4064 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4065 # following values.
4066
4067 _ACEOF
4068
4069 # The following way of writing the cache mishandles newlines in values,
4070 # but we know of no workaround that is simple, portable, and efficient.
4071 # So, don't put newlines in cache variables' values.
4072 # Ultrix sh set writes to stderr and can't be redirected directly,
4073 # and sets the high bit in the cache file unless we assign to the vars.
4074 {
4075   (set) 2>&1 |
4076     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4077     *ac_space=\ *)
4078       # `set' does not quote correctly, so add quotes (double-quote
4079       # substitution turns \\\\ into \\, and sed turns \\ into \).
4080       sed -n \
4081         "s/'/'\\\\''/g;
4082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4083       ;;
4084     *)
4085       # `set' quotes correctly as required by POSIX, so do not add quotes.
4086       sed -n \
4087         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4088       ;;
4089     esac;
4090 } |
4091   sed '
4092      t clear
4093      : clear
4094      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4095      t end
4096      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4097      : end' >>confcache
4098 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4099   if test -w $cache_file; then
4100     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4101     cat confcache >$cache_file
4102   else
4103     echo "not updating unwritable cache $cache_file"
4104   fi
4105 fi
4106 rm -f confcache
4107
4108 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4109 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4110 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4111 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4112 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4113 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4114 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4115 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4116 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4117 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4118 echo "$as_me: error: libtool configure failed" >&2;}
4119    { (exit 1); exit 1; }; }
4120
4121 # Reload cache, that may have been modified by ltconfig
4122 if test -r "$cache_file"; then
4123   # Some versions of bash will fail to source /dev/null (special
4124   # files actually), so we avoid doing that.
4125   if test -f "$cache_file"; then
4126     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4127 echo "$as_me: loading cache $cache_file" >&6;}
4128     case $cache_file in
4129       [\\/]* | ?:[\\/]* ) . $cache_file;;
4130       *)                      . ./$cache_file;;
4131     esac
4132   fi
4133 else
4134   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4135 echo "$as_me: creating cache $cache_file" >&6;}
4136   >$cache_file
4137 fi
4138
4139
4140 # This can be used to rebuild libtool when needed
4141 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4142
4143 # Always use our own libtool.
4144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4145
4146 # Redirect the config.log output again, so that the ltconfig log is not
4147 # clobbered by the next message.
4148 exec 5>>./config.log
4149
4150
4151
4152
4153
4154
4155
4156 # Check whether --enable-targets or --disable-targets was given.
4157 if test "${enable_targets+set}" = set; then
4158   enableval="$enable_targets"
4159   case "${enableval}" in
4160   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4161 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4162    { (exit 1); exit 1; }; }
4163             ;;
4164   no)       enable_targets= ;;
4165   *)        enable_targets=$enableval ;;
4166 esac
4167 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4168 if test "${enable_commonbfdlib+set}" = set; then
4169   enableval="$enable_commonbfdlib"
4170   case "${enableval}" in
4171   yes) commonbfdlib=true ;;
4172   no)  commonbfdlib=false ;;
4173   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4174 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4175    { (exit 1); exit 1; }; } ;;
4176 esac
4177 fi;
4178 using_cgen=no
4179
4180
4181 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4182
4183 # Check whether --enable-werror or --disable-werror was given.
4184 if test "${enable_werror+set}" = set; then
4185   enableval="$enable_werror"
4186   case "${enableval}" in
4187      yes | y) ERROR_ON_WARNING="yes" ;;
4188      no | n)  ERROR_ON_WARNING="no" ;;
4189      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4190 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4191    { (exit 1); exit 1; }; } ;;
4192    esac
4193 fi;
4194
4195 # Enable -Werror by default when using gcc
4196 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4197     ERROR_ON_WARNING=yes
4198 fi
4199
4200 NO_WERROR=
4201 if test "${ERROR_ON_WARNING}" = yes ; then
4202     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4203     NO_WERROR="-Wno-error"
4204 fi
4205
4206 if test "${GCC}" = yes ; then
4207   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4208 fi
4209
4210 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4211 if test "${enable_build_warnings+set}" = set; then
4212   enableval="$enable_build_warnings"
4213   case "${enableval}" in
4214   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4215   no)   if test "${GCC}" = yes ; then
4216           WARN_CFLAGS="-w"
4217         fi;;
4218   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4219         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4220   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4221         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4222   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4223 esac
4224 fi;
4225
4226 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4227   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4228 fi
4229
4230
4231
4232
4233
4234 # Generate a header file
4235           ac_config_headers="$ac_config_headers config.h:config.in"
4236
4237
4238 # If we are on a DOS filesystem, we must use gdb.ini rather than
4239 # .gdbinit.
4240 case "${host}" in
4241   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4242     GDBINIT="gdb.ini"
4243               ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4244
4245     ;;
4246   *)
4247     GDBINIT=".gdbinit"
4248               ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4249
4250     ;;
4251 esac
4252
4253
4254 #We need this for the host.  BOUT header is in host order.
4255 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4256 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4257 if test "${ac_cv_c_bigendian+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   # See if sys/param.h defines the BYTE_ORDER macro.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 #include <sys/types.h>
4268 #include <sys/param.h>
4269
4270 int
4271 main ()
4272 {
4273 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4274  bogus endian macros
4275 #endif
4276
4277   ;
4278   return 0;
4279 }
4280 _ACEOF
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4283   (eval $ac_compile) 2>conftest.er1
4284   ac_status=$?
4285   grep -v '^ *+' conftest.er1 >conftest.err
4286   rm -f conftest.er1
4287   cat conftest.err >&5
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); } &&
4290          { ac_try='test -z "$ac_c_werror_flag"
4291                          || test ! -s conftest.err'
4292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293   (eval $ac_try) 2>&5
4294   ac_status=$?
4295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296   (exit $ac_status); }; } &&
4297          { ac_try='test -s conftest.$ac_objext'
4298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299   (eval $ac_try) 2>&5
4300   ac_status=$?
4301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302   (exit $ac_status); }; }; then
4303   # It does; now see whether it defined to BIG_ENDIAN or not.
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310 #include <sys/types.h>
4311 #include <sys/param.h>
4312
4313 int
4314 main ()
4315 {
4316 #if BYTE_ORDER != BIG_ENDIAN
4317  not big endian
4318 #endif
4319
4320   ;
4321   return 0;
4322 }
4323 _ACEOF
4324 rm -f conftest.$ac_objext
4325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4326   (eval $ac_compile) 2>conftest.er1
4327   ac_status=$?
4328   grep -v '^ *+' conftest.er1 >conftest.err
4329   rm -f conftest.er1
4330   cat conftest.err >&5
4331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332   (exit $ac_status); } &&
4333          { ac_try='test -z "$ac_c_werror_flag"
4334                          || test ! -s conftest.err'
4335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336   (eval $ac_try) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   ac_cv_c_bigendian=yes
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ac_cv_c_bigendian=no
4352 fi
4353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4354 else
4355   echo "$as_me: failed program was:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4357
4358 # It does not; compile a test program.
4359 if test "$cross_compiling" = yes; then
4360   # try to guess the endianness by grepping values into an object file
4361   ac_cv_c_bigendian=unknown
4362   cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h.  */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h.  */
4368 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4369 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4370 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4371 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4372 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4373 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4374 int
4375 main ()
4376 {
4377  _ascii (); _ebcdic ();
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 rm -f conftest.$ac_objext
4383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4384   (eval $ac_compile) 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } &&
4391          { ac_try='test -z "$ac_c_werror_flag"
4392                          || test ! -s conftest.err'
4393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4394   (eval $ac_try) 2>&5
4395   ac_status=$?
4396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397   (exit $ac_status); }; } &&
4398          { ac_try='test -s conftest.$ac_objext'
4399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400   (eval $ac_try) 2>&5
4401   ac_status=$?
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); }; }; then
4404   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4405   ac_cv_c_bigendian=yes
4406 fi
4407 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4408   if test "$ac_cv_c_bigendian" = unknown; then
4409     ac_cv_c_bigendian=no
4410   else
4411     # finding both strings is unlikely to happen, but who knows?
4412     ac_cv_c_bigendian=unknown
4413   fi
4414 fi
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 fi
4420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4421 else
4422   cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 int
4429 main ()
4430 {
4431   /* Are we little or big endian?  From Harbison&Steele.  */
4432   union
4433   {
4434     long l;
4435     char c[sizeof (long)];
4436   } u;
4437   u.l = 1;
4438   exit (u.c[sizeof (long) - 1] == 1);
4439 }
4440 _ACEOF
4441 rm -f conftest$ac_exeext
4442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443   (eval $ac_link) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448   (eval $ac_try) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }; }; then
4452   ac_cv_c_bigendian=no
4453 else
4454   echo "$as_me: program exited with status $ac_status" >&5
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 ( exit $ac_status )
4459 ac_cv_c_bigendian=yes
4460 fi
4461 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4462 fi
4463 fi
4464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4465 fi
4466 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4467 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4468 case $ac_cv_c_bigendian in
4469   yes)
4470
4471 cat >>confdefs.h <<\_ACEOF
4472 #define WORDS_BIGENDIAN 1
4473 _ACEOF
4474  ;;
4475   no)
4476      ;;
4477   *)
4478     { { echo "$as_me:$LINENO: error: unknown endianness
4479 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4480 echo "$as_me: error: unknown endianness
4481 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4482    { (exit 1); exit 1; }; } ;;
4483 esac
4484
4485
4486 te_file=generic
4487
4488 # Makefile target for installing gas in $(tooldir)/bin.
4489 install_tooldir=install-exec-tooldir
4490
4491 canon_targets=""
4492 all_targets=no
4493 if test -n "$enable_targets" ; then
4494   for t in `echo $enable_targets | sed 's/,/ /g'`; do
4495     if test $t = "all"; then
4496       all_targets=yes
4497       continue
4498     fi
4499     result=`$ac_config_sub $t 2>/dev/null`
4500     if test -n "$result" ; then
4501       canon_targets="$canon_targets $result"
4502 #    else
4503 #      # Permit "all", etc.  We don't support it yet though.
4504 #      canon_targets="$canon_targets $t"
4505     fi
4506   done
4507   _gas_uniq_list="$canon_targets"
4508 _gas_uniq_newlist=""
4509 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4510   case $_gas_uniq_i in
4511   _gas_uniq_dummy) ;;
4512   *) case " $_gas_uniq_newlist " in
4513        *" $_gas_uniq_i "*) ;;
4514        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4515      esac ;;
4516   esac
4517 done
4518 canon_targets=$_gas_uniq_newlist
4519
4520 fi
4521
4522 emulations=""
4523
4524 for this_target in $target $canon_targets ; do
4525
4526     targ=${this_target}
4527     . ${srcdir}/configure.tgt
4528
4529     case ${target_cpu} in
4530       crisv32)
4531
4532 cat >>confdefs.h <<_ACEOF
4533 #define DEFAULT_CRIS_ARCH $arch
4534 _ACEOF
4535
4536         ;;
4537     esac
4538
4539     if test ${this_target} = $target ; then
4540       target_cpu_type=${cpu_type}
4541     elif test ${target_cpu_type} != ${cpu_type} ; then
4542       continue
4543     fi
4544
4545     generic_target=${cpu_type}-${target_vendor}-${target_os}
4546     case ${generic_target} in
4547       i386-*-sco3.2v5*)
4548         if test ${this_target} = $target; then
4549
4550 cat >>confdefs.h <<\_ACEOF
4551 #define SCO_ELF 1
4552 _ACEOF
4553
4554         fi
4555         ;;
4556
4557       i386-*-msdosdjgpp* \
4558       | i386-*-go32* \
4559       | i386-go32-rtems*)
4560
4561 cat >>confdefs.h <<\_ACEOF
4562 #define STRICTCOFF 1
4563 _ACEOF
4564
4565         ;;
4566
4567       i860-*-*)
4568         { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4569 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4570         ;;
4571
4572       mips-sony-bsd*)
4573         ;;
4574       mips-*-bsd*)
4575         { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4576 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4577    { (exit 1); exit 1; }; }
4578         ;;
4579
4580       ppc-*-aix5.*)
4581
4582 cat >>confdefs.h <<\_ACEOF
4583 #define AIX_WEAK_SUPPORT 1
4584 _ACEOF
4585
4586         ;;
4587       ppc-*-linux-*)
4588         case "$endian" in
4589           big)  ;;
4590           *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4591 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4592    { (exit 1); exit 1; }; } ;;
4593         esac
4594         ;;
4595       ppc-*-solaris*)
4596         if test ${this_target} = $target; then
4597
4598 cat >>confdefs.h <<\_ACEOF
4599 #define TARGET_SOLARIS_COMMENT 1
4600 _ACEOF
4601
4602         fi
4603         if test x${endian} = xbig; then
4604           { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4605 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4606    { (exit 1); exit 1; }; }
4607         fi
4608         ;;
4609
4610       sh*-*-symbianelf*)
4611
4612 cat >>confdefs.h <<\_ACEOF
4613 #define TARGET_SYMBIAN 1
4614 _ACEOF
4615
4616         ;;
4617     esac
4618
4619     if test ${this_target} = $target ; then
4620       endian_def=
4621       if test x${endian} = xbig; then
4622         endian_def=1
4623       elif test x${endian} = xlittle; then
4624         endian_def=0
4625       fi
4626       if test x${endian_def} != x; then
4627
4628 cat >>confdefs.h <<_ACEOF
4629 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4630 _ACEOF
4631
4632       fi
4633     fi
4634
4635 # Other random stuff.
4636
4637     case ${cpu_type} in
4638       mips)
4639         # Set mips_cpu to the name of the default CPU.
4640         case ${target_cpu} in
4641           mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4642             mips_cpu=from-abi
4643             ;;
4644           mipsisa32 | mipsisa32el)
4645             mips_cpu=mips32
4646             ;;
4647           mipsisa32r2 | mipsisa32r2el)
4648             mips_cpu=mips32r2
4649             ;;
4650           mipsisa64 | mipsisa64el)
4651             mips_cpu=mips64
4652             ;;
4653           mipsisa64r2 | mipsisa64r2el)
4654             mips_cpu=mips64r2
4655             ;;
4656           mipstx39 | mipstx39el)
4657             mips_cpu=r3900
4658             ;;
4659           mips64vr | mips64vrel)
4660             mips_cpu=vr4100
4661             ;;
4662           mipsisa32r2* | mipsisa64r2*)
4663             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4664             ;;
4665           mips64* | mipsisa64* | mipsisa32*)
4666             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4667             ;;
4668           *)
4669             { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4670 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4671    { (exit 1); exit 1; }; }
4672             ;;
4673         esac
4674         # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4675         # binaries.  It's a GNU extension that some OSes don't understand.
4676         # The value only matters on ELF targets.
4677         case ${target} in
4678           *-*-irix*)
4679             use_e_mips_abi_o32=0
4680             ;;
4681           *)
4682             use_e_mips_abi_o32=1
4683             ;;
4684         esac
4685         # Decide whether to generate 32-bit or 64-bit code by default.
4686         # Used to resolve -march=from-abi when an embedded ABI is selected.
4687         case ${target} in
4688           mips64*-*-* | mipsisa64*-*-*)
4689             mips_default_64bit=1
4690             ;;
4691           *)
4692             mips_default_64bit=0
4693             ;;
4694         esac
4695         # Decide which ABI to target by default.
4696         case ${target} in
4697           mips64*-linux* | mips-sgi-irix6*)
4698             mips_default_abi=N32_ABI
4699             ;;
4700           mips*-linux*)
4701             mips_default_abi=O32_ABI
4702             ;;
4703           mips64*-openbsd*)
4704             mips_default_abi=N64_ABI
4705             ;;
4706           *)
4707             mips_default_abi=NO_ABI
4708             ;;
4709         esac
4710
4711 cat >>confdefs.h <<_ACEOF
4712 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4713 _ACEOF
4714
4715
4716 cat >>confdefs.h <<_ACEOF
4717 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4718 _ACEOF
4719
4720
4721 cat >>confdefs.h <<_ACEOF
4722 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4723 _ACEOF
4724
4725
4726 cat >>confdefs.h <<_ACEOF
4727 #define MIPS_DEFAULT_ABI $mips_default_abi
4728 _ACEOF
4729
4730         ;;
4731     esac
4732
4733     # Do we need the opcodes library?
4734     case ${cpu_type} in
4735       vax | i386 | tic30)
4736         ;;
4737
4738       *)
4739         need_opcodes=yes
4740
4741         case "${enable_shared}" in
4742         yes) shared_opcodes=true ;;
4743         *opcodes*) shared_opcodes=true ;;
4744         *) shared_opcodes=false ;;
4745         esac
4746         ;;
4747     esac
4748
4749     # Any other special object files needed ?
4750     case ${cpu_type} in
4751
4752       bfin)
4753         echo ${extra_objects} | grep -s "bfin-parse.o"
4754         if test $? -ne 0 ; then
4755           extra_objects="$extra_objects bfin-parse.o"
4756         fi
4757
4758         echo ${extra_objects} | grep -s "bfin-lex.o"
4759         if test $? -ne 0 ; then
4760           extra_objects="$extra_objects bfin-lex.o"
4761         fi
4762         ;;
4763
4764       fr30 | ip2k | iq2000 | m32r | openrisc)
4765         using_cgen=yes
4766         ;;
4767
4768       m32c)
4769         using_cgen=yes
4770         ;;
4771       frv)
4772         using_cgen=yes
4773         ;;
4774       m68k)
4775         case ${extra_objects} in
4776         *m68k-parse.o*) ;;
4777         *) extra_objects="$extra_objects m68k-parse.o" ;;
4778         esac
4779         ;;
4780
4781       mep)
4782         using_cgen=yes
4783         ;;
4784
4785       mips)
4786         echo ${extra_objects} | grep -s "itbl-parse.o"
4787         if test $? -ne 0 ; then
4788           extra_objects="$extra_objects itbl-parse.o"
4789         fi
4790
4791         echo ${extra_objects} | grep -s "itbl-lex.o"
4792         if test $? -ne 0 ; then
4793           extra_objects="$extra_objects itbl-lex.o"
4794         fi
4795
4796         echo ${extra_objects} | grep -s "itbl-ops.o"
4797         if test $? -ne 0 ; then
4798           extra_objects="$extra_objects itbl-ops.o"
4799         fi
4800         ;;
4801
4802       mt)
4803         using_cgen=yes
4804         ;;
4805
4806       i386 | s390 | sparc)
4807         if test $this_target = $target ; then
4808
4809 cat >>confdefs.h <<_ACEOF
4810 #define DEFAULT_ARCH "${arch}"
4811 _ACEOF
4812
4813         fi
4814         ;;
4815
4816       xstormy16)
4817         using_cgen=yes
4818         ;;
4819
4820       xc16x)
4821         using_cgen=yes
4822         ;;
4823
4824       xtensa)
4825         echo ${extra_objects} | grep -s "xtensa-relax.o"
4826         if test $? -ne 0 ; then
4827           extra_objects="$extra_objects xtensa-relax.o"
4828         fi
4829         ;;
4830
4831       *)
4832         ;;
4833     esac
4834
4835     if test $using_cgen = yes ; then
4836         case "x${extra_objects}" in
4837         *cgen.o*) ;;
4838         *) extra_objects="$extra_objects cgen.o" ;;
4839         esac
4840     fi
4841
4842 # See if we really can support this configuration with the emulation code.
4843
4844     if test $this_target = $target ; then
4845       obj_format=$fmt
4846       te_file=$em
4847     fi
4848
4849 # From target name and format, produce a list of supported emulations.
4850
4851     case ${generic_target}-${fmt} in
4852       mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4853       mips*-*-linux*-*) case "$endian" in
4854                         big)    emulation="mipsbelf mipslelf mipself" ;;
4855                         *)      emulation="mipslelf mipsbelf mipself" ;;
4856                         esac ;;
4857       mips-*-lnews*-ecoff) ;;
4858       mips-*-*-ecoff)   case "$endian" in
4859                         big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
4860                         *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
4861                         esac ;;
4862       mips-*-*-elf)     case "$endian" in
4863                         big)    emulation="mipsbelf mipslelf mipself" ;;
4864                         *)      emulation="mipslelf mipsbelf mipself" ;;
4865                         esac ;;
4866       mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4867       # i386-pc-pe-coff != i386-pc-coff.
4868       i386-*-pe-coff)   ;;
4869       # Uncommenting the next line will turn on support for i386 AOUT
4870       # for the default linux configuration
4871       # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4872       #
4873       i386-*-aout)      emulation="i386aout" ;;
4874       i386-*-coff)      emulation="i386coff" ;;
4875       i386-*-elf)       emulation="i386elf" ;;
4876
4877       # Always all formats.  The first stated emulation becomes the default.
4878       cris-*-*aout*)    emulation="crisaout criself" ;;
4879       cris-*-*)         emulation="criself crisaout" ;;
4880     esac
4881
4882     emulations="$emulations $emulation"
4883
4884 done
4885
4886 # Turn on all targets if possible
4887 if test ${all_targets} = "yes"; then
4888   case ${target_cpu_type} in
4889   i386)
4890     case ${obj_format} in
4891     aout)
4892       emulations="$emulations i386coff i386elf"
4893       ;;
4894     coff)
4895       emulations="$emulations i386aout i386elf"
4896     ;;
4897     elf)
4898       emulations="$emulations i386aout i386coff"
4899       ;;
4900     esac
4901   ;;
4902   x86_64)
4903     case ${obj_format} in
4904     aout)
4905       emulations="$emulations i386coff i386elf"
4906       ;;
4907     coff)
4908       emulations="$emulations i386aout i386elf"
4909     ;;
4910     elf)
4911       emulations="$emulations i386aout i386coff"
4912       ;;
4913     esac
4914   ;;
4915   esac
4916 fi
4917
4918 # Assign floating point type.  Most processors with FP support
4919 # IEEE FP.  On those that don't support FP at all, usually IEEE
4920 # is emulated.
4921 case ${target_cpu} in
4922   vax | pdp11 ) atof=vax ;;
4923   *)            atof=ieee ;;
4924 esac
4925
4926 case "${obj_format}" in
4927   "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4928 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4929    { (exit 1); exit 1; }; } ;;
4930 esac
4931
4932 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4933 cgen_cpu_prefix=""
4934 if test $using_cgen = yes ; then
4935   case ${target_cpu} in
4936     *) cgen_cpu_prefix=${target_cpu} ;;
4937   esac
4938
4939
4940 cat >>confdefs.h <<\_ACEOF
4941 #define USING_CGEN 1
4942 _ACEOF
4943
4944 fi
4945
4946
4947 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4948   { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4949 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4950    { (exit 1); exit 1; }; }
4951 fi
4952
4953 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4954   { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4955 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4956    { (exit 1); exit 1; }; }
4957 fi
4958
4959 # Some COFF configurations want these random other flags set.
4960 case ${obj_format} in
4961   coff)
4962     case ${target_cpu_type} in
4963       i386)
4964 cat >>confdefs.h <<\_ACEOF
4965 #define I386COFF 1
4966 _ACEOF
4967  ;;
4968       m68k)
4969 cat >>confdefs.h <<\_ACEOF
4970 #define M68KCOFF 1
4971 _ACEOF
4972  ;;
4973       m88k)
4974 cat >>confdefs.h <<\_ACEOF
4975 #define M88KCOFF 1
4976 _ACEOF
4977  ;;
4978       x86_64)
4979 cat >>confdefs.h <<\_ACEOF
4980 #define I386COFF 1
4981 _ACEOF
4982  ;;
4983     esac
4984     ;;
4985 esac
4986
4987 # Getting this done right is going to be a bitch.  Each configuration specified
4988 # with --enable-targets=... should be checked for environment, format, cpu
4989 # setting.
4990 #
4991 # For each configuration, the necessary object file support code must be linked
4992 # in.  This might be only one, it might be up to four.  The necessary emulation
4993 # code needs to be provided, too.
4994 #
4995 # And then there's "--enable-targets=all"....
4996 #
4997 # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
4998
4999 formats="${obj_format}"
5000 emfiles=""
5001 EMULATIONS=""
5002 _gas_uniq_list="$emulations"
5003 _gas_uniq_newlist=""
5004 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5005   case $_gas_uniq_i in
5006   _gas_uniq_dummy) ;;
5007   *) case " $_gas_uniq_newlist " in
5008        *" $_gas_uniq_i "*) ;;
5009        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5010      esac ;;
5011   esac
5012 done
5013 emulations=$_gas_uniq_newlist
5014
5015 for em in . $emulations ; do
5016   case $em in
5017     .)  continue ;;
5018     mipsbelf | mipslelf | mipself)
5019         fmt=elf   file=mipself ;;
5020     mipsbecoff | mipslecoff | mipsecoff)
5021         fmt=ecoff file=mipsecoff ;;
5022     *coff)
5023         fmt=coff  file=$em ;;
5024     *aout)
5025         fmt=aout file=$em ;;
5026     *elf)
5027         fmt=elf file=$em ;;
5028   esac
5029   formats="$formats $fmt"
5030   emfiles="$emfiles e-$file.o"
5031   EMULATIONS="$EMULATIONS &$em,"
5032 done
5033 _gas_uniq_list="$formats"
5034 _gas_uniq_newlist=""
5035 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5036   case $_gas_uniq_i in
5037   _gas_uniq_dummy) ;;
5038   *) case " $_gas_uniq_newlist " in
5039        *" $_gas_uniq_i "*) ;;
5040        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5041      esac ;;
5042   esac
5043 done
5044 formats=$_gas_uniq_newlist
5045
5046 _gas_uniq_list="$emfiles"
5047 _gas_uniq_newlist=""
5048 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
5049   case $_gas_uniq_i in
5050   _gas_uniq_dummy) ;;
5051   *) case " $_gas_uniq_newlist " in
5052        *" $_gas_uniq_i "*) ;;
5053        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
5054      esac ;;
5055   esac
5056 done
5057 emfiles=$_gas_uniq_newlist
5058
5059 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
5060   for fmt in $formats ; do
5061     case $fmt in
5062       aout)
5063 cat >>confdefs.h <<\_ACEOF
5064 #define OBJ_MAYBE_AOUT 1
5065 _ACEOF
5066    ;;
5067       bout)
5068 cat >>confdefs.h <<\_ACEOF
5069 #define OBJ_MAYBE_BOUT 1
5070 _ACEOF
5071    ;;
5072       coff)
5073 cat >>confdefs.h <<\_ACEOF
5074 #define OBJ_MAYBE_COFF 1
5075 _ACEOF
5076     ;;
5077       ecoff)
5078 cat >>confdefs.h <<\_ACEOF
5079 #define OBJ_MAYBE_ECOFF 1
5080 _ACEOF
5081    ;;
5082       elf)
5083 cat >>confdefs.h <<\_ACEOF
5084 #define OBJ_MAYBE_ELF 1
5085 _ACEOF
5086      ;;
5087       generic)
5088 cat >>confdefs.h <<\_ACEOF
5089 #define OBJ_MAYBE_GENERIC 1
5090 _ACEOF
5091  ;;
5092       som)
5093 cat >>confdefs.h <<\_ACEOF
5094 #define OBJ_MAYBE_SOM 1
5095 _ACEOF
5096      ;;
5097     esac
5098     extra_objects="$extra_objects obj-$fmt.o"
5099   done
5100   obj_format=multi
5101 fi
5102 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
5103   DEFAULT_EMULATION=`set . $emulations ; echo $2`
5104   # e-mips* has more than one emulation per file, e-i386* has just one at the
5105   # moment.  If only one emulation is specified, then don't define
5106   # USE_EMULATIONS or include any of the e-files as they will only be bloat.
5107   case "${obj_format}${emfiles}" in
5108     multi* | *mips*)
5109       extra_objects="$extra_objects $emfiles"
5110
5111 cat >>confdefs.h <<\_ACEOF
5112 #define USE_EMULATIONS 1
5113 _ACEOF
5114  ;;
5115   esac
5116 fi
5117
5118
5119 cat >>confdefs.h <<_ACEOF
5120 #define EMULATIONS $EMULATIONS
5121 _ACEOF
5122
5123
5124 cat >>confdefs.h <<_ACEOF
5125 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
5126 _ACEOF
5127
5128
5129 reject_dev_configs=yes
5130
5131 case ${reject_dev_configs}-${dev} in
5132   yes-yes) # Oops.
5133     { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5134 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5135    { (exit 1); exit 1; }; }
5136     ;;
5137 esac
5138
5139
5140
5141
5142
5143
5144
5145 # do we need the opcodes library?
5146 case "${need_opcodes}" in
5147 yes)
5148   OPCODES_LIB=../opcodes/libopcodes.la
5149   ;;
5150 esac
5151
5152
5153
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define TARGET_ALIAS "${target_alias}"
5157 _ACEOF
5158
5159
5160 cat >>confdefs.h <<_ACEOF
5161 #define TARGET_CANONICAL "${target}"
5162 _ACEOF
5163
5164
5165 cat >>confdefs.h <<_ACEOF
5166 #define TARGET_CPU "${target_cpu}"
5167 _ACEOF
5168
5169
5170 cat >>confdefs.h <<_ACEOF
5171 #define TARGET_VENDOR "${target_vendor}"
5172 _ACEOF
5173
5174
5175 cat >>confdefs.h <<_ACEOF
5176 #define TARGET_OS "${target_os}"
5177 _ACEOF
5178
5179
5180 ac_ext=c
5181 ac_cpp='$CPP $CPPFLAGS'
5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185 if test -n "$ac_tool_prefix"; then
5186   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5187 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5188 echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190 if test "${ac_cv_prog_CC+set}" = set; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   if test -n "$CC"; then
5194   ac_cv_prog_CC="$CC" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201   for ac_exec_ext in '' $ac_executable_extensions; do
5202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208 done
5209
5210 fi
5211 fi
5212 CC=$ac_cv_prog_CC
5213 if test -n "$CC"; then
5214   echo "$as_me:$LINENO: result: $CC" >&5
5215 echo "${ECHO_T}$CC" >&6
5216 else
5217   echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6
5219 fi
5220
5221 fi
5222 if test -z "$ac_cv_prog_CC"; then
5223   ac_ct_CC=$CC
5224   # Extract the first word of "gcc", so it can be a program name with args.
5225 set dummy gcc; ac_word=$2
5226 echo "$as_me:$LINENO: checking for $ac_word" >&5
5227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   if test -n "$ac_ct_CC"; then
5232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241     ac_cv_prog_ac_ct_CC="gcc"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247
5248 fi
5249 fi
5250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5251 if test -n "$ac_ct_CC"; then
5252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5253 echo "${ECHO_T}$ac_ct_CC" >&6
5254 else
5255   echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5257 fi
5258
5259   CC=$ac_ct_CC
5260 else
5261   CC="$ac_cv_prog_CC"
5262 fi
5263
5264 if test -z "$CC"; then
5265   if test -n "$ac_tool_prefix"; then
5266   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5267 set dummy ${ac_tool_prefix}cc; ac_word=$2
5268 echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5270 if test "${ac_cv_prog_CC+set}" = set; then
5271   echo $ECHO_N "(cached) $ECHO_C" >&6
5272 else
5273   if test -n "$CC"; then
5274   ac_cv_prog_CC="$CC" # Let the user override the test.
5275 else
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281   for ac_exec_ext in '' $ac_executable_extensions; do
5282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5283     ac_cv_prog_CC="${ac_tool_prefix}cc"
5284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285     break 2
5286   fi
5287 done
5288 done
5289
5290 fi
5291 fi
5292 CC=$ac_cv_prog_CC
5293 if test -n "$CC"; then
5294   echo "$as_me:$LINENO: result: $CC" >&5
5295 echo "${ECHO_T}$CC" >&6
5296 else
5297   echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5299 fi
5300
5301 fi
5302 if test -z "$ac_cv_prog_CC"; then
5303   ac_ct_CC=$CC
5304   # Extract the first word of "cc", so it can be a program name with args.
5305 set dummy cc; ac_word=$2
5306 echo "$as_me:$LINENO: checking for $ac_word" >&5
5307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   if test -n "$ac_ct_CC"; then
5312   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5313 else
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319   for ac_exec_ext in '' $ac_executable_extensions; do
5320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5321     ac_cv_prog_ac_ct_CC="cc"
5322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323     break 2
5324   fi
5325 done
5326 done
5327
5328 fi
5329 fi
5330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5331 if test -n "$ac_ct_CC"; then
5332   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5333 echo "${ECHO_T}$ac_ct_CC" >&6
5334 else
5335   echo "$as_me:$LINENO: result: no" >&5
5336 echo "${ECHO_T}no" >&6
5337 fi
5338
5339   CC=$ac_ct_CC
5340 else
5341   CC="$ac_cv_prog_CC"
5342 fi
5343
5344 fi
5345 if test -z "$CC"; then
5346   # Extract the first word of "cc", so it can be a program name with args.
5347 set dummy cc; ac_word=$2
5348 echo "$as_me:$LINENO: checking for $ac_word" >&5
5349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5350 if test "${ac_cv_prog_CC+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   if test -n "$CC"; then
5354   ac_cv_prog_CC="$CC" # Let the user override the test.
5355 else
5356   ac_prog_rejected=no
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   test -z "$as_dir" && as_dir=.
5362   for ac_exec_ext in '' $ac_executable_extensions; do
5363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5365        ac_prog_rejected=yes
5366        continue
5367      fi
5368     ac_cv_prog_CC="cc"
5369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373 done
5374
5375 if test $ac_prog_rejected = yes; then
5376   # We found a bogon in the path, so make sure we never use it.
5377   set dummy $ac_cv_prog_CC
5378   shift
5379   if test $# != 0; then
5380     # We chose a different compiler from the bogus one.
5381     # However, it has the same basename, so the bogon will be chosen
5382     # first if we set CC to just the basename; use the full file name.
5383     shift
5384     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5385   fi
5386 fi
5387 fi
5388 fi
5389 CC=$ac_cv_prog_CC
5390 if test -n "$CC"; then
5391   echo "$as_me:$LINENO: result: $CC" >&5
5392 echo "${ECHO_T}$CC" >&6
5393 else
5394   echo "$as_me:$LINENO: result: no" >&5
5395 echo "${ECHO_T}no" >&6
5396 fi
5397
5398 fi
5399 if test -z "$CC"; then
5400   if test -n "$ac_tool_prefix"; then
5401   for ac_prog in cl
5402   do
5403     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5407 if test "${ac_cv_prog_CC+set}" = set; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   if test -n "$CC"; then
5411   ac_cv_prog_CC="$CC" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418   for ac_exec_ext in '' $ac_executable_extensions; do
5419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425 done
5426
5427 fi
5428 fi
5429 CC=$ac_cv_prog_CC
5430 if test -n "$CC"; then
5431   echo "$as_me:$LINENO: result: $CC" >&5
5432 echo "${ECHO_T}$CC" >&6
5433 else
5434   echo "$as_me:$LINENO: result: no" >&5
5435 echo "${ECHO_T}no" >&6
5436 fi
5437
5438     test -n "$CC" && break
5439   done
5440 fi
5441 if test -z "$CC"; then
5442   ac_ct_CC=$CC
5443   for ac_prog in cl
5444 do
5445   # Extract the first word of "$ac_prog", so it can be a program name with args.
5446 set dummy $ac_prog; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   if test -n "$ac_ct_CC"; then
5453   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460   for ac_exec_ext in '' $ac_executable_extensions; do
5461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462     ac_cv_prog_ac_ct_CC="$ac_prog"
5463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467 done
5468
5469 fi
5470 fi
5471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5472 if test -n "$ac_ct_CC"; then
5473   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5474 echo "${ECHO_T}$ac_ct_CC" >&6
5475 else
5476   echo "$as_me:$LINENO: result: no" >&5
5477 echo "${ECHO_T}no" >&6
5478 fi
5479
5480   test -n "$ac_ct_CC" && break
5481 done
5482
5483   CC=$ac_ct_CC
5484 fi
5485
5486 fi
5487
5488
5489 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5490 See \`config.log' for more details." >&5
5491 echo "$as_me: error: no acceptable C compiler found in \$PATH
5492 See \`config.log' for more details." >&2;}
5493    { (exit 1); exit 1; }; }
5494
5495 # Provide some information about the compiler.
5496 echo "$as_me:$LINENO:" \
5497      "checking for C compiler version" >&5
5498 ac_compiler=`set X $ac_compile; echo $2`
5499 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5500   (eval $ac_compiler --version </dev/null >&5) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }
5504 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5505   (eval $ac_compiler -v </dev/null >&5) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }
5509 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5510   (eval $ac_compiler -V </dev/null >&5) 2>&5
5511   ac_status=$?
5512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513   (exit $ac_status); }
5514
5515 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5516 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5517 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526
5527 int
5528 main ()
5529 {
5530 #ifndef __GNUC__
5531        choke me
5532 #endif
5533
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540   (eval $ac_compile) 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -z "$ac_c_werror_flag"
5548                          || test ! -s conftest.err'
5549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550   (eval $ac_try) 2>&5
5551   ac_status=$?
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); }; } &&
5554          { ac_try='test -s conftest.$ac_objext'
5555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556   (eval $ac_try) 2>&5
5557   ac_status=$?
5558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); }; }; then
5560   ac_compiler_gnu=yes
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 ac_compiler_gnu=no
5566 fi
5567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5569
5570 fi
5571 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5572 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5573 GCC=`test $ac_compiler_gnu = yes && echo yes`
5574 ac_test_CFLAGS=${CFLAGS+set}
5575 ac_save_CFLAGS=$CFLAGS
5576 CFLAGS="-g"
5577 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5578 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5579 if test "${ac_cv_prog_cc_g+set}" = set; then
5580   echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582   cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h.  */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h.  */
5588
5589 int
5590 main ()
5591 {
5592
5593   ;
5594   return 0;
5595 }
5596 _ACEOF
5597 rm -f conftest.$ac_objext
5598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599   (eval $ac_compile) 2>conftest.er1
5600   ac_status=$?
5601   grep -v '^ *+' conftest.er1 >conftest.err
5602   rm -f conftest.er1
5603   cat conftest.err >&5
5604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605   (exit $ac_status); } &&
5606          { ac_try='test -z "$ac_c_werror_flag"
5607                          || test ! -s conftest.err'
5608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; } &&
5613          { ac_try='test -s conftest.$ac_objext'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; }; then
5619   ac_cv_prog_cc_g=yes
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624 ac_cv_prog_cc_g=no
5625 fi
5626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5629 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5630 if test "$ac_test_CFLAGS" = set; then
5631   CFLAGS=$ac_save_CFLAGS
5632 elif test $ac_cv_prog_cc_g = yes; then
5633   if test "$GCC" = yes; then
5634     CFLAGS="-g -O2"
5635   else
5636     CFLAGS="-g"
5637   fi
5638 else
5639   if test "$GCC" = yes; then
5640     CFLAGS="-O2"
5641   else
5642     CFLAGS=
5643   fi
5644 fi
5645 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5646 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5647 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   ac_cv_prog_cc_stdc=no
5651 ac_save_CC=$CC
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 #include <stdarg.h>
5659 #include <stdio.h>
5660 #include <sys/types.h>
5661 #include <sys/stat.h>
5662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5663 struct buf { int x; };
5664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5665 static char *e (p, i)
5666      char **p;
5667      int i;
5668 {
5669   return p[i];
5670 }
5671 static char *f (char * (*g) (char **, int), char **p, ...)
5672 {
5673   char *s;
5674   va_list v;
5675   va_start (v,p);
5676   s = g (p, va_arg (v,int));
5677   va_end (v);
5678   return s;
5679 }
5680
5681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5682    function prototypes and stuff, but not '\xHH' hex character constants.
5683    These don't provoke an error unfortunately, instead are silently treated
5684    as 'x'.  The following induces an error, until -std1 is added to get
5685    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5686    array size at least.  It's necessary to write '\x00'==0 to get something
5687    that's true only with -std1.  */
5688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5689
5690 int test (int i, double x);
5691 struct s1 {int (*f) (int a);};
5692 struct s2 {int (*f) (double a);};
5693 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5694 int argc;
5695 char **argv;
5696 int
5697 main ()
5698 {
5699 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 # Don't try gcc -ansi; that turns off useful extensions and
5705 # breaks some systems' header files.
5706 # AIX                   -qlanglvl=ansi
5707 # Ultrix and OSF/1      -std1
5708 # HP-UX 10.20 and later -Ae
5709 # HP-UX older versions  -Aa -D_HPUX_SOURCE
5710 # SVR4                  -Xc -D__EXTENSIONS__
5711 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5712 do
5713   CC="$ac_save_CC $ac_arg"
5714   rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716   (eval $ac_compile) 2>conftest.er1
5717   ac_status=$?
5718   grep -v '^ *+' conftest.er1 >conftest.err
5719   rm -f conftest.er1
5720   cat conftest.err >&5
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -z "$ac_c_werror_flag"
5724                          || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest.$ac_objext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_cv_prog_cc_stdc=$ac_arg
5737 break
5738 else
5739   echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5741
5742 fi
5743 rm -f conftest.err conftest.$ac_objext
5744 done
5745 rm -f conftest.$ac_ext conftest.$ac_objext
5746 CC=$ac_save_CC
5747
5748 fi
5749
5750 case "x$ac_cv_prog_cc_stdc" in
5751   x|xno)
5752     echo "$as_me:$LINENO: result: none needed" >&5
5753 echo "${ECHO_T}none needed" >&6 ;;
5754   *)
5755     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5756 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5757     CC="$CC $ac_cv_prog_cc_stdc" ;;
5758 esac
5759
5760 # Some people use a C++ compiler to compile C.  Since we use `exit',
5761 # in C++ we need to declare it.  In case someone uses the same compiler
5762 # for both compiling C and C++ we need to have the C++ compiler decide
5763 # the declaration of exit, since it's the most demanding environment.
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #ifndef __cplusplus
5766   choke me
5767 #endif
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771   (eval $ac_compile) 2>conftest.er1
5772   ac_status=$?
5773   grep -v '^ *+' conftest.er1 >conftest.err
5774   rm -f conftest.er1
5775   cat conftest.err >&5
5776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777   (exit $ac_status); } &&
5778          { ac_try='test -z "$ac_c_werror_flag"
5779                          || test ! -s conftest.err'
5780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781   (eval $ac_try) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); }; } &&
5785          { ac_try='test -s conftest.$ac_objext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   for ac_declaration in \
5792    '' \
5793    'extern "C" void std::exit (int) throw (); using std::exit;' \
5794    'extern "C" void std::exit (int); using std::exit;' \
5795    'extern "C" void exit (int) throw ();' \
5796    'extern "C" void exit (int);' \
5797    'void exit (int);'
5798 do
5799   cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h.  */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h.  */
5805 $ac_declaration
5806 #include <stdlib.h>
5807 int
5808 main ()
5809 {
5810 exit (42);
5811   ;
5812   return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5817   (eval $ac_compile) 2>conftest.er1
5818   ac_status=$?
5819   grep -v '^ *+' conftest.er1 >conftest.err
5820   rm -f conftest.er1
5821   cat conftest.err >&5
5822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823   (exit $ac_status); } &&
5824          { ac_try='test -z "$ac_c_werror_flag"
5825                          || test ! -s conftest.err'
5826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827   (eval $ac_try) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   :
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 continue
5843 fi
5844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5845   cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 $ac_declaration
5852 int
5853 main ()
5854 {
5855 exit (42);
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862   (eval $ac_compile) 2>conftest.er1
5863   ac_status=$?
5864   grep -v '^ *+' conftest.er1 >conftest.err
5865   rm -f conftest.er1
5866   cat conftest.err >&5
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); } &&
5869          { ac_try='test -z "$ac_c_werror_flag"
5870                          || test ! -s conftest.err'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; } &&
5876          { ac_try='test -s conftest.$ac_objext'
5877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878   (eval $ac_try) 2>&5
5879   ac_status=$?
5880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881   (exit $ac_status); }; }; then
5882   break
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 fi
5888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 done
5890 rm -f conftest*
5891 if test -n "$ac_declaration"; then
5892   echo '#ifdef __cplusplus' >>confdefs.h
5893   echo $ac_declaration      >>confdefs.h
5894   echo '#endif'             >>confdefs.h
5895 fi
5896
5897 else
5898   echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 fi
5902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5903 ac_ext=c
5904 ac_cpp='$CPP $CPPFLAGS'
5905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5908
5909
5910 for ac_prog in 'bison -y' byacc
5911 do
5912   # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5916 if test "${ac_cv_prog_YACC+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   if test -n "$YACC"; then
5920   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929     ac_cv_prog_YACC="$ac_prog"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935
5936 fi
5937 fi
5938 YACC=$ac_cv_prog_YACC
5939 if test -n "$YACC"; then
5940   echo "$as_me:$LINENO: result: $YACC" >&5
5941 echo "${ECHO_T}$YACC" >&6
5942 else
5943   echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6
5945 fi
5946
5947   test -n "$YACC" && break
5948 done
5949 test -n "$YACC" || YACC="yacc"
5950
5951 for ac_prog in flex lex
5952 do
5953   # Extract the first word of "$ac_prog", so it can be a program name with args.
5954 set dummy $ac_prog; ac_word=$2
5955 echo "$as_me:$LINENO: checking for $ac_word" >&5
5956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5957 if test "${ac_cv_prog_LEX+set}" = set; then
5958   echo $ECHO_N "(cached) $ECHO_C" >&6
5959 else
5960   if test -n "$LEX"; then
5961   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5962 else
5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH
5965 do
5966   IFS=$as_save_IFS
5967   test -z "$as_dir" && as_dir=.
5968   for ac_exec_ext in '' $ac_executable_extensions; do
5969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5970     ac_cv_prog_LEX="$ac_prog"
5971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972     break 2
5973   fi
5974 done
5975 done
5976
5977 fi
5978 fi
5979 LEX=$ac_cv_prog_LEX
5980 if test -n "$LEX"; then
5981   echo "$as_me:$LINENO: result: $LEX" >&5
5982 echo "${ECHO_T}$LEX" >&6
5983 else
5984   echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5986 fi
5987
5988   test -n "$LEX" && break
5989 done
5990 test -n "$LEX" || LEX=":"
5991
5992 if test -z "$LEXLIB"
5993 then
5994   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5995 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5996 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   ac_check_lib_save_LIBS=$LIBS
6000 LIBS="-lfl  $LIBS"
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007
6008 /* Override any gcc2 internal prototype to avoid an error.  */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 /* We use char because int might match the return type of a gcc2
6013    builtin and then its argument prototype would still apply.  */
6014 char yywrap ();
6015 int
6016 main ()
6017 {
6018 yywrap ();
6019   ;
6020   return 0;
6021 }
6022 _ACEOF
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025   (eval $ac_link) 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } &&
6032          { ac_try='test -z "$ac_c_werror_flag"
6033                          || test ! -s conftest.err'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; } &&
6039          { ac_try='test -s conftest$ac_exeext'
6040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041   (eval $ac_try) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); }; }; then
6045   ac_cv_lib_fl_yywrap=yes
6046 else
6047   echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 ac_cv_lib_fl_yywrap=no
6051 fi
6052 rm -f conftest.err conftest.$ac_objext \
6053       conftest$ac_exeext conftest.$ac_ext
6054 LIBS=$ac_check_lib_save_LIBS
6055 fi
6056 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6057 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
6058 if test $ac_cv_lib_fl_yywrap = yes; then
6059   LEXLIB="-lfl"
6060 else
6061   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6062 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
6063 if test "${ac_cv_lib_l_yywrap+set}" = set; then
6064   echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066   ac_check_lib_save_LIBS=$LIBS
6067 LIBS="-ll  $LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074
6075 /* Override any gcc2 internal prototype to avoid an error.  */
6076 #ifdef __cplusplus
6077 extern "C"
6078 #endif
6079 /* We use char because int might match the return type of a gcc2
6080    builtin and then its argument prototype would still apply.  */
6081 char yywrap ();
6082 int
6083 main ()
6084 {
6085 yywrap ();
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6092   (eval $ac_link) 2>conftest.er1
6093   ac_status=$?
6094   grep -v '^ *+' conftest.er1 >conftest.err
6095   rm -f conftest.er1
6096   cat conftest.err >&5
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); } &&
6099          { ac_try='test -z "$ac_c_werror_flag"
6100                          || test ! -s conftest.err'
6101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102   (eval $ac_try) 2>&5
6103   ac_status=$?
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); }; } &&
6106          { ac_try='test -s conftest$ac_exeext'
6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; }; then
6112   ac_cv_lib_l_yywrap=yes
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_cv_lib_l_yywrap=no
6118 fi
6119 rm -f conftest.err conftest.$ac_objext \
6120       conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6122 fi
6123 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6124 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6125 if test $ac_cv_lib_l_yywrap = yes; then
6126   LEXLIB="-ll"
6127 fi
6128
6129 fi
6130
6131 fi
6132
6133 if test "x$LEX" != "x:"; then
6134   echo "$as_me:$LINENO: checking lex output file root" >&5
6135 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6136 if test "${ac_cv_prog_lex_root+set}" = set; then
6137   echo $ECHO_N "(cached) $ECHO_C" >&6
6138 else
6139   # The minimal lex program is just a single line: %%.  But some broken lexes
6140 # (Solaris, I think it was) want two %% lines, so accommodate them.
6141 cat >conftest.l <<_ACEOF
6142 %%
6143 %%
6144 _ACEOF
6145 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6146   (eval $LEX conftest.l) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }
6150 if test -f lex.yy.c; then
6151   ac_cv_prog_lex_root=lex.yy
6152 elif test -f lexyy.c; then
6153   ac_cv_prog_lex_root=lexyy
6154 else
6155   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6156 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6157    { (exit 1); exit 1; }; }
6158 fi
6159 fi
6160 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6161 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6162 rm -f conftest.l
6163 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6164
6165 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6166 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6167 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   # POSIX says lex can declare yytext either as a pointer or an array; the
6171 # default is implementation-dependent. Figure out which it is, since
6172 # not all implementations provide the %pointer and %array declarations.
6173 ac_cv_prog_lex_yytext_pointer=no
6174 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6175 ac_save_LIBS=$LIBS
6176 LIBS="$LIBS $LEXLIB"
6177 cat >conftest.$ac_ext <<_ACEOF
6178 `cat $LEX_OUTPUT_ROOT.c`
6179 _ACEOF
6180 rm -f conftest.$ac_objext conftest$ac_exeext
6181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6182   (eval $ac_link) 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } &&
6189          { ac_try='test -z "$ac_c_werror_flag"
6190                          || test ! -s conftest.err'
6191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6192   (eval $ac_try) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_prog_lex_yytext_pointer=yes
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 fi
6208 rm -f conftest.err conftest.$ac_objext \
6209       conftest$ac_exeext conftest.$ac_ext
6210 LIBS=$ac_save_LIBS
6211 rm -f "${LEX_OUTPUT_ROOT}.c"
6212
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6215 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6216 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6217
6218 cat >>confdefs.h <<\_ACEOF
6219 #define YYTEXT_POINTER 1
6220 _ACEOF
6221
6222 fi
6223
6224 fi
6225 if test "$LEX" = :; then
6226   LEX=${am_missing_run}flex
6227 fi
6228
6229 ALL_LINGUAS="fr tr es rw"
6230 # If we haven't got the data from the intl directory,
6231 # assume NLS is disabled.
6232 USE_NLS=no
6233 LIBINTL=
6234 LIBINTL_DEP=
6235 INCINTL=
6236 XGETTEXT=
6237 GMSGFMT=
6238 POSUB=
6239
6240 if test -f  ../intl/config.intl; then
6241   .  ../intl/config.intl
6242 fi
6243 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6244 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6245 if test x"$USE_NLS" != xyes; then
6246   echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6
6248 else
6249   echo "$as_me:$LINENO: result: yes" >&5
6250 echo "${ECHO_T}yes" >&6
6251
6252 cat >>confdefs.h <<\_ACEOF
6253 #define ENABLE_NLS 1
6254 _ACEOF
6255
6256
6257   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
6258 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
6259   # Look for .po and .gmo files in the source directory.
6260   CATALOGS=
6261   XLINGUAS=
6262   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6263     # If there aren't any .gmo files the shell will give us the
6264     # literal string "../path/to/srcdir/po/*.gmo" which has to be
6265     # weeded out.
6266     case "$cat" in *\**)
6267       continue;;
6268     esac
6269     # The quadruple backslash is collapsed to a double backslash
6270     # by the backticks, then collapsed again by the double quotes,
6271     # leaving us with one backslash in the sed expression (right
6272     # before the dot that mustn't act as a wildcard).
6273     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6274     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6275     # The user is allowed to set LINGUAS to a list of languages to
6276     # install catalogs for.  If it's empty that means "all of them."
6277     if test "x$LINGUAS" = x; then
6278       CATALOGS="$CATALOGS $cat"
6279       XLINGUAS="$XLINGUAS $lang"
6280     else
6281       case "$LINGUAS" in *$lang*)
6282         CATALOGS="$CATALOGS $cat"
6283         XLINGUAS="$XLINGUAS $lang"
6284         ;;
6285       esac
6286     fi
6287   done
6288   LINGUAS="$XLINGUAS"
6289   echo "$as_me:$LINENO: result: $LINGUAS" >&5
6290 echo "${ECHO_T}$LINGUAS" >&6
6291
6292
6293     DATADIRNAME=share
6294
6295   INSTOBJEXT=.mo
6296
6297   GENCAT=gencat
6298
6299   CATOBJEXT=.gmo
6300
6301 fi
6302
6303         MKINSTALLDIRS=
6304   if test -n "$ac_aux_dir"; then
6305     case "$ac_aux_dir" in
6306       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
6307       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6308     esac
6309   fi
6310   if test -z "$MKINSTALLDIRS"; then
6311     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
6312   fi
6313
6314
6315
6316   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6317 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6318     # Check whether --enable-nls or --disable-nls was given.
6319 if test "${enable_nls+set}" = set; then
6320   enableval="$enable_nls"
6321   USE_NLS=$enableval
6322 else
6323   USE_NLS=yes
6324 fi;
6325   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6326 echo "${ECHO_T}$USE_NLS" >&6
6327
6328
6329
6330
6331
6332
6333 # Prepare PATH_SEPARATOR.
6334 # The user is always right.
6335 if test "${PATH_SEPARATOR+set}" != set; then
6336   echo "#! /bin/sh" >conf$$.sh
6337   echo  "exit 0"   >>conf$$.sh
6338   chmod +x conf$$.sh
6339   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6340     PATH_SEPARATOR=';'
6341   else
6342     PATH_SEPARATOR=:
6343   fi
6344   rm -f conf$$.sh
6345 fi
6346
6347 # Find out how to test for executable files. Don't use a zero-byte file,
6348 # as systems may use methods other than mode bits to determine executability.
6349 cat >conf$$.file <<_ASEOF
6350 #! /bin/sh
6351 exit 0
6352 _ASEOF
6353 chmod +x conf$$.file
6354 if test -x conf$$.file >/dev/null 2>&1; then
6355   ac_executable_p="test -x"
6356 else
6357   ac_executable_p="test -f"
6358 fi
6359 rm -f conf$$.file
6360
6361 # Extract the first word of "msgfmt", so it can be a program name with args.
6362 set dummy msgfmt; ac_word=$2
6363 echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6365 if test "${ac_cv_path_MSGFMT+set}" = set; then
6366   echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368   case "$MSGFMT" in
6369   [\\/]* | ?:[\\/]*)
6370     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6371     ;;
6372   *)
6373     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6374     for ac_dir in $PATH; do
6375       IFS="$ac_save_IFS"
6376       test -z "$ac_dir" && ac_dir=.
6377       for ac_exec_ext in '' $ac_executable_extensions; do
6378         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6379           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
6380      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6381             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6382             break 2
6383           fi
6384         fi
6385       done
6386     done
6387     IFS="$ac_save_IFS"
6388   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6389     ;;
6390 esac
6391 fi
6392 MSGFMT="$ac_cv_path_MSGFMT"
6393 if test "$MSGFMT" != ":"; then
6394   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6395 echo "${ECHO_T}$MSGFMT" >&6
6396 else
6397   echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6
6399 fi
6400
6401   # Extract the first word of "gmsgfmt", so it can be a program name with args.
6402 set dummy gmsgfmt; ac_word=$2
6403 echo "$as_me:$LINENO: checking for $ac_word" >&5
6404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6405 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   case $GMSGFMT in
6409   [\\/]* | ?:[\\/]*)
6410   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6411   ;;
6412   *)
6413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418   for ac_exec_ext in '' $ac_executable_extensions; do
6419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425 done
6426
6427   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6428   ;;
6429 esac
6430 fi
6431 GMSGFMT=$ac_cv_path_GMSGFMT
6432
6433 if test -n "$GMSGFMT"; then
6434   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6435 echo "${ECHO_T}$GMSGFMT" >&6
6436 else
6437   echo "$as_me:$LINENO: result: no" >&5
6438 echo "${ECHO_T}no" >&6
6439 fi
6440
6441
6442
6443 # Prepare PATH_SEPARATOR.
6444 # The user is always right.
6445 if test "${PATH_SEPARATOR+set}" != set; then
6446   echo "#! /bin/sh" >conf$$.sh
6447   echo  "exit 0"   >>conf$$.sh
6448   chmod +x conf$$.sh
6449   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6450     PATH_SEPARATOR=';'
6451   else
6452     PATH_SEPARATOR=:
6453   fi
6454   rm -f conf$$.sh
6455 fi
6456
6457 # Find out how to test for executable files. Don't use a zero-byte file,
6458 # as systems may use methods other than mode bits to determine executability.
6459 cat >conf$$.file <<_ASEOF
6460 #! /bin/sh
6461 exit 0
6462 _ASEOF
6463 chmod +x conf$$.file
6464 if test -x conf$$.file >/dev/null 2>&1; then
6465   ac_executable_p="test -x"
6466 else
6467   ac_executable_p="test -f"
6468 fi
6469 rm -f conf$$.file
6470
6471 # Extract the first word of "xgettext", so it can be a program name with args.
6472 set dummy xgettext; ac_word=$2
6473 echo "$as_me:$LINENO: checking for $ac_word" >&5
6474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6475 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6476   echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478   case "$XGETTEXT" in
6479   [\\/]* | ?:[\\/]*)
6480     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6481     ;;
6482   *)
6483     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6484     for ac_dir in $PATH; do
6485       IFS="$ac_save_IFS"
6486       test -z "$ac_dir" && ac_dir=.
6487       for ac_exec_ext in '' $ac_executable_extensions; do
6488         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6489           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6490      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6491             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6492             break 2
6493           fi
6494         fi
6495       done
6496     done
6497     IFS="$ac_save_IFS"
6498   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6499     ;;
6500 esac
6501 fi
6502 XGETTEXT="$ac_cv_path_XGETTEXT"
6503 if test "$XGETTEXT" != ":"; then
6504   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6505 echo "${ECHO_T}$XGETTEXT" >&6
6506 else
6507   echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 fi
6510
6511     rm -f messages.po
6512
6513
6514 # Prepare PATH_SEPARATOR.
6515 # The user is always right.
6516 if test "${PATH_SEPARATOR+set}" != set; then
6517   echo "#! /bin/sh" >conf$$.sh
6518   echo  "exit 0"   >>conf$$.sh
6519   chmod +x conf$$.sh
6520   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6521     PATH_SEPARATOR=';'
6522   else
6523     PATH_SEPARATOR=:
6524   fi
6525   rm -f conf$$.sh
6526 fi
6527
6528 # Find out how to test for executable files. Don't use a zero-byte file,
6529 # as systems may use methods other than mode bits to determine executability.
6530 cat >conf$$.file <<_ASEOF
6531 #! /bin/sh
6532 exit 0
6533 _ASEOF
6534 chmod +x conf$$.file
6535 if test -x conf$$.file >/dev/null 2>&1; then
6536   ac_executable_p="test -x"
6537 else
6538   ac_executable_p="test -f"
6539 fi
6540 rm -f conf$$.file
6541
6542 # Extract the first word of "msgmerge", so it can be a program name with args.
6543 set dummy msgmerge; ac_word=$2
6544 echo "$as_me:$LINENO: checking for $ac_word" >&5
6545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6547   echo $ECHO_N "(cached) $ECHO_C" >&6
6548 else
6549   case "$MSGMERGE" in
6550   [\\/]* | ?:[\\/]*)
6551     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6552     ;;
6553   *)
6554     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6555     for ac_dir in $PATH; do
6556       IFS="$ac_save_IFS"
6557       test -z "$ac_dir" && ac_dir=.
6558       for ac_exec_ext in '' $ac_executable_extensions; do
6559         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6560           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6561             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6562             break 2
6563           fi
6564         fi
6565       done
6566     done
6567     IFS="$ac_save_IFS"
6568   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6569     ;;
6570 esac
6571 fi
6572 MSGMERGE="$ac_cv_path_MSGMERGE"
6573 if test "$MSGMERGE" != ":"; then
6574   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6575 echo "${ECHO_T}$MSGMERGE" >&6
6576 else
6577   echo "$as_me:$LINENO: result: no" >&5
6578 echo "${ECHO_T}no" >&6
6579 fi
6580
6581
6582       if test "$GMSGFMT" != ":"; then
6583             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6584        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6585       : ;
6586     else
6587       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6588       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6589 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6590       GMSGFMT=":"
6591     fi
6592   fi
6593
6594       if test "$XGETTEXT" != ":"; then
6595             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6596        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6597       : ;
6598     else
6599       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6600 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6601       XGETTEXT=":"
6602     fi
6603         rm -f messages.po
6604   fi
6605
6606             ac_config_commands="$ac_config_commands default-1"
6607
6608
6609
6610 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6611 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6612     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6613 if test "${enable_maintainer_mode+set}" = set; then
6614   enableval="$enable_maintainer_mode"
6615   USE_MAINTAINER_MODE=$enableval
6616 else
6617   USE_MAINTAINER_MODE=no
6618 fi;
6619   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6620 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6621
6622
6623 if test $USE_MAINTAINER_MODE = yes; then
6624   MAINTAINER_MODE_TRUE=
6625   MAINTAINER_MODE_FALSE='#'
6626 else
6627   MAINTAINER_MODE_TRUE='#'
6628   MAINTAINER_MODE_FALSE=
6629 fi
6630
6631   MAINT=$MAINTAINER_MODE_TRUE
6632
6633
6634
6635
6636 if false; then
6637   GENINSRC_NEVER_TRUE=
6638   GENINSRC_NEVER_FALSE='#'
6639 else
6640   GENINSRC_NEVER_TRUE='#'
6641   GENINSRC_NEVER_FALSE=
6642 fi
6643
6644
6645
6646 ac_ext=c
6647 ac_cpp='$CPP $CPPFLAGS'
6648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6651 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6653 # On Suns, sometimes $CPP names a directory.
6654 if test -n "$CPP" && test -d "$CPP"; then
6655   CPP=
6656 fi
6657 if test -z "$CPP"; then
6658   if test "${ac_cv_prog_CPP+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661       # Double quotes because CPP needs to be expanded
6662     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6663     do
6664       ac_preproc_ok=false
6665 for ac_c_preproc_warn_flag in '' yes
6666 do
6667   # Use a header file that comes with gcc, so configuring glibc
6668   # with a fresh cross-compiler works.
6669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6670   # <limits.h> exists even on freestanding compilers.
6671   # On the NeXT, cc -E runs the code through the compiler's parser,
6672   # not just through cpp. "Syntax error" is here to catch this case.
6673   cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679 #ifdef __STDC__
6680 # include <limits.h>
6681 #else
6682 # include <assert.h>
6683 #endif
6684                      Syntax error
6685 _ACEOF
6686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } >/dev/null; then
6694   if test -s conftest.err; then
6695     ac_cpp_err=$ac_c_preproc_warn_flag
6696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6697   else
6698     ac_cpp_err=
6699   fi
6700 else
6701   ac_cpp_err=yes
6702 fi
6703 if test -z "$ac_cpp_err"; then
6704   :
6705 else
6706   echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6708
6709   # Broken: fails on valid input.
6710 continue
6711 fi
6712 rm -f conftest.err conftest.$ac_ext
6713
6714   # OK, works on sane cases.  Now check whether non-existent headers
6715   # can be detected and how.
6716   cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h.  */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h.  */
6722 #include <ac_nonexistent.h>
6723 _ACEOF
6724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6725   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6726   ac_status=$?
6727   grep -v '^ *+' conftest.er1 >conftest.err
6728   rm -f conftest.er1
6729   cat conftest.err >&5
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } >/dev/null; then
6732   if test -s conftest.err; then
6733     ac_cpp_err=$ac_c_preproc_warn_flag
6734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6735   else
6736     ac_cpp_err=
6737   fi
6738 else
6739   ac_cpp_err=yes
6740 fi
6741 if test -z "$ac_cpp_err"; then
6742   # Broken: success on invalid input.
6743 continue
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748   # Passes both tests.
6749 ac_preproc_ok=:
6750 break
6751 fi
6752 rm -f conftest.err conftest.$ac_ext
6753
6754 done
6755 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6756 rm -f conftest.err conftest.$ac_ext
6757 if $ac_preproc_ok; then
6758   break
6759 fi
6760
6761     done
6762     ac_cv_prog_CPP=$CPP
6763
6764 fi
6765   CPP=$ac_cv_prog_CPP
6766 else
6767   ac_cv_prog_CPP=$CPP
6768 fi
6769 echo "$as_me:$LINENO: result: $CPP" >&5
6770 echo "${ECHO_T}$CPP" >&6
6771 ac_preproc_ok=false
6772 for ac_c_preproc_warn_flag in '' yes
6773 do
6774   # Use a header file that comes with gcc, so configuring glibc
6775   # with a fresh cross-compiler works.
6776   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6777   # <limits.h> exists even on freestanding compilers.
6778   # On the NeXT, cc -E runs the code through the compiler's parser,
6779   # not just through cpp. "Syntax error" is here to catch this case.
6780   cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h.  */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h.  */
6786 #ifdef __STDC__
6787 # include <limits.h>
6788 #else
6789 # include <assert.h>
6790 #endif
6791                      Syntax error
6792 _ACEOF
6793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6794   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } >/dev/null; then
6801   if test -s conftest.err; then
6802     ac_cpp_err=$ac_c_preproc_warn_flag
6803     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6804   else
6805     ac_cpp_err=
6806   fi
6807 else
6808   ac_cpp_err=yes
6809 fi
6810 if test -z "$ac_cpp_err"; then
6811   :
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816   # Broken: fails on valid input.
6817 continue
6818 fi
6819 rm -f conftest.err conftest.$ac_ext
6820
6821   # OK, works on sane cases.  Now check whether non-existent headers
6822   # can be detected and how.
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 #include <ac_nonexistent.h>
6830 _ACEOF
6831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6833   ac_status=$?
6834   grep -v '^ *+' conftest.er1 >conftest.err
6835   rm -f conftest.er1
6836   cat conftest.err >&5
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } >/dev/null; then
6839   if test -s conftest.err; then
6840     ac_cpp_err=$ac_c_preproc_warn_flag
6841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6842   else
6843     ac_cpp_err=
6844   fi
6845 else
6846   ac_cpp_err=yes
6847 fi
6848 if test -z "$ac_cpp_err"; then
6849   # Broken: success on invalid input.
6850 continue
6851 else
6852   echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855   # Passes both tests.
6856 ac_preproc_ok=:
6857 break
6858 fi
6859 rm -f conftest.err conftest.$ac_ext
6860
6861 done
6862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6863 rm -f conftest.err conftest.$ac_ext
6864 if $ac_preproc_ok; then
6865   :
6866 else
6867   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6868 See \`config.log' for more details." >&5
6869 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6870 See \`config.log' for more details." >&2;}
6871    { (exit 1); exit 1; }; }
6872 fi
6873
6874 ac_ext=c
6875 ac_cpp='$CPP $CPPFLAGS'
6876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6879
6880
6881 echo "$as_me:$LINENO: checking for egrep" >&5
6882 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6883 if test "${ac_cv_prog_egrep+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6887     then ac_cv_prog_egrep='grep -E'
6888     else ac_cv_prog_egrep='egrep'
6889     fi
6890 fi
6891 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6892 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6893  EGREP=$ac_cv_prog_egrep
6894
6895
6896 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6897 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6898 if test "${ac_cv_header_stdc+set}" = set; then
6899   echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901   cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 #include <stdlib.h>
6908 #include <stdarg.h>
6909 #include <string.h>
6910 #include <float.h>
6911
6912 int
6913 main ()
6914 {
6915
6916   ;
6917   return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6922   (eval $ac_compile) 2>conftest.er1
6923   ac_status=$?
6924   grep -v '^ *+' conftest.er1 >conftest.err
6925   rm -f conftest.er1
6926   cat conftest.err >&5
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } &&
6929          { ac_try='test -z "$ac_c_werror_flag"
6930                          || test ! -s conftest.err'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; } &&
6936          { ac_try='test -s conftest.$ac_objext'
6937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938   (eval $ac_try) 2>&5
6939   ac_status=$?
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); }; }; then
6942   ac_cv_header_stdc=yes
6943 else
6944   echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_cv_header_stdc=no
6948 fi
6949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6950
6951 if test $ac_cv_header_stdc = yes; then
6952   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 #include <string.h>
6960
6961 _ACEOF
6962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963   $EGREP "memchr" >/dev/null 2>&1; then
6964   :
6965 else
6966   ac_cv_header_stdc=no
6967 fi
6968 rm -f conftest*
6969
6970 fi
6971
6972 if test $ac_cv_header_stdc = yes; then
6973   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6974   cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h.  */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h.  */
6980 #include <stdlib.h>
6981
6982 _ACEOF
6983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6984   $EGREP "free" >/dev/null 2>&1; then
6985   :
6986 else
6987   ac_cv_header_stdc=no
6988 fi
6989 rm -f conftest*
6990
6991 fi
6992
6993 if test $ac_cv_header_stdc = yes; then
6994   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6995   if test "$cross_compiling" = yes; then
6996   :
6997 else
6998   cat >conftest.$ac_ext <<_ACEOF
6999 /* confdefs.h.  */
7000 _ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h.  */
7004 #include <ctype.h>
7005 #if ((' ' & 0x0FF) == 0x020)
7006 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7007 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7008 #else
7009 # define ISLOWER(c) \
7010                    (('a' <= (c) && (c) <= 'i') \
7011                      || ('j' <= (c) && (c) <= 'r') \
7012                      || ('s' <= (c) && (c) <= 'z'))
7013 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7014 #endif
7015
7016 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7017 int
7018 main ()
7019 {
7020   int i;
7021   for (i = 0; i < 256; i++)
7022     if (XOR (islower (i), ISLOWER (i))
7023         || toupper (i) != TOUPPER (i))
7024       exit(2);
7025   exit (0);
7026 }
7027 _ACEOF
7028 rm -f conftest$ac_exeext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7030   (eval $ac_link) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035   (eval $ac_try) 2>&5
7036   ac_status=$?
7037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038   (exit $ac_status); }; }; then
7039   :
7040 else
7041   echo "$as_me: program exited with status $ac_status" >&5
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045 ( exit $ac_status )
7046 ac_cv_header_stdc=no
7047 fi
7048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7049 fi
7050 fi
7051 fi
7052 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7053 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7054 if test $ac_cv_header_stdc = yes; then
7055
7056 cat >>confdefs.h <<\_ACEOF
7057 #define STDC_HEADERS 1
7058 _ACEOF
7059
7060 fi
7061
7062 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7073                   inttypes.h stdint.h unistd.h
7074 do
7075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076 echo "$as_me:$LINENO: checking for $ac_header" >&5
7077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   cat >conftest.$ac_ext <<_ACEOF
7082 /* confdefs.h.  */
7083 _ACEOF
7084 cat confdefs.h >>conftest.$ac_ext
7085 cat >>conftest.$ac_ext <<_ACEOF
7086 /* end confdefs.h.  */
7087 $ac_includes_default
7088
7089 #include <$ac_header>
7090 _ACEOF
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093   (eval $ac_compile) 2>conftest.er1
7094   ac_status=$?
7095   grep -v '^ *+' conftest.er1 >conftest.err
7096   rm -f conftest.er1
7097   cat conftest.err >&5
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } &&
7100          { ac_try='test -z "$ac_c_werror_flag"
7101                          || test ! -s conftest.err'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; } &&
7107          { ac_try='test -s conftest.$ac_objext'
7108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109   (eval $ac_try) 2>&5
7110   ac_status=$?
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); }; }; then
7113   eval "$as_ac_Header=yes"
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118 eval "$as_ac_Header=no"
7119 fi
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 fi
7122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7125   cat >>confdefs.h <<_ACEOF
7126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7127 _ACEOF
7128
7129 fi
7130
7131 done
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
7144 do
7145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147   echo "$as_me:$LINENO: checking for $ac_header" >&5
7148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 fi
7152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7154 else
7155   # Is the header compilable?
7156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7158 cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164 $ac_includes_default
7165 #include <$ac_header>
7166 _ACEOF
7167 rm -f conftest.$ac_objext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169   (eval $ac_compile) 2>conftest.er1
7170   ac_status=$?
7171   grep -v '^ *+' conftest.er1 >conftest.err
7172   rm -f conftest.er1
7173   cat conftest.err >&5
7174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175   (exit $ac_status); } &&
7176          { ac_try='test -z "$ac_c_werror_flag"
7177                          || test ! -s conftest.err'
7178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179   (eval $ac_try) 2>&5
7180   ac_status=$?
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); }; } &&
7183          { ac_try='test -s conftest.$ac_objext'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; }; then
7189   ac_header_compiler=yes
7190 else
7191   echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194 ac_header_compiler=no
7195 fi
7196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7198 echo "${ECHO_T}$ac_header_compiler" >&6
7199
7200 # Is the header present?
7201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209 #include <$ac_header>
7210 _ACEOF
7211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7213   ac_status=$?
7214   grep -v '^ *+' conftest.er1 >conftest.err
7215   rm -f conftest.er1
7216   cat conftest.err >&5
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); } >/dev/null; then
7219   if test -s conftest.err; then
7220     ac_cpp_err=$ac_c_preproc_warn_flag
7221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7222   else
7223     ac_cpp_err=
7224   fi
7225 else
7226   ac_cpp_err=yes
7227 fi
7228 if test -z "$ac_cpp_err"; then
7229   ac_header_preproc=yes
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234   ac_header_preproc=no
7235 fi
7236 rm -f conftest.err conftest.$ac_ext
7237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7238 echo "${ECHO_T}$ac_header_preproc" >&6
7239
7240 # So?  What about this header?
7241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7242   yes:no: )
7243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7247     ac_header_preproc=yes
7248     ;;
7249   no:yes:* )
7250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7262     (
7263       cat <<\_ASBOX
7264 ## ------------------------------------------ ##
7265 ## Report this to the AC_PACKAGE_NAME lists.  ##
7266 ## ------------------------------------------ ##
7267 _ASBOX
7268     ) |
7269       sed "s/^/$as_me: WARNING:     /" >&2
7270     ;;
7271 esac
7272 echo "$as_me:$LINENO: checking for $ac_header" >&5
7273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7275   echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277   eval "$as_ac_Header=\$ac_header_preproc"
7278 fi
7279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7281
7282 fi
7283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7284   cat >>confdefs.h <<_ACEOF
7285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7286 _ACEOF
7287
7288 fi
7289
7290 done
7291
7292
7293 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
7294 # people who are not cross-compiling but are compiling cross-assemblers.
7295 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
7296 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
7297 if test "${host}" = "${target}"; then
7298   cross_gas=no
7299 else
7300   cross_gas=yes
7301
7302 cat >>confdefs.h <<\_ACEOF
7303 #define CROSS_COMPILE 1
7304 _ACEOF
7305
7306 fi
7307 echo "$as_me:$LINENO: result: $cross_gas" >&5
7308 echo "${ECHO_T}$cross_gas" >&6
7309
7310 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7311 # for constant arguments.  Useless!
7312 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7313 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7314 if test "${ac_cv_working_alloca_h+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   cat >conftest.$ac_ext <<_ACEOF
7318 /* confdefs.h.  */
7319 _ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h.  */
7323 #include <alloca.h>
7324 int
7325 main ()
7326 {
7327 char *p = (char *) alloca (2 * sizeof (int));
7328   ;
7329   return 0;
7330 }
7331 _ACEOF
7332 rm -f conftest.$ac_objext conftest$ac_exeext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334   (eval $ac_link) 2>conftest.er1
7335   ac_status=$?
7336   grep -v '^ *+' conftest.er1 >conftest.err
7337   rm -f conftest.er1
7338   cat conftest.err >&5
7339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340   (exit $ac_status); } &&
7341          { ac_try='test -z "$ac_c_werror_flag"
7342                          || test ! -s conftest.err'
7343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344   (eval $ac_try) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); }; } &&
7348          { ac_try='test -s conftest$ac_exeext'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; }; then
7354   ac_cv_working_alloca_h=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7358
7359 ac_cv_working_alloca_h=no
7360 fi
7361 rm -f conftest.err conftest.$ac_objext \
7362       conftest$ac_exeext conftest.$ac_ext
7363 fi
7364 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7365 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7366 if test $ac_cv_working_alloca_h = yes; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define HAVE_ALLOCA_H 1
7370 _ACEOF
7371
7372 fi
7373
7374 echo "$as_me:$LINENO: checking for alloca" >&5
7375 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7376 if test "${ac_cv_func_alloca_works+set}" = set; then
7377   echo $ECHO_N "(cached) $ECHO_C" >&6
7378 else
7379   cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385 #ifdef __GNUC__
7386 # define alloca __builtin_alloca
7387 #else
7388 # ifdef _MSC_VER
7389 #  include <malloc.h>
7390 #  define alloca _alloca
7391 # else
7392 #  if HAVE_ALLOCA_H
7393 #   include <alloca.h>
7394 #  else
7395 #   ifdef _AIX
7396  #pragma alloca
7397 #   else
7398 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7399 char *alloca ();
7400 #    endif
7401 #   endif
7402 #  endif
7403 # endif
7404 #endif
7405
7406 int
7407 main ()
7408 {
7409 char *p = (char *) alloca (1);
7410   ;
7411   return 0;
7412 }
7413 _ACEOF
7414 rm -f conftest.$ac_objext conftest$ac_exeext
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416   (eval $ac_link) 2>conftest.er1
7417   ac_status=$?
7418   grep -v '^ *+' conftest.er1 >conftest.err
7419   rm -f conftest.er1
7420   cat conftest.err >&5
7421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422   (exit $ac_status); } &&
7423          { ac_try='test -z "$ac_c_werror_flag"
7424                          || test ! -s conftest.err'
7425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426   (eval $ac_try) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; } &&
7430          { ac_try='test -s conftest$ac_exeext'
7431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7432   (eval $ac_try) 2>&5
7433   ac_status=$?
7434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435   (exit $ac_status); }; }; then
7436   ac_cv_func_alloca_works=yes
7437 else
7438   echo "$as_me: failed program was:" >&5
7439 sed 's/^/| /' conftest.$ac_ext >&5
7440
7441 ac_cv_func_alloca_works=no
7442 fi
7443 rm -f conftest.err conftest.$ac_objext \
7444       conftest$ac_exeext conftest.$ac_ext
7445 fi
7446 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7447 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7448
7449 if test $ac_cv_func_alloca_works = yes; then
7450
7451 cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_ALLOCA 1
7453 _ACEOF
7454
7455 else
7456   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7457 # that cause trouble.  Some versions do not even contain alloca or
7458 # contain a buggy version.  If you still want to use their alloca,
7459 # use ar to extract alloca.o from them instead of compiling alloca.c.
7460
7461 ALLOCA=alloca.$ac_objext
7462
7463 cat >>confdefs.h <<\_ACEOF
7464 #define C_ALLOCA 1
7465 _ACEOF
7466
7467
7468 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7469 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7470 if test "${ac_cv_os_cray+set}" = set; then
7471   echo $ECHO_N "(cached) $ECHO_C" >&6
7472 else
7473   cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h.  */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h.  */
7479 #if defined(CRAY) && ! defined(CRAY2)
7480 webecray
7481 #else
7482 wenotbecray
7483 #endif
7484
7485 _ACEOF
7486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7487   $EGREP "webecray" >/dev/null 2>&1; then
7488   ac_cv_os_cray=yes
7489 else
7490   ac_cv_os_cray=no
7491 fi
7492 rm -f conftest*
7493
7494 fi
7495 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7496 echo "${ECHO_T}$ac_cv_os_cray" >&6
7497 if test $ac_cv_os_cray = yes; then
7498   for ac_func in _getb67 GETB67 getb67; do
7499     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7500 echo "$as_me:$LINENO: checking for $ac_func" >&5
7501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7502 if eval "test \"\${$as_ac_var+set}\" = set"; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7513 #define $ac_func innocuous_$ac_func
7514
7515 /* System header to define __stub macros and hopefully few prototypes,
7516     which can conflict with char $ac_func (); below.
7517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7518     <limits.h> exists even on freestanding compilers.  */
7519
7520 #ifdef __STDC__
7521 # include <limits.h>
7522 #else
7523 # include <assert.h>
7524 #endif
7525
7526 #undef $ac_func
7527
7528 /* Override any gcc2 internal prototype to avoid an error.  */
7529 #ifdef __cplusplus
7530 extern "C"
7531 {
7532 #endif
7533 /* We use char because int might match the return type of a gcc2
7534    builtin and then its argument prototype would still apply.  */
7535 char $ac_func ();
7536 /* The GNU C library defines this for functions which it implements
7537     to always fail with ENOSYS.  Some functions are actually named
7538     something starting with __ and the normal name is an alias.  */
7539 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7540 choke me
7541 #else
7542 char (*f) () = $ac_func;
7543 #endif
7544 #ifdef __cplusplus
7545 }
7546 #endif
7547
7548 int
7549 main ()
7550 {
7551 return f != $ac_func;
7552   ;
7553   return 0;
7554 }
7555 _ACEOF
7556 rm -f conftest.$ac_objext conftest$ac_exeext
7557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7558   (eval $ac_link) 2>conftest.er1
7559   ac_status=$?
7560   grep -v '^ *+' conftest.er1 >conftest.err
7561   rm -f conftest.er1
7562   cat conftest.err >&5
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); } &&
7565          { ac_try='test -z "$ac_c_werror_flag"
7566                          || test ! -s conftest.err'
7567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7568   (eval $ac_try) 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }; } &&
7572          { ac_try='test -s conftest$ac_exeext'
7573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574   (eval $ac_try) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; }; then
7578   eval "$as_ac_var=yes"
7579 else
7580   echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 eval "$as_ac_var=no"
7584 fi
7585 rm -f conftest.err conftest.$ac_objext \
7586       conftest$ac_exeext conftest.$ac_ext
7587 fi
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7590 if test `eval echo '${'$as_ac_var'}'` = yes; then
7591
7592 cat >>confdefs.h <<_ACEOF
7593 #define CRAY_STACKSEG_END $ac_func
7594 _ACEOF
7595
7596     break
7597 fi
7598
7599   done
7600 fi
7601
7602 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7603 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7604 if test "${ac_cv_c_stack_direction+set}" = set; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   if test "$cross_compiling" = yes; then
7608   ac_cv_c_stack_direction=0
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 int
7617 find_stack_direction ()
7618 {
7619   static char *addr = 0;
7620   auto char dummy;
7621   if (addr == 0)
7622     {
7623       addr = &dummy;
7624       return find_stack_direction ();
7625     }
7626   else
7627     return (&dummy > addr) ? 1 : -1;
7628 }
7629
7630 int
7631 main ()
7632 {
7633   exit (find_stack_direction () < 0);
7634 }
7635 _ACEOF
7636 rm -f conftest$ac_exeext
7637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7638   (eval $ac_link) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643   (eval $ac_try) 2>&5
7644   ac_status=$?
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); }; }; then
7647   ac_cv_c_stack_direction=1
7648 else
7649   echo "$as_me: program exited with status $ac_status" >&5
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 ( exit $ac_status )
7654 ac_cv_c_stack_direction=-1
7655 fi
7656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7657 fi
7658 fi
7659 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7660 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define STACK_DIRECTION $ac_cv_c_stack_direction
7664 _ACEOF
7665
7666
7667 fi
7668
7669 echo "$as_me:$LINENO: checking for inline" >&5
7670 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7671 if test "${ac_cv_c_inline+set}" = set; then
7672   echo $ECHO_N "(cached) $ECHO_C" >&6
7673 else
7674   ac_cv_c_inline=no
7675 for ac_kw in inline __inline__ __inline; do
7676   cat >conftest.$ac_ext <<_ACEOF
7677 /* confdefs.h.  */
7678 _ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h.  */
7682 #ifndef __cplusplus
7683 typedef int foo_t;
7684 static $ac_kw foo_t static_foo () {return 0; }
7685 $ac_kw foo_t foo () {return 0; }
7686 #endif
7687
7688 _ACEOF
7689 rm -f conftest.$ac_objext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7691   (eval $ac_compile) 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } &&
7698          { ac_try='test -z "$ac_c_werror_flag"
7699                          || test ! -s conftest.err'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; } &&
7705          { ac_try='test -s conftest.$ac_objext'
7706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707   (eval $ac_try) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; }; then
7711   ac_cv_c_inline=$ac_kw; break
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 fi
7717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 done
7719
7720 fi
7721 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7722 echo "${ECHO_T}$ac_cv_c_inline" >&6
7723
7724
7725 case $ac_cv_c_inline in
7726   inline | yes) ;;
7727   *)
7728     case $ac_cv_c_inline in
7729       no) ac_val=;;
7730       *) ac_val=$ac_cv_c_inline;;
7731     esac
7732     cat >>confdefs.h <<_ACEOF
7733 #ifndef __cplusplus
7734 #define inline $ac_val
7735 #endif
7736 _ACEOF
7737     ;;
7738 esac
7739
7740
7741 # VMS doesn't have unlink.
7742
7743
7744 for ac_func in unlink remove
7745 do
7746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7747 echo "$as_me:$LINENO: checking for $ac_func" >&5
7748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7749 if eval "test \"\${$as_ac_var+set}\" = set"; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   cat >conftest.$ac_ext <<_ACEOF
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7760 #define $ac_func innocuous_$ac_func
7761
7762 /* System header to define __stub macros and hopefully few prototypes,
7763     which can conflict with char $ac_func (); below.
7764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7765     <limits.h> exists even on freestanding compilers.  */
7766
7767 #ifdef __STDC__
7768 # include <limits.h>
7769 #else
7770 # include <assert.h>
7771 #endif
7772
7773 #undef $ac_func
7774
7775 /* Override any gcc2 internal prototype to avoid an error.  */
7776 #ifdef __cplusplus
7777 extern "C"
7778 {
7779 #endif
7780 /* We use char because int might match the return type of a gcc2
7781    builtin and then its argument prototype would still apply.  */
7782 char $ac_func ();
7783 /* The GNU C library defines this for functions which it implements
7784     to always fail with ENOSYS.  Some functions are actually named
7785     something starting with __ and the normal name is an alias.  */
7786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7787 choke me
7788 #else
7789 char (*f) () = $ac_func;
7790 #endif
7791 #ifdef __cplusplus
7792 }
7793 #endif
7794
7795 int
7796 main ()
7797 {
7798 return f != $ac_func;
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803 rm -f conftest.$ac_objext conftest$ac_exeext
7804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7805   (eval $ac_link) 2>conftest.er1
7806   ac_status=$?
7807   grep -v '^ *+' conftest.er1 >conftest.err
7808   rm -f conftest.er1
7809   cat conftest.err >&5
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); } &&
7812          { ac_try='test -z "$ac_c_werror_flag"
7813                          || test ! -s conftest.err'
7814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815   (eval $ac_try) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); }; } &&
7819          { ac_try='test -s conftest$ac_exeext'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; }; then
7825   eval "$as_ac_var=yes"
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 eval "$as_ac_var=no"
7831 fi
7832 rm -f conftest.err conftest.$ac_objext \
7833       conftest$ac_exeext conftest.$ac_ext
7834 fi
7835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7837 if test `eval echo '${'$as_ac_var'}'` = yes; then
7838   cat >>confdefs.h <<_ACEOF
7839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7840 _ACEOF
7841  break
7842 fi
7843 done
7844
7845
7846 # Some systems don't have sbrk().
7847
7848 for ac_func in sbrk
7849 do
7850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7851 echo "$as_me:$LINENO: checking for $ac_func" >&5
7852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7853 if eval "test \"\${$as_ac_var+set}\" = set"; then
7854   echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856   cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7864 #define $ac_func innocuous_$ac_func
7865
7866 /* System header to define __stub macros and hopefully few prototypes,
7867     which can conflict with char $ac_func (); below.
7868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869     <limits.h> exists even on freestanding compilers.  */
7870
7871 #ifdef __STDC__
7872 # include <limits.h>
7873 #else
7874 # include <assert.h>
7875 #endif
7876
7877 #undef $ac_func
7878
7879 /* Override any gcc2 internal prototype to avoid an error.  */
7880 #ifdef __cplusplus
7881 extern "C"
7882 {
7883 #endif
7884 /* We use char because int might match the return type of a gcc2
7885    builtin and then its argument prototype would still apply.  */
7886 char $ac_func ();
7887 /* The GNU C library defines this for functions which it implements
7888     to always fail with ENOSYS.  Some functions are actually named
7889     something starting with __ and the normal name is an alias.  */
7890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7891 choke me
7892 #else
7893 char (*f) () = $ac_func;
7894 #endif
7895 #ifdef __cplusplus
7896 }
7897 #endif
7898
7899 int
7900 main ()
7901 {
7902 return f != $ac_func;
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext conftest$ac_exeext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909   (eval $ac_link) 2>conftest.er1
7910   ac_status=$?
7911   grep -v '^ *+' conftest.er1 >conftest.err
7912   rm -f conftest.er1
7913   cat conftest.err >&5
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); } &&
7916          { ac_try='test -z "$ac_c_werror_flag"
7917                          || test ! -s conftest.err'
7918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919   (eval $ac_try) 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; } &&
7923          { ac_try='test -s conftest$ac_exeext'
7924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925   (eval $ac_try) 2>&5
7926   ac_status=$?
7927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928   (exit $ac_status); }; }; then
7929   eval "$as_ac_var=yes"
7930 else
7931   echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934 eval "$as_ac_var=no"
7935 fi
7936 rm -f conftest.err conftest.$ac_objext \
7937       conftest$ac_exeext conftest.$ac_ext
7938 fi
7939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7941 if test `eval echo '${'$as_ac_var'}'` = yes; then
7942   cat >>confdefs.h <<_ACEOF
7943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7944 _ACEOF
7945
7946 fi
7947 done
7948
7949
7950 # do we need the math library?
7951 case "${need_libm}" in
7952 yes)
7953   LIBM=
7954 case $host in
7955 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
7956   # These system don't have libm
7957   # on darwin the libm is a symbolic link to libSystem.dylib
7958   ;;
7959 *-ncr-sysv4.3*)
7960   echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
7961 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
7962 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   ac_check_lib_save_LIBS=$LIBS
7966 LIBS="-lmw  $LIBS"
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973
7974 /* Override any gcc2 internal prototype to avoid an error.  */
7975 #ifdef __cplusplus
7976 extern "C"
7977 #endif
7978 /* We use char because int might match the return type of a gcc2
7979    builtin and then its argument prototype would still apply.  */
7980 char _mwvalidcheckl ();
7981 int
7982 main ()
7983 {
7984 _mwvalidcheckl ();
7985   ;
7986   return 0;
7987 }
7988 _ACEOF
7989 rm -f conftest.$ac_objext conftest$ac_exeext
7990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7991   (eval $ac_link) 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } &&
7998          { ac_try='test -z "$ac_c_werror_flag"
7999                          || test ! -s conftest.err'
8000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001   (eval $ac_try) 2>&5
8002   ac_status=$?
8003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004   (exit $ac_status); }; } &&
8005          { ac_try='test -s conftest$ac_exeext'
8006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007   (eval $ac_try) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); }; }; then
8011   ac_cv_lib_mw__mwvalidcheckl=yes
8012 else
8013   echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8015
8016 ac_cv_lib_mw__mwvalidcheckl=no
8017 fi
8018 rm -f conftest.err conftest.$ac_objext \
8019       conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8021 fi
8022 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
8023 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
8024 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
8025   LIBM="-lmw"
8026 fi
8027
8028   echo "$as_me:$LINENO: checking for main in -lm" >&5
8029 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8030 if test "${ac_cv_lib_m_main+set}" = set; then
8031   echo $ECHO_N "(cached) $ECHO_C" >&6
8032 else
8033   ac_check_lib_save_LIBS=$LIBS
8034 LIBS="-lm  $LIBS"
8035 cat >conftest.$ac_ext <<_ACEOF
8036 /* confdefs.h.  */
8037 _ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h.  */
8041
8042
8043 int
8044 main ()
8045 {
8046 main ();
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext conftest$ac_exeext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053   (eval $ac_link) 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } &&
8060          { ac_try='test -z "$ac_c_werror_flag"
8061                          || test ! -s conftest.err'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest$ac_exeext'
8068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069   (eval $ac_try) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   ac_cv_lib_m_main=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ac_cv_lib_m_main=no
8079 fi
8080 rm -f conftest.err conftest.$ac_objext \
8081       conftest$ac_exeext conftest.$ac_ext
8082 LIBS=$ac_check_lib_save_LIBS
8083 fi
8084 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8085 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8086 if test $ac_cv_lib_m_main = yes; then
8087   LIBM="$LIBM -lm"
8088 fi
8089
8090   ;;
8091 *)
8092   echo "$as_me:$LINENO: checking for main in -lm" >&5
8093 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
8094 if test "${ac_cv_lib_m_main+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   ac_check_lib_save_LIBS=$LIBS
8098 LIBS="-lm  $LIBS"
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105
8106
8107 int
8108 main ()
8109 {
8110 main ();
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext conftest$ac_exeext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8117   (eval $ac_link) 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -z "$ac_c_werror_flag"
8125                          || test ! -s conftest.err'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest$ac_exeext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   ac_cv_lib_m_main=yes
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 ac_cv_lib_m_main=no
8143 fi
8144 rm -f conftest.err conftest.$ac_objext \
8145       conftest$ac_exeext conftest.$ac_ext
8146 LIBS=$ac_check_lib_save_LIBS
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
8149 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
8150 if test $ac_cv_lib_m_main = yes; then
8151   LIBM="-lm"
8152 fi
8153
8154   ;;
8155 esac
8156
8157
8158   ;;
8159 esac
8160
8161 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
8162 # enough, but on some of those systems, the assert macro relies on requoting
8163 # working properly!
8164 echo "$as_me:$LINENO: checking for working assert macro" >&5
8165 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
8166 if test "${gas_cv_assert_ok+set}" = set; then
8167   echo $ECHO_N "(cached) $ECHO_C" >&6
8168 else
8169   cat >conftest.$ac_ext <<_ACEOF
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175 #include <assert.h>
8176 #include <stdio.h>
8177 int
8178 main ()
8179 {
8180
8181 /* check for requoting problems */
8182 static int a, b, c, d;
8183 static char *s;
8184 assert (!strcmp(s, "foo bar baz quux"));
8185 /* check for newline handling */
8186 assert (a == b
8187         || c == d);
8188
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext conftest$ac_exeext
8194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8195   (eval $ac_link) 2>conftest.er1
8196   ac_status=$?
8197   grep -v '^ *+' conftest.er1 >conftest.err
8198   rm -f conftest.er1
8199   cat conftest.err >&5
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } &&
8202          { ac_try='test -z "$ac_c_werror_flag"
8203                          || test ! -s conftest.err'
8204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205   (eval $ac_try) 2>&5
8206   ac_status=$?
8207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); }; } &&
8209          { ac_try='test -s conftest$ac_exeext'
8210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211   (eval $ac_try) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; }; then
8215   gas_cv_assert_ok=yes
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220 gas_cv_assert_ok=no
8221 fi
8222 rm -f conftest.err conftest.$ac_objext \
8223       conftest$ac_exeext conftest.$ac_ext
8224 fi
8225 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
8226 echo "${ECHO_T}$gas_cv_assert_ok" >&6
8227 test $gas_cv_assert_ok = yes ||
8228 cat >>confdefs.h <<\_ACEOF
8229 #define BROKEN_ASSERT 1
8230 _ACEOF
8231
8232
8233
8234 # On some systems, the system header files may not declare malloc, realloc,
8235 # and free.  There are places where gas needs these functions to have been
8236 # declared -- such as when taking their addresses.
8237 gas_test_headers="
8238 #ifdef HAVE_MEMORY_H
8239 #include <memory.h>
8240 #endif
8241 #ifdef HAVE_STRING_H
8242 #include <string.h>
8243 #else
8244 #ifdef HAVE_STRINGS_H
8245 #include <strings.h>
8246 #endif
8247 #endif
8248 #ifdef HAVE_STDLIB_H
8249 #include <stdlib.h>
8250 #endif
8251 #ifdef HAVE_UNISTD_H
8252 #include <unistd.h>
8253 #endif
8254 "
8255
8256 # Does errno.h declare errno, or do we have to add a separate declaration
8257 # for it?
8258
8259 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
8260 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
8261 if test "${gas_cv_decl_needed_errno+set}" = set; then
8262   echo $ECHO_N "(cached) $ECHO_C" >&6
8263 else
8264   cat >conftest.$ac_ext <<_ACEOF
8265 /* confdefs.h.  */
8266 _ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h.  */
8270
8271 #ifdef HAVE_ERRNO_H
8272 #include <errno.h>
8273 #endif
8274
8275 int
8276 main ()
8277 {
8278
8279 typedef int f;
8280 f x;
8281 x = (f) errno;
8282
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289   (eval $ac_link) 2>conftest.er1
8290   ac_status=$?
8291   grep -v '^ *+' conftest.er1 >conftest.err
8292   rm -f conftest.er1
8293   cat conftest.err >&5
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); } &&
8296          { ac_try='test -z "$ac_c_werror_flag"
8297                          || test ! -s conftest.err'
8298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299   (eval $ac_try) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; } &&
8303          { ac_try='test -s conftest$ac_exeext'
8304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305   (eval $ac_try) 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   gas_cv_decl_needed_errno=no
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 gas_cv_decl_needed_errno=yes
8315 fi
8316 rm -f conftest.err conftest.$ac_objext \
8317       conftest$ac_exeext conftest.$ac_ext
8318 fi
8319 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
8320 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
8321 if test $gas_cv_decl_needed_errno = yes; then
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define NEED_DECLARATION_ERRNO 1
8325 _ACEOF
8326
8327 fi
8328
8329
8330 echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
8331 echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
8332 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341 #include <unistd.h>
8342 int
8343 main ()
8344 {
8345 extern int getopt (int, char *const*, const char *);
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352   (eval $ac_compile) 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -z "$ac_c_werror_flag"
8360                          || test ! -s conftest.err'
8361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362   (eval $ac_try) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; } &&
8366          { ac_try='test -s conftest.$ac_objext'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   gas_cv_decl_getopt_unistd_h=yes
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 gas_cv_decl_getopt_unistd_h=no
8378 fi
8379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8380 fi
8381
8382 echo "$as_me:$LINENO: result: $gas_cv_decl_getopt_unistd_h" >&5
8383 echo "${ECHO_T}$gas_cv_decl_getopt_unistd_h" >&6
8384 if test $gas_cv_decl_getopt_unistd_h = yes; then
8385
8386 cat >>confdefs.h <<\_ACEOF
8387 #define HAVE_DECL_GETOPT 1
8388 _ACEOF
8389
8390 fi
8391
8392
8393 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
8394 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
8395 if test "${gas_cv_decl_needed_environ+set}" = set; then
8396   echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398   cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 $gas_test_headers
8405 int
8406 main ()
8407 {
8408
8409 typedef char **f;
8410 f x;
8411 x = (f) environ;
8412
8413   ;
8414   return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419   (eval $ac_link) 2>conftest.er1
8420   ac_status=$?
8421   grep -v '^ *+' conftest.er1 >conftest.err
8422   rm -f conftest.er1
8423   cat conftest.err >&5
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); } &&
8426          { ac_try='test -z "$ac_c_werror_flag"
8427                          || test ! -s conftest.err'
8428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429   (eval $ac_try) 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest$ac_exeext'
8434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435   (eval $ac_try) 2>&5
8436   ac_status=$?
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   (exit $ac_status); }; }; then
8439   gas_cv_decl_needed_environ=no
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 gas_cv_decl_needed_environ=yes
8445 fi
8446 rm -f conftest.err conftest.$ac_objext \
8447       conftest$ac_exeext conftest.$ac_ext
8448 fi
8449 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
8450 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
8451 if test $gas_cv_decl_needed_environ = yes; then
8452
8453 cat >>confdefs.h <<\_ACEOF
8454 #define NEED_DECLARATION_ENVIRON 1
8455 _ACEOF
8456
8457 fi
8458
8459
8460 echo "$as_me:$LINENO: checking whether declaration is required for ffs" >&5
8461 echo $ECHO_N "checking whether declaration is required for ffs... $ECHO_C" >&6
8462 if test "${gas_cv_decl_needed_ffs+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 $gas_test_headers
8472 int
8473 main ()
8474 {
8475
8476 typedef int (*f)(int);
8477 f x;
8478 x = (f) ffs;
8479
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486   (eval $ac_link) 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -z "$ac_c_werror_flag"
8494                          || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   gas_cv_decl_needed_ffs=no
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 gas_cv_decl_needed_ffs=yes
8512 fi
8513 rm -f conftest.err conftest.$ac_objext \
8514       conftest$ac_exeext conftest.$ac_ext
8515 fi
8516 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_ffs" >&5
8517 echo "${ECHO_T}$gas_cv_decl_needed_ffs" >&6
8518 if test $gas_cv_decl_needed_ffs = yes; then
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define NEED_DECLARATION_FFS 1
8522 _ACEOF
8523
8524 fi
8525
8526
8527 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
8528 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
8529 if test "${gas_cv_decl_needed_free+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   cat >conftest.$ac_ext <<_ACEOF
8533 /* confdefs.h.  */
8534 _ACEOF
8535 cat confdefs.h >>conftest.$ac_ext
8536 cat >>conftest.$ac_ext <<_ACEOF
8537 /* end confdefs.h.  */
8538 $gas_test_headers
8539 int
8540 main ()
8541 {
8542
8543 typedef void (*f)();
8544 f x;
8545 x = (f) free;
8546
8547   ;
8548   return 0;
8549 }
8550 _ACEOF
8551 rm -f conftest.$ac_objext conftest$ac_exeext
8552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553   (eval $ac_link) 2>conftest.er1
8554   ac_status=$?
8555   grep -v '^ *+' conftest.er1 >conftest.err
8556   rm -f conftest.er1
8557   cat conftest.err >&5
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); } &&
8560          { ac_try='test -z "$ac_c_werror_flag"
8561                          || test ! -s conftest.err'
8562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563   (eval $ac_try) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }; } &&
8567          { ac_try='test -s conftest$ac_exeext'
8568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8569   (eval $ac_try) 2>&5
8570   ac_status=$?
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); }; }; then
8573   gas_cv_decl_needed_free=no
8574 else
8575   echo "$as_me: failed program was:" >&5
8576 sed 's/^/| /' conftest.$ac_ext >&5
8577
8578 gas_cv_decl_needed_free=yes
8579 fi
8580 rm -f conftest.err conftest.$ac_objext \
8581       conftest$ac_exeext conftest.$ac_ext
8582 fi
8583 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
8584 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
8585 if test $gas_cv_decl_needed_free = yes; then
8586
8587 cat >>confdefs.h <<\_ACEOF
8588 #define NEED_DECLARATION_FREE 1
8589 _ACEOF
8590
8591 fi
8592
8593
8594 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
8595 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
8596 if test "${gas_cv_decl_needed_malloc+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h.  */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h.  */
8605 $gas_test_headers
8606 int
8607 main ()
8608 {
8609
8610 typedef char *(*f)();
8611 f x;
8612 x = (f) malloc;
8613
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8620   (eval $ac_link) 2>conftest.er1
8621   ac_status=$?
8622   grep -v '^ *+' conftest.er1 >conftest.err
8623   rm -f conftest.er1
8624   cat conftest.err >&5
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); } &&
8627          { ac_try='test -z "$ac_c_werror_flag"
8628                          || test ! -s conftest.err'
8629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630   (eval $ac_try) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; } &&
8634          { ac_try='test -s conftest$ac_exeext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   gas_cv_decl_needed_malloc=no
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 gas_cv_decl_needed_malloc=yes
8646 fi
8647 rm -f conftest.err conftest.$ac_objext \
8648       conftest$ac_exeext conftest.$ac_ext
8649 fi
8650 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
8651 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
8652 if test $gas_cv_decl_needed_malloc = yes; then
8653
8654 cat >>confdefs.h <<\_ACEOF
8655 #define NEED_DECLARATION_MALLOC 1
8656 _ACEOF
8657
8658 fi
8659
8660
8661 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
8662 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
8663 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
8664   echo $ECHO_N "(cached) $ECHO_C" >&6
8665 else
8666   cat >conftest.$ac_ext <<_ACEOF
8667 /* confdefs.h.  */
8668 _ACEOF
8669 cat confdefs.h >>conftest.$ac_ext
8670 cat >>conftest.$ac_ext <<_ACEOF
8671 /* end confdefs.h.  */
8672 $gas_test_headers
8673 int
8674 main ()
8675 {
8676
8677 typedef char *(*f)();
8678 f x;
8679 x = (f) sbrk;
8680
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext conftest$ac_exeext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8687   (eval $ac_link) 2>conftest.er1
8688   ac_status=$?
8689   grep -v '^ *+' conftest.er1 >conftest.err
8690   rm -f conftest.er1
8691   cat conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -z "$ac_c_werror_flag"
8695                          || test ! -s conftest.err'
8696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697   (eval $ac_try) 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; } &&
8701          { ac_try='test -s conftest$ac_exeext'
8702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703   (eval $ac_try) 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; }; then
8707   gas_cv_decl_needed_sbrk=no
8708 else
8709   echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8711
8712 gas_cv_decl_needed_sbrk=yes
8713 fi
8714 rm -f conftest.err conftest.$ac_objext \
8715       conftest$ac_exeext conftest.$ac_ext
8716 fi
8717 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
8718 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
8719 if test $gas_cv_decl_needed_sbrk = yes; then
8720
8721 cat >>confdefs.h <<\_ACEOF
8722 #define NEED_DECLARATION_SBRK 1
8723 _ACEOF
8724
8725 fi
8726
8727
8728 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
8729 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
8730 if test "${gas_cv_decl_needed_strstr+set}" = set; then
8731   echo $ECHO_N "(cached) $ECHO_C" >&6
8732 else
8733   cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 $gas_test_headers
8740 int
8741 main ()
8742 {
8743
8744 typedef char *(*f)();
8745 f x;
8746 x = (f) strstr;
8747
8748   ;
8749   return 0;
8750 }
8751 _ACEOF
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754   (eval $ac_link) 2>conftest.er1
8755   ac_status=$?
8756   grep -v '^ *+' conftest.er1 >conftest.err
8757   rm -f conftest.er1
8758   cat conftest.err >&5
8759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760   (exit $ac_status); } &&
8761          { ac_try='test -z "$ac_c_werror_flag"
8762                          || test ! -s conftest.err'
8763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764   (eval $ac_try) 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770   (eval $ac_try) 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; }; then
8774   gas_cv_decl_needed_strstr=no
8775 else
8776   echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8778
8779 gas_cv_decl_needed_strstr=yes
8780 fi
8781 rm -f conftest.err conftest.$ac_objext \
8782       conftest$ac_exeext conftest.$ac_ext
8783 fi
8784 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
8785 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
8786 if test $gas_cv_decl_needed_strstr = yes; then
8787
8788 cat >>confdefs.h <<\_ACEOF
8789 #define NEED_DECLARATION_STRSTR 1
8790 _ACEOF
8791
8792 fi
8793
8794
8795 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
8796 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
8797 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806 $ac_includes_default
8807 int
8808 main ()
8809 {
8810 #ifndef vsnprintf
8811   char *p = (char *) vsnprintf;
8812 #endif
8813
8814   ;
8815   return 0;
8816 }
8817 _ACEOF
8818 rm -f conftest.$ac_objext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820   (eval $ac_compile) 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } &&
8827          { ac_try='test -z "$ac_c_werror_flag"
8828                          || test ! -s conftest.err'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; } &&
8834          { ac_try='test -s conftest.$ac_objext'
8835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836   (eval $ac_try) 2>&5
8837   ac_status=$?
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); }; }; then
8840   ac_cv_have_decl_vsnprintf=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845 ac_cv_have_decl_vsnprintf=no
8846 fi
8847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8848 fi
8849 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
8850 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
8851 if test $ac_cv_have_decl_vsnprintf = yes; then
8852
8853 cat >>confdefs.h <<_ACEOF
8854 #define HAVE_DECL_VSNPRINTF 1
8855 _ACEOF
8856
8857
8858 else
8859   cat >>confdefs.h <<_ACEOF
8860 #define HAVE_DECL_VSNPRINTF 0
8861 _ACEOF
8862
8863
8864 fi
8865
8866
8867
8868
8869 case "${host}" in
8870 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define USE_BINARY_FOPEN 1
8874 _ACEOF
8875  ;;
8876 esac
8877
8878
8879
8880
8881
8882
8883
8884                               ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
8885
8886           ac_config_commands="$ac_config_commands default"
8887
8888
8889 cat >confcache <<\_ACEOF
8890 # This file is a shell script that caches the results of configure
8891 # tests run on this system so they can be shared between configure
8892 # scripts and configure runs, see configure's option --config-cache.
8893 # It is not useful on other systems.  If it contains results you don't
8894 # want to keep, you may remove or edit it.
8895 #
8896 # config.status only pays attention to the cache file if you give it
8897 # the --recheck option to rerun configure.
8898 #
8899 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8900 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8901 # following values.
8902
8903 _ACEOF
8904
8905 # The following way of writing the cache mishandles newlines in values,
8906 # but we know of no workaround that is simple, portable, and efficient.
8907 # So, don't put newlines in cache variables' values.
8908 # Ultrix sh set writes to stderr and can't be redirected directly,
8909 # and sets the high bit in the cache file unless we assign to the vars.
8910 {
8911   (set) 2>&1 |
8912     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8913     *ac_space=\ *)
8914       # `set' does not quote correctly, so add quotes (double-quote
8915       # substitution turns \\\\ into \\, and sed turns \\ into \).
8916       sed -n \
8917         "s/'/'\\\\''/g;
8918           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8919       ;;
8920     *)
8921       # `set' quotes correctly as required by POSIX, so do not add quotes.
8922       sed -n \
8923         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8924       ;;
8925     esac;
8926 } |
8927   sed '
8928      t clear
8929      : clear
8930      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8931      t end
8932      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8933      : end' >>confcache
8934 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8935   if test -w $cache_file; then
8936     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8937     cat confcache >$cache_file
8938   else
8939     echo "not updating unwritable cache $cache_file"
8940   fi
8941 fi
8942 rm -f confcache
8943
8944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8945 # Let make expand exec_prefix.
8946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8947
8948 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8949 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8950 # trailing colons and then remove the whole line if VPATH becomes empty
8951 # (actually we leave an empty line to preserve line numbers).
8952 if test "x$srcdir" = x.; then
8953   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8954 s/:*\$(srcdir):*/:/;
8955 s/:*\${srcdir}:*/:/;
8956 s/:*@srcdir@:*/:/;
8957 s/^\([^=]*=[     ]*\):*/\1/;
8958 s/:*$//;
8959 s/^[^=]*=[       ]*$//;
8960 }'
8961 fi
8962
8963 DEFS=-DHAVE_CONFIG_H
8964
8965 ac_libobjs=
8966 ac_ltlibobjs=
8967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8968   # 1. Remove the extension, and $U if already installed.
8969   ac_i=`echo "$ac_i" |
8970          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8971   # 2. Add them.
8972   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8973   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8974 done
8975 LIBOBJS=$ac_libobjs
8976
8977 LTLIBOBJS=$ac_ltlibobjs
8978
8979
8980 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8981   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8982 Usually this means the macro was only invoked conditionally." >&5
8983 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8984 Usually this means the macro was only invoked conditionally." >&2;}
8985    { (exit 1); exit 1; }; }
8986 fi
8987 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8988   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8989 Usually this means the macro was only invoked conditionally." >&5
8990 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8991 Usually this means the macro was only invoked conditionally." >&2;}
8992    { (exit 1); exit 1; }; }
8993 fi
8994 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8995   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8996 Usually this means the macro was only invoked conditionally." >&5
8997 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8998 Usually this means the macro was only invoked conditionally." >&2;}
8999    { (exit 1); exit 1; }; }
9000 fi
9001 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
9002   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
9003 Usually this means the macro was only invoked conditionally." >&5
9004 echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
9005 Usually this means the macro was only invoked conditionally." >&2;}
9006    { (exit 1); exit 1; }; }
9007 fi
9008
9009 : ${CONFIG_STATUS=./config.status}
9010 ac_clean_files_save=$ac_clean_files
9011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9014 cat >$CONFIG_STATUS <<_ACEOF
9015 #! $SHELL
9016 # Generated by $as_me.
9017 # Run this file to recreate the current configuration.
9018 # Compiler output produced by configure, useful for debugging
9019 # configure, is in config.log if it exists.
9020
9021 debug=false
9022 ac_cs_recheck=false
9023 ac_cs_silent=false
9024 SHELL=\${CONFIG_SHELL-$SHELL}
9025 _ACEOF
9026
9027 cat >>$CONFIG_STATUS <<\_ACEOF
9028 ## --------------------- ##
9029 ## M4sh Initialization.  ##
9030 ## --------------------- ##
9031
9032 # Be Bourne compatible
9033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9034   emulate sh
9035   NULLCMD=:
9036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9037   # is contrary to our usage.  Disable this feature.
9038   alias -g '${1+"$@"}'='"$@"'
9039 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9040   set -o posix
9041 fi
9042 DUALCASE=1; export DUALCASE # for MKS sh
9043
9044 # Support unset when possible.
9045 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9046   as_unset=unset
9047 else
9048   as_unset=false
9049 fi
9050
9051
9052 # Work around bugs in pre-3.0 UWIN ksh.
9053 $as_unset ENV MAIL MAILPATH
9054 PS1='$ '
9055 PS2='> '
9056 PS4='+ '
9057
9058 # NLS nuisances.
9059 for as_var in \
9060   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9061   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9062   LC_TELEPHONE LC_TIME
9063 do
9064   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9065     eval $as_var=C; export $as_var
9066   else
9067     $as_unset $as_var
9068   fi
9069 done
9070
9071 # Required to use basename.
9072 if expr a : '\(a\)' >/dev/null 2>&1; then
9073   as_expr=expr
9074 else
9075   as_expr=false
9076 fi
9077
9078 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9079   as_basename=basename
9080 else
9081   as_basename=false
9082 fi
9083
9084
9085 # Name of the executable.
9086 as_me=`$as_basename "$0" ||
9087 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9088          X"$0" : 'X\(//\)$' \| \
9089          X"$0" : 'X\(/\)$' \| \
9090          .     : '\(.\)' 2>/dev/null ||
9091 echo X/"$0" |
9092     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9093           /^X\/\(\/\/\)$/{ s//\1/; q; }
9094           /^X\/\(\/\).*/{ s//\1/; q; }
9095           s/.*/./; q'`
9096
9097
9098 # PATH needs CR, and LINENO needs CR and PATH.
9099 # Avoid depending upon Character Ranges.
9100 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9101 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9102 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9103 as_cr_digits='0123456789'
9104 as_cr_alnum=$as_cr_Letters$as_cr_digits
9105
9106 # The user is always right.
9107 if test "${PATH_SEPARATOR+set}" != set; then
9108   echo "#! /bin/sh" >conf$$.sh
9109   echo  "exit 0"   >>conf$$.sh
9110   chmod +x conf$$.sh
9111   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9112     PATH_SEPARATOR=';'
9113   else
9114     PATH_SEPARATOR=:
9115   fi
9116   rm -f conf$$.sh
9117 fi
9118
9119
9120   as_lineno_1=$LINENO
9121   as_lineno_2=$LINENO
9122   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9123   test "x$as_lineno_1" != "x$as_lineno_2" &&
9124   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9125   # Find who we are.  Look in the path if we contain no path at all
9126   # relative or not.
9127   case $0 in
9128     *[\\/]* ) as_myself=$0 ;;
9129     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132   IFS=$as_save_IFS
9133   test -z "$as_dir" && as_dir=.
9134   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9135 done
9136
9137        ;;
9138   esac
9139   # We did not find ourselves, most probably we were run as `sh COMMAND'
9140   # in which case we are not to be found in the path.
9141   if test "x$as_myself" = x; then
9142     as_myself=$0
9143   fi
9144   if test ! -f "$as_myself"; then
9145     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9146 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9147    { (exit 1); exit 1; }; }
9148   fi
9149   case $CONFIG_SHELL in
9150   '')
9151     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9153 do
9154   IFS=$as_save_IFS
9155   test -z "$as_dir" && as_dir=.
9156   for as_base in sh bash ksh sh5; do
9157          case $as_dir in
9158          /*)
9159            if ("$as_dir/$as_base" -c '
9160   as_lineno_1=$LINENO
9161   as_lineno_2=$LINENO
9162   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9163   test "x$as_lineno_1" != "x$as_lineno_2" &&
9164   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9165              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9166              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9167              CONFIG_SHELL=$as_dir/$as_base
9168              export CONFIG_SHELL
9169              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9170            fi;;
9171          esac
9172        done
9173 done
9174 ;;
9175   esac
9176
9177   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9178   # uniformly replaced by the line number.  The first 'sed' inserts a
9179   # line-number line before each line; the second 'sed' does the real
9180   # work.  The second script uses 'N' to pair each line-number line
9181   # with the numbered line, and appends trailing '-' during
9182   # substitution so that $LINENO is not a special case at line end.
9183   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9184   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9185   sed '=' <$as_myself |
9186     sed '
9187       N
9188       s,$,-,
9189       : loop
9190       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9191       t loop
9192       s,-$,,
9193       s,^['$as_cr_digits']*\n,,
9194     ' >$as_me.lineno &&
9195   chmod +x $as_me.lineno ||
9196     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9197 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9198    { (exit 1); exit 1; }; }
9199
9200   # Don't try to exec as it changes $[0], causing all sort of problems
9201   # (the dirname of $[0] is not the place where we might find the
9202   # original and so on.  Autoconf is especially sensible to this).
9203   . ./$as_me.lineno
9204   # Exit status is that of the last command.
9205   exit
9206 }
9207
9208
9209 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9210   *c*,-n*) ECHO_N= ECHO_C='
9211 ' ECHO_T='      ' ;;
9212   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9213   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9214 esac
9215
9216 if expr a : '\(a\)' >/dev/null 2>&1; then
9217   as_expr=expr
9218 else
9219   as_expr=false
9220 fi
9221
9222 rm -f conf$$ conf$$.exe conf$$.file
9223 echo >conf$$.file
9224 if ln -s conf$$.file conf$$ 2>/dev/null; then
9225   # We could just check for DJGPP; but this test a) works b) is more generic
9226   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9227   if test -f conf$$.exe; then
9228     # Don't use ln at all; we don't have any links
9229     as_ln_s='cp -p'
9230   else
9231     as_ln_s='ln -s'
9232   fi
9233 elif ln conf$$.file conf$$ 2>/dev/null; then
9234   as_ln_s=ln
9235 else
9236   as_ln_s='cp -p'
9237 fi
9238 rm -f conf$$ conf$$.exe conf$$.file
9239
9240 if mkdir -p . 2>/dev/null; then
9241   as_mkdir_p=:
9242 else
9243   test -d ./-p && rmdir ./-p
9244   as_mkdir_p=false
9245 fi
9246
9247 as_executable_p="test -f"
9248
9249 # Sed expression to map a string onto a valid CPP name.
9250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9251
9252 # Sed expression to map a string onto a valid variable name.
9253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9254
9255
9256 # IFS
9257 # We need space, tab and new line, in precisely that order.
9258 as_nl='
9259 '
9260 IFS="   $as_nl"
9261
9262 # CDPATH.
9263 $as_unset CDPATH
9264
9265 exec 6>&1
9266
9267 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9268 # report actual input values of CONFIG_FILES etc. instead of their
9269 # values after options handling.  Logging --version etc. is OK.
9270 exec 5>>config.log
9271 {
9272   echo
9273   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9274 ## Running $as_me. ##
9275 _ASBOX
9276 } >&5
9277 cat >&5 <<_CSEOF
9278
9279 This file was extended by $as_me, which was
9280 generated by GNU Autoconf 2.59.  Invocation command line was
9281
9282   CONFIG_FILES    = $CONFIG_FILES
9283   CONFIG_HEADERS  = $CONFIG_HEADERS
9284   CONFIG_LINKS    = $CONFIG_LINKS
9285   CONFIG_COMMANDS = $CONFIG_COMMANDS
9286   $ $0 $@
9287
9288 _CSEOF
9289 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9290 echo >&5
9291 _ACEOF
9292
9293 # Files that config.status was made for.
9294 if test -n "$ac_config_files"; then
9295   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9296 fi
9297
9298 if test -n "$ac_config_headers"; then
9299   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9300 fi
9301
9302 if test -n "$ac_config_links"; then
9303   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9304 fi
9305
9306 if test -n "$ac_config_commands"; then
9307   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9308 fi
9309
9310 cat >>$CONFIG_STATUS <<\_ACEOF
9311
9312 ac_cs_usage="\
9313 \`$as_me' instantiates files from templates according to the
9314 current configuration.
9315
9316 Usage: $0 [OPTIONS] [FILE]...
9317
9318   -h, --help       print this help, then exit
9319   -V, --version    print version number, then exit
9320   -q, --quiet      do not print progress messages
9321   -d, --debug      don't remove temporary files
9322       --recheck    update $as_me by reconfiguring in the same conditions
9323   --file=FILE[:TEMPLATE]
9324                    instantiate the configuration file FILE
9325   --header=FILE[:TEMPLATE]
9326                    instantiate the configuration header FILE
9327
9328 Configuration files:
9329 $config_files
9330
9331 Configuration headers:
9332 $config_headers
9333
9334 Configuration commands:
9335 $config_commands
9336
9337 Report bugs to <bug-autoconf@gnu.org>."
9338 _ACEOF
9339
9340 cat >>$CONFIG_STATUS <<_ACEOF
9341 ac_cs_version="\\
9342 config.status
9343 configured by $0, generated by GNU Autoconf 2.59,
9344   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9345
9346 Copyright (C) 2003 Free Software Foundation, Inc.
9347 This config.status script is free software; the Free Software Foundation
9348 gives unlimited permission to copy, distribute and modify it."
9349 srcdir=$srcdir
9350 INSTALL="$INSTALL"
9351 _ACEOF
9352
9353 cat >>$CONFIG_STATUS <<\_ACEOF
9354 # If no file are specified by the user, then we need to provide default
9355 # value.  By we need to know if files were specified by the user.
9356 ac_need_defaults=:
9357 while test $# != 0
9358 do
9359   case $1 in
9360   --*=*)
9361     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9362     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9363     ac_shift=:
9364     ;;
9365   -*)
9366     ac_option=$1
9367     ac_optarg=$2
9368     ac_shift=shift
9369     ;;
9370   *) # This is not an option, so the user has probably given explicit
9371      # arguments.
9372      ac_option=$1
9373      ac_need_defaults=false;;
9374   esac
9375
9376   case $ac_option in
9377   # Handling of the options.
9378 _ACEOF
9379 cat >>$CONFIG_STATUS <<\_ACEOF
9380   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9381     ac_cs_recheck=: ;;
9382   --version | --vers* | -V )
9383     echo "$ac_cs_version"; exit 0 ;;
9384   --he | --h)
9385     # Conflict between --help and --header
9386     { { echo "$as_me:$LINENO: error: ambiguous option: $1
9387 Try \`$0 --help' for more information." >&5
9388 echo "$as_me: error: ambiguous option: $1
9389 Try \`$0 --help' for more information." >&2;}
9390    { (exit 1); exit 1; }; };;
9391   --help | --hel | -h )
9392     echo "$ac_cs_usage"; exit 0 ;;
9393   --debug | --d* | -d )
9394     debug=: ;;
9395   --file | --fil | --fi | --f )
9396     $ac_shift
9397     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9398     ac_need_defaults=false;;
9399   --header | --heade | --head | --hea )
9400     $ac_shift
9401     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9402     ac_need_defaults=false;;
9403   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9404   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9405     ac_cs_silent=: ;;
9406
9407   # This is an error.
9408   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9409 Try \`$0 --help' for more information." >&5
9410 echo "$as_me: error: unrecognized option: $1
9411 Try \`$0 --help' for more information." >&2;}
9412    { (exit 1); exit 1; }; } ;;
9413
9414   *) ac_config_targets="$ac_config_targets $1" ;;
9415
9416   esac
9417   shift
9418 done
9419
9420 ac_configure_extra_args=
9421
9422 if $ac_cs_silent; then
9423   exec 6>/dev/null
9424   ac_configure_extra_args="$ac_configure_extra_args --silent"
9425 fi
9426
9427 _ACEOF
9428 cat >>$CONFIG_STATUS <<_ACEOF
9429 if \$ac_cs_recheck; then
9430   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9431   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9432 fi
9433
9434 _ACEOF
9435
9436 cat >>$CONFIG_STATUS <<_ACEOF
9437 #
9438 # INIT-COMMANDS section.
9439 #
9440
9441 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9442 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9443     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9444     # from automake.
9445     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9446     # Capture the value of LINGUAS because we need it to compute CATALOGS.
9447     LINGUAS="${LINGUAS-%UNSET%}"
9448
9449 target_cpu_type=${target_cpu_type}
9450  cgen_cpu_prefix=${cgen_cpu_prefix}
9451  obj_format=${obj_format}
9452  te_file=${te_file}
9453
9454 _ACEOF
9455
9456
9457
9458 cat >>$CONFIG_STATUS <<\_ACEOF
9459 for ac_config_target in $ac_config_targets
9460 do
9461   case "$ac_config_target" in
9462   # Handling of arguments.
9463   "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
9464   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
9465   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9466   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9467   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
9468   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9469   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9470   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9471   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9472   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9473 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9474    { (exit 1); exit 1; }; };;
9475   esac
9476 done
9477
9478 # If the user did not use the arguments to specify the items to instantiate,
9479 # then the envvar interface is used.  Set only those that are not.
9480 # We use the long form for the default assignment because of an extremely
9481 # bizarre bug on SunOS 4.1.3.
9482 if $ac_need_defaults; then
9483   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9484   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9485   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9486 fi
9487
9488 # Have a temporary directory for convenience.  Make it in the build tree
9489 # simply because there is no reason to put it here, and in addition,
9490 # creating and moving files from /tmp can sometimes cause problems.
9491 # Create a temporary directory, and hook for its removal unless debugging.
9492 $debug ||
9493 {
9494   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9495   trap '{ (exit 1); exit 1; }' 1 2 13 15
9496 }
9497
9498 # Create a (secure) tmp directory for tmp files.
9499
9500 {
9501   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9502   test -n "$tmp" && test -d "$tmp"
9503 }  ||
9504 {
9505   tmp=./confstat$$-$RANDOM
9506   (umask 077 && mkdir $tmp)
9507 } ||
9508 {
9509    echo "$me: cannot create a temporary directory in ." >&2
9510    { (exit 1); exit 1; }
9511 }
9512
9513 _ACEOF
9514
9515 cat >>$CONFIG_STATUS <<_ACEOF
9516
9517 #
9518 # CONFIG_FILES section.
9519 #
9520
9521 # No need to generate the scripts if there are no CONFIG_FILES.
9522 # This happens for instance when ./config.status config.h
9523 if test -n "\$CONFIG_FILES"; then
9524   # Protect against being on the right side of a sed subst in config.status.
9525   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9526    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9527 s,@SHELL@,$SHELL,;t t
9528 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9529 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9530 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9531 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9532 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9533 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9534 s,@exec_prefix@,$exec_prefix,;t t
9535 s,@prefix@,$prefix,;t t
9536 s,@program_transform_name@,$program_transform_name,;t t
9537 s,@bindir@,$bindir,;t t
9538 s,@sbindir@,$sbindir,;t t
9539 s,@libexecdir@,$libexecdir,;t t
9540 s,@datadir@,$datadir,;t t
9541 s,@sysconfdir@,$sysconfdir,;t t
9542 s,@sharedstatedir@,$sharedstatedir,;t t
9543 s,@localstatedir@,$localstatedir,;t t
9544 s,@libdir@,$libdir,;t t
9545 s,@includedir@,$includedir,;t t
9546 s,@oldincludedir@,$oldincludedir,;t t
9547 s,@infodir@,$infodir,;t t
9548 s,@mandir@,$mandir,;t t
9549 s,@build_alias@,$build_alias,;t t
9550 s,@host_alias@,$host_alias,;t t
9551 s,@target_alias@,$target_alias,;t t
9552 s,@DEFS@,$DEFS,;t t
9553 s,@ECHO_C@,$ECHO_C,;t t
9554 s,@ECHO_N@,$ECHO_N,;t t
9555 s,@ECHO_T@,$ECHO_T,;t t
9556 s,@LIBS@,$LIBS,;t t
9557 s,@build@,$build,;t t
9558 s,@build_cpu@,$build_cpu,;t t
9559 s,@build_vendor@,$build_vendor,;t t
9560 s,@build_os@,$build_os,;t t
9561 s,@host@,$host,;t t
9562 s,@host_cpu@,$host_cpu,;t t
9563 s,@host_vendor@,$host_vendor,;t t
9564 s,@host_os@,$host_os,;t t
9565 s,@target@,$target,;t t
9566 s,@target_cpu@,$target_cpu,;t t
9567 s,@target_vendor@,$target_vendor,;t t
9568 s,@target_os@,$target_os,;t t
9569 s,@CC@,$CC,;t t
9570 s,@CFLAGS@,$CFLAGS,;t t
9571 s,@LDFLAGS@,$LDFLAGS,;t t
9572 s,@CPPFLAGS@,$CPPFLAGS,;t t
9573 s,@ac_ct_CC@,$ac_ct_CC,;t t
9574 s,@EXEEXT@,$EXEEXT,;t t
9575 s,@OBJEXT@,$OBJEXT,;t t
9576 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9577 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9578 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9579 s,@CYGPATH_W@,$CYGPATH_W,;t t
9580 s,@PACKAGE@,$PACKAGE,;t t
9581 s,@VERSION@,$VERSION,;t t
9582 s,@ACLOCAL@,$ACLOCAL,;t t
9583 s,@AUTOCONF@,$AUTOCONF,;t t
9584 s,@AUTOMAKE@,$AUTOMAKE,;t t
9585 s,@AUTOHEADER@,$AUTOHEADER,;t t
9586 s,@MAKEINFO@,$MAKEINFO,;t t
9587 s,@install_sh@,$install_sh,;t t
9588 s,@STRIP@,$STRIP,;t t
9589 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9590 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9591 s,@mkdir_p@,$mkdir_p,;t t
9592 s,@AWK@,$AWK,;t t
9593 s,@SET_MAKE@,$SET_MAKE,;t t
9594 s,@am__leading_dot@,$am__leading_dot,;t t
9595 s,@AMTAR@,$AMTAR,;t t
9596 s,@am__tar@,$am__tar,;t t
9597 s,@am__untar@,$am__untar,;t t
9598 s,@DEPDIR@,$DEPDIR,;t t
9599 s,@am__include@,$am__include,;t t
9600 s,@am__quote@,$am__quote,;t t
9601 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9602 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9603 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9604 s,@CCDEPMODE@,$CCDEPMODE,;t t
9605 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9606 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9607 s,@LN_S@,$LN_S,;t t
9608 s,@RANLIB@,$RANLIB,;t t
9609 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9610 s,@LIBTOOL@,$LIBTOOL,;t t
9611 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9612 s,@NO_WERROR@,$NO_WERROR,;t t
9613 s,@GDBINIT@,$GDBINIT,;t t
9614 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
9615 s,@extra_objects@,$extra_objects,;t t
9616 s,@target_cpu_type@,$target_cpu_type,;t t
9617 s,@obj_format@,$obj_format,;t t
9618 s,@te_file@,$te_file,;t t
9619 s,@install_tooldir@,$install_tooldir,;t t
9620 s,@atof@,$atof,;t t
9621 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
9622 s,@YACC@,$YACC,;t t
9623 s,@LEX@,$LEX,;t t
9624 s,@LEXLIB@,$LEXLIB,;t t
9625 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9626 s,@USE_NLS@,$USE_NLS,;t t
9627 s,@LIBINTL@,$LIBINTL,;t t
9628 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
9629 s,@INCINTL@,$INCINTL,;t t
9630 s,@XGETTEXT@,$XGETTEXT,;t t
9631 s,@GMSGFMT@,$GMSGFMT,;t t
9632 s,@POSUB@,$POSUB,;t t
9633 s,@CATALOGS@,$CATALOGS,;t t
9634 s,@DATADIRNAME@,$DATADIRNAME,;t t
9635 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9636 s,@GENCAT@,$GENCAT,;t t
9637 s,@CATOBJEXT@,$CATOBJEXT,;t t
9638 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9639 s,@MSGFMT@,$MSGFMT,;t t
9640 s,@MSGMERGE@,$MSGMERGE,;t t
9641 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9642 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9643 s,@MAINT@,$MAINT,;t t
9644 s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
9645 s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
9646 s,@CPP@,$CPP,;t t
9647 s,@EGREP@,$EGREP,;t t
9648 s,@ALLOCA@,$ALLOCA,;t t
9649 s,@LIBM@,$LIBM,;t t
9650 s,@datarootdir@,$datarootdir,;t t
9651 s,@docdir@,$docdir,;t t
9652 s,@htmldir@,$htmldir,;t t
9653 s,@LIBOBJS@,$LIBOBJS,;t t
9654 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9655 CEOF
9656
9657 _ACEOF
9658
9659   cat >>$CONFIG_STATUS <<\_ACEOF
9660   # Split the substitutions into bite-sized pieces for seds with
9661   # small command number limits, like on Digital OSF/1 and HP-UX.
9662   ac_max_sed_lines=48
9663   ac_sed_frag=1 # Number of current file.
9664   ac_beg=1 # First line for current file.
9665   ac_end=$ac_max_sed_lines # Line after last line for current file.
9666   ac_more_lines=:
9667   ac_sed_cmds=
9668   while $ac_more_lines; do
9669     if test $ac_beg -gt 1; then
9670       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9671     else
9672       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9673     fi
9674     if test ! -s $tmp/subs.frag; then
9675       ac_more_lines=false
9676     else
9677       # The purpose of the label and of the branching condition is to
9678       # speed up the sed processing (if there are no `@' at all, there
9679       # is no need to browse any of the substitutions).
9680       # These are the two extra sed commands mentioned above.
9681       (echo ':t
9682   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9683       if test -z "$ac_sed_cmds"; then
9684         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9685       else
9686         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9687       fi
9688       ac_sed_frag=`expr $ac_sed_frag + 1`
9689       ac_beg=$ac_end
9690       ac_end=`expr $ac_end + $ac_max_sed_lines`
9691     fi
9692   done
9693   if test -z "$ac_sed_cmds"; then
9694     ac_sed_cmds=cat
9695   fi
9696 fi # test -n "$CONFIG_FILES"
9697
9698 _ACEOF
9699 cat >>$CONFIG_STATUS <<\_ACEOF
9700 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9701   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9702   case $ac_file in
9703   - | *:- | *:-:* ) # input from stdin
9704         cat >$tmp/stdin
9705         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9706         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9707   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9708         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9709   * )   ac_file_in=$ac_file.in ;;
9710   esac
9711
9712   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9713   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9715          X"$ac_file" : 'X\(//\)[^/]' \| \
9716          X"$ac_file" : 'X\(//\)$' \| \
9717          X"$ac_file" : 'X\(/\)' \| \
9718          .     : '\(.\)' 2>/dev/null ||
9719 echo X"$ac_file" |
9720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9722           /^X\(\/\/\)$/{ s//\1/; q; }
9723           /^X\(\/\).*/{ s//\1/; q; }
9724           s/.*/./; q'`
9725   { if $as_mkdir_p; then
9726     mkdir -p "$ac_dir"
9727   else
9728     as_dir="$ac_dir"
9729     as_dirs=
9730     while test ! -d "$as_dir"; do
9731       as_dirs="$as_dir $as_dirs"
9732       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9734          X"$as_dir" : 'X\(//\)[^/]' \| \
9735          X"$as_dir" : 'X\(//\)$' \| \
9736          X"$as_dir" : 'X\(/\)' \| \
9737          .     : '\(.\)' 2>/dev/null ||
9738 echo X"$as_dir" |
9739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9740           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9741           /^X\(\/\/\)$/{ s//\1/; q; }
9742           /^X\(\/\).*/{ s//\1/; q; }
9743           s/.*/./; q'`
9744     done
9745     test ! -n "$as_dirs" || mkdir $as_dirs
9746   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9748    { (exit 1); exit 1; }; }; }
9749
9750   ac_builddir=.
9751
9752 if test "$ac_dir" != .; then
9753   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9754   # A "../" for each directory in $ac_dir_suffix.
9755   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9756 else
9757   ac_dir_suffix= ac_top_builddir=
9758 fi
9759
9760 case $srcdir in
9761   .)  # No --srcdir option.  We are building in place.
9762     ac_srcdir=.
9763     if test -z "$ac_top_builddir"; then
9764        ac_top_srcdir=.
9765     else
9766        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9767     fi ;;
9768   [\\/]* | ?:[\\/]* )  # Absolute path.
9769     ac_srcdir=$srcdir$ac_dir_suffix;
9770     ac_top_srcdir=$srcdir ;;
9771   *) # Relative path.
9772     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9773     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9774 esac
9775
9776 # Do not use `cd foo && pwd` to compute absolute paths, because
9777 # the directories may not exist.
9778 case `pwd` in
9779 .) ac_abs_builddir="$ac_dir";;
9780 *)
9781   case "$ac_dir" in
9782   .) ac_abs_builddir=`pwd`;;
9783   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9784   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9785   esac;;
9786 esac
9787 case $ac_abs_builddir in
9788 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9789 *)
9790   case ${ac_top_builddir}. in
9791   .) ac_abs_top_builddir=$ac_abs_builddir;;
9792   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9793   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9794   esac;;
9795 esac
9796 case $ac_abs_builddir in
9797 .) ac_abs_srcdir=$ac_srcdir;;
9798 *)
9799   case $ac_srcdir in
9800   .) ac_abs_srcdir=$ac_abs_builddir;;
9801   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9802   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9803   esac;;
9804 esac
9805 case $ac_abs_builddir in
9806 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9807 *)
9808   case $ac_top_srcdir in
9809   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9810   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9811   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9812   esac;;
9813 esac
9814
9815
9816   case $INSTALL in
9817   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9818   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9819   esac
9820
9821   if test x"$ac_file" != x-; then
9822     { echo "$as_me:$LINENO: creating $ac_file" >&5
9823 echo "$as_me: creating $ac_file" >&6;}
9824     rm -f "$ac_file"
9825   fi
9826   # Let's still pretend it is `configure' which instantiates (i.e., don't
9827   # use $as_me), people would be surprised to read:
9828   #    /* config.h.  Generated by config.status.  */
9829   if test x"$ac_file" = x-; then
9830     configure_input=
9831   else
9832     configure_input="$ac_file.  "
9833   fi
9834   configure_input=$configure_input"Generated from `echo $ac_file_in |
9835                                      sed 's,.*/,,'` by configure."
9836
9837   # First look for the input files in the build tree, otherwise in the
9838   # src tree.
9839   ac_file_inputs=`IFS=:
9840     for f in $ac_file_in; do
9841       case $f in
9842       -) echo $tmp/stdin ;;
9843       [\\/$]*)
9844          # Absolute (can't be DOS-style, as IFS=:)
9845          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9846 echo "$as_me: error: cannot find input file: $f" >&2;}
9847    { (exit 1); exit 1; }; }
9848          echo "$f";;
9849       *) # Relative
9850          if test -f "$f"; then
9851            # Build tree
9852            echo "$f"
9853          elif test -f "$srcdir/$f"; then
9854            # Source tree
9855            echo "$srcdir/$f"
9856          else
9857            # /dev/null tree
9858            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9859 echo "$as_me: error: cannot find input file: $f" >&2;}
9860    { (exit 1); exit 1; }; }
9861          fi;;
9862       esac
9863     done` || { (exit 1); exit 1; }
9864 _ACEOF
9865 cat >>$CONFIG_STATUS <<_ACEOF
9866   sed "$ac_vpsub
9867 $extrasub
9868 _ACEOF
9869 cat >>$CONFIG_STATUS <<\_ACEOF
9870 :t
9871 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9872 s,@configure_input@,$configure_input,;t t
9873 s,@srcdir@,$ac_srcdir,;t t
9874 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9875 s,@top_srcdir@,$ac_top_srcdir,;t t
9876 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9877 s,@builddir@,$ac_builddir,;t t
9878 s,@abs_builddir@,$ac_abs_builddir,;t t
9879 s,@top_builddir@,$ac_top_builddir,;t t
9880 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9881 s,@INSTALL@,$ac_INSTALL,;t t
9882 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9883   rm -f $tmp/stdin
9884   if test x"$ac_file" != x-; then
9885     mv $tmp/out $ac_file
9886   else
9887     cat $tmp/out
9888     rm -f $tmp/out
9889   fi
9890
9891 done
9892 _ACEOF
9893 cat >>$CONFIG_STATUS <<\_ACEOF
9894
9895 #
9896 # CONFIG_HEADER section.
9897 #
9898
9899 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9900 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9901 #
9902 # ac_d sets the value in "#define NAME VALUE" lines.
9903 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9904 ac_dB='[         ].*$,\1#\2'
9905 ac_dC=' '
9906 ac_dD=',;t'
9907 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9908 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9909 ac_uB='$,\1#\2define\3'
9910 ac_uC=' '
9911 ac_uD=',;t'
9912
9913 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9914   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9915   case $ac_file in
9916   - | *:- | *:-:* ) # input from stdin
9917         cat >$tmp/stdin
9918         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9919         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9920   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9921         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9922   * )   ac_file_in=$ac_file.in ;;
9923   esac
9924
9925   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9926 echo "$as_me: creating $ac_file" >&6;}
9927
9928   # First look for the input files in the build tree, otherwise in the
9929   # src tree.
9930   ac_file_inputs=`IFS=:
9931     for f in $ac_file_in; do
9932       case $f in
9933       -) echo $tmp/stdin ;;
9934       [\\/$]*)
9935          # Absolute (can't be DOS-style, as IFS=:)
9936          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9937 echo "$as_me: error: cannot find input file: $f" >&2;}
9938    { (exit 1); exit 1; }; }
9939          # Do quote $f, to prevent DOS paths from being IFS'd.
9940          echo "$f";;
9941       *) # Relative
9942          if test -f "$f"; then
9943            # Build tree
9944            echo "$f"
9945          elif test -f "$srcdir/$f"; then
9946            # Source tree
9947            echo "$srcdir/$f"
9948          else
9949            # /dev/null tree
9950            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9951 echo "$as_me: error: cannot find input file: $f" >&2;}
9952    { (exit 1); exit 1; }; }
9953          fi;;
9954       esac
9955     done` || { (exit 1); exit 1; }
9956   # Remove the trailing spaces.
9957   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9958
9959 _ACEOF
9960
9961 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9962 # `conftest.undefs', that substitutes the proper values into
9963 # config.h.in to produce config.h.  The first handles `#define'
9964 # templates, and the second `#undef' templates.
9965 # And first: Protect against being on the right side of a sed subst in
9966 # config.status.  Protect against being in an unquoted here document
9967 # in config.status.
9968 rm -f conftest.defines conftest.undefs
9969 # Using a here document instead of a string reduces the quoting nightmare.
9970 # Putting comments in sed scripts is not portable.
9971 #
9972 # `end' is used to avoid that the second main sed command (meant for
9973 # 0-ary CPP macros) applies to n-ary macro definitions.
9974 # See the Autoconf documentation for `clear'.
9975 cat >confdef2sed.sed <<\_ACEOF
9976 s/[\\&,]/\\&/g
9977 s,[\\$`],\\&,g
9978 t clear
9979 : clear
9980 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9981 t end
9982 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9983 : end
9984 _ACEOF
9985 # If some macros were called several times there might be several times
9986 # the same #defines, which is useless.  Nevertheless, we may not want to
9987 # sort them, since we want the *last* AC-DEFINE to be honored.
9988 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9989 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9990 rm -f confdef2sed.sed
9991
9992 # This sed command replaces #undef with comments.  This is necessary, for
9993 # example, in the case of _POSIX_SOURCE, which is predefined and required
9994 # on some systems where configure will not decide to define it.
9995 cat >>conftest.undefs <<\_ACEOF
9996 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9997 _ACEOF
9998
9999 # Break up conftest.defines because some shells have a limit on the size
10000 # of here documents, and old seds have small limits too (100 cmds).
10001 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10002 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10003 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10004 echo '  :' >>$CONFIG_STATUS
10005 rm -f conftest.tail
10006 while grep . conftest.defines >/dev/null
10007 do
10008   # Write a limited-size here document to $tmp/defines.sed.
10009   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10010   # Speed up: don't consider the non `#define' lines.
10011   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10012   # Work around the forget-to-reset-the-flag bug.
10013   echo 't clr' >>$CONFIG_STATUS
10014   echo ': clr' >>$CONFIG_STATUS
10015   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10016   echo 'CEOF
10017   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10018   rm -f $tmp/in
10019   mv $tmp/out $tmp/in
10020 ' >>$CONFIG_STATUS
10021   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10022   rm -f conftest.defines
10023   mv conftest.tail conftest.defines
10024 done
10025 rm -f conftest.defines
10026 echo '  fi # grep' >>$CONFIG_STATUS
10027 echo >>$CONFIG_STATUS
10028
10029 # Break up conftest.undefs because some shells have a limit on the size
10030 # of here documents, and old seds have small limits too (100 cmds).
10031 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10032 rm -f conftest.tail
10033 while grep . conftest.undefs >/dev/null
10034 do
10035   # Write a limited-size here document to $tmp/undefs.sed.
10036   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10037   # Speed up: don't consider the non `#undef'
10038   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10039   # Work around the forget-to-reset-the-flag bug.
10040   echo 't clr' >>$CONFIG_STATUS
10041   echo ': clr' >>$CONFIG_STATUS
10042   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10043   echo 'CEOF
10044   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10045   rm -f $tmp/in
10046   mv $tmp/out $tmp/in
10047 ' >>$CONFIG_STATUS
10048   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10049   rm -f conftest.undefs
10050   mv conftest.tail conftest.undefs
10051 done
10052 rm -f conftest.undefs
10053
10054 cat >>$CONFIG_STATUS <<\_ACEOF
10055   # Let's still pretend it is `configure' which instantiates (i.e., don't
10056   # use $as_me), people would be surprised to read:
10057   #    /* config.h.  Generated by config.status.  */
10058   if test x"$ac_file" = x-; then
10059     echo "/* Generated by configure.  */" >$tmp/config.h
10060   else
10061     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10062   fi
10063   cat $tmp/in >>$tmp/config.h
10064   rm -f $tmp/in
10065   if test x"$ac_file" != x-; then
10066     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10067       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10068 echo "$as_me: $ac_file is unchanged" >&6;}
10069     else
10070       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10071 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10072          X"$ac_file" : 'X\(//\)[^/]' \| \
10073          X"$ac_file" : 'X\(//\)$' \| \
10074          X"$ac_file" : 'X\(/\)' \| \
10075          .     : '\(.\)' 2>/dev/null ||
10076 echo X"$ac_file" |
10077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10079           /^X\(\/\/\)$/{ s//\1/; q; }
10080           /^X\(\/\).*/{ s//\1/; q; }
10081           s/.*/./; q'`
10082       { if $as_mkdir_p; then
10083     mkdir -p "$ac_dir"
10084   else
10085     as_dir="$ac_dir"
10086     as_dirs=
10087     while test ! -d "$as_dir"; do
10088       as_dirs="$as_dir $as_dirs"
10089       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10091          X"$as_dir" : 'X\(//\)[^/]' \| \
10092          X"$as_dir" : 'X\(//\)$' \| \
10093          X"$as_dir" : 'X\(/\)' \| \
10094          .     : '\(.\)' 2>/dev/null ||
10095 echo X"$as_dir" |
10096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10097           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10098           /^X\(\/\/\)$/{ s//\1/; q; }
10099           /^X\(\/\).*/{ s//\1/; q; }
10100           s/.*/./; q'`
10101     done
10102     test ! -n "$as_dirs" || mkdir $as_dirs
10103   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10104 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10105    { (exit 1); exit 1; }; }; }
10106
10107       rm -f $ac_file
10108       mv $tmp/config.h $ac_file
10109     fi
10110   else
10111     cat $tmp/config.h
10112     rm -f $tmp/config.h
10113   fi
10114 # Compute $ac_file's index in $config_headers.
10115 _am_stamp_count=1
10116 for _am_header in $config_headers :; do
10117   case $_am_header in
10118     $ac_file | $ac_file:* )
10119       break ;;
10120     * )
10121       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10122   esac
10123 done
10124 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10125 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10126          X$ac_file : 'X\(//\)[^/]' \| \
10127          X$ac_file : 'X\(//\)$' \| \
10128          X$ac_file : 'X\(/\)' \| \
10129          .     : '\(.\)' 2>/dev/null ||
10130 echo X$ac_file |
10131     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10132           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10133           /^X\(\/\/\)$/{ s//\1/; q; }
10134           /^X\(\/\).*/{ s//\1/; q; }
10135           s/.*/./; q'`/stamp-h$_am_stamp_count
10136 done
10137 _ACEOF
10138 cat >>$CONFIG_STATUS <<\_ACEOF
10139
10140 #
10141 # CONFIG_COMMANDS section.
10142 #
10143 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10144   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10145   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10146   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10147 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10148          X"$ac_dest" : 'X\(//\)[^/]' \| \
10149          X"$ac_dest" : 'X\(//\)$' \| \
10150          X"$ac_dest" : 'X\(/\)' \| \
10151          .     : '\(.\)' 2>/dev/null ||
10152 echo X"$ac_dest" |
10153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10155           /^X\(\/\/\)$/{ s//\1/; q; }
10156           /^X\(\/\).*/{ s//\1/; q; }
10157           s/.*/./; q'`
10158   { if $as_mkdir_p; then
10159     mkdir -p "$ac_dir"
10160   else
10161     as_dir="$ac_dir"
10162     as_dirs=
10163     while test ! -d "$as_dir"; do
10164       as_dirs="$as_dir $as_dirs"
10165       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10167          X"$as_dir" : 'X\(//\)[^/]' \| \
10168          X"$as_dir" : 'X\(//\)$' \| \
10169          X"$as_dir" : 'X\(/\)' \| \
10170          .     : '\(.\)' 2>/dev/null ||
10171 echo X"$as_dir" |
10172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10174           /^X\(\/\/\)$/{ s//\1/; q; }
10175           /^X\(\/\).*/{ s//\1/; q; }
10176           s/.*/./; q'`
10177     done
10178     test ! -n "$as_dirs" || mkdir $as_dirs
10179   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10180 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10181    { (exit 1); exit 1; }; }; }
10182
10183   ac_builddir=.
10184
10185 if test "$ac_dir" != .; then
10186   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10187   # A "../" for each directory in $ac_dir_suffix.
10188   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10189 else
10190   ac_dir_suffix= ac_top_builddir=
10191 fi
10192
10193 case $srcdir in
10194   .)  # No --srcdir option.  We are building in place.
10195     ac_srcdir=.
10196     if test -z "$ac_top_builddir"; then
10197        ac_top_srcdir=.
10198     else
10199        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10200     fi ;;
10201   [\\/]* | ?:[\\/]* )  # Absolute path.
10202     ac_srcdir=$srcdir$ac_dir_suffix;
10203     ac_top_srcdir=$srcdir ;;
10204   *) # Relative path.
10205     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10206     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10207 esac
10208
10209 # Do not use `cd foo && pwd` to compute absolute paths, because
10210 # the directories may not exist.
10211 case `pwd` in
10212 .) ac_abs_builddir="$ac_dir";;
10213 *)
10214   case "$ac_dir" in
10215   .) ac_abs_builddir=`pwd`;;
10216   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10217   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10218   esac;;
10219 esac
10220 case $ac_abs_builddir in
10221 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10222 *)
10223   case ${ac_top_builddir}. in
10224   .) ac_abs_top_builddir=$ac_abs_builddir;;
10225   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10226   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10227   esac;;
10228 esac
10229 case $ac_abs_builddir in
10230 .) ac_abs_srcdir=$ac_srcdir;;
10231 *)
10232   case $ac_srcdir in
10233   .) ac_abs_srcdir=$ac_abs_builddir;;
10234   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10235   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10236   esac;;
10237 esac
10238 case $ac_abs_builddir in
10239 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10240 *)
10241   case $ac_top_srcdir in
10242   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10243   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10244   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10245   esac;;
10246 esac
10247
10248
10249   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10250 echo "$as_me: executing $ac_dest commands" >&6;}
10251   case $ac_dest in
10252     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10253   # Strip MF so we end up with the name of the file.
10254   mf=`echo "$mf" | sed -e 's/:.*$//'`
10255   # Check whether this is an Automake generated Makefile or not.
10256   # We used to match only the files named `Makefile.in', but
10257   # some people rename them; so instead we look at the file content.
10258   # Grep'ing the first line is not enough: some people post-process
10259   # each Makefile.in and add a new line on top of each file to say so.
10260   # So let's grep whole file.
10261   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10262     dirpart=`(dirname "$mf") 2>/dev/null ||
10263 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10264          X"$mf" : 'X\(//\)[^/]' \| \
10265          X"$mf" : 'X\(//\)$' \| \
10266          X"$mf" : 'X\(/\)' \| \
10267          .     : '\(.\)' 2>/dev/null ||
10268 echo X"$mf" |
10269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10271           /^X\(\/\/\)$/{ s//\1/; q; }
10272           /^X\(\/\).*/{ s//\1/; q; }
10273           s/.*/./; q'`
10274   else
10275     continue
10276   fi
10277   # Extract the definition of DEPDIR, am__include, and am__quote
10278   # from the Makefile without running `make'.
10279   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10280   test -z "$DEPDIR" && continue
10281   am__include=`sed -n 's/^am__include = //p' < "$mf"`
10282   test -z "am__include" && continue
10283   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10284   # When using ansi2knr, U may be empty or an underscore; expand it
10285   U=`sed -n 's/^U = //p' < "$mf"`
10286   # Find all dependency output files, they are included files with
10287   # $(DEPDIR) in their names.  We invoke sed twice because it is the
10288   # simplest approach to changing $(DEPDIR) to its actual value in the
10289   # expansion.
10290   for file in `sed -n "
10291     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10292        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10293     # Make sure the directory exists.
10294     test -f "$dirpart/$file" && continue
10295     fdir=`(dirname "$file") 2>/dev/null ||
10296 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10297          X"$file" : 'X\(//\)[^/]' \| \
10298          X"$file" : 'X\(//\)$' \| \
10299          X"$file" : 'X\(/\)' \| \
10300          .     : '\(.\)' 2>/dev/null ||
10301 echo X"$file" |
10302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10304           /^X\(\/\/\)$/{ s//\1/; q; }
10305           /^X\(\/\).*/{ s//\1/; q; }
10306           s/.*/./; q'`
10307     { if $as_mkdir_p; then
10308     mkdir -p $dirpart/$fdir
10309   else
10310     as_dir=$dirpart/$fdir
10311     as_dirs=
10312     while test ! -d "$as_dir"; do
10313       as_dirs="$as_dir $as_dirs"
10314       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10316          X"$as_dir" : 'X\(//\)[^/]' \| \
10317          X"$as_dir" : 'X\(//\)$' \| \
10318          X"$as_dir" : 'X\(/\)' \| \
10319          .     : '\(.\)' 2>/dev/null ||
10320 echo X"$as_dir" |
10321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10323           /^X\(\/\/\)$/{ s//\1/; q; }
10324           /^X\(\/\).*/{ s//\1/; q; }
10325           s/.*/./; q'`
10326     done
10327     test ! -n "$as_dirs" || mkdir $as_dirs
10328   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10329 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10330    { (exit 1); exit 1; }; }; }
10331
10332     # echo "creating $dirpart/$file"
10333     echo '# dummy' > "$dirpart/$file"
10334   done
10335 done
10336  ;;
10337     default-1 )
10338     for ac_file in $CONFIG_FILES; do
10339       # Support "outfile[:infile[:infile...]]"
10340       case "$ac_file" in
10341         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10342       esac
10343       # PO directories have a Makefile.in generated from Makefile.in.in.
10344       case "$ac_file" in */Makefile.in)
10345         # Adjust a relative srcdir.
10346         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10347         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10348         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10349         # In autoconf-2.13 it is called $ac_given_srcdir.
10350         # In autoconf-2.50 it is called $srcdir.
10351         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10352         case "$ac_given_srcdir" in
10353           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10354           /*) top_srcdir="$ac_given_srcdir" ;;
10355           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10356         esac
10357         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10358           rm -f "$ac_dir/POTFILES"
10359           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10360           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10361           POMAKEFILEDEPS="POTFILES.in"
10362           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10363           # on $ac_dir but don't depend on user-specified configuration
10364           # parameters.
10365           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10366             # The LINGUAS file contains the set of available languages.
10367             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10368               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10369             fi
10370             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10371             # Hide the ALL_LINGUAS assigment from automake.
10372             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10373             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10374           else
10375             # The set of available languages was given in configure.in.
10376             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10377           fi
10378           case "$ac_given_srcdir" in
10379             .) srcdirpre= ;;
10380             *) srcdirpre='$(srcdir)/' ;;
10381           esac
10382           POFILES=
10383           GMOFILES=
10384           UPDATEPOFILES=
10385           DUMMYPOFILES=
10386           for lang in $ALL_LINGUAS; do
10387             POFILES="$POFILES $srcdirpre$lang.po"
10388             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10389             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10390             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10391           done
10392           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10393           # environment variable.
10394           INST_LINGUAS=
10395           if test -n "$ALL_LINGUAS"; then
10396             for presentlang in $ALL_LINGUAS; do
10397               useit=no
10398               if test "%UNSET%" != "$LINGUAS"; then
10399                 desiredlanguages="$LINGUAS"
10400               else
10401                 desiredlanguages="$ALL_LINGUAS"
10402               fi
10403               for desiredlang in $desiredlanguages; do
10404                 # Use the presentlang catalog if desiredlang is
10405                 #   a. equal to presentlang, or
10406                 #   b. a variant of presentlang (because in this case,
10407                 #      presentlang can be used as a fallback for messages
10408                 #      which are not translated in the desiredlang catalog).
10409                 case "$desiredlang" in
10410                   "$presentlang"*) useit=yes;;
10411                 esac
10412               done
10413               if test $useit = yes; then
10414                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10415               fi
10416             done
10417           fi
10418           CATALOGS=
10419           if test -n "$INST_LINGUAS"; then
10420             for lang in $INST_LINGUAS; do
10421               CATALOGS="$CATALOGS $lang.gmo"
10422             done
10423           fi
10424           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10425           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10426           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10427             if test -f "$f"; then
10428               case "$f" in
10429                 *.orig | *.bak | *~) ;;
10430                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10431               esac
10432             fi
10433           done
10434         fi
10435         ;;
10436       esac
10437     done ;;
10438     default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
10439  echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
10440  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
10441  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
10442  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
10443  if test "x$cgen_cpu_prefix" != x ; then
10444    echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
10445  fi ;;
10446   esac
10447 done
10448 _ACEOF
10449
10450 cat >>$CONFIG_STATUS <<\_ACEOF
10451
10452 { (exit 0); exit 0; }
10453 _ACEOF
10454 chmod +x $CONFIG_STATUS
10455 ac_clean_files=$ac_clean_files_save
10456
10457
10458 # configure is writing to config.log, and then calls config.status.
10459 # config.status does its own redirection, appending to config.log.
10460 # Unfortunately, on DOS this fails, as config.log is still kept open
10461 # by configure, so config.status won't be able to write to it; its
10462 # output is simply discarded.  So we exec the FD to /dev/null,
10463 # effectively closing config.log, so it can be properly (re)opened and
10464 # appended to by config.status.  When coming back to configure, we
10465 # need to make the FD available again.
10466 if test "$no_create" != yes; then
10467   ac_cs_success=:
10468   ac_config_status_args=
10469   test "$silent" = yes &&
10470     ac_config_status_args="$ac_config_status_args --quiet"
10471   exec 5>/dev/null
10472   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10473   exec 5>>config.log
10474   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10475   # would make configure fail if this is the last instruction.
10476   $ac_cs_success || { (exit 1); exit 1; }
10477 fi
10478