* config-gas.com: Mark vax-vms as obsolete.
[external/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 GDBINIT cgen_cpu_prefix extra_objects target_cpu_type obj_format te_file install_tooldir atof BFDLIB OPCODES_LIB BFDVER_H ALL_OBJ_DEPS YACC LEX LEXLIB LEX_OUTPUT_ROOT CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBM 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-bfd-assembler  use BFD back end for writing object files
860     targets            alternative target configurations besides the primary
861   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
862   --enable-build-warnings Enable build-time compiler warnings if gcc is used
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   --with-included-gettext use the GNU gettext library included here
873
874 Some influential environment variables:
875   CC          C compiler command
876   CFLAGS      C compiler flags
877   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
878               nonstandard directory <lib dir>
879   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
880               headers in a nonstandard directory <include dir>
881   CPP         C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890   # If there are subdirs, report their specific --help.
891   ac_popdir=`pwd`
892   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893     test -d $ac_dir || continue
894     ac_builddir=.
895
896 if test "$ac_dir" != .; then
897   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898   # A "../" for each directory in $ac_dir_suffix.
899   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901   ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905   .)  # No --srcdir option.  We are building in place.
906     ac_srcdir=.
907     if test -z "$ac_top_builddir"; then
908        ac_top_srcdir=.
909     else
910        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911     fi ;;
912   [\\/]* | ?:[\\/]* )  # Absolute path.
913     ac_srcdir=$srcdir$ac_dir_suffix;
914     ac_top_srcdir=$srcdir ;;
915   *) # Relative path.
916     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917     ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925   case "$ac_dir" in
926   .) ac_abs_builddir=`pwd`;;
927   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928   *) ac_abs_builddir=`pwd`/"$ac_dir";;
929   esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934   case ${ac_top_builddir}. in
935   .) ac_abs_top_builddir=$ac_abs_builddir;;
936   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938   esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943   case $ac_srcdir in
944   .) ac_abs_srcdir=$ac_abs_builddir;;
945   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947   esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952   case $ac_top_srcdir in
953   .) ac_abs_top_srcdir=$ac_abs_builddir;;
954   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956   esac;;
957 esac
958
959     cd $ac_dir
960     # Check for guested configure; otherwise get Cygnus style configure.
961     if test -f $ac_srcdir/configure.gnu; then
962       echo
963       $SHELL $ac_srcdir/configure.gnu  --help=recursive
964     elif test -f $ac_srcdir/configure; then
965       echo
966       $SHELL $ac_srcdir/configure  --help=recursive
967     elif test -f $ac_srcdir/configure.ac ||
968            test -f $ac_srcdir/configure.in; then
969       echo
970       $ac_configure --help
971     else
972       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973     fi
974     cd "$ac_popdir"
975   done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980   cat <<\_ACEOF
981
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056   for ac_arg
1057   do
1058     case $ac_arg in
1059     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061     | -silent | --silent | --silen | --sile | --sil)
1062       continue ;;
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065     esac
1066     case $ac_pass in
1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068     2)
1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070       if test $ac_must_keep_next = true; then
1071         ac_must_keep_next=false # Got value, back to normal.
1072       else
1073         case $ac_arg in
1074           *=* | --config-cache | -C | -disable-* | --disable-* \
1075           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077           | -with-* | --with-* | -without-* | --without-* | --x)
1078             case "$ac_configure_args0 " in
1079               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080             esac
1081             ;;
1082           -* ) ac_must_keep_next=true ;;
1083         esac
1084       fi
1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086       # Get rid of the leading space.
1087       ac_sep=" "
1088       ;;
1089     esac
1090   done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log.  We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101   # Save into config.log some information that might help in debugging.
1102   {
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110     echo
1111     # The following way of writing the cache mishandles newlines in values,
1112 {
1113   (set) 2>&1 |
1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115     *ac_space=\ *)
1116       sed -n \
1117         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119       ;;
1120     *)
1121       sed -n \
1122         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123       ;;
1124     esac;
1125 }
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133     echo
1134     for ac_var in $ac_subst_vars
1135     do
1136       eval ac_val=$`echo $ac_var`
1137       echo "$ac_var='"'"'$ac_val'"'"'"
1138     done | sort
1139     echo
1140
1141     if test -n "$ac_subst_files"; then
1142       cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147       echo
1148       for ac_var in $ac_subst_files
1149       do
1150         eval ac_val=$`echo $ac_var`
1151         echo "$ac_var='"'"'$ac_val'"'"'"
1152       done | sort
1153       echo
1154     fi
1155
1156     if test -s confdefs.h; then
1157       cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162       echo
1163       sed "/^$/d" confdefs.h | sort
1164       echo
1165     fi
1166     test "$ac_signal" != 0 &&
1167       echo "$as_me: caught signal $ac_signal"
1168     echo "$as_me: exit $exit_status"
1169   } >&5
1170   rm -f core *.core &&
1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172     exit $exit_status
1173      ' 0
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214   if test "x$prefix" != xNONE; then
1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216   else
1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218   fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221   if test -r "$ac_site_file"; then
1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230   # Some versions of bash will fail to source /dev/null (special
1231   # files actually), so we avoid doing that.
1232   if test -f "$cache_file"; then
1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252   eval ac_new_set=\$ac_env_${ac_var}_set
1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254   eval ac_new_val="\$ac_env_${ac_var}_value"
1255   case $ac_old_set,$ac_new_set in
1256     set,)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,set)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,);;
1265     *)
1266       if test "x$ac_old_val" != "x$ac_new_val"; then
1267         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$as_me:   current value: $ac_new_val" >&2;}
1273         ac_cache_corrupted=:
1274       fi;;
1275   esac
1276   # Pass precious variables to config.status.
1277   if test "$ac_new_set" = set; then
1278     case $ac_new_val in
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     *) ac_arg=$ac_var=$ac_new_val ;;
1282     esac
1283     case " $ac_configure_args " in
1284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286     esac
1287   fi
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 ac_aux_dir=
1323 for ac_dir in .. $srcdir/..; do
1324   if test -f $ac_dir/install-sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install-sh -c"
1327     break
1328   elif test -f $ac_dir/install.sh; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/install.sh -c"
1331     break
1332   elif test -f $ac_dir/shtool; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/shtool install -c"
1335     break
1336   fi
1337 done
1338 if test -z "$ac_aux_dir"; then
1339   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1341    { (exit 1); exit 1; }; }
1342 fi
1343 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347 # Make sure we can run config.sub.
1348 $ac_config_sub sun4 >/dev/null 2>&1 ||
1349   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 echo "$as_me:$LINENO: checking build system type" >&5
1354 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355 if test "${ac_cv_build+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358   ac_cv_build_alias=$build_alias
1359 test -z "$ac_cv_build_alias" &&
1360   ac_cv_build_alias=`$ac_config_guess`
1361 test -z "$ac_cv_build_alias" &&
1362   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364    { (exit 1); exit 1; }; }
1365 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368    { (exit 1); exit 1; }; }
1369
1370 fi
1371 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372 echo "${ECHO_T}$ac_cv_build" >&6
1373 build=$ac_cv_build
1374 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379 echo "$as_me:$LINENO: checking host system type" >&5
1380 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381 if test "${ac_cv_host+set}" = set; then
1382   echo $ECHO_N "(cached) $ECHO_C" >&6
1383 else
1384   ac_cv_host_alias=$host_alias
1385 test -z "$ac_cv_host_alias" &&
1386   ac_cv_host_alias=$ac_cv_build_alias
1387 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390    { (exit 1); exit 1; }; }
1391
1392 fi
1393 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394 echo "${ECHO_T}$ac_cv_host" >&6
1395 host=$ac_cv_host
1396 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401 echo "$as_me:$LINENO: checking target system type" >&5
1402 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403 if test "${ac_cv_target+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_target_alias=$target_alias
1407 test "x$ac_cv_target_alias" = "x" &&
1408   ac_cv_target_alias=$ac_cv_host_alias
1409 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416 echo "${ECHO_T}$ac_cv_target" >&6
1417 target=$ac_cv_target
1418 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423 # The aliases save the names the user supplied, while $host etc.
1424 # will get canonicalized.
1425 test -n "$target_alias" &&
1426   test "$program_prefix$program_suffix$program_transform_name" = \
1427     NONENONEs,x,x, &&
1428   program_prefix=${target_alias}-
1429 ac_ext=c
1430 ac_cpp='$CPP $CPPFLAGS'
1431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434 if test -n "$ac_tool_prefix"; then
1435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_CC+set}" = set; then
1440   echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442   if test -n "$CC"; then
1443   ac_cv_prog_CC="$CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   for ac_exec_ext in '' $ac_executable_extensions; do
1451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454     break 2
1455   fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 CC=$ac_cv_prog_CC
1462 if test -n "$CC"; then
1463   echo "$as_me:$LINENO: result: $CC" >&5
1464 echo "${ECHO_T}$CC" >&6
1465 else
1466   echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 fi
1471 if test -z "$ac_cv_prog_CC"; then
1472   ac_ct_CC=$CC
1473   # Extract the first word of "gcc", so it can be a program name with args.
1474 set dummy gcc; ac_word=$2
1475 echo "$as_me:$LINENO: checking for $ac_word" >&5
1476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478   echo $ECHO_N "(cached) $ECHO_C" >&6
1479 else
1480   if test -n "$ac_ct_CC"; then
1481   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482 else
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486   IFS=$as_save_IFS
1487   test -z "$as_dir" && as_dir=.
1488   for ac_exec_ext in '' $ac_executable_extensions; do
1489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490     ac_cv_prog_ac_ct_CC="gcc"
1491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492     break 2
1493   fi
1494 done
1495 done
1496
1497 fi
1498 fi
1499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500 if test -n "$ac_ct_CC"; then
1501   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502 echo "${ECHO_T}$ac_ct_CC" >&6
1503 else
1504   echo "$as_me:$LINENO: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1506 fi
1507
1508   CC=$ac_ct_CC
1509 else
1510   CC="$ac_cv_prog_CC"
1511 fi
1512
1513 if test -z "$CC"; then
1514   if test -n "$ac_tool_prefix"; then
1515   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516 set dummy ${ac_tool_prefix}cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_CC+set}" = set; then
1520   echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522   if test -n "$CC"; then
1523   ac_cv_prog_CC="$CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528   IFS=$as_save_IFS
1529   test -z "$as_dir" && as_dir=.
1530   for ac_exec_ext in '' $ac_executable_extensions; do
1531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532     ac_cv_prog_CC="${ac_tool_prefix}cc"
1533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534     break 2
1535   fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 CC=$ac_cv_prog_CC
1542 if test -n "$CC"; then
1543   echo "$as_me:$LINENO: result: $CC" >&5
1544 echo "${ECHO_T}$CC" >&6
1545 else
1546   echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 fi
1551 if test -z "$ac_cv_prog_CC"; then
1552   ac_ct_CC=$CC
1553   # Extract the first word of "cc", so it can be a program name with args.
1554 set dummy cc; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$ac_ct_CC"; then
1561   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_ac_ct_CC="cc"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580 if test -n "$ac_ct_CC"; then
1581   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582 echo "${ECHO_T}$ac_ct_CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588   CC=$ac_ct_CC
1589 else
1590   CC="$ac_cv_prog_CC"
1591 fi
1592
1593 fi
1594 if test -z "$CC"; then
1595   # Extract the first word of "cc", so it can be a program name with args.
1596 set dummy cc; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   if test -n "$CC"; then
1603   ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605   ac_prog_rejected=no
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614        ac_prog_rejected=yes
1615        continue
1616      fi
1617     ac_cv_prog_CC="cc"
1618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619     break 2
1620   fi
1621 done
1622 done
1623
1624 if test $ac_prog_rejected = yes; then
1625   # We found a bogon in the path, so make sure we never use it.
1626   set dummy $ac_cv_prog_CC
1627   shift
1628   if test $# != 0; then
1629     # We chose a different compiler from the bogus one.
1630     # However, it has the same basename, so the bogon will be chosen
1631     # first if we set CC to just the basename; use the full file name.
1632     shift
1633     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634   fi
1635 fi
1636 fi
1637 fi
1638 CC=$ac_cv_prog_CC
1639 if test -n "$CC"; then
1640   echo "$as_me:$LINENO: result: $CC" >&5
1641 echo "${ECHO_T}$CC" >&6
1642 else
1643   echo "$as_me:$LINENO: result: no" >&5
1644 echo "${ECHO_T}no" >&6
1645 fi
1646
1647 fi
1648 if test -z "$CC"; then
1649   if test -n "$ac_tool_prefix"; then
1650   for ac_prog in cl
1651   do
1652     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654 echo "$as_me:$LINENO: checking for $ac_word" >&5
1655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656 if test "${ac_cv_prog_CC+set}" = set; then
1657   echo $ECHO_N "(cached) $ECHO_C" >&6
1658 else
1659   if test -n "$CC"; then
1660   ac_cv_prog_CC="$CC" # Let the user override the test.
1661 else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   for ac_exec_ext in '' $ac_executable_extensions; do
1668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671     break 2
1672   fi
1673 done
1674 done
1675
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687     test -n "$CC" && break
1688   done
1689 fi
1690 if test -z "$CC"; then
1691   ac_ct_CC=$CC
1692   for ac_prog in cl
1693 do
1694   # Extract the first word of "$ac_prog", so it can be a program name with args.
1695 set dummy $ac_prog; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$ac_ct_CC"; then
1702   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_ac_ct_CC="$ac_prog"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721 if test -n "$ac_ct_CC"; then
1722   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723 echo "${ECHO_T}$ac_ct_CC" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729   test -n "$ac_ct_CC" && break
1730 done
1731
1732   CC=$ac_ct_CC
1733 fi
1734
1735 fi
1736
1737
1738 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: no acceptable C compiler found in \$PATH
1741 See \`config.log' for more details." >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 # Provide some information about the compiler.
1745 echo "$as_me:$LINENO:" \
1746      "checking for C compiler version" >&5
1747 ac_compiler=`set X $ac_compile; echo $2`
1748 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749   (eval $ac_compiler --version </dev/null >&5) 2>&5
1750   ac_status=$?
1751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752   (exit $ac_status); }
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754   (eval $ac_compiler -v </dev/null >&5) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759   (eval $ac_compiler -V </dev/null >&5) 2>&5
1760   ac_status=$?
1761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762   (exit $ac_status); }
1763
1764 cat >conftest.$ac_ext <<_ACEOF
1765 /* confdefs.h.  */
1766 _ACEOF
1767 cat confdefs.h >>conftest.$ac_ext
1768 cat >>conftest.$ac_ext <<_ACEOF
1769 /* end confdefs.h.  */
1770
1771 int
1772 main ()
1773 {
1774
1775   ;
1776   return 0;
1777 }
1778 _ACEOF
1779 ac_clean_files_save=$ac_clean_files
1780 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781 # Try to create an executable without -o first, disregard a.out.
1782 # It will help us diagnose broken compilers, and finding out an intuition
1783 # of exeext.
1784 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788   (eval $ac_link_default) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }; then
1792   # Find the output, starting from the most likely.  This scheme is
1793 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794 # resort.
1795
1796 # Be careful to initialize this variable, since it used to be cached.
1797 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798 ac_cv_exeext=
1799 # b.out is created by i960 compilers.
1800 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801 do
1802   test -f "$ac_file" || continue
1803   case $ac_file in
1804     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805         ;;
1806     conftest.$ac_ext )
1807         # This is the source file.
1808         ;;
1809     [ab].out )
1810         # We found the default executable, but exeext='' is most
1811         # certainly right.
1812         break;;
1813     *.* )
1814         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815         # FIXME: I believe we export ac_cv_exeext for Libtool,
1816         # but it would be cool to find out if it's true.  Does anybody
1817         # maintain Libtool? --akim.
1818         export ac_cv_exeext
1819         break;;
1820     * )
1821         break;;
1822   esac
1823 done
1824 else
1825   echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: C compiler cannot create executables
1831 See \`config.log' for more details." >&2;}
1832    { (exit 77); exit 77; }; }
1833 fi
1834
1835 ac_exeext=$ac_cv_exeext
1836 echo "$as_me:$LINENO: result: $ac_file" >&5
1837 echo "${ECHO_T}$ac_file" >&6
1838
1839 # Check the compiler produces executables we can run.  If not, either
1840 # the compiler is broken, or we cross compile.
1841 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844 # If not cross compiling, check that we can run a simple program.
1845 if test "$cross_compiling" != yes; then
1846   if { ac_try='./$ac_file'
1847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848   (eval $ac_try) 2>&5
1849   ac_status=$?
1850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851   (exit $ac_status); }; }; then
1852     cross_compiling=no
1853   else
1854     if test "$cross_compiling" = maybe; then
1855         cross_compiling=yes
1856     else
1857         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&5
1860 echo "$as_me: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&2;}
1863    { (exit 1); exit 1; }; }
1864     fi
1865   fi
1866 fi
1867 echo "$as_me:$LINENO: result: yes" >&5
1868 echo "${ECHO_T}yes" >&6
1869
1870 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871 ac_clean_files=$ac_clean_files_save
1872 # Check the compiler produces executables we can run.  If not, either
1873 # the compiler is broken, or we cross compile.
1874 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877 echo "${ECHO_T}$cross_compiling" >&6
1878
1879 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882   (eval $ac_link) 2>&5
1883   ac_status=$?
1884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885   (exit $ac_status); }; then
1886   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1888 # work properly (i.e., refer to `conftest.exe'), while it won't with
1889 # `rm'.
1890 for ac_file in conftest.exe conftest conftest.*; do
1891   test -f "$ac_file" || continue
1892   case $ac_file in
1893     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895           export ac_cv_exeext
1896           break;;
1897     * ) break;;
1898   esac
1899 done
1900 else
1901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904 See \`config.log' for more details." >&2;}
1905    { (exit 1); exit 1; }; }
1906 fi
1907
1908 rm -f conftest$ac_cv_exeext
1909 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910 echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912 rm -f conftest.$ac_ext
1913 EXEEXT=$ac_cv_exeext
1914 ac_exeext=$EXEEXT
1915 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917 if test "${ac_cv_objext+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   cat >conftest.$ac_ext <<_ACEOF
1921 /* confdefs.h.  */
1922 _ACEOF
1923 cat confdefs.h >>conftest.$ac_ext
1924 cat >>conftest.$ac_ext <<_ACEOF
1925 /* end confdefs.h.  */
1926
1927 int
1928 main ()
1929 {
1930
1931   ;
1932   return 0;
1933 }
1934 _ACEOF
1935 rm -f conftest.o conftest.obj
1936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937   (eval $ac_compile) 2>&5
1938   ac_status=$?
1939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940   (exit $ac_status); }; then
1941   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942   case $ac_file in
1943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945        break;;
1946   esac
1947 done
1948 else
1949   echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1951
1952 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955 See \`config.log' for more details." >&2;}
1956    { (exit 1); exit 1; }; }
1957 fi
1958
1959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962 echo "${ECHO_T}$ac_cv_objext" >&6
1963 OBJEXT=$ac_cv_objext
1964 ac_objext=$OBJEXT
1965 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   cat >conftest.$ac_ext <<_ACEOF
1971 /* confdefs.h.  */
1972 _ACEOF
1973 cat confdefs.h >>conftest.$ac_ext
1974 cat >>conftest.$ac_ext <<_ACEOF
1975 /* end confdefs.h.  */
1976
1977 int
1978 main ()
1979 {
1980 #ifndef __GNUC__
1981        choke me
1982 #endif
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990   (eval $ac_compile) 2>conftest.er1
1991   ac_status=$?
1992   grep -v '^ *+' conftest.er1 >conftest.err
1993   rm -f conftest.er1
1994   cat conftest.err >&5
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); } &&
1997          { ac_try='test -z "$ac_c_werror_flag"                   || 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"                   || test ! -s conftest.err'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; } &&
2061          { ac_try='test -s conftest.$ac_objext'
2062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067   ac_cv_prog_cc_g=yes
2068 else
2069   echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_cv_prog_cc_g=no
2073 fi
2074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2078 if test "$ac_test_CFLAGS" = set; then
2079   CFLAGS=$ac_save_CFLAGS
2080 elif test $ac_cv_prog_cc_g = yes; then
2081   if test "$GCC" = yes; then
2082     CFLAGS="-g -O2"
2083   else
2084     CFLAGS="-g"
2085   fi
2086 else
2087   if test "$GCC" = yes; then
2088     CFLAGS="-O2"
2089   else
2090     CFLAGS=
2091   fi
2092 fi
2093 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2094 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2095 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   ac_cv_prog_cc_stdc=no
2099 ac_save_CC=$CC
2100 cat >conftest.$ac_ext <<_ACEOF
2101 /* confdefs.h.  */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h.  */
2106 #include <stdarg.h>
2107 #include <stdio.h>
2108 #include <sys/types.h>
2109 #include <sys/stat.h>
2110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2111 struct buf { int x; };
2112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2113 static char *e (p, i)
2114      char **p;
2115      int i;
2116 {
2117   return p[i];
2118 }
2119 static char *f (char * (*g) (char **, int), char **p, ...)
2120 {
2121   char *s;
2122   va_list v;
2123   va_start (v,p);
2124   s = g (p, va_arg (v,int));
2125   va_end (v);
2126   return s;
2127 }
2128
2129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2130    function prototypes and stuff, but not '\xHH' hex character constants.
2131    These don't provoke an error unfortunately, instead are silently treated
2132    as 'x'.  The following induces an error, until -std1 is added to get
2133    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2134    array size at least.  It's necessary to write '\x00'==0 to get something
2135    that's true only with -std1.  */
2136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2137
2138 int test (int i, double x);
2139 struct s1 {int (*f) (int a);};
2140 struct s2 {int (*f) (double a);};
2141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2142 int argc;
2143 char **argv;
2144 int
2145 main ()
2146 {
2147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 # Don't try gcc -ansi; that turns off useful extensions and
2153 # breaks some systems' header files.
2154 # AIX                   -qlanglvl=ansi
2155 # Ultrix and OSF/1      -std1
2156 # HP-UX 10.20 and later -Ae
2157 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2158 # SVR4                  -Xc -D__EXTENSIONS__
2159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2160 do
2161   CC="$ac_save_CC $ac_arg"
2162   rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164   (eval $ac_compile) 2>conftest.er1
2165   ac_status=$?
2166   grep -v '^ *+' conftest.er1 >conftest.err
2167   rm -f conftest.er1
2168   cat conftest.err >&5
2169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170   (exit $ac_status); } &&
2171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173   (eval $ac_try) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; } &&
2177          { ac_try='test -s conftest.$ac_objext'
2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; }; then
2183   ac_cv_prog_cc_stdc=$ac_arg
2184 break
2185 else
2186   echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 fi
2190 rm -f conftest.err conftest.$ac_objext
2191 done
2192 rm -f conftest.$ac_ext conftest.$ac_objext
2193 CC=$ac_save_CC
2194
2195 fi
2196
2197 case "x$ac_cv_prog_cc_stdc" in
2198   x|xno)
2199     echo "$as_me:$LINENO: result: none needed" >&5
2200 echo "${ECHO_T}none needed" >&6 ;;
2201   *)
2202     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204     CC="$CC $ac_cv_prog_cc_stdc" ;;
2205 esac
2206
2207 # Some people use a C++ compiler to compile C.  Since we use `exit',
2208 # in C++ we need to declare it.  In case someone uses the same compiler
2209 # for both compiling C and C++ we need to have the C++ compiler decide
2210 # the declaration of exit, since it's the most demanding environment.
2211 cat >conftest.$ac_ext <<_ACEOF
2212 #ifndef __cplusplus
2213   choke me
2214 #endif
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218   (eval $ac_compile) 2>conftest.er1
2219   ac_status=$?
2220   grep -v '^ *+' conftest.er1 >conftest.err
2221   rm -f conftest.er1
2222   cat conftest.err >&5
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); } &&
2225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; } &&
2231          { ac_try='test -s conftest.$ac_objext'
2232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2233   (eval $ac_try) 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; }; then
2237   for ac_declaration in \
2238    '' \
2239    'extern "C" void std::exit (int) throw (); using std::exit;' \
2240    'extern "C" void std::exit (int); using std::exit;' \
2241    'extern "C" void exit (int) throw ();' \
2242    'extern "C" void exit (int);' \
2243    'void exit (int);'
2244 do
2245   cat >conftest.$ac_ext <<_ACEOF
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 $ac_declaration
2252 #include <stdlib.h>
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>conftest.er1
2264   ac_status=$?
2265   grep -v '^ *+' conftest.er1 >conftest.err
2266   rm -f conftest.er1
2267   cat conftest.err >&5
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); } &&
2270          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272   (eval $ac_try) 2>&5
2273   ac_status=$?
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); }; } &&
2276          { ac_try='test -s conftest.$ac_objext'
2277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278   (eval $ac_try) 2>&5
2279   ac_status=$?
2280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281   (exit $ac_status); }; }; then
2282   :
2283 else
2284   echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286
2287 continue
2288 fi
2289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290   cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296 $ac_declaration
2297 int
2298 main ()
2299 {
2300 exit (42);
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>conftest.er1
2308   ac_status=$?
2309   grep -v '^ *+' conftest.er1 >conftest.err
2310   rm -f conftest.er1
2311   cat conftest.err >&5
2312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313   (exit $ac_status); } &&
2314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316   (eval $ac_try) 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; } &&
2320          { ac_try='test -s conftest.$ac_objext'
2321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322   (eval $ac_try) 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; }; then
2326   break
2327 else
2328   echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 fi
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 done
2334 rm -f conftest*
2335 if test -n "$ac_declaration"; then
2336   echo '#ifdef __cplusplus' >>confdefs.h
2337   echo $ac_declaration      >>confdefs.h
2338   echo '#endif'             >>confdefs.h
2339 fi
2340
2341 else
2342   echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2344
2345 fi
2346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2347 ac_ext=c
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2355 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2356 if test "${ac_cv_search_strerror+set}" = set; then
2357   echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359   ac_func_search_save_LIBS=$LIBS
2360 ac_cv_search_strerror=no
2361 cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367
2368 /* Override any gcc2 internal prototype to avoid an error.  */
2369 #ifdef __cplusplus
2370 extern "C"
2371 #endif
2372 /* We use char because int might match the return type of a gcc2
2373    builtin and then its argument prototype would still apply.  */
2374 char strerror ();
2375 int
2376 main ()
2377 {
2378 strerror ();
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 rm -f conftest.$ac_objext conftest$ac_exeext
2384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2385   (eval $ac_link) 2>conftest.er1
2386   ac_status=$?
2387   grep -v '^ *+' conftest.er1 >conftest.err
2388   rm -f conftest.er1
2389   cat conftest.err >&5
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); } &&
2392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2404   ac_cv_search_strerror="none required"
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 fi
2410 rm -f conftest.err conftest.$ac_objext \
2411       conftest$ac_exeext conftest.$ac_ext
2412 if test "$ac_cv_search_strerror" = no; then
2413   for ac_lib in cposix; do
2414     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2415     cat >conftest.$ac_ext <<_ACEOF
2416 /* confdefs.h.  */
2417 _ACEOF
2418 cat confdefs.h >>conftest.$ac_ext
2419 cat >>conftest.$ac_ext <<_ACEOF
2420 /* end confdefs.h.  */
2421
2422 /* Override any gcc2 internal prototype to avoid an error.  */
2423 #ifdef __cplusplus
2424 extern "C"
2425 #endif
2426 /* We use char because int might match the return type of a gcc2
2427    builtin and then its argument prototype would still apply.  */
2428 char strerror ();
2429 int
2430 main ()
2431 {
2432 strerror ();
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 rm -f conftest.$ac_objext conftest$ac_exeext
2438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2439   (eval $ac_link) 2>conftest.er1
2440   ac_status=$?
2441   grep -v '^ *+' conftest.er1 >conftest.err
2442   rm -f conftest.er1
2443   cat conftest.err >&5
2444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445   (exit $ac_status); } &&
2446          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448   (eval $ac_try) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }; } &&
2452          { ac_try='test -s conftest$ac_exeext'
2453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454   (eval $ac_try) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; }; then
2458   ac_cv_search_strerror="-l$ac_lib"
2459 break
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 fi
2465 rm -f conftest.err conftest.$ac_objext \
2466       conftest$ac_exeext conftest.$ac_ext
2467   done
2468 fi
2469 LIBS=$ac_func_search_save_LIBS
2470 fi
2471 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2472 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2473 if test "$ac_cv_search_strerror" != no; then
2474   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2475
2476 fi
2477
2478
2479 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2480 am__api_version="1.9"
2481 # Find a good install program.  We prefer a C program (faster),
2482 # so one script is as good as another.  But avoid the broken or
2483 # incompatible versions:
2484 # SysV /etc/install, /usr/sbin/install
2485 # SunOS /usr/etc/install
2486 # IRIX /sbin/install
2487 # AIX /bin/install
2488 # AmigaOS /C/install, which installs bootblocks on floppy discs
2489 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2490 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2491 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2492 # OS/2's system install, which has a completely different semantic
2493 # ./install, which can be erroneously created by make from ./install.sh.
2494 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2495 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2496 if test -z "$INSTALL"; then
2497 if test "${ac_cv_path_install+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503   IFS=$as_save_IFS
2504   test -z "$as_dir" && as_dir=.
2505   # Account for people who put trailing slashes in PATH elements.
2506 case $as_dir/ in
2507   ./ | .// | /cC/* | \
2508   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2509   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2510   /usr/ucb/* ) ;;
2511   *)
2512     # OSF1 and SCO ODT 3.0 have their own names for install.
2513     # Don't use installbsd from OSF since it installs stuff as root
2514     # by default.
2515     for ac_prog in ginstall scoinst install; do
2516       for ac_exec_ext in '' $ac_executable_extensions; do
2517         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2518           if test $ac_prog = install &&
2519             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2520             # AIX install.  It has an incompatible calling convention.
2521             :
2522           elif test $ac_prog = install &&
2523             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524             # program-specific install script used by HP pwplus--don't use.
2525             :
2526           else
2527             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528             break 3
2529           fi
2530         fi
2531       done
2532     done
2533     ;;
2534 esac
2535 done
2536
2537
2538 fi
2539   if test "${ac_cv_path_install+set}" = set; then
2540     INSTALL=$ac_cv_path_install
2541   else
2542     # As a last resort, use the slow shell script.  We don't cache a
2543     # path for INSTALL within a source directory, because that will
2544     # break other packages using the cache if that directory is
2545     # removed, or if the path is relative.
2546     INSTALL=$ac_install_sh
2547   fi
2548 fi
2549 echo "$as_me:$LINENO: result: $INSTALL" >&5
2550 echo "${ECHO_T}$INSTALL" >&6
2551
2552 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553 # It thinks the first close brace ends the variable substitution.
2554 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
2556 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2557
2558 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
2560 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2561 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2562 # Just in case
2563 sleep 1
2564 echo timestamp > conftest.file
2565 # Do `set' in a subshell so we don't clobber the current shell's
2566 # arguments.  Must try -L first in case configure is actually a
2567 # symlink; some systems play weird games with the mod time of symlinks
2568 # (eg FreeBSD returns the mod time of the symlink's containing
2569 # directory).
2570 if (
2571    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2572    if test "$*" = "X"; then
2573       # -L didn't work.
2574       set X `ls -t $srcdir/configure conftest.file`
2575    fi
2576    rm -f conftest.file
2577    if test "$*" != "X $srcdir/configure conftest.file" \
2578       && test "$*" != "X conftest.file $srcdir/configure"; then
2579
2580       # If neither matched, then we have a broken ls.  This can happen
2581       # if, for instance, CONFIG_SHELL is bash and it inherits a
2582       # broken ls alias from the environment.  This has actually
2583       # happened.  Such a system could not be considered "sane".
2584       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2585 alias in your environment" >&5
2586 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2587 alias in your environment" >&2;}
2588    { (exit 1); exit 1; }; }
2589    fi
2590
2591    test "$2" = conftest.file
2592    )
2593 then
2594    # Ok.
2595    :
2596 else
2597    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2598 Check your system clock" >&5
2599 echo "$as_me: error: newly created file is older than distributed files!
2600 Check your system clock" >&2;}
2601    { (exit 1); exit 1; }; }
2602 fi
2603 echo "$as_me:$LINENO: result: yes" >&5
2604 echo "${ECHO_T}yes" >&6
2605 test "$program_prefix" != NONE &&
2606   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2607 # Use a double $ so make ignores it.
2608 test "$program_suffix" != NONE &&
2609   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2610 # Double any \ or $.  echo might interpret backslashes.
2611 # By default was `s,x,x', remove it if useless.
2612 cat <<\_ACEOF >conftest.sed
2613 s/[\\$]/&&/g;s/;s,x,x,$//
2614 _ACEOF
2615 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2616 rm conftest.sed
2617
2618 # expand $ac_aux_dir to an absolute path
2619 am_aux_dir=`cd $ac_aux_dir && pwd`
2620
2621 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624   am_missing_run="$MISSING --run "
2625 else
2626   am_missing_run=
2627   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2628 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2629 fi
2630
2631 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2632   # We used to keeping the `.' as first argument, in order to
2633   # allow $(mkdir_p) to be used without argument.  As in
2634   #   $(mkdir_p) $(somedir)
2635   # where $(somedir) is conditionally defined.  However this is wrong
2636   # for two reasons:
2637   #  1. if the package is installed by a user who cannot write `.'
2638   #     make install will fail,
2639   #  2. the above comment should most certainly read
2640   #     $(mkdir_p) $(DESTDIR)$(somedir)
2641   #     so it does not work when $(somedir) is undefined and
2642   #     $(DESTDIR) is not.
2643   #  To support the latter case, we have to write
2644   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2645   #  so the `.' trick is pointless.
2646   mkdir_p='mkdir -p --'
2647 else
2648   # On NextStep and OpenStep, the `mkdir' command does not
2649   # recognize any option.  It will interpret all options as
2650   # directories to create, and then abort because `.' already
2651   # exists.
2652   for d in ./-p ./--version;
2653   do
2654     test -d $d && rmdir $d
2655   done
2656   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2657   if test -f "$ac_aux_dir/mkinstalldirs"; then
2658     mkdir_p='$(mkinstalldirs)'
2659   else
2660     mkdir_p='$(install_sh) -d'
2661   fi
2662 fi
2663
2664 for ac_prog in gawk mawk nawk awk
2665 do
2666   # Extract the first word of "$ac_prog", so it can be a program name with args.
2667 set dummy $ac_prog; ac_word=$2
2668 echo "$as_me:$LINENO: checking for $ac_word" >&5
2669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2670 if test "${ac_cv_prog_AWK+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   if test -n "$AWK"; then
2674   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675 else
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681   for ac_exec_ext in '' $ac_executable_extensions; do
2682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683     ac_cv_prog_AWK="$ac_prog"
2684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2685     break 2
2686   fi
2687 done
2688 done
2689
2690 fi
2691 fi
2692 AWK=$ac_cv_prog_AWK
2693 if test -n "$AWK"; then
2694   echo "$as_me:$LINENO: result: $AWK" >&5
2695 echo "${ECHO_T}$AWK" >&6
2696 else
2697   echo "$as_me:$LINENO: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2699 fi
2700
2701   test -n "$AWK" && break
2702 done
2703
2704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2708   echo $ECHO_N "(cached) $ECHO_C" >&6
2709 else
2710   cat >conftest.make <<\_ACEOF
2711 all:
2712         @echo 'ac_maketemp="$(MAKE)"'
2713 _ACEOF
2714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2716 if test -n "$ac_maketemp"; then
2717   eval ac_cv_prog_make_${ac_make}_set=yes
2718 else
2719   eval ac_cv_prog_make_${ac_make}_set=no
2720 fi
2721 rm -f conftest.make
2722 fi
2723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2724   echo "$as_me:$LINENO: result: yes" >&5
2725 echo "${ECHO_T}yes" >&6
2726   SET_MAKE=
2727 else
2728   echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730   SET_MAKE="MAKE=${MAKE-make}"
2731 fi
2732
2733 rm -rf .tst 2>/dev/null
2734 mkdir .tst 2>/dev/null
2735 if test -d .tst; then
2736   am__leading_dot=.
2737 else
2738   am__leading_dot=_
2739 fi
2740 rmdir .tst 2>/dev/null
2741
2742 DEPDIR="${am__leading_dot}deps"
2743
2744           ac_config_commands="$ac_config_commands depfiles"
2745
2746
2747 am_make=${MAKE-make}
2748 cat > confinc << 'END'
2749 am__doit:
2750         @echo done
2751 .PHONY: am__doit
2752 END
2753 # If we don't find an include directive, just comment out the code.
2754 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2755 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2756 am__include="#"
2757 am__quote=
2758 _am_result=none
2759 # First try GNU make style include.
2760 echo "include confinc" > confmf
2761 # We grep out `Entering directory' and `Leaving directory'
2762 # messages which can occur if `w' ends up in MAKEFLAGS.
2763 # In particular we don't look at `^make:' because GNU make might
2764 # be invoked under some other name (usually "gmake"), in which
2765 # case it prints its new name instead of `make'.
2766 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2767    am__include=include
2768    am__quote=
2769    _am_result=GNU
2770 fi
2771 # Now try BSD make style include.
2772 if test "$am__include" = "#"; then
2773    echo '.include "confinc"' > confmf
2774    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2775       am__include=.include
2776       am__quote="\""
2777       _am_result=BSD
2778    fi
2779 fi
2780
2781
2782 echo "$as_me:$LINENO: result: $_am_result" >&5
2783 echo "${ECHO_T}$_am_result" >&6
2784 rm -f confinc confmf
2785
2786 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2787 if test "${enable_dependency_tracking+set}" = set; then
2788   enableval="$enable_dependency_tracking"
2789
2790 fi;
2791 if test "x$enable_dependency_tracking" != xno; then
2792   am_depcomp="$ac_aux_dir/depcomp"
2793   AMDEPBACKSLASH='\'
2794 fi
2795
2796
2797 if test "x$enable_dependency_tracking" != xno; then
2798   AMDEP_TRUE=
2799   AMDEP_FALSE='#'
2800 else
2801   AMDEP_TRUE='#'
2802   AMDEP_FALSE=
2803 fi
2804
2805
2806
2807 # test to see if srcdir already configured
2808 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2809    test -f $srcdir/config.status; then
2810   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2811 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2812    { (exit 1); exit 1; }; }
2813 fi
2814
2815 # test whether we have cygpath
2816 if test -z "$CYGPATH_W"; then
2817   if (cygpath --version) >/dev/null 2>/dev/null; then
2818     CYGPATH_W='cygpath -w'
2819   else
2820     CYGPATH_W=echo
2821   fi
2822 fi
2823
2824
2825 # Define the identity of the package.
2826  PACKAGE=gas
2827  VERSION=${BFD_VERSION}
2828
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE "$PACKAGE"
2832 _ACEOF
2833
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define VERSION "$VERSION"
2837 _ACEOF
2838
2839 # Some tools Automake needs.
2840
2841 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2842
2843
2844 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2845
2846
2847 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2848
2849
2850 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2851
2852
2853 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2854
2855 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2856
2857 # Installed binaries are usually stripped using `strip' when the user
2858 # run `make install-strip'.  However `strip' might not be the right
2859 # tool to use in cross-compilation environments, therefore Automake
2860 # will honor the `STRIP' environment variable to overrule this program.
2861 if test "$cross_compiling" != no; then
2862   if test -n "$ac_tool_prefix"; then
2863   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}strip; ac_word=$2
2865 echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2867 if test "${ac_cv_prog_STRIP+set}" = set; then
2868   echo $ECHO_N "(cached) $ECHO_C" >&6
2869 else
2870   if test -n "$STRIP"; then
2871   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2872 else
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2875 do
2876   IFS=$as_save_IFS
2877   test -z "$as_dir" && as_dir=.
2878   for ac_exec_ext in '' $ac_executable_extensions; do
2879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2880     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2882     break 2
2883   fi
2884 done
2885 done
2886
2887 fi
2888 fi
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891   echo "$as_me:$LINENO: result: $STRIP" >&5
2892 echo "${ECHO_T}$STRIP" >&6
2893 else
2894   echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6
2896 fi
2897
2898 fi
2899 if test -z "$ac_cv_prog_STRIP"; then
2900   ac_ct_STRIP=$STRIP
2901   # Extract the first word of "strip", so it can be a program name with args.
2902 set dummy strip; ac_word=$2
2903 echo "$as_me:$LINENO: checking for $ac_word" >&5
2904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2905 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   if test -n "$ac_ct_STRIP"; then
2909   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2910 else
2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916   for ac_exec_ext in '' $ac_executable_extensions; do
2917   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2918     ac_cv_prog_ac_ct_STRIP="strip"
2919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2920     break 2
2921   fi
2922 done
2923 done
2924
2925   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2926 fi
2927 fi
2928 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2929 if test -n "$ac_ct_STRIP"; then
2930   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2931 echo "${ECHO_T}$ac_ct_STRIP" >&6
2932 else
2933   echo "$as_me:$LINENO: result: no" >&5
2934 echo "${ECHO_T}no" >&6
2935 fi
2936
2937   STRIP=$ac_ct_STRIP
2938 else
2939   STRIP="$ac_cv_prog_STRIP"
2940 fi
2941
2942 fi
2943 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2944
2945 # We need awk for the "check" target.  The system "awk" is bad on
2946 # some platforms.
2947 # Always define AMTAR for backward compatibility.
2948
2949 AMTAR=${AMTAR-"${am_missing_run}tar"}
2950
2951 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2952
2953
2954
2955
2956 depcc="$CC"   am_compiler_list=
2957
2958 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2959 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2960 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2964   # We make a subdir and do the tests there.  Otherwise we can end up
2965   # making bogus files that we don't know about and never remove.  For
2966   # instance it was reported that on HP-UX the gcc test will end up
2967   # making a dummy file named `D' -- because `-MD' means `put the output
2968   # in D'.
2969   mkdir conftest.dir
2970   # Copy depcomp to subdir because otherwise we won't find it if we're
2971   # using a relative directory.
2972   cp "$am_depcomp" conftest.dir
2973   cd conftest.dir
2974   # We will build objects and dependencies in a subdirectory because
2975   # it helps to detect inapplicable dependency modes.  For instance
2976   # both Tru64's cc and ICC support -MD to output dependencies as a
2977   # side effect of compilation, but ICC will put the dependencies in
2978   # the current directory while Tru64 will put them in the object
2979   # directory.
2980   mkdir sub
2981
2982   am_cv_CC_dependencies_compiler_type=none
2983   if test "$am_compiler_list" = ""; then
2984      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2985   fi
2986   for depmode in $am_compiler_list; do
2987     # Setup a source with many dependencies, because some compilers
2988     # like to wrap large dependency lists on column 80 (with \), and
2989     # we should not choose a depcomp mode which is confused by this.
2990     #
2991     # We need to recreate these files for each test, as the compiler may
2992     # overwrite some of them when testing with obscure command lines.
2993     # This happens at least with the AIX C compiler.
2994     : > sub/conftest.c
2995     for i in 1 2 3 4 5 6; do
2996       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2997       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2998       # Solaris 8's {/usr,}/bin/sh.
2999       touch sub/conftst$i.h
3000     done
3001     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3002
3003     case $depmode in
3004     nosideeffect)
3005       # after this tag, mechanisms are not by side-effect, so they'll
3006       # only be used when explicitly requested
3007       if test "x$enable_dependency_tracking" = xyes; then
3008         continue
3009       else
3010         break
3011       fi
3012       ;;
3013     none) break ;;
3014     esac
3015     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3016     # mode.  It turns out that the SunPro C++ compiler does not properly
3017     # handle `-M -o', and we need to detect this.
3018     if depmode=$depmode \
3019        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3020        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3021        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3022          >/dev/null 2>conftest.err &&
3023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3024        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3026       # icc doesn't choke on unknown options, it will just issue warnings
3027       # or remarks (even with -Werror).  So we grep stderr for any message
3028       # that says an option was ignored or not supported.
3029       # When given -MP, icc 7.0 and 7.1 complain thusly:
3030       #   icc: Command line warning: ignoring option '-M'; no argument required
3031       # The diagnosis changed in icc 8.0:
3032       #   icc: Command line remark: option '-MP' not supported
3033       if (grep 'ignoring option' conftest.err ||
3034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3035         am_cv_CC_dependencies_compiler_type=$depmode
3036         break
3037       fi
3038     fi
3039   done
3040
3041   cd ..
3042   rm -rf conftest.dir
3043 else
3044   am_cv_CC_dependencies_compiler_type=none
3045 fi
3046
3047 fi
3048 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3049 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3051
3052
3053
3054 if
3055   test "x$enable_dependency_tracking" != xno \
3056   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3057   am__fastdepCC_TRUE=
3058   am__fastdepCC_FALSE='#'
3059 else
3060   am__fastdepCC_TRUE='#'
3061   am__fastdepCC_FALSE=
3062 fi
3063
3064
3065
3066
3067 # Check whether --enable-shared or --disable-shared was given.
3068 if test "${enable_shared+set}" = set; then
3069   enableval="$enable_shared"
3070   p=${PACKAGE-default}
3071 case $enableval in
3072 yes) enable_shared=yes ;;
3073 no) enable_shared=no ;;
3074 *)
3075   enable_shared=no
3076   # Look at the argument we got.  We use all the common list separators.
3077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3078   for pkg in $enableval; do
3079     if test "X$pkg" = "X$p"; then
3080       enable_shared=yes
3081     fi
3082   done
3083   IFS="$ac_save_ifs"
3084   ;;
3085 esac
3086 else
3087   enable_shared=yes
3088 fi;
3089 # Check whether --enable-static or --disable-static was given.
3090 if test "${enable_static+set}" = set; then
3091   enableval="$enable_static"
3092   p=${PACKAGE-default}
3093 case $enableval in
3094 yes) enable_static=yes ;;
3095 no) enable_static=no ;;
3096 *)
3097   enable_static=no
3098   # Look at the argument we got.  We use all the common list separators.
3099   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3100   for pkg in $enableval; do
3101     if test "X$pkg" = "X$p"; then
3102       enable_static=yes
3103     fi
3104   done
3105   IFS="$ac_save_ifs"
3106   ;;
3107 esac
3108 else
3109   enable_static=yes
3110 fi;
3111 # Check whether --enable-fast-install or --disable-fast-install was given.
3112 if test "${enable_fast_install+set}" = set; then
3113   enableval="$enable_fast_install"
3114   p=${PACKAGE-default}
3115 case $enableval in
3116 yes) enable_fast_install=yes ;;
3117 no) enable_fast_install=no ;;
3118 *)
3119   enable_fast_install=no
3120   # Look at the argument we got.  We use all the common list separators.
3121   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3122   for pkg in $enableval; do
3123     if test "X$pkg" = "X$p"; then
3124       enable_fast_install=yes
3125     fi
3126   done
3127   IFS="$ac_save_ifs"
3128   ;;
3129 esac
3130 else
3131   enable_fast_install=yes
3132 fi;
3133
3134 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3135 if test "${with_gnu_ld+set}" = set; then
3136   withval="$with_gnu_ld"
3137   test "$withval" = no || with_gnu_ld=yes
3138 else
3139   with_gnu_ld=no
3140 fi;
3141 ac_prog=ld
3142 if test "$GCC" = yes; then
3143   # Check if gcc -print-prog-name=ld gives a path.
3144   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3145 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3146   case $host in
3147   *-*-mingw*)
3148     # gcc leaves a trailing carriage return which upsets mingw
3149     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3150   *)
3151     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3152   esac
3153   case $ac_prog in
3154     # Accept absolute paths.
3155     [\\/]* | [A-Za-z]:[\\/]*)
3156       re_direlt='/[^/][^/]*/\.\./'
3157       # Canonicalize the path of ld
3158       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3159       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3160         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3161       done
3162       test -z "$LD" && LD="$ac_prog"
3163       ;;
3164   "")
3165     # If it fails, then pretend we aren't using GCC.
3166     ac_prog=ld
3167     ;;
3168   *)
3169     # If it is relative, then search for the first ld in PATH.
3170     with_gnu_ld=unknown
3171     ;;
3172   esac
3173 elif test "$with_gnu_ld" = yes; then
3174   echo "$as_me:$LINENO: checking for GNU ld" >&5
3175 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3176 else
3177   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3178 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3179 fi
3180 if test "${lt_cv_path_LD+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if test -z "$LD"; then
3184   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3185   for ac_dir in $PATH; do
3186     test -z "$ac_dir" && ac_dir=.
3187     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3188       lt_cv_path_LD="$ac_dir/$ac_prog"
3189       # Check to see if the program is GNU ld.  I'd rather use --version,
3190       # but apparently some GNU ld's only accept -v.
3191       # Break only if it was the GNU/non-GNU ld that we prefer.
3192       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3193         test "$with_gnu_ld" != no && break
3194       else
3195         test "$with_gnu_ld" != yes && break
3196       fi
3197     fi
3198   done
3199   IFS="$ac_save_ifs"
3200 else
3201   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3202 fi
3203 fi
3204
3205 LD="$lt_cv_path_LD"
3206 if test -n "$LD"; then
3207   echo "$as_me:$LINENO: result: $LD" >&5
3208 echo "${ECHO_T}$LD" >&6
3209 else
3210   echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3212 fi
3213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3215    { (exit 1); exit 1; }; }
3216 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3218 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3222 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3223   lt_cv_prog_gnu_ld=yes
3224 else
3225   lt_cv_prog_gnu_ld=no
3226 fi
3227 fi
3228 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3229 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3230 with_gnu_ld=$lt_cv_prog_gnu_ld
3231
3232
3233 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3234 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3235 if test "${lt_cv_ld_reload_flag+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   lt_cv_ld_reload_flag='-r'
3239 fi
3240 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3241 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3242 reload_flag=$lt_cv_ld_reload_flag
3243 test -n "$reload_flag" && reload_flag=" $reload_flag"
3244
3245 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3246 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3247 if test "${lt_cv_path_NM+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   if test -n "$NM"; then
3251   # Let the user override the test.
3252   lt_cv_path_NM="$NM"
3253 else
3254   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3255   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3256     test -z "$ac_dir" && ac_dir=.
3257     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3258     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3259       # Check to see if the nm accepts a BSD-compat flag.
3260       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3261       #   nm: unknown option "B" ignored
3262       # Tru64's nm complains that /dev/null is an invalid object file
3263       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3264         lt_cv_path_NM="$tmp_nm -B"
3265         break
3266       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3267         lt_cv_path_NM="$tmp_nm -p"
3268         break
3269       else
3270         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3271         continue # so that we can try to find one that supports BSD flags
3272       fi
3273     fi
3274   done
3275   IFS="$ac_save_ifs"
3276   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3277 fi
3278 fi
3279
3280 NM="$lt_cv_path_NM"
3281 echo "$as_me:$LINENO: result: $NM" >&5
3282 echo "${ECHO_T}$NM" >&6
3283
3284 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3285 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3286 LN_S=$as_ln_s
3287 if test "$LN_S" = "ln -s"; then
3288   echo "$as_me:$LINENO: result: yes" >&5
3289 echo "${ECHO_T}yes" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3292 echo "${ECHO_T}no, using $LN_S" >&6
3293 fi
3294
3295 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3296 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3297 if test "${lt_cv_deplibs_check_method+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   lt_cv_file_magic_cmd='$MAGIC_CMD'
3301 lt_cv_file_magic_test_file=
3302 lt_cv_deplibs_check_method='unknown'
3303 # Need to set the preceding variable on all platforms that support
3304 # interlibrary dependencies.
3305 # 'none' -- dependencies not supported.
3306 # `unknown' -- same as none, but documents that we really don't know.
3307 # 'pass_all' -- all dependencies passed with no checks.
3308 # 'test_compile' -- check by making test program.
3309 # 'file_magic [regex]' -- check by looking for files in library path
3310 # which responds to the $file_magic_cmd with a given egrep regex.
3311 # If you have `file' or equivalent on your system and you're not sure
3312 # whether `pass_all' will *always* work, you probably want this one.
3313
3314 case $host_os in
3315 aix*)
3316   lt_cv_deplibs_check_method=pass_all
3317   ;;
3318
3319 beos*)
3320   lt_cv_deplibs_check_method=pass_all
3321   ;;
3322
3323 bsdi4*)
3324   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3325   lt_cv_file_magic_cmd='/usr/bin/file -L'
3326   lt_cv_file_magic_test_file=/shlib/libc.so
3327   ;;
3328
3329 cygwin* | mingw* |pw32*)
3330   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3331   lt_cv_file_magic_cmd='$OBJDUMP -f'
3332   ;;
3333
3334 darwin* | rhapsody*)
3335   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3336   lt_cv_file_magic_cmd='/usr/bin/file -L'
3337   case "$host_os" in
3338   rhapsody* | darwin1.012)
3339     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3340     ;;
3341   *) # Darwin 1.3 on
3342     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3343     ;;
3344   esac
3345   ;;
3346
3347 freebsd* | kfreebsd*-gnu)
3348   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3349     case $host_cpu in
3350     i*86 )
3351       # Not sure whether the presence of OpenBSD here was a mistake.
3352       # Let's accept both of them until this is cleared up.
3353       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3354       lt_cv_file_magic_cmd=/usr/bin/file
3355       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3356       ;;
3357     esac
3358   else
3359     lt_cv_deplibs_check_method=pass_all
3360   fi
3361   ;;
3362
3363 gnu*)
3364   lt_cv_deplibs_check_method=pass_all
3365   ;;
3366
3367 hpux10.20*|hpux11*)
3368   case $host_cpu in
3369   hppa*)
3370     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3371     lt_cv_file_magic_cmd=/usr/bin/file
3372     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3373     ;;
3374   ia64*)
3375     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3376     lt_cv_file_magic_cmd=/usr/bin/file
3377     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3378     ;;
3379   esac
3380   ;;
3381
3382 irix5* | irix6*)
3383   case $host_os in
3384   irix5*)
3385     # this will be overridden with pass_all, but let us keep it just in case
3386     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3387     ;;
3388   *)
3389     case $LD in
3390     *-32|*"-32 ") libmagic=32-bit;;
3391     *-n32|*"-n32 ") libmagic=N32;;
3392     *-64|*"-64 ") libmagic=64-bit;;
3393     *) libmagic=never-match;;
3394     esac
3395     # this will be overridden with pass_all, but let us keep it just in case
3396     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3397     ;;
3398   esac
3399   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3400   lt_cv_deplibs_check_method=pass_all
3401   ;;
3402
3403 # This must be Linux ELF.
3404 linux-gnu*)
3405   case $host_cpu in
3406   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3407     lt_cv_deplibs_check_method=pass_all ;;
3408   *)
3409     # glibc up to 2.1.1 does not perform some relocations on ARM
3410     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3411   esac
3412   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3413   ;;
3414
3415 netbsd* | knetbsd*-gnu)
3416   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3417     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3418   else
3419     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3420   fi
3421   ;;
3422
3423 newsos6)
3424   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3425   lt_cv_file_magic_cmd=/usr/bin/file
3426   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3427   ;;
3428
3429 osf3* | osf4* | osf5*)
3430   # this will be overridden with pass_all, but let us keep it just in case
3431   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3432   lt_cv_file_magic_test_file=/shlib/libc.so
3433   lt_cv_deplibs_check_method=pass_all
3434   ;;
3435
3436 sco3.2v5*)
3437   lt_cv_deplibs_check_method=pass_all
3438   ;;
3439
3440 solaris*)
3441   lt_cv_deplibs_check_method=pass_all
3442   lt_cv_file_magic_test_file=/lib/libc.so
3443   ;;
3444
3445 sysv5uw[78]* | sysv4*uw2*)
3446   lt_cv_deplibs_check_method=pass_all
3447   ;;
3448
3449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3450   case $host_vendor in
3451   ncr)
3452     lt_cv_deplibs_check_method=pass_all
3453     ;;
3454   motorola)
3455     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]'
3456     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3457     ;;
3458   esac
3459   ;;
3460 esac
3461
3462 fi
3463 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3464 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3465 file_magic_cmd=$lt_cv_file_magic_cmd
3466 deplibs_check_method=$lt_cv_deplibs_check_method
3467
3468
3469
3470
3471 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3472
3473 # Only perform the check for file, if the check method requires it
3474 case $deplibs_check_method in
3475 file_magic*)
3476   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3477     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3478 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3479 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3480   echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482   case $MAGIC_CMD in
3483   /*)
3484   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3485   ;;
3486   ?:/*)
3487   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3488   ;;
3489   *)
3490   ac_save_MAGIC_CMD="$MAGIC_CMD"
3491   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3492   ac_dummy="/usr/bin:$PATH"
3493   for ac_dir in $ac_dummy; do
3494     test -z "$ac_dir" && ac_dir=.
3495     if test -f $ac_dir/${ac_tool_prefix}file; then
3496       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3497       if test -n "$file_magic_test_file"; then
3498         case $deplibs_check_method in
3499         "file_magic "*)
3500           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3501           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3502           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3503             egrep "$file_magic_regex" > /dev/null; then
3504             :
3505           else
3506             cat <<EOF 1>&2
3507
3508 *** Warning: the command libtool uses to detect shared libraries,
3509 *** $file_magic_cmd, produces output that libtool cannot recognize.
3510 *** The result is that libtool may fail to recognize shared libraries
3511 *** as such.  This will affect the creation of libtool libraries that
3512 *** depend on shared libraries, but programs linked with such libtool
3513 *** libraries will work regardless of this problem.  Nevertheless, you
3514 *** may want to report the problem to your system manager and/or to
3515 *** bug-libtool@gnu.org
3516
3517 EOF
3518           fi ;;
3519         esac
3520       fi
3521       break
3522     fi
3523   done
3524   IFS="$ac_save_ifs"
3525   MAGIC_CMD="$ac_save_MAGIC_CMD"
3526   ;;
3527 esac
3528 fi
3529
3530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3531 if test -n "$MAGIC_CMD"; then
3532   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3533 echo "${ECHO_T}$MAGIC_CMD" >&6
3534 else
3535   echo "$as_me:$LINENO: result: no" >&5
3536 echo "${ECHO_T}no" >&6
3537 fi
3538
3539 if test -z "$lt_cv_path_MAGIC_CMD"; then
3540   if test -n "$ac_tool_prefix"; then
3541     echo "$as_me:$LINENO: checking for file" >&5
3542 echo $ECHO_N "checking for file... $ECHO_C" >&6
3543 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   case $MAGIC_CMD in
3547   /*)
3548   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3549   ;;
3550   ?:/*)
3551   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3552   ;;
3553   *)
3554   ac_save_MAGIC_CMD="$MAGIC_CMD"
3555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3556   ac_dummy="/usr/bin:$PATH"
3557   for ac_dir in $ac_dummy; do
3558     test -z "$ac_dir" && ac_dir=.
3559     if test -f $ac_dir/file; then
3560       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3561       if test -n "$file_magic_test_file"; then
3562         case $deplibs_check_method in
3563         "file_magic "*)
3564           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3565           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3567             egrep "$file_magic_regex" > /dev/null; then
3568             :
3569           else
3570             cat <<EOF 1>&2
3571
3572 *** Warning: the command libtool uses to detect shared libraries,
3573 *** $file_magic_cmd, produces output that libtool cannot recognize.
3574 *** The result is that libtool may fail to recognize shared libraries
3575 *** as such.  This will affect the creation of libtool libraries that
3576 *** depend on shared libraries, but programs linked with such libtool
3577 *** libraries will work regardless of this problem.  Nevertheless, you
3578 *** may want to report the problem to your system manager and/or to
3579 *** bug-libtool@gnu.org
3580
3581 EOF
3582           fi ;;
3583         esac
3584       fi
3585       break
3586     fi
3587   done
3588   IFS="$ac_save_ifs"
3589   MAGIC_CMD="$ac_save_MAGIC_CMD"
3590   ;;
3591 esac
3592 fi
3593
3594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3595 if test -n "$MAGIC_CMD"; then
3596   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3597 echo "${ECHO_T}$MAGIC_CMD" >&6
3598 else
3599   echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603   else
3604     MAGIC_CMD=:
3605   fi
3606 fi
3607
3608   fi
3609   ;;
3610 esac
3611
3612 if test -n "$ac_tool_prefix"; then
3613   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3615 echo "$as_me:$LINENO: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_RANLIB+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   if test -n "$RANLIB"; then
3621   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626   IFS=$as_save_IFS
3627   test -z "$as_dir" && as_dir=.
3628   for ac_exec_ext in '' $ac_executable_extensions; do
3629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3632     break 2
3633   fi
3634 done
3635 done
3636
3637 fi
3638 fi
3639 RANLIB=$ac_cv_prog_RANLIB
3640 if test -n "$RANLIB"; then
3641   echo "$as_me:$LINENO: result: $RANLIB" >&5
3642 echo "${ECHO_T}$RANLIB" >&6
3643 else
3644   echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3646 fi
3647
3648 fi
3649 if test -z "$ac_cv_prog_RANLIB"; then
3650   ac_ct_RANLIB=$RANLIB
3651   # Extract the first word of "ranlib", so it can be a program name with args.
3652 set dummy ranlib; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -n "$ac_ct_RANLIB"; then
3659   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_ac_ct_RANLIB="ranlib"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3676 fi
3677 fi
3678 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3679 if test -n "$ac_ct_RANLIB"; then
3680   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3681 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3682 else
3683   echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687   RANLIB=$ac_ct_RANLIB
3688 else
3689   RANLIB="$ac_cv_prog_RANLIB"
3690 fi
3691
3692 if test -n "$ac_tool_prefix"; then
3693   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}strip; ac_word=$2
3695 echo "$as_me:$LINENO: checking for $ac_word" >&5
3696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3697 if test "${ac_cv_prog_STRIP+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   if test -n "$STRIP"; then
3701   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708   for ac_exec_ext in '' $ac_executable_extensions; do
3709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715 done
3716
3717 fi
3718 fi
3719 STRIP=$ac_cv_prog_STRIP
3720 if test -n "$STRIP"; then
3721   echo "$as_me:$LINENO: result: $STRIP" >&5
3722 echo "${ECHO_T}$STRIP" >&6
3723 else
3724   echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3726 fi
3727
3728 fi
3729 if test -z "$ac_cv_prog_STRIP"; then
3730   ac_ct_STRIP=$STRIP
3731   # Extract the first word of "strip", so it can be a program name with args.
3732 set dummy strip; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$ac_ct_STRIP"; then
3739   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_prog_ac_ct_STRIP="strip"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3756 fi
3757 fi
3758 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3759 if test -n "$ac_ct_STRIP"; then
3760   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3761 echo "${ECHO_T}$ac_ct_STRIP" >&6
3762 else
3763   echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6
3765 fi
3766
3767   STRIP=$ac_ct_STRIP
3768 else
3769   STRIP="$ac_cv_prog_STRIP"
3770 fi
3771
3772
3773 # Check for any special flags to pass to ltconfig.
3774 libtool_flags="--cache-file=$cache_file"
3775 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3776 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3777 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3778 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3779 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3780
3781
3782 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3783 if test "${enable_libtool_lock+set}" = set; then
3784   enableval="$enable_libtool_lock"
3785
3786 fi;
3787 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3788 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3789
3790
3791 # Check whether --with-pic or --without-pic was given.
3792 if test "${with_pic+set}" = set; then
3793   withval="$with_pic"
3794   pic_mode="$withval"
3795 else
3796   pic_mode=default
3797 fi;
3798 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3799 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3800
3801 # Some flags need to be propagated to the compiler or linker for good
3802 # libtool support.
3803 case $host in
3804 *-*-irix6*)
3805   # Find out which ABI we are using.
3806   echo '#line 3806 "configure"' > conftest.$ac_ext
3807   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808   (eval $ac_compile) 2>&5
3809   ac_status=$?
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); }; then
3812    if test "$lt_cv_prog_gnu_ld" = yes; then
3813     case `/usr/bin/file conftest.$ac_objext` in
3814     *32-bit*)
3815       LD="${LD-ld} -melf32bsmip"
3816       ;;
3817     *N32*)
3818       LD="${LD-ld} -melf32bmipn32"
3819       ;;
3820     *64-bit*)
3821       LD="${LD-ld} -melf64bmip"
3822       ;;
3823     esac
3824    else
3825     case `/usr/bin/file conftest.$ac_objext` in
3826     *32-bit*)
3827       LD="${LD-ld} -32"
3828       ;;
3829     *N32*)
3830       LD="${LD-ld} -n32"
3831       ;;
3832     *64-bit*)
3833       LD="${LD-ld} -64"
3834       ;;
3835     esac
3836    fi
3837   fi
3838   rm -rf conftest*
3839   ;;
3840
3841 ia64-*-hpux*)
3842   # Find out which ABI we are using.
3843   echo 'int i;' > conftest.$ac_ext
3844   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3845   (eval $ac_compile) 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }; then
3849     case "`/usr/bin/file conftest.o`" in
3850     *ELF-32*)
3851       HPUX_IA64_MODE="32"
3852       ;;
3853     *ELF-64*)
3854       HPUX_IA64_MODE="64"
3855       ;;
3856     esac
3857   fi
3858   rm -rf conftest*
3859   ;;
3860
3861 *-*-sco3.2v5*)
3862   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3863   SAVE_CFLAGS="$CFLAGS"
3864   CFLAGS="$CFLAGS -belf"
3865   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3866 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3867 if test "${lt_cv_cc_needs_belf+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870
3871
3872      ac_ext=c
3873 ac_cpp='$CPP $CPPFLAGS'
3874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
3878      cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884
3885 int
3886 main ()
3887 {
3888
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext conftest$ac_exeext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895   (eval $ac_link) 2>conftest.er1
3896   ac_status=$?
3897   grep -v '^ *+' conftest.er1 >conftest.err
3898   rm -f conftest.er1
3899   cat conftest.err >&5
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } &&
3902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904   (eval $ac_try) 2>&5
3905   ac_status=$?
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); }; } &&
3908          { ac_try='test -s conftest$ac_exeext'
3909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910   (eval $ac_try) 2>&5
3911   ac_status=$?
3912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913   (exit $ac_status); }; }; then
3914   lt_cv_cc_needs_belf=yes
3915 else
3916   echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 lt_cv_cc_needs_belf=no
3920 fi
3921 rm -f conftest.err conftest.$ac_objext \
3922       conftest$ac_exeext conftest.$ac_ext
3923      ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928
3929 fi
3930 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3931 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3932   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3933     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3934     CFLAGS="$SAVE_CFLAGS"
3935   fi
3936   ;;
3937
3938
3939 esac
3940
3941
3942 # Save cache, so that ltconfig can load it
3943 cat >confcache <<\_ACEOF
3944 # This file is a shell script that caches the results of configure
3945 # tests run on this system so they can be shared between configure
3946 # scripts and configure runs, see configure's option --config-cache.
3947 # It is not useful on other systems.  If it contains results you don't
3948 # want to keep, you may remove or edit it.
3949 #
3950 # config.status only pays attention to the cache file if you give it
3951 # the --recheck option to rerun configure.
3952 #
3953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3955 # following values.
3956
3957 _ACEOF
3958
3959 # The following way of writing the cache mishandles newlines in values,
3960 # but we know of no workaround that is simple, portable, and efficient.
3961 # So, don't put newlines in cache variables' values.
3962 # Ultrix sh set writes to stderr and can't be redirected directly,
3963 # and sets the high bit in the cache file unless we assign to the vars.
3964 {
3965   (set) 2>&1 |
3966     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3967     *ac_space=\ *)
3968       # `set' does not quote correctly, so add quotes (double-quote
3969       # substitution turns \\\\ into \\, and sed turns \\ into \).
3970       sed -n \
3971         "s/'/'\\\\''/g;
3972           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3973       ;;
3974     *)
3975       # `set' quotes correctly as required by POSIX, so do not add quotes.
3976       sed -n \
3977         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3978       ;;
3979     esac;
3980 } |
3981   sed '
3982      t clear
3983      : clear
3984      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3985      t end
3986      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3987      : end' >>confcache
3988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3989   if test -w $cache_file; then
3990     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3991     cat confcache >$cache_file
3992   else
3993     echo "not updating unwritable cache $cache_file"
3994   fi
3995 fi
3996 rm -f confcache
3997
3998 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3999 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4000 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4001 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4002 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4003 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4004 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4005 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4006 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4007 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4008 echo "$as_me: error: libtool configure failed" >&2;}
4009    { (exit 1); exit 1; }; }
4010
4011 # Reload cache, that may have been modified by ltconfig
4012 if test -r "$cache_file"; then
4013   # Some versions of bash will fail to source /dev/null (special
4014   # files actually), so we avoid doing that.
4015   if test -f "$cache_file"; then
4016     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4017 echo "$as_me: loading cache $cache_file" >&6;}
4018     case $cache_file in
4019       [\\/]* | ?:[\\/]* ) . $cache_file;;
4020       *)                      . ./$cache_file;;
4021     esac
4022   fi
4023 else
4024   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4025 echo "$as_me: creating cache $cache_file" >&6;}
4026   >$cache_file
4027 fi
4028
4029
4030 # This can be used to rebuild libtool when needed
4031 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4032
4033 # Always use our own libtool.
4034 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4035
4036 # Redirect the config.log output again, so that the ltconfig log is not
4037 # clobbered by the next message.
4038 exec 5>>./config.log
4039
4040
4041
4042
4043
4044
4045
4046 user_bfd_gas=
4047 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
4048 if test "${enable_bfd_assembler+set}" = set; then
4049   enableval="$enable_bfd_assembler"
4050   case "${enableval}" in
4051   yes) need_bfd=yes user_bfd_gas=yes ;;
4052   no)  user_bfd_gas=no ;;
4053   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} given for bfd-assembler option" >&5
4054 echo "$as_me: error: bad value ${enableval} given for bfd-assembler option" >&2;}
4055    { (exit 1); exit 1; }; } ;;
4056 esac
4057 fi; # Check whether --enable-targets or --disable-targets was given.
4058 if test "${enable_targets+set}" = set; then
4059   enableval="$enable_targets"
4060   case "${enableval}" in
4061   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4062 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4063    { (exit 1); exit 1; }; }
4064             ;;
4065   no)       enable_targets= ;;
4066   *)        enable_targets=$enableval ;;
4067 esac
4068 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4069 if test "${enable_commonbfdlib+set}" = set; then
4070   enableval="$enable_commonbfdlib"
4071   case "${enableval}" in
4072   yes) commonbfdlib=true ;;
4073   no)  commonbfdlib=false ;;
4074   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4075 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4076    { (exit 1); exit 1; }; } ;;
4077 esac
4078 fi;
4079 using_cgen=no
4080
4081 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4082 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4083 if test "${enable_build_warnings+set}" = set; then
4084   enableval="$enable_build_warnings"
4085   case "${enableval}" in
4086   yes)  ;;
4087   no)   build_warnings="-w";;
4088   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4089         build_warnings="${build_warnings} ${t}";;
4090   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4091         build_warnings="${t} ${build_warnings}";;
4092   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4093 esac
4094 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4095   echo "Setting warning flags = $build_warnings" 6>&1
4096 fi
4097 fi; WARN_CFLAGS=""
4098 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4099     WARN_CFLAGS="${build_warnings}"
4100 fi
4101
4102
4103 # Generate a header file
4104           ac_config_headers="$ac_config_headers config.h:config.in"
4105
4106
4107 # If we are on a DOS filesystem, we must use gdb.ini rather than
4108 # .gdbinit.
4109 case "${host}" in
4110   *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
4111     GDBINIT="gdb.ini"
4112               ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
4113
4114     ;;
4115   *)
4116     GDBINIT=".gdbinit"
4117               ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
4118
4119     ;;
4120 esac
4121
4122
4123 #We need this for the host.  BOUT header is in host order.
4124 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4125 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4126 if test "${ac_cv_c_bigendian+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   # See if sys/param.h defines the BYTE_ORDER macro.
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sys/types.h>
4137 #include <sys/param.h>
4138
4139 int
4140 main ()
4141 {
4142 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4143  bogus endian macros
4144 #endif
4145
4146   ;
4147   return 0;
4148 }
4149 _ACEOF
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152   (eval $ac_compile) 2>conftest.er1
4153   ac_status=$?
4154   grep -v '^ *+' conftest.er1 >conftest.err
4155   rm -f conftest.er1
4156   cat conftest.err >&5
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); } &&
4159          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161   (eval $ac_try) 2>&5
4162   ac_status=$?
4163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164   (exit $ac_status); }; } &&
4165          { ac_try='test -s conftest.$ac_objext'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; }; then
4171   # It does; now see whether it defined to BIG_ENDIAN or not.
4172 cat >conftest.$ac_ext <<_ACEOF
4173 /* confdefs.h.  */
4174 _ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h.  */
4178 #include <sys/types.h>
4179 #include <sys/param.h>
4180
4181 int
4182 main ()
4183 {
4184 #if BYTE_ORDER != BIG_ENDIAN
4185  not big endian
4186 #endif
4187
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4194   (eval $ac_compile) 2>conftest.er1
4195   ac_status=$?
4196   grep -v '^ *+' conftest.er1 >conftest.err
4197   rm -f conftest.er1
4198   cat conftest.err >&5
4199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200   (exit $ac_status); } &&
4201          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203   (eval $ac_try) 2>&5
4204   ac_status=$?
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); }; } &&
4207          { ac_try='test -s conftest.$ac_objext'
4208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209   (eval $ac_try) 2>&5
4210   ac_status=$?
4211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212   (exit $ac_status); }; }; then
4213   ac_cv_c_bigendian=yes
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_cv_c_bigendian=no
4219 fi
4220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 # It does not; compile a test program.
4226 if test "$cross_compiling" = yes; then
4227   # try to guess the endianness by grepping values into an object file
4228   ac_cv_c_bigendian=unknown
4229   cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241 int
4242 main ()
4243 {
4244  _ascii (); _ebcdic ();
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251   (eval $ac_compile) 2>conftest.er1
4252   ac_status=$?
4253   grep -v '^ *+' conftest.er1 >conftest.err
4254   rm -f conftest.er1
4255   cat conftest.err >&5
4256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257   (exit $ac_status); } &&
4258          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260   (eval $ac_try) 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266   (eval $ac_try) 2>&5
4267   ac_status=$?
4268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269   (exit $ac_status); }; }; then
4270   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271   ac_cv_c_bigendian=yes
4272 fi
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274   if test "$ac_cv_c_bigendian" = unknown; then
4275     ac_cv_c_bigendian=no
4276   else
4277     # finding both strings is unlikely to happen, but who knows?
4278     ac_cv_c_bigendian=unknown
4279   fi
4280 fi
4281 else
4282   echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4284
4285 fi
4286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4287 else
4288   cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h.  */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h.  */
4294 int
4295 main ()
4296 {
4297   /* Are we little or big endian?  From Harbison&Steele.  */
4298   union
4299   {
4300     long l;
4301     char c[sizeof (long)];
4302   } u;
4303   u.l = 1;
4304   exit (u.c[sizeof (long) - 1] == 1);
4305 }
4306 _ACEOF
4307 rm -f conftest$ac_exeext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4309   (eval $ac_link) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314   (eval $ac_try) 2>&5
4315   ac_status=$?
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); }; }; then
4318   ac_cv_c_bigendian=no
4319 else
4320   echo "$as_me: program exited with status $ac_status" >&5
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 ( exit $ac_status )
4325 ac_cv_c_bigendian=yes
4326 fi
4327 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4328 fi
4329 fi
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4331 fi
4332 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4333 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4334 case $ac_cv_c_bigendian in
4335   yes)
4336
4337 cat >>confdefs.h <<\_ACEOF
4338 #define WORDS_BIGENDIAN 1
4339 _ACEOF
4340  ;;
4341   no)
4342      ;;
4343   *)
4344     { { echo "$as_me:$LINENO: error: unknown endianness
4345 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4346 echo "$as_me: error: unknown endianness
4347 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4348    { (exit 1); exit 1; }; } ;;
4349 esac
4350
4351
4352 te_file=generic
4353
4354 # Makefile target for installing gas in $(tooldir)/bin.
4355 install_tooldir=install-exec-tooldir
4356
4357 canon_targets=""
4358 all_targets=no
4359 if test -n "$enable_targets" ; then
4360   for t in `echo $enable_targets | sed 's/,/ /g'`; do
4361     if test $t = "all"; then
4362       all_targets=yes
4363       continue
4364     fi
4365     result=`$ac_config_sub $t 2>/dev/null`
4366     if test -n "$result" ; then
4367       canon_targets="$canon_targets $result"
4368 #    else
4369 #      # Permit "all", etc.  We don't support it yet though.
4370 #      canon_targets="$canon_targets $t"
4371     fi
4372   done
4373   _gas_uniq_list="$canon_targets"
4374 _gas_uniq_newlist=""
4375 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4376   case $_gas_uniq_i in
4377   _gas_uniq_dummy) ;;
4378   *) case " $_gas_uniq_newlist " in
4379        *" $_gas_uniq_i "*) ;;
4380        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4381      esac ;;
4382   esac
4383 done
4384 canon_targets=$_gas_uniq_newlist
4385
4386 fi
4387
4388 emulations=""
4389
4390 for this_target in $target $canon_targets ; do
4391
4392     targ=${this_target}
4393     . ${srcdir}/configure.tgt
4394
4395     case ${target_cpu} in
4396       crisv32)
4397
4398 cat >>confdefs.h <<_ACEOF
4399 #define DEFAULT_CRIS_ARCH $arch
4400 _ACEOF
4401
4402         ;;
4403     esac
4404
4405     if test ${this_target} = $target ; then
4406       target_cpu_type=${cpu_type}
4407     elif test ${target_cpu_type} != ${cpu_type} ; then
4408       continue
4409     fi
4410
4411     generic_target=${cpu_type}-${target_vendor}-${target_os}
4412     case ${generic_target} in
4413       i386-*-sco3.2v5*)
4414         if test ${this_target} = $target; then
4415
4416 cat >>confdefs.h <<\_ACEOF
4417 #define SCO_ELF 1
4418 _ACEOF
4419
4420         fi
4421         ;;
4422
4423       i386-*-msdosdjgpp* \
4424       | i386-*-go32* \
4425       | i386-go32-rtems*)
4426
4427 cat >>confdefs.h <<\_ACEOF
4428 #define STRICTCOFF 1
4429 _ACEOF
4430
4431         ;;
4432
4433       i860-*-*)
4434         { echo "$as_me:$LINENO: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
4435 echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
4436         ;;
4437
4438       mips-sony-bsd*)
4439         ;;
4440       mips-*-bsd*)
4441         { { echo "$as_me:$LINENO: error: Unknown vendor for mips-bsd configuration." >&5
4442 echo "$as_me: error: Unknown vendor for mips-bsd configuration." >&2;}
4443    { (exit 1); exit 1; }; }
4444         ;;
4445
4446       ppc-*-aix5.*)
4447
4448 cat >>confdefs.h <<\_ACEOF
4449 #define AIX_WEAK_SUPPORT 1
4450 _ACEOF
4451
4452         ;;
4453       ppc-*-linux-gnu*)
4454         case "$endian" in
4455           big)  ;;
4456           *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
4457 echo "$as_me: error: GNU/Linux must be configured big endian" >&2;}
4458    { (exit 1); exit 1; }; } ;;
4459         esac
4460         ;;
4461       ppc-*-solaris*)
4462         if test ${this_target} = $target; then
4463
4464 cat >>confdefs.h <<\_ACEOF
4465 #define TARGET_SOLARIS_COMMENT 1
4466 _ACEOF
4467
4468         fi
4469         if test x${endian} = xbig; then
4470           { { echo "$as_me:$LINENO: error: Solaris must be configured little endian" >&5
4471 echo "$as_me: error: Solaris must be configured little endian" >&2;}
4472    { (exit 1); exit 1; }; }
4473         fi
4474         ;;
4475
4476       sh*-*-symbianelf*)
4477
4478 cat >>confdefs.h <<\_ACEOF
4479 #define TARGET_SYMBIAN 1
4480 _ACEOF
4481
4482         ;;
4483     esac
4484
4485     if test ${this_target} = $target ; then
4486       endian_def=
4487       if test x${endian} = xbig; then
4488         endian_def=1
4489       elif test x${endian} = xlittle; then
4490         endian_def=0
4491       fi
4492       if test x${endian_def} != x; then
4493
4494 cat >>confdefs.h <<_ACEOF
4495 #define TARGET_BYTES_BIG_ENDIAN $endian_def
4496 _ACEOF
4497
4498       fi
4499     fi
4500
4501 # Other random stuff.
4502
4503     case ${cpu_type} in
4504       mips)
4505         # Set mips_cpu to the name of the default CPU.
4506         case ${target_cpu} in
4507           mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
4508             mips_cpu=from-abi
4509             ;;
4510           mipsisa32 | mipsisa32el)
4511             mips_cpu=mips32
4512             ;;
4513           mipsisa32r2 | mipsisa32r2el)
4514             mips_cpu=mips32r2
4515             ;;
4516           mipsisa64 | mipsisa64el)
4517             mips_cpu=mips64
4518             ;;
4519           mipsisa64r2 | mipsisa64r2el)
4520             mips_cpu=mips64r2
4521             ;;
4522           mipstx39 | mipstx39el)
4523             mips_cpu=r3900
4524             ;;
4525           mips64vr | mips64vrel)
4526             mips_cpu=vr4100
4527             ;;
4528           mipsisa32r2* | mipsisa64r2*)
4529             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
4530             ;;
4531           mips64* | mipsisa64* | mipsisa32*)
4532             mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
4533             ;;
4534           *)
4535             { { echo "$as_me:$LINENO: error: $target_cpu isn't a supported MIPS CPU name" >&5
4536 echo "$as_me: error: $target_cpu isn't a supported MIPS CPU name" >&2;}
4537    { (exit 1); exit 1; }; }
4538             ;;
4539         esac
4540         # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
4541         # binaries.  It's a GNU extension that some OSes don't understand.
4542         # The value only matters on ELF targets.
4543         case ${target} in
4544           *-*-irix*)
4545             use_e_mips_abi_o32=0
4546             ;;
4547           *)
4548             use_e_mips_abi_o32=1
4549             ;;
4550         esac
4551         # Decide whether to generate 32-bit or 64-bit code by default.
4552         # Used to resolve -march=from-abi when an embedded ABI is selected.
4553         case ${target} in
4554           mips64*-*-* | mipsisa64*-*-*)
4555             mips_default_64bit=1
4556             ;;
4557           *)
4558             mips_default_64bit=0
4559             ;;
4560         esac
4561         # Decide which ABI to target by default.
4562         case ${target} in
4563           mips64*-linux* | mips-sgi-irix6*)
4564             mips_default_abi=N32_ABI
4565             ;;
4566           mips*-linux*)
4567             mips_default_abi=O32_ABI
4568             ;;
4569           *)
4570             mips_default_abi=NO_ABI
4571             ;;
4572         esac
4573
4574 cat >>confdefs.h <<_ACEOF
4575 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
4576 _ACEOF
4577
4578
4579 cat >>confdefs.h <<_ACEOF
4580 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
4581 _ACEOF
4582
4583
4584 cat >>confdefs.h <<_ACEOF
4585 #define MIPS_DEFAULT_64BIT $mips_default_64bit
4586 _ACEOF
4587
4588
4589 cat >>confdefs.h <<_ACEOF
4590 #define MIPS_DEFAULT_ABI $mips_default_abi
4591 _ACEOF
4592
4593         ;;
4594     esac
4595
4596     # Do we need the opcodes library?
4597     case ${cpu_type} in
4598       vax | i386 | tic30)
4599         ;;
4600
4601       *)
4602         need_opcodes=yes
4603
4604         case "${enable_shared}" in
4605         yes) shared_opcodes=true ;;
4606         *opcodes*) shared_opcodes=true ;;
4607         *) shared_opcodes=false ;;
4608         esac
4609         if test "${shared_opcodes}" = "true"; then
4610           # A shared libopcodes must be linked against libbfd.
4611           need_bfd=yes
4612         fi
4613         ;;
4614     esac
4615
4616     # Any other special object files needed ?
4617     case ${cpu_type} in
4618       fr30 | ip2k | iq2000 | m32r | openrisc)
4619         using_cgen=yes
4620         ;;
4621
4622       frv)
4623         using_cgen=yes
4624         ;;
4625       m68k)
4626         case ${extra_objects} in
4627         *m68k-parse.o*) ;;
4628         *) extra_objects="$extra_objects m68k-parse.o" ;;
4629         esac
4630         ;;
4631
4632       mips)
4633         echo ${extra_objects} | grep -s "itbl-parse.o"
4634         if test $? -ne 0 ; then
4635           extra_objects="$extra_objects itbl-parse.o"
4636         fi
4637
4638         echo ${extra_objects} | grep -s "itbl-lex.o"
4639         if test $? -ne 0 ; then
4640           extra_objects="$extra_objects itbl-lex.o"
4641         fi
4642
4643         echo ${extra_objects} | grep -s "itbl-ops.o"
4644         if test $? -ne 0 ; then
4645           extra_objects="$extra_objects itbl-ops.o"
4646         fi
4647         ;;
4648
4649       i386 | s390 | sparc)
4650         if test $this_target = $target ; then
4651
4652 cat >>confdefs.h <<_ACEOF
4653 #define DEFAULT_ARCH "${arch}"
4654 _ACEOF
4655
4656         fi
4657         ;;
4658
4659       xstormy16)
4660         using_cgen=yes
4661         ;;
4662
4663       xtensa)
4664         echo ${extra_objects} | grep -s "xtensa-relax.o"
4665         if test $? -ne 0 ; then
4666           extra_objects="$extra_objects xtensa-relax.o"
4667         fi
4668         ;;
4669
4670       *)
4671         ;;
4672     esac
4673
4674     if test $using_cgen = yes ; then
4675         case "x${extra_objects}" in
4676         *cgen.o*) ;;
4677         *) extra_objects="$extra_objects cgen.o" ;;
4678         esac
4679     fi
4680
4681 # See if we really can support this configuration with the emulation code.
4682
4683     if test $this_target = $target ; then
4684       primary_bfd_gas=$bfd_gas
4685       obj_format=$fmt
4686       te_file=$em
4687
4688       if test $bfd_gas = no ; then
4689         # Can't support other configurations this way.
4690         break
4691       fi
4692     elif test $bfd_gas = no ; then
4693       # Can't support this configuration.
4694       break
4695     fi
4696
4697 # From target name and format, produce a list of supported emulations.
4698
4699     case ${generic_target}-${fmt} in
4700       mips-*-irix5*-*)  emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4701       mips*-*-linux*-*) case "$endian" in
4702                         big)    emulation="mipsbelf mipslelf mipself" ;;
4703                         *)      emulation="mipslelf mipsbelf mipself" ;;
4704                         esac ;;
4705       mips-*-lnews*-ecoff) ;;
4706       mips-*-*-ecoff)   case "$endian" in
4707                         big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
4708                         *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
4709                         esac ;;
4710       mips-*-*-elf)     case "$endian" in
4711                         big)    emulation="mipsbelf mipslelf mipself" ;;
4712                         *)      emulation="mipslelf mipsbelf mipself" ;;
4713                         esac ;;
4714       mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
4715       # i386-pc-pe-coff != i386-pc-coff.
4716       i386-*-pe-coff)   ;;
4717       # Uncommenting the next line will turn on support for i386 AOUT
4718       # for the default linux configuration
4719       # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
4720       #
4721       i386-*-aout)      emulation="i386aout" ;;
4722       i386-*-coff)      emulation="i386coff" ;;
4723       i386-*-elf)       emulation="i386elf" ;;
4724
4725       # Always all formats.  The first stated emulation becomes the default.
4726       cris-*-*aout*)    emulation="crisaout criself" ;;
4727       cris-*-*)         emulation="criself crisaout" ;;
4728     esac
4729
4730     emulations="$emulations $emulation"
4731
4732 done
4733
4734 # Turn on all targets if possible
4735 if test ${all_targets} = "yes"; then
4736   case ${target_cpu_type} in
4737   i386)
4738     case ${obj_format} in
4739     aout)
4740       emulations="$emulations i386coff i386elf"
4741       ;;
4742     coff)
4743       emulations="$emulations i386aout i386elf"
4744     ;;
4745     elf)
4746       emulations="$emulations i386aout i386coff"
4747       ;;
4748     esac
4749   ;;
4750   esac
4751 fi
4752
4753 # Assign floating point type.  Most processors with FP support
4754 # IEEE FP.  On those that don't support FP at all, usually IEEE
4755 # is emulated.
4756 case ${target_cpu} in
4757   vax | tahoe ) atof=${target_cpu} ;;
4758   pdp11)        atof=vax ;;
4759   *)            atof=ieee ;;
4760 esac
4761
4762 case "${obj_format}" in
4763   "") { { echo "$as_me:$LINENO: error: GAS does not know what format to use for target ${target}" >&5
4764 echo "$as_me: error: GAS does not know what format to use for target ${target}" >&2;}
4765    { (exit 1); exit 1; }; } ;;
4766 esac
4767
4768 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
4769 cgen_cpu_prefix=""
4770 if test $using_cgen = yes ; then
4771   case ${target_cpu} in
4772     *) cgen_cpu_prefix=${target_cpu} ;;
4773   esac
4774
4775
4776 cat >>confdefs.h <<\_ACEOF
4777 #define USING_CGEN 1
4778 _ACEOF
4779
4780 fi
4781
4782
4783 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
4784   { { echo "$as_me:$LINENO: error: GAS does not support target CPU ${target_cpu_type}" >&5
4785 echo "$as_me: error: GAS does not support target CPU ${target_cpu_type}" >&2;}
4786    { (exit 1); exit 1; }; }
4787 fi
4788
4789 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
4790   { { echo "$as_me:$LINENO: error: GAS does not have support for object file format ${obj_format}" >&5
4791 echo "$as_me: error: GAS does not have support for object file format ${obj_format}" >&2;}
4792    { (exit 1); exit 1; }; }
4793 fi
4794
4795 case ${user_bfd_gas}-${primary_bfd_gas} in
4796   yes-yes | no-no)
4797     # We didn't override user's choice.
4798     ;;
4799   no-yes)
4800     { echo "$as_me:$LINENO: WARNING: Use of BFD is required for ${target}; overriding config options." >&5
4801 echo "$as_me: WARNING: Use of BFD is required for ${target}; overriding config options." >&2;}
4802     ;;
4803   no-preferred)
4804     primary_bfd_gas=no
4805     ;;
4806   *-preferred)
4807     primary_bfd_gas=yes
4808     ;;
4809   yes-*)
4810     primary_bfd_gas=yes
4811     ;;
4812   -*)
4813     # User specified nothing.
4814     ;;
4815 esac
4816
4817 # Some COFF configurations want these random other flags set.
4818 case ${obj_format} in
4819   coff)
4820     case ${target_cpu_type} in
4821       i386)
4822 cat >>confdefs.h <<\_ACEOF
4823 #define I386COFF 1
4824 _ACEOF
4825  ;;
4826       m68k)
4827 cat >>confdefs.h <<\_ACEOF
4828 #define M68KCOFF 1
4829 _ACEOF
4830  ;;
4831       m88k)
4832 cat >>confdefs.h <<\_ACEOF
4833 #define M88KCOFF 1
4834 _ACEOF
4835  ;;
4836     esac
4837     ;;
4838 esac
4839
4840 # Getting this done right is going to be a bitch.  Each configuration specified
4841 # with --enable-targets=... should be checked for environment, format, cpu, and
4842 # bfd_gas setting.
4843 #
4844 # For each configuration, the necessary object file support code must be linked
4845 # in.  This might be only one, it might be up to four.  The necessary emulation
4846 # code needs to be provided, too.
4847 #
4848 # And then there's "--enable-targets=all"....
4849 #
4850 # For now, just always do it for MIPS ELF or ECOFF configurations.  Sigh.
4851
4852 formats="${obj_format}"
4853 emfiles=""
4854 EMULATIONS=""
4855 _gas_uniq_list="$emulations"
4856 _gas_uniq_newlist=""
4857 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4858   case $_gas_uniq_i in
4859   _gas_uniq_dummy) ;;
4860   *) case " $_gas_uniq_newlist " in
4861        *" $_gas_uniq_i "*) ;;
4862        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4863      esac ;;
4864   esac
4865 done
4866 emulations=$_gas_uniq_newlist
4867
4868 for em in . $emulations ; do
4869   case $em in
4870     .)  continue ;;
4871     mipsbelf | mipslelf | mipself)
4872         fmt=elf   file=mipself ;;
4873     mipsbecoff | mipslecoff | mipsecoff)
4874         fmt=ecoff file=mipsecoff ;;
4875     *coff)
4876         fmt=coff  file=$em ;;
4877     *aout)
4878         fmt=aout file=$em ;;
4879     *elf)
4880         fmt=elf file=$em ;;
4881   esac
4882   formats="$formats $fmt"
4883   emfiles="$emfiles e-$file.o"
4884   EMULATIONS="$EMULATIONS &$em,"
4885 done
4886 _gas_uniq_list="$formats"
4887 _gas_uniq_newlist=""
4888 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4889   case $_gas_uniq_i in
4890   _gas_uniq_dummy) ;;
4891   *) case " $_gas_uniq_newlist " in
4892        *" $_gas_uniq_i "*) ;;
4893        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4894      esac ;;
4895   esac
4896 done
4897 formats=$_gas_uniq_newlist
4898
4899 _gas_uniq_list="$emfiles"
4900 _gas_uniq_newlist=""
4901 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
4902   case $_gas_uniq_i in
4903   _gas_uniq_dummy) ;;
4904   *) case " $_gas_uniq_newlist " in
4905        *" $_gas_uniq_i "*) ;;
4906        *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
4907      esac ;;
4908   esac
4909 done
4910 emfiles=$_gas_uniq_newlist
4911
4912 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
4913   for fmt in $formats ; do
4914     case $fmt in
4915       aout)
4916 cat >>confdefs.h <<\_ACEOF
4917 #define OBJ_MAYBE_AOUT 1
4918 _ACEOF
4919    ;;
4920       bout)
4921 cat >>confdefs.h <<\_ACEOF
4922 #define OBJ_MAYBE_BOUT 1
4923 _ACEOF
4924    ;;
4925       coff)
4926 cat >>confdefs.h <<\_ACEOF
4927 #define OBJ_MAYBE_COFF 1
4928 _ACEOF
4929     ;;
4930       ecoff)
4931 cat >>confdefs.h <<\_ACEOF
4932 #define OBJ_MAYBE_ECOFF 1
4933 _ACEOF
4934    ;;
4935       elf)
4936 cat >>confdefs.h <<\_ACEOF
4937 #define OBJ_MAYBE_ELF 1
4938 _ACEOF
4939      ;;
4940       generic)
4941 cat >>confdefs.h <<\_ACEOF
4942 #define OBJ_MAYBE_GENERIC 1
4943 _ACEOF
4944  ;;
4945       hp300)
4946 cat >>confdefs.h <<\_ACEOF
4947 #define OBJ_MAYBE_HP300 1
4948 _ACEOF
4949    ;;
4950       ieee)
4951 cat >>confdefs.h <<\_ACEOF
4952 #define OBJ_MAYBE_IEEE 1
4953 _ACEOF
4954     ;;
4955       som)
4956 cat >>confdefs.h <<\_ACEOF
4957 #define OBJ_MAYBE_SOM 1
4958 _ACEOF
4959      ;;
4960     esac
4961     extra_objects="$extra_objects obj-$fmt.o"
4962   done
4963   obj_format=multi
4964 fi
4965 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
4966   DEFAULT_EMULATION=`set . $emulations ; echo $2`
4967   # e-mips* has more than one emulation per file, e-i386* has just one at the
4968   # moment.  If only one emulation is specified, then don't define
4969   # USE_EMULATIONS or include any of the e-files as they will only be bloat.
4970   case "${obj_format}${emfiles}" in
4971     multi* | *mips*)
4972       extra_objects="$extra_objects $emfiles"
4973
4974 cat >>confdefs.h <<\_ACEOF
4975 #define USE_EMULATIONS 1
4976 _ACEOF
4977  ;;
4978   esac
4979 fi
4980
4981
4982 cat >>confdefs.h <<_ACEOF
4983 #define EMULATIONS $EMULATIONS
4984 _ACEOF
4985
4986
4987 cat >>confdefs.h <<_ACEOF
4988 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
4989 _ACEOF
4990
4991
4992 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
4993   yes-*-coff)   need_bfd=yes ;;
4994   no-*-coff)    need_bfd=yes
4995
4996 cat >>confdefs.h <<\_ACEOF
4997 #define MANY_SEGMENTS 1
4998 _ACEOF
4999  ;;
5000 esac
5001
5002 reject_dev_configs=yes
5003
5004 case ${reject_dev_configs}-${dev} in
5005   yes-yes) # Oops.
5006     { { echo "$as_me:$LINENO: error: GAS does not support the ${generic_target} configuration." >&5
5007 echo "$as_me: error: GAS does not support the ${generic_target} configuration." >&2;}
5008    { (exit 1); exit 1; }; }
5009     ;;
5010 esac
5011
5012
5013
5014
5015
5016
5017
5018 case "${primary_bfd_gas}" in
5019   yes)
5020 cat >>confdefs.h <<\_ACEOF
5021 #define BFD_ASSEMBLER 1
5022 _ACEOF
5023
5024         need_bfd=yes ;;
5025 esac
5026
5027 # do we need the opcodes library?
5028 case "${need_opcodes}" in
5029 yes)
5030   OPCODES_LIB=../opcodes/libopcodes.la
5031   ;;
5032 esac
5033
5034 case "${need_bfd}" in
5035 yes)
5036   BFDLIB=../bfd/libbfd.la
5037   BFDVER_H=../bfd/bfdver.h
5038   ALL_OBJ_DEPS="$ALL_OBJ_DEPS"' ../bfd/bfd.h $(INCDIR)/symcat.h'
5039   ;;
5040 esac
5041
5042
5043
5044
5045
5046
5047
5048
5049 cat >>confdefs.h <<_ACEOF
5050 #define TARGET_ALIAS "${target_alias}"
5051 _ACEOF
5052
5053
5054 cat >>confdefs.h <<_ACEOF
5055 #define TARGET_CANONICAL "${target}"
5056 _ACEOF
5057
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define TARGET_CPU "${target_cpu}"
5061 _ACEOF
5062
5063
5064 cat >>confdefs.h <<_ACEOF
5065 #define TARGET_VENDOR "${target_vendor}"
5066 _ACEOF
5067
5068
5069 cat >>confdefs.h <<_ACEOF
5070 #define TARGET_OS "${target_os}"
5071 _ACEOF
5072
5073
5074 ac_ext=c
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 if test -n "$ac_tool_prefix"; then
5080   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5082 echo "$as_me:$LINENO: checking for $ac_word" >&5
5083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5084 if test "${ac_cv_prog_CC+set}" = set; then
5085   echo $ECHO_N "(cached) $ECHO_C" >&6
5086 else
5087   if test -n "$CC"; then
5088   ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5092 do
5093   IFS=$as_save_IFS
5094   test -z "$as_dir" && as_dir=.
5095   for ac_exec_ext in '' $ac_executable_extensions; do
5096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099     break 2
5100   fi
5101 done
5102 done
5103
5104 fi
5105 fi
5106 CC=$ac_cv_prog_CC
5107 if test -n "$CC"; then
5108   echo "$as_me:$LINENO: result: $CC" >&5
5109 echo "${ECHO_T}$CC" >&6
5110 else
5111   echo "$as_me:$LINENO: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5113 fi
5114
5115 fi
5116 if test -z "$ac_cv_prog_CC"; then
5117   ac_ct_CC=$CC
5118   # Extract the first word of "gcc", so it can be a program name with args.
5119 set dummy gcc; ac_word=$2
5120 echo "$as_me:$LINENO: checking for $ac_word" >&5
5121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5122 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5123   echo $ECHO_N "(cached) $ECHO_C" >&6
5124 else
5125   if test -n "$ac_ct_CC"; then
5126   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131   IFS=$as_save_IFS
5132   test -z "$as_dir" && as_dir=.
5133   for ac_exec_ext in '' $ac_executable_extensions; do
5134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135     ac_cv_prog_ac_ct_CC="gcc"
5136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5137     break 2
5138   fi
5139 done
5140 done
5141
5142 fi
5143 fi
5144 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5145 if test -n "$ac_ct_CC"; then
5146   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5147 echo "${ECHO_T}$ac_ct_CC" >&6
5148 else
5149   echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5151 fi
5152
5153   CC=$ac_ct_CC
5154 else
5155   CC="$ac_cv_prog_CC"
5156 fi
5157
5158 if test -z "$CC"; then
5159   if test -n "$ac_tool_prefix"; then
5160   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5161 set dummy ${ac_tool_prefix}cc; ac_word=$2
5162 echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164 if test "${ac_cv_prog_CC+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   if test -n "$CC"; then
5168   ac_cv_prog_CC="$CC" # Let the user override the test.
5169 else
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175   for ac_exec_ext in '' $ac_executable_extensions; do
5176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177     ac_cv_prog_CC="${ac_tool_prefix}cc"
5178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179     break 2
5180   fi
5181 done
5182 done
5183
5184 fi
5185 fi
5186 CC=$ac_cv_prog_CC
5187 if test -n "$CC"; then
5188   echo "$as_me:$LINENO: result: $CC" >&5
5189 echo "${ECHO_T}$CC" >&6
5190 else
5191   echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6
5193 fi
5194
5195 fi
5196 if test -z "$ac_cv_prog_CC"; then
5197   ac_ct_CC=$CC
5198   # Extract the first word of "cc", so it can be a program name with args.
5199 set dummy cc; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5203   echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205   if test -n "$ac_ct_CC"; then
5206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211   IFS=$as_save_IFS
5212   test -z "$as_dir" && as_dir=.
5213   for ac_exec_ext in '' $ac_executable_extensions; do
5214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215     ac_cv_prog_ac_ct_CC="cc"
5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217     break 2
5218   fi
5219 done
5220 done
5221
5222 fi
5223 fi
5224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5225 if test -n "$ac_ct_CC"; then
5226   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5227 echo "${ECHO_T}$ac_ct_CC" >&6
5228 else
5229   echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6
5231 fi
5232
5233   CC=$ac_ct_CC
5234 else
5235   CC="$ac_cv_prog_CC"
5236 fi
5237
5238 fi
5239 if test -z "$CC"; then
5240   # Extract the first word of "cc", so it can be a program name with args.
5241 set dummy cc; ac_word=$2
5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244 if test "${ac_cv_prog_CC+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if test -n "$CC"; then
5248   ac_cv_prog_CC="$CC" # Let the user override the test.
5249 else
5250   ac_prog_rejected=no
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   test -z "$as_dir" && as_dir=.
5256   for ac_exec_ext in '' $ac_executable_extensions; do
5257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5259        ac_prog_rejected=yes
5260        continue
5261      fi
5262     ac_cv_prog_CC="cc"
5263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267 done
5268
5269 if test $ac_prog_rejected = yes; then
5270   # We found a bogon in the path, so make sure we never use it.
5271   set dummy $ac_cv_prog_CC
5272   shift
5273   if test $# != 0; then
5274     # We chose a different compiler from the bogus one.
5275     # However, it has the same basename, so the bogon will be chosen
5276     # first if we set CC to just the basename; use the full file name.
5277     shift
5278     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5279   fi
5280 fi
5281 fi
5282 fi
5283 CC=$ac_cv_prog_CC
5284 if test -n "$CC"; then
5285   echo "$as_me:$LINENO: result: $CC" >&5
5286 echo "${ECHO_T}$CC" >&6
5287 else
5288   echo "$as_me:$LINENO: result: no" >&5
5289 echo "${ECHO_T}no" >&6
5290 fi
5291
5292 fi
5293 if test -z "$CC"; then
5294   if test -n "$ac_tool_prefix"; then
5295   for ac_prog in cl
5296   do
5297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_CC+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   if test -n "$CC"; then
5305   ac_cv_prog_CC="$CC" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321 fi
5322 fi
5323 CC=$ac_cv_prog_CC
5324 if test -n "$CC"; then
5325   echo "$as_me:$LINENO: result: $CC" >&5
5326 echo "${ECHO_T}$CC" >&6
5327 else
5328   echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332     test -n "$CC" && break
5333   done
5334 fi
5335 if test -z "$CC"; then
5336   ac_ct_CC=$CC
5337   for ac_prog in cl
5338 do
5339   # Extract the first word of "$ac_prog", so it can be a program name with args.
5340 set dummy $ac_prog; ac_word=$2
5341 echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   if test -n "$ac_ct_CC"; then
5347   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5348 else
5349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354   for ac_exec_ext in '' $ac_executable_extensions; do
5355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_prog_ac_ct_CC="$ac_prog"
5357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361 done
5362
5363 fi
5364 fi
5365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5366 if test -n "$ac_ct_CC"; then
5367   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5368 echo "${ECHO_T}$ac_ct_CC" >&6
5369 else
5370   echo "$as_me:$LINENO: result: no" >&5
5371 echo "${ECHO_T}no" >&6
5372 fi
5373
5374   test -n "$ac_ct_CC" && break
5375 done
5376
5377   CC=$ac_ct_CC
5378 fi
5379
5380 fi
5381
5382
5383 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5384 See \`config.log' for more details." >&5
5385 echo "$as_me: error: no acceptable C compiler found in \$PATH
5386 See \`config.log' for more details." >&2;}
5387    { (exit 1); exit 1; }; }
5388
5389 # Provide some information about the compiler.
5390 echo "$as_me:$LINENO:" \
5391      "checking for C compiler version" >&5
5392 ac_compiler=`set X $ac_compile; echo $2`
5393 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5394   (eval $ac_compiler --version </dev/null >&5) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }
5398 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5399   (eval $ac_compiler -v </dev/null >&5) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }
5403 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5404   (eval $ac_compiler -V </dev/null >&5) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }
5408
5409 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5410 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5411 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5412   echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414   cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h.  */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h.  */
5420
5421 int
5422 main ()
5423 {
5424 #ifndef __GNUC__
5425        choke me
5426 #endif
5427
5428   ;
5429   return 0;
5430 }
5431 _ACEOF
5432 rm -f conftest.$ac_objext
5433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5434   (eval $ac_compile) 2>conftest.er1
5435   ac_status=$?
5436   grep -v '^ *+' conftest.er1 >conftest.err
5437   rm -f conftest.er1
5438   cat conftest.err >&5
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); } &&
5441          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5443   (eval $ac_try) 2>&5
5444   ac_status=$?
5445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446   (exit $ac_status); }; } &&
5447          { ac_try='test -s conftest.$ac_objext'
5448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5449   (eval $ac_try) 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; }; then
5453   ac_compiler_gnu=yes
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 ac_compiler_gnu=no
5459 fi
5460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5462
5463 fi
5464 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5465 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5466 GCC=`test $ac_compiler_gnu = yes && echo yes`
5467 ac_test_CFLAGS=${CFLAGS+set}
5468 ac_save_CFLAGS=$CFLAGS
5469 CFLAGS="-g"
5470 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5471 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5472 if test "${ac_cv_prog_cc_g+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481
5482 int
5483 main ()
5484 {
5485
5486   ;
5487   return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492   (eval $ac_compile) 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } &&
5499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501   (eval $ac_try) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }; } &&
5505          { ac_try='test -s conftest.$ac_objext'
5506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507   (eval $ac_try) 2>&5
5508   ac_status=$?
5509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510   (exit $ac_status); }; }; then
5511   ac_cv_prog_cc_g=yes
5512 else
5513   echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ac_cv_prog_cc_g=no
5517 fi
5518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5521 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5522 if test "$ac_test_CFLAGS" = set; then
5523   CFLAGS=$ac_save_CFLAGS
5524 elif test $ac_cv_prog_cc_g = yes; then
5525   if test "$GCC" = yes; then
5526     CFLAGS="-g -O2"
5527   else
5528     CFLAGS="-g"
5529   fi
5530 else
5531   if test "$GCC" = yes; then
5532     CFLAGS="-O2"
5533   else
5534     CFLAGS=
5535   fi
5536 fi
5537 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5538 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5539 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5540   echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542   ac_cv_prog_cc_stdc=no
5543 ac_save_CC=$CC
5544 cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 #include <stdarg.h>
5551 #include <stdio.h>
5552 #include <sys/types.h>
5553 #include <sys/stat.h>
5554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5555 struct buf { int x; };
5556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5557 static char *e (p, i)
5558      char **p;
5559      int i;
5560 {
5561   return p[i];
5562 }
5563 static char *f (char * (*g) (char **, int), char **p, ...)
5564 {
5565   char *s;
5566   va_list v;
5567   va_start (v,p);
5568   s = g (p, va_arg (v,int));
5569   va_end (v);
5570   return s;
5571 }
5572
5573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5574    function prototypes and stuff, but not '\xHH' hex character constants.
5575    These don't provoke an error unfortunately, instead are silently treated
5576    as 'x'.  The following induces an error, until -std1 is added to get
5577    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5578    array size at least.  It's necessary to write '\x00'==0 to get something
5579    that's true only with -std1.  */
5580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5581
5582 int test (int i, double x);
5583 struct s1 {int (*f) (int a);};
5584 struct s2 {int (*f) (double a);};
5585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5586 int argc;
5587 char **argv;
5588 int
5589 main ()
5590 {
5591 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5592   ;
5593   return 0;
5594 }
5595 _ACEOF
5596 # Don't try gcc -ansi; that turns off useful extensions and
5597 # breaks some systems' header files.
5598 # AIX                   -qlanglvl=ansi
5599 # Ultrix and OSF/1      -std1
5600 # HP-UX 10.20 and later -Ae
5601 # HP-UX older versions  -Aa -D_HPUX_SOURCE
5602 # SVR4                  -Xc -D__EXTENSIONS__
5603 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5604 do
5605   CC="$ac_save_CC $ac_arg"
5606   rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608   (eval $ac_compile) 2>conftest.er1
5609   ac_status=$?
5610   grep -v '^ *+' conftest.er1 >conftest.err
5611   rm -f conftest.er1
5612   cat conftest.err >&5
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); } &&
5615          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); }; } &&
5621          { ac_try='test -s conftest.$ac_objext'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; }; then
5627   ac_cv_prog_cc_stdc=$ac_arg
5628 break
5629 else
5630   echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5632
5633 fi
5634 rm -f conftest.err conftest.$ac_objext
5635 done
5636 rm -f conftest.$ac_ext conftest.$ac_objext
5637 CC=$ac_save_CC
5638
5639 fi
5640
5641 case "x$ac_cv_prog_cc_stdc" in
5642   x|xno)
5643     echo "$as_me:$LINENO: result: none needed" >&5
5644 echo "${ECHO_T}none needed" >&6 ;;
5645   *)
5646     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5647 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5648     CC="$CC $ac_cv_prog_cc_stdc" ;;
5649 esac
5650
5651 # Some people use a C++ compiler to compile C.  Since we use `exit',
5652 # in C++ we need to declare it.  In case someone uses the same compiler
5653 # for both compiling C and C++ we need to have the C++ compiler decide
5654 # the declaration of exit, since it's the most demanding environment.
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #ifndef __cplusplus
5657   choke me
5658 #endif
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5662   (eval $ac_compile) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } &&
5669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671   (eval $ac_try) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; } &&
5675          { ac_try='test -s conftest.$ac_objext'
5676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677   (eval $ac_try) 2>&5
5678   ac_status=$?
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); }; }; then
5681   for ac_declaration in \
5682    '' \
5683    'extern "C" void std::exit (int) throw (); using std::exit;' \
5684    'extern "C" void std::exit (int); using std::exit;' \
5685    'extern "C" void exit (int) throw ();' \
5686    'extern "C" void exit (int);' \
5687    'void exit (int);'
5688 do
5689   cat >conftest.$ac_ext <<_ACEOF
5690 /* confdefs.h.  */
5691 _ACEOF
5692 cat confdefs.h >>conftest.$ac_ext
5693 cat >>conftest.$ac_ext <<_ACEOF
5694 /* end confdefs.h.  */
5695 $ac_declaration
5696 #include <stdlib.h>
5697 int
5698 main ()
5699 {
5700 exit (42);
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707   (eval $ac_compile) 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } &&
5714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; } &&
5720          { ac_try='test -s conftest.$ac_objext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   :
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 continue
5732 fi
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734   cat >conftest.$ac_ext <<_ACEOF
5735 /* confdefs.h.  */
5736 _ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h.  */
5740 $ac_declaration
5741 int
5742 main ()
5743 {
5744 exit (42);
5745   ;
5746   return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5751   (eval $ac_compile) 2>conftest.er1
5752   ac_status=$?
5753   grep -v '^ *+' conftest.er1 >conftest.err
5754   rm -f conftest.er1
5755   cat conftest.err >&5
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; } &&
5764          { ac_try='test -s conftest.$ac_objext'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   break
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 fi
5776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778 rm -f conftest*
5779 if test -n "$ac_declaration"; then
5780   echo '#ifdef __cplusplus' >>confdefs.h
5781   echo $ac_declaration      >>confdefs.h
5782   echo '#endif'             >>confdefs.h
5783 fi
5784
5785 else
5786   echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5788
5789 fi
5790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5791 ac_ext=c
5792 ac_cpp='$CPP $CPPFLAGS'
5793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796
5797
5798 for ac_prog in 'bison -y' byacc
5799 do
5800   # Extract the first word of "$ac_prog", so it can be a program name with args.
5801 set dummy $ac_prog; ac_word=$2
5802 echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5804 if test "${ac_cv_prog_YACC+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   if test -n "$YACC"; then
5808   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815   for ac_exec_ext in '' $ac_executable_extensions; do
5816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817     ac_cv_prog_YACC="$ac_prog"
5818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822 done
5823
5824 fi
5825 fi
5826 YACC=$ac_cv_prog_YACC
5827 if test -n "$YACC"; then
5828   echo "$as_me:$LINENO: result: $YACC" >&5
5829 echo "${ECHO_T}$YACC" >&6
5830 else
5831   echo "$as_me:$LINENO: result: no" >&5
5832 echo "${ECHO_T}no" >&6
5833 fi
5834
5835   test -n "$YACC" && break
5836 done
5837 test -n "$YACC" || YACC="yacc"
5838
5839 for ac_prog in flex lex
5840 do
5841   # Extract the first word of "$ac_prog", so it can be a program name with args.
5842 set dummy $ac_prog; ac_word=$2
5843 echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845 if test "${ac_cv_prog_LEX+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   if test -n "$LEX"; then
5849   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_LEX="$ac_prog"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864
5865 fi
5866 fi
5867 LEX=$ac_cv_prog_LEX
5868 if test -n "$LEX"; then
5869   echo "$as_me:$LINENO: result: $LEX" >&5
5870 echo "${ECHO_T}$LEX" >&6
5871 else
5872   echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5874 fi
5875
5876   test -n "$LEX" && break
5877 done
5878 test -n "$LEX" || LEX=":"
5879
5880 if test -z "$LEXLIB"
5881 then
5882   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5883 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5884 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   ac_check_lib_save_LIBS=$LIBS
5888 LIBS="-lfl  $LIBS"
5889 cat >conftest.$ac_ext <<_ACEOF
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895
5896 /* Override any gcc2 internal prototype to avoid an error.  */
5897 #ifdef __cplusplus
5898 extern "C"
5899 #endif
5900 /* We use char because int might match the return type of a gcc2
5901    builtin and then its argument prototype would still apply.  */
5902 char yywrap ();
5903 int
5904 main ()
5905 {
5906 yywrap ();
5907   ;
5908   return 0;
5909 }
5910 _ACEOF
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913   (eval $ac_link) 2>conftest.er1
5914   ac_status=$?
5915   grep -v '^ *+' conftest.er1 >conftest.err
5916   rm -f conftest.er1
5917   cat conftest.err >&5
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); } &&
5920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922   (eval $ac_try) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); }; } &&
5926          { ac_try='test -s conftest$ac_exeext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_lib_fl_yywrap=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_cv_lib_fl_yywrap=no
5938 fi
5939 rm -f conftest.err conftest.$ac_objext \
5940       conftest$ac_exeext conftest.$ac_ext
5941 LIBS=$ac_check_lib_save_LIBS
5942 fi
5943 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5944 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5945 if test $ac_cv_lib_fl_yywrap = yes; then
5946   LEXLIB="-lfl"
5947 else
5948   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5949 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5950 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   ac_check_lib_save_LIBS=$LIBS
5954 LIBS="-ll  $LIBS"
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961
5962 /* Override any gcc2 internal prototype to avoid an error.  */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 /* We use char because int might match the return type of a gcc2
5967    builtin and then its argument prototype would still apply.  */
5968 char yywrap ();
5969 int
5970 main ()
5971 {
5972 yywrap ();
5973   ;
5974   return 0;
5975 }
5976 _ACEOF
5977 rm -f conftest.$ac_objext conftest$ac_exeext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5979   (eval $ac_link) 2>conftest.er1
5980   ac_status=$?
5981   grep -v '^ *+' conftest.er1 >conftest.err
5982   rm -f conftest.er1
5983   cat conftest.err >&5
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); } &&
5986          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988   (eval $ac_try) 2>&5
5989   ac_status=$?
5990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991   (exit $ac_status); }; } &&
5992          { ac_try='test -s conftest$ac_exeext'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; }; then
5998   ac_cv_lib_l_yywrap=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 ac_cv_lib_l_yywrap=no
6004 fi
6005 rm -f conftest.err conftest.$ac_objext \
6006       conftest$ac_exeext conftest.$ac_ext
6007 LIBS=$ac_check_lib_save_LIBS
6008 fi
6009 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6010 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
6011 if test $ac_cv_lib_l_yywrap = yes; then
6012   LEXLIB="-ll"
6013 fi
6014
6015 fi
6016
6017 fi
6018
6019 if test "x$LEX" != "x:"; then
6020   echo "$as_me:$LINENO: checking lex output file root" >&5
6021 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
6022 if test "${ac_cv_prog_lex_root+set}" = set; then
6023   echo $ECHO_N "(cached) $ECHO_C" >&6
6024 else
6025   # The minimal lex program is just a single line: %%.  But some broken lexes
6026 # (Solaris, I think it was) want two %% lines, so accommodate them.
6027 cat >conftest.l <<_ACEOF
6028 %%
6029 %%
6030 _ACEOF
6031 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
6032   (eval $LEX conftest.l) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }
6036 if test -f lex.yy.c; then
6037   ac_cv_prog_lex_root=lex.yy
6038 elif test -f lexyy.c; then
6039   ac_cv_prog_lex_root=lexyy
6040 else
6041   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6042 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6043    { (exit 1); exit 1; }; }
6044 fi
6045 fi
6046 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6047 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
6048 rm -f conftest.l
6049 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6050
6051 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6052 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
6053 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   # POSIX says lex can declare yytext either as a pointer or an array; the
6057 # default is implementation-dependent. Figure out which it is, since
6058 # not all implementations provide the %pointer and %array declarations.
6059 ac_cv_prog_lex_yytext_pointer=no
6060 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6061 ac_save_LIBS=$LIBS
6062 LIBS="$LIBS $LEXLIB"
6063 cat >conftest.$ac_ext <<_ACEOF
6064 `cat $LEX_OUTPUT_ROOT.c`
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6068   (eval $ac_link) 2>conftest.er1
6069   ac_status=$?
6070   grep -v '^ *+' conftest.er1 >conftest.err
6071   rm -f conftest.er1
6072   cat conftest.err >&5
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); } &&
6075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077   (eval $ac_try) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; } &&
6081          { ac_try='test -s conftest$ac_exeext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   ac_cv_prog_lex_yytext_pointer=yes
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6091
6092 fi
6093 rm -f conftest.err conftest.$ac_objext \
6094       conftest$ac_exeext conftest.$ac_ext
6095 LIBS=$ac_save_LIBS
6096 rm -f "${LEX_OUTPUT_ROOT}.c"
6097
6098 fi
6099 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6100 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
6101 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6102
6103 cat >>confdefs.h <<\_ACEOF
6104 #define YYTEXT_POINTER 1
6105 _ACEOF
6106
6107 fi
6108
6109 fi
6110 if test "$LEX" = :; then
6111   LEX=${am_missing_run}flex
6112 fi
6113
6114 ALL_LINGUAS="fr tr es"
6115 if test -n "$ac_tool_prefix"; then
6116   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6118 echo "$as_me:$LINENO: checking for $ac_word" >&5
6119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6120 if test "${ac_cv_prog_RANLIB+set}" = set; then
6121   echo $ECHO_N "(cached) $ECHO_C" >&6
6122 else
6123   if test -n "$RANLIB"; then
6124   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129   IFS=$as_save_IFS
6130   test -z "$as_dir" && as_dir=.
6131   for ac_exec_ext in '' $ac_executable_extensions; do
6132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6133     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6135     break 2
6136   fi
6137 done
6138 done
6139
6140 fi
6141 fi
6142 RANLIB=$ac_cv_prog_RANLIB
6143 if test -n "$RANLIB"; then
6144   echo "$as_me:$LINENO: result: $RANLIB" >&5
6145 echo "${ECHO_T}$RANLIB" >&6
6146 else
6147   echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6
6149 fi
6150
6151 fi
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153   ac_ct_RANLIB=$RANLIB
6154   # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 echo "$as_me:$LINENO: checking for $ac_word" >&5
6157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6159   echo $ECHO_N "(cached) $ECHO_C" >&6
6160 else
6161   if test -n "$ac_ct_RANLIB"; then
6162   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167   IFS=$as_save_IFS
6168   test -z "$as_dir" && as_dir=.
6169   for ac_exec_ext in '' $ac_executable_extensions; do
6170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6171     ac_cv_prog_ac_ct_RANLIB="ranlib"
6172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173     break 2
6174   fi
6175 done
6176 done
6177
6178   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6179 fi
6180 fi
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6184 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6185 else
6186   echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6
6188 fi
6189
6190   RANLIB=$ac_ct_RANLIB
6191 else
6192   RANLIB="$ac_cv_prog_RANLIB"
6193 fi
6194
6195 ac_ext=c
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6202 # On Suns, sometimes $CPP names a directory.
6203 if test -n "$CPP" && test -d "$CPP"; then
6204   CPP=
6205 fi
6206 if test -z "$CPP"; then
6207   if test "${ac_cv_prog_CPP+set}" = set; then
6208   echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210       # Double quotes because CPP needs to be expanded
6211     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6212     do
6213       ac_preproc_ok=false
6214 for ac_c_preproc_warn_flag in '' yes
6215 do
6216   # Use a header file that comes with gcc, so configuring glibc
6217   # with a fresh cross-compiler works.
6218   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219   # <limits.h> exists even on freestanding compilers.
6220   # On the NeXT, cc -E runs the code through the compiler's parser,
6221   # not just through cpp. "Syntax error" is here to catch this case.
6222   cat >conftest.$ac_ext <<_ACEOF
6223 /* confdefs.h.  */
6224 _ACEOF
6225 cat confdefs.h >>conftest.$ac_ext
6226 cat >>conftest.$ac_ext <<_ACEOF
6227 /* end confdefs.h.  */
6228 #ifdef __STDC__
6229 # include <limits.h>
6230 #else
6231 # include <assert.h>
6232 #endif
6233                      Syntax error
6234 _ACEOF
6235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6237   ac_status=$?
6238   grep -v '^ *+' conftest.er1 >conftest.err
6239   rm -f conftest.er1
6240   cat conftest.err >&5
6241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242   (exit $ac_status); } >/dev/null; then
6243   if test -s conftest.err; then
6244     ac_cpp_err=$ac_c_preproc_warn_flag
6245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6246   else
6247     ac_cpp_err=
6248   fi
6249 else
6250   ac_cpp_err=yes
6251 fi
6252 if test -z "$ac_cpp_err"; then
6253   :
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258   # Broken: fails on valid input.
6259 continue
6260 fi
6261 rm -f conftest.err conftest.$ac_ext
6262
6263   # OK, works on sane cases.  Now check whether non-existent headers
6264   # can be detected and how.
6265   cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 #include <ac_nonexistent.h>
6272 _ACEOF
6273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6275   ac_status=$?
6276   grep -v '^ *+' conftest.er1 >conftest.err
6277   rm -f conftest.er1
6278   cat conftest.err >&5
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); } >/dev/null; then
6281   if test -s conftest.err; then
6282     ac_cpp_err=$ac_c_preproc_warn_flag
6283     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6284   else
6285     ac_cpp_err=
6286   fi
6287 else
6288   ac_cpp_err=yes
6289 fi
6290 if test -z "$ac_cpp_err"; then
6291   # Broken: success on invalid input.
6292 continue
6293 else
6294   echo "$as_me: failed program was:" >&5
6295 sed 's/^/| /' conftest.$ac_ext >&5
6296
6297   # Passes both tests.
6298 ac_preproc_ok=:
6299 break
6300 fi
6301 rm -f conftest.err conftest.$ac_ext
6302
6303 done
6304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6305 rm -f conftest.err conftest.$ac_ext
6306 if $ac_preproc_ok; then
6307   break
6308 fi
6309
6310     done
6311     ac_cv_prog_CPP=$CPP
6312
6313 fi
6314   CPP=$ac_cv_prog_CPP
6315 else
6316   ac_cv_prog_CPP=$CPP
6317 fi
6318 echo "$as_me:$LINENO: result: $CPP" >&5
6319 echo "${ECHO_T}$CPP" >&6
6320 ac_preproc_ok=false
6321 for ac_c_preproc_warn_flag in '' yes
6322 do
6323   # Use a header file that comes with gcc, so configuring glibc
6324   # with a fresh cross-compiler works.
6325   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6326   # <limits.h> exists even on freestanding compilers.
6327   # On the NeXT, cc -E runs the code through the compiler's parser,
6328   # not just through cpp. "Syntax error" is here to catch this case.
6329   cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h.  */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h.  */
6335 #ifdef __STDC__
6336 # include <limits.h>
6337 #else
6338 # include <assert.h>
6339 #endif
6340                      Syntax error
6341 _ACEOF
6342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6344   ac_status=$?
6345   grep -v '^ *+' conftest.er1 >conftest.err
6346   rm -f conftest.er1
6347   cat conftest.err >&5
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); } >/dev/null; then
6350   if test -s conftest.err; then
6351     ac_cpp_err=$ac_c_preproc_warn_flag
6352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6353   else
6354     ac_cpp_err=
6355   fi
6356 else
6357   ac_cpp_err=yes
6358 fi
6359 if test -z "$ac_cpp_err"; then
6360   :
6361 else
6362   echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365   # Broken: fails on valid input.
6366 continue
6367 fi
6368 rm -f conftest.err conftest.$ac_ext
6369
6370   # OK, works on sane cases.  Now check whether non-existent headers
6371   # can be detected and how.
6372   cat >conftest.$ac_ext <<_ACEOF
6373 /* confdefs.h.  */
6374 _ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h.  */
6378 #include <ac_nonexistent.h>
6379 _ACEOF
6380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } >/dev/null; then
6388   if test -s conftest.err; then
6389     ac_cpp_err=$ac_c_preproc_warn_flag
6390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6391   else
6392     ac_cpp_err=
6393   fi
6394 else
6395   ac_cpp_err=yes
6396 fi
6397 if test -z "$ac_cpp_err"; then
6398   # Broken: success on invalid input.
6399 continue
6400 else
6401   echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404   # Passes both tests.
6405 ac_preproc_ok=:
6406 break
6407 fi
6408 rm -f conftest.err conftest.$ac_ext
6409
6410 done
6411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6412 rm -f conftest.err conftest.$ac_ext
6413 if $ac_preproc_ok; then
6414   :
6415 else
6416   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6417 See \`config.log' for more details." >&5
6418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6419 See \`config.log' for more details." >&2;}
6420    { (exit 1); exit 1; }; }
6421 fi
6422
6423 ac_ext=c
6424 ac_cpp='$CPP $CPPFLAGS'
6425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6428
6429
6430 echo "$as_me:$LINENO: checking for egrep" >&5
6431 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6432 if test "${ac_cv_prog_egrep+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6436     then ac_cv_prog_egrep='grep -E'
6437     else ac_cv_prog_egrep='egrep'
6438     fi
6439 fi
6440 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6441 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6442  EGREP=$ac_cv_prog_egrep
6443
6444
6445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6447 if test "${ac_cv_header_stdc+set}" = set; then
6448   echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450   cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 #include <stdlib.h>
6457 #include <stdarg.h>
6458 #include <string.h>
6459 #include <float.h>
6460
6461 int
6462 main ()
6463 {
6464
6465   ;
6466   return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471   (eval $ac_compile) 2>conftest.er1
6472   ac_status=$?
6473   grep -v '^ *+' conftest.er1 >conftest.err
6474   rm -f conftest.er1
6475   cat conftest.err >&5
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } &&
6478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; } &&
6484          { ac_try='test -s conftest.$ac_objext'
6485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486   (eval $ac_try) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); }; }; then
6490   ac_cv_header_stdc=yes
6491 else
6492   echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6494
6495 ac_cv_header_stdc=no
6496 fi
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6498
6499 if test $ac_cv_header_stdc = yes; then
6500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6501   cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507 #include <string.h>
6508
6509 _ACEOF
6510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6511   $EGREP "memchr" >/dev/null 2>&1; then
6512   :
6513 else
6514   ac_cv_header_stdc=no
6515 fi
6516 rm -f conftest*
6517
6518 fi
6519
6520 if test $ac_cv_header_stdc = yes; then
6521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6522   cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528 #include <stdlib.h>
6529
6530 _ACEOF
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532   $EGREP "free" >/dev/null 2>&1; then
6533   :
6534 else
6535   ac_cv_header_stdc=no
6536 fi
6537 rm -f conftest*
6538
6539 fi
6540
6541 if test $ac_cv_header_stdc = yes; then
6542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6543   if test "$cross_compiling" = yes; then
6544   :
6545 else
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 #include <ctype.h>
6553 #if ((' ' & 0x0FF) == 0x020)
6554 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6555 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6556 #else
6557 # define ISLOWER(c) \
6558                    (('a' <= (c) && (c) <= 'i') \
6559                      || ('j' <= (c) && (c) <= 'r') \
6560                      || ('s' <= (c) && (c) <= 'z'))
6561 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6562 #endif
6563
6564 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6565 int
6566 main ()
6567 {
6568   int i;
6569   for (i = 0; i < 256; i++)
6570     if (XOR (islower (i), ISLOWER (i))
6571         || toupper (i) != TOUPPER (i))
6572       exit(2);
6573   exit (0);
6574 }
6575 _ACEOF
6576 rm -f conftest$ac_exeext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6578   (eval $ac_link) 2>&5
6579   ac_status=$?
6580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; }; then
6587   :
6588 else
6589   echo "$as_me: program exited with status $ac_status" >&5
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ( exit $ac_status )
6594 ac_cv_header_stdc=no
6595 fi
6596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6597 fi
6598 fi
6599 fi
6600 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6601 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6602 if test $ac_cv_header_stdc = yes; then
6603
6604 cat >>confdefs.h <<\_ACEOF
6605 #define STDC_HEADERS 1
6606 _ACEOF
6607
6608 fi
6609
6610 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6611 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6612 if test "${ac_cv_c_const+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h.  */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h.  */
6621
6622 int
6623 main ()
6624 {
6625 /* FIXME: Include the comments suggested by Paul. */
6626 #ifndef __cplusplus
6627   /* Ultrix mips cc rejects this.  */
6628   typedef int charset[2];
6629   const charset x;
6630   /* SunOS 4.1.1 cc rejects this.  */
6631   char const *const *ccp;
6632   char **p;
6633   /* NEC SVR4.0.2 mips cc rejects this.  */
6634   struct point {int x, y;};
6635   static struct point const zero = {0,0};
6636   /* AIX XL C 1.02.0.0 rejects this.
6637      It does not let you subtract one const X* pointer from another in
6638      an arm of an if-expression whose if-part is not a constant
6639      expression */
6640   const char *g = "string";
6641   ccp = &g + (g ? g-g : 0);
6642   /* HPUX 7.0 cc rejects these. */
6643   ++ccp;
6644   p = (char**) ccp;
6645   ccp = (char const *const *) p;
6646   { /* SCO 3.2v4 cc rejects this.  */
6647     char *t;
6648     char const *s = 0 ? (char *) 0 : (char const *) 0;
6649
6650     *t++ = 0;
6651   }
6652   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6653     int x[] = {25, 17};
6654     const int *foo = &x[0];
6655     ++foo;
6656   }
6657   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6658     typedef const int *iptr;
6659     iptr p = 0;
6660     ++p;
6661   }
6662   { /* AIX XL C 1.02.0.0 rejects this saying
6663        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6664     struct s { int j; const int *ap[3]; };
6665     struct s *b; b->j = 5;
6666   }
6667   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6668     const int foo = 10;
6669   }
6670 #endif
6671
6672   ;
6673   return 0;
6674 }
6675 _ACEOF
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678   (eval $ac_compile) 2>conftest.er1
6679   ac_status=$?
6680   grep -v '^ *+' conftest.er1 >conftest.err
6681   rm -f conftest.er1
6682   cat conftest.err >&5
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); } &&
6685          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687   (eval $ac_try) 2>&5
6688   ac_status=$?
6689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690   (exit $ac_status); }; } &&
6691          { ac_try='test -s conftest.$ac_objext'
6692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693   (eval $ac_try) 2>&5
6694   ac_status=$?
6695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696   (exit $ac_status); }; }; then
6697   ac_cv_c_const=yes
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cv_c_const=no
6703 fi
6704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6705 fi
6706 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6707 echo "${ECHO_T}$ac_cv_c_const" >&6
6708 if test $ac_cv_c_const = no; then
6709
6710 cat >>confdefs.h <<\_ACEOF
6711 #define const
6712 _ACEOF
6713
6714 fi
6715
6716 echo "$as_me:$LINENO: checking for inline" >&5
6717 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6718 if test "${ac_cv_c_inline+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   ac_cv_c_inline=no
6722 for ac_kw in inline __inline__ __inline; do
6723   cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h.  */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h.  */
6729 #ifndef __cplusplus
6730 typedef int foo_t;
6731 static $ac_kw foo_t static_foo () {return 0; }
6732 $ac_kw foo_t foo () {return 0; }
6733 #endif
6734
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738   (eval $ac_compile) 2>conftest.er1
6739   ac_status=$?
6740   grep -v '^ *+' conftest.er1 >conftest.err
6741   rm -f conftest.er1
6742   cat conftest.err >&5
6743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744   (exit $ac_status); } &&
6745          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747   (eval $ac_try) 2>&5
6748   ac_status=$?
6749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); }; } &&
6751          { ac_try='test -s conftest.$ac_objext'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; }; then
6757   ac_cv_c_inline=$ac_kw; break
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762 fi
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764 done
6765
6766 fi
6767 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6768 echo "${ECHO_T}$ac_cv_c_inline" >&6
6769
6770
6771 case $ac_cv_c_inline in
6772   inline | yes) ;;
6773   *)
6774     case $ac_cv_c_inline in
6775       no) ac_val=;;
6776       *) ac_val=$ac_cv_c_inline;;
6777     esac
6778     cat >>confdefs.h <<_ACEOF
6779 #ifndef __cplusplus
6780 #define inline $ac_val
6781 #endif
6782 _ACEOF
6783     ;;
6784 esac
6785
6786 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6797                   inttypes.h stdint.h unistd.h
6798 do
6799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6800 echo "$as_me:$LINENO: checking for $ac_header" >&5
6801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 $ac_includes_default
6812
6813 #include <$ac_header>
6814 _ACEOF
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817   (eval $ac_compile) 2>conftest.er1
6818   ac_status=$?
6819   grep -v '^ *+' conftest.er1 >conftest.err
6820   rm -f conftest.er1
6821   cat conftest.err >&5
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); } &&
6824          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826   (eval $ac_try) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; } &&
6830          { ac_try='test -s conftest.$ac_objext'
6831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832   (eval $ac_try) 2>&5
6833   ac_status=$?
6834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835   (exit $ac_status); }; }; then
6836   eval "$as_ac_Header=yes"
6837 else
6838   echo "$as_me: failed program was:" >&5
6839 sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 eval "$as_ac_Header=no"
6842 fi
6843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6844 fi
6845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6848   cat >>confdefs.h <<_ACEOF
6849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6850 _ACEOF
6851
6852 fi
6853
6854 done
6855
6856
6857 echo "$as_me:$LINENO: checking for off_t" >&5
6858 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6859 if test "${ac_cv_type_off_t+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h.  */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h.  */
6868 $ac_includes_default
6869 int
6870 main ()
6871 {
6872 if ((off_t *) 0)
6873   return 0;
6874 if (sizeof (off_t))
6875   return 0;
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 rm -f conftest.$ac_objext
6881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6882   (eval $ac_compile) 2>conftest.er1
6883   ac_status=$?
6884   grep -v '^ *+' conftest.er1 >conftest.err
6885   rm -f conftest.er1
6886   cat conftest.err >&5
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); } &&
6889          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891   (eval $ac_try) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; } &&
6895          { ac_try='test -s conftest.$ac_objext'
6896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897   (eval $ac_try) 2>&5
6898   ac_status=$?
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); }; }; then
6901   ac_cv_type_off_t=yes
6902 else
6903   echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906 ac_cv_type_off_t=no
6907 fi
6908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6909 fi
6910 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6911 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6912 if test $ac_cv_type_off_t = yes; then
6913   :
6914 else
6915
6916 cat >>confdefs.h <<_ACEOF
6917 #define off_t long
6918 _ACEOF
6919
6920 fi
6921
6922 echo "$as_me:$LINENO: checking for size_t" >&5
6923 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6924 if test "${ac_cv_type_size_t+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 $ac_includes_default
6934 int
6935 main ()
6936 {
6937 if ((size_t *) 0)
6938   return 0;
6939 if (sizeof (size_t))
6940   return 0;
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6947   (eval $ac_compile) 2>conftest.er1
6948   ac_status=$?
6949   grep -v '^ *+' conftest.er1 >conftest.err
6950   rm -f conftest.er1
6951   cat conftest.err >&5
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; } &&
6960          { ac_try='test -s conftest.$ac_objext'
6961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962   (eval $ac_try) 2>&5
6963   ac_status=$?
6964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965   (exit $ac_status); }; }; then
6966   ac_cv_type_size_t=yes
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 ac_cv_type_size_t=no
6972 fi
6973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974 fi
6975 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6976 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6977 if test $ac_cv_type_size_t = yes; then
6978   :
6979 else
6980
6981 cat >>confdefs.h <<_ACEOF
6982 #define size_t unsigned
6983 _ACEOF
6984
6985 fi
6986
6987 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6988 # for constant arguments.  Useless!
6989 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6990 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6991 if test "${ac_cv_working_alloca_h+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   cat >conftest.$ac_ext <<_ACEOF
6995 /* confdefs.h.  */
6996 _ACEOF
6997 cat confdefs.h >>conftest.$ac_ext
6998 cat >>conftest.$ac_ext <<_ACEOF
6999 /* end confdefs.h.  */
7000 #include <alloca.h>
7001 int
7002 main ()
7003 {
7004 char *p = (char *) alloca (2 * sizeof (int));
7005   ;
7006   return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext conftest$ac_exeext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011   (eval $ac_link) 2>conftest.er1
7012   ac_status=$?
7013   grep -v '^ *+' conftest.er1 >conftest.err
7014   rm -f conftest.er1
7015   cat conftest.err >&5
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); } &&
7018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; } &&
7024          { ac_try='test -s conftest$ac_exeext'
7025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026   (eval $ac_try) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; }; then
7030   ac_cv_working_alloca_h=yes
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035 ac_cv_working_alloca_h=no
7036 fi
7037 rm -f conftest.err conftest.$ac_objext \
7038       conftest$ac_exeext conftest.$ac_ext
7039 fi
7040 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7041 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7042 if test $ac_cv_working_alloca_h = yes; then
7043
7044 cat >>confdefs.h <<\_ACEOF
7045 #define HAVE_ALLOCA_H 1
7046 _ACEOF
7047
7048 fi
7049
7050 echo "$as_me:$LINENO: checking for alloca" >&5
7051 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7052 if test "${ac_cv_func_alloca_works+set}" = set; then
7053   echo $ECHO_N "(cached) $ECHO_C" >&6
7054 else
7055   cat >conftest.$ac_ext <<_ACEOF
7056 /* confdefs.h.  */
7057 _ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h.  */
7061 #ifdef __GNUC__
7062 # define alloca __builtin_alloca
7063 #else
7064 # ifdef _MSC_VER
7065 #  include <malloc.h>
7066 #  define alloca _alloca
7067 # else
7068 #  if HAVE_ALLOCA_H
7069 #   include <alloca.h>
7070 #  else
7071 #   ifdef _AIX
7072  #pragma alloca
7073 #   else
7074 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7075 char *alloca ();
7076 #    endif
7077 #   endif
7078 #  endif
7079 # endif
7080 #endif
7081
7082 int
7083 main ()
7084 {
7085 char *p = (char *) alloca (1);
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 rm -f conftest.$ac_objext conftest$ac_exeext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092   (eval $ac_link) 2>conftest.er1
7093   ac_status=$?
7094   grep -v '^ *+' conftest.er1 >conftest.err
7095   rm -f conftest.er1
7096   cat conftest.err >&5
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } &&
7099          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101   (eval $ac_try) 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; } &&
7105          { ac_try='test -s conftest$ac_exeext'
7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107   (eval $ac_try) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; }; then
7111   ac_cv_func_alloca_works=yes
7112 else
7113   echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7115
7116 ac_cv_func_alloca_works=no
7117 fi
7118 rm -f conftest.err conftest.$ac_objext \
7119       conftest$ac_exeext conftest.$ac_ext
7120 fi
7121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7123
7124 if test $ac_cv_func_alloca_works = yes; then
7125
7126 cat >>confdefs.h <<\_ACEOF
7127 #define HAVE_ALLOCA 1
7128 _ACEOF
7129
7130 else
7131   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7132 # that cause trouble.  Some versions do not even contain alloca or
7133 # contain a buggy version.  If you still want to use their alloca,
7134 # use ar to extract alloca.o from them instead of compiling alloca.c.
7135
7136 ALLOCA=alloca.$ac_objext
7137
7138 cat >>confdefs.h <<\_ACEOF
7139 #define C_ALLOCA 1
7140 _ACEOF
7141
7142
7143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7145 if test "${ac_cv_os_cray+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 #if defined(CRAY) && ! defined(CRAY2)
7155 webecray
7156 #else
7157 wenotbecray
7158 #endif
7159
7160 _ACEOF
7161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7162   $EGREP "webecray" >/dev/null 2>&1; then
7163   ac_cv_os_cray=yes
7164 else
7165   ac_cv_os_cray=no
7166 fi
7167 rm -f conftest*
7168
7169 fi
7170 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7171 echo "${ECHO_T}$ac_cv_os_cray" >&6
7172 if test $ac_cv_os_cray = yes; then
7173   for ac_func in _getb67 GETB67 getb67; do
7174     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7175 echo "$as_me:$LINENO: checking for $ac_func" >&5
7176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7177 if eval "test \"\${$as_ac_var+set}\" = set"; then
7178   echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180   cat >conftest.$ac_ext <<_ACEOF
7181 /* confdefs.h.  */
7182 _ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h.  */
7186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7188 #define $ac_func innocuous_$ac_func
7189
7190 /* System header to define __stub macros and hopefully few prototypes,
7191     which can conflict with char $ac_func (); below.
7192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7193     <limits.h> exists even on freestanding compilers.  */
7194
7195 #ifdef __STDC__
7196 # include <limits.h>
7197 #else
7198 # include <assert.h>
7199 #endif
7200
7201 #undef $ac_func
7202
7203 /* Override any gcc2 internal prototype to avoid an error.  */
7204 #ifdef __cplusplus
7205 extern "C"
7206 {
7207 #endif
7208 /* We use char because int might match the return type of a gcc2
7209    builtin and then its argument prototype would still apply.  */
7210 char $ac_func ();
7211 /* The GNU C library defines this for functions which it implements
7212     to always fail with ENOSYS.  Some functions are actually named
7213     something starting with __ and the normal name is an alias.  */
7214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7215 choke me
7216 #else
7217 char (*f) () = $ac_func;
7218 #endif
7219 #ifdef __cplusplus
7220 }
7221 #endif
7222
7223 int
7224 main ()
7225 {
7226 return f != $ac_func;
7227   ;
7228   return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233   (eval $ac_link) 2>conftest.er1
7234   ac_status=$?
7235   grep -v '^ *+' conftest.er1 >conftest.err
7236   rm -f conftest.er1
7237   cat conftest.err >&5
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); } &&
7240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; } &&
7246          { ac_try='test -s conftest$ac_exeext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252   eval "$as_ac_var=yes"
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 eval "$as_ac_var=no"
7258 fi
7259 rm -f conftest.err conftest.$ac_objext \
7260       conftest$ac_exeext conftest.$ac_ext
7261 fi
7262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7264 if test `eval echo '${'$as_ac_var'}'` = yes; then
7265
7266 cat >>confdefs.h <<_ACEOF
7267 #define CRAY_STACKSEG_END $ac_func
7268 _ACEOF
7269
7270     break
7271 fi
7272
7273   done
7274 fi
7275
7276 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7277 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7278 if test "${ac_cv_c_stack_direction+set}" = set; then
7279   echo $ECHO_N "(cached) $ECHO_C" >&6
7280 else
7281   if test "$cross_compiling" = yes; then
7282   ac_cv_c_stack_direction=0
7283 else
7284   cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h.  */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h.  */
7290 int
7291 find_stack_direction ()
7292 {
7293   static char *addr = 0;
7294   auto char dummy;
7295   if (addr == 0)
7296     {
7297       addr = &dummy;
7298       return find_stack_direction ();
7299     }
7300   else
7301     return (&dummy > addr) ? 1 : -1;
7302 }
7303
7304 int
7305 main ()
7306 {
7307   exit (find_stack_direction () < 0);
7308 }
7309 _ACEOF
7310 rm -f conftest$ac_exeext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312   (eval $ac_link) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; }; then
7321   ac_cv_c_stack_direction=1
7322 else
7323   echo "$as_me: program exited with status $ac_status" >&5
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ( exit $ac_status )
7328 ac_cv_c_stack_direction=-1
7329 fi
7330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7331 fi
7332 fi
7333 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7334 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7335
7336 cat >>confdefs.h <<_ACEOF
7337 #define STACK_DIRECTION $ac_cv_c_stack_direction
7338 _ACEOF
7339
7340
7341 fi
7342
7343
7344
7345 for ac_header in stdlib.h unistd.h
7346 do
7347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7349   echo "$as_me:$LINENO: checking for $ac_header" >&5
7350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 fi
7354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7356 else
7357   # Is the header compilable?
7358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 $ac_includes_default
7367 #include <$ac_header>
7368 _ACEOF
7369 rm -f conftest.$ac_objext
7370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7371   (eval $ac_compile) 2>conftest.er1
7372   ac_status=$?
7373   grep -v '^ *+' conftest.er1 >conftest.err
7374   rm -f conftest.er1
7375   cat conftest.err >&5
7376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377   (exit $ac_status); } &&
7378          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; } &&
7384          { ac_try='test -s conftest.$ac_objext'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; }; then
7390   ac_header_compiler=yes
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395 ac_header_compiler=no
7396 fi
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7399 echo "${ECHO_T}$ac_header_compiler" >&6
7400
7401 # Is the header present?
7402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7404 cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 #include <$ac_header>
7411 _ACEOF
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } >/dev/null; then
7420   if test -s conftest.err; then
7421     ac_cpp_err=$ac_c_preproc_warn_flag
7422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7423   else
7424     ac_cpp_err=
7425   fi
7426 else
7427   ac_cpp_err=yes
7428 fi
7429 if test -z "$ac_cpp_err"; then
7430   ac_header_preproc=yes
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435   ac_header_preproc=no
7436 fi
7437 rm -f conftest.err conftest.$ac_ext
7438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7439 echo "${ECHO_T}$ac_header_preproc" >&6
7440
7441 # So?  What about this header?
7442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7443   yes:no: )
7444     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7448     ac_header_preproc=yes
7449     ;;
7450   no:yes:* )
7451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7453     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7454 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7455     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7457     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7458 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7461     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7463     (
7464       cat <<\_ASBOX
7465 ## ------------------------------------------ ##
7466 ## Report this to the AC_PACKAGE_NAME lists.  ##
7467 ## ------------------------------------------ ##
7468 _ASBOX
7469     ) |
7470       sed "s/^/$as_me: WARNING:     /" >&2
7471     ;;
7472 esac
7473 echo "$as_me:$LINENO: checking for $ac_header" >&5
7474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   eval "$as_ac_Header=\$ac_header_preproc"
7479 fi
7480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7482
7483 fi
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487 _ACEOF
7488
7489 fi
7490
7491 done
7492
7493
7494 for ac_func in getpagesize
7495 do
7496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7497 echo "$as_me:$LINENO: checking for $ac_func" >&5
7498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7499 if eval "test \"\${$as_ac_var+set}\" = set"; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h.  */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h.  */
7508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7510 #define $ac_func innocuous_$ac_func
7511
7512 /* System header to define __stub macros and hopefully few prototypes,
7513     which can conflict with char $ac_func (); below.
7514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515     <limits.h> exists even on freestanding compilers.  */
7516
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522
7523 #undef $ac_func
7524
7525 /* Override any gcc2 internal prototype to avoid an error.  */
7526 #ifdef __cplusplus
7527 extern "C"
7528 {
7529 #endif
7530 /* We use char because int might match the return type of a gcc2
7531    builtin and then its argument prototype would still apply.  */
7532 char $ac_func ();
7533 /* The GNU C library defines this for functions which it implements
7534     to always fail with ENOSYS.  Some functions are actually named
7535     something starting with __ and the normal name is an alias.  */
7536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7537 choke me
7538 #else
7539 char (*f) () = $ac_func;
7540 #endif
7541 #ifdef __cplusplus
7542 }
7543 #endif
7544
7545 int
7546 main ()
7547 {
7548 return f != $ac_func;
7549   ;
7550   return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555   (eval $ac_link) 2>conftest.er1
7556   ac_status=$?
7557   grep -v '^ *+' conftest.er1 >conftest.err
7558   rm -f conftest.er1
7559   cat conftest.err >&5
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } &&
7562          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564   (eval $ac_try) 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }; } &&
7568          { ac_try='test -s conftest$ac_exeext'
7569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570   (eval $ac_try) 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); }; }; then
7574   eval "$as_ac_var=yes"
7575 else
7576   echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7578
7579 eval "$as_ac_var=no"
7580 fi
7581 rm -f conftest.err conftest.$ac_objext \
7582       conftest$ac_exeext conftest.$ac_ext
7583 fi
7584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7586 if test `eval echo '${'$as_ac_var'}'` = yes; then
7587   cat >>confdefs.h <<_ACEOF
7588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7589 _ACEOF
7590
7591 fi
7592 done
7593
7594 echo "$as_me:$LINENO: checking for working mmap" >&5
7595 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7596 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7597   echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599   if test "$cross_compiling" = yes; then
7600   ac_cv_func_mmap_fixed_mapped=no
7601 else
7602   cat >conftest.$ac_ext <<_ACEOF
7603 /* confdefs.h.  */
7604 _ACEOF
7605 cat confdefs.h >>conftest.$ac_ext
7606 cat >>conftest.$ac_ext <<_ACEOF
7607 /* end confdefs.h.  */
7608 $ac_includes_default
7609 /* malloc might have been renamed as rpl_malloc. */
7610 #undef malloc
7611
7612 /* Thanks to Mike Haertel and Jim Avera for this test.
7613    Here is a matrix of mmap possibilities:
7614         mmap private not fixed
7615         mmap private fixed at somewhere currently unmapped
7616         mmap private fixed at somewhere already mapped
7617         mmap shared not fixed
7618         mmap shared fixed at somewhere currently unmapped
7619         mmap shared fixed at somewhere already mapped
7620    For private mappings, we should verify that changes cannot be read()
7621    back from the file, nor mmap's back from the file at a different
7622    address.  (There have been systems where private was not correctly
7623    implemented like the infamous i386 svr4.0, and systems where the
7624    VM page cache was not coherent with the file system buffer cache
7625    like early versions of FreeBSD and possibly contemporary NetBSD.)
7626    For shared mappings, we should conversely verify that changes get
7627    propagated back to all the places they're supposed to be.
7628
7629    Grep wants private fixed already mapped.
7630    The main things grep needs to know about mmap are:
7631    * does it exist and is it safe to write into the mmap'd area
7632    * how to use it (BSD variants)  */
7633
7634 #include <fcntl.h>
7635 #include <sys/mman.h>
7636
7637 #if !STDC_HEADERS && !HAVE_STDLIB_H
7638 char *malloc ();
7639 #endif
7640
7641 /* This mess was copied from the GNU getpagesize.h.  */
7642 #if !HAVE_GETPAGESIZE
7643 /* Assume that all systems that can run configure have sys/param.h.  */
7644 # if !HAVE_SYS_PARAM_H
7645 #  define HAVE_SYS_PARAM_H 1
7646 # endif
7647
7648 # ifdef _SC_PAGESIZE
7649 #  define getpagesize() sysconf(_SC_PAGESIZE)
7650 # else /* no _SC_PAGESIZE */
7651 #  if HAVE_SYS_PARAM_H
7652 #   include <sys/param.h>
7653 #   ifdef EXEC_PAGESIZE
7654 #    define getpagesize() EXEC_PAGESIZE
7655 #   else /* no EXEC_PAGESIZE */
7656 #    ifdef NBPG
7657 #     define getpagesize() NBPG * CLSIZE
7658 #     ifndef CLSIZE
7659 #      define CLSIZE 1
7660 #     endif /* no CLSIZE */
7661 #    else /* no NBPG */
7662 #     ifdef NBPC
7663 #      define getpagesize() NBPC
7664 #     else /* no NBPC */
7665 #      ifdef PAGESIZE
7666 #       define getpagesize() PAGESIZE
7667 #      endif /* PAGESIZE */
7668 #     endif /* no NBPC */
7669 #    endif /* no NBPG */
7670 #   endif /* no EXEC_PAGESIZE */
7671 #  else /* no HAVE_SYS_PARAM_H */
7672 #   define getpagesize() 8192   /* punt totally */
7673 #  endif /* no HAVE_SYS_PARAM_H */
7674 # endif /* no _SC_PAGESIZE */
7675
7676 #endif /* no HAVE_GETPAGESIZE */
7677
7678 int
7679 main ()
7680 {
7681   char *data, *data2, *data3;
7682   int i, pagesize;
7683   int fd;
7684
7685   pagesize = getpagesize ();
7686
7687   /* First, make a file with some known garbage in it. */
7688   data = (char *) malloc (pagesize);
7689   if (!data)
7690     exit (1);
7691   for (i = 0; i < pagesize; ++i)
7692     *(data + i) = rand ();
7693   umask (0);
7694   fd = creat ("conftest.mmap", 0600);
7695   if (fd < 0)
7696     exit (1);
7697   if (write (fd, data, pagesize) != pagesize)
7698     exit (1);
7699   close (fd);
7700
7701   /* Next, try to mmap the file at a fixed address which already has
7702      something else allocated at it.  If we can, also make sure that
7703      we see the same garbage.  */
7704   fd = open ("conftest.mmap", O_RDWR);
7705   if (fd < 0)
7706     exit (1);
7707   data2 = (char *) malloc (2 * pagesize);
7708   if (!data2)
7709     exit (1);
7710   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
7711   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7712                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
7713     exit (1);
7714   for (i = 0; i < pagesize; ++i)
7715     if (*(data + i) != *(data2 + i))
7716       exit (1);
7717
7718   /* Finally, make sure that changes to the mapped area do not
7719      percolate back to the file as seen by read().  (This is a bug on
7720      some variants of i386 svr4.0.)  */
7721   for (i = 0; i < pagesize; ++i)
7722     *(data2 + i) = *(data2 + i) + 1;
7723   data3 = (char *) malloc (pagesize);
7724   if (!data3)
7725     exit (1);
7726   if (read (fd, data3, pagesize) != pagesize)
7727     exit (1);
7728   for (i = 0; i < pagesize; ++i)
7729     if (*(data + i) != *(data3 + i))
7730       exit (1);
7731   close (fd);
7732   exit (0);
7733 }
7734 _ACEOF
7735 rm -f conftest$ac_exeext
7736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7737   (eval $ac_link) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   ac_cv_func_mmap_fixed_mapped=yes
7747 else
7748   echo "$as_me: program exited with status $ac_status" >&5
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 ( exit $ac_status )
7753 ac_cv_func_mmap_fixed_mapped=no
7754 fi
7755 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7756 fi
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7759 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7760 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_MMAP 1
7764 _ACEOF
7765
7766 fi
7767 rm -f conftest.mmap
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
7780 unistd.h values.h sys/param.h
7781 do
7782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7784   echo "$as_me:$LINENO: checking for $ac_header" >&5
7785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7787   echo $ECHO_N "(cached) $ECHO_C" >&6
7788 fi
7789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7791 else
7792   # Is the header compilable?
7793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7795 cat >conftest.$ac_ext <<_ACEOF
7796 /* confdefs.h.  */
7797 _ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h.  */
7801 $ac_includes_default
7802 #include <$ac_header>
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806   (eval $ac_compile) 2>conftest.er1
7807   ac_status=$?
7808   grep -v '^ *+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -z "$ac_c_werror_flag"                   || 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_objext'
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   ac_header_compiler=yes
7826 else
7827   echo "$as_me: failed program was:" >&5
7828 sed 's/^/| /' conftest.$ac_ext >&5
7829
7830 ac_header_compiler=no
7831 fi
7832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7834 echo "${ECHO_T}$ac_header_compiler" >&6
7835
7836 # Is the header present?
7837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7839 cat >conftest.$ac_ext <<_ACEOF
7840 /* confdefs.h.  */
7841 _ACEOF
7842 cat confdefs.h >>conftest.$ac_ext
7843 cat >>conftest.$ac_ext <<_ACEOF
7844 /* end confdefs.h.  */
7845 #include <$ac_header>
7846 _ACEOF
7847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7848   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } >/dev/null; then
7855   if test -s conftest.err; then
7856     ac_cpp_err=$ac_c_preproc_warn_flag
7857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7858   else
7859     ac_cpp_err=
7860   fi
7861 else
7862   ac_cpp_err=yes
7863 fi
7864 if test -z "$ac_cpp_err"; then
7865   ac_header_preproc=yes
7866 else
7867   echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870   ac_header_preproc=no
7871 fi
7872 rm -f conftest.err conftest.$ac_ext
7873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7874 echo "${ECHO_T}$ac_header_preproc" >&6
7875
7876 # So?  What about this header?
7877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7878   yes:no: )
7879     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7883     ac_header_preproc=yes
7884     ;;
7885   no:yes:* )
7886     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7888     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7889 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7890     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7892     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7893 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7896     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7898     (
7899       cat <<\_ASBOX
7900 ## ------------------------------------------ ##
7901 ## Report this to the AC_PACKAGE_NAME lists.  ##
7902 ## ------------------------------------------ ##
7903 _ASBOX
7904     ) |
7905       sed "s/^/$as_me: WARNING:     /" >&2
7906     ;;
7907 esac
7908 echo "$as_me:$LINENO: checking for $ac_header" >&5
7909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7911   echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913   eval "$as_ac_Header=\$ac_header_preproc"
7914 fi
7915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7917
7918 fi
7919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7920   cat >>confdefs.h <<_ACEOF
7921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7922 _ACEOF
7923
7924 fi
7925
7926 done
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7939 __argz_count __argz_stringify __argz_next
7940 do
7941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942 echo "$as_me:$LINENO: checking for $ac_func" >&5
7943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7944 if eval "test \"\${$as_ac_var+set}\" = set"; then
7945   echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947   cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h.  */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h.  */
7953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7955 #define $ac_func innocuous_$ac_func
7956
7957 /* System header to define __stub macros and hopefully few prototypes,
7958     which can conflict with char $ac_func (); below.
7959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960     <limits.h> exists even on freestanding compilers.  */
7961
7962 #ifdef __STDC__
7963 # include <limits.h>
7964 #else
7965 # include <assert.h>
7966 #endif
7967
7968 #undef $ac_func
7969
7970 /* Override any gcc2 internal prototype to avoid an error.  */
7971 #ifdef __cplusplus
7972 extern "C"
7973 {
7974 #endif
7975 /* We use char because int might match the return type of a gcc2
7976    builtin and then its argument prototype would still apply.  */
7977 char $ac_func ();
7978 /* The GNU C library defines this for functions which it implements
7979     to always fail with ENOSYS.  Some functions are actually named
7980     something starting with __ and the normal name is an alias.  */
7981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982 choke me
7983 #else
7984 char (*f) () = $ac_func;
7985 #endif
7986 #ifdef __cplusplus
7987 }
7988 #endif
7989
7990 int
7991 main ()
7992 {
7993 return f != $ac_func;
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000   (eval $ac_link) 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   eval "$as_ac_var=yes"
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 eval "$as_ac_var=no"
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027       conftest$ac_exeext conftest.$ac_ext
8028 fi
8029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8031 if test `eval echo '${'$as_ac_var'}'` = yes; then
8032   cat >>confdefs.h <<_ACEOF
8033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8034 _ACEOF
8035
8036 fi
8037 done
8038
8039
8040    if test "${ac_cv_func_stpcpy+set}" != "set"; then
8041
8042 for ac_func in stpcpy
8043 do
8044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8045 echo "$as_me:$LINENO: checking for $ac_func" >&5
8046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8047 if eval "test \"\${$as_ac_var+set}\" = set"; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   cat >conftest.$ac_ext <<_ACEOF
8051 /* confdefs.h.  */
8052 _ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h.  */
8056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8058 #define $ac_func innocuous_$ac_func
8059
8060 /* System header to define __stub macros and hopefully few prototypes,
8061     which can conflict with char $ac_func (); below.
8062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8063     <limits.h> exists even on freestanding compilers.  */
8064
8065 #ifdef __STDC__
8066 # include <limits.h>
8067 #else
8068 # include <assert.h>
8069 #endif
8070
8071 #undef $ac_func
8072
8073 /* Override any gcc2 internal prototype to avoid an error.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 {
8077 #endif
8078 /* We use char because int might match the return type of a gcc2
8079    builtin and then its argument prototype would still apply.  */
8080 char $ac_func ();
8081 /* The GNU C library defines this for functions which it implements
8082     to always fail with ENOSYS.  Some functions are actually named
8083     something starting with __ and the normal name is an alias.  */
8084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8085 choke me
8086 #else
8087 char (*f) () = $ac_func;
8088 #endif
8089 #ifdef __cplusplus
8090 }
8091 #endif
8092
8093 int
8094 main ()
8095 {
8096 return f != $ac_func;
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8103   (eval $ac_link) 2>conftest.er1
8104   ac_status=$?
8105   grep -v '^ *+' conftest.er1 >conftest.err
8106   rm -f conftest.er1
8107   cat conftest.err >&5
8108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109   (exit $ac_status); } &&
8110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; } &&
8116          { ac_try='test -s conftest$ac_exeext'
8117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118   (eval $ac_try) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; }; then
8122   eval "$as_ac_var=yes"
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 eval "$as_ac_var=no"
8128 fi
8129 rm -f conftest.err conftest.$ac_objext \
8130       conftest$ac_exeext conftest.$ac_ext
8131 fi
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8134 if test `eval echo '${'$as_ac_var'}'` = yes; then
8135   cat >>confdefs.h <<_ACEOF
8136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8137 _ACEOF
8138
8139 fi
8140 done
8141
8142    fi
8143    if test "${ac_cv_func_stpcpy}" = "yes"; then
8144
8145 cat >>confdefs.h <<\_ACEOF
8146 #define HAVE_STPCPY 1
8147 _ACEOF
8148
8149    fi
8150
8151    if test $ac_cv_header_locale_h = yes; then
8152     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8153 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8154 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8155   echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157   cat >conftest.$ac_ext <<_ACEOF
8158 /* confdefs.h.  */
8159 _ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h.  */
8163 #include <locale.h>
8164 int
8165 main ()
8166 {
8167 return LC_MESSAGES
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174   (eval $ac_link) 2>conftest.er1
8175   ac_status=$?
8176   grep -v '^ *+' conftest.er1 >conftest.err
8177   rm -f conftest.er1
8178   cat conftest.err >&5
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); } &&
8181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8183   (eval $ac_try) 2>&5
8184   ac_status=$?
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); }; } &&
8187          { ac_try='test -s conftest$ac_exeext'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; }; then
8193   am_cv_val_LC_MESSAGES=yes
8194 else
8195   echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 am_cv_val_LC_MESSAGES=no
8199 fi
8200 rm -f conftest.err conftest.$ac_objext \
8201       conftest$ac_exeext conftest.$ac_ext
8202 fi
8203 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8204 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8205     if test $am_cv_val_LC_MESSAGES = yes; then
8206
8207 cat >>confdefs.h <<\_ACEOF
8208 #define HAVE_LC_MESSAGES 1
8209 _ACEOF
8210
8211     fi
8212   fi
8213    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8214 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8215         # Check whether --enable-nls or --disable-nls was given.
8216 if test "${enable_nls+set}" = set; then
8217   enableval="$enable_nls"
8218   USE_NLS=$enableval
8219 else
8220   USE_NLS=yes
8221 fi;
8222     echo "$as_me:$LINENO: result: $USE_NLS" >&5
8223 echo "${ECHO_T}$USE_NLS" >&6
8224
8225
8226     USE_INCLUDED_LIBINTL=no
8227
8228         if test "$USE_NLS" = "yes"; then
8229       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8230 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8231
8232 # Check whether --with-included-gettext or --without-included-gettext was given.
8233 if test "${with_included_gettext+set}" = set; then
8234   withval="$with_included_gettext"
8235   nls_cv_force_use_gnu_gettext=$withval
8236 else
8237   nls_cv_force_use_gnu_gettext=no
8238 fi;
8239       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8240 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8241
8242       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8243       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8244                                         nls_cv_header_intl=
8245         nls_cv_header_libgt=
8246         CATOBJEXT=
8247
8248         if test "${ac_cv_header_libintl_h+set}" = set; then
8249   echo "$as_me:$LINENO: checking for libintl.h" >&5
8250 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8251 if test "${ac_cv_header_libintl_h+set}" = set; then
8252   echo $ECHO_N "(cached) $ECHO_C" >&6
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8255 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8256 else
8257   # Is the header compilable?
8258 echo "$as_me:$LINENO: checking libintl.h usability" >&5
8259 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 $ac_includes_default
8267 #include <libintl.h>
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8271   (eval $ac_compile) 2>conftest.er1
8272   ac_status=$?
8273   grep -v '^ *+' conftest.er1 >conftest.err
8274   rm -f conftest.er1
8275   cat conftest.err >&5
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } &&
8278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; } &&
8284          { ac_try='test -s conftest.$ac_objext'
8285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286   (eval $ac_try) 2>&5
8287   ac_status=$?
8288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); }; }; then
8290   ac_header_compiler=yes
8291 else
8292   echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 ac_header_compiler=no
8296 fi
8297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8299 echo "${ECHO_T}$ac_header_compiler" >&6
8300
8301 # Is the header present?
8302 echo "$as_me:$LINENO: checking libintl.h presence" >&5
8303 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
8304 cat >conftest.$ac_ext <<_ACEOF
8305 /* confdefs.h.  */
8306 _ACEOF
8307 cat confdefs.h >>conftest.$ac_ext
8308 cat >>conftest.$ac_ext <<_ACEOF
8309 /* end confdefs.h.  */
8310 #include <libintl.h>
8311 _ACEOF
8312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8314   ac_status=$?
8315   grep -v '^ *+' conftest.er1 >conftest.err
8316   rm -f conftest.er1
8317   cat conftest.err >&5
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); } >/dev/null; then
8320   if test -s conftest.err; then
8321     ac_cpp_err=$ac_c_preproc_warn_flag
8322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8323   else
8324     ac_cpp_err=
8325   fi
8326 else
8327   ac_cpp_err=yes
8328 fi
8329 if test -z "$ac_cpp_err"; then
8330   ac_header_preproc=yes
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335   ac_header_preproc=no
8336 fi
8337 rm -f conftest.err conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8339 echo "${ECHO_T}$ac_header_preproc" >&6
8340
8341 # So?  What about this header?
8342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8343   yes:no: )
8344     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8345 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8346     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
8347 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
8348     ac_header_preproc=yes
8349     ;;
8350   no:yes:* )
8351     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
8352 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
8353     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
8354 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
8355     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
8356 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
8357     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
8358 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8359     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
8360 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
8362 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
8363     (
8364       cat <<\_ASBOX
8365 ## ------------------------------------------ ##
8366 ## Report this to the AC_PACKAGE_NAME lists.  ##
8367 ## ------------------------------------------ ##
8368 _ASBOX
8369     ) |
8370       sed "s/^/$as_me: WARNING:     /" >&2
8371     ;;
8372 esac
8373 echo "$as_me:$LINENO: checking for libintl.h" >&5
8374 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8375 if test "${ac_cv_header_libintl_h+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378   ac_cv_header_libintl_h=$ac_header_preproc
8379 fi
8380 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8381 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
8382
8383 fi
8384 if test $ac_cv_header_libintl_h = yes; then
8385   echo "$as_me:$LINENO: checking for gettext in libc" >&5
8386 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
8387 if test "${gt_cv_func_gettext_libc+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h.  */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h.  */
8396 #include <libintl.h>
8397 int
8398 main ()
8399 {
8400 return (int) gettext ("")
8401   ;
8402   return 0;
8403 }
8404 _ACEOF
8405 rm -f conftest.$ac_objext conftest$ac_exeext
8406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8407   (eval $ac_link) 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } &&
8414          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   gt_cv_func_gettext_libc=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 gt_cv_func_gettext_libc=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
8437 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
8438
8439            if test "$gt_cv_func_gettext_libc" != "yes"; then
8440              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8441 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8442 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lintl  $LIBS"
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453
8454 /* Override any gcc2 internal prototype to avoid an error.  */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 /* We use char because int might match the return type of a gcc2
8459    builtin and then its argument prototype would still apply.  */
8460 char bindtextdomain ();
8461 int
8462 main ()
8463 {
8464 bindtextdomain ();
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext conftest$ac_exeext
8470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8471   (eval $ac_link) 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } &&
8478          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480   (eval $ac_try) 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; } &&
8484          { ac_try='test -s conftest$ac_exeext'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; }; then
8490   ac_cv_lib_intl_bindtextdomain=yes
8491 else
8492   echo "$as_me: failed program was:" >&5
8493 sed 's/^/| /' conftest.$ac_ext >&5
8494
8495 ac_cv_lib_intl_bindtextdomain=no
8496 fi
8497 rm -f conftest.err conftest.$ac_objext \
8498       conftest$ac_exeext conftest.$ac_ext
8499 LIBS=$ac_check_lib_save_LIBS
8500 fi
8501 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8502 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8503 if test $ac_cv_lib_intl_bindtextdomain = yes; then
8504   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
8505 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
8506 if test "${gt_cv_func_gettext_libintl+set}" = set; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515
8516 int
8517 main ()
8518 {
8519 return (int) gettext ("")
8520   ;
8521   return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8526   (eval $ac_link) 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535   (eval $ac_try) 2>&5
8536   ac_status=$?
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); }; } &&
8539          { ac_try='test -s conftest$ac_exeext'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; }; then
8545   gt_cv_func_gettext_libintl=yes
8546 else
8547   echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550 gt_cv_func_gettext_libintl=no
8551 fi
8552 rm -f conftest.err conftest.$ac_objext \
8553       conftest$ac_exeext conftest.$ac_ext
8554 fi
8555 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
8556 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
8557 fi
8558
8559            fi
8560
8561            if test "$gt_cv_func_gettext_libc" = "yes" \
8562               || test "$gt_cv_func_gettext_libintl" = "yes"; then
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_GETTEXT 1
8566 _ACEOF
8567
8568               # Extract the first word of "msgfmt", so it can be a program name with args.
8569 set dummy msgfmt; ac_word=$2
8570 echo "$as_me:$LINENO: checking for $ac_word" >&5
8571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8572 if test "${ac_cv_path_MSGFMT+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   case "$MSGFMT" in
8576   /*)
8577   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8578   ;;
8579   *)
8580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8581   for ac_dir in $PATH; do
8582     test -z "$ac_dir" && ac_dir=.
8583     if test -f $ac_dir/$ac_word; then
8584       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8585         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8586         break
8587       fi
8588     fi
8589   done
8590   IFS="$ac_save_ifs"
8591   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8592   ;;
8593 esac
8594 fi
8595 MSGFMT="$ac_cv_path_MSGFMT"
8596 if test -n "$MSGFMT"; then
8597   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8598 echo "${ECHO_T}$MSGFMT" >&6
8599 else
8600   echo "$as_me:$LINENO: result: no" >&5
8601 echo "${ECHO_T}no" >&6
8602 fi
8603               if test "$MSGFMT" != "no"; then
8604
8605 for ac_func in dcgettext
8606 do
8607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8608 echo "$as_me:$LINENO: checking for $ac_func" >&5
8609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8610 if eval "test \"\${$as_ac_var+set}\" = set"; then
8611   echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613   cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h.  */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h.  */
8619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8621 #define $ac_func innocuous_$ac_func
8622
8623 /* System header to define __stub macros and hopefully few prototypes,
8624     which can conflict with char $ac_func (); below.
8625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8626     <limits.h> exists even on freestanding compilers.  */
8627
8628 #ifdef __STDC__
8629 # include <limits.h>
8630 #else
8631 # include <assert.h>
8632 #endif
8633
8634 #undef $ac_func
8635
8636 /* Override any gcc2 internal prototype to avoid an error.  */
8637 #ifdef __cplusplus
8638 extern "C"
8639 {
8640 #endif
8641 /* We use char because int might match the return type of a gcc2
8642    builtin and then its argument prototype would still apply.  */
8643 char $ac_func ();
8644 /* The GNU C library defines this for functions which it implements
8645     to always fail with ENOSYS.  Some functions are actually named
8646     something starting with __ and the normal name is an alias.  */
8647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8648 choke me
8649 #else
8650 char (*f) () = $ac_func;
8651 #endif
8652 #ifdef __cplusplus
8653 }
8654 #endif
8655
8656 int
8657 main ()
8658 {
8659 return f != $ac_func;
8660   ;
8661   return 0;
8662 }
8663 _ACEOF
8664 rm -f conftest.$ac_objext conftest$ac_exeext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8666   (eval $ac_link) 2>conftest.er1
8667   ac_status=$?
8668   grep -v '^ *+' conftest.er1 >conftest.err
8669   rm -f conftest.er1
8670   cat conftest.err >&5
8671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672   (exit $ac_status); } &&
8673          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675   (eval $ac_try) 2>&5
8676   ac_status=$?
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); }; } &&
8679          { ac_try='test -s conftest$ac_exeext'
8680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681   (eval $ac_try) 2>&5
8682   ac_status=$?
8683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684   (exit $ac_status); }; }; then
8685   eval "$as_ac_var=yes"
8686 else
8687   echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8689
8690 eval "$as_ac_var=no"
8691 fi
8692 rm -f conftest.err conftest.$ac_objext \
8693       conftest$ac_exeext conftest.$ac_ext
8694 fi
8695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8697 if test `eval echo '${'$as_ac_var'}'` = yes; then
8698   cat >>confdefs.h <<_ACEOF
8699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8700 _ACEOF
8701
8702 fi
8703 done
8704
8705                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8706 set dummy gmsgfmt; ac_word=$2
8707 echo "$as_me:$LINENO: checking for $ac_word" >&5
8708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8709 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8710   echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712   case $GMSGFMT in
8713   [\\/]* | ?:[\\/]*)
8714   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8715   ;;
8716   *)
8717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720   IFS=$as_save_IFS
8721   test -z "$as_dir" && as_dir=.
8722   for ac_exec_ext in '' $ac_executable_extensions; do
8723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726     break 2
8727   fi
8728 done
8729 done
8730
8731   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8732   ;;
8733 esac
8734 fi
8735 GMSGFMT=$ac_cv_path_GMSGFMT
8736
8737 if test -n "$GMSGFMT"; then
8738   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8739 echo "${ECHO_T}$GMSGFMT" >&6
8740 else
8741   echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6
8743 fi
8744
8745                 # Extract the first word of "xgettext", so it can be a program name with args.
8746 set dummy xgettext; ac_word=$2
8747 echo "$as_me:$LINENO: checking for $ac_word" >&5
8748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8749 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   case "$XGETTEXT" in
8753   /*)
8754   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8755   ;;
8756   *)
8757   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8758   for ac_dir in $PATH; do
8759     test -z "$ac_dir" && ac_dir=.
8760     if test -f $ac_dir/$ac_word; then
8761       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8762         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8763         break
8764       fi
8765     fi
8766   done
8767   IFS="$ac_save_ifs"
8768   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8769   ;;
8770 esac
8771 fi
8772 XGETTEXT="$ac_cv_path_XGETTEXT"
8773 if test -n "$XGETTEXT"; then
8774   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8775 echo "${ECHO_T}$XGETTEXT" >&6
8776 else
8777   echo "$as_me:$LINENO: result: no" >&5
8778 echo "${ECHO_T}no" >&6
8779 fi
8780
8781                 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h.  */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h.  */
8787
8788 int
8789 main ()
8790 {
8791 extern int _nl_msg_cat_cntr;
8792                                return _nl_msg_cat_cntr
8793   ;
8794   return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8799   (eval $ac_link) 2>conftest.er1
8800   ac_status=$?
8801   grep -v '^ *+' conftest.er1 >conftest.err
8802   rm -f conftest.er1
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   (exit $ac_status); } &&
8806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808   (eval $ac_try) 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; } &&
8812          { ac_try='test -s conftest$ac_exeext'
8813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814   (eval $ac_try) 2>&5
8815   ac_status=$?
8816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817   (exit $ac_status); }; }; then
8818   CATOBJEXT=.gmo
8819                    DATADIRNAME=share
8820 else
8821   echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 CATOBJEXT=.mo
8825                    DATADIRNAME=lib
8826 fi
8827 rm -f conftest.err conftest.$ac_objext \
8828       conftest$ac_exeext conftest.$ac_ext
8829                 INSTOBJEXT=.mo
8830               fi
8831             fi
8832
8833 fi
8834
8835
8836
8837
8838         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8839           # Neither gettext nor catgets in included in the C library.
8840           # Fall back on GNU gettext library (assuming it is present).
8841           nls_cv_use_gnu_gettext=yes
8842         fi
8843       fi
8844
8845       if test "$nls_cv_use_gnu_gettext" = "yes"; then
8846                 INTLOBJS="\$(GETTOBJS)"
8847         # Extract the first word of "msgfmt", so it can be a program name with args.
8848 set dummy msgfmt; ac_word=$2
8849 echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851 if test "${ac_cv_path_MSGFMT+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   case "$MSGFMT" in
8855   /*)
8856   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8857   ;;
8858   *)
8859   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8860   for ac_dir in $PATH; do
8861     test -z "$ac_dir" && ac_dir=.
8862     if test -f $ac_dir/$ac_word; then
8863       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8864         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8865         break
8866       fi
8867     fi
8868   done
8869   IFS="$ac_save_ifs"
8870   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8871   ;;
8872 esac
8873 fi
8874 MSGFMT="$ac_cv_path_MSGFMT"
8875 if test -n "$MSGFMT"; then
8876   echo "$as_me:$LINENO: result: $MSGFMT" >&5
8877 echo "${ECHO_T}$MSGFMT" >&6
8878 else
8879   echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 fi
8882
8883         # Extract the first word of "gmsgfmt", so it can be a program name with args.
8884 set dummy gmsgfmt; ac_word=$2
8885 echo "$as_me:$LINENO: checking for $ac_word" >&5
8886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8887 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   case $GMSGFMT in
8891   [\\/]* | ?:[\\/]*)
8892   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8893   ;;
8894   *)
8895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8897 do
8898   IFS=$as_save_IFS
8899   test -z "$as_dir" && as_dir=.
8900   for ac_exec_ext in '' $ac_executable_extensions; do
8901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904     break 2
8905   fi
8906 done
8907 done
8908
8909   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8910   ;;
8911 esac
8912 fi
8913 GMSGFMT=$ac_cv_path_GMSGFMT
8914
8915 if test -n "$GMSGFMT"; then
8916   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8917 echo "${ECHO_T}$GMSGFMT" >&6
8918 else
8919   echo "$as_me:$LINENO: result: no" >&5
8920 echo "${ECHO_T}no" >&6
8921 fi
8922
8923         # Extract the first word of "xgettext", so it can be a program name with args.
8924 set dummy xgettext; ac_word=$2
8925 echo "$as_me:$LINENO: checking for $ac_word" >&5
8926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8927 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930   case "$XGETTEXT" in
8931   /*)
8932   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8933   ;;
8934   *)
8935   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8936   for ac_dir in $PATH; do
8937     test -z "$ac_dir" && ac_dir=.
8938     if test -f $ac_dir/$ac_word; then
8939       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8940         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8941         break
8942       fi
8943     fi
8944   done
8945   IFS="$ac_save_ifs"
8946   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8947   ;;
8948 esac
8949 fi
8950 XGETTEXT="$ac_cv_path_XGETTEXT"
8951 if test -n "$XGETTEXT"; then
8952   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8953 echo "${ECHO_T}$XGETTEXT" >&6
8954 else
8955   echo "$as_me:$LINENO: result: no" >&5
8956 echo "${ECHO_T}no" >&6
8957 fi
8958
8959
8960         USE_INCLUDED_LIBINTL=yes
8961         CATOBJEXT=.gmo
8962         INSTOBJEXT=.mo
8963         DATADIRNAME=share
8964         INTLDEPS='$(top_builddir)/../intl/libintl.a'
8965         INTLLIBS=$INTLDEPS
8966         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8967         nls_cv_header_intl=libintl.h
8968         nls_cv_header_libgt=libgettext.h
8969       fi
8970
8971             if test "$XGETTEXT" != ":"; then
8972                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8973           : ;
8974         else
8975           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8976 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8977           XGETTEXT=":"
8978         fi
8979       fi
8980
8981       # We need to process the po/ directory.
8982       POSUB=po
8983     else
8984       DATADIRNAME=share
8985       nls_cv_header_intl=libintl.h
8986       nls_cv_header_libgt=libgettext.h
8987     fi
8988
8989     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8990     # because some of the sources are only built for this goal.
8991     if test "$PACKAGE" = gettext; then
8992       USE_NLS=yes
8993       USE_INCLUDED_LIBINTL=yes
8994     fi
8995
8996                 for lang in $ALL_LINGUAS; do
8997       GMOFILES="$GMOFILES $lang.gmo"
8998       POFILES="$POFILES $lang.po"
8999     done
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012     if test "x$CATOBJEXT" != "x"; then
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define ENABLE_NLS 1
9016 _ACEOF
9017
9018     fi
9019
9020
9021    if test "x$CATOBJEXT" != "x"; then
9022      if test "x$ALL_LINGUAS" = "x"; then
9023        LINGUAS=
9024      else
9025        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
9026 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9027        NEW_LINGUAS=
9028        for lang in ${LINGUAS=$ALL_LINGUAS}; do
9029          case "$ALL_LINGUAS" in
9030           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
9031          esac
9032        done
9033        LINGUAS=$NEW_LINGUAS
9034        echo "$as_me:$LINENO: result: $LINGUAS" >&5
9035 echo "${ECHO_T}$LINGUAS" >&6
9036      fi
9037
9038           if test -n "$LINGUAS"; then
9039        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9040      fi
9041    fi
9042
9043             if test $ac_cv_header_locale_h = yes; then
9044      INCLUDE_LOCALE_H="#include <locale.h>"
9045    else
9046      INCLUDE_LOCALE_H="\
9047 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
9048    fi
9049
9050
9051             if test -f $srcdir/po2tbl.sed.in; then
9052       if test "$CATOBJEXT" = ".cat"; then
9053          if test "${ac_cv_header_linux_version_h+set}" = set; then
9054   echo "$as_me:$LINENO: checking for linux/version.h" >&5
9055 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9056 if test "${ac_cv_header_linux_version_h+set}" = set; then
9057   echo $ECHO_N "(cached) $ECHO_C" >&6
9058 fi
9059 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9060 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9061 else
9062   # Is the header compilable?
9063 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
9064 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071 $ac_includes_default
9072 #include <linux/version.h>
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9076   (eval $ac_compile) 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9085   (eval $ac_try) 2>&5
9086   ac_status=$?
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); }; } &&
9089          { ac_try='test -s conftest.$ac_objext'
9090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9091   (eval $ac_try) 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; }; then
9095   ac_header_compiler=yes
9096 else
9097   echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9099
9100 ac_header_compiler=no
9101 fi
9102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9104 echo "${ECHO_T}$ac_header_compiler" >&6
9105
9106 # Is the header present?
9107 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
9108 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 #include <linux/version.h>
9116 _ACEOF
9117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } >/dev/null; then
9125   if test -s conftest.err; then
9126     ac_cpp_err=$ac_c_preproc_warn_flag
9127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9128   else
9129     ac_cpp_err=
9130   fi
9131 else
9132   ac_cpp_err=yes
9133 fi
9134 if test -z "$ac_cpp_err"; then
9135   ac_header_preproc=yes
9136 else
9137   echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9139
9140   ac_header_preproc=no
9141 fi
9142 rm -f conftest.err conftest.$ac_ext
9143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9144 echo "${ECHO_T}$ac_header_preproc" >&6
9145
9146 # So?  What about this header?
9147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9148   yes:no: )
9149     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
9150 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
9152 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
9153     ac_header_preproc=yes
9154     ;;
9155   no:yes:* )
9156     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
9157 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
9158     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
9159 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
9160     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
9161 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
9162     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
9163 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9164     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
9165 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
9166     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
9167 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
9168     (
9169       cat <<\_ASBOX
9170 ## ------------------------------------------ ##
9171 ## Report this to the AC_PACKAGE_NAME lists.  ##
9172 ## ------------------------------------------ ##
9173 _ASBOX
9174     ) |
9175       sed "s/^/$as_me: WARNING:     /" >&2
9176     ;;
9177 esac
9178 echo "$as_me:$LINENO: checking for linux/version.h" >&5
9179 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
9180 if test "${ac_cv_header_linux_version_h+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183   ac_cv_header_linux_version_h=$ac_header_preproc
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
9187
9188 fi
9189 if test $ac_cv_header_linux_version_h = yes; then
9190   msgformat=linux
9191 else
9192   msgformat=xopen
9193 fi
9194
9195
9196
9197                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
9198       fi
9199             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
9200          $srcdir/po2tbl.sed.in > po2tbl.sed
9201    fi
9202
9203             if test "$PACKAGE" = "gettext"; then
9204      GT_NO="#NO#"
9205      GT_YES=
9206    else
9207      GT_NO=
9208      GT_YES="#YES#"
9209    fi
9210
9211
9212
9213    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
9214
9215
9216       l=
9217
9218
9219             if test -f $srcdir/po/POTFILES.in; then
9220       test -d po || mkdir po
9221       if test "x$srcdir" != "x."; then
9222          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
9223             posrcprefix="$srcdir/"
9224          else
9225             posrcprefix="../$srcdir/"
9226          fi
9227       else
9228          posrcprefix="../"
9229       fi
9230       rm -f po/POTFILES
9231       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
9232          < $srcdir/po/POTFILES.in > po/POTFILES
9233    fi
9234
9235
9236 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9237 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9238     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9239 if test "${enable_maintainer_mode+set}" = set; then
9240   enableval="$enable_maintainer_mode"
9241   USE_MAINTAINER_MODE=$enableval
9242 else
9243   USE_MAINTAINER_MODE=no
9244 fi;
9245   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9246 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9247
9248
9249 if test $USE_MAINTAINER_MODE = yes; then
9250   MAINTAINER_MODE_TRUE=
9251   MAINTAINER_MODE_FALSE='#'
9252 else
9253   MAINTAINER_MODE_TRUE='#'
9254   MAINTAINER_MODE_FALSE=
9255 fi
9256
9257   MAINT=$MAINTAINER_MODE_TRUE
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
9272 do
9273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9275   echo "$as_me:$LINENO: checking for $ac_header" >&5
9276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9278   echo $ECHO_N "(cached) $ECHO_C" >&6
9279 fi
9280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9282 else
9283   # Is the header compilable?
9284 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h.  */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h.  */
9292 $ac_includes_default
9293 #include <$ac_header>
9294 _ACEOF
9295 rm -f conftest.$ac_objext
9296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9297   (eval $ac_compile) 2>conftest.er1
9298   ac_status=$?
9299   grep -v '^ *+' conftest.er1 >conftest.err
9300   rm -f conftest.er1
9301   cat conftest.err >&5
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); } &&
9304          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; } &&
9310          { ac_try='test -s conftest.$ac_objext'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; }; then
9316   ac_header_compiler=yes
9317 else
9318   echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9320
9321 ac_header_compiler=no
9322 fi
9323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9324 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9325 echo "${ECHO_T}$ac_header_compiler" >&6
9326
9327 # Is the header present?
9328 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9330 cat >conftest.$ac_ext <<_ACEOF
9331 /* confdefs.h.  */
9332 _ACEOF
9333 cat confdefs.h >>conftest.$ac_ext
9334 cat >>conftest.$ac_ext <<_ACEOF
9335 /* end confdefs.h.  */
9336 #include <$ac_header>
9337 _ACEOF
9338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9339   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340   ac_status=$?
9341   grep -v '^ *+' conftest.er1 >conftest.err
9342   rm -f conftest.er1
9343   cat conftest.err >&5
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } >/dev/null; then
9346   if test -s conftest.err; then
9347     ac_cpp_err=$ac_c_preproc_warn_flag
9348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9349   else
9350     ac_cpp_err=
9351   fi
9352 else
9353   ac_cpp_err=yes
9354 fi
9355 if test -z "$ac_cpp_err"; then
9356   ac_header_preproc=yes
9357 else
9358   echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361   ac_header_preproc=no
9362 fi
9363 rm -f conftest.err conftest.$ac_ext
9364 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9365 echo "${ECHO_T}$ac_header_preproc" >&6
9366
9367 # So?  What about this header?
9368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9369   yes:no: )
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9372     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9374     ac_header_preproc=yes
9375     ;;
9376   no:yes:* )
9377     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9379     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9380 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9381     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9383     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9384 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9387     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9389     (
9390       cat <<\_ASBOX
9391 ## ------------------------------------------ ##
9392 ## Report this to the AC_PACKAGE_NAME lists.  ##
9393 ## ------------------------------------------ ##
9394 _ASBOX
9395     ) |
9396       sed "s/^/$as_me: WARNING:     /" >&2
9397     ;;
9398 esac
9399 echo "$as_me:$LINENO: checking for $ac_header" >&5
9400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   eval "$as_ac_Header=\$ac_header_preproc"
9405 fi
9406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9408
9409 fi
9410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9411   cat >>confdefs.h <<_ACEOF
9412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9413 _ACEOF
9414
9415 fi
9416
9417 done
9418
9419
9420 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
9421 # people who are not cross-compiling but are compiling cross-assemblers.
9422 echo "$as_me:$LINENO: checking whether compiling a cross-assembler" >&5
9423 echo $ECHO_N "checking whether compiling a cross-assembler... $ECHO_C" >&6
9424 if test "${host}" = "${target}"; then
9425   cross_gas=no
9426 else
9427   cross_gas=yes
9428
9429 cat >>confdefs.h <<\_ACEOF
9430 #define CROSS_COMPILE 1
9431 _ACEOF
9432
9433 fi
9434 echo "$as_me:$LINENO: result: $cross_gas" >&5
9435 echo "${ECHO_T}$cross_gas" >&6
9436
9437 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9438 # for constant arguments.  Useless!
9439 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9440 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9441 if test "${ac_cv_working_alloca_h+set}" = set; then
9442   echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 #include <alloca.h>
9451 int
9452 main ()
9453 {
9454 char *p = (char *) alloca (2 * sizeof (int));
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9461   (eval $ac_link) 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } &&
9468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470   (eval $ac_try) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; } &&
9474          { ac_try='test -s conftest$ac_exeext'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; }; then
9480   ac_cv_working_alloca_h=yes
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485 ac_cv_working_alloca_h=no
9486 fi
9487 rm -f conftest.err conftest.$ac_objext \
9488       conftest$ac_exeext conftest.$ac_ext
9489 fi
9490 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9491 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9492 if test $ac_cv_working_alloca_h = yes; then
9493
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_ALLOCA_H 1
9496 _ACEOF
9497
9498 fi
9499
9500 echo "$as_me:$LINENO: checking for alloca" >&5
9501 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9502 if test "${ac_cv_func_alloca_works+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   cat >conftest.$ac_ext <<_ACEOF
9506 /* confdefs.h.  */
9507 _ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h.  */
9511 #ifdef __GNUC__
9512 # define alloca __builtin_alloca
9513 #else
9514 # ifdef _MSC_VER
9515 #  include <malloc.h>
9516 #  define alloca _alloca
9517 # else
9518 #  if HAVE_ALLOCA_H
9519 #   include <alloca.h>
9520 #  else
9521 #   ifdef _AIX
9522  #pragma alloca
9523 #   else
9524 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9525 char *alloca ();
9526 #    endif
9527 #   endif
9528 #  endif
9529 # endif
9530 #endif
9531
9532 int
9533 main ()
9534 {
9535 char *p = (char *) alloca (1);
9536   ;
9537   return 0;
9538 }
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542   (eval $ac_link) 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } &&
9549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; } &&
9555          { ac_try='test -s conftest$ac_exeext'
9556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557   (eval $ac_try) 2>&5
9558   ac_status=$?
9559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560   (exit $ac_status); }; }; then
9561   ac_cv_func_alloca_works=yes
9562 else
9563   echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_func_alloca_works=no
9567 fi
9568 rm -f conftest.err conftest.$ac_objext \
9569       conftest$ac_exeext conftest.$ac_ext
9570 fi
9571 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9572 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9573
9574 if test $ac_cv_func_alloca_works = yes; then
9575
9576 cat >>confdefs.h <<\_ACEOF
9577 #define HAVE_ALLOCA 1
9578 _ACEOF
9579
9580 else
9581   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9582 # that cause trouble.  Some versions do not even contain alloca or
9583 # contain a buggy version.  If you still want to use their alloca,
9584 # use ar to extract alloca.o from them instead of compiling alloca.c.
9585
9586 ALLOCA=alloca.$ac_objext
9587
9588 cat >>confdefs.h <<\_ACEOF
9589 #define C_ALLOCA 1
9590 _ACEOF
9591
9592
9593 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9594 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9595 if test "${ac_cv_os_cray+set}" = set; then
9596   echo $ECHO_N "(cached) $ECHO_C" >&6
9597 else
9598   cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h.  */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h.  */
9604 #if defined(CRAY) && ! defined(CRAY2)
9605 webecray
9606 #else
9607 wenotbecray
9608 #endif
9609
9610 _ACEOF
9611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9612   $EGREP "webecray" >/dev/null 2>&1; then
9613   ac_cv_os_cray=yes
9614 else
9615   ac_cv_os_cray=no
9616 fi
9617 rm -f conftest*
9618
9619 fi
9620 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9621 echo "${ECHO_T}$ac_cv_os_cray" >&6
9622 if test $ac_cv_os_cray = yes; then
9623   for ac_func in _getb67 GETB67 getb67; do
9624     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9625 echo "$as_me:$LINENO: checking for $ac_func" >&5
9626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9627 if eval "test \"\${$as_ac_var+set}\" = set"; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9638 #define $ac_func innocuous_$ac_func
9639
9640 /* System header to define __stub macros and hopefully few prototypes,
9641     which can conflict with char $ac_func (); below.
9642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643     <limits.h> exists even on freestanding compilers.  */
9644
9645 #ifdef __STDC__
9646 # include <limits.h>
9647 #else
9648 # include <assert.h>
9649 #endif
9650
9651 #undef $ac_func
9652
9653 /* Override any gcc2 internal prototype to avoid an error.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 {
9657 #endif
9658 /* We use char because int might match the return type of a gcc2
9659    builtin and then its argument prototype would still apply.  */
9660 char $ac_func ();
9661 /* The GNU C library defines this for functions which it implements
9662     to always fail with ENOSYS.  Some functions are actually named
9663     something starting with __ and the normal name is an alias.  */
9664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9665 choke me
9666 #else
9667 char (*f) () = $ac_func;
9668 #endif
9669 #ifdef __cplusplus
9670 }
9671 #endif
9672
9673 int
9674 main ()
9675 {
9676 return f != $ac_func;
9677   ;
9678   return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9683   (eval $ac_link) 2>conftest.er1
9684   ac_status=$?
9685   grep -v '^ *+' conftest.er1 >conftest.err
9686   rm -f conftest.er1
9687   cat conftest.err >&5
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } &&
9690          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   eval "$as_ac_var=yes"
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 eval "$as_ac_var=no"
9708 fi
9709 rm -f conftest.err conftest.$ac_objext \
9710       conftest$ac_exeext conftest.$ac_ext
9711 fi
9712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9714 if test `eval echo '${'$as_ac_var'}'` = yes; then
9715
9716 cat >>confdefs.h <<_ACEOF
9717 #define CRAY_STACKSEG_END $ac_func
9718 _ACEOF
9719
9720     break
9721 fi
9722
9723   done
9724 fi
9725
9726 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9727 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9728 if test "${ac_cv_c_stack_direction+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   if test "$cross_compiling" = yes; then
9732   ac_cv_c_stack_direction=0
9733 else
9734   cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740 int
9741 find_stack_direction ()
9742 {
9743   static char *addr = 0;
9744   auto char dummy;
9745   if (addr == 0)
9746     {
9747       addr = &dummy;
9748       return find_stack_direction ();
9749     }
9750   else
9751     return (&dummy > addr) ? 1 : -1;
9752 }
9753
9754 int
9755 main ()
9756 {
9757   exit (find_stack_direction () < 0);
9758 }
9759 _ACEOF
9760 rm -f conftest$ac_exeext
9761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9762   (eval $ac_link) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   ac_cv_c_stack_direction=1
9772 else
9773   echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ( exit $ac_status )
9778 ac_cv_c_stack_direction=-1
9779 fi
9780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9781 fi
9782 fi
9783 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9784 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9785
9786 cat >>confdefs.h <<_ACEOF
9787 #define STACK_DIRECTION $ac_cv_c_stack_direction
9788 _ACEOF
9789
9790
9791 fi
9792
9793 echo "$as_me:$LINENO: checking for inline" >&5
9794 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9795 if test "${ac_cv_c_inline+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   ac_cv_c_inline=no
9799 for ac_kw in inline __inline__ __inline; do
9800   cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h.  */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h.  */
9806 #ifndef __cplusplus
9807 typedef int foo_t;
9808 static $ac_kw foo_t static_foo () {return 0; }
9809 $ac_kw foo_t foo () {return 0; }
9810 #endif
9811
9812 _ACEOF
9813 rm -f conftest.$ac_objext
9814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9815   (eval $ac_compile) 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } &&
9822          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest.$ac_objext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   ac_cv_c_inline=$ac_kw; break
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 fi
9840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9841 done
9842
9843 fi
9844 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9845 echo "${ECHO_T}$ac_cv_c_inline" >&6
9846
9847
9848 case $ac_cv_c_inline in
9849   inline | yes) ;;
9850   *)
9851     case $ac_cv_c_inline in
9852       no) ac_val=;;
9853       *) ac_val=$ac_cv_c_inline;;
9854     esac
9855     cat >>confdefs.h <<_ACEOF
9856 #ifndef __cplusplus
9857 #define inline $ac_val
9858 #endif
9859 _ACEOF
9860     ;;
9861 esac
9862
9863
9864 # VMS doesn't have unlink.
9865
9866
9867 for ac_func in unlink remove
9868 do
9869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9870 echo "$as_me:$LINENO: checking for $ac_func" >&5
9871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9872 if eval "test \"\${$as_ac_var+set}\" = set"; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875   cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9883 #define $ac_func innocuous_$ac_func
9884
9885 /* System header to define __stub macros and hopefully few prototypes,
9886     which can conflict with char $ac_func (); below.
9887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9888     <limits.h> exists even on freestanding compilers.  */
9889
9890 #ifdef __STDC__
9891 # include <limits.h>
9892 #else
9893 # include <assert.h>
9894 #endif
9895
9896 #undef $ac_func
9897
9898 /* Override any gcc2 internal prototype to avoid an error.  */
9899 #ifdef __cplusplus
9900 extern "C"
9901 {
9902 #endif
9903 /* We use char because int might match the return type of a gcc2
9904    builtin and then its argument prototype would still apply.  */
9905 char $ac_func ();
9906 /* The GNU C library defines this for functions which it implements
9907     to always fail with ENOSYS.  Some functions are actually named
9908     something starting with __ and the normal name is an alias.  */
9909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9910 choke me
9911 #else
9912 char (*f) () = $ac_func;
9913 #endif
9914 #ifdef __cplusplus
9915 }
9916 #endif
9917
9918 int
9919 main ()
9920 {
9921 return f != $ac_func;
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928   (eval $ac_link) 2>conftest.er1
9929   ac_status=$?
9930   grep -v '^ *+' conftest.er1 >conftest.err
9931   rm -f conftest.er1
9932   cat conftest.err >&5
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } &&
9935          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937   (eval $ac_try) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); }; } &&
9941          { ac_try='test -s conftest$ac_exeext'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   eval "$as_ac_var=yes"
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952 eval "$as_ac_var=no"
9953 fi
9954 rm -f conftest.err conftest.$ac_objext \
9955       conftest$ac_exeext conftest.$ac_ext
9956 fi
9957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9959 if test `eval echo '${'$as_ac_var'}'` = yes; then
9960   cat >>confdefs.h <<_ACEOF
9961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9962 _ACEOF
9963  break
9964 fi
9965 done
9966
9967
9968 # Some systems don't have sbrk().
9969
9970 for ac_func in sbrk
9971 do
9972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973 echo "$as_me:$LINENO: checking for $ac_func" >&5
9974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9975 if eval "test \"\${$as_ac_var+set}\" = set"; then
9976   echo $ECHO_N "(cached) $ECHO_C" >&6
9977 else
9978   cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9986 #define $ac_func innocuous_$ac_func
9987
9988 /* System header to define __stub macros and hopefully few prototypes,
9989     which can conflict with char $ac_func (); below.
9990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991     <limits.h> exists even on freestanding compilers.  */
9992
9993 #ifdef __STDC__
9994 # include <limits.h>
9995 #else
9996 # include <assert.h>
9997 #endif
9998
9999 #undef $ac_func
10000
10001 /* Override any gcc2 internal prototype to avoid an error.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 {
10005 #endif
10006 /* We use char because int might match the return type of a gcc2
10007    builtin and then its argument prototype would still apply.  */
10008 char $ac_func ();
10009 /* The GNU C library defines this for functions which it implements
10010     to always fail with ENOSYS.  Some functions are actually named
10011     something starting with __ and the normal name is an alias.  */
10012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10013 choke me
10014 #else
10015 char (*f) () = $ac_func;
10016 #endif
10017 #ifdef __cplusplus
10018 }
10019 #endif
10020
10021 int
10022 main ()
10023 {
10024 return f != $ac_func;
10025   ;
10026   return 0;
10027 }
10028 _ACEOF
10029 rm -f conftest.$ac_objext conftest$ac_exeext
10030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031   (eval $ac_link) 2>conftest.er1
10032   ac_status=$?
10033   grep -v '^ *+' conftest.er1 >conftest.err
10034   rm -f conftest.er1
10035   cat conftest.err >&5
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); } &&
10038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; } &&
10044          { ac_try='test -s conftest$ac_exeext'
10045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046   (eval $ac_try) 2>&5
10047   ac_status=$?
10048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049   (exit $ac_status); }; }; then
10050   eval "$as_ac_var=yes"
10051 else
10052   echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055 eval "$as_ac_var=no"
10056 fi
10057 rm -f conftest.err conftest.$ac_objext \
10058       conftest$ac_exeext conftest.$ac_ext
10059 fi
10060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063   cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065 _ACEOF
10066
10067 fi
10068 done
10069
10070
10071 # do we need the math library?
10072 case "${need_libm}" in
10073 yes)
10074   LIBM=
10075 case $host in
10076 *-*-beos* | *-*-cygwin* | *-*-pw32*)
10077   # These system don't have libm
10078   ;;
10079 *-ncr-sysv4.3*)
10080   echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
10081 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
10082 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085   ac_check_lib_save_LIBS=$LIBS
10086 LIBS="-lmw  $LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 /* Override any gcc2 internal prototype to avoid an error.  */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 /* We use char because int might match the return type of a gcc2
10099    builtin and then its argument prototype would still apply.  */
10100 char _mwvalidcheckl ();
10101 int
10102 main ()
10103 {
10104 _mwvalidcheckl ();
10105   ;
10106   return 0;
10107 }
10108 _ACEOF
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111   (eval $ac_link) 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } &&
10118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120   (eval $ac_try) 2>&5
10121   ac_status=$?
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); }; } &&
10124          { ac_try='test -s conftest$ac_exeext'
10125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126   (eval $ac_try) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; }; then
10130   ac_cv_lib_mw__mwvalidcheckl=yes
10131 else
10132   echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135 ac_cv_lib_mw__mwvalidcheckl=no
10136 fi
10137 rm -f conftest.err conftest.$ac_objext \
10138       conftest$ac_exeext conftest.$ac_ext
10139 LIBS=$ac_check_lib_save_LIBS
10140 fi
10141 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
10142 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
10143 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
10144   LIBM="-lmw"
10145 fi
10146
10147   echo "$as_me:$LINENO: checking for main in -lm" >&5
10148 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10149 if test "${ac_cv_lib_m_main+set}" = set; then
10150   echo $ECHO_N "(cached) $ECHO_C" >&6
10151 else
10152   ac_check_lib_save_LIBS=$LIBS
10153 LIBS="-lm  $LIBS"
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h.  */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h.  */
10160
10161
10162 int
10163 main ()
10164 {
10165 main ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181   (eval $ac_try) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); }; } &&
10185          { ac_try='test -s conftest$ac_exeext'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; }; then
10191   ac_cv_lib_m_main=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_cv_lib_m_main=no
10197 fi
10198 rm -f conftest.err conftest.$ac_objext \
10199       conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10203 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10204 if test $ac_cv_lib_m_main = yes; then
10205   LIBM="$LIBM -lm"
10206 fi
10207
10208   ;;
10209 *)
10210   echo "$as_me:$LINENO: checking for main in -lm" >&5
10211 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
10212 if test "${ac_cv_lib_m_main+set}" = set; then
10213   echo $ECHO_N "(cached) $ECHO_C" >&6
10214 else
10215   ac_check_lib_save_LIBS=$LIBS
10216 LIBS="-lm  $LIBS"
10217 cat >conftest.$ac_ext <<_ACEOF
10218 /* confdefs.h.  */
10219 _ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h.  */
10223
10224
10225 int
10226 main ()
10227 {
10228 main ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235   (eval $ac_link) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244   (eval $ac_try) 2>&5
10245   ac_status=$?
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); }; } &&
10248          { ac_try='test -s conftest$ac_exeext'
10249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250   (eval $ac_try) 2>&5
10251   ac_status=$?
10252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); }; }; then
10254   ac_cv_lib_m_main=yes
10255 else
10256   echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10258
10259 ac_cv_lib_m_main=no
10260 fi
10261 rm -f conftest.err conftest.$ac_objext \
10262       conftest$ac_exeext conftest.$ac_ext
10263 LIBS=$ac_check_lib_save_LIBS
10264 fi
10265 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
10266 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
10267 if test $ac_cv_lib_m_main = yes; then
10268   LIBM="-lm"
10269 fi
10270
10271   ;;
10272 esac
10273
10274
10275   ;;
10276 esac
10277
10278 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
10279 # enough, but on some of those systems, the assert macro relies on requoting
10280 # working properly!
10281 echo "$as_me:$LINENO: checking for working assert macro" >&5
10282 echo $ECHO_N "checking for working assert macro... $ECHO_C" >&6
10283 if test "${gas_cv_assert_ok+set}" = set; then
10284   echo $ECHO_N "(cached) $ECHO_C" >&6
10285 else
10286   cat >conftest.$ac_ext <<_ACEOF
10287 /* confdefs.h.  */
10288 _ACEOF
10289 cat confdefs.h >>conftest.$ac_ext
10290 cat >>conftest.$ac_ext <<_ACEOF
10291 /* end confdefs.h.  */
10292 #include <assert.h>
10293 #include <stdio.h>
10294 int
10295 main ()
10296 {
10297
10298 /* check for requoting problems */
10299 static int a, b, c, d;
10300 static char *s;
10301 assert (!strcmp(s, "foo bar baz quux"));
10302 /* check for newline handling */
10303 assert (a == b
10304         || c == d);
10305
10306   ;
10307   return 0;
10308 }
10309 _ACEOF
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312   (eval $ac_link) 2>conftest.er1
10313   ac_status=$?
10314   grep -v '^ *+' conftest.er1 >conftest.err
10315   rm -f conftest.er1
10316   cat conftest.err >&5
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest$ac_exeext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   gas_cv_assert_ok=yes
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 gas_cv_assert_ok=no
10337 fi
10338 rm -f conftest.err conftest.$ac_objext \
10339       conftest$ac_exeext conftest.$ac_ext
10340 fi
10341 echo "$as_me:$LINENO: result: $gas_cv_assert_ok" >&5
10342 echo "${ECHO_T}$gas_cv_assert_ok" >&6
10343 test $gas_cv_assert_ok = yes ||
10344 cat >>confdefs.h <<\_ACEOF
10345 #define BROKEN_ASSERT 1
10346 _ACEOF
10347
10348
10349
10350 # On some systems, the system header files may not declare malloc, realloc,
10351 # and free.  There are places where gas needs these functions to have been
10352 # declared -- such as when taking their addresses.
10353 gas_test_headers="
10354 #ifdef HAVE_MEMORY_H
10355 #include <memory.h>
10356 #endif
10357 #ifdef HAVE_STRING_H
10358 #include <string.h>
10359 #else
10360 #ifdef HAVE_STRINGS_H
10361 #include <strings.h>
10362 #endif
10363 #endif
10364 #ifdef HAVE_STDLIB_H
10365 #include <stdlib.h>
10366 #endif
10367 #ifdef HAVE_UNISTD_H
10368 #include <unistd.h>
10369 #endif
10370 "
10371
10372 echo "$as_me:$LINENO: checking whether declaration is required for strstr" >&5
10373 echo $ECHO_N "checking whether declaration is required for strstr... $ECHO_C" >&6
10374 if test "${gas_cv_decl_needed_strstr+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383 $gas_test_headers
10384 int
10385 main ()
10386 {
10387
10388 typedef char *(*f)();
10389 f x;
10390 x = (f) strstr;
10391
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10398   (eval $ac_link) 2>conftest.er1
10399   ac_status=$?
10400   grep -v '^ *+' conftest.er1 >conftest.err
10401   rm -f conftest.er1
10402   cat conftest.err >&5
10403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404   (exit $ac_status); } &&
10405          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10407   (eval $ac_try) 2>&5
10408   ac_status=$?
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); }; } &&
10411          { ac_try='test -s conftest$ac_exeext'
10412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413   (eval $ac_try) 2>&5
10414   ac_status=$?
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   gas_cv_decl_needed_strstr=no
10418 else
10419   echo "$as_me: failed program was:" >&5
10420 sed 's/^/| /' conftest.$ac_ext >&5
10421
10422 gas_cv_decl_needed_strstr=yes
10423 fi
10424 rm -f conftest.err conftest.$ac_objext \
10425       conftest$ac_exeext conftest.$ac_ext
10426 fi
10427 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_strstr" >&5
10428 echo "${ECHO_T}$gas_cv_decl_needed_strstr" >&6
10429 if test $gas_cv_decl_needed_strstr = yes; then
10430
10431 cat >>confdefs.h <<\_ACEOF
10432 #define NEED_DECLARATION_STRSTR 1
10433 _ACEOF
10434
10435 fi
10436
10437
10438 echo "$as_me:$LINENO: checking whether declaration is required for malloc" >&5
10439 echo $ECHO_N "checking whether declaration is required for malloc... $ECHO_C" >&6
10440 if test "${gas_cv_decl_needed_malloc+set}" = set; then
10441   echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443   cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449 $gas_test_headers
10450 int
10451 main ()
10452 {
10453
10454 typedef char *(*f)();
10455 f x;
10456 x = (f) malloc;
10457
10458   ;
10459   return 0;
10460 }
10461 _ACEOF
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10464   (eval $ac_link) 2>conftest.er1
10465   ac_status=$?
10466   grep -v '^ *+' conftest.er1 >conftest.err
10467   rm -f conftest.er1
10468   cat conftest.err >&5
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); } &&
10471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; } &&
10477          { ac_try='test -s conftest$ac_exeext'
10478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479   (eval $ac_try) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   gas_cv_decl_needed_malloc=no
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 gas_cv_decl_needed_malloc=yes
10489 fi
10490 rm -f conftest.err conftest.$ac_objext \
10491       conftest$ac_exeext conftest.$ac_ext
10492 fi
10493 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_malloc" >&5
10494 echo "${ECHO_T}$gas_cv_decl_needed_malloc" >&6
10495 if test $gas_cv_decl_needed_malloc = yes; then
10496
10497 cat >>confdefs.h <<\_ACEOF
10498 #define NEED_DECLARATION_MALLOC 1
10499 _ACEOF
10500
10501 fi
10502
10503
10504 echo "$as_me:$LINENO: checking whether declaration is required for free" >&5
10505 echo $ECHO_N "checking whether declaration is required for free... $ECHO_C" >&6
10506 if test "${gas_cv_decl_needed_free+set}" = set; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 $gas_test_headers
10516 int
10517 main ()
10518 {
10519
10520 typedef void (*f)();
10521 f x;
10522 x = (f) free;
10523
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530   (eval $ac_link) 2>conftest.er1
10531   ac_status=$?
10532   grep -v '^ *+' conftest.er1 >conftest.err
10533   rm -f conftest.er1
10534   cat conftest.err >&5
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } &&
10537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; } &&
10543          { ac_try='test -s conftest$ac_exeext'
10544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545   (eval $ac_try) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; }; then
10549   gas_cv_decl_needed_free=no
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 gas_cv_decl_needed_free=yes
10555 fi
10556 rm -f conftest.err conftest.$ac_objext \
10557       conftest$ac_exeext conftest.$ac_ext
10558 fi
10559 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_free" >&5
10560 echo "${ECHO_T}$gas_cv_decl_needed_free" >&6
10561 if test $gas_cv_decl_needed_free = yes; then
10562
10563 cat >>confdefs.h <<\_ACEOF
10564 #define NEED_DECLARATION_FREE 1
10565 _ACEOF
10566
10567 fi
10568
10569
10570 echo "$as_me:$LINENO: checking whether declaration is required for sbrk" >&5
10571 echo $ECHO_N "checking whether declaration is required for sbrk... $ECHO_C" >&6
10572 if test "${gas_cv_decl_needed_sbrk+set}" = set; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 $gas_test_headers
10582 int
10583 main ()
10584 {
10585
10586 typedef char *(*f)();
10587 f x;
10588 x = (f) sbrk;
10589
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596   (eval $ac_link) 2>conftest.er1
10597   ac_status=$?
10598   grep -v '^ *+' conftest.er1 >conftest.err
10599   rm -f conftest.er1
10600   cat conftest.err >&5
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } &&
10603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest$ac_exeext'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; }; then
10615   gas_cv_decl_needed_sbrk=no
10616 else
10617   echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10619
10620 gas_cv_decl_needed_sbrk=yes
10621 fi
10622 rm -f conftest.err conftest.$ac_objext \
10623       conftest$ac_exeext conftest.$ac_ext
10624 fi
10625 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_sbrk" >&5
10626 echo "${ECHO_T}$gas_cv_decl_needed_sbrk" >&6
10627 if test $gas_cv_decl_needed_sbrk = yes; then
10628
10629 cat >>confdefs.h <<\_ACEOF
10630 #define NEED_DECLARATION_SBRK 1
10631 _ACEOF
10632
10633 fi
10634
10635
10636 echo "$as_me:$LINENO: checking whether declaration is required for environ" >&5
10637 echo $ECHO_N "checking whether declaration is required for environ... $ECHO_C" >&6
10638 if test "${gas_cv_decl_needed_environ+set}" = set; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   cat >conftest.$ac_ext <<_ACEOF
10642 /* confdefs.h.  */
10643 _ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h.  */
10647 $gas_test_headers
10648 int
10649 main ()
10650 {
10651
10652 typedef char **f;
10653 f x;
10654 x = (f) environ;
10655
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662   (eval $ac_link) 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671   (eval $ac_try) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); }; } &&
10675          { ac_try='test -s conftest$ac_exeext'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   gas_cv_decl_needed_environ=no
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 gas_cv_decl_needed_environ=yes
10687 fi
10688 rm -f conftest.err conftest.$ac_objext \
10689       conftest$ac_exeext conftest.$ac_ext
10690 fi
10691 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_environ" >&5
10692 echo "${ECHO_T}$gas_cv_decl_needed_environ" >&6
10693 if test $gas_cv_decl_needed_environ = yes; then
10694
10695 cat >>confdefs.h <<\_ACEOF
10696 #define NEED_DECLARATION_ENVIRON 1
10697 _ACEOF
10698
10699 fi
10700
10701
10702 # Does errno.h declare errno, or do we have to add a separate declaration
10703 # for it?
10704
10705 echo "$as_me:$LINENO: checking whether declaration is required for errno" >&5
10706 echo $ECHO_N "checking whether declaration is required for errno... $ECHO_C" >&6
10707 if test "${gas_cv_decl_needed_errno+set}" = set; then
10708   echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710   cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h.  */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h.  */
10716
10717 #ifdef HAVE_ERRNO_H
10718 #include <errno.h>
10719 #endif
10720
10721 int
10722 main ()
10723 {
10724
10725 typedef int f;
10726 f x;
10727 x = (f) errno;
10728
10729   ;
10730   return 0;
10731 }
10732 _ACEOF
10733 rm -f conftest.$ac_objext conftest$ac_exeext
10734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735   (eval $ac_link) 2>conftest.er1
10736   ac_status=$?
10737   grep -v '^ *+' conftest.er1 >conftest.err
10738   rm -f conftest.er1
10739   cat conftest.err >&5
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } &&
10742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; } &&
10748          { ac_try='test -s conftest$ac_exeext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   gas_cv_decl_needed_errno=no
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 gas_cv_decl_needed_errno=yes
10760 fi
10761 rm -f conftest.err conftest.$ac_objext \
10762       conftest$ac_exeext conftest.$ac_ext
10763 fi
10764 echo "$as_me:$LINENO: result: $gas_cv_decl_needed_errno" >&5
10765 echo "${ECHO_T}$gas_cv_decl_needed_errno" >&6
10766 if test $gas_cv_decl_needed_errno = yes; then
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define NEED_DECLARATION_ERRNO 1
10770 _ACEOF
10771
10772 fi
10773
10774
10775
10776
10777                               ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10778
10779           ac_config_commands="$ac_config_commands default"
10780
10781
10782 cat >confcache <<\_ACEOF
10783 # This file is a shell script that caches the results of configure
10784 # tests run on this system so they can be shared between configure
10785 # scripts and configure runs, see configure's option --config-cache.
10786 # It is not useful on other systems.  If it contains results you don't
10787 # want to keep, you may remove or edit it.
10788 #
10789 # config.status only pays attention to the cache file if you give it
10790 # the --recheck option to rerun configure.
10791 #
10792 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10793 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10794 # following values.
10795
10796 _ACEOF
10797
10798 # The following way of writing the cache mishandles newlines in values,
10799 # but we know of no workaround that is simple, portable, and efficient.
10800 # So, don't put newlines in cache variables' values.
10801 # Ultrix sh set writes to stderr and can't be redirected directly,
10802 # and sets the high bit in the cache file unless we assign to the vars.
10803 {
10804   (set) 2>&1 |
10805     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10806     *ac_space=\ *)
10807       # `set' does not quote correctly, so add quotes (double-quote
10808       # substitution turns \\\\ into \\, and sed turns \\ into \).
10809       sed -n \
10810         "s/'/'\\\\''/g;
10811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10812       ;;
10813     *)
10814       # `set' quotes correctly as required by POSIX, so do not add quotes.
10815       sed -n \
10816         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10817       ;;
10818     esac;
10819 } |
10820   sed '
10821      t clear
10822      : clear
10823      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10824      t end
10825      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10826      : end' >>confcache
10827 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10828   if test -w $cache_file; then
10829     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10830     cat confcache >$cache_file
10831   else
10832     echo "not updating unwritable cache $cache_file"
10833   fi
10834 fi
10835 rm -f confcache
10836
10837 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10838 # Let make expand exec_prefix.
10839 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10840
10841 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10842 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10843 # trailing colons and then remove the whole line if VPATH becomes empty
10844 # (actually we leave an empty line to preserve line numbers).
10845 if test "x$srcdir" = x.; then
10846   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10847 s/:*\$(srcdir):*/:/;
10848 s/:*\${srcdir}:*/:/;
10849 s/:*@srcdir@:*/:/;
10850 s/^\([^=]*=[     ]*\):*/\1/;
10851 s/:*$//;
10852 s/^[^=]*=[       ]*$//;
10853 }'
10854 fi
10855
10856 DEFS=-DHAVE_CONFIG_H
10857
10858 ac_libobjs=
10859 ac_ltlibobjs=
10860 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10861   # 1. Remove the extension, and $U if already installed.
10862   ac_i=`echo "$ac_i" |
10863          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10864   # 2. Add them.
10865   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10866   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10867 done
10868 LIBOBJS=$ac_libobjs
10869
10870 LTLIBOBJS=$ac_ltlibobjs
10871
10872
10873 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10874   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10875 Usually this means the macro was only invoked conditionally." >&5
10876 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10877 Usually this means the macro was only invoked conditionally." >&2;}
10878    { (exit 1); exit 1; }; }
10879 fi
10880 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10881   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10882 Usually this means the macro was only invoked conditionally." >&5
10883 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10884 Usually this means the macro was only invoked conditionally." >&2;}
10885    { (exit 1); exit 1; }; }
10886 fi
10887 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10888   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10889 Usually this means the macro was only invoked conditionally." >&5
10890 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10891 Usually this means the macro was only invoked conditionally." >&2;}
10892    { (exit 1); exit 1; }; }
10893 fi
10894
10895 : ${CONFIG_STATUS=./config.status}
10896 ac_clean_files_save=$ac_clean_files
10897 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10898 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10899 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10900 cat >$CONFIG_STATUS <<_ACEOF
10901 #! $SHELL
10902 # Generated by $as_me.
10903 # Run this file to recreate the current configuration.
10904 # Compiler output produced by configure, useful for debugging
10905 # configure, is in config.log if it exists.
10906
10907 debug=false
10908 ac_cs_recheck=false
10909 ac_cs_silent=false
10910 SHELL=\${CONFIG_SHELL-$SHELL}
10911 _ACEOF
10912
10913 cat >>$CONFIG_STATUS <<\_ACEOF
10914 ## --------------------- ##
10915 ## M4sh Initialization.  ##
10916 ## --------------------- ##
10917
10918 # Be Bourne compatible
10919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10920   emulate sh
10921   NULLCMD=:
10922   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10923   # is contrary to our usage.  Disable this feature.
10924   alias -g '${1+"$@"}'='"$@"'
10925 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10926   set -o posix
10927 fi
10928 DUALCASE=1; export DUALCASE # for MKS sh
10929
10930 # Support unset when possible.
10931 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10932   as_unset=unset
10933 else
10934   as_unset=false
10935 fi
10936
10937
10938 # Work around bugs in pre-3.0 UWIN ksh.
10939 $as_unset ENV MAIL MAILPATH
10940 PS1='$ '
10941 PS2='> '
10942 PS4='+ '
10943
10944 # NLS nuisances.
10945 for as_var in \
10946   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10947   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10948   LC_TELEPHONE LC_TIME
10949 do
10950   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10951     eval $as_var=C; export $as_var
10952   else
10953     $as_unset $as_var
10954   fi
10955 done
10956
10957 # Required to use basename.
10958 if expr a : '\(a\)' >/dev/null 2>&1; then
10959   as_expr=expr
10960 else
10961   as_expr=false
10962 fi
10963
10964 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10965   as_basename=basename
10966 else
10967   as_basename=false
10968 fi
10969
10970
10971 # Name of the executable.
10972 as_me=`$as_basename "$0" ||
10973 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10974          X"$0" : 'X\(//\)$' \| \
10975          X"$0" : 'X\(/\)$' \| \
10976          .     : '\(.\)' 2>/dev/null ||
10977 echo X/"$0" |
10978     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10979           /^X\/\(\/\/\)$/{ s//\1/; q; }
10980           /^X\/\(\/\).*/{ s//\1/; q; }
10981           s/.*/./; q'`
10982
10983
10984 # PATH needs CR, and LINENO needs CR and PATH.
10985 # Avoid depending upon Character Ranges.
10986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10989 as_cr_digits='0123456789'
10990 as_cr_alnum=$as_cr_Letters$as_cr_digits
10991
10992 # The user is always right.
10993 if test "${PATH_SEPARATOR+set}" != set; then
10994   echo "#! /bin/sh" >conf$$.sh
10995   echo  "exit 0"   >>conf$$.sh
10996   chmod +x conf$$.sh
10997   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10998     PATH_SEPARATOR=';'
10999   else
11000     PATH_SEPARATOR=:
11001   fi
11002   rm -f conf$$.sh
11003 fi
11004
11005
11006   as_lineno_1=$LINENO
11007   as_lineno_2=$LINENO
11008   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11009   test "x$as_lineno_1" != "x$as_lineno_2" &&
11010   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11011   # Find who we are.  Look in the path if we contain no path at all
11012   # relative or not.
11013   case $0 in
11014     *[\\/]* ) as_myself=$0 ;;
11015     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016 for as_dir in $PATH
11017 do
11018   IFS=$as_save_IFS
11019   test -z "$as_dir" && as_dir=.
11020   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11021 done
11022
11023        ;;
11024   esac
11025   # We did not find ourselves, most probably we were run as `sh COMMAND'
11026   # in which case we are not to be found in the path.
11027   if test "x$as_myself" = x; then
11028     as_myself=$0
11029   fi
11030   if test ! -f "$as_myself"; then
11031     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11032 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11033    { (exit 1); exit 1; }; }
11034   fi
11035   case $CONFIG_SHELL in
11036   '')
11037     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11038 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11039 do
11040   IFS=$as_save_IFS
11041   test -z "$as_dir" && as_dir=.
11042   for as_base in sh bash ksh sh5; do
11043          case $as_dir in
11044          /*)
11045            if ("$as_dir/$as_base" -c '
11046   as_lineno_1=$LINENO
11047   as_lineno_2=$LINENO
11048   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11049   test "x$as_lineno_1" != "x$as_lineno_2" &&
11050   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11051              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11052              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11053              CONFIG_SHELL=$as_dir/$as_base
11054              export CONFIG_SHELL
11055              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11056            fi;;
11057          esac
11058        done
11059 done
11060 ;;
11061   esac
11062
11063   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11064   # uniformly replaced by the line number.  The first 'sed' inserts a
11065   # line-number line before each line; the second 'sed' does the real
11066   # work.  The second script uses 'N' to pair each line-number line
11067   # with the numbered line, and appends trailing '-' during
11068   # substitution so that $LINENO is not a special case at line end.
11069   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11070   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11071   sed '=' <$as_myself |
11072     sed '
11073       N
11074       s,$,-,
11075       : loop
11076       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11077       t loop
11078       s,-$,,
11079       s,^['$as_cr_digits']*\n,,
11080     ' >$as_me.lineno &&
11081   chmod +x $as_me.lineno ||
11082     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11083 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11084    { (exit 1); exit 1; }; }
11085
11086   # Don't try to exec as it changes $[0], causing all sort of problems
11087   # (the dirname of $[0] is not the place where we might find the
11088   # original and so on.  Autoconf is especially sensible to this).
11089   . ./$as_me.lineno
11090   # Exit status is that of the last command.
11091   exit
11092 }
11093
11094
11095 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11096   *c*,-n*) ECHO_N= ECHO_C='
11097 ' ECHO_T='      ' ;;
11098   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11099   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11100 esac
11101
11102 if expr a : '\(a\)' >/dev/null 2>&1; then
11103   as_expr=expr
11104 else
11105   as_expr=false
11106 fi
11107
11108 rm -f conf$$ conf$$.exe conf$$.file
11109 echo >conf$$.file
11110 if ln -s conf$$.file conf$$ 2>/dev/null; then
11111   # We could just check for DJGPP; but this test a) works b) is more generic
11112   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11113   if test -f conf$$.exe; then
11114     # Don't use ln at all; we don't have any links
11115     as_ln_s='cp -p'
11116   else
11117     as_ln_s='ln -s'
11118   fi
11119 elif ln conf$$.file conf$$ 2>/dev/null; then
11120   as_ln_s=ln
11121 else
11122   as_ln_s='cp -p'
11123 fi
11124 rm -f conf$$ conf$$.exe conf$$.file
11125
11126 if mkdir -p . 2>/dev/null; then
11127   as_mkdir_p=:
11128 else
11129   test -d ./-p && rmdir ./-p
11130   as_mkdir_p=false
11131 fi
11132
11133 as_executable_p="test -f"
11134
11135 # Sed expression to map a string onto a valid CPP name.
11136 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11137
11138 # Sed expression to map a string onto a valid variable name.
11139 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11140
11141
11142 # IFS
11143 # We need space, tab and new line, in precisely that order.
11144 as_nl='
11145 '
11146 IFS="   $as_nl"
11147
11148 # CDPATH.
11149 $as_unset CDPATH
11150
11151 exec 6>&1
11152
11153 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11154 # report actual input values of CONFIG_FILES etc. instead of their
11155 # values after options handling.  Logging --version etc. is OK.
11156 exec 5>>config.log
11157 {
11158   echo
11159   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11160 ## Running $as_me. ##
11161 _ASBOX
11162 } >&5
11163 cat >&5 <<_CSEOF
11164
11165 This file was extended by $as_me, which was
11166 generated by GNU Autoconf 2.59.  Invocation command line was
11167
11168   CONFIG_FILES    = $CONFIG_FILES
11169   CONFIG_HEADERS  = $CONFIG_HEADERS
11170   CONFIG_LINKS    = $CONFIG_LINKS
11171   CONFIG_COMMANDS = $CONFIG_COMMANDS
11172   $ $0 $@
11173
11174 _CSEOF
11175 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11176 echo >&5
11177 _ACEOF
11178
11179 # Files that config.status was made for.
11180 if test -n "$ac_config_files"; then
11181   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11182 fi
11183
11184 if test -n "$ac_config_headers"; then
11185   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11186 fi
11187
11188 if test -n "$ac_config_links"; then
11189   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11190 fi
11191
11192 if test -n "$ac_config_commands"; then
11193   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11194 fi
11195
11196 cat >>$CONFIG_STATUS <<\_ACEOF
11197
11198 ac_cs_usage="\
11199 \`$as_me' instantiates files from templates according to the
11200 current configuration.
11201
11202 Usage: $0 [OPTIONS] [FILE]...
11203
11204   -h, --help       print this help, then exit
11205   -V, --version    print version number, then exit
11206   -q, --quiet      do not print progress messages
11207   -d, --debug      don't remove temporary files
11208       --recheck    update $as_me by reconfiguring in the same conditions
11209   --file=FILE[:TEMPLATE]
11210                    instantiate the configuration file FILE
11211   --header=FILE[:TEMPLATE]
11212                    instantiate the configuration header FILE
11213
11214 Configuration files:
11215 $config_files
11216
11217 Configuration headers:
11218 $config_headers
11219
11220 Configuration commands:
11221 $config_commands
11222
11223 Report bugs to <bug-autoconf@gnu.org>."
11224 _ACEOF
11225
11226 cat >>$CONFIG_STATUS <<_ACEOF
11227 ac_cs_version="\\
11228 config.status
11229 configured by $0, generated by GNU Autoconf 2.59,
11230   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11231
11232 Copyright (C) 2003 Free Software Foundation, Inc.
11233 This config.status script is free software; the Free Software Foundation
11234 gives unlimited permission to copy, distribute and modify it."
11235 srcdir=$srcdir
11236 INSTALL="$INSTALL"
11237 _ACEOF
11238
11239 cat >>$CONFIG_STATUS <<\_ACEOF
11240 # If no file are specified by the user, then we need to provide default
11241 # value.  By we need to know if files were specified by the user.
11242 ac_need_defaults=:
11243 while test $# != 0
11244 do
11245   case $1 in
11246   --*=*)
11247     ac_option=`expr "x$1" : 'x\([^=]*\)='`
11248     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11249     ac_shift=:
11250     ;;
11251   -*)
11252     ac_option=$1
11253     ac_optarg=$2
11254     ac_shift=shift
11255     ;;
11256   *) # This is not an option, so the user has probably given explicit
11257      # arguments.
11258      ac_option=$1
11259      ac_need_defaults=false;;
11260   esac
11261
11262   case $ac_option in
11263   # Handling of the options.
11264 _ACEOF
11265 cat >>$CONFIG_STATUS <<\_ACEOF
11266   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11267     ac_cs_recheck=: ;;
11268   --version | --vers* | -V )
11269     echo "$ac_cs_version"; exit 0 ;;
11270   --he | --h)
11271     # Conflict between --help and --header
11272     { { echo "$as_me:$LINENO: error: ambiguous option: $1
11273 Try \`$0 --help' for more information." >&5
11274 echo "$as_me: error: ambiguous option: $1
11275 Try \`$0 --help' for more information." >&2;}
11276    { (exit 1); exit 1; }; };;
11277   --help | --hel | -h )
11278     echo "$ac_cs_usage"; exit 0 ;;
11279   --debug | --d* | -d )
11280     debug=: ;;
11281   --file | --fil | --fi | --f )
11282     $ac_shift
11283     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11284     ac_need_defaults=false;;
11285   --header | --heade | --head | --hea )
11286     $ac_shift
11287     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11288     ac_need_defaults=false;;
11289   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11290   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11291     ac_cs_silent=: ;;
11292
11293   # This is an error.
11294   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11295 Try \`$0 --help' for more information." >&5
11296 echo "$as_me: error: unrecognized option: $1
11297 Try \`$0 --help' for more information." >&2;}
11298    { (exit 1); exit 1; }; } ;;
11299
11300   *) ac_config_targets="$ac_config_targets $1" ;;
11301
11302   esac
11303   shift
11304 done
11305
11306 ac_configure_extra_args=
11307
11308 if $ac_cs_silent; then
11309   exec 6>/dev/null
11310   ac_configure_extra_args="$ac_configure_extra_args --silent"
11311 fi
11312
11313 _ACEOF
11314 cat >>$CONFIG_STATUS <<_ACEOF
11315 if \$ac_cs_recheck; then
11316   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11317   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11318 fi
11319
11320 _ACEOF
11321
11322 cat >>$CONFIG_STATUS <<_ACEOF
11323 #
11324 # INIT-COMMANDS section.
11325 #
11326
11327 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11328 target_cpu_type=${target_cpu_type}
11329  cgen_cpu_prefix=${cgen_cpu_prefix}
11330  obj_format=${obj_format}
11331  te_file=${te_file}
11332
11333 _ACEOF
11334
11335
11336
11337 cat >>$CONFIG_STATUS <<\_ACEOF
11338 for ac_config_target in $ac_config_targets
11339 do
11340   case "$ac_config_target" in
11341   # Handling of arguments.
11342   "gdb.ini" ) CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
11343   ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
11344   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11345   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11346   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11347   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11348   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11349   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11350   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11352    { (exit 1); exit 1; }; };;
11353   esac
11354 done
11355
11356 # If the user did not use the arguments to specify the items to instantiate,
11357 # then the envvar interface is used.  Set only those that are not.
11358 # We use the long form for the default assignment because of an extremely
11359 # bizarre bug on SunOS 4.1.3.
11360 if $ac_need_defaults; then
11361   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11362   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11363   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11364 fi
11365
11366 # Have a temporary directory for convenience.  Make it in the build tree
11367 # simply because there is no reason to put it here, and in addition,
11368 # creating and moving files from /tmp can sometimes cause problems.
11369 # Create a temporary directory, and hook for its removal unless debugging.
11370 $debug ||
11371 {
11372   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11373   trap '{ (exit 1); exit 1; }' 1 2 13 15
11374 }
11375
11376 # Create a (secure) tmp directory for tmp files.
11377
11378 {
11379   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11380   test -n "$tmp" && test -d "$tmp"
11381 }  ||
11382 {
11383   tmp=./confstat$$-$RANDOM
11384   (umask 077 && mkdir $tmp)
11385 } ||
11386 {
11387    echo "$me: cannot create a temporary directory in ." >&2
11388    { (exit 1); exit 1; }
11389 }
11390
11391 _ACEOF
11392
11393 cat >>$CONFIG_STATUS <<_ACEOF
11394
11395 #
11396 # CONFIG_FILES section.
11397 #
11398
11399 # No need to generate the scripts if there are no CONFIG_FILES.
11400 # This happens for instance when ./config.status config.h
11401 if test -n "\$CONFIG_FILES"; then
11402   # Protect against being on the right side of a sed subst in config.status.
11403   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11404    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11405 s,@SHELL@,$SHELL,;t t
11406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11412 s,@exec_prefix@,$exec_prefix,;t t
11413 s,@prefix@,$prefix,;t t
11414 s,@program_transform_name@,$program_transform_name,;t t
11415 s,@bindir@,$bindir,;t t
11416 s,@sbindir@,$sbindir,;t t
11417 s,@libexecdir@,$libexecdir,;t t
11418 s,@datadir@,$datadir,;t t
11419 s,@sysconfdir@,$sysconfdir,;t t
11420 s,@sharedstatedir@,$sharedstatedir,;t t
11421 s,@localstatedir@,$localstatedir,;t t
11422 s,@libdir@,$libdir,;t t
11423 s,@includedir@,$includedir,;t t
11424 s,@oldincludedir@,$oldincludedir,;t t
11425 s,@infodir@,$infodir,;t t
11426 s,@mandir@,$mandir,;t t
11427 s,@build_alias@,$build_alias,;t t
11428 s,@host_alias@,$host_alias,;t t
11429 s,@target_alias@,$target_alias,;t t
11430 s,@DEFS@,$DEFS,;t t
11431 s,@ECHO_C@,$ECHO_C,;t t
11432 s,@ECHO_N@,$ECHO_N,;t t
11433 s,@ECHO_T@,$ECHO_T,;t t
11434 s,@LIBS@,$LIBS,;t t
11435 s,@build@,$build,;t t
11436 s,@build_cpu@,$build_cpu,;t t
11437 s,@build_vendor@,$build_vendor,;t t
11438 s,@build_os@,$build_os,;t t
11439 s,@host@,$host,;t t
11440 s,@host_cpu@,$host_cpu,;t t
11441 s,@host_vendor@,$host_vendor,;t t
11442 s,@host_os@,$host_os,;t t
11443 s,@target@,$target,;t t
11444 s,@target_cpu@,$target_cpu,;t t
11445 s,@target_vendor@,$target_vendor,;t t
11446 s,@target_os@,$target_os,;t t
11447 s,@CC@,$CC,;t t
11448 s,@CFLAGS@,$CFLAGS,;t t
11449 s,@LDFLAGS@,$LDFLAGS,;t t
11450 s,@CPPFLAGS@,$CPPFLAGS,;t t
11451 s,@ac_ct_CC@,$ac_ct_CC,;t t
11452 s,@EXEEXT@,$EXEEXT,;t t
11453 s,@OBJEXT@,$OBJEXT,;t t
11454 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11455 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11456 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11457 s,@CYGPATH_W@,$CYGPATH_W,;t t
11458 s,@PACKAGE@,$PACKAGE,;t t
11459 s,@VERSION@,$VERSION,;t t
11460 s,@ACLOCAL@,$ACLOCAL,;t t
11461 s,@AUTOCONF@,$AUTOCONF,;t t
11462 s,@AUTOMAKE@,$AUTOMAKE,;t t
11463 s,@AUTOHEADER@,$AUTOHEADER,;t t
11464 s,@MAKEINFO@,$MAKEINFO,;t t
11465 s,@install_sh@,$install_sh,;t t
11466 s,@STRIP@,$STRIP,;t t
11467 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11468 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11469 s,@mkdir_p@,$mkdir_p,;t t
11470 s,@AWK@,$AWK,;t t
11471 s,@SET_MAKE@,$SET_MAKE,;t t
11472 s,@am__leading_dot@,$am__leading_dot,;t t
11473 s,@AMTAR@,$AMTAR,;t t
11474 s,@am__tar@,$am__tar,;t t
11475 s,@am__untar@,$am__untar,;t t
11476 s,@DEPDIR@,$DEPDIR,;t t
11477 s,@am__include@,$am__include,;t t
11478 s,@am__quote@,$am__quote,;t t
11479 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11480 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11481 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11482 s,@CCDEPMODE@,$CCDEPMODE,;t t
11483 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11484 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11485 s,@LN_S@,$LN_S,;t t
11486 s,@RANLIB@,$RANLIB,;t t
11487 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11488 s,@LIBTOOL@,$LIBTOOL,;t t
11489 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11490 s,@GDBINIT@,$GDBINIT,;t t
11491 s,@cgen_cpu_prefix@,$cgen_cpu_prefix,;t t
11492 s,@extra_objects@,$extra_objects,;t t
11493 s,@target_cpu_type@,$target_cpu_type,;t t
11494 s,@obj_format@,$obj_format,;t t
11495 s,@te_file@,$te_file,;t t
11496 s,@install_tooldir@,$install_tooldir,;t t
11497 s,@atof@,$atof,;t t
11498 s,@BFDLIB@,$BFDLIB,;t t
11499 s,@OPCODES_LIB@,$OPCODES_LIB,;t t
11500 s,@BFDVER_H@,$BFDVER_H,;t t
11501 s,@ALL_OBJ_DEPS@,$ALL_OBJ_DEPS,;t t
11502 s,@YACC@,$YACC,;t t
11503 s,@LEX@,$LEX,;t t
11504 s,@LEXLIB@,$LEXLIB,;t t
11505 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11506 s,@CPP@,$CPP,;t t
11507 s,@EGREP@,$EGREP,;t t
11508 s,@ALLOCA@,$ALLOCA,;t t
11509 s,@USE_NLS@,$USE_NLS,;t t
11510 s,@MSGFMT@,$MSGFMT,;t t
11511 s,@GMSGFMT@,$GMSGFMT,;t t
11512 s,@XGETTEXT@,$XGETTEXT,;t t
11513 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11514 s,@CATALOGS@,$CATALOGS,;t t
11515 s,@CATOBJEXT@,$CATOBJEXT,;t t
11516 s,@DATADIRNAME@,$DATADIRNAME,;t t
11517 s,@GMOFILES@,$GMOFILES,;t t
11518 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11519 s,@INTLDEPS@,$INTLDEPS,;t t
11520 s,@INTLLIBS@,$INTLLIBS,;t t
11521 s,@INTLOBJS@,$INTLOBJS,;t t
11522 s,@POFILES@,$POFILES,;t t
11523 s,@POSUB@,$POSUB,;t t
11524 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11525 s,@GT_NO@,$GT_NO,;t t
11526 s,@GT_YES@,$GT_YES,;t t
11527 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11528 s,@l@,$l,;t t
11529 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11530 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11531 s,@MAINT@,$MAINT,;t t
11532 s,@LIBM@,$LIBM,;t t
11533 s,@LIBOBJS@,$LIBOBJS,;t t
11534 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11535 CEOF
11536
11537 _ACEOF
11538
11539   cat >>$CONFIG_STATUS <<\_ACEOF
11540   # Split the substitutions into bite-sized pieces for seds with
11541   # small command number limits, like on Digital OSF/1 and HP-UX.
11542   ac_max_sed_lines=48
11543   ac_sed_frag=1 # Number of current file.
11544   ac_beg=1 # First line for current file.
11545   ac_end=$ac_max_sed_lines # Line after last line for current file.
11546   ac_more_lines=:
11547   ac_sed_cmds=
11548   while $ac_more_lines; do
11549     if test $ac_beg -gt 1; then
11550       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11551     else
11552       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11553     fi
11554     if test ! -s $tmp/subs.frag; then
11555       ac_more_lines=false
11556     else
11557       # The purpose of the label and of the branching condition is to
11558       # speed up the sed processing (if there are no `@' at all, there
11559       # is no need to browse any of the substitutions).
11560       # These are the two extra sed commands mentioned above.
11561       (echo ':t
11562   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11563       if test -z "$ac_sed_cmds"; then
11564         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11565       else
11566         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11567       fi
11568       ac_sed_frag=`expr $ac_sed_frag + 1`
11569       ac_beg=$ac_end
11570       ac_end=`expr $ac_end + $ac_max_sed_lines`
11571     fi
11572   done
11573   if test -z "$ac_sed_cmds"; then
11574     ac_sed_cmds=cat
11575   fi
11576 fi # test -n "$CONFIG_FILES"
11577
11578 _ACEOF
11579 cat >>$CONFIG_STATUS <<\_ACEOF
11580 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11581   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11582   case $ac_file in
11583   - | *:- | *:-:* ) # input from stdin
11584         cat >$tmp/stdin
11585         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11586         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11587   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11588         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11589   * )   ac_file_in=$ac_file.in ;;
11590   esac
11591
11592   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11593   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11595          X"$ac_file" : 'X\(//\)[^/]' \| \
11596          X"$ac_file" : 'X\(//\)$' \| \
11597          X"$ac_file" : 'X\(/\)' \| \
11598          .     : '\(.\)' 2>/dev/null ||
11599 echo X"$ac_file" |
11600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11602           /^X\(\/\/\)$/{ s//\1/; q; }
11603           /^X\(\/\).*/{ s//\1/; q; }
11604           s/.*/./; q'`
11605   { if $as_mkdir_p; then
11606     mkdir -p "$ac_dir"
11607   else
11608     as_dir="$ac_dir"
11609     as_dirs=
11610     while test ! -d "$as_dir"; do
11611       as_dirs="$as_dir $as_dirs"
11612       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11614          X"$as_dir" : 'X\(//\)[^/]' \| \
11615          X"$as_dir" : 'X\(//\)$' \| \
11616          X"$as_dir" : 'X\(/\)' \| \
11617          .     : '\(.\)' 2>/dev/null ||
11618 echo X"$as_dir" |
11619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11620           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11621           /^X\(\/\/\)$/{ s//\1/; q; }
11622           /^X\(\/\).*/{ s//\1/; q; }
11623           s/.*/./; q'`
11624     done
11625     test ! -n "$as_dirs" || mkdir $as_dirs
11626   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11627 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11628    { (exit 1); exit 1; }; }; }
11629
11630   ac_builddir=.
11631
11632 if test "$ac_dir" != .; then
11633   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11634   # A "../" for each directory in $ac_dir_suffix.
11635   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11636 else
11637   ac_dir_suffix= ac_top_builddir=
11638 fi
11639
11640 case $srcdir in
11641   .)  # No --srcdir option.  We are building in place.
11642     ac_srcdir=.
11643     if test -z "$ac_top_builddir"; then
11644        ac_top_srcdir=.
11645     else
11646        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11647     fi ;;
11648   [\\/]* | ?:[\\/]* )  # Absolute path.
11649     ac_srcdir=$srcdir$ac_dir_suffix;
11650     ac_top_srcdir=$srcdir ;;
11651   *) # Relative path.
11652     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11653     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11654 esac
11655
11656 # Do not use `cd foo && pwd` to compute absolute paths, because
11657 # the directories may not exist.
11658 case `pwd` in
11659 .) ac_abs_builddir="$ac_dir";;
11660 *)
11661   case "$ac_dir" in
11662   .) ac_abs_builddir=`pwd`;;
11663   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11664   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11665   esac;;
11666 esac
11667 case $ac_abs_builddir in
11668 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11669 *)
11670   case ${ac_top_builddir}. in
11671   .) ac_abs_top_builddir=$ac_abs_builddir;;
11672   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11673   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11674   esac;;
11675 esac
11676 case $ac_abs_builddir in
11677 .) ac_abs_srcdir=$ac_srcdir;;
11678 *)
11679   case $ac_srcdir in
11680   .) ac_abs_srcdir=$ac_abs_builddir;;
11681   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11682   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11683   esac;;
11684 esac
11685 case $ac_abs_builddir in
11686 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11687 *)
11688   case $ac_top_srcdir in
11689   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11690   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11691   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11692   esac;;
11693 esac
11694
11695
11696   case $INSTALL in
11697   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11698   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11699   esac
11700
11701   # Let's still pretend it is `configure' which instantiates (i.e., don't
11702   # use $as_me), people would be surprised to read:
11703   #    /* config.h.  Generated by config.status.  */
11704   if test x"$ac_file" = x-; then
11705     configure_input=
11706   else
11707     configure_input="$ac_file.  "
11708   fi
11709   configure_input=$configure_input"Generated from `echo $ac_file_in |
11710                                      sed 's,.*/,,'` by configure."
11711
11712   # First look for the input files in the build tree, otherwise in the
11713   # src tree.
11714   ac_file_inputs=`IFS=:
11715     for f in $ac_file_in; do
11716       case $f in
11717       -) echo $tmp/stdin ;;
11718       [\\/$]*)
11719          # Absolute (can't be DOS-style, as IFS=:)
11720          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11721 echo "$as_me: error: cannot find input file: $f" >&2;}
11722    { (exit 1); exit 1; }; }
11723          echo "$f";;
11724       *) # Relative
11725          if test -f "$f"; then
11726            # Build tree
11727            echo "$f"
11728          elif test -f "$srcdir/$f"; then
11729            # Source tree
11730            echo "$srcdir/$f"
11731          else
11732            # /dev/null tree
11733            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11734 echo "$as_me: error: cannot find input file: $f" >&2;}
11735    { (exit 1); exit 1; }; }
11736          fi;;
11737       esac
11738     done` || { (exit 1); exit 1; }
11739
11740   if test x"$ac_file" != x-; then
11741     { echo "$as_me:$LINENO: creating $ac_file" >&5
11742 echo "$as_me: creating $ac_file" >&6;}
11743     rm -f "$ac_file"
11744   fi
11745 _ACEOF
11746 cat >>$CONFIG_STATUS <<_ACEOF
11747   sed "$ac_vpsub
11748 $extrasub
11749 _ACEOF
11750 cat >>$CONFIG_STATUS <<\_ACEOF
11751 :t
11752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11753 s,@configure_input@,$configure_input,;t t
11754 s,@srcdir@,$ac_srcdir,;t t
11755 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11756 s,@top_srcdir@,$ac_top_srcdir,;t t
11757 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11758 s,@builddir@,$ac_builddir,;t t
11759 s,@abs_builddir@,$ac_abs_builddir,;t t
11760 s,@top_builddir@,$ac_top_builddir,;t t
11761 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11762 s,@INSTALL@,$ac_INSTALL,;t t
11763 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11764   rm -f $tmp/stdin
11765   if test x"$ac_file" != x-; then
11766     mv $tmp/out $ac_file
11767   else
11768     cat $tmp/out
11769     rm -f $tmp/out
11770   fi
11771
11772 done
11773 _ACEOF
11774 cat >>$CONFIG_STATUS <<\_ACEOF
11775
11776 #
11777 # CONFIG_HEADER section.
11778 #
11779
11780 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11781 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11782 #
11783 # ac_d sets the value in "#define NAME VALUE" lines.
11784 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11785 ac_dB='[         ].*$,\1#\2'
11786 ac_dC=' '
11787 ac_dD=',;t'
11788 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11789 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11790 ac_uB='$,\1#\2define\3'
11791 ac_uC=' '
11792 ac_uD=',;t'
11793
11794 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11795   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11796   case $ac_file in
11797   - | *:- | *:-:* ) # input from stdin
11798         cat >$tmp/stdin
11799         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11800         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11801   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11802         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11803   * )   ac_file_in=$ac_file.in ;;
11804   esac
11805
11806   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11807 echo "$as_me: creating $ac_file" >&6;}
11808
11809   # First look for the input files in the build tree, otherwise in the
11810   # src tree.
11811   ac_file_inputs=`IFS=:
11812     for f in $ac_file_in; do
11813       case $f in
11814       -) echo $tmp/stdin ;;
11815       [\\/$]*)
11816          # Absolute (can't be DOS-style, as IFS=:)
11817          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11818 echo "$as_me: error: cannot find input file: $f" >&2;}
11819    { (exit 1); exit 1; }; }
11820          # Do quote $f, to prevent DOS paths from being IFS'd.
11821          echo "$f";;
11822       *) # Relative
11823          if test -f "$f"; then
11824            # Build tree
11825            echo "$f"
11826          elif test -f "$srcdir/$f"; then
11827            # Source tree
11828            echo "$srcdir/$f"
11829          else
11830            # /dev/null tree
11831            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11832 echo "$as_me: error: cannot find input file: $f" >&2;}
11833    { (exit 1); exit 1; }; }
11834          fi;;
11835       esac
11836     done` || { (exit 1); exit 1; }
11837   # Remove the trailing spaces.
11838   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11839
11840 _ACEOF
11841
11842 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11843 # `conftest.undefs', that substitutes the proper values into
11844 # config.h.in to produce config.h.  The first handles `#define'
11845 # templates, and the second `#undef' templates.
11846 # And first: Protect against being on the right side of a sed subst in
11847 # config.status.  Protect against being in an unquoted here document
11848 # in config.status.
11849 rm -f conftest.defines conftest.undefs
11850 # Using a here document instead of a string reduces the quoting nightmare.
11851 # Putting comments in sed scripts is not portable.
11852 #
11853 # `end' is used to avoid that the second main sed command (meant for
11854 # 0-ary CPP macros) applies to n-ary macro definitions.
11855 # See the Autoconf documentation for `clear'.
11856 cat >confdef2sed.sed <<\_ACEOF
11857 s/[\\&,]/\\&/g
11858 s,[\\$`],\\&,g
11859 t clear
11860 : clear
11861 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11862 t end
11863 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11864 : end
11865 _ACEOF
11866 # If some macros were called several times there might be several times
11867 # the same #defines, which is useless.  Nevertheless, we may not want to
11868 # sort them, since we want the *last* AC-DEFINE to be honored.
11869 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11870 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11871 rm -f confdef2sed.sed
11872
11873 # This sed command replaces #undef with comments.  This is necessary, for
11874 # example, in the case of _POSIX_SOURCE, which is predefined and required
11875 # on some systems where configure will not decide to define it.
11876 cat >>conftest.undefs <<\_ACEOF
11877 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11878 _ACEOF
11879
11880 # Break up conftest.defines because some shells have a limit on the size
11881 # of here documents, and old seds have small limits too (100 cmds).
11882 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11883 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11884 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11885 echo '  :' >>$CONFIG_STATUS
11886 rm -f conftest.tail
11887 while grep . conftest.defines >/dev/null
11888 do
11889   # Write a limited-size here document to $tmp/defines.sed.
11890   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11891   # Speed up: don't consider the non `#define' lines.
11892   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11893   # Work around the forget-to-reset-the-flag bug.
11894   echo 't clr' >>$CONFIG_STATUS
11895   echo ': clr' >>$CONFIG_STATUS
11896   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11897   echo 'CEOF
11898   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11899   rm -f $tmp/in
11900   mv $tmp/out $tmp/in
11901 ' >>$CONFIG_STATUS
11902   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11903   rm -f conftest.defines
11904   mv conftest.tail conftest.defines
11905 done
11906 rm -f conftest.defines
11907 echo '  fi # grep' >>$CONFIG_STATUS
11908 echo >>$CONFIG_STATUS
11909
11910 # Break up conftest.undefs because some shells have a limit on the size
11911 # of here documents, and old seds have small limits too (100 cmds).
11912 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11913 rm -f conftest.tail
11914 while grep . conftest.undefs >/dev/null
11915 do
11916   # Write a limited-size here document to $tmp/undefs.sed.
11917   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11918   # Speed up: don't consider the non `#undef'
11919   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11920   # Work around the forget-to-reset-the-flag bug.
11921   echo 't clr' >>$CONFIG_STATUS
11922   echo ': clr' >>$CONFIG_STATUS
11923   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11924   echo 'CEOF
11925   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11926   rm -f $tmp/in
11927   mv $tmp/out $tmp/in
11928 ' >>$CONFIG_STATUS
11929   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11930   rm -f conftest.undefs
11931   mv conftest.tail conftest.undefs
11932 done
11933 rm -f conftest.undefs
11934
11935 cat >>$CONFIG_STATUS <<\_ACEOF
11936   # Let's still pretend it is `configure' which instantiates (i.e., don't
11937   # use $as_me), people would be surprised to read:
11938   #    /* config.h.  Generated by config.status.  */
11939   if test x"$ac_file" = x-; then
11940     echo "/* Generated by configure.  */" >$tmp/config.h
11941   else
11942     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11943   fi
11944   cat $tmp/in >>$tmp/config.h
11945   rm -f $tmp/in
11946   if test x"$ac_file" != x-; then
11947     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11948       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11949 echo "$as_me: $ac_file is unchanged" >&6;}
11950     else
11951       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11953          X"$ac_file" : 'X\(//\)[^/]' \| \
11954          X"$ac_file" : 'X\(//\)$' \| \
11955          X"$ac_file" : 'X\(/\)' \| \
11956          .     : '\(.\)' 2>/dev/null ||
11957 echo X"$ac_file" |
11958     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11959           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11960           /^X\(\/\/\)$/{ s//\1/; q; }
11961           /^X\(\/\).*/{ s//\1/; q; }
11962           s/.*/./; q'`
11963       { if $as_mkdir_p; then
11964     mkdir -p "$ac_dir"
11965   else
11966     as_dir="$ac_dir"
11967     as_dirs=
11968     while test ! -d "$as_dir"; do
11969       as_dirs="$as_dir $as_dirs"
11970       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11972          X"$as_dir" : 'X\(//\)[^/]' \| \
11973          X"$as_dir" : 'X\(//\)$' \| \
11974          X"$as_dir" : 'X\(/\)' \| \
11975          .     : '\(.\)' 2>/dev/null ||
11976 echo X"$as_dir" |
11977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11978           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11979           /^X\(\/\/\)$/{ s//\1/; q; }
11980           /^X\(\/\).*/{ s//\1/; q; }
11981           s/.*/./; q'`
11982     done
11983     test ! -n "$as_dirs" || mkdir $as_dirs
11984   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11985 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11986    { (exit 1); exit 1; }; }; }
11987
11988       rm -f $ac_file
11989       mv $tmp/config.h $ac_file
11990     fi
11991   else
11992     cat $tmp/config.h
11993     rm -f $tmp/config.h
11994   fi
11995 # Compute $ac_file's index in $config_headers.
11996 _am_stamp_count=1
11997 for _am_header in $config_headers :; do
11998   case $_am_header in
11999     $ac_file | $ac_file:* )
12000       break ;;
12001     * )
12002       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12003   esac
12004 done
12005 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12006 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12007          X$ac_file : 'X\(//\)[^/]' \| \
12008          X$ac_file : 'X\(//\)$' \| \
12009          X$ac_file : 'X\(/\)' \| \
12010          .     : '\(.\)' 2>/dev/null ||
12011 echo X$ac_file |
12012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12013           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12014           /^X\(\/\/\)$/{ s//\1/; q; }
12015           /^X\(\/\).*/{ s//\1/; q; }
12016           s/.*/./; q'`/stamp-h$_am_stamp_count
12017 done
12018 _ACEOF
12019 cat >>$CONFIG_STATUS <<\_ACEOF
12020
12021 #
12022 # CONFIG_COMMANDS section.
12023 #
12024 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12025   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12026   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12027   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12028 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12029          X"$ac_dest" : 'X\(//\)[^/]' \| \
12030          X"$ac_dest" : 'X\(//\)$' \| \
12031          X"$ac_dest" : 'X\(/\)' \| \
12032          .     : '\(.\)' 2>/dev/null ||
12033 echo X"$ac_dest" |
12034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12035           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12036           /^X\(\/\/\)$/{ s//\1/; q; }
12037           /^X\(\/\).*/{ s//\1/; q; }
12038           s/.*/./; q'`
12039   { if $as_mkdir_p; then
12040     mkdir -p "$ac_dir"
12041   else
12042     as_dir="$ac_dir"
12043     as_dirs=
12044     while test ! -d "$as_dir"; do
12045       as_dirs="$as_dir $as_dirs"
12046       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12048          X"$as_dir" : 'X\(//\)[^/]' \| \
12049          X"$as_dir" : 'X\(//\)$' \| \
12050          X"$as_dir" : 'X\(/\)' \| \
12051          .     : '\(.\)' 2>/dev/null ||
12052 echo X"$as_dir" |
12053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12054           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12055           /^X\(\/\/\)$/{ s//\1/; q; }
12056           /^X\(\/\).*/{ s//\1/; q; }
12057           s/.*/./; q'`
12058     done
12059     test ! -n "$as_dirs" || mkdir $as_dirs
12060   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12061 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12062    { (exit 1); exit 1; }; }; }
12063
12064   ac_builddir=.
12065
12066 if test "$ac_dir" != .; then
12067   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12068   # A "../" for each directory in $ac_dir_suffix.
12069   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12070 else
12071   ac_dir_suffix= ac_top_builddir=
12072 fi
12073
12074 case $srcdir in
12075   .)  # No --srcdir option.  We are building in place.
12076     ac_srcdir=.
12077     if test -z "$ac_top_builddir"; then
12078        ac_top_srcdir=.
12079     else
12080        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12081     fi ;;
12082   [\\/]* | ?:[\\/]* )  # Absolute path.
12083     ac_srcdir=$srcdir$ac_dir_suffix;
12084     ac_top_srcdir=$srcdir ;;
12085   *) # Relative path.
12086     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12087     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12088 esac
12089
12090 # Do not use `cd foo && pwd` to compute absolute paths, because
12091 # the directories may not exist.
12092 case `pwd` in
12093 .) ac_abs_builddir="$ac_dir";;
12094 *)
12095   case "$ac_dir" in
12096   .) ac_abs_builddir=`pwd`;;
12097   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12098   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12099   esac;;
12100 esac
12101 case $ac_abs_builddir in
12102 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12103 *)
12104   case ${ac_top_builddir}. in
12105   .) ac_abs_top_builddir=$ac_abs_builddir;;
12106   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12107   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12108   esac;;
12109 esac
12110 case $ac_abs_builddir in
12111 .) ac_abs_srcdir=$ac_srcdir;;
12112 *)
12113   case $ac_srcdir in
12114   .) ac_abs_srcdir=$ac_abs_builddir;;
12115   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12116   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12117   esac;;
12118 esac
12119 case $ac_abs_builddir in
12120 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12121 *)
12122   case $ac_top_srcdir in
12123   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12124   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12125   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12126   esac;;
12127 esac
12128
12129
12130   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12131 echo "$as_me: executing $ac_dest commands" >&6;}
12132   case $ac_dest in
12133     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12134   # Strip MF so we end up with the name of the file.
12135   mf=`echo "$mf" | sed -e 's/:.*$//'`
12136   # Check whether this is an Automake generated Makefile or not.
12137   # We used to match only the files named `Makefile.in', but
12138   # some people rename them; so instead we look at the file content.
12139   # Grep'ing the first line is not enough: some people post-process
12140   # each Makefile.in and add a new line on top of each file to say so.
12141   # So let's grep whole file.
12142   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12143     dirpart=`(dirname "$mf") 2>/dev/null ||
12144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12145          X"$mf" : 'X\(//\)[^/]' \| \
12146          X"$mf" : 'X\(//\)$' \| \
12147          X"$mf" : 'X\(/\)' \| \
12148          .     : '\(.\)' 2>/dev/null ||
12149 echo X"$mf" |
12150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12151           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12152           /^X\(\/\/\)$/{ s//\1/; q; }
12153           /^X\(\/\).*/{ s//\1/; q; }
12154           s/.*/./; q'`
12155   else
12156     continue
12157   fi
12158   # Extract the definition of DEPDIR, am__include, and am__quote
12159   # from the Makefile without running `make'.
12160   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12161   test -z "$DEPDIR" && continue
12162   am__include=`sed -n 's/^am__include = //p' < "$mf"`
12163   test -z "am__include" && continue
12164   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12165   # When using ansi2knr, U may be empty or an underscore; expand it
12166   U=`sed -n 's/^U = //p' < "$mf"`
12167   # Find all dependency output files, they are included files with
12168   # $(DEPDIR) in their names.  We invoke sed twice because it is the
12169   # simplest approach to changing $(DEPDIR) to its actual value in the
12170   # expansion.
12171   for file in `sed -n "
12172     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12173        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12174     # Make sure the directory exists.
12175     test -f "$dirpart/$file" && continue
12176     fdir=`(dirname "$file") 2>/dev/null ||
12177 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12178          X"$file" : 'X\(//\)[^/]' \| \
12179          X"$file" : 'X\(//\)$' \| \
12180          X"$file" : 'X\(/\)' \| \
12181          .     : '\(.\)' 2>/dev/null ||
12182 echo X"$file" |
12183     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12184           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12185           /^X\(\/\/\)$/{ s//\1/; q; }
12186           /^X\(\/\).*/{ s//\1/; q; }
12187           s/.*/./; q'`
12188     { if $as_mkdir_p; then
12189     mkdir -p $dirpart/$fdir
12190   else
12191     as_dir=$dirpart/$fdir
12192     as_dirs=
12193     while test ! -d "$as_dir"; do
12194       as_dirs="$as_dir $as_dirs"
12195       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12197          X"$as_dir" : 'X\(//\)[^/]' \| \
12198          X"$as_dir" : 'X\(//\)$' \| \
12199          X"$as_dir" : 'X\(/\)' \| \
12200          .     : '\(.\)' 2>/dev/null ||
12201 echo X"$as_dir" |
12202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12203           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12204           /^X\(\/\/\)$/{ s//\1/; q; }
12205           /^X\(\/\).*/{ s//\1/; q; }
12206           s/.*/./; q'`
12207     done
12208     test ! -n "$as_dirs" || mkdir $as_dirs
12209   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12210 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12211    { (exit 1); exit 1; }; }; }
12212
12213     # echo "creating $dirpart/$file"
12214     echo '# dummy' > "$dirpart/$file"
12215   done
12216 done
12217  ;;
12218     default ) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
12219  echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
12220  echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
12221  echo '#include "te-'"${te_file}"'.h"' > targ-env.h
12222  echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
12223  if test "x$cgen_cpu_prefix" != x ; then
12224    echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
12225  fi
12226
12227  sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12228   esac
12229 done
12230 _ACEOF
12231
12232 cat >>$CONFIG_STATUS <<\_ACEOF
12233
12234 { (exit 0); exit 0; }
12235 _ACEOF
12236 chmod +x $CONFIG_STATUS
12237 ac_clean_files=$ac_clean_files_save
12238
12239
12240 # configure is writing to config.log, and then calls config.status.
12241 # config.status does its own redirection, appending to config.log.
12242 # Unfortunately, on DOS this fails, as config.log is still kept open
12243 # by configure, so config.status won't be able to write to it; its
12244 # output is simply discarded.  So we exec the FD to /dev/null,
12245 # effectively closing config.log, so it can be properly (re)opened and
12246 # appended to by config.status.  When coming back to configure, we
12247 # need to make the FD available again.
12248 if test "$no_create" != yes; then
12249   ac_cs_success=:
12250   ac_config_status_args=
12251   test "$silent" = yes &&
12252     ac_config_status_args="$ac_config_status_args --quiet"
12253   exec 5>/dev/null
12254   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12255   exec 5>>config.log
12256   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12257   # would make configure fail if this is the last instruction.
12258   $ac_cs_success || { (exit 1); exit 1; }
12259 fi
12260