2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
[platform/upstream/binutils.git] / opcodes / 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="z8k-dis.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE bfdlibdir bfdincludedir 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 CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES 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   --enable-shared=PKGS  build shared libraries default=no
854   --enable-static=PKGS  build static libraries default=yes
855   --enable-fast-install=PKGS  optimize for fast installation default=yes
856   --disable-libtool-lock  avoid locking (might break parallel builds)
857   --enable-targets        alternative target configurations
858   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
859   --enable-build-warnings Enable build-time compiler warnings if gcc is used
860   --enable-maintainer-mode enable make rules and dependencies not useful
861                           (and sometimes confusing) to the casual installer
862   --enable-install-libbfd controls installation of libbfd and related headers
863   --disable-nls           do not use Native Language Support
864   --enable-cgen-maint=dir    build cgen generated files
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-pic              try to use only PIC/non-PIC objects default=use both
871   --with-included-gettext use the GNU gettext library included here
872
873 Some influential environment variables:
874   CC          C compiler command
875   CFLAGS      C compiler flags
876   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
877               nonstandard directory <lib dir>
878   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879               headers in a nonstandard directory <include dir>
880   CPP         C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 _ACEOF
886 fi
887
888 if test "$ac_init_help" = "recursive"; then
889   # If there are subdirs, report their specific --help.
890   ac_popdir=`pwd`
891   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892     test -d $ac_dir || continue
893     ac_builddir=.
894
895 if test "$ac_dir" != .; then
896   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897   # A "../" for each directory in $ac_dir_suffix.
898   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899 else
900   ac_dir_suffix= ac_top_builddir=
901 fi
902
903 case $srcdir in
904   .)  # No --srcdir option.  We are building in place.
905     ac_srcdir=.
906     if test -z "$ac_top_builddir"; then
907        ac_top_srcdir=.
908     else
909        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910     fi ;;
911   [\\/]* | ?:[\\/]* )  # Absolute path.
912     ac_srcdir=$srcdir$ac_dir_suffix;
913     ac_top_srcdir=$srcdir ;;
914   *) # Relative path.
915     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916     ac_top_srcdir=$ac_top_builddir$srcdir ;;
917 esac
918
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
921 case `pwd` in
922 .) ac_abs_builddir="$ac_dir";;
923 *)
924   case "$ac_dir" in
925   .) ac_abs_builddir=`pwd`;;
926   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927   *) ac_abs_builddir=`pwd`/"$ac_dir";;
928   esac;;
929 esac
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
932 *)
933   case ${ac_top_builddir}. in
934   .) ac_abs_top_builddir=$ac_abs_builddir;;
935   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937   esac;;
938 esac
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
941 *)
942   case $ac_srcdir in
943   .) ac_abs_srcdir=$ac_abs_builddir;;
944   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946   esac;;
947 esac
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
950 *)
951   case $ac_top_srcdir in
952   .) ac_abs_top_srcdir=$ac_abs_builddir;;
953   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955   esac;;
956 esac
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd "$ac_popdir"
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980
981 Copyright (C) 2003 Free Software Foundation, Inc.
982 This configure script is free software; the Free Software Foundation
983 gives unlimited permission to copy, distribute and modify it.
984 _ACEOF
985   exit 0
986 fi
987 exec 5>config.log
988 cat >&5 <<_ACEOF
989 This file contains any messages produced by compilers while
990 running configure, to aid debugging if configure makes a mistake.
991
992 It was created by $as_me, which was
993 generated by GNU Autoconf 2.59.  Invocation command line was
994
995   $ $0 $@
996
997 _ACEOF
998 {
999 cat <<_ASUNAME
1000 ## --------- ##
1001 ## Platform. ##
1002 ## --------- ##
1003
1004 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1012
1013 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1014 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1015 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1017 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1018 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1019 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1020
1021 _ASUNAME
1022
1023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024 for as_dir in $PATH
1025 do
1026   IFS=$as_save_IFS
1027   test -z "$as_dir" && as_dir=.
1028   echo "PATH: $as_dir"
1029 done
1030
1031 } >&5
1032
1033 cat >&5 <<_ACEOF
1034
1035
1036 ## ----------- ##
1037 ## Core tests. ##
1038 ## ----------- ##
1039
1040 _ACEOF
1041
1042
1043 # Keep a trace of the command line.
1044 # Strip out --no-create and --no-recursion so they do not pile up.
1045 # Strip out --silent because we don't want to record it for future runs.
1046 # Also quote any args containing shell meta-characters.
1047 # Make two passes to allow for proper duplicate-argument suppression.
1048 ac_configure_args=
1049 ac_configure_args0=
1050 ac_configure_args1=
1051 ac_sep=
1052 ac_must_keep_next=false
1053 for ac_pass in 1 2
1054 do
1055   for ac_arg
1056   do
1057     case $ac_arg in
1058     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060     | -silent | --silent | --silen | --sile | --sil)
1061       continue ;;
1062     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064     esac
1065     case $ac_pass in
1066     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067     2)
1068       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069       if test $ac_must_keep_next = true; then
1070         ac_must_keep_next=false # Got value, back to normal.
1071       else
1072         case $ac_arg in
1073           *=* | --config-cache | -C | -disable-* | --disable-* \
1074           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076           | -with-* | --with-* | -without-* | --without-* | --x)
1077             case "$ac_configure_args0 " in
1078               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079             esac
1080             ;;
1081           -* ) ac_must_keep_next=true ;;
1082         esac
1083       fi
1084       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085       # Get rid of the leading space.
1086       ac_sep=" "
1087       ;;
1088     esac
1089   done
1090 done
1091 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094 # When interrupted or exit'd, cleanup temporary files, and complete
1095 # config.log.  We remove comments because anyway the quotes in there
1096 # would cause problems or look ugly.
1097 # WARNING: Be sure not to use single quotes in there, as some shells,
1098 # such as our DU 5.0 friend, will then `close' the trap.
1099 trap 'exit_status=$?
1100   # Save into config.log some information that might help in debugging.
1101   {
1102     echo
1103
1104     cat <<\_ASBOX
1105 ## ---------------- ##
1106 ## Cache variables. ##
1107 ## ---------------- ##
1108 _ASBOX
1109     echo
1110     # The following way of writing the cache mishandles newlines in values,
1111 {
1112   (set) 2>&1 |
1113     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114     *ac_space=\ *)
1115       sed -n \
1116         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118       ;;
1119     *)
1120       sed -n \
1121         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122       ;;
1123     esac;
1124 }
1125     echo
1126
1127     cat <<\_ASBOX
1128 ## ----------------- ##
1129 ## Output variables. ##
1130 ## ----------------- ##
1131 _ASBOX
1132     echo
1133     for ac_var in $ac_subst_vars
1134     do
1135       eval ac_val=$`echo $ac_var`
1136       echo "$ac_var='"'"'$ac_val'"'"'"
1137     done | sort
1138     echo
1139
1140     if test -n "$ac_subst_files"; then
1141       cat <<\_ASBOX
1142 ## ------------- ##
1143 ## Output files. ##
1144 ## ------------- ##
1145 _ASBOX
1146       echo
1147       for ac_var in $ac_subst_files
1148       do
1149         eval ac_val=$`echo $ac_var`
1150         echo "$ac_var='"'"'$ac_val'"'"'"
1151       done | sort
1152       echo
1153     fi
1154
1155     if test -s confdefs.h; then
1156       cat <<\_ASBOX
1157 ## ----------- ##
1158 ## confdefs.h. ##
1159 ## ----------- ##
1160 _ASBOX
1161       echo
1162       sed "/^$/d" confdefs.h | sort
1163       echo
1164     fi
1165     test "$ac_signal" != 0 &&
1166       echo "$as_me: caught signal $ac_signal"
1167     echo "$as_me: exit $exit_status"
1168   } >&5
1169   rm -f core *.core &&
1170   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171     exit $exit_status
1172      ' 0
1173 for ac_signal in 1 2 13 15; do
1174   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175 done
1176 ac_signal=0
1177
1178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1179 rm -rf conftest* confdefs.h
1180 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181 echo >confdefs.h
1182
1183 # Predefined preprocessor variables.
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_NAME "$PACKAGE_NAME"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_STRING "$PACKAGE_STRING"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207 _ACEOF
1208
1209
1210 # Let the site file select an alternate cache file if it wants to.
1211 # Prefer explicitly selected file to automatically selected ones.
1212 if test -z "$CONFIG_SITE"; then
1213   if test "x$prefix" != xNONE; then
1214     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215   else
1216     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217   fi
1218 fi
1219 for ac_site_file in $CONFIG_SITE; do
1220   if test -r "$ac_site_file"; then
1221     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222 echo "$as_me: loading site script $ac_site_file" >&6;}
1223     sed 's/^/| /' "$ac_site_file" >&5
1224     . "$ac_site_file"
1225   fi
1226 done
1227
1228 if test -r "$cache_file"; then
1229   # Some versions of bash will fail to source /dev/null (special
1230   # files actually), so we avoid doing that.
1231   if test -f "$cache_file"; then
1232     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233 echo "$as_me: loading cache $cache_file" >&6;}
1234     case $cache_file in
1235       [\\/]* | ?:[\\/]* ) . $cache_file;;
1236       *)                      . ./$cache_file;;
1237     esac
1238   fi
1239 else
1240   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241 echo "$as_me: creating cache $cache_file" >&6;}
1242   >$cache_file
1243 fi
1244
1245 # Check that the precious variables saved in the cache have kept the same
1246 # value.
1247 ac_cache_corrupted=false
1248 for ac_var in `(set) 2>&1 |
1249                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251   eval ac_new_set=\$ac_env_${ac_var}_set
1252   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253   eval ac_new_val="\$ac_env_${ac_var}_value"
1254   case $ac_old_set,$ac_new_set in
1255     set,)
1256       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258       ac_cache_corrupted=: ;;
1259     ,set)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,);;
1264     *)
1265       if test "x$ac_old_val" != "x$ac_new_val"; then
1266         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1269 echo "$as_me:   former value:  $ac_old_val" >&2;}
1270         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1271 echo "$as_me:   current value: $ac_new_val" >&2;}
1272         ac_cache_corrupted=:
1273       fi;;
1274   esac
1275   # Pass precious variables to config.status.
1276   if test "$ac_new_set" = set; then
1277     case $ac_new_val in
1278     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280     *) ac_arg=$ac_var=$ac_new_val ;;
1281     esac
1282     case " $ac_configure_args " in
1283       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1284       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285     esac
1286   fi
1287 done
1288 if $ac_cache_corrupted; then
1289   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293    { (exit 1); exit 1; }; }
1294 fi
1295
1296 ac_ext=c
1297 ac_cpp='$CPP $CPPFLAGS'
1298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322 ac_aux_dir=
1323 for ac_dir in $srcdir $srcdir/.. $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 $srcdir/.. $srcdir/../.." >&5
1340 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $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
2355         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2356 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2357 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2358   echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360   ac_check_lib_save_LIBS=$LIBS
2361 LIBS="-lcposix  $LIBS"
2362 cat >conftest.$ac_ext <<_ACEOF
2363 /* confdefs.h.  */
2364 _ACEOF
2365 cat confdefs.h >>conftest.$ac_ext
2366 cat >>conftest.$ac_ext <<_ACEOF
2367 /* end confdefs.h.  */
2368
2369 /* Override any gcc2 internal prototype to avoid an error.  */
2370 #ifdef __cplusplus
2371 extern "C"
2372 #endif
2373 /* We use char because int might match the return type of a gcc2
2374    builtin and then its argument prototype would still apply.  */
2375 char strerror ();
2376 int
2377 main ()
2378 {
2379 strerror ();
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 rm -f conftest.$ac_objext conftest$ac_exeext
2385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2386   (eval $ac_link) 2>conftest.er1
2387   ac_status=$?
2388   grep -v '^ *+' conftest.er1 >conftest.err
2389   rm -f conftest.er1
2390   cat conftest.err >&5
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } &&
2393          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; } &&
2399          { ac_try='test -s conftest$ac_exeext'
2400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401   (eval $ac_try) 2>&5
2402   ac_status=$?
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); }; }; then
2405   ac_cv_lib_cposix_strerror=yes
2406 else
2407   echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2409
2410 ac_cv_lib_cposix_strerror=no
2411 fi
2412 rm -f conftest.err conftest.$ac_objext \
2413       conftest$ac_exeext conftest.$ac_ext
2414 LIBS=$ac_check_lib_save_LIBS
2415 fi
2416 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2417 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2418 if test $ac_cv_lib_cposix_strerror = yes; then
2419   LIBS="$LIBS -lcposix"
2420 fi
2421
2422
2423
2424
2425 # We currently only use the version number for the name of any shared
2426 # library.  For user convenience, we always use the same version
2427 # number that BFD is using.
2428 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2429
2430 am__api_version="1.4"
2431 # Find a good install program.  We prefer a C program (faster),
2432 # so one script is as good as another.  But avoid the broken or
2433 # incompatible versions:
2434 # SysV /etc/install, /usr/sbin/install
2435 # SunOS /usr/etc/install
2436 # IRIX /sbin/install
2437 # AIX /bin/install
2438 # AmigaOS /C/install, which installs bootblocks on floppy discs
2439 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2442 # OS/2's system install, which has a completely different semantic
2443 # ./install, which can be erroneously created by make from ./install.sh.
2444 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2445 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2446 if test -z "$INSTALL"; then
2447 if test "${ac_cv_path_install+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 for as_dir in $PATH
2452 do
2453   IFS=$as_save_IFS
2454   test -z "$as_dir" && as_dir=.
2455   # Account for people who put trailing slashes in PATH elements.
2456 case $as_dir/ in
2457   ./ | .// | /cC/* | \
2458   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2459   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2460   /usr/ucb/* ) ;;
2461   *)
2462     # OSF1 and SCO ODT 3.0 have their own names for install.
2463     # Don't use installbsd from OSF since it installs stuff as root
2464     # by default.
2465     for ac_prog in ginstall scoinst install; do
2466       for ac_exec_ext in '' $ac_executable_extensions; do
2467         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2468           if test $ac_prog = install &&
2469             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470             # AIX install.  It has an incompatible calling convention.
2471             :
2472           elif test $ac_prog = install &&
2473             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474             # program-specific install script used by HP pwplus--don't use.
2475             :
2476           else
2477             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478             break 3
2479           fi
2480         fi
2481       done
2482     done
2483     ;;
2484 esac
2485 done
2486
2487
2488 fi
2489   if test "${ac_cv_path_install+set}" = set; then
2490     INSTALL=$ac_cv_path_install
2491   else
2492     # As a last resort, use the slow shell script.  We don't cache a
2493     # path for INSTALL within a source directory, because that will
2494     # break other packages using the cache if that directory is
2495     # removed, or if the path is relative.
2496     INSTALL=$ac_install_sh
2497   fi
2498 fi
2499 echo "$as_me:$LINENO: result: $INSTALL" >&5
2500 echo "${ECHO_T}$INSTALL" >&6
2501
2502 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503 # It thinks the first close brace ends the variable substitution.
2504 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
2506 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2507
2508 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
2510 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2511 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2512 # Just in case
2513 sleep 1
2514 echo timestamp > conftestfile
2515 # Do `set' in a subshell so we don't clobber the current shell's
2516 # arguments.  Must try -L first in case configure is actually a
2517 # symlink; some systems play weird games with the mod time of symlinks
2518 # (eg FreeBSD returns the mod time of the symlink's containing
2519 # directory).
2520 if (
2521    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2522    if test "$*" = "X"; then
2523       # -L didn't work.
2524       set X `ls -t $srcdir/configure conftestfile`
2525    fi
2526    if test "$*" != "X $srcdir/configure conftestfile" \
2527       && test "$*" != "X conftestfile $srcdir/configure"; then
2528
2529       # If neither matched, then we have a broken ls.  This can happen
2530       # if, for instance, CONFIG_SHELL is bash and it inherits a
2531       # broken ls alias from the environment.  This has actually
2532       # happened.  Such a system could not be considered "sane".
2533       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2534 alias in your environment" >&5
2535 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2536 alias in your environment" >&2;}
2537    { (exit 1); exit 1; }; }
2538    fi
2539
2540    test "$2" = conftestfile
2541    )
2542 then
2543    # Ok.
2544    :
2545 else
2546    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2547 Check your system clock" >&5
2548 echo "$as_me: error: newly created file is older than distributed files!
2549 Check your system clock" >&2;}
2550    { (exit 1); exit 1; }; }
2551 fi
2552 rm -f conftest*
2553 echo "$as_me:$LINENO: result: yes" >&5
2554 echo "${ECHO_T}yes" >&6
2555 test "$program_prefix" != NONE &&
2556   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2557 # Use a double $ so make ignores it.
2558 test "$program_suffix" != NONE &&
2559   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560 # Double any \ or $.  echo might interpret backslashes.
2561 # By default was `s,x,x', remove it if useless.
2562 cat <<\_ACEOF >conftest.sed
2563 s/[\\$]/&&/g;s/;s,x,x,$//
2564 _ACEOF
2565 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2566 rm conftest.sed
2567
2568 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2571 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2572   echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574   cat >conftest.make <<\_ACEOF
2575 all:
2576         @echo 'ac_maketemp="$(MAKE)"'
2577 _ACEOF
2578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2579 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2580 if test -n "$ac_maketemp"; then
2581   eval ac_cv_prog_make_${ac_make}_set=yes
2582 else
2583   eval ac_cv_prog_make_${ac_make}_set=no
2584 fi
2585 rm -f conftest.make
2586 fi
2587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2588   echo "$as_me:$LINENO: result: yes" >&5
2589 echo "${ECHO_T}yes" >&6
2590   SET_MAKE=
2591 else
2592   echo "$as_me:$LINENO: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2594   SET_MAKE="MAKE=${MAKE-make}"
2595 fi
2596
2597
2598 PACKAGE=opcodes
2599
2600 VERSION=${BFD_VERSION}
2601
2602 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2603   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2604 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2605    { (exit 1); exit 1; }; }
2606 fi
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE "$PACKAGE"
2610 _ACEOF
2611
2612
2613 cat >>confdefs.h <<_ACEOF
2614 #define VERSION "$VERSION"
2615 _ACEOF
2616
2617
2618
2619 missing_dir=`cd $ac_aux_dir && pwd`
2620 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2621 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2622 # Run test in a subshell; some versions of sh will print an error if
2623 # an executable is not found, even if stderr is redirected.
2624 # Redirect stdin to placate older versions of autoconf.  Sigh.
2625 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2626    ACLOCAL=aclocal-${am__api_version}
2627    echo "$as_me:$LINENO: result: found" >&5
2628 echo "${ECHO_T}found" >&6
2629 else
2630    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2631    echo "$as_me:$LINENO: result: missing" >&5
2632 echo "${ECHO_T}missing" >&6
2633 fi
2634
2635 echo "$as_me:$LINENO: checking for working autoconf" >&5
2636 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2637 # Run test in a subshell; some versions of sh will print an error if
2638 # an executable is not found, even if stderr is redirected.
2639 # Redirect stdin to placate older versions of autoconf.  Sigh.
2640 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2641    AUTOCONF=autoconf
2642    echo "$as_me:$LINENO: result: found" >&5
2643 echo "${ECHO_T}found" >&6
2644 else
2645    AUTOCONF="$missing_dir/missing autoconf"
2646    echo "$as_me:$LINENO: result: missing" >&5
2647 echo "${ECHO_T}missing" >&6
2648 fi
2649
2650 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2651 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2652 # Run test in a subshell; some versions of sh will print an error if
2653 # an executable is not found, even if stderr is redirected.
2654 # Redirect stdin to placate older versions of autoconf.  Sigh.
2655 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2656    AUTOMAKE=automake-${am__api_version}
2657    echo "$as_me:$LINENO: result: found" >&5
2658 echo "${ECHO_T}found" >&6
2659 else
2660    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2661    echo "$as_me:$LINENO: result: missing" >&5
2662 echo "${ECHO_T}missing" >&6
2663 fi
2664
2665 echo "$as_me:$LINENO: checking for working autoheader" >&5
2666 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2667 # Run test in a subshell; some versions of sh will print an error if
2668 # an executable is not found, even if stderr is redirected.
2669 # Redirect stdin to placate older versions of autoconf.  Sigh.
2670 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2671    AUTOHEADER=autoheader
2672    echo "$as_me:$LINENO: result: found" >&5
2673 echo "${ECHO_T}found" >&6
2674 else
2675    AUTOHEADER="$missing_dir/missing autoheader"
2676    echo "$as_me:$LINENO: result: missing" >&5
2677 echo "${ECHO_T}missing" >&6
2678 fi
2679
2680 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2681 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2682 # Run test in a subshell; some versions of sh will print an error if
2683 # an executable is not found, even if stderr is redirected.
2684 # Redirect stdin to placate older versions of autoconf.  Sigh.
2685 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2686    MAKEINFO=makeinfo
2687    echo "$as_me:$LINENO: result: found" >&5
2688 echo "${ECHO_T}found" >&6
2689 else
2690    MAKEINFO="$missing_dir/missing makeinfo"
2691    echo "$as_me:$LINENO: result: missing" >&5
2692 echo "${ECHO_T}missing" >&6
2693 fi
2694
2695
2696
2697 if test -n "$ac_tool_prefix"; then
2698   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}ar; ac_word=$2
2700 echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2702 if test "${ac_cv_prog_AR+set}" = set; then
2703   echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705   if test -n "$AR"; then
2706   ac_cv_prog_AR="$AR" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713   for ac_exec_ext in '' $ac_executable_extensions; do
2714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715     ac_cv_prog_AR="${ac_tool_prefix}ar"
2716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720 done
2721
2722 fi
2723 fi
2724 AR=$ac_cv_prog_AR
2725 if test -n "$AR"; then
2726   echo "$as_me:$LINENO: result: $AR" >&5
2727 echo "${ECHO_T}$AR" >&6
2728 else
2729   echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2731 fi
2732
2733 fi
2734 if test -z "$ac_cv_prog_AR"; then
2735   ac_ct_AR=$AR
2736   # Extract the first word of "ar", so it can be a program name with args.
2737 set dummy ar; ac_word=$2
2738 echo "$as_me:$LINENO: checking for $ac_word" >&5
2739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2740 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2741   echo $ECHO_N "(cached) $ECHO_C" >&6
2742 else
2743   if test -n "$ac_ct_AR"; then
2744   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749   IFS=$as_save_IFS
2750   test -z "$as_dir" && as_dir=.
2751   for ac_exec_ext in '' $ac_executable_extensions; do
2752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2753     ac_cv_prog_ac_ct_AR="ar"
2754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2755     break 2
2756   fi
2757 done
2758 done
2759
2760 fi
2761 fi
2762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2763 if test -n "$ac_ct_AR"; then
2764   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2765 echo "${ECHO_T}$ac_ct_AR" >&6
2766 else
2767   echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6
2769 fi
2770
2771   AR=$ac_ct_AR
2772 else
2773   AR="$ac_cv_prog_AR"
2774 fi
2775
2776 if test -n "$ac_tool_prefix"; then
2777   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2779 echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_RANLIB+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   if test -n "$RANLIB"; then
2785   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792   for ac_exec_ext in '' $ac_executable_extensions; do
2793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799 done
2800
2801 fi
2802 fi
2803 RANLIB=$ac_cv_prog_RANLIB
2804 if test -n "$RANLIB"; then
2805   echo "$as_me:$LINENO: result: $RANLIB" >&5
2806 echo "${ECHO_T}$RANLIB" >&6
2807 else
2808   echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6
2810 fi
2811
2812 fi
2813 if test -z "$ac_cv_prog_RANLIB"; then
2814   ac_ct_RANLIB=$RANLIB
2815   # Extract the first word of "ranlib", so it can be a program name with args.
2816 set dummy ranlib; ac_word=$2
2817 echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2819 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2820   echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822   if test -n "$ac_ct_RANLIB"; then
2823   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828   IFS=$as_save_IFS
2829   test -z "$as_dir" && as_dir=.
2830   for ac_exec_ext in '' $ac_executable_extensions; do
2831   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2832     ac_cv_prog_ac_ct_RANLIB="ranlib"
2833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834     break 2
2835   fi
2836 done
2837 done
2838
2839   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2840 fi
2841 fi
2842 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2843 if test -n "$ac_ct_RANLIB"; then
2844   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2845 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2846 else
2847   echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6
2849 fi
2850
2851   RANLIB=$ac_ct_RANLIB
2852 else
2853   RANLIB="$ac_cv_prog_RANLIB"
2854 fi
2855
2856
2857 # Check whether --enable-shared or --disable-shared was given.
2858 if test "${enable_shared+set}" = set; then
2859   enableval="$enable_shared"
2860   p=${PACKAGE-default}
2861 case $enableval in
2862 yes) enable_shared=yes ;;
2863 no) enable_shared=no ;;
2864 *)
2865   enable_shared=no
2866   # Look at the argument we got.  We use all the common list separators.
2867   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2868   for pkg in $enableval; do
2869     if test "X$pkg" = "X$p"; then
2870       enable_shared=yes
2871     fi
2872   done
2873   IFS="$ac_save_ifs"
2874   ;;
2875 esac
2876 else
2877   enable_shared=no
2878 fi;
2879
2880 # Check whether --enable-static or --disable-static was given.
2881 if test "${enable_static+set}" = set; then
2882   enableval="$enable_static"
2883   p=${PACKAGE-default}
2884 case $enableval in
2885 yes) enable_static=yes ;;
2886 no) enable_static=no ;;
2887 *)
2888   enable_static=no
2889   # Look at the argument we got.  We use all the common list separators.
2890   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2891   for pkg in $enableval; do
2892     if test "X$pkg" = "X$p"; then
2893       enable_static=yes
2894     fi
2895   done
2896   IFS="$ac_save_ifs"
2897   ;;
2898 esac
2899 else
2900   enable_static=yes
2901 fi;
2902 # Check whether --enable-fast-install or --disable-fast-install was given.
2903 if test "${enable_fast_install+set}" = set; then
2904   enableval="$enable_fast_install"
2905   p=${PACKAGE-default}
2906 case $enableval in
2907 yes) enable_fast_install=yes ;;
2908 no) enable_fast_install=no ;;
2909 *)
2910   enable_fast_install=no
2911   # Look at the argument we got.  We use all the common list separators.
2912   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2913   for pkg in $enableval; do
2914     if test "X$pkg" = "X$p"; then
2915       enable_fast_install=yes
2916     fi
2917   done
2918   IFS="$ac_save_ifs"
2919   ;;
2920 esac
2921 else
2922   enable_fast_install=yes
2923 fi;
2924
2925 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2926 if test "${with_gnu_ld+set}" = set; then
2927   withval="$with_gnu_ld"
2928   test "$withval" = no || with_gnu_ld=yes
2929 else
2930   with_gnu_ld=no
2931 fi;
2932 ac_prog=ld
2933 if test "$GCC" = yes; then
2934   # Check if gcc -print-prog-name=ld gives a path.
2935   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2936 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2937   case $host in
2938   *-*-mingw*)
2939     # gcc leaves a trailing carriage return which upsets mingw
2940     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2941   *)
2942     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2943   esac
2944   case $ac_prog in
2945     # Accept absolute paths.
2946     [\\/]* | [A-Za-z]:[\\/]*)
2947       re_direlt='/[^/][^/]*/\.\./'
2948       # Canonicalize the path of ld
2949       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2950       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2951         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2952       done
2953       test -z "$LD" && LD="$ac_prog"
2954       ;;
2955   "")
2956     # If it fails, then pretend we aren't using GCC.
2957     ac_prog=ld
2958     ;;
2959   *)
2960     # If it is relative, then search for the first ld in PATH.
2961     with_gnu_ld=unknown
2962     ;;
2963   esac
2964 elif test "$with_gnu_ld" = yes; then
2965   echo "$as_me:$LINENO: checking for GNU ld" >&5
2966 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2967 else
2968   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2969 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2970 fi
2971 if test "${lt_cv_path_LD+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   if test -z "$LD"; then
2975   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2976   for ac_dir in $PATH; do
2977     test -z "$ac_dir" && ac_dir=.
2978     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2979       lt_cv_path_LD="$ac_dir/$ac_prog"
2980       # Check to see if the program is GNU ld.  I'd rather use --version,
2981       # but apparently some GNU ld's only accept -v.
2982       # Break only if it was the GNU/non-GNU ld that we prefer.
2983       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2984         test "$with_gnu_ld" != no && break
2985       else
2986         test "$with_gnu_ld" != yes && break
2987       fi
2988     fi
2989   done
2990   IFS="$ac_save_ifs"
2991 else
2992   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2993 fi
2994 fi
2995
2996 LD="$lt_cv_path_LD"
2997 if test -n "$LD"; then
2998   echo "$as_me:$LINENO: result: $LD" >&5
2999 echo "${ECHO_T}$LD" >&6
3000 else
3001   echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6
3003 fi
3004 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3005 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3006    { (exit 1); exit 1; }; }
3007 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3008 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3009 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3013 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3014   lt_cv_prog_gnu_ld=yes
3015 else
3016   lt_cv_prog_gnu_ld=no
3017 fi
3018 fi
3019 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3020 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3021 with_gnu_ld=$lt_cv_prog_gnu_ld
3022
3023
3024 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3025 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3026 if test "${lt_cv_ld_reload_flag+set}" = set; then
3027   echo $ECHO_N "(cached) $ECHO_C" >&6
3028 else
3029   lt_cv_ld_reload_flag='-r'
3030 fi
3031 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3032 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3033 reload_flag=$lt_cv_ld_reload_flag
3034 test -n "$reload_flag" && reload_flag=" $reload_flag"
3035
3036 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3037 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3038 if test "${lt_cv_path_NM+set}" = set; then
3039   echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041   if test -n "$NM"; then
3042   # Let the user override the test.
3043   lt_cv_path_NM="$NM"
3044 else
3045   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3046   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3047     test -z "$ac_dir" && ac_dir=.
3048     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3049     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3050       # Check to see if the nm accepts a BSD-compat flag.
3051       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3052       #   nm: unknown option "B" ignored
3053       # Tru64's nm complains that /dev/null is an invalid object file
3054       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3055         lt_cv_path_NM="$tmp_nm -B"
3056         break
3057       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3058         lt_cv_path_NM="$tmp_nm -p"
3059         break
3060       else
3061         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3062         continue # so that we can try to find one that supports BSD flags
3063       fi
3064     fi
3065   done
3066   IFS="$ac_save_ifs"
3067   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3068 fi
3069 fi
3070
3071 NM="$lt_cv_path_NM"
3072 echo "$as_me:$LINENO: result: $NM" >&5
3073 echo "${ECHO_T}$NM" >&6
3074
3075 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3077 LN_S=$as_ln_s
3078 if test "$LN_S" = "ln -s"; then
3079   echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6
3081 else
3082   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3083 echo "${ECHO_T}no, using $LN_S" >&6
3084 fi
3085
3086 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3087 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3088 if test "${lt_cv_deplibs_check_method+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   lt_cv_file_magic_cmd='$MAGIC_CMD'
3092 lt_cv_file_magic_test_file=
3093 lt_cv_deplibs_check_method='unknown'
3094 # Need to set the preceding variable on all platforms that support
3095 # interlibrary dependencies.
3096 # 'none' -- dependencies not supported.
3097 # `unknown' -- same as none, but documents that we really don't know.
3098 # 'pass_all' -- all dependencies passed with no checks.
3099 # 'test_compile' -- check by making test program.
3100 # 'file_magic [regex]' -- check by looking for files in library path
3101 # which responds to the $file_magic_cmd with a given egrep regex.
3102 # If you have `file' or equivalent on your system and you're not sure
3103 # whether `pass_all' will *always* work, you probably want this one.
3104
3105 case $host_os in
3106 aix*)
3107   lt_cv_deplibs_check_method=pass_all
3108   ;;
3109
3110 beos*)
3111   lt_cv_deplibs_check_method=pass_all
3112   ;;
3113
3114 bsdi4*)
3115   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3116   lt_cv_file_magic_cmd='/usr/bin/file -L'
3117   lt_cv_file_magic_test_file=/shlib/libc.so
3118   ;;
3119
3120 cygwin* | mingw* |pw32*)
3121   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3122   lt_cv_file_magic_cmd='$OBJDUMP -f'
3123   ;;
3124
3125 darwin* | rhapsody*)
3126   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3127   lt_cv_file_magic_cmd='/usr/bin/file -L'
3128   case "$host_os" in
3129   rhapsody* | darwin1.012)
3130     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3131     ;;
3132   *) # Darwin 1.3 on
3133     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3134     ;;
3135   esac
3136   ;;
3137
3138 freebsd* | kfreebsd*-gnu)
3139   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3140     case $host_cpu in
3141     i*86 )
3142       # Not sure whether the presence of OpenBSD here was a mistake.
3143       # Let's accept both of them until this is cleared up.
3144       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3145       lt_cv_file_magic_cmd=/usr/bin/file
3146       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3147       ;;
3148     esac
3149   else
3150     lt_cv_deplibs_check_method=pass_all
3151   fi
3152   ;;
3153
3154 gnu*)
3155   lt_cv_deplibs_check_method=pass_all
3156   ;;
3157
3158 hpux10.20*|hpux11*)
3159   case $host_cpu in
3160   hppa*)
3161     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3162     lt_cv_file_magic_cmd=/usr/bin/file
3163     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3164     ;;
3165   ia64*)
3166     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3167     lt_cv_file_magic_cmd=/usr/bin/file
3168     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3169     ;;
3170   esac
3171   ;;
3172
3173 irix5* | irix6*)
3174   case $host_os in
3175   irix5*)
3176     # this will be overridden with pass_all, but let us keep it just in case
3177     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3178     ;;
3179   *)
3180     case $LD in
3181     *-32|*"-32 ") libmagic=32-bit;;
3182     *-n32|*"-n32 ") libmagic=N32;;
3183     *-64|*"-64 ") libmagic=64-bit;;
3184     *) libmagic=never-match;;
3185     esac
3186     # this will be overridden with pass_all, but let us keep it just in case
3187     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3188     ;;
3189   esac
3190   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3191   lt_cv_deplibs_check_method=pass_all
3192   ;;
3193
3194 # This must be Linux ELF.
3195 linux-gnu*)
3196   case $host_cpu in
3197   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3198     lt_cv_deplibs_check_method=pass_all ;;
3199   *)
3200     # glibc up to 2.1.1 does not perform some relocations on ARM
3201     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3202   esac
3203   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3204   ;;
3205
3206 netbsd* | knetbsd*-gnu)
3207   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3208     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3209   else
3210     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3211   fi
3212   ;;
3213
3214 newsos6)
3215   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3216   lt_cv_file_magic_cmd=/usr/bin/file
3217   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3218   ;;
3219
3220 osf3* | osf4* | osf5*)
3221   # this will be overridden with pass_all, but let us keep it just in case
3222   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3223   lt_cv_file_magic_test_file=/shlib/libc.so
3224   lt_cv_deplibs_check_method=pass_all
3225   ;;
3226
3227 sco3.2v5*)
3228   lt_cv_deplibs_check_method=pass_all
3229   ;;
3230
3231 solaris*)
3232   lt_cv_deplibs_check_method=pass_all
3233   lt_cv_file_magic_test_file=/lib/libc.so
3234   ;;
3235
3236 sysv5uw[78]* | sysv4*uw2*)
3237   lt_cv_deplibs_check_method=pass_all
3238   ;;
3239
3240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3241   case $host_vendor in
3242   ncr)
3243     lt_cv_deplibs_check_method=pass_all
3244     ;;
3245   motorola)
3246     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]'
3247     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3248     ;;
3249   esac
3250   ;;
3251 esac
3252
3253 fi
3254 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3255 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3256 file_magic_cmd=$lt_cv_file_magic_cmd
3257 deplibs_check_method=$lt_cv_deplibs_check_method
3258
3259
3260
3261
3262 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3263
3264 # Only perform the check for file, if the check method requires it
3265 case $deplibs_check_method in
3266 file_magic*)
3267   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3268     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3269 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3270 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   case $MAGIC_CMD in
3274   /*)
3275   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3276   ;;
3277   ?:/*)
3278   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3279   ;;
3280   *)
3281   ac_save_MAGIC_CMD="$MAGIC_CMD"
3282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3283   ac_dummy="/usr/bin:$PATH"
3284   for ac_dir in $ac_dummy; do
3285     test -z "$ac_dir" && ac_dir=.
3286     if test -f $ac_dir/${ac_tool_prefix}file; then
3287       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3288       if test -n "$file_magic_test_file"; then
3289         case $deplibs_check_method in
3290         "file_magic "*)
3291           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3292           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3293           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3294             egrep "$file_magic_regex" > /dev/null; then
3295             :
3296           else
3297             cat <<EOF 1>&2
3298
3299 *** Warning: the command libtool uses to detect shared libraries,
3300 *** $file_magic_cmd, produces output that libtool cannot recognize.
3301 *** The result is that libtool may fail to recognize shared libraries
3302 *** as such.  This will affect the creation of libtool libraries that
3303 *** depend on shared libraries, but programs linked with such libtool
3304 *** libraries will work regardless of this problem.  Nevertheless, you
3305 *** may want to report the problem to your system manager and/or to
3306 *** bug-libtool@gnu.org
3307
3308 EOF
3309           fi ;;
3310         esac
3311       fi
3312       break
3313     fi
3314   done
3315   IFS="$ac_save_ifs"
3316   MAGIC_CMD="$ac_save_MAGIC_CMD"
3317   ;;
3318 esac
3319 fi
3320
3321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3322 if test -n "$MAGIC_CMD"; then
3323   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3324 echo "${ECHO_T}$MAGIC_CMD" >&6
3325 else
3326   echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3328 fi
3329
3330 if test -z "$lt_cv_path_MAGIC_CMD"; then
3331   if test -n "$ac_tool_prefix"; then
3332     echo "$as_me:$LINENO: checking for file" >&5
3333 echo $ECHO_N "checking for file... $ECHO_C" >&6
3334 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3335   echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337   case $MAGIC_CMD in
3338   /*)
3339   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3340   ;;
3341   ?:/*)
3342   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3343   ;;
3344   *)
3345   ac_save_MAGIC_CMD="$MAGIC_CMD"
3346   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3347   ac_dummy="/usr/bin:$PATH"
3348   for ac_dir in $ac_dummy; do
3349     test -z "$ac_dir" && ac_dir=.
3350     if test -f $ac_dir/file; then
3351       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3352       if test -n "$file_magic_test_file"; then
3353         case $deplibs_check_method in
3354         "file_magic "*)
3355           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3356           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3357           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3358             egrep "$file_magic_regex" > /dev/null; then
3359             :
3360           else
3361             cat <<EOF 1>&2
3362
3363 *** Warning: the command libtool uses to detect shared libraries,
3364 *** $file_magic_cmd, produces output that libtool cannot recognize.
3365 *** The result is that libtool may fail to recognize shared libraries
3366 *** as such.  This will affect the creation of libtool libraries that
3367 *** depend on shared libraries, but programs linked with such libtool
3368 *** libraries will work regardless of this problem.  Nevertheless, you
3369 *** may want to report the problem to your system manager and/or to
3370 *** bug-libtool@gnu.org
3371
3372 EOF
3373           fi ;;
3374         esac
3375       fi
3376       break
3377     fi
3378   done
3379   IFS="$ac_save_ifs"
3380   MAGIC_CMD="$ac_save_MAGIC_CMD"
3381   ;;
3382 esac
3383 fi
3384
3385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3386 if test -n "$MAGIC_CMD"; then
3387   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3388 echo "${ECHO_T}$MAGIC_CMD" >&6
3389 else
3390   echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6
3392 fi
3393
3394   else
3395     MAGIC_CMD=:
3396   fi
3397 fi
3398
3399   fi
3400   ;;
3401 esac
3402
3403 if test -n "$ac_tool_prefix"; then
3404   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3406 echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3408 if test "${ac_cv_prog_RANLIB+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   if test -n "$RANLIB"; then
3412   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417   IFS=$as_save_IFS
3418   test -z "$as_dir" && as_dir=.
3419   for ac_exec_ext in '' $ac_executable_extensions; do
3420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423     break 2
3424   fi
3425 done
3426 done
3427
3428 fi
3429 fi
3430 RANLIB=$ac_cv_prog_RANLIB
3431 if test -n "$RANLIB"; then
3432   echo "$as_me:$LINENO: result: $RANLIB" >&5
3433 echo "${ECHO_T}$RANLIB" >&6
3434 else
3435   echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3437 fi
3438
3439 fi
3440 if test -z "$ac_cv_prog_RANLIB"; then
3441   ac_ct_RANLIB=$RANLIB
3442   # Extract the first word of "ranlib", so it can be a program name with args.
3443 set dummy ranlib; ac_word=$2
3444 echo "$as_me:$LINENO: checking for $ac_word" >&5
3445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3446 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -n "$ac_ct_RANLIB"; then
3450   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455   IFS=$as_save_IFS
3456   test -z "$as_dir" && as_dir=.
3457   for ac_exec_ext in '' $ac_executable_extensions; do
3458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459     ac_cv_prog_ac_ct_RANLIB="ranlib"
3460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461     break 2
3462   fi
3463 done
3464 done
3465
3466   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3467 fi
3468 fi
3469 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3470 if test -n "$ac_ct_RANLIB"; then
3471   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3472 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3473 else
3474   echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3476 fi
3477
3478   RANLIB=$ac_ct_RANLIB
3479 else
3480   RANLIB="$ac_cv_prog_RANLIB"
3481 fi
3482
3483 if test -n "$ac_tool_prefix"; then
3484   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3485 set dummy ${ac_tool_prefix}strip; ac_word=$2
3486 echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3488 if test "${ac_cv_prog_STRIP+set}" = set; then
3489   echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491   if test -n "$STRIP"; then
3492   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3493 else
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495 for as_dir in $PATH
3496 do
3497   IFS=$as_save_IFS
3498   test -z "$as_dir" && as_dir=.
3499   for ac_exec_ext in '' $ac_executable_extensions; do
3500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3501     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3503     break 2
3504   fi
3505 done
3506 done
3507
3508 fi
3509 fi
3510 STRIP=$ac_cv_prog_STRIP
3511 if test -n "$STRIP"; then
3512   echo "$as_me:$LINENO: result: $STRIP" >&5
3513 echo "${ECHO_T}$STRIP" >&6
3514 else
3515   echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3517 fi
3518
3519 fi
3520 if test -z "$ac_cv_prog_STRIP"; then
3521   ac_ct_STRIP=$STRIP
3522   # Extract the first word of "strip", so it can be a program name with args.
3523 set dummy strip; ac_word=$2
3524 echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529   if test -n "$ac_ct_STRIP"; then
3530   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535   IFS=$as_save_IFS
3536   test -z "$as_dir" && as_dir=.
3537   for ac_exec_ext in '' $ac_executable_extensions; do
3538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539     ac_cv_prog_ac_ct_STRIP="strip"
3540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541     break 2
3542   fi
3543 done
3544 done
3545
3546   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3547 fi
3548 fi
3549 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3550 if test -n "$ac_ct_STRIP"; then
3551   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3552 echo "${ECHO_T}$ac_ct_STRIP" >&6
3553 else
3554   echo "$as_me:$LINENO: result: no" >&5
3555 echo "${ECHO_T}no" >&6
3556 fi
3557
3558   STRIP=$ac_ct_STRIP
3559 else
3560   STRIP="$ac_cv_prog_STRIP"
3561 fi
3562
3563
3564 # Check for any special flags to pass to ltconfig.
3565 libtool_flags="--cache-file=$cache_file"
3566 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3567 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3568 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3569 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3570 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3571
3572
3573 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3574 if test "${enable_libtool_lock+set}" = set; then
3575   enableval="$enable_libtool_lock"
3576
3577 fi;
3578 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3579 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3580
3581
3582 # Check whether --with-pic or --without-pic was given.
3583 if test "${with_pic+set}" = set; then
3584   withval="$with_pic"
3585   pic_mode="$withval"
3586 else
3587   pic_mode=default
3588 fi;
3589 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3590 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3591
3592 # Some flags need to be propagated to the compiler or linker for good
3593 # libtool support.
3594 case $host in
3595 *-*-irix6*)
3596   # Find out which ABI we are using.
3597   echo '#line 3597 "configure"' > conftest.$ac_ext
3598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); }; then
3603    if test "$lt_cv_prog_gnu_ld" = yes; then
3604     case `/usr/bin/file conftest.$ac_objext` in
3605     *32-bit*)
3606       LD="${LD-ld} -melf32bsmip"
3607       ;;
3608     *N32*)
3609       LD="${LD-ld} -melf32bmipn32"
3610       ;;
3611     *64-bit*)
3612       LD="${LD-ld} -melf64bmip"
3613       ;;
3614     esac
3615    else
3616     case `/usr/bin/file conftest.$ac_objext` in
3617     *32-bit*)
3618       LD="${LD-ld} -32"
3619       ;;
3620     *N32*)
3621       LD="${LD-ld} -n32"
3622       ;;
3623     *64-bit*)
3624       LD="${LD-ld} -64"
3625       ;;
3626     esac
3627    fi
3628   fi
3629   rm -rf conftest*
3630   ;;
3631
3632 ia64-*-hpux*)
3633   # Find out which ABI we are using.
3634   echo 'int i;' > conftest.$ac_ext
3635   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636   (eval $ac_compile) 2>&5
3637   ac_status=$?
3638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639   (exit $ac_status); }; then
3640     case "`/usr/bin/file conftest.o`" in
3641     *ELF-32*)
3642       HPUX_IA64_MODE="32"
3643       ;;
3644     *ELF-64*)
3645       HPUX_IA64_MODE="64"
3646       ;;
3647     esac
3648   fi
3649   rm -rf conftest*
3650   ;;
3651
3652 *-*-sco3.2v5*)
3653   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3654   SAVE_CFLAGS="$CFLAGS"
3655   CFLAGS="$CFLAGS -belf"
3656   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3657 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3658 if test "${lt_cv_cc_needs_belf+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661
3662
3663      ac_ext=c
3664 ac_cpp='$CPP $CPPFLAGS'
3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668
3669      cat >conftest.$ac_ext <<_ACEOF
3670 /* confdefs.h.  */
3671 _ACEOF
3672 cat confdefs.h >>conftest.$ac_ext
3673 cat >>conftest.$ac_ext <<_ACEOF
3674 /* end confdefs.h.  */
3675
3676 int
3677 main ()
3678 {
3679
3680   ;
3681   return 0;
3682 }
3683 _ACEOF
3684 rm -f conftest.$ac_objext conftest$ac_exeext
3685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686   (eval $ac_link) 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } &&
3693          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695   (eval $ac_try) 2>&5
3696   ac_status=$?
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); }; } &&
3699          { ac_try='test -s conftest$ac_exeext'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; }; then
3705   lt_cv_cc_needs_belf=yes
3706 else
3707   echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 lt_cv_cc_needs_belf=no
3711 fi
3712 rm -f conftest.err conftest.$ac_objext \
3713       conftest$ac_exeext conftest.$ac_ext
3714      ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720 fi
3721 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3722 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3723   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3724     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3725     CFLAGS="$SAVE_CFLAGS"
3726   fi
3727   ;;
3728
3729
3730 esac
3731
3732
3733 # Save cache, so that ltconfig can load it
3734 cat >confcache <<\_ACEOF
3735 # This file is a shell script that caches the results of configure
3736 # tests run on this system so they can be shared between configure
3737 # scripts and configure runs, see configure's option --config-cache.
3738 # It is not useful on other systems.  If it contains results you don't
3739 # want to keep, you may remove or edit it.
3740 #
3741 # config.status only pays attention to the cache file if you give it
3742 # the --recheck option to rerun configure.
3743 #
3744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3746 # following values.
3747
3748 _ACEOF
3749
3750 # The following way of writing the cache mishandles newlines in values,
3751 # but we know of no workaround that is simple, portable, and efficient.
3752 # So, don't put newlines in cache variables' values.
3753 # Ultrix sh set writes to stderr and can't be redirected directly,
3754 # and sets the high bit in the cache file unless we assign to the vars.
3755 {
3756   (set) 2>&1 |
3757     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3758     *ac_space=\ *)
3759       # `set' does not quote correctly, so add quotes (double-quote
3760       # substitution turns \\\\ into \\, and sed turns \\ into \).
3761       sed -n \
3762         "s/'/'\\\\''/g;
3763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3764       ;;
3765     *)
3766       # `set' quotes correctly as required by POSIX, so do not add quotes.
3767       sed -n \
3768         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3769       ;;
3770     esac;
3771 } |
3772   sed '
3773      t clear
3774      : clear
3775      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3776      t end
3777      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3778      : end' >>confcache
3779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3780   if test -w $cache_file; then
3781     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3782     cat confcache >$cache_file
3783   else
3784     echo "not updating unwritable cache $cache_file"
3785   fi
3786 fi
3787 rm -f confcache
3788
3789 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3790 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3791 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3792 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3793 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3794 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3795 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3796 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3797 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3798 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3799 echo "$as_me: error: libtool configure failed" >&2;}
3800    { (exit 1); exit 1; }; }
3801
3802 # Reload cache, that may have been modified by ltconfig
3803 if test -r "$cache_file"; then
3804   # Some versions of bash will fail to source /dev/null (special
3805   # files actually), so we avoid doing that.
3806   if test -f "$cache_file"; then
3807     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3808 echo "$as_me: loading cache $cache_file" >&6;}
3809     case $cache_file in
3810       [\\/]* | ?:[\\/]* ) . $cache_file;;
3811       *)                      . ./$cache_file;;
3812     esac
3813   fi
3814 else
3815   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3816 echo "$as_me: creating cache $cache_file" >&6;}
3817   >$cache_file
3818 fi
3819
3820
3821 # This can be used to rebuild libtool when needed
3822 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3823
3824 # Always use our own libtool.
3825 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3826
3827 # Redirect the config.log output again, so that the ltconfig log is not
3828 # clobbered by the next message.
3829 exec 5>>./config.log
3830
3831
3832
3833
3834
3835
3836
3837 # Check whether --enable-targets or --disable-targets was given.
3838 if test "${enable_targets+set}" = set; then
3839   enableval="$enable_targets"
3840   case "${enableval}" in
3841   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3842 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3843    { (exit 1); exit 1; }; }
3844             ;;
3845   no)       enable_targets= ;;
3846   *)        enable_targets=$enableval ;;
3847 esac
3848 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3849 if test "${enable_commonbfdlib+set}" = set; then
3850   enableval="$enable_commonbfdlib"
3851   case "${enableval}" in
3852   yes) commonbfdlib=true ;;
3853   no)  commonbfdlib=false ;;
3854   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
3855 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
3856    { (exit 1); exit 1; }; } ;;
3857 esac
3858 fi;
3859 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3860 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3861 if test "${enable_build_warnings+set}" = set; then
3862   enableval="$enable_build_warnings"
3863   case "${enableval}" in
3864   yes)  ;;
3865   no)   build_warnings="-w";;
3866   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3867         build_warnings="${build_warnings} ${t}";;
3868   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3869         build_warnings="${t} ${build_warnings}";;
3870   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3871 esac
3872 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3873   echo "Setting warning flags = $build_warnings" 6>&1
3874 fi
3875 fi; WARN_CFLAGS=""
3876 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3877     WARN_CFLAGS="${build_warnings}"
3878 fi
3879
3880
3881
3882           ac_config_headers="$ac_config_headers config.h:config.in"
3883
3884           ac_config_commands="$ac_config_commands default-1"
3885
3886
3887 if test -z "$target" ; then
3888     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3889 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3890    { (exit 1); exit 1; }; }
3891 fi
3892
3893 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3894 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3895     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3896 if test "${enable_maintainer_mode+set}" = set; then
3897   enableval="$enable_maintainer_mode"
3898   USE_MAINTAINER_MODE=$enableval
3899 else
3900   USE_MAINTAINER_MODE=no
3901 fi;
3902   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3903 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3904
3905
3906 if test $USE_MAINTAINER_MODE = yes; then
3907   MAINTAINER_MODE_TRUE=
3908   MAINTAINER_MODE_FALSE='#'
3909 else
3910   MAINTAINER_MODE_TRUE='#'
3911   MAINTAINER_MODE_FALSE=
3912 fi
3913   MAINT=$MAINTAINER_MODE_TRUE
3914
3915
3916 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3917 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
3918   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3919 if test "${enable_install_libbfd+set}" = set; then
3920   enableval="$enable_install_libbfd"
3921   install_libbfd_p=$enableval
3922 else
3923   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
3924         install_libbfd_p=yes
3925       else
3926         install_libbfd_p=no
3927       fi
3928 fi;
3929   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3930 echo "${ECHO_T}$install_libbfd_p" >&6
3931
3932
3933 if test $install_libbfd_p = yes; then
3934   INSTALL_LIBBFD_TRUE=
3935   INSTALL_LIBBFD_FALSE='#'
3936 else
3937   INSTALL_LIBBFD_TRUE='#'
3938   INSTALL_LIBBFD_FALSE=
3939 fi
3940   # Need _noncanonical variables for this.
3941   ACX_HOST_NONCANONICAL
3942   ACX_TARGET_NONCANONICAL
3943   # libbfd.a is a host library containing target dependent code
3944   bfdlibdir='$(libdir)'
3945   bfdincludedir='$(includedir)'
3946   if test "${host}" != "${target}"; then
3947     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3948     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
3949   fi
3950
3951
3952
3953
3954
3955
3956 # host-specific stuff:
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963 if test -n "$ac_tool_prefix"; then
3964   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_CC+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   if test -n "$CC"; then
3972   ac_cv_prog_CC="$CC" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_exec_ext in '' $ac_executable_extensions; do
3980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983     break 2
3984   fi
3985 done
3986 done
3987
3988 fi
3989 fi
3990 CC=$ac_cv_prog_CC
3991 if test -n "$CC"; then
3992   echo "$as_me:$LINENO: result: $CC" >&5
3993 echo "${ECHO_T}$CC" >&6
3994 else
3995   echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
3999 fi
4000 if test -z "$ac_cv_prog_CC"; then
4001   ac_ct_CC=$CC
4002   # Extract the first word of "gcc", so it can be a program name with args.
4003 set dummy gcc; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$ac_ct_CC"; then
4010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_ac_ct_CC="gcc"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025
4026 fi
4027 fi
4028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4029 if test -n "$ac_ct_CC"; then
4030   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4031 echo "${ECHO_T}$ac_ct_CC" >&6
4032 else
4033   echo "$as_me:$LINENO: result: no" >&5
4034 echo "${ECHO_T}no" >&6
4035 fi
4036
4037   CC=$ac_ct_CC
4038 else
4039   CC="$ac_cv_prog_CC"
4040 fi
4041
4042 if test -z "$CC"; then
4043   if test -n "$ac_tool_prefix"; then
4044   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}cc; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_CC+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   if test -n "$CC"; then
4052   ac_cv_prog_CC="$CC" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059   for ac_exec_ext in '' $ac_executable_extensions; do
4060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061     ac_cv_prog_CC="${ac_tool_prefix}cc"
4062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063     break 2
4064   fi
4065 done
4066 done
4067
4068 fi
4069 fi
4070 CC=$ac_cv_prog_CC
4071 if test -n "$CC"; then
4072   echo "$as_me:$LINENO: result: $CC" >&5
4073 echo "${ECHO_T}$CC" >&6
4074 else
4075   echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079 fi
4080 if test -z "$ac_cv_prog_CC"; then
4081   ac_ct_CC=$CC
4082   # Extract the first word of "cc", so it can be a program name with args.
4083 set dummy cc; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$ac_ct_CC"; then
4090   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_ac_ct_CC="cc"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4109 if test -n "$ac_ct_CC"; then
4110   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4111 echo "${ECHO_T}$ac_ct_CC" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   CC=$ac_ct_CC
4118 else
4119   CC="$ac_cv_prog_CC"
4120 fi
4121
4122 fi
4123 if test -z "$CC"; then
4124   # Extract the first word of "cc", so it can be a program name with args.
4125 set dummy cc; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_CC+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   if test -n "$CC"; then
4132   ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134   ac_prog_rejected=no
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4143        ac_prog_rejected=yes
4144        continue
4145      fi
4146     ac_cv_prog_CC="cc"
4147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151 done
4152
4153 if test $ac_prog_rejected = yes; then
4154   # We found a bogon in the path, so make sure we never use it.
4155   set dummy $ac_cv_prog_CC
4156   shift
4157   if test $# != 0; then
4158     # We chose a different compiler from the bogus one.
4159     # However, it has the same basename, so the bogon will be chosen
4160     # first if we set CC to just the basename; use the full file name.
4161     shift
4162     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4163   fi
4164 fi
4165 fi
4166 fi
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169   echo "$as_me:$LINENO: result: $CC" >&5
4170 echo "${ECHO_T}$CC" >&6
4171 else
4172   echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 fi
4175
4176 fi
4177 if test -z "$CC"; then
4178   if test -n "$ac_tool_prefix"; then
4179   for ac_prog in cl
4180   do
4181     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183 echo "$as_me:$LINENO: checking for $ac_word" >&5
4184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185 if test "${ac_cv_prog_CC+set}" = set; then
4186   echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188   if test -n "$CC"; then
4189   ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196   for ac_exec_ext in '' $ac_executable_extensions; do
4197   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200     break 2
4201   fi
4202 done
4203 done
4204
4205 fi
4206 fi
4207 CC=$ac_cv_prog_CC
4208 if test -n "$CC"; then
4209   echo "$as_me:$LINENO: result: $CC" >&5
4210 echo "${ECHO_T}$CC" >&6
4211 else
4212   echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6
4214 fi
4215
4216     test -n "$CC" && break
4217   done
4218 fi
4219 if test -z "$CC"; then
4220   ac_ct_CC=$CC
4221   for ac_prog in cl
4222 do
4223   # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   if test -n "$ac_ct_CC"; then
4231   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   for ac_exec_ext in '' $ac_executable_extensions; do
4239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240     ac_cv_prog_ac_ct_CC="$ac_prog"
4241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245 done
4246
4247 fi
4248 fi
4249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4250 if test -n "$ac_ct_CC"; then
4251   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4252 echo "${ECHO_T}$ac_ct_CC" >&6
4253 else
4254   echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4256 fi
4257
4258   test -n "$ac_ct_CC" && break
4259 done
4260
4261   CC=$ac_ct_CC
4262 fi
4263
4264 fi
4265
4266
4267 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4268 See \`config.log' for more details." >&5
4269 echo "$as_me: error: no acceptable C compiler found in \$PATH
4270 See \`config.log' for more details." >&2;}
4271    { (exit 1); exit 1; }; }
4272
4273 # Provide some information about the compiler.
4274 echo "$as_me:$LINENO:" \
4275      "checking for C compiler version" >&5
4276 ac_compiler=`set X $ac_compile; echo $2`
4277 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4278   (eval $ac_compiler --version </dev/null >&5) 2>&5
4279   ac_status=$?
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); }
4282 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4283   (eval $ac_compiler -v </dev/null >&5) 2>&5
4284   ac_status=$?
4285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286   (exit $ac_status); }
4287 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4288   (eval $ac_compiler -V </dev/null >&5) 2>&5
4289   ac_status=$?
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); }
4292
4293 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h.  */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h.  */
4304
4305 int
4306 main ()
4307 {
4308 #ifndef __GNUC__
4309        choke me
4310 #endif
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 rm -f conftest.$ac_objext
4317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4318   (eval $ac_compile) 2>conftest.er1
4319   ac_status=$?
4320   grep -v '^ *+' conftest.er1 >conftest.err
4321   rm -f conftest.er1
4322   cat conftest.err >&5
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); } &&
4325          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327   (eval $ac_try) 2>&5
4328   ac_status=$?
4329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330   (exit $ac_status); }; } &&
4331          { ac_try='test -s conftest.$ac_objext'
4332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333   (eval $ac_try) 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }; }; then
4337   ac_compiler_gnu=yes
4338 else
4339   echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4341
4342 ac_compiler_gnu=no
4343 fi
4344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4346
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4350 GCC=`test $ac_compiler_gnu = yes && echo yes`
4351 ac_test_CFLAGS=${CFLAGS+set}
4352 ac_save_CFLAGS=$CFLAGS
4353 CFLAGS="-g"
4354 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4355 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4356 if test "${ac_cv_prog_cc_g+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h.  */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h.  */
4365
4366 int
4367 main ()
4368 {
4369
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376   (eval $ac_compile) 2>conftest.er1
4377   ac_status=$?
4378   grep -v '^ *+' conftest.er1 >conftest.err
4379   rm -f conftest.er1
4380   cat conftest.err >&5
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } &&
4383          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385   (eval $ac_try) 2>&5
4386   ac_status=$?
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); }; } &&
4389          { ac_try='test -s conftest.$ac_objext'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; }; then
4395   ac_cv_prog_cc_g=yes
4396 else
4397   echo "$as_me: failed program was:" >&5
4398 sed 's/^/| /' conftest.$ac_ext >&5
4399
4400 ac_cv_prog_cc_g=no
4401 fi
4402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 fi
4404 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4405 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4406 if test "$ac_test_CFLAGS" = set; then
4407   CFLAGS=$ac_save_CFLAGS
4408 elif test $ac_cv_prog_cc_g = yes; then
4409   if test "$GCC" = yes; then
4410     CFLAGS="-g -O2"
4411   else
4412     CFLAGS="-g"
4413   fi
4414 else
4415   if test "$GCC" = yes; then
4416     CFLAGS="-O2"
4417   else
4418     CFLAGS=
4419   fi
4420 fi
4421 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4422 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4423 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   ac_cv_prog_cc_stdc=no
4427 ac_save_CC=$CC
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434 #include <stdarg.h>
4435 #include <stdio.h>
4436 #include <sys/types.h>
4437 #include <sys/stat.h>
4438 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4439 struct buf { int x; };
4440 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4441 static char *e (p, i)
4442      char **p;
4443      int i;
4444 {
4445   return p[i];
4446 }
4447 static char *f (char * (*g) (char **, int), char **p, ...)
4448 {
4449   char *s;
4450   va_list v;
4451   va_start (v,p);
4452   s = g (p, va_arg (v,int));
4453   va_end (v);
4454   return s;
4455 }
4456
4457 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4458    function prototypes and stuff, but not '\xHH' hex character constants.
4459    These don't provoke an error unfortunately, instead are silently treated
4460    as 'x'.  The following induces an error, until -std1 is added to get
4461    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4462    array size at least.  It's necessary to write '\x00'==0 to get something
4463    that's true only with -std1.  */
4464 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4465
4466 int test (int i, double x);
4467 struct s1 {int (*f) (int a);};
4468 struct s2 {int (*f) (double a);};
4469 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4470 int argc;
4471 char **argv;
4472 int
4473 main ()
4474 {
4475 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 # Don't try gcc -ansi; that turns off useful extensions and
4481 # breaks some systems' header files.
4482 # AIX                   -qlanglvl=ansi
4483 # Ultrix and OSF/1      -std1
4484 # HP-UX 10.20 and later -Ae
4485 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4486 # SVR4                  -Xc -D__EXTENSIONS__
4487 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4488 do
4489   CC="$ac_save_CC $ac_arg"
4490   rm -f conftest.$ac_objext
4491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4492   (eval $ac_compile) 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } &&
4499          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; } &&
4505          { ac_try='test -s conftest.$ac_objext'
4506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4507   (eval $ac_try) 2>&5
4508   ac_status=$?
4509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510   (exit $ac_status); }; }; then
4511   ac_cv_prog_cc_stdc=$ac_arg
4512 break
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 fi
4518 rm -f conftest.err conftest.$ac_objext
4519 done
4520 rm -f conftest.$ac_ext conftest.$ac_objext
4521 CC=$ac_save_CC
4522
4523 fi
4524
4525 case "x$ac_cv_prog_cc_stdc" in
4526   x|xno)
4527     echo "$as_me:$LINENO: result: none needed" >&5
4528 echo "${ECHO_T}none needed" >&6 ;;
4529   *)
4530     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4532     CC="$CC $ac_cv_prog_cc_stdc" ;;
4533 esac
4534
4535 # Some people use a C++ compiler to compile C.  Since we use `exit',
4536 # in C++ we need to declare it.  In case someone uses the same compiler
4537 # for both compiling C and C++ we need to have the C++ compiler decide
4538 # the declaration of exit, since it's the most demanding environment.
4539 cat >conftest.$ac_ext <<_ACEOF
4540 #ifndef __cplusplus
4541   choke me
4542 #endif
4543 _ACEOF
4544 rm -f conftest.$ac_objext
4545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4546   (eval $ac_compile) 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } &&
4553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; } &&
4559          { ac_try='test -s conftest.$ac_objext'
4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561   (eval $ac_try) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   for ac_declaration in \
4566    '' \
4567    'extern "C" void std::exit (int) throw (); using std::exit;' \
4568    'extern "C" void std::exit (int); using std::exit;' \
4569    'extern "C" void exit (int) throw ();' \
4570    'extern "C" void exit (int);' \
4571    'void exit (int);'
4572 do
4573   cat >conftest.$ac_ext <<_ACEOF
4574 /* confdefs.h.  */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h.  */
4579 $ac_declaration
4580 #include <stdlib.h>
4581 int
4582 main ()
4583 {
4584 exit (42);
4585   ;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591   (eval $ac_compile) 2>conftest.er1
4592   ac_status=$?
4593   grep -v '^ *+' conftest.er1 >conftest.err
4594   rm -f conftest.er1
4595   cat conftest.err >&5
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); } &&
4598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600   (eval $ac_try) 2>&5
4601   ac_status=$?
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); }; } &&
4604          { ac_try='test -s conftest.$ac_objext'
4605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606   (eval $ac_try) 2>&5
4607   ac_status=$?
4608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); }; }; then
4610   :
4611 else
4612   echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 continue
4616 fi
4617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4618   cat >conftest.$ac_ext <<_ACEOF
4619 /* confdefs.h.  */
4620 _ACEOF
4621 cat confdefs.h >>conftest.$ac_ext
4622 cat >>conftest.$ac_ext <<_ACEOF
4623 /* end confdefs.h.  */
4624 $ac_declaration
4625 int
4626 main ()
4627 {
4628 exit (42);
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 rm -f conftest.$ac_objext
4634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4635   (eval $ac_compile) 2>conftest.er1
4636   ac_status=$?
4637   grep -v '^ *+' conftest.er1 >conftest.err
4638   rm -f conftest.er1
4639   cat conftest.err >&5
4640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); } &&
4642          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4644   (eval $ac_try) 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; } &&
4648          { ac_try='test -s conftest.$ac_objext'
4649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650   (eval $ac_try) 2>&5
4651   ac_status=$?
4652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653   (exit $ac_status); }; }; then
4654   break
4655 else
4656   echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 fi
4660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4661 done
4662 rm -f conftest*
4663 if test -n "$ac_declaration"; then
4664   echo '#ifdef __cplusplus' >>confdefs.h
4665   echo $ac_declaration      >>confdefs.h
4666   echo '#endif'             >>confdefs.h
4667 fi
4668
4669 else
4670   echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 fi
4674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4675 ac_ext=c
4676 ac_cpp='$CPP $CPPFLAGS'
4677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680
4681
4682 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl"
4683 if test -n "$ac_tool_prefix"; then
4684   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4686 echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688 if test "${ac_cv_prog_RANLIB+set}" = set; then
4689   echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691   if test -n "$RANLIB"; then
4692   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707
4708 fi
4709 fi
4710 RANLIB=$ac_cv_prog_RANLIB
4711 if test -n "$RANLIB"; then
4712   echo "$as_me:$LINENO: result: $RANLIB" >&5
4713 echo "${ECHO_T}$RANLIB" >&6
4714 else
4715   echo "$as_me:$LINENO: result: no" >&5
4716 echo "${ECHO_T}no" >&6
4717 fi
4718
4719 fi
4720 if test -z "$ac_cv_prog_RANLIB"; then
4721   ac_ct_RANLIB=$RANLIB
4722   # Extract the first word of "ranlib", so it can be a program name with args.
4723 set dummy ranlib; ac_word=$2
4724 echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4726 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   if test -n "$ac_ct_RANLIB"; then
4730   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4731 else
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737   for ac_exec_ext in '' $ac_executable_extensions; do
4738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4739     ac_cv_prog_ac_ct_RANLIB="ranlib"
4740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4741     break 2
4742   fi
4743 done
4744 done
4745
4746   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4747 fi
4748 fi
4749 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4750 if test -n "$ac_ct_RANLIB"; then
4751   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4752 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4753 else
4754   echo "$as_me:$LINENO: result: no" >&5
4755 echo "${ECHO_T}no" >&6
4756 fi
4757
4758   RANLIB=$ac_ct_RANLIB
4759 else
4760   RANLIB="$ac_cv_prog_RANLIB"
4761 fi
4762
4763 ac_ext=c
4764 ac_cpp='$CPP $CPPFLAGS'
4765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4768 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4770 # On Suns, sometimes $CPP names a directory.
4771 if test -n "$CPP" && test -d "$CPP"; then
4772   CPP=
4773 fi
4774 if test -z "$CPP"; then
4775   if test "${ac_cv_prog_CPP+set}" = set; then
4776   echo $ECHO_N "(cached) $ECHO_C" >&6
4777 else
4778       # Double quotes because CPP needs to be expanded
4779     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4780     do
4781       ac_preproc_ok=false
4782 for ac_c_preproc_warn_flag in '' yes
4783 do
4784   # Use a header file that comes with gcc, so configuring glibc
4785   # with a fresh cross-compiler works.
4786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4787   # <limits.h> exists even on freestanding compilers.
4788   # On the NeXT, cc -E runs the code through the compiler's parser,
4789   # not just through cpp. "Syntax error" is here to catch this case.
4790   cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h.  */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h.  */
4796 #ifdef __STDC__
4797 # include <limits.h>
4798 #else
4799 # include <assert.h>
4800 #endif
4801                      Syntax error
4802 _ACEOF
4803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4805   ac_status=$?
4806   grep -v '^ *+' conftest.er1 >conftest.err
4807   rm -f conftest.er1
4808   cat conftest.err >&5
4809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810   (exit $ac_status); } >/dev/null; then
4811   if test -s conftest.err; then
4812     ac_cpp_err=$ac_c_preproc_warn_flag
4813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4814   else
4815     ac_cpp_err=
4816   fi
4817 else
4818   ac_cpp_err=yes
4819 fi
4820 if test -z "$ac_cpp_err"; then
4821   :
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826   # Broken: fails on valid input.
4827 continue
4828 fi
4829 rm -f conftest.err conftest.$ac_ext
4830
4831   # OK, works on sane cases.  Now check whether non-existent headers
4832   # can be detected and how.
4833   cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 #include <ac_nonexistent.h>
4840 _ACEOF
4841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4843   ac_status=$?
4844   grep -v '^ *+' conftest.er1 >conftest.err
4845   rm -f conftest.er1
4846   cat conftest.err >&5
4847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848   (exit $ac_status); } >/dev/null; then
4849   if test -s conftest.err; then
4850     ac_cpp_err=$ac_c_preproc_warn_flag
4851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4852   else
4853     ac_cpp_err=
4854   fi
4855 else
4856   ac_cpp_err=yes
4857 fi
4858 if test -z "$ac_cpp_err"; then
4859   # Broken: success on invalid input.
4860 continue
4861 else
4862   echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865   # Passes both tests.
4866 ac_preproc_ok=:
4867 break
4868 fi
4869 rm -f conftest.err conftest.$ac_ext
4870
4871 done
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.$ac_ext
4874 if $ac_preproc_ok; then
4875   break
4876 fi
4877
4878     done
4879     ac_cv_prog_CPP=$CPP
4880
4881 fi
4882   CPP=$ac_cv_prog_CPP
4883 else
4884   ac_cv_prog_CPP=$CPP
4885 fi
4886 echo "$as_me:$LINENO: result: $CPP" >&5
4887 echo "${ECHO_T}$CPP" >&6
4888 ac_preproc_ok=false
4889 for ac_c_preproc_warn_flag in '' yes
4890 do
4891   # Use a header file that comes with gcc, so configuring glibc
4892   # with a fresh cross-compiler works.
4893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894   # <limits.h> exists even on freestanding compilers.
4895   # On the NeXT, cc -E runs the code through the compiler's parser,
4896   # not just through cpp. "Syntax error" is here to catch this case.
4897   cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 #ifdef __STDC__
4904 # include <limits.h>
4905 #else
4906 # include <assert.h>
4907 #endif
4908                      Syntax error
4909 _ACEOF
4910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
4915   cat conftest.err >&5
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } >/dev/null; then
4918   if test -s conftest.err; then
4919     ac_cpp_err=$ac_c_preproc_warn_flag
4920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4921   else
4922     ac_cpp_err=
4923   fi
4924 else
4925   ac_cpp_err=yes
4926 fi
4927 if test -z "$ac_cpp_err"; then
4928   :
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933   # Broken: fails on valid input.
4934 continue
4935 fi
4936 rm -f conftest.err conftest.$ac_ext
4937
4938   # OK, works on sane cases.  Now check whether non-existent headers
4939   # can be detected and how.
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4950   ac_status=$?
4951   grep -v '^ *+' conftest.er1 >conftest.err
4952   rm -f conftest.er1
4953   cat conftest.err >&5
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } >/dev/null; then
4956   if test -s conftest.err; then
4957     ac_cpp_err=$ac_c_preproc_warn_flag
4958     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4959   else
4960     ac_cpp_err=
4961   fi
4962 else
4963   ac_cpp_err=yes
4964 fi
4965 if test -z "$ac_cpp_err"; then
4966   # Broken: success on invalid input.
4967 continue
4968 else
4969   echo "$as_me: failed program was:" >&5
4970 sed 's/^/| /' conftest.$ac_ext >&5
4971
4972   # Passes both tests.
4973 ac_preproc_ok=:
4974 break
4975 fi
4976 rm -f conftest.err conftest.$ac_ext
4977
4978 done
4979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4980 rm -f conftest.err conftest.$ac_ext
4981 if $ac_preproc_ok; then
4982   :
4983 else
4984   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details." >&5
4986 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4987 See \`config.log' for more details." >&2;}
4988    { (exit 1); exit 1; }; }
4989 fi
4990
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997
4998 echo "$as_me:$LINENO: checking for egrep" >&5
4999 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5000 if test "${ac_cv_prog_egrep+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5004     then ac_cv_prog_egrep='grep -E'
5005     else ac_cv_prog_egrep='egrep'
5006     fi
5007 fi
5008 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5009 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5010  EGREP=$ac_cv_prog_egrep
5011
5012
5013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015 if test "${ac_cv_header_stdc+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024 #include <stdlib.h>
5025 #include <stdarg.h>
5026 #include <string.h>
5027 #include <float.h>
5028
5029 int
5030 main ()
5031 {
5032
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; } &&
5052          { ac_try='test -s conftest.$ac_objext'
5053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054   (eval $ac_try) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; }; then
5058   ac_cv_header_stdc=yes
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_cv_header_stdc=no
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066
5067 if test $ac_cv_header_stdc = yes; then
5068   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5069   cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h.  */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h.  */
5075 #include <string.h>
5076
5077 _ACEOF
5078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5079   $EGREP "memchr" >/dev/null 2>&1; then
5080   :
5081 else
5082   ac_cv_header_stdc=no
5083 fi
5084 rm -f conftest*
5085
5086 fi
5087
5088 if test $ac_cv_header_stdc = yes; then
5089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5090   cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 #include <stdlib.h>
5097
5098 _ACEOF
5099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100   $EGREP "free" >/dev/null 2>&1; then
5101   :
5102 else
5103   ac_cv_header_stdc=no
5104 fi
5105 rm -f conftest*
5106
5107 fi
5108
5109 if test $ac_cv_header_stdc = yes; then
5110   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5111   if test "$cross_compiling" = yes; then
5112   :
5113 else
5114   cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120 #include <ctype.h>
5121 #if ((' ' & 0x0FF) == 0x020)
5122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5124 #else
5125 # define ISLOWER(c) \
5126                    (('a' <= (c) && (c) <= 'i') \
5127                      || ('j' <= (c) && (c) <= 'r') \
5128                      || ('s' <= (c) && (c) <= 'z'))
5129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5130 #endif
5131
5132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5133 int
5134 main ()
5135 {
5136   int i;
5137   for (i = 0; i < 256; i++)
5138     if (XOR (islower (i), ISLOWER (i))
5139         || toupper (i) != TOUPPER (i))
5140       exit(2);
5141   exit (0);
5142 }
5143 _ACEOF
5144 rm -f conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146   (eval $ac_link) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   :
5156 else
5157   echo "$as_me: program exited with status $ac_status" >&5
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161 ( exit $ac_status )
5162 ac_cv_header_stdc=no
5163 fi
5164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5165 fi
5166 fi
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5170 if test $ac_cv_header_stdc = yes; then
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define STDC_HEADERS 1
5174 _ACEOF
5175
5176 fi
5177
5178 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5179 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5180 if test "${ac_cv_c_const+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   cat >conftest.$ac_ext <<_ACEOF
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189
5190 int
5191 main ()
5192 {
5193 /* FIXME: Include the comments suggested by Paul. */
5194 #ifndef __cplusplus
5195   /* Ultrix mips cc rejects this.  */
5196   typedef int charset[2];
5197   const charset x;
5198   /* SunOS 4.1.1 cc rejects this.  */
5199   char const *const *ccp;
5200   char **p;
5201   /* NEC SVR4.0.2 mips cc rejects this.  */
5202   struct point {int x, y;};
5203   static struct point const zero = {0,0};
5204   /* AIX XL C 1.02.0.0 rejects this.
5205      It does not let you subtract one const X* pointer from another in
5206      an arm of an if-expression whose if-part is not a constant
5207      expression */
5208   const char *g = "string";
5209   ccp = &g + (g ? g-g : 0);
5210   /* HPUX 7.0 cc rejects these. */
5211   ++ccp;
5212   p = (char**) ccp;
5213   ccp = (char const *const *) p;
5214   { /* SCO 3.2v4 cc rejects this.  */
5215     char *t;
5216     char const *s = 0 ? (char *) 0 : (char const *) 0;
5217
5218     *t++ = 0;
5219   }
5220   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5221     int x[] = {25, 17};
5222     const int *foo = &x[0];
5223     ++foo;
5224   }
5225   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5226     typedef const int *iptr;
5227     iptr p = 0;
5228     ++p;
5229   }
5230   { /* AIX XL C 1.02.0.0 rejects this saying
5231        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5232     struct s { int j; const int *ap[3]; };
5233     struct s *b; b->j = 5;
5234   }
5235   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5236     const int foo = 10;
5237   }
5238 #endif
5239
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 rm -f conftest.$ac_objext
5245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5246   (eval $ac_compile) 2>conftest.er1
5247   ac_status=$?
5248   grep -v '^ *+' conftest.er1 >conftest.err
5249   rm -f conftest.er1
5250   cat conftest.err >&5
5251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252   (exit $ac_status); } &&
5253          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255   (eval $ac_try) 2>&5
5256   ac_status=$?
5257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258   (exit $ac_status); }; } &&
5259          { ac_try='test -s conftest.$ac_objext'
5260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261   (eval $ac_try) 2>&5
5262   ac_status=$?
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); }; }; then
5265   ac_cv_c_const=yes
5266 else
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 ac_cv_c_const=no
5271 fi
5272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5275 echo "${ECHO_T}$ac_cv_c_const" >&6
5276 if test $ac_cv_c_const = no; then
5277
5278 cat >>confdefs.h <<\_ACEOF
5279 #define const
5280 _ACEOF
5281
5282 fi
5283
5284 echo "$as_me:$LINENO: checking for inline" >&5
5285 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5286 if test "${ac_cv_c_inline+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   ac_cv_c_inline=no
5290 for ac_kw in inline __inline__ __inline; do
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297 #ifndef __cplusplus
5298 typedef int foo_t;
5299 static $ac_kw foo_t static_foo () {return 0; }
5300 $ac_kw foo_t foo () {return 0; }
5301 #endif
5302
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306   (eval $ac_compile) 2>conftest.er1
5307   ac_status=$?
5308   grep -v '^ *+' conftest.er1 >conftest.err
5309   rm -f conftest.er1
5310   cat conftest.err >&5
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); } &&
5313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315   (eval $ac_try) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }; } &&
5319          { ac_try='test -s conftest.$ac_objext'
5320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321   (eval $ac_try) 2>&5
5322   ac_status=$?
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); }; }; then
5325   ac_cv_c_inline=$ac_kw; break
5326 else
5327   echo "$as_me: failed program was:" >&5
5328 sed 's/^/| /' conftest.$ac_ext >&5
5329
5330 fi
5331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 done
5333
5334 fi
5335 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5336 echo "${ECHO_T}$ac_cv_c_inline" >&6
5337
5338
5339 case $ac_cv_c_inline in
5340   inline | yes) ;;
5341   *)
5342     case $ac_cv_c_inline in
5343       no) ac_val=;;
5344       *) ac_val=$ac_cv_c_inline;;
5345     esac
5346     cat >>confdefs.h <<_ACEOF
5347 #ifndef __cplusplus
5348 #define inline $ac_val
5349 #endif
5350 _ACEOF
5351     ;;
5352 esac
5353
5354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5365                   inttypes.h stdint.h unistd.h
5366 do
5367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5368 echo "$as_me:$LINENO: checking for $ac_header" >&5
5369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   cat >conftest.$ac_ext <<_ACEOF
5374 /* confdefs.h.  */
5375 _ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h.  */
5379 $ac_includes_default
5380
5381 #include <$ac_header>
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385   (eval $ac_compile) 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } &&
5392          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; } &&
5398          { ac_try='test -s conftest.$ac_objext'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; }; then
5404   eval "$as_ac_Header=yes"
5405 else
5406   echo "$as_me: failed program was:" >&5
5407 sed 's/^/| /' conftest.$ac_ext >&5
5408
5409 eval "$as_ac_Header=no"
5410 fi
5411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5412 fi
5413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416   cat >>confdefs.h <<_ACEOF
5417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418 _ACEOF
5419
5420 fi
5421
5422 done
5423
5424
5425 echo "$as_me:$LINENO: checking for off_t" >&5
5426 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5427 if test "${ac_cv_type_off_t+set}" = set; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 int
5438 main ()
5439 {
5440 if ((off_t *) 0)
5441   return 0;
5442 if (sizeof (off_t))
5443   return 0;
5444   ;
5445   return 0;
5446 }
5447 _ACEOF
5448 rm -f conftest.$ac_objext
5449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5450   (eval $ac_compile) 2>conftest.er1
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
5454   cat conftest.err >&5
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } &&
5457          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5459   (eval $ac_try) 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; } &&
5463          { ac_try='test -s conftest.$ac_objext'
5464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465   (eval $ac_try) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); }; }; then
5469   ac_cv_type_off_t=yes
5470 else
5471   echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 ac_cv_type_off_t=no
5475 fi
5476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5479 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5480 if test $ac_cv_type_off_t = yes; then
5481   :
5482 else
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define off_t long
5486 _ACEOF
5487
5488 fi
5489
5490 echo "$as_me:$LINENO: checking for size_t" >&5
5491 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5492 if test "${ac_cv_type_size_t+set}" = set; then
5493   echo $ECHO_N "(cached) $ECHO_C" >&6
5494 else
5495   cat >conftest.$ac_ext <<_ACEOF
5496 /* confdefs.h.  */
5497 _ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h.  */
5501 $ac_includes_default
5502 int
5503 main ()
5504 {
5505 if ((size_t *) 0)
5506   return 0;
5507 if (sizeof (size_t))
5508   return 0;
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5515   (eval $ac_compile) 2>conftest.er1
5516   ac_status=$?
5517   grep -v '^ *+' conftest.er1 >conftest.err
5518   rm -f conftest.er1
5519   cat conftest.err >&5
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524   (eval $ac_try) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; } &&
5528          { ac_try='test -s conftest.$ac_objext'
5529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530   (eval $ac_try) 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   ac_cv_type_size_t=yes
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539 ac_cv_type_size_t=no
5540 fi
5541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5542 fi
5543 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5544 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5545 if test $ac_cv_type_size_t = yes; then
5546   :
5547 else
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define size_t unsigned
5551 _ACEOF
5552
5553 fi
5554
5555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5556 # for constant arguments.  Useless!
5557 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5558 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5559 if test "${ac_cv_working_alloca_h+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568 #include <alloca.h>
5569 int
5570 main ()
5571 {
5572 char *p = (char *) alloca (2 * sizeof (int));
5573   ;
5574   return 0;
5575 }
5576 _ACEOF
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579   (eval $ac_link) 2>conftest.er1
5580   ac_status=$?
5581   grep -v '^ *+' conftest.er1 >conftest.err
5582   rm -f conftest.er1
5583   cat conftest.err >&5
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); } &&
5586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588   (eval $ac_try) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); }; } &&
5592          { ac_try='test -s conftest$ac_exeext'
5593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   ac_cv_working_alloca_h=yes
5599 else
5600   echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603 ac_cv_working_alloca_h=no
5604 fi
5605 rm -f conftest.err conftest.$ac_objext \
5606       conftest$ac_exeext conftest.$ac_ext
5607 fi
5608 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5610 if test $ac_cv_working_alloca_h = yes; then
5611
5612 cat >>confdefs.h <<\_ACEOF
5613 #define HAVE_ALLOCA_H 1
5614 _ACEOF
5615
5616 fi
5617
5618 echo "$as_me:$LINENO: checking for alloca" >&5
5619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5620 if test "${ac_cv_func_alloca_works+set}" = set; then
5621   echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623   cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629 #ifdef __GNUC__
5630 # define alloca __builtin_alloca
5631 #else
5632 # ifdef _MSC_VER
5633 #  include <malloc.h>
5634 #  define alloca _alloca
5635 # else
5636 #  if HAVE_ALLOCA_H
5637 #   include <alloca.h>
5638 #  else
5639 #   ifdef _AIX
5640  #pragma alloca
5641 #   else
5642 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5643 char *alloca ();
5644 #    endif
5645 #   endif
5646 #  endif
5647 # endif
5648 #endif
5649
5650 int
5651 main ()
5652 {
5653 char *p = (char *) alloca (1);
5654   ;
5655   return 0;
5656 }
5657 _ACEOF
5658 rm -f conftest.$ac_objext conftest$ac_exeext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5660   (eval $ac_link) 2>conftest.er1
5661   ac_status=$?
5662   grep -v '^ *+' conftest.er1 >conftest.err
5663   rm -f conftest.er1
5664   cat conftest.err >&5
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } &&
5667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669   (eval $ac_try) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); }; } &&
5673          { ac_try='test -s conftest$ac_exeext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_cv_func_alloca_works=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_cv_func_alloca_works=no
5685 fi
5686 rm -f conftest.err conftest.$ac_objext \
5687       conftest$ac_exeext conftest.$ac_ext
5688 fi
5689 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5690 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5691
5692 if test $ac_cv_func_alloca_works = yes; then
5693
5694 cat >>confdefs.h <<\_ACEOF
5695 #define HAVE_ALLOCA 1
5696 _ACEOF
5697
5698 else
5699   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5700 # that cause trouble.  Some versions do not even contain alloca or
5701 # contain a buggy version.  If you still want to use their alloca,
5702 # use ar to extract alloca.o from them instead of compiling alloca.c.
5703
5704 ALLOCA=alloca.$ac_objext
5705
5706 cat >>confdefs.h <<\_ACEOF
5707 #define C_ALLOCA 1
5708 _ACEOF
5709
5710
5711 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5712 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5713 if test "${ac_cv_os_cray+set}" = set; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   cat >conftest.$ac_ext <<_ACEOF
5717 /* confdefs.h.  */
5718 _ACEOF
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h.  */
5722 #if defined(CRAY) && ! defined(CRAY2)
5723 webecray
5724 #else
5725 wenotbecray
5726 #endif
5727
5728 _ACEOF
5729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5730   $EGREP "webecray" >/dev/null 2>&1; then
5731   ac_cv_os_cray=yes
5732 else
5733   ac_cv_os_cray=no
5734 fi
5735 rm -f conftest*
5736
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5739 echo "${ECHO_T}$ac_cv_os_cray" >&6
5740 if test $ac_cv_os_cray = yes; then
5741   for ac_func in _getb67 GETB67 getb67; do
5742     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743 echo "$as_me:$LINENO: checking for $ac_func" >&5
5744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_var+set}\" = set"; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h.  */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h.  */
5754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5756 #define $ac_func innocuous_$ac_func
5757
5758 /* System header to define __stub macros and hopefully few prototypes,
5759     which can conflict with char $ac_func (); below.
5760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5761     <limits.h> exists even on freestanding compilers.  */
5762
5763 #ifdef __STDC__
5764 # include <limits.h>
5765 #else
5766 # include <assert.h>
5767 #endif
5768
5769 #undef $ac_func
5770
5771 /* Override any gcc2 internal prototype to avoid an error.  */
5772 #ifdef __cplusplus
5773 extern "C"
5774 {
5775 #endif
5776 /* We use char because int might match the return type of a gcc2
5777    builtin and then its argument prototype would still apply.  */
5778 char $ac_func ();
5779 /* The GNU C library defines this for functions which it implements
5780     to always fail with ENOSYS.  Some functions are actually named
5781     something starting with __ and the normal name is an alias.  */
5782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5783 choke me
5784 #else
5785 char (*f) () = $ac_func;
5786 #endif
5787 #ifdef __cplusplus
5788 }
5789 #endif
5790
5791 int
5792 main ()
5793 {
5794 return f != $ac_func;
5795   ;
5796   return 0;
5797 }
5798 _ACEOF
5799 rm -f conftest.$ac_objext conftest$ac_exeext
5800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5801   (eval $ac_link) 2>conftest.er1
5802   ac_status=$?
5803   grep -v '^ *+' conftest.er1 >conftest.err
5804   rm -f conftest.er1
5805   cat conftest.err >&5
5806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807   (exit $ac_status); } &&
5808          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810   (eval $ac_try) 2>&5
5811   ac_status=$?
5812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813   (exit $ac_status); }; } &&
5814          { ac_try='test -s conftest$ac_exeext'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; }; then
5820   eval "$as_ac_var=yes"
5821 else
5822   echo "$as_me: failed program was:" >&5
5823 sed 's/^/| /' conftest.$ac_ext >&5
5824
5825 eval "$as_ac_var=no"
5826 fi
5827 rm -f conftest.err conftest.$ac_objext \
5828       conftest$ac_exeext conftest.$ac_ext
5829 fi
5830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5832 if test `eval echo '${'$as_ac_var'}'` = yes; then
5833
5834 cat >>confdefs.h <<_ACEOF
5835 #define CRAY_STACKSEG_END $ac_func
5836 _ACEOF
5837
5838     break
5839 fi
5840
5841   done
5842 fi
5843
5844 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5845 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5846 if test "${ac_cv_c_stack_direction+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test "$cross_compiling" = yes; then
5850   ac_cv_c_stack_direction=0
5851 else
5852   cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 int
5859 find_stack_direction ()
5860 {
5861   static char *addr = 0;
5862   auto char dummy;
5863   if (addr == 0)
5864     {
5865       addr = &dummy;
5866       return find_stack_direction ();
5867     }
5868   else
5869     return (&dummy > addr) ? 1 : -1;
5870 }
5871
5872 int
5873 main ()
5874 {
5875   exit (find_stack_direction () < 0);
5876 }
5877 _ACEOF
5878 rm -f conftest$ac_exeext
5879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5880   (eval $ac_link) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885   (eval $ac_try) 2>&5
5886   ac_status=$?
5887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888   (exit $ac_status); }; }; then
5889   ac_cv_c_stack_direction=1
5890 else
5891   echo "$as_me: program exited with status $ac_status" >&5
5892 echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ( exit $ac_status )
5896 ac_cv_c_stack_direction=-1
5897 fi
5898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 fi
5901 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define STACK_DIRECTION $ac_cv_c_stack_direction
5906 _ACEOF
5907
5908
5909 fi
5910
5911
5912
5913 for ac_header in stdlib.h unistd.h
5914 do
5915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5917   echo "$as_me:$LINENO: checking for $ac_header" >&5
5918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 fi
5922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5924 else
5925   # Is the header compilable?
5926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 $ac_includes_default
5935 #include <$ac_header>
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5939   (eval $ac_compile) 2>conftest.er1
5940   ac_status=$?
5941   grep -v '^ *+' conftest.er1 >conftest.err
5942   rm -f conftest.er1
5943   cat conftest.err >&5
5944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945   (exit $ac_status); } &&
5946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948   (eval $ac_try) 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; } &&
5952          { ac_try='test -s conftest.$ac_objext'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; }; then
5958   ac_header_compiler=yes
5959 else
5960   echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 ac_header_compiler=no
5964 fi
5965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5967 echo "${ECHO_T}$ac_header_compiler" >&6
5968
5969 # Is the header present?
5970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5972 cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <$ac_header>
5979 _ACEOF
5980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5982   ac_status=$?
5983   grep -v '^ *+' conftest.er1 >conftest.err
5984   rm -f conftest.er1
5985   cat conftest.err >&5
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); } >/dev/null; then
5988   if test -s conftest.err; then
5989     ac_cpp_err=$ac_c_preproc_warn_flag
5990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5991   else
5992     ac_cpp_err=
5993   fi
5994 else
5995   ac_cpp_err=yes
5996 fi
5997 if test -z "$ac_cpp_err"; then
5998   ac_header_preproc=yes
5999 else
6000   echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003   ac_header_preproc=no
6004 fi
6005 rm -f conftest.err conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6
6008
6009 # So?  What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6011   yes:no: )
6012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016     ac_header_preproc=yes
6017     ;;
6018   no:yes:* )
6019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6031     (
6032       cat <<\_ASBOX
6033 ## ------------------------------------------ ##
6034 ## Report this to the AC_PACKAGE_NAME lists.  ##
6035 ## ------------------------------------------ ##
6036 _ASBOX
6037     ) |
6038       sed "s/^/$as_me: WARNING:     /" >&2
6039     ;;
6040 esac
6041 echo "$as_me:$LINENO: checking for $ac_header" >&5
6042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046   eval "$as_ac_Header=\$ac_header_preproc"
6047 fi
6048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6050
6051 fi
6052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6053   cat >>confdefs.h <<_ACEOF
6054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6056
6057 fi
6058
6059 done
6060
6061
6062 for ac_func in getpagesize
6063 do
6064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6065 echo "$as_me:$LINENO: checking for $ac_func" >&5
6066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6067 if eval "test \"\${$as_ac_var+set}\" = set"; then
6068   echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070   cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h.  */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h.  */
6076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6078 #define $ac_func innocuous_$ac_func
6079
6080 /* System header to define __stub macros and hopefully few prototypes,
6081     which can conflict with char $ac_func (); below.
6082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083     <limits.h> exists even on freestanding compilers.  */
6084
6085 #ifdef __STDC__
6086 # include <limits.h>
6087 #else
6088 # include <assert.h>
6089 #endif
6090
6091 #undef $ac_func
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 {
6097 #endif
6098 /* We use char because int might match the return type of a gcc2
6099    builtin and then its argument prototype would still apply.  */
6100 char $ac_func ();
6101 /* The GNU C library defines this for functions which it implements
6102     to always fail with ENOSYS.  Some functions are actually named
6103     something starting with __ and the normal name is an alias.  */
6104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6105 choke me
6106 #else
6107 char (*f) () = $ac_func;
6108 #endif
6109 #ifdef __cplusplus
6110 }
6111 #endif
6112
6113 int
6114 main ()
6115 {
6116 return f != $ac_func;
6117   ;
6118   return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123   (eval $ac_link) 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } &&
6130          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132   (eval $ac_try) 2>&5
6133   ac_status=$?
6134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135   (exit $ac_status); }; } &&
6136          { ac_try='test -s conftest$ac_exeext'
6137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138   (eval $ac_try) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); }; }; then
6142   eval "$as_ac_var=yes"
6143 else
6144   echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 eval "$as_ac_var=no"
6148 fi
6149 rm -f conftest.err conftest.$ac_objext \
6150       conftest$ac_exeext conftest.$ac_ext
6151 fi
6152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6154 if test `eval echo '${'$as_ac_var'}'` = yes; then
6155   cat >>confdefs.h <<_ACEOF
6156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6157 _ACEOF
6158
6159 fi
6160 done
6161
6162 echo "$as_me:$LINENO: checking for working mmap" >&5
6163 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6164 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   if test "$cross_compiling" = yes; then
6168   ac_cv_func_mmap_fixed_mapped=no
6169 else
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176 $ac_includes_default
6177 /* malloc might have been renamed as rpl_malloc. */
6178 #undef malloc
6179
6180 /* Thanks to Mike Haertel and Jim Avera for this test.
6181    Here is a matrix of mmap possibilities:
6182         mmap private not fixed
6183         mmap private fixed at somewhere currently unmapped
6184         mmap private fixed at somewhere already mapped
6185         mmap shared not fixed
6186         mmap shared fixed at somewhere currently unmapped
6187         mmap shared fixed at somewhere already mapped
6188    For private mappings, we should verify that changes cannot be read()
6189    back from the file, nor mmap's back from the file at a different
6190    address.  (There have been systems where private was not correctly
6191    implemented like the infamous i386 svr4.0, and systems where the
6192    VM page cache was not coherent with the file system buffer cache
6193    like early versions of FreeBSD and possibly contemporary NetBSD.)
6194    For shared mappings, we should conversely verify that changes get
6195    propagated back to all the places they're supposed to be.
6196
6197    Grep wants private fixed already mapped.
6198    The main things grep needs to know about mmap are:
6199    * does it exist and is it safe to write into the mmap'd area
6200    * how to use it (BSD variants)  */
6201
6202 #include <fcntl.h>
6203 #include <sys/mman.h>
6204
6205 #if !STDC_HEADERS && !HAVE_STDLIB_H
6206 char *malloc ();
6207 #endif
6208
6209 /* This mess was copied from the GNU getpagesize.h.  */
6210 #if !HAVE_GETPAGESIZE
6211 /* Assume that all systems that can run configure have sys/param.h.  */
6212 # if !HAVE_SYS_PARAM_H
6213 #  define HAVE_SYS_PARAM_H 1
6214 # endif
6215
6216 # ifdef _SC_PAGESIZE
6217 #  define getpagesize() sysconf(_SC_PAGESIZE)
6218 # else /* no _SC_PAGESIZE */
6219 #  if HAVE_SYS_PARAM_H
6220 #   include <sys/param.h>
6221 #   ifdef EXEC_PAGESIZE
6222 #    define getpagesize() EXEC_PAGESIZE
6223 #   else /* no EXEC_PAGESIZE */
6224 #    ifdef NBPG
6225 #     define getpagesize() NBPG * CLSIZE
6226 #     ifndef CLSIZE
6227 #      define CLSIZE 1
6228 #     endif /* no CLSIZE */
6229 #    else /* no NBPG */
6230 #     ifdef NBPC
6231 #      define getpagesize() NBPC
6232 #     else /* no NBPC */
6233 #      ifdef PAGESIZE
6234 #       define getpagesize() PAGESIZE
6235 #      endif /* PAGESIZE */
6236 #     endif /* no NBPC */
6237 #    endif /* no NBPG */
6238 #   endif /* no EXEC_PAGESIZE */
6239 #  else /* no HAVE_SYS_PARAM_H */
6240 #   define getpagesize() 8192   /* punt totally */
6241 #  endif /* no HAVE_SYS_PARAM_H */
6242 # endif /* no _SC_PAGESIZE */
6243
6244 #endif /* no HAVE_GETPAGESIZE */
6245
6246 int
6247 main ()
6248 {
6249   char *data, *data2, *data3;
6250   int i, pagesize;
6251   int fd;
6252
6253   pagesize = getpagesize ();
6254
6255   /* First, make a file with some known garbage in it. */
6256   data = (char *) malloc (pagesize);
6257   if (!data)
6258     exit (1);
6259   for (i = 0; i < pagesize; ++i)
6260     *(data + i) = rand ();
6261   umask (0);
6262   fd = creat ("conftest.mmap", 0600);
6263   if (fd < 0)
6264     exit (1);
6265   if (write (fd, data, pagesize) != pagesize)
6266     exit (1);
6267   close (fd);
6268
6269   /* Next, try to mmap the file at a fixed address which already has
6270      something else allocated at it.  If we can, also make sure that
6271      we see the same garbage.  */
6272   fd = open ("conftest.mmap", O_RDWR);
6273   if (fd < 0)
6274     exit (1);
6275   data2 = (char *) malloc (2 * pagesize);
6276   if (!data2)
6277     exit (1);
6278   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6279   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6280                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6281     exit (1);
6282   for (i = 0; i < pagesize; ++i)
6283     if (*(data + i) != *(data2 + i))
6284       exit (1);
6285
6286   /* Finally, make sure that changes to the mapped area do not
6287      percolate back to the file as seen by read().  (This is a bug on
6288      some variants of i386 svr4.0.)  */
6289   for (i = 0; i < pagesize; ++i)
6290     *(data2 + i) = *(data2 + i) + 1;
6291   data3 = (char *) malloc (pagesize);
6292   if (!data3)
6293     exit (1);
6294   if (read (fd, data3, pagesize) != pagesize)
6295     exit (1);
6296   for (i = 0; i < pagesize; ++i)
6297     if (*(data + i) != *(data3 + i))
6298       exit (1);
6299   close (fd);
6300   exit (0);
6301 }
6302 _ACEOF
6303 rm -f conftest$ac_exeext
6304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6305   (eval $ac_link) 2>&5
6306   ac_status=$?
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310   (eval $ac_try) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; }; then
6314   ac_cv_func_mmap_fixed_mapped=yes
6315 else
6316   echo "$as_me: program exited with status $ac_status" >&5
6317 echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6319
6320 ( exit $ac_status )
6321 ac_cv_func_mmap_fixed_mapped=no
6322 fi
6323 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6324 fi
6325 fi
6326 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6327 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6328 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6329
6330 cat >>confdefs.h <<\_ACEOF
6331 #define HAVE_MMAP 1
6332 _ACEOF
6333
6334 fi
6335 rm -f conftest.mmap
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6348 unistd.h values.h sys/param.h
6349 do
6350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352   echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 fi
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6359 else
6360   # Is the header compilable?
6361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369 $ac_includes_default
6370 #include <$ac_header>
6371 _ACEOF
6372 rm -f conftest.$ac_objext
6373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374   (eval $ac_compile) 2>conftest.er1
6375   ac_status=$?
6376   grep -v '^ *+' conftest.er1 >conftest.err
6377   rm -f conftest.er1
6378   cat conftest.err >&5
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } &&
6381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6383   (eval $ac_try) 2>&5
6384   ac_status=$?
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); }; } &&
6387          { ac_try='test -s conftest.$ac_objext'
6388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389   (eval $ac_try) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); }; }; then
6393   ac_header_compiler=yes
6394 else
6395   echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 ac_header_compiler=no
6399 fi
6400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6402 echo "${ECHO_T}$ac_header_compiler" >&6
6403
6404 # Is the header present?
6405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6407 cat >conftest.$ac_ext <<_ACEOF
6408 /* confdefs.h.  */
6409 _ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h.  */
6413 #include <$ac_header>
6414 _ACEOF
6415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6416   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6417   ac_status=$?
6418   grep -v '^ *+' conftest.er1 >conftest.err
6419   rm -f conftest.er1
6420   cat conftest.err >&5
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); } >/dev/null; then
6423   if test -s conftest.err; then
6424     ac_cpp_err=$ac_c_preproc_warn_flag
6425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6426   else
6427     ac_cpp_err=
6428   fi
6429 else
6430   ac_cpp_err=yes
6431 fi
6432 if test -z "$ac_cpp_err"; then
6433   ac_header_preproc=yes
6434 else
6435   echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.$ac_ext >&5
6437
6438   ac_header_preproc=no
6439 fi
6440 rm -f conftest.err conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6442 echo "${ECHO_T}$ac_header_preproc" >&6
6443
6444 # So?  What about this header?
6445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6446   yes:no: )
6447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6451     ac_header_preproc=yes
6452     ;;
6453   no:yes:* )
6454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466     (
6467       cat <<\_ASBOX
6468 ## ------------------------------------------ ##
6469 ## Report this to the AC_PACKAGE_NAME lists.  ##
6470 ## ------------------------------------------ ##
6471 _ASBOX
6472     ) |
6473       sed "s/^/$as_me: WARNING:     /" >&2
6474     ;;
6475 esac
6476 echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   eval "$as_ac_Header=\$ac_header_preproc"
6482 fi
6483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6485
6486 fi
6487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6488   cat >>confdefs.h <<_ACEOF
6489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490 _ACEOF
6491
6492 fi
6493
6494 done
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6507 __argz_count __argz_stringify __argz_next
6508 do
6509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6510 echo "$as_me:$LINENO: checking for $ac_func" >&5
6511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6512 if eval "test \"\${$as_ac_var+set}\" = set"; then
6513   echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515   cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h.  */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h.  */
6521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6523 #define $ac_func innocuous_$ac_func
6524
6525 /* System header to define __stub macros and hopefully few prototypes,
6526     which can conflict with char $ac_func (); below.
6527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528     <limits.h> exists even on freestanding compilers.  */
6529
6530 #ifdef __STDC__
6531 # include <limits.h>
6532 #else
6533 # include <assert.h>
6534 #endif
6535
6536 #undef $ac_func
6537
6538 /* Override any gcc2 internal prototype to avoid an error.  */
6539 #ifdef __cplusplus
6540 extern "C"
6541 {
6542 #endif
6543 /* We use char because int might match the return type of a gcc2
6544    builtin and then its argument prototype would still apply.  */
6545 char $ac_func ();
6546 /* The GNU C library defines this for functions which it implements
6547     to always fail with ENOSYS.  Some functions are actually named
6548     something starting with __ and the normal name is an alias.  */
6549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6550 choke me
6551 #else
6552 char (*f) () = $ac_func;
6553 #endif
6554 #ifdef __cplusplus
6555 }
6556 #endif
6557
6558 int
6559 main ()
6560 {
6561 return f != $ac_func;
6562   ;
6563   return 0;
6564 }
6565 _ACEOF
6566 rm -f conftest.$ac_objext conftest$ac_exeext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568   (eval $ac_link) 2>conftest.er1
6569   ac_status=$?
6570   grep -v '^ *+' conftest.er1 >conftest.err
6571   rm -f conftest.er1
6572   cat conftest.err >&5
6573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574   (exit $ac_status); } &&
6575          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577   (eval $ac_try) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); }; } &&
6581          { ac_try='test -s 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   eval "$as_ac_var=yes"
6588 else
6589   echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 eval "$as_ac_var=no"
6593 fi
6594 rm -f conftest.err conftest.$ac_objext \
6595       conftest$ac_exeext conftest.$ac_ext
6596 fi
6597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6599 if test `eval echo '${'$as_ac_var'}'` = yes; then
6600   cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6602 _ACEOF
6603
6604 fi
6605 done
6606
6607
6608    if test "${ac_cv_func_stpcpy+set}" != "set"; then
6609
6610 for ac_func in stpcpy
6611 do
6612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6613 echo "$as_me:$LINENO: checking for $ac_func" >&5
6614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6615 if eval "test \"\${$as_ac_var+set}\" = set"; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6626 #define $ac_func innocuous_$ac_func
6627
6628 /* System header to define __stub macros and hopefully few prototypes,
6629     which can conflict with char $ac_func (); below.
6630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6631     <limits.h> exists even on freestanding compilers.  */
6632
6633 #ifdef __STDC__
6634 # include <limits.h>
6635 #else
6636 # include <assert.h>
6637 #endif
6638
6639 #undef $ac_func
6640
6641 /* Override any gcc2 internal prototype to avoid an error.  */
6642 #ifdef __cplusplus
6643 extern "C"
6644 {
6645 #endif
6646 /* We use char because int might match the return type of a gcc2
6647    builtin and then its argument prototype would still apply.  */
6648 char $ac_func ();
6649 /* The GNU C library defines this for functions which it implements
6650     to always fail with ENOSYS.  Some functions are actually named
6651     something starting with __ and the normal name is an alias.  */
6652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6653 choke me
6654 #else
6655 char (*f) () = $ac_func;
6656 #endif
6657 #ifdef __cplusplus
6658 }
6659 #endif
6660
6661 int
6662 main ()
6663 {
6664 return f != $ac_func;
6665   ;
6666   return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671   (eval $ac_link) 2>conftest.er1
6672   ac_status=$?
6673   grep -v '^ *+' conftest.er1 >conftest.err
6674   rm -f conftest.er1
6675   cat conftest.err >&5
6676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677   (exit $ac_status); } &&
6678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; } &&
6684          { ac_try='test -s conftest$ac_exeext'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; }; then
6690   eval "$as_ac_var=yes"
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 eval "$as_ac_var=no"
6696 fi
6697 rm -f conftest.err conftest.$ac_objext \
6698       conftest$ac_exeext conftest.$ac_ext
6699 fi
6700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6702 if test `eval echo '${'$as_ac_var'}'` = yes; then
6703   cat >>confdefs.h <<_ACEOF
6704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6705 _ACEOF
6706
6707 fi
6708 done
6709
6710    fi
6711    if test "${ac_cv_func_stpcpy}" = "yes"; then
6712
6713 cat >>confdefs.h <<\_ACEOF
6714 #define HAVE_STPCPY 1
6715 _ACEOF
6716
6717    fi
6718
6719    if test $ac_cv_header_locale_h = yes; then
6720     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6721 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6722 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   cat >conftest.$ac_ext <<_ACEOF
6726 /* confdefs.h.  */
6727 _ACEOF
6728 cat confdefs.h >>conftest.$ac_ext
6729 cat >>conftest.$ac_ext <<_ACEOF
6730 /* end confdefs.h.  */
6731 #include <locale.h>
6732 int
6733 main ()
6734 {
6735 return LC_MESSAGES
6736   ;
6737   return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext conftest$ac_exeext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742   (eval $ac_link) 2>conftest.er1
6743   ac_status=$?
6744   grep -v '^ *+' conftest.er1 >conftest.err
6745   rm -f conftest.er1
6746   cat conftest.err >&5
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); } &&
6749          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751   (eval $ac_try) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); }; } &&
6755          { ac_try='test -s conftest$ac_exeext'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; }; then
6761   am_cv_val_LC_MESSAGES=yes
6762 else
6763   echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 am_cv_val_LC_MESSAGES=no
6767 fi
6768 rm -f conftest.err conftest.$ac_objext \
6769       conftest$ac_exeext conftest.$ac_ext
6770 fi
6771 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6772 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6773     if test $am_cv_val_LC_MESSAGES = yes; then
6774
6775 cat >>confdefs.h <<\_ACEOF
6776 #define HAVE_LC_MESSAGES 1
6777 _ACEOF
6778
6779     fi
6780   fi
6781    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6782 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6783         # Check whether --enable-nls or --disable-nls was given.
6784 if test "${enable_nls+set}" = set; then
6785   enableval="$enable_nls"
6786   USE_NLS=$enableval
6787 else
6788   USE_NLS=yes
6789 fi;
6790     echo "$as_me:$LINENO: result: $USE_NLS" >&5
6791 echo "${ECHO_T}$USE_NLS" >&6
6792
6793
6794     USE_INCLUDED_LIBINTL=no
6795
6796         if test "$USE_NLS" = "yes"; then
6797
6798 cat >>confdefs.h <<\_ACEOF
6799 #define ENABLE_NLS 1
6800 _ACEOF
6801
6802       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6803 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6804
6805 # Check whether --with-included-gettext or --without-included-gettext was given.
6806 if test "${with_included_gettext+set}" = set; then
6807   withval="$with_included_gettext"
6808   nls_cv_force_use_gnu_gettext=$withval
6809 else
6810   nls_cv_force_use_gnu_gettext=no
6811 fi;
6812       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6813 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6814
6815       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6816       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6817                                         nls_cv_header_intl=
6818         nls_cv_header_libgt=
6819         CATOBJEXT=NONE
6820
6821         if test "${ac_cv_header_libintl_h+set}" = set; then
6822   echo "$as_me:$LINENO: checking for libintl.h" >&5
6823 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6824 if test "${ac_cv_header_libintl_h+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 fi
6827 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6828 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6829 else
6830   # Is the header compilable?
6831 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6832 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6833 cat >conftest.$ac_ext <<_ACEOF
6834 /* confdefs.h.  */
6835 _ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h.  */
6839 $ac_includes_default
6840 #include <libintl.h>
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844   (eval $ac_compile) 2>conftest.er1
6845   ac_status=$?
6846   grep -v '^ *+' conftest.er1 >conftest.err
6847   rm -f conftest.er1
6848   cat conftest.err >&5
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); } &&
6851          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853   (eval $ac_try) 2>&5
6854   ac_status=$?
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); }; } &&
6857          { ac_try='test -s conftest.$ac_objext'
6858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859   (eval $ac_try) 2>&5
6860   ac_status=$?
6861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862   (exit $ac_status); }; }; then
6863   ac_header_compiler=yes
6864 else
6865   echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868 ac_header_compiler=no
6869 fi
6870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6872 echo "${ECHO_T}$ac_header_compiler" >&6
6873
6874 # Is the header present?
6875 echo "$as_me:$LINENO: checking libintl.h presence" >&5
6876 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883 #include <libintl.h>
6884 _ACEOF
6885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6887   ac_status=$?
6888   grep -v '^ *+' conftest.er1 >conftest.err
6889   rm -f conftest.er1
6890   cat conftest.err >&5
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); } >/dev/null; then
6893   if test -s conftest.err; then
6894     ac_cpp_err=$ac_c_preproc_warn_flag
6895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6896   else
6897     ac_cpp_err=
6898   fi
6899 else
6900   ac_cpp_err=yes
6901 fi
6902 if test -z "$ac_cpp_err"; then
6903   ac_header_preproc=yes
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908   ac_header_preproc=no
6909 fi
6910 rm -f conftest.err conftest.$ac_ext
6911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6912 echo "${ECHO_T}$ac_header_preproc" >&6
6913
6914 # So?  What about this header?
6915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6916   yes:no: )
6917     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6918 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6919     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6920 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6921     ac_header_preproc=yes
6922     ;;
6923   no:yes:* )
6924     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6925 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6926     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
6927 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
6928     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6929 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6930     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
6931 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6932     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6934     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6935 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6936     (
6937       cat <<\_ASBOX
6938 ## ------------------------------------------ ##
6939 ## Report this to the AC_PACKAGE_NAME lists.  ##
6940 ## ------------------------------------------ ##
6941 _ASBOX
6942     ) |
6943       sed "s/^/$as_me: WARNING:     /" >&2
6944     ;;
6945 esac
6946 echo "$as_me:$LINENO: checking for libintl.h" >&5
6947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6948 if test "${ac_cv_header_libintl_h+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   ac_cv_header_libintl_h=$ac_header_preproc
6952 fi
6953 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6954 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6955
6956 fi
6957 if test $ac_cv_header_libintl_h = yes; then
6958   echo "$as_me:$LINENO: checking for gettext in libc" >&5
6959 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
6960 if test "${gt_cv_func_gettext_libc+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6969 #include <libintl.h>
6970 int
6971 main ()
6972 {
6973 return (int) gettext ("")
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980   (eval $ac_link) 2>conftest.er1
6981   ac_status=$?
6982   grep -v '^ *+' conftest.er1 >conftest.err
6983   rm -f conftest.er1
6984   cat conftest.err >&5
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989   (eval $ac_try) 2>&5
6990   ac_status=$?
6991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992   (exit $ac_status); }; } &&
6993          { ac_try='test -s conftest$ac_exeext'
6994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995   (eval $ac_try) 2>&5
6996   ac_status=$?
6997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998   (exit $ac_status); }; }; then
6999   gt_cv_func_gettext_libc=yes
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004 gt_cv_func_gettext_libc=no
7005 fi
7006 rm -f conftest.err conftest.$ac_objext \
7007       conftest$ac_exeext conftest.$ac_ext
7008 fi
7009 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7010 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7011
7012            if test "$gt_cv_func_gettext_libc" != "yes"; then
7013              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7014 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7015 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   ac_check_lib_save_LIBS=$LIBS
7019 LIBS="-lintl  $LIBS"
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026
7027 /* Override any gcc2 internal prototype to avoid an error.  */
7028 #ifdef __cplusplus
7029 extern "C"
7030 #endif
7031 /* We use char because int might match the return type of a gcc2
7032    builtin and then its argument prototype would still apply.  */
7033 char bindtextdomain ();
7034 int
7035 main ()
7036 {
7037 bindtextdomain ();
7038   ;
7039   return 0;
7040 }
7041 _ACEOF
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044   (eval $ac_link) 2>conftest.er1
7045   ac_status=$?
7046   grep -v '^ *+' conftest.er1 >conftest.err
7047   rm -f conftest.er1
7048   cat conftest.err >&5
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); } &&
7051          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053   (eval $ac_try) 2>&5
7054   ac_status=$?
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); }; } &&
7057          { ac_try='test -s conftest$ac_exeext'
7058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059   (eval $ac_try) 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); }; }; then
7063   ac_cv_lib_intl_bindtextdomain=yes
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068 ac_cv_lib_intl_bindtextdomain=no
7069 fi
7070 rm -f conftest.err conftest.$ac_objext \
7071       conftest$ac_exeext conftest.$ac_ext
7072 LIBS=$ac_check_lib_save_LIBS
7073 fi
7074 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7075 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7076 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7077   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7078 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7079 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7080   echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082   cat >conftest.$ac_ext <<_ACEOF
7083 /* confdefs.h.  */
7084 _ACEOF
7085 cat confdefs.h >>conftest.$ac_ext
7086 cat >>conftest.$ac_ext <<_ACEOF
7087 /* end confdefs.h.  */
7088
7089 int
7090 main ()
7091 {
7092 return (int) gettext ("")
7093   ;
7094   return 0;
7095 }
7096 _ACEOF
7097 rm -f conftest.$ac_objext conftest$ac_exeext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099   (eval $ac_link) 2>conftest.er1
7100   ac_status=$?
7101   grep -v '^ *+' conftest.er1 >conftest.err
7102   rm -f conftest.er1
7103   cat conftest.err >&5
7104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105   (exit $ac_status); } &&
7106          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108   (eval $ac_try) 2>&5
7109   ac_status=$?
7110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111   (exit $ac_status); }; } &&
7112          { ac_try='test -s conftest$ac_exeext'
7113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114   (eval $ac_try) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; }; then
7118   gt_cv_func_gettext_libintl=yes
7119 else
7120   echo "$as_me: failed program was:" >&5
7121 sed 's/^/| /' conftest.$ac_ext >&5
7122
7123 gt_cv_func_gettext_libintl=no
7124 fi
7125 rm -f conftest.err conftest.$ac_objext \
7126       conftest$ac_exeext conftest.$ac_ext
7127 fi
7128 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7129 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7130 fi
7131
7132            fi
7133
7134            if test "$gt_cv_func_gettext_libc" = "yes" \
7135               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7136
7137 cat >>confdefs.h <<\_ACEOF
7138 #define HAVE_GETTEXT 1
7139 _ACEOF
7140
7141               # Extract the first word of "msgfmt", so it can be a program name with args.
7142 set dummy msgfmt; ac_word=$2
7143 echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145 if test "${ac_cv_path_MSGFMT+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   case "$MSGFMT" in
7149   /*)
7150   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7151   ;;
7152   *)
7153   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7154   for ac_dir in $PATH; do
7155     test -z "$ac_dir" && ac_dir=.
7156     if test -f $ac_dir/$ac_word; then
7157       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7158         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7159         break
7160       fi
7161     fi
7162   done
7163   IFS="$ac_save_ifs"
7164   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7165   ;;
7166 esac
7167 fi
7168 MSGFMT="$ac_cv_path_MSGFMT"
7169 if test -n "$MSGFMT"; then
7170   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7171 echo "${ECHO_T}$MSGFMT" >&6
7172 else
7173   echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175 fi
7176               if test "$MSGFMT" != "no"; then
7177
7178 for ac_func in dcgettext
7179 do
7180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7181 echo "$as_me:$LINENO: checking for $ac_func" >&5
7182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7183 if eval "test \"\${$as_ac_var+set}\" = set"; then
7184   echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186   cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h.  */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h.  */
7192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7194 #define $ac_func innocuous_$ac_func
7195
7196 /* System header to define __stub macros and hopefully few prototypes,
7197     which can conflict with char $ac_func (); below.
7198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7199     <limits.h> exists even on freestanding compilers.  */
7200
7201 #ifdef __STDC__
7202 # include <limits.h>
7203 #else
7204 # include <assert.h>
7205 #endif
7206
7207 #undef $ac_func
7208
7209 /* Override any gcc2 internal prototype to avoid an error.  */
7210 #ifdef __cplusplus
7211 extern "C"
7212 {
7213 #endif
7214 /* We use char because int might match the return type of a gcc2
7215    builtin and then its argument prototype would still apply.  */
7216 char $ac_func ();
7217 /* The GNU C library defines this for functions which it implements
7218     to always fail with ENOSYS.  Some functions are actually named
7219     something starting with __ and the normal name is an alias.  */
7220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7221 choke me
7222 #else
7223 char (*f) () = $ac_func;
7224 #endif
7225 #ifdef __cplusplus
7226 }
7227 #endif
7228
7229 int
7230 main ()
7231 {
7232 return f != $ac_func;
7233   ;
7234   return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239   (eval $ac_link) 2>conftest.er1
7240   ac_status=$?
7241   grep -v '^ *+' conftest.er1 >conftest.err
7242   rm -f conftest.er1
7243   cat conftest.err >&5
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
7252          { ac_try='test -s conftest$ac_exeext'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; }; then
7258   eval "$as_ac_var=yes"
7259 else
7260   echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 eval "$as_ac_var=no"
7264 fi
7265 rm -f conftest.err conftest.$ac_objext \
7266       conftest$ac_exeext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7270 if test `eval echo '${'$as_ac_var'}'` = yes; then
7271   cat >>confdefs.h <<_ACEOF
7272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7273 _ACEOF
7274
7275 fi
7276 done
7277
7278                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7279 set dummy gmsgfmt; ac_word=$2
7280 echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7282 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 else
7285   case $GMSGFMT in
7286   [\\/]* | ?:[\\/]*)
7287   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7288   ;;
7289   *)
7290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295   for ac_exec_ext in '' $ac_executable_extensions; do
7296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302 done
7303
7304   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7305   ;;
7306 esac
7307 fi
7308 GMSGFMT=$ac_cv_path_GMSGFMT
7309
7310 if test -n "$GMSGFMT"; then
7311   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7312 echo "${ECHO_T}$GMSGFMT" >&6
7313 else
7314   echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6
7316 fi
7317
7318                 # Extract the first word of "xgettext", so it can be a program name with args.
7319 set dummy xgettext; ac_word=$2
7320 echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7322 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case "$XGETTEXT" in
7326   /*)
7327   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7331   for ac_dir in $PATH; do
7332     test -z "$ac_dir" && ac_dir=.
7333     if test -f $ac_dir/$ac_word; then
7334       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7335         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7336         break
7337       fi
7338     fi
7339   done
7340   IFS="$ac_save_ifs"
7341   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7342   ;;
7343 esac
7344 fi
7345 XGETTEXT="$ac_cv_path_XGETTEXT"
7346 if test -n "$XGETTEXT"; then
7347   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7348 echo "${ECHO_T}$XGETTEXT" >&6
7349 else
7350   echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6
7352 fi
7353
7354                 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h.  */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h.  */
7360
7361 int
7362 main ()
7363 {
7364 extern int _nl_msg_cat_cntr;
7365                                return _nl_msg_cat_cntr
7366   ;
7367   return 0;
7368 }
7369 _ACEOF
7370 rm -f conftest.$ac_objext conftest$ac_exeext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7372   (eval $ac_link) 2>conftest.er1
7373   ac_status=$?
7374   grep -v '^ *+' conftest.er1 >conftest.err
7375   rm -f conftest.er1
7376   cat conftest.err >&5
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); } &&
7379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381   (eval $ac_try) 2>&5
7382   ac_status=$?
7383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; } &&
7385          { ac_try='test -s conftest$ac_exeext'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; }; then
7391   CATOBJEXT=.gmo
7392                    DATADIRNAME=share
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 CATOBJEXT=.mo
7398                    DATADIRNAME=lib
7399 fi
7400 rm -f conftest.err conftest.$ac_objext \
7401       conftest$ac_exeext conftest.$ac_ext
7402                 INSTOBJEXT=.mo
7403               fi
7404             fi
7405
7406 fi
7407
7408
7409
7410
7411         if test "$CATOBJEXT" = "NONE"; then
7412                           nls_cv_use_gnu_gettext=yes
7413         fi
7414       fi
7415
7416       if test "$nls_cv_use_gnu_gettext" = "yes"; then
7417                 INTLOBJS="\$(GETTOBJS)"
7418         # Extract the first word of "msgfmt", so it can be a program name with args.
7419 set dummy msgfmt; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_path_MSGFMT+set}" = set; then
7423   echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425   case "$MSGFMT" in
7426   /*)
7427   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7428   ;;
7429   *)
7430   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7431   for ac_dir in $PATH; do
7432     test -z "$ac_dir" && ac_dir=.
7433     if test -f $ac_dir/$ac_word; then
7434       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7435         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7436         break
7437       fi
7438     fi
7439   done
7440   IFS="$ac_save_ifs"
7441   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7442   ;;
7443 esac
7444 fi
7445 MSGFMT="$ac_cv_path_MSGFMT"
7446 if test -n "$MSGFMT"; then
7447   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7448 echo "${ECHO_T}$MSGFMT" >&6
7449 else
7450   echo "$as_me:$LINENO: result: no" >&5
7451 echo "${ECHO_T}no" >&6
7452 fi
7453
7454         # Extract the first word of "gmsgfmt", so it can be a program name with args.
7455 set dummy gmsgfmt; ac_word=$2
7456 echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7458 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $GMSGFMT in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7473     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479
7480   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7481   ;;
7482 esac
7483 fi
7484 GMSGFMT=$ac_cv_path_GMSGFMT
7485
7486 if test -n "$GMSGFMT"; then
7487   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7488 echo "${ECHO_T}$GMSGFMT" >&6
7489 else
7490   echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492 fi
7493
7494         # Extract the first word of "xgettext", so it can be a program name with args.
7495 set dummy xgettext; ac_word=$2
7496 echo "$as_me:$LINENO: checking for $ac_word" >&5
7497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7498 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7499   echo $ECHO_N "(cached) $ECHO_C" >&6
7500 else
7501   case "$XGETTEXT" in
7502   /*)
7503   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7504   ;;
7505   *)
7506   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7507   for ac_dir in $PATH; do
7508     test -z "$ac_dir" && ac_dir=.
7509     if test -f $ac_dir/$ac_word; then
7510       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7511         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7512         break
7513       fi
7514     fi
7515   done
7516   IFS="$ac_save_ifs"
7517   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7518   ;;
7519 esac
7520 fi
7521 XGETTEXT="$ac_cv_path_XGETTEXT"
7522 if test -n "$XGETTEXT"; then
7523   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7524 echo "${ECHO_T}$XGETTEXT" >&6
7525 else
7526   echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6
7528 fi
7529
7530
7531         USE_INCLUDED_LIBINTL=yes
7532         CATOBJEXT=.gmo
7533         INSTOBJEXT=.mo
7534         DATADIRNAME=share
7535         INTLDEPS='$(top_builddir)/../intl/libintl.a'
7536         INTLLIBS=$INTLDEPS
7537         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7538         nls_cv_header_intl=libintl.h
7539         nls_cv_header_libgt=libgettext.h
7540       fi
7541
7542             if test "$XGETTEXT" != ":"; then
7543                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7544           : ;
7545         else
7546           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7547 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7548           XGETTEXT=":"
7549         fi
7550       fi
7551
7552       # We need to process the po/ directory.
7553       POSUB=po
7554     else
7555       DATADIRNAME=share
7556       nls_cv_header_intl=libintl.h
7557       nls_cv_header_libgt=libgettext.h
7558     fi
7559
7560     # If this is used in GNU gettext we have to set USE_NLS to `yes'
7561     # because some of the sources are only built for this goal.
7562     if test "$PACKAGE" = gettext; then
7563       USE_NLS=yes
7564       USE_INCLUDED_LIBINTL=yes
7565     fi
7566
7567                 for lang in $ALL_LINGUAS; do
7568       GMOFILES="$GMOFILES $lang.gmo"
7569       POFILES="$POFILES $lang.po"
7570     done
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585    if test "x$CATOBJEXT" != "x"; then
7586      if test "x$ALL_LINGUAS" = "x"; then
7587        LINGUAS=
7588      else
7589        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7590 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7591        NEW_LINGUAS=
7592        for lang in ${LINGUAS=$ALL_LINGUAS}; do
7593          case "$ALL_LINGUAS" in
7594           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7595          esac
7596        done
7597        LINGUAS=$NEW_LINGUAS
7598        echo "$as_me:$LINENO: result: $LINGUAS" >&5
7599 echo "${ECHO_T}$LINGUAS" >&6
7600      fi
7601
7602           if test -n "$LINGUAS"; then
7603        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7604      fi
7605    fi
7606
7607             if test $ac_cv_header_locale_h = yes; then
7608      INCLUDE_LOCALE_H="#include <locale.h>"
7609    else
7610      INCLUDE_LOCALE_H="\
7611 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
7612    fi
7613
7614
7615             if test -f $srcdir/po2tbl.sed.in; then
7616       if test "$CATOBJEXT" = ".cat"; then
7617          if test "${ac_cv_header_linux_version_h+set}" = set; then
7618   echo "$as_me:$LINENO: checking for linux/version.h" >&5
7619 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7620 if test "${ac_cv_header_linux_version_h+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 fi
7623 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7624 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7625 else
7626   # Is the header compilable?
7627 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7628 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h.  */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h.  */
7635 $ac_includes_default
7636 #include <linux/version.h>
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7640   (eval $ac_compile) 2>conftest.er1
7641   ac_status=$?
7642   grep -v '^ *+' conftest.er1 >conftest.err
7643   rm -f conftest.er1
7644   cat conftest.err >&5
7645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646   (exit $ac_status); } &&
7647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649   (eval $ac_try) 2>&5
7650   ac_status=$?
7651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652   (exit $ac_status); }; } &&
7653          { ac_try='test -s conftest.$ac_objext'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; }; then
7659   ac_header_compiler=yes
7660 else
7661   echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664 ac_header_compiler=no
7665 fi
7666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7668 echo "${ECHO_T}$ac_header_compiler" >&6
7669
7670 # Is the header present?
7671 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7672 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h.  */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h.  */
7679 #include <linux/version.h>
7680 _ACEOF
7681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } >/dev/null; then
7689   if test -s conftest.err; then
7690     ac_cpp_err=$ac_c_preproc_warn_flag
7691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7692   else
7693     ac_cpp_err=
7694   fi
7695 else
7696   ac_cpp_err=yes
7697 fi
7698 if test -z "$ac_cpp_err"; then
7699   ac_header_preproc=yes
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704   ac_header_preproc=no
7705 fi
7706 rm -f conftest.err conftest.$ac_ext
7707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7708 echo "${ECHO_T}$ac_header_preproc" >&6
7709
7710 # So?  What about this header?
7711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7712   yes:no: )
7713     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7714 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7715     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7716 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7717     ac_header_preproc=yes
7718     ;;
7719   no:yes:* )
7720     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7721 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7722     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
7723 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
7724     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7725 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7726     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
7727 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7728     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7729 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7730     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7731 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7732     (
7733       cat <<\_ASBOX
7734 ## ------------------------------------------ ##
7735 ## Report this to the AC_PACKAGE_NAME lists.  ##
7736 ## ------------------------------------------ ##
7737 _ASBOX
7738     ) |
7739       sed "s/^/$as_me: WARNING:     /" >&2
7740     ;;
7741 esac
7742 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7743 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7744 if test "${ac_cv_header_linux_version_h+set}" = set; then
7745   echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747   ac_cv_header_linux_version_h=$ac_header_preproc
7748 fi
7749 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7750 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7751
7752 fi
7753 if test $ac_cv_header_linux_version_h = yes; then
7754   msgformat=linux
7755 else
7756   msgformat=xopen
7757 fi
7758
7759
7760
7761                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7762       fi
7763             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7764          $srcdir/po2tbl.sed.in > po2tbl.sed
7765    fi
7766
7767             if test "$PACKAGE" = "gettext"; then
7768      GT_NO="#NO#"
7769      GT_YES=
7770    else
7771      GT_NO=
7772      GT_YES="#YES#"
7773    fi
7774
7775
7776
7777    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7778
7779
7780       l=
7781
7782
7783             if test -f $srcdir/po/POTFILES.in; then
7784       test -d po || mkdir po
7785       if test "x$srcdir" != "x."; then
7786          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7787             posrcprefix="$srcdir/"
7788          else
7789             posrcprefix="../$srcdir/"
7790          fi
7791       else
7792          posrcprefix="../"
7793       fi
7794       rm -f po/POTFILES
7795       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7796          < $srcdir/po/POTFILES.in > po/POTFILES
7797    fi
7798
7799
7800 . ${srcdir}/../bfd/configure.host
7801
7802 # Put a plausible default for CC_FOR_BUILD in Makefile.
7803 if test -z "$CC_FOR_BUILD"; then
7804   if test "x$cross_compiling" = "xno"; then
7805     CC_FOR_BUILD='$(CC)'
7806   else
7807     CC_FOR_BUILD=gcc
7808   fi
7809 fi
7810
7811 # Also set EXEEXT_FOR_BUILD.
7812 if test "x$cross_compiling" = "xno"; then
7813   EXEEXT_FOR_BUILD='$(EXEEXT)'
7814 else
7815   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7816 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7817 if test "${bfd_cv_build_exeext+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   rm -f conftest*
7821      echo 'int main () { return 0; }' > conftest.c
7822      bfd_cv_build_exeext=
7823      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7824      for file in conftest.*; do
7825        case $file in
7826        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7827        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7828        esac
7829      done
7830      rm -f conftest*
7831      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7832 fi
7833 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7834 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7835   EXEEXT_FOR_BUILD=""
7836   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7837 fi
7838
7839
7840
7841 # Find a good install program.  We prefer a C program (faster),
7842 # so one script is as good as another.  But avoid the broken or
7843 # incompatible versions:
7844 # SysV /etc/install, /usr/sbin/install
7845 # SunOS /usr/etc/install
7846 # IRIX /sbin/install
7847 # AIX /bin/install
7848 # AmigaOS /C/install, which installs bootblocks on floppy discs
7849 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7850 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7851 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7852 # OS/2's system install, which has a completely different semantic
7853 # ./install, which can be erroneously created by make from ./install.sh.
7854 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7855 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7856 if test -z "$INSTALL"; then
7857 if test "${ac_cv_path_install+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 for as_dir in $PATH
7862 do
7863   IFS=$as_save_IFS
7864   test -z "$as_dir" && as_dir=.
7865   # Account for people who put trailing slashes in PATH elements.
7866 case $as_dir/ in
7867   ./ | .// | /cC/* | \
7868   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7869   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7870   /usr/ucb/* ) ;;
7871   *)
7872     # OSF1 and SCO ODT 3.0 have their own names for install.
7873     # Don't use installbsd from OSF since it installs stuff as root
7874     # by default.
7875     for ac_prog in ginstall scoinst install; do
7876       for ac_exec_ext in '' $ac_executable_extensions; do
7877         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7878           if test $ac_prog = install &&
7879             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7880             # AIX install.  It has an incompatible calling convention.
7881             :
7882           elif test $ac_prog = install &&
7883             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7884             # program-specific install script used by HP pwplus--don't use.
7885             :
7886           else
7887             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7888             break 3
7889           fi
7890         fi
7891       done
7892     done
7893     ;;
7894 esac
7895 done
7896
7897
7898 fi
7899   if test "${ac_cv_path_install+set}" = set; then
7900     INSTALL=$ac_cv_path_install
7901   else
7902     # As a last resort, use the slow shell script.  We don't cache a
7903     # path for INSTALL within a source directory, because that will
7904     # break other packages using the cache if that directory is
7905     # removed, or if the path is relative.
7906     INSTALL=$ac_install_sh
7907   fi
7908 fi
7909 echo "$as_me:$LINENO: result: $INSTALL" >&5
7910 echo "${ECHO_T}$INSTALL" >&6
7911
7912 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7913 # It thinks the first close brace ends the variable substitution.
7914 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7915
7916 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7917
7918 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7919
7920
7921
7922
7923
7924 for ac_header in string.h strings.h stdlib.h
7925 do
7926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7928   echo "$as_me:$LINENO: checking for $ac_header" >&5
7929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7931   echo $ECHO_N "(cached) $ECHO_C" >&6
7932 fi
7933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7935 else
7936   # Is the header compilable?
7937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945 $ac_includes_default
7946 #include <$ac_header>
7947 _ACEOF
7948 rm -f conftest.$ac_objext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7950   (eval $ac_compile) 2>conftest.er1
7951   ac_status=$?
7952   grep -v '^ *+' conftest.er1 >conftest.err
7953   rm -f conftest.er1
7954   cat conftest.err >&5
7955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956   (exit $ac_status); } &&
7957          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7959   (eval $ac_try) 2>&5
7960   ac_status=$?
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); }; } &&
7963          { ac_try='test -s conftest.$ac_objext'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; }; then
7969   ac_header_compiler=yes
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974 ac_header_compiler=no
7975 fi
7976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7978 echo "${ECHO_T}$ac_header_compiler" >&6
7979
7980 # Is the header present?
7981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <$ac_header>
7990 _ACEOF
7991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } >/dev/null; then
7999   if test -s conftest.err; then
8000     ac_cpp_err=$ac_c_preproc_warn_flag
8001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8002   else
8003     ac_cpp_err=
8004   fi
8005 else
8006   ac_cpp_err=yes
8007 fi
8008 if test -z "$ac_cpp_err"; then
8009   ac_header_preproc=yes
8010 else
8011   echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014   ac_header_preproc=no
8015 fi
8016 rm -f conftest.err conftest.$ac_ext
8017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8018 echo "${ECHO_T}$ac_header_preproc" >&6
8019
8020 # So?  What about this header?
8021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8022   yes:no: )
8023     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8027     ac_header_preproc=yes
8028     ;;
8029   no:yes:* )
8030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8032     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8033 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8034     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8036     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8037 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8038     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8040     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8042     (
8043       cat <<\_ASBOX
8044 ## ------------------------------------------ ##
8045 ## Report this to the AC_PACKAGE_NAME lists.  ##
8046 ## ------------------------------------------ ##
8047 _ASBOX
8048     ) |
8049       sed "s/^/$as_me: WARNING:     /" >&2
8050     ;;
8051 esac
8052 echo "$as_me:$LINENO: checking for $ac_header" >&5
8053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   eval "$as_ac_Header=\$ac_header_preproc"
8058 fi
8059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8061
8062 fi
8063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8064   cat >>confdefs.h <<_ACEOF
8065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8066 _ACEOF
8067
8068 fi
8069
8070 done
8071
8072
8073 cgen_maint=no
8074 cgendir='$(srcdir)/../cgen'
8075
8076 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8077 if test "${enable_cgen_maint+set}" = set; then
8078   enableval="$enable_cgen_maint"
8079   case "${enableval}" in
8080   yes)  cgen_maint=yes ;;
8081   no)   cgen_maint=no ;;
8082   *)
8083         # argument is cgen install directory (not implemented yet).
8084         # Having a `share' directory might be more appropriate for the .scm,
8085         # .cpu, etc. files.
8086         cgen_maint=yes
8087         cgendir=${cgen_maint}/lib/cgen
8088         ;;
8089 esac
8090 fi;
8091
8092 if test x${cgen_maint} = xyes; then
8093   CGEN_MAINT_TRUE=
8094   CGEN_MAINT_FALSE='#'
8095 else
8096   CGEN_MAINT_TRUE='#'
8097   CGEN_MAINT_FALSE=
8098 fi
8099
8100
8101 using_cgen=no
8102
8103 # Horrible hacks to build DLLs on Windows.
8104 WIN32LDFLAGS=
8105 WIN32LIBADD=
8106 case "${host}" in
8107 *-*-cygwin*)
8108   if test "$enable_shared" = "yes"; then
8109     WIN32LDFLAGS="-no-undefined"
8110     WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8111   fi
8112   ;;
8113 esac
8114
8115
8116
8117 # target-specific stuff:
8118
8119 # Canonicalize the secondary target names.
8120 if test -n "$enable_targets" ; then
8121     for targ in `echo $enable_targets | sed 's/,/ /g'`
8122     do
8123         result=`$ac_config_sub $targ 2>/dev/null`
8124         if test -n "$result" ; then
8125             canon_targets="$canon_targets $result"
8126         else
8127             # Allow targets that config.sub doesn't recognize, like "all".
8128             canon_targets="$canon_targets $targ"
8129         fi
8130     done
8131 fi
8132
8133 all_targets=false
8134 selarchs=
8135 for targ in $target $canon_targets
8136 do
8137     if test "x$targ" = "xall" ; then
8138         all_targets=true
8139     else
8140         . $srcdir/../bfd/config.bfd
8141         selarchs="$selarchs $targ_archs"
8142     fi
8143 done
8144
8145 # Utility var, documents generic cgen support files.
8146
8147 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
8148
8149 # We don't do any links based on the target system, just makefile config.
8150
8151 if test x${all_targets} = xfalse ; then
8152
8153     # Target architecture .o files.
8154     ta=
8155
8156     for arch in $selarchs
8157     do
8158         ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8159         archdefs="$archdefs -DARCH_$ad"
8160         case "$arch" in
8161         bfd_a29k_arch)          ta="$ta a29k-dis.lo" ;;
8162         bfd_alliant_arch)       ;;
8163         bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
8164         bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
8165         bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
8166         bfd_avr_arch)           ta="$ta avr-dis.lo" ;;
8167         bfd_convex_arch)        ;;
8168         bfd_cris_arch)          ta="$ta cris-dis.lo cris-opc.lo" ;;
8169         bfd_crx_arch)           ta="$ta crx-dis.lo crx-opc.lo" ;;
8170         bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8171         bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
8172         bfd_dlx_arch)           ta="$ta dlx-dis.lo" ;;
8173         bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8174         bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
8175         bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
8176         bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
8177         bfd_i370_arch)          ta="$ta i370-dis.lo i370-opc.lo" ;;
8178         bfd_i386_arch)          ta="$ta i386-dis.lo" ;;
8179         bfd_i860_arch)          ta="$ta i860-dis.lo" ;;
8180         bfd_i960_arch)          ta="$ta i960-dis.lo" ;;
8181         bfd_ia64_arch)          ta="$ta ia64-dis.lo ia64-opc.lo" ;;
8182         bfd_ip2k_arch)          ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
8183         bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
8184         bfd_m32r_arch)          ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
8185         bfd_m68hc11_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8186         bfd_m68hc12_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8187         bfd_m68k_arch)          ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8188         bfd_m88k_arch)          ta="$ta m88k-dis.lo" ;;
8189         bfd_mcore_arch)         ta="$ta mcore-dis.lo" ;;
8190         bfd_mips_arch)          ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
8191         bfd_mmix_arch)          ta="$ta mmix-dis.lo mmix-opc.lo" ;;
8192         bfd_mn10200_arch)       ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8193         bfd_mn10300_arch)       ta="$ta m10300-dis.lo m10300-opc.lo" ;;
8194         bfd_msp430_arch)        ta="$ta msp430-dis.lo" ;;
8195         bfd_ns32k_arch)         ta="$ta ns32k-dis.lo" ;;
8196         bfd_openrisc_arch)      ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
8197         bfd_or32_arch)          ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
8198         bfd_pdp11_arch)         ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
8199         bfd_pj_arch)            ta="$ta pj-dis.lo pj-opc.lo" ;;
8200         bfd_powerpc_arch)       ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8201         bfd_powerpc_64_arch)    ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8202         bfd_pyramid_arch)       ;;
8203         bfd_romp_arch)          ;;
8204         bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
8205         bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
8206         bfd_sh_arch)
8207           # We can't decide what we want just from the CPU family.
8208           # We want SH5 support unless a specific version of sh is
8209           # specified, as in sh3-elf, sh3b-linux-gnu, etc.
8210           # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8211           for t in $target $canon_targets; do
8212             case $t in
8213               all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
8214               sh-*-linux* | shl-*-linux*)
8215                                 ta="$ta sh64-dis.lo sh64-opc.lo"
8216                                 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8217                                 break;;
8218             esac;
8219           done
8220                                 ta="$ta sh-dis.lo" ;;
8221         bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8222         bfd_tahoe_arch)         ;;
8223         bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
8224         bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
8225         bfd_tic54x_arch)        ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
8226         bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8227         bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
8228         bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
8229         bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
8230         bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
8231         bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
8232         bfd_we32k_arch)         ;;
8233         bfd_xstormy16_arch)     ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
8234         bfd_xtensa_arch)        ta="$ta xtensa-dis.lo" ;;
8235         bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
8236         bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
8237
8238         "")                     ;;
8239         *)              { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8240 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8241    { (exit 1); exit 1; }; } ;;
8242         esac
8243     done
8244
8245     if test $using_cgen = yes ; then
8246         ta="$ta $cgen_files"
8247     fi
8248
8249     # Weed out duplicate .o files.
8250     f=""
8251     for i in $ta ; do
8252         case " $f " in
8253         *" $i "*) ;;
8254         *) f="$f $i" ;;
8255         esac
8256     done
8257     ta="$f"
8258
8259     # And duplicate -D flags.
8260     f=""
8261     for i in $archdefs ; do
8262         case " $f " in
8263         *" $i "*) ;;
8264         *) f="$f $i" ;;
8265         esac
8266     done
8267     archdefs="$f"
8268
8269     BFD_MACHINES="$ta"
8270
8271 else    # all_targets is true
8272     archdefs=-DARCH_all
8273     BFD_MACHINES='$(ALL_MACHINES)'
8274 fi
8275
8276
8277
8278
8279                     ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8280
8281           ac_config_commands="$ac_config_commands default"
8282
8283 cat >confcache <<\_ACEOF
8284 # This file is a shell script that caches the results of configure
8285 # tests run on this system so they can be shared between configure
8286 # scripts and configure runs, see configure's option --config-cache.
8287 # It is not useful on other systems.  If it contains results you don't
8288 # want to keep, you may remove or edit it.
8289 #
8290 # config.status only pays attention to the cache file if you give it
8291 # the --recheck option to rerun configure.
8292 #
8293 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8294 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8295 # following values.
8296
8297 _ACEOF
8298
8299 # The following way of writing the cache mishandles newlines in values,
8300 # but we know of no workaround that is simple, portable, and efficient.
8301 # So, don't put newlines in cache variables' values.
8302 # Ultrix sh set writes to stderr and can't be redirected directly,
8303 # and sets the high bit in the cache file unless we assign to the vars.
8304 {
8305   (set) 2>&1 |
8306     case `(ac_space=' '; set | grep ac_space) 2>&1` in
8307     *ac_space=\ *)
8308       # `set' does not quote correctly, so add quotes (double-quote
8309       # substitution turns \\\\ into \\, and sed turns \\ into \).
8310       sed -n \
8311         "s/'/'\\\\''/g;
8312           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8313       ;;
8314     *)
8315       # `set' quotes correctly as required by POSIX, so do not add quotes.
8316       sed -n \
8317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8318       ;;
8319     esac;
8320 } |
8321   sed '
8322      t clear
8323      : clear
8324      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8325      t end
8326      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8327      : end' >>confcache
8328 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8329   if test -w $cache_file; then
8330     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8331     cat confcache >$cache_file
8332   else
8333     echo "not updating unwritable cache $cache_file"
8334   fi
8335 fi
8336 rm -f confcache
8337
8338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8339 # Let make expand exec_prefix.
8340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8341
8342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8344 # trailing colons and then remove the whole line if VPATH becomes empty
8345 # (actually we leave an empty line to preserve line numbers).
8346 if test "x$srcdir" = x.; then
8347   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8348 s/:*\$(srcdir):*/:/;
8349 s/:*\${srcdir}:*/:/;
8350 s/:*@srcdir@:*/:/;
8351 s/^\([^=]*=[     ]*\):*/\1/;
8352 s/:*$//;
8353 s/^[^=]*=[       ]*$//;
8354 }'
8355 fi
8356
8357 DEFS=-DHAVE_CONFIG_H
8358
8359 ac_libobjs=
8360 ac_ltlibobjs=
8361 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8362   # 1. Remove the extension, and $U if already installed.
8363   ac_i=`echo "$ac_i" |
8364          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8365   # 2. Add them.
8366   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8367   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8368 done
8369 LIBOBJS=$ac_libobjs
8370
8371 LTLIBOBJS=$ac_ltlibobjs
8372
8373
8374
8375 : ${CONFIG_STATUS=./config.status}
8376 ac_clean_files_save=$ac_clean_files
8377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8378 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8379 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8380 cat >$CONFIG_STATUS <<_ACEOF
8381 #! $SHELL
8382 # Generated by $as_me.
8383 # Run this file to recreate the current configuration.
8384 # Compiler output produced by configure, useful for debugging
8385 # configure, is in config.log if it exists.
8386
8387 debug=false
8388 ac_cs_recheck=false
8389 ac_cs_silent=false
8390 SHELL=\${CONFIG_SHELL-$SHELL}
8391 _ACEOF
8392
8393 cat >>$CONFIG_STATUS <<\_ACEOF
8394 ## --------------------- ##
8395 ## M4sh Initialization.  ##
8396 ## --------------------- ##
8397
8398 # Be Bourne compatible
8399 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8400   emulate sh
8401   NULLCMD=:
8402   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8403   # is contrary to our usage.  Disable this feature.
8404   alias -g '${1+"$@"}'='"$@"'
8405 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8406   set -o posix
8407 fi
8408 DUALCASE=1; export DUALCASE # for MKS sh
8409
8410 # Support unset when possible.
8411 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8412   as_unset=unset
8413 else
8414   as_unset=false
8415 fi
8416
8417
8418 # Work around bugs in pre-3.0 UWIN ksh.
8419 $as_unset ENV MAIL MAILPATH
8420 PS1='$ '
8421 PS2='> '
8422 PS4='+ '
8423
8424 # NLS nuisances.
8425 for as_var in \
8426   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8427   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8428   LC_TELEPHONE LC_TIME
8429 do
8430   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8431     eval $as_var=C; export $as_var
8432   else
8433     $as_unset $as_var
8434   fi
8435 done
8436
8437 # Required to use basename.
8438 if expr a : '\(a\)' >/dev/null 2>&1; then
8439   as_expr=expr
8440 else
8441   as_expr=false
8442 fi
8443
8444 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8445   as_basename=basename
8446 else
8447   as_basename=false
8448 fi
8449
8450
8451 # Name of the executable.
8452 as_me=`$as_basename "$0" ||
8453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8454          X"$0" : 'X\(//\)$' \| \
8455          X"$0" : 'X\(/\)$' \| \
8456          .     : '\(.\)' 2>/dev/null ||
8457 echo X/"$0" |
8458     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8459           /^X\/\(\/\/\)$/{ s//\1/; q; }
8460           /^X\/\(\/\).*/{ s//\1/; q; }
8461           s/.*/./; q'`
8462
8463
8464 # PATH needs CR, and LINENO needs CR and PATH.
8465 # Avoid depending upon Character Ranges.
8466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8469 as_cr_digits='0123456789'
8470 as_cr_alnum=$as_cr_Letters$as_cr_digits
8471
8472 # The user is always right.
8473 if test "${PATH_SEPARATOR+set}" != set; then
8474   echo "#! /bin/sh" >conf$$.sh
8475   echo  "exit 0"   >>conf$$.sh
8476   chmod +x conf$$.sh
8477   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8478     PATH_SEPARATOR=';'
8479   else
8480     PATH_SEPARATOR=:
8481   fi
8482   rm -f conf$$.sh
8483 fi
8484
8485
8486   as_lineno_1=$LINENO
8487   as_lineno_2=$LINENO
8488   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8489   test "x$as_lineno_1" != "x$as_lineno_2" &&
8490   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8491   # Find who we are.  Look in the path if we contain no path at all
8492   # relative or not.
8493   case $0 in
8494     *[\\/]* ) as_myself=$0 ;;
8495     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8501 done
8502
8503        ;;
8504   esac
8505   # We did not find ourselves, most probably we were run as `sh COMMAND'
8506   # in which case we are not to be found in the path.
8507   if test "x$as_myself" = x; then
8508     as_myself=$0
8509   fi
8510   if test ! -f "$as_myself"; then
8511     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8512 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8513    { (exit 1); exit 1; }; }
8514   fi
8515   case $CONFIG_SHELL in
8516   '')
8517     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8519 do
8520   IFS=$as_save_IFS
8521   test -z "$as_dir" && as_dir=.
8522   for as_base in sh bash ksh sh5; do
8523          case $as_dir in
8524          /*)
8525            if ("$as_dir/$as_base" -c '
8526   as_lineno_1=$LINENO
8527   as_lineno_2=$LINENO
8528   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8529   test "x$as_lineno_1" != "x$as_lineno_2" &&
8530   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8531              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8532              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8533              CONFIG_SHELL=$as_dir/$as_base
8534              export CONFIG_SHELL
8535              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8536            fi;;
8537          esac
8538        done
8539 done
8540 ;;
8541   esac
8542
8543   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8544   # uniformly replaced by the line number.  The first 'sed' inserts a
8545   # line-number line before each line; the second 'sed' does the real
8546   # work.  The second script uses 'N' to pair each line-number line
8547   # with the numbered line, and appends trailing '-' during
8548   # substitution so that $LINENO is not a special case at line end.
8549   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8550   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8551   sed '=' <$as_myself |
8552     sed '
8553       N
8554       s,$,-,
8555       : loop
8556       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8557       t loop
8558       s,-$,,
8559       s,^['$as_cr_digits']*\n,,
8560     ' >$as_me.lineno &&
8561   chmod +x $as_me.lineno ||
8562     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8563 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8564    { (exit 1); exit 1; }; }
8565
8566   # Don't try to exec as it changes $[0], causing all sort of problems
8567   # (the dirname of $[0] is not the place where we might find the
8568   # original and so on.  Autoconf is especially sensible to this).
8569   . ./$as_me.lineno
8570   # Exit status is that of the last command.
8571   exit
8572 }
8573
8574
8575 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8576   *c*,-n*) ECHO_N= ECHO_C='
8577 ' ECHO_T='      ' ;;
8578   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8579   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8580 esac
8581
8582 if expr a : '\(a\)' >/dev/null 2>&1; then
8583   as_expr=expr
8584 else
8585   as_expr=false
8586 fi
8587
8588 rm -f conf$$ conf$$.exe conf$$.file
8589 echo >conf$$.file
8590 if ln -s conf$$.file conf$$ 2>/dev/null; then
8591   # We could just check for DJGPP; but this test a) works b) is more generic
8592   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8593   if test -f conf$$.exe; then
8594     # Don't use ln at all; we don't have any links
8595     as_ln_s='cp -p'
8596   else
8597     as_ln_s='ln -s'
8598   fi
8599 elif ln conf$$.file conf$$ 2>/dev/null; then
8600   as_ln_s=ln
8601 else
8602   as_ln_s='cp -p'
8603 fi
8604 rm -f conf$$ conf$$.exe conf$$.file
8605
8606 if mkdir -p . 2>/dev/null; then
8607   as_mkdir_p=:
8608 else
8609   test -d ./-p && rmdir ./-p
8610   as_mkdir_p=false
8611 fi
8612
8613 as_executable_p="test -f"
8614
8615 # Sed expression to map a string onto a valid CPP name.
8616 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8617
8618 # Sed expression to map a string onto a valid variable name.
8619 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8620
8621
8622 # IFS
8623 # We need space, tab and new line, in precisely that order.
8624 as_nl='
8625 '
8626 IFS="   $as_nl"
8627
8628 # CDPATH.
8629 $as_unset CDPATH
8630
8631 exec 6>&1
8632
8633 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8634 # report actual input values of CONFIG_FILES etc. instead of their
8635 # values after options handling.  Logging --version etc. is OK.
8636 exec 5>>config.log
8637 {
8638   echo
8639   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8640 ## Running $as_me. ##
8641 _ASBOX
8642 } >&5
8643 cat >&5 <<_CSEOF
8644
8645 This file was extended by $as_me, which was
8646 generated by GNU Autoconf 2.59.  Invocation command line was
8647
8648   CONFIG_FILES    = $CONFIG_FILES
8649   CONFIG_HEADERS  = $CONFIG_HEADERS
8650   CONFIG_LINKS    = $CONFIG_LINKS
8651   CONFIG_COMMANDS = $CONFIG_COMMANDS
8652   $ $0 $@
8653
8654 _CSEOF
8655 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8656 echo >&5
8657 _ACEOF
8658
8659 # Files that config.status was made for.
8660 if test -n "$ac_config_files"; then
8661   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8662 fi
8663
8664 if test -n "$ac_config_headers"; then
8665   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8666 fi
8667
8668 if test -n "$ac_config_links"; then
8669   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8670 fi
8671
8672 if test -n "$ac_config_commands"; then
8673   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8674 fi
8675
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8677
8678 ac_cs_usage="\
8679 \`$as_me' instantiates files from templates according to the
8680 current configuration.
8681
8682 Usage: $0 [OPTIONS] [FILE]...
8683
8684   -h, --help       print this help, then exit
8685   -V, --version    print version number, then exit
8686   -q, --quiet      do not print progress messages
8687   -d, --debug      don't remove temporary files
8688       --recheck    update $as_me by reconfiguring in the same conditions
8689   --file=FILE[:TEMPLATE]
8690                    instantiate the configuration file FILE
8691   --header=FILE[:TEMPLATE]
8692                    instantiate the configuration header FILE
8693
8694 Configuration files:
8695 $config_files
8696
8697 Configuration headers:
8698 $config_headers
8699
8700 Configuration commands:
8701 $config_commands
8702
8703 Report bugs to <bug-autoconf@gnu.org>."
8704 _ACEOF
8705
8706 cat >>$CONFIG_STATUS <<_ACEOF
8707 ac_cs_version="\\
8708 config.status
8709 configured by $0, generated by GNU Autoconf 2.59,
8710   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8711
8712 Copyright (C) 2003 Free Software Foundation, Inc.
8713 This config.status script is free software; the Free Software Foundation
8714 gives unlimited permission to copy, distribute and modify it."
8715 srcdir=$srcdir
8716 INSTALL="$INSTALL"
8717 _ACEOF
8718
8719 cat >>$CONFIG_STATUS <<\_ACEOF
8720 # If no file are specified by the user, then we need to provide default
8721 # value.  By we need to know if files were specified by the user.
8722 ac_need_defaults=:
8723 while test $# != 0
8724 do
8725   case $1 in
8726   --*=*)
8727     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8728     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8729     ac_shift=:
8730     ;;
8731   -*)
8732     ac_option=$1
8733     ac_optarg=$2
8734     ac_shift=shift
8735     ;;
8736   *) # This is not an option, so the user has probably given explicit
8737      # arguments.
8738      ac_option=$1
8739      ac_need_defaults=false;;
8740   esac
8741
8742   case $ac_option in
8743   # Handling of the options.
8744 _ACEOF
8745 cat >>$CONFIG_STATUS <<\_ACEOF
8746   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8747     ac_cs_recheck=: ;;
8748   --version | --vers* | -V )
8749     echo "$ac_cs_version"; exit 0 ;;
8750   --he | --h)
8751     # Conflict between --help and --header
8752     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8753 Try \`$0 --help' for more information." >&5
8754 echo "$as_me: error: ambiguous option: $1
8755 Try \`$0 --help' for more information." >&2;}
8756    { (exit 1); exit 1; }; };;
8757   --help | --hel | -h )
8758     echo "$ac_cs_usage"; exit 0 ;;
8759   --debug | --d* | -d )
8760     debug=: ;;
8761   --file | --fil | --fi | --f )
8762     $ac_shift
8763     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8764     ac_need_defaults=false;;
8765   --header | --heade | --head | --hea )
8766     $ac_shift
8767     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8768     ac_need_defaults=false;;
8769   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8770   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8771     ac_cs_silent=: ;;
8772
8773   # This is an error.
8774   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8775 Try \`$0 --help' for more information." >&5
8776 echo "$as_me: error: unrecognized option: $1
8777 Try \`$0 --help' for more information." >&2;}
8778    { (exit 1); exit 1; }; } ;;
8779
8780   *) ac_config_targets="$ac_config_targets $1" ;;
8781
8782   esac
8783   shift
8784 done
8785
8786 ac_configure_extra_args=
8787
8788 if $ac_cs_silent; then
8789   exec 6>/dev/null
8790   ac_configure_extra_args="$ac_configure_extra_args --silent"
8791 fi
8792
8793 _ACEOF
8794 cat >>$CONFIG_STATUS <<_ACEOF
8795 if \$ac_cs_recheck; then
8796   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8797   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8798 fi
8799
8800 _ACEOF
8801
8802 cat >>$CONFIG_STATUS <<_ACEOF
8803 #
8804 # INIT-COMMANDS section.
8805 #
8806
8807
8808
8809
8810 _ACEOF
8811
8812
8813
8814 cat >>$CONFIG_STATUS <<\_ACEOF
8815 for ac_config_target in $ac_config_targets
8816 do
8817   case "$ac_config_target" in
8818   # Handling of arguments.
8819   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8820   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8821   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8822   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8823   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8824   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8825 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8826    { (exit 1); exit 1; }; };;
8827   esac
8828 done
8829
8830 # If the user did not use the arguments to specify the items to instantiate,
8831 # then the envvar interface is used.  Set only those that are not.
8832 # We use the long form for the default assignment because of an extremely
8833 # bizarre bug on SunOS 4.1.3.
8834 if $ac_need_defaults; then
8835   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8836   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8837   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8838 fi
8839
8840 # Have a temporary directory for convenience.  Make it in the build tree
8841 # simply because there is no reason to put it here, and in addition,
8842 # creating and moving files from /tmp can sometimes cause problems.
8843 # Create a temporary directory, and hook for its removal unless debugging.
8844 $debug ||
8845 {
8846   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8847   trap '{ (exit 1); exit 1; }' 1 2 13 15
8848 }
8849
8850 # Create a (secure) tmp directory for tmp files.
8851
8852 {
8853   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8854   test -n "$tmp" && test -d "$tmp"
8855 }  ||
8856 {
8857   tmp=./confstat$$-$RANDOM
8858   (umask 077 && mkdir $tmp)
8859 } ||
8860 {
8861    echo "$me: cannot create a temporary directory in ." >&2
8862    { (exit 1); exit 1; }
8863 }
8864
8865 _ACEOF
8866
8867 cat >>$CONFIG_STATUS <<_ACEOF
8868
8869 #
8870 # CONFIG_FILES section.
8871 #
8872
8873 # No need to generate the scripts if there are no CONFIG_FILES.
8874 # This happens for instance when ./config.status config.h
8875 if test -n "\$CONFIG_FILES"; then
8876   # Protect against being on the right side of a sed subst in config.status.
8877   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8878    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8879 s,@SHELL@,$SHELL,;t t
8880 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8881 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8882 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8883 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8884 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8885 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8886 s,@exec_prefix@,$exec_prefix,;t t
8887 s,@prefix@,$prefix,;t t
8888 s,@program_transform_name@,$program_transform_name,;t t
8889 s,@bindir@,$bindir,;t t
8890 s,@sbindir@,$sbindir,;t t
8891 s,@libexecdir@,$libexecdir,;t t
8892 s,@datadir@,$datadir,;t t
8893 s,@sysconfdir@,$sysconfdir,;t t
8894 s,@sharedstatedir@,$sharedstatedir,;t t
8895 s,@localstatedir@,$localstatedir,;t t
8896 s,@libdir@,$libdir,;t t
8897 s,@includedir@,$includedir,;t t
8898 s,@oldincludedir@,$oldincludedir,;t t
8899 s,@infodir@,$infodir,;t t
8900 s,@mandir@,$mandir,;t t
8901 s,@build_alias@,$build_alias,;t t
8902 s,@host_alias@,$host_alias,;t t
8903 s,@target_alias@,$target_alias,;t t
8904 s,@DEFS@,$DEFS,;t t
8905 s,@ECHO_C@,$ECHO_C,;t t
8906 s,@ECHO_N@,$ECHO_N,;t t
8907 s,@ECHO_T@,$ECHO_T,;t t
8908 s,@LIBS@,$LIBS,;t t
8909 s,@build@,$build,;t t
8910 s,@build_cpu@,$build_cpu,;t t
8911 s,@build_vendor@,$build_vendor,;t t
8912 s,@build_os@,$build_os,;t t
8913 s,@host@,$host,;t t
8914 s,@host_cpu@,$host_cpu,;t t
8915 s,@host_vendor@,$host_vendor,;t t
8916 s,@host_os@,$host_os,;t t
8917 s,@target@,$target,;t t
8918 s,@target_cpu@,$target_cpu,;t t
8919 s,@target_vendor@,$target_vendor,;t t
8920 s,@target_os@,$target_os,;t t
8921 s,@CC@,$CC,;t t
8922 s,@CFLAGS@,$CFLAGS,;t t
8923 s,@LDFLAGS@,$LDFLAGS,;t t
8924 s,@CPPFLAGS@,$CPPFLAGS,;t t
8925 s,@ac_ct_CC@,$ac_ct_CC,;t t
8926 s,@EXEEXT@,$EXEEXT,;t t
8927 s,@OBJEXT@,$OBJEXT,;t t
8928 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8929 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8930 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8931 s,@PACKAGE@,$PACKAGE,;t t
8932 s,@VERSION@,$VERSION,;t t
8933 s,@ACLOCAL@,$ACLOCAL,;t t
8934 s,@AUTOCONF@,$AUTOCONF,;t t
8935 s,@AUTOMAKE@,$AUTOMAKE,;t t
8936 s,@AUTOHEADER@,$AUTOHEADER,;t t
8937 s,@MAKEINFO@,$MAKEINFO,;t t
8938 s,@SET_MAKE@,$SET_MAKE,;t t
8939 s,@AR@,$AR,;t t
8940 s,@ac_ct_AR@,$ac_ct_AR,;t t
8941 s,@RANLIB@,$RANLIB,;t t
8942 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8943 s,@LN_S@,$LN_S,;t t
8944 s,@STRIP@,$STRIP,;t t
8945 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8946 s,@LIBTOOL@,$LIBTOOL,;t t
8947 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
8948 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8949 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8950 s,@MAINT@,$MAINT,;t t
8951 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
8952 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
8953 s,@bfdlibdir@,$bfdlibdir,;t t
8954 s,@bfdincludedir@,$bfdincludedir,;t t
8955 s,@CPP@,$CPP,;t t
8956 s,@EGREP@,$EGREP,;t t
8957 s,@ALLOCA@,$ALLOCA,;t t
8958 s,@USE_NLS@,$USE_NLS,;t t
8959 s,@MSGFMT@,$MSGFMT,;t t
8960 s,@GMSGFMT@,$GMSGFMT,;t t
8961 s,@XGETTEXT@,$XGETTEXT,;t t
8962 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
8963 s,@CATALOGS@,$CATALOGS,;t t
8964 s,@CATOBJEXT@,$CATOBJEXT,;t t
8965 s,@DATADIRNAME@,$DATADIRNAME,;t t
8966 s,@GMOFILES@,$GMOFILES,;t t
8967 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
8968 s,@INTLDEPS@,$INTLDEPS,;t t
8969 s,@INTLLIBS@,$INTLLIBS,;t t
8970 s,@INTLOBJS@,$INTLOBJS,;t t
8971 s,@POFILES@,$POFILES,;t t
8972 s,@POSUB@,$POSUB,;t t
8973 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
8974 s,@GT_NO@,$GT_NO,;t t
8975 s,@GT_YES@,$GT_YES,;t t
8976 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8977 s,@l@,$l,;t t
8978 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8979 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
8980 s,@HDEFINES@,$HDEFINES,;t t
8981 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
8982 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
8983 s,@cgendir@,$cgendir,;t t
8984 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
8985 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
8986 s,@archdefs@,$archdefs,;t t
8987 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
8988 s,@LIBOBJS@,$LIBOBJS,;t t
8989 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8990 CEOF
8991
8992 _ACEOF
8993
8994   cat >>$CONFIG_STATUS <<\_ACEOF
8995   # Split the substitutions into bite-sized pieces for seds with
8996   # small command number limits, like on Digital OSF/1 and HP-UX.
8997   ac_max_sed_lines=48
8998   ac_sed_frag=1 # Number of current file.
8999   ac_beg=1 # First line for current file.
9000   ac_end=$ac_max_sed_lines # Line after last line for current file.
9001   ac_more_lines=:
9002   ac_sed_cmds=
9003   while $ac_more_lines; do
9004     if test $ac_beg -gt 1; then
9005       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9006     else
9007       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9008     fi
9009     if test ! -s $tmp/subs.frag; then
9010       ac_more_lines=false
9011     else
9012       # The purpose of the label and of the branching condition is to
9013       # speed up the sed processing (if there are no `@' at all, there
9014       # is no need to browse any of the substitutions).
9015       # These are the two extra sed commands mentioned above.
9016       (echo ':t
9017   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9018       if test -z "$ac_sed_cmds"; then
9019         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9020       else
9021         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9022       fi
9023       ac_sed_frag=`expr $ac_sed_frag + 1`
9024       ac_beg=$ac_end
9025       ac_end=`expr $ac_end + $ac_max_sed_lines`
9026     fi
9027   done
9028   if test -z "$ac_sed_cmds"; then
9029     ac_sed_cmds=cat
9030   fi
9031 fi # test -n "$CONFIG_FILES"
9032
9033 _ACEOF
9034 cat >>$CONFIG_STATUS <<\_ACEOF
9035 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9036   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9037   case $ac_file in
9038   - | *:- | *:-:* ) # input from stdin
9039         cat >$tmp/stdin
9040         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9041         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9042   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9043         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9044   * )   ac_file_in=$ac_file.in ;;
9045   esac
9046
9047   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9048   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9050          X"$ac_file" : 'X\(//\)[^/]' \| \
9051          X"$ac_file" : 'X\(//\)$' \| \
9052          X"$ac_file" : 'X\(/\)' \| \
9053          .     : '\(.\)' 2>/dev/null ||
9054 echo X"$ac_file" |
9055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9057           /^X\(\/\/\)$/{ s//\1/; q; }
9058           /^X\(\/\).*/{ s//\1/; q; }
9059           s/.*/./; q'`
9060   { if $as_mkdir_p; then
9061     mkdir -p "$ac_dir"
9062   else
9063     as_dir="$ac_dir"
9064     as_dirs=
9065     while test ! -d "$as_dir"; do
9066       as_dirs="$as_dir $as_dirs"
9067       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9069          X"$as_dir" : 'X\(//\)[^/]' \| \
9070          X"$as_dir" : 'X\(//\)$' \| \
9071          X"$as_dir" : 'X\(/\)' \| \
9072          .     : '\(.\)' 2>/dev/null ||
9073 echo X"$as_dir" |
9074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9076           /^X\(\/\/\)$/{ s//\1/; q; }
9077           /^X\(\/\).*/{ s//\1/; q; }
9078           s/.*/./; q'`
9079     done
9080     test ! -n "$as_dirs" || mkdir $as_dirs
9081   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9083    { (exit 1); exit 1; }; }; }
9084
9085   ac_builddir=.
9086
9087 if test "$ac_dir" != .; then
9088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9089   # A "../" for each directory in $ac_dir_suffix.
9090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9091 else
9092   ac_dir_suffix= ac_top_builddir=
9093 fi
9094
9095 case $srcdir in
9096   .)  # No --srcdir option.  We are building in place.
9097     ac_srcdir=.
9098     if test -z "$ac_top_builddir"; then
9099        ac_top_srcdir=.
9100     else
9101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9102     fi ;;
9103   [\\/]* | ?:[\\/]* )  # Absolute path.
9104     ac_srcdir=$srcdir$ac_dir_suffix;
9105     ac_top_srcdir=$srcdir ;;
9106   *) # Relative path.
9107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9109 esac
9110
9111 # Do not use `cd foo && pwd` to compute absolute paths, because
9112 # the directories may not exist.
9113 case `pwd` in
9114 .) ac_abs_builddir="$ac_dir";;
9115 *)
9116   case "$ac_dir" in
9117   .) ac_abs_builddir=`pwd`;;
9118   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9119   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9120   esac;;
9121 esac
9122 case $ac_abs_builddir in
9123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9124 *)
9125   case ${ac_top_builddir}. in
9126   .) ac_abs_top_builddir=$ac_abs_builddir;;
9127   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9128   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9129   esac;;
9130 esac
9131 case $ac_abs_builddir in
9132 .) ac_abs_srcdir=$ac_srcdir;;
9133 *)
9134   case $ac_srcdir in
9135   .) ac_abs_srcdir=$ac_abs_builddir;;
9136   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9137   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9138   esac;;
9139 esac
9140 case $ac_abs_builddir in
9141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9142 *)
9143   case $ac_top_srcdir in
9144   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9145   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9146   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9147   esac;;
9148 esac
9149
9150
9151   case $INSTALL in
9152   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9153   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9154   esac
9155
9156   # Let's still pretend it is `configure' which instantiates (i.e., don't
9157   # use $as_me), people would be surprised to read:
9158   #    /* config.h.  Generated by config.status.  */
9159   if test x"$ac_file" = x-; then
9160     configure_input=
9161   else
9162     configure_input="$ac_file.  "
9163   fi
9164   configure_input=$configure_input"Generated from `echo $ac_file_in |
9165                                      sed 's,.*/,,'` by configure."
9166
9167   # First look for the input files in the build tree, otherwise in the
9168   # src tree.
9169   ac_file_inputs=`IFS=:
9170     for f in $ac_file_in; do
9171       case $f in
9172       -) echo $tmp/stdin ;;
9173       [\\/$]*)
9174          # Absolute (can't be DOS-style, as IFS=:)
9175          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9176 echo "$as_me: error: cannot find input file: $f" >&2;}
9177    { (exit 1); exit 1; }; }
9178          echo "$f";;
9179       *) # Relative
9180          if test -f "$f"; then
9181            # Build tree
9182            echo "$f"
9183          elif test -f "$srcdir/$f"; then
9184            # Source tree
9185            echo "$srcdir/$f"
9186          else
9187            # /dev/null tree
9188            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9189 echo "$as_me: error: cannot find input file: $f" >&2;}
9190    { (exit 1); exit 1; }; }
9191          fi;;
9192       esac
9193     done` || { (exit 1); exit 1; }
9194
9195   if test x"$ac_file" != x-; then
9196     { echo "$as_me:$LINENO: creating $ac_file" >&5
9197 echo "$as_me: creating $ac_file" >&6;}
9198     rm -f "$ac_file"
9199   fi
9200 _ACEOF
9201 cat >>$CONFIG_STATUS <<_ACEOF
9202   sed "$ac_vpsub
9203 $extrasub
9204 _ACEOF
9205 cat >>$CONFIG_STATUS <<\_ACEOF
9206 :t
9207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9208 s,@configure_input@,$configure_input,;t t
9209 s,@srcdir@,$ac_srcdir,;t t
9210 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9211 s,@top_srcdir@,$ac_top_srcdir,;t t
9212 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9213 s,@builddir@,$ac_builddir,;t t
9214 s,@abs_builddir@,$ac_abs_builddir,;t t
9215 s,@top_builddir@,$ac_top_builddir,;t t
9216 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9217 s,@INSTALL@,$ac_INSTALL,;t t
9218 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9219   rm -f $tmp/stdin
9220   if test x"$ac_file" != x-; then
9221     mv $tmp/out $ac_file
9222   else
9223     cat $tmp/out
9224     rm -f $tmp/out
9225   fi
9226
9227 done
9228 _ACEOF
9229 cat >>$CONFIG_STATUS <<\_ACEOF
9230
9231 #
9232 # CONFIG_HEADER section.
9233 #
9234
9235 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9236 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9237 #
9238 # ac_d sets the value in "#define NAME VALUE" lines.
9239 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
9240 ac_dB='[         ].*$,\1#\2'
9241 ac_dC=' '
9242 ac_dD=',;t'
9243 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9244 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
9245 ac_uB='$,\1#\2define\3'
9246 ac_uC=' '
9247 ac_uD=',;t'
9248
9249 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9250   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9251   case $ac_file in
9252   - | *:- | *:-:* ) # input from stdin
9253         cat >$tmp/stdin
9254         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9255         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9256   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9257         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9258   * )   ac_file_in=$ac_file.in ;;
9259   esac
9260
9261   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9262 echo "$as_me: creating $ac_file" >&6;}
9263
9264   # First look for the input files in the build tree, otherwise in the
9265   # src tree.
9266   ac_file_inputs=`IFS=:
9267     for f in $ac_file_in; do
9268       case $f in
9269       -) echo $tmp/stdin ;;
9270       [\\/$]*)
9271          # Absolute (can't be DOS-style, as IFS=:)
9272          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9273 echo "$as_me: error: cannot find input file: $f" >&2;}
9274    { (exit 1); exit 1; }; }
9275          # Do quote $f, to prevent DOS paths from being IFS'd.
9276          echo "$f";;
9277       *) # Relative
9278          if test -f "$f"; then
9279            # Build tree
9280            echo "$f"
9281          elif test -f "$srcdir/$f"; then
9282            # Source tree
9283            echo "$srcdir/$f"
9284          else
9285            # /dev/null tree
9286            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9287 echo "$as_me: error: cannot find input file: $f" >&2;}
9288    { (exit 1); exit 1; }; }
9289          fi;;
9290       esac
9291     done` || { (exit 1); exit 1; }
9292   # Remove the trailing spaces.
9293   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9294
9295 _ACEOF
9296
9297 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9298 # `conftest.undefs', that substitutes the proper values into
9299 # config.h.in to produce config.h.  The first handles `#define'
9300 # templates, and the second `#undef' templates.
9301 # And first: Protect against being on the right side of a sed subst in
9302 # config.status.  Protect against being in an unquoted here document
9303 # in config.status.
9304 rm -f conftest.defines conftest.undefs
9305 # Using a here document instead of a string reduces the quoting nightmare.
9306 # Putting comments in sed scripts is not portable.
9307 #
9308 # `end' is used to avoid that the second main sed command (meant for
9309 # 0-ary CPP macros) applies to n-ary macro definitions.
9310 # See the Autoconf documentation for `clear'.
9311 cat >confdef2sed.sed <<\_ACEOF
9312 s/[\\&,]/\\&/g
9313 s,[\\$`],\\&,g
9314 t clear
9315 : clear
9316 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9317 t end
9318 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9319 : end
9320 _ACEOF
9321 # If some macros were called several times there might be several times
9322 # the same #defines, which is useless.  Nevertheless, we may not want to
9323 # sort them, since we want the *last* AC-DEFINE to be honored.
9324 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9325 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9326 rm -f confdef2sed.sed
9327
9328 # This sed command replaces #undef with comments.  This is necessary, for
9329 # example, in the case of _POSIX_SOURCE, which is predefined and required
9330 # on some systems where configure will not decide to define it.
9331 cat >>conftest.undefs <<\_ACEOF
9332 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9333 _ACEOF
9334
9335 # Break up conftest.defines because some shells have a limit on the size
9336 # of here documents, and old seds have small limits too (100 cmds).
9337 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9338 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9339 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9340 echo '  :' >>$CONFIG_STATUS
9341 rm -f conftest.tail
9342 while grep . conftest.defines >/dev/null
9343 do
9344   # Write a limited-size here document to $tmp/defines.sed.
9345   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9346   # Speed up: don't consider the non `#define' lines.
9347   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9348   # Work around the forget-to-reset-the-flag bug.
9349   echo 't clr' >>$CONFIG_STATUS
9350   echo ': clr' >>$CONFIG_STATUS
9351   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9352   echo 'CEOF
9353   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9354   rm -f $tmp/in
9355   mv $tmp/out $tmp/in
9356 ' >>$CONFIG_STATUS
9357   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9358   rm -f conftest.defines
9359   mv conftest.tail conftest.defines
9360 done
9361 rm -f conftest.defines
9362 echo '  fi # grep' >>$CONFIG_STATUS
9363 echo >>$CONFIG_STATUS
9364
9365 # Break up conftest.undefs because some shells have a limit on the size
9366 # of here documents, and old seds have small limits too (100 cmds).
9367 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9368 rm -f conftest.tail
9369 while grep . conftest.undefs >/dev/null
9370 do
9371   # Write a limited-size here document to $tmp/undefs.sed.
9372   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9373   # Speed up: don't consider the non `#undef'
9374   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9375   # Work around the forget-to-reset-the-flag bug.
9376   echo 't clr' >>$CONFIG_STATUS
9377   echo ': clr' >>$CONFIG_STATUS
9378   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9379   echo 'CEOF
9380   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9381   rm -f $tmp/in
9382   mv $tmp/out $tmp/in
9383 ' >>$CONFIG_STATUS
9384   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9385   rm -f conftest.undefs
9386   mv conftest.tail conftest.undefs
9387 done
9388 rm -f conftest.undefs
9389
9390 cat >>$CONFIG_STATUS <<\_ACEOF
9391   # Let's still pretend it is `configure' which instantiates (i.e., don't
9392   # use $as_me), people would be surprised to read:
9393   #    /* config.h.  Generated by config.status.  */
9394   if test x"$ac_file" = x-; then
9395     echo "/* Generated by configure.  */" >$tmp/config.h
9396   else
9397     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9398   fi
9399   cat $tmp/in >>$tmp/config.h
9400   rm -f $tmp/in
9401   if test x"$ac_file" != x-; then
9402     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9403       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9404 echo "$as_me: $ac_file is unchanged" >&6;}
9405     else
9406       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9407 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9408          X"$ac_file" : 'X\(//\)[^/]' \| \
9409          X"$ac_file" : 'X\(//\)$' \| \
9410          X"$ac_file" : 'X\(/\)' \| \
9411          .     : '\(.\)' 2>/dev/null ||
9412 echo X"$ac_file" |
9413     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9414           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9415           /^X\(\/\/\)$/{ s//\1/; q; }
9416           /^X\(\/\).*/{ s//\1/; q; }
9417           s/.*/./; q'`
9418       { if $as_mkdir_p; then
9419     mkdir -p "$ac_dir"
9420   else
9421     as_dir="$ac_dir"
9422     as_dirs=
9423     while test ! -d "$as_dir"; do
9424       as_dirs="$as_dir $as_dirs"
9425       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9427          X"$as_dir" : 'X\(//\)[^/]' \| \
9428          X"$as_dir" : 'X\(//\)$' \| \
9429          X"$as_dir" : 'X\(/\)' \| \
9430          .     : '\(.\)' 2>/dev/null ||
9431 echo X"$as_dir" |
9432     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9433           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9434           /^X\(\/\/\)$/{ s//\1/; q; }
9435           /^X\(\/\).*/{ s//\1/; q; }
9436           s/.*/./; q'`
9437     done
9438     test ! -n "$as_dirs" || mkdir $as_dirs
9439   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9440 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9441    { (exit 1); exit 1; }; }; }
9442
9443       rm -f $ac_file
9444       mv $tmp/config.h $ac_file
9445     fi
9446   else
9447     cat $tmp/config.h
9448     rm -f $tmp/config.h
9449   fi
9450 done
9451 _ACEOF
9452 cat >>$CONFIG_STATUS <<\_ACEOF
9453
9454 #
9455 # CONFIG_COMMANDS section.
9456 #
9457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9458   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9459   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9460   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9461 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9462          X"$ac_dest" : 'X\(//\)[^/]' \| \
9463          X"$ac_dest" : 'X\(//\)$' \| \
9464          X"$ac_dest" : 'X\(/\)' \| \
9465          .     : '\(.\)' 2>/dev/null ||
9466 echo X"$ac_dest" |
9467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9468           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9469           /^X\(\/\/\)$/{ s//\1/; q; }
9470           /^X\(\/\).*/{ s//\1/; q; }
9471           s/.*/./; q'`
9472   { if $as_mkdir_p; then
9473     mkdir -p "$ac_dir"
9474   else
9475     as_dir="$ac_dir"
9476     as_dirs=
9477     while test ! -d "$as_dir"; do
9478       as_dirs="$as_dir $as_dirs"
9479       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9481          X"$as_dir" : 'X\(//\)[^/]' \| \
9482          X"$as_dir" : 'X\(//\)$' \| \
9483          X"$as_dir" : 'X\(/\)' \| \
9484          .     : '\(.\)' 2>/dev/null ||
9485 echo X"$as_dir" |
9486     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9487           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9488           /^X\(\/\/\)$/{ s//\1/; q; }
9489           /^X\(\/\).*/{ s//\1/; q; }
9490           s/.*/./; q'`
9491     done
9492     test ! -n "$as_dirs" || mkdir $as_dirs
9493   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9494 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9495    { (exit 1); exit 1; }; }; }
9496
9497   ac_builddir=.
9498
9499 if test "$ac_dir" != .; then
9500   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9501   # A "../" for each directory in $ac_dir_suffix.
9502   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9503 else
9504   ac_dir_suffix= ac_top_builddir=
9505 fi
9506
9507 case $srcdir in
9508   .)  # No --srcdir option.  We are building in place.
9509     ac_srcdir=.
9510     if test -z "$ac_top_builddir"; then
9511        ac_top_srcdir=.
9512     else
9513        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9514     fi ;;
9515   [\\/]* | ?:[\\/]* )  # Absolute path.
9516     ac_srcdir=$srcdir$ac_dir_suffix;
9517     ac_top_srcdir=$srcdir ;;
9518   *) # Relative path.
9519     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9520     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9521 esac
9522
9523 # Do not use `cd foo && pwd` to compute absolute paths, because
9524 # the directories may not exist.
9525 case `pwd` in
9526 .) ac_abs_builddir="$ac_dir";;
9527 *)
9528   case "$ac_dir" in
9529   .) ac_abs_builddir=`pwd`;;
9530   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9531   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9532   esac;;
9533 esac
9534 case $ac_abs_builddir in
9535 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9536 *)
9537   case ${ac_top_builddir}. in
9538   .) ac_abs_top_builddir=$ac_abs_builddir;;
9539   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9540   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9541   esac;;
9542 esac
9543 case $ac_abs_builddir in
9544 .) ac_abs_srcdir=$ac_srcdir;;
9545 *)
9546   case $ac_srcdir in
9547   .) ac_abs_srcdir=$ac_abs_builddir;;
9548   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9549   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9550   esac;;
9551 esac
9552 case $ac_abs_builddir in
9553 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9554 *)
9555   case $ac_top_srcdir in
9556   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9557   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9558   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9559   esac;;
9560 esac
9561
9562
9563   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9564 echo "$as_me: executing $ac_dest commands" >&6;}
9565   case $ac_dest in
9566     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
9567     default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
9568   esac
9569 done
9570 _ACEOF
9571
9572 cat >>$CONFIG_STATUS <<\_ACEOF
9573
9574 { (exit 0); exit 0; }
9575 _ACEOF
9576 chmod +x $CONFIG_STATUS
9577 ac_clean_files=$ac_clean_files_save
9578
9579
9580 # configure is writing to config.log, and then calls config.status.
9581 # config.status does its own redirection, appending to config.log.
9582 # Unfortunately, on DOS this fails, as config.log is still kept open
9583 # by configure, so config.status won't be able to write to it; its
9584 # output is simply discarded.  So we exec the FD to /dev/null,
9585 # effectively closing config.log, so it can be properly (re)opened and
9586 # appended to by config.status.  When coming back to configure, we
9587 # need to make the FD available again.
9588 if test "$no_create" != yes; then
9589   ac_cs_success=:
9590   ac_config_status_args=
9591   test "$silent" = yes &&
9592     ac_config_status_args="$ac_config_status_args --quiet"
9593   exec 5>/dev/null
9594   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9595   exec 5>>config.log
9596   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9597   # would make configure fail if this is the last instruction.
9598   $ac_cs_success || { (exit 1); exit 1; }
9599 fi
9600