New translation: Kinyarwanda
[external/binutils.git] / bfd / 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="libbfd.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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical 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 HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842   --target=TARGET   configure for building compilers for TARGET [HOST]
843 _ACEOF
844 fi
845
846 if test -n "$ac_init_help"; then
847
848   cat <<\_ACEOF
849
850 Optional Features:
851   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
852   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
853   --disable-dependency-tracking  speeds up one-time build
854   --enable-dependency-tracking   do not reject slow dependency extractors
855   --enable-shared=PKGS  build shared libraries default=no
856   --enable-static=PKGS  build static libraries default=yes
857   --enable-fast-install=PKGS  optimize for fast installation default=yes
858   --disable-libtool-lock  avoid locking (might break parallel builds)
859   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
860   --enable-targets        alternative target configurations
861   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
862   --enable-werror    treat compile warnings as errors
863   --enable-build-warnings Enable build-time compiler warnings if gcc is used
864   --enable-maintainer-mode  enable make rules and dependencies not useful
865                           (and sometimes confusing) to the casual installer
866   --enable-install-libbfd controls installation of libbfd and related headers
867   --disable-nls           do not use Native Language Support
868
869 Optional Packages:
870   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
871   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
872   --with-gnu-ld           assume the C compiler uses GNU ld default=no
873   --with-pic              try to use only PIC/non-PIC objects default=use both
874   --with-mmap             try using mmap for BFD input files if available
875   --with-included-gettext use the GNU gettext library included here
876
877 Some influential environment variables:
878   CC          C compiler command
879   CFLAGS      C compiler flags
880   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
881               nonstandard directory <lib dir>
882   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
883               headers in a nonstandard directory <include dir>
884   CPP         C preprocessor
885
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
888
889 _ACEOF
890 fi
891
892 if test "$ac_init_help" = "recursive"; then
893   # If there are subdirs, report their specific --help.
894   ac_popdir=`pwd`
895   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896     test -d $ac_dir || continue
897     ac_builddir=.
898
899 if test "$ac_dir" != .; then
900   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901   # A "../" for each directory in $ac_dir_suffix.
902   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903 else
904   ac_dir_suffix= ac_top_builddir=
905 fi
906
907 case $srcdir in
908   .)  # No --srcdir option.  We are building in place.
909     ac_srcdir=.
910     if test -z "$ac_top_builddir"; then
911        ac_top_srcdir=.
912     else
913        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914     fi ;;
915   [\\/]* | ?:[\\/]* )  # Absolute path.
916     ac_srcdir=$srcdir$ac_dir_suffix;
917     ac_top_srcdir=$srcdir ;;
918   *) # Relative path.
919     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920     ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 esac
922
923 # Do not use `cd foo && pwd` to compute absolute paths, because
924 # the directories may not exist.
925 case `pwd` in
926 .) ac_abs_builddir="$ac_dir";;
927 *)
928   case "$ac_dir" in
929   .) ac_abs_builddir=`pwd`;;
930   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931   *) ac_abs_builddir=`pwd`/"$ac_dir";;
932   esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *)
937   case ${ac_top_builddir}. in
938   .) ac_abs_top_builddir=$ac_abs_builddir;;
939   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941   esac;;
942 esac
943 case $ac_abs_builddir in
944 .) ac_abs_srcdir=$ac_srcdir;;
945 *)
946   case $ac_srcdir in
947   .) ac_abs_srcdir=$ac_abs_builddir;;
948   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950   esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *)
955   case $ac_top_srcdir in
956   .) ac_abs_top_srcdir=$ac_abs_builddir;;
957   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959   esac;;
960 esac
961
962     cd $ac_dir
963     # Check for guested configure; otherwise get Cygnus style configure.
964     if test -f $ac_srcdir/configure.gnu; then
965       echo
966       $SHELL $ac_srcdir/configure.gnu  --help=recursive
967     elif test -f $ac_srcdir/configure; then
968       echo
969       $SHELL $ac_srcdir/configure  --help=recursive
970     elif test -f $ac_srcdir/configure.ac ||
971            test -f $ac_srcdir/configure.in; then
972       echo
973       $ac_configure --help
974     else
975       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976     fi
977     cd $ac_popdir
978   done
979 fi
980
981 test -n "$ac_init_help" && exit 0
982 if $ac_init_version; then
983   cat <<\_ACEOF
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989   exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by $as_me, which was
997 generated by GNU Autoconf 2.59.  Invocation command line was
998
999   $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1016
1017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030   IFS=$as_save_IFS
1031   test -z "$as_dir" && as_dir=.
1032   echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059   for ac_arg
1060   do
1061     case $ac_arg in
1062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064     | -silent | --silent | --silen | --sile | --sil)
1065       continue ;;
1066     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068     esac
1069     case $ac_pass in
1070     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071     2)
1072       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073       if test $ac_must_keep_next = true; then
1074         ac_must_keep_next=false # Got value, back to normal.
1075       else
1076         case $ac_arg in
1077           *=* | --config-cache | -C | -disable-* | --disable-* \
1078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080           | -with-* | --with-* | -without-* | --without-* | --x)
1081             case "$ac_configure_args0 " in
1082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083             esac
1084             ;;
1085           -* ) ac_must_keep_next=true ;;
1086         esac
1087       fi
1088       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089       # Get rid of the leading space.
1090       ac_sep=" "
1091       ;;
1092     esac
1093   done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log.  We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104   # Save into config.log some information that might help in debugging.
1105   {
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113     echo
1114     # The following way of writing the cache mishandles newlines in values,
1115 {
1116   (set) 2>&1 |
1117     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118     *ac_space=\ *)
1119       sed -n \
1120         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122       ;;
1123     *)
1124       sed -n \
1125         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126       ;;
1127     esac;
1128 }
1129     echo
1130
1131     cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136     echo
1137     for ac_var in $ac_subst_vars
1138     do
1139       eval ac_val=$`echo $ac_var`
1140       echo "$ac_var='"'"'$ac_val'"'"'"
1141     done | sort
1142     echo
1143
1144     if test -n "$ac_subst_files"; then
1145       cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150       echo
1151       for ac_var in $ac_subst_files
1152       do
1153         eval ac_val=$`echo $ac_var`
1154         echo "$ac_var='"'"'$ac_val'"'"'"
1155       done | sort
1156       echo
1157     fi
1158
1159     if test -s confdefs.h; then
1160       cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165       echo
1166       sed "/^$/d" confdefs.h | sort
1167       echo
1168     fi
1169     test "$ac_signal" != 0 &&
1170       echo "$as_me: caught signal $ac_signal"
1171     echo "$as_me: exit $exit_status"
1172   } >&5
1173   rm -f core *.core &&
1174   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175     exit $exit_status
1176      ' 0
1177 for ac_signal in 1 2 13 15; do
1178   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217   if test "x$prefix" != xNONE; then
1218     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219   else
1220     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221   fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224   if test -r "$ac_site_file"; then
1225     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227     sed 's/^/| /' "$ac_site_file" >&5
1228     . "$ac_site_file"
1229   fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233   # Some versions of bash will fail to source /dev/null (special
1234   # files actually), so we avoid doing that.
1235   if test -f "$cache_file"; then
1236     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238     case $cache_file in
1239       [\\/]* | ?:[\\/]* ) . $cache_file;;
1240       *)                      . ./$cache_file;;
1241     esac
1242   fi
1243 else
1244   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246   >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255   eval ac_new_set=\$ac_env_${ac_var}_set
1256   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257   eval ac_new_val="\$ac_env_${ac_var}_value"
1258   case $ac_old_set,$ac_new_set in
1259     set,)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,set)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,);;
1268     *)
1269       if test "x$ac_old_val" != "x$ac_new_val"; then
1270         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1273 echo "$as_me:   former value:  $ac_old_val" >&2;}
1274         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1275 echo "$as_me:   current value: $ac_new_val" >&2;}
1276         ac_cache_corrupted=:
1277       fi;;
1278   esac
1279   # Pass precious variables to config.status.
1280   if test "$ac_new_set" = set; then
1281     case $ac_new_val in
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     *) ac_arg=$ac_var=$ac_new_val ;;
1285     esac
1286     case " $ac_configure_args " in
1287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1288       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289     esac
1290   fi
1291 done
1292 if $ac_cache_corrupted; then
1293   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326 ac_aux_dir=
1327 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328   if 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/install.sh; then
1333     ac_aux_dir=$ac_dir
1334     ac_install_sh="$ac_aux_dir/install.sh -c"
1335     break
1336   elif test -f $ac_dir/shtool; then
1337     ac_aux_dir=$ac_dir
1338     ac_install_sh="$ac_aux_dir/shtool install -c"
1339     break
1340   fi
1341 done
1342 if test -z "$ac_aux_dir"; then
1343   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345    { (exit 1); exit 1; }; }
1346 fi
1347 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351 # Make sure we can run config.sub.
1352 $ac_config_sub sun4 >/dev/null 2>&1 ||
1353   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355    { (exit 1); exit 1; }; }
1356
1357 echo "$as_me:$LINENO: checking build system type" >&5
1358 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359 if test "${ac_cv_build+set}" = set; then
1360   echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362   ac_cv_build_alias=$build_alias
1363 test -z "$ac_cv_build_alias" &&
1364   ac_cv_build_alias=`$ac_config_guess`
1365 test -z "$ac_cv_build_alias" &&
1366   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368    { (exit 1); exit 1; }; }
1369 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372    { (exit 1); exit 1; }; }
1373
1374 fi
1375 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376 echo "${ECHO_T}$ac_cv_build" >&6
1377 build=$ac_cv_build
1378 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383 echo "$as_me:$LINENO: checking host system type" >&5
1384 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385 if test "${ac_cv_host+set}" = set; then
1386   echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388   ac_cv_host_alias=$host_alias
1389 test -z "$ac_cv_host_alias" &&
1390   ac_cv_host_alias=$ac_cv_build_alias
1391 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 fi
1397 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398 echo "${ECHO_T}$ac_cv_host" >&6
1399 host=$ac_cv_host
1400 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405 echo "$as_me:$LINENO: checking target system type" >&5
1406 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407 if test "${ac_cv_target+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   ac_cv_target_alias=$target_alias
1411 test "x$ac_cv_target_alias" = "x" &&
1412   ac_cv_target_alias=$ac_cv_host_alias
1413 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420 echo "${ECHO_T}$ac_cv_target" >&6
1421 target=$ac_cv_target
1422 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427 # The aliases save the names the user supplied, while $host etc.
1428 # will get canonicalized.
1429 test -n "$target_alias" &&
1430   test "$program_prefix$program_suffix$program_transform_name" = \
1431     NONENONEs,x,x, &&
1432   program_prefix=${target_alias}-
1433 ac_ext=c
1434 ac_cpp='$CPP $CPPFLAGS'
1435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438 if test -n "$ac_tool_prefix"; then
1439   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_CC+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$CC"; then
1447   ac_cv_prog_CC="$CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452   IFS=$as_save_IFS
1453   test -z "$as_dir" && as_dir=.
1454   for ac_exec_ext in '' $ac_executable_extensions; do
1455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458     break 2
1459   fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 CC=$ac_cv_prog_CC
1466 if test -n "$CC"; then
1467   echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474 fi
1475 if test -z "$ac_cv_prog_CC"; then
1476   ac_ct_CC=$CC
1477   # Extract the first word of "gcc", so it can be a program name with args.
1478 set dummy gcc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   if test -n "$ac_ct_CC"; then
1485   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490   IFS=$as_save_IFS
1491   test -z "$as_dir" && as_dir=.
1492   for ac_exec_ext in '' $ac_executable_extensions; do
1493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494     ac_cv_prog_ac_ct_CC="gcc"
1495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496     break 2
1497   fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504 if test -n "$ac_ct_CC"; then
1505   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506 echo "${ECHO_T}$ac_ct_CC" >&6
1507 else
1508   echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512   CC=$ac_ct_CC
1513 else
1514   CC="$ac_cv_prog_CC"
1515 fi
1516
1517 if test -z "$CC"; then
1518   if test -n "$ac_tool_prefix"; then
1519   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520 set dummy ${ac_tool_prefix}cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_CC+set}" = set; then
1524   echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526   if test -n "$CC"; then
1527   ac_cv_prog_CC="$CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532   IFS=$as_save_IFS
1533   test -z "$as_dir" && as_dir=.
1534   for ac_exec_ext in '' $ac_executable_extensions; do
1535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536     ac_cv_prog_CC="${ac_tool_prefix}cc"
1537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538     break 2
1539   fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 CC=$ac_cv_prog_CC
1546 if test -n "$CC"; then
1547   echo "$as_me:$LINENO: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1549 else
1550   echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554 fi
1555 if test -z "$ac_cv_prog_CC"; then
1556   ac_ct_CC=$CC
1557   # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   if test -n "$ac_ct_CC"; then
1565   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 else
1567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568 for as_dir in $PATH
1569 do
1570   IFS=$as_save_IFS
1571   test -z "$as_dir" && as_dir=.
1572   for ac_exec_ext in '' $ac_executable_extensions; do
1573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574     ac_cv_prog_ac_ct_CC="cc"
1575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576     break 2
1577   fi
1578 done
1579 done
1580
1581 fi
1582 fi
1583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584 if test -n "$ac_ct_CC"; then
1585   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586 echo "${ECHO_T}$ac_ct_CC" >&6
1587 else
1588   echo "$as_me:$LINENO: result: no" >&5
1589 echo "${ECHO_T}no" >&6
1590 fi
1591
1592   CC=$ac_ct_CC
1593 else
1594   CC="$ac_cv_prog_CC"
1595 fi
1596
1597 fi
1598 if test -z "$CC"; then
1599   # Extract the first word of "cc", so it can be a program name with args.
1600 set dummy cc; ac_word=$2
1601 echo "$as_me:$LINENO: checking for $ac_word" >&5
1602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603 if test "${ac_cv_prog_CC+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   if test -n "$CC"; then
1607   ac_cv_prog_CC="$CC" # Let the user override the test.
1608 else
1609   ac_prog_rejected=no
1610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 for as_dir in $PATH
1612 do
1613   IFS=$as_save_IFS
1614   test -z "$as_dir" && as_dir=.
1615   for ac_exec_ext in '' $ac_executable_extensions; do
1616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618        ac_prog_rejected=yes
1619        continue
1620      fi
1621     ac_cv_prog_CC="cc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 if test $ac_prog_rejected = yes; then
1629   # We found a bogon in the path, so make sure we never use it.
1630   set dummy $ac_cv_prog_CC
1631   shift
1632   if test $# != 0; then
1633     # We chose a different compiler from the bogus one.
1634     # However, it has the same basename, so the bogon will be chosen
1635     # first if we set CC to just the basename; use the full file name.
1636     shift
1637     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638   fi
1639 fi
1640 fi
1641 fi
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644   echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$CC"; then
1653   if test -n "$ac_tool_prefix"; then
1654   for ac_prog in cl
1655   do
1656     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$CC"; then
1664   ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 CC=$ac_cv_prog_CC
1683 if test -n "$CC"; then
1684   echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691     test -n "$CC" && break
1692   done
1693 fi
1694 if test -z "$CC"; then
1695   ac_ct_CC=$CC
1696   for ac_prog in cl
1697 do
1698   # Extract the first word of "$ac_prog", so it can be a program name with args.
1699 set dummy $ac_prog; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$ac_ct_CC"; then
1706   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707 else
1708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
1712   test -z "$as_dir" && as_dir=.
1713   for ac_exec_ext in '' $ac_executable_extensions; do
1714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715     ac_cv_prog_ac_ct_CC="$ac_prog"
1716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717     break 2
1718   fi
1719 done
1720 done
1721
1722 fi
1723 fi
1724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725 if test -n "$ac_ct_CC"; then
1726   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727 echo "${ECHO_T}$ac_ct_CC" >&6
1728 else
1729   echo "$as_me:$LINENO: result: no" >&5
1730 echo "${ECHO_T}no" >&6
1731 fi
1732
1733   test -n "$ac_ct_CC" && break
1734 done
1735
1736   CC=$ac_ct_CC
1737 fi
1738
1739 fi
1740
1741
1742 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743 See \`config.log' for more details." >&5
1744 echo "$as_me: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&2;}
1746    { (exit 1); exit 1; }; }
1747
1748 # Provide some information about the compiler.
1749 echo "$as_me:$LINENO:" \
1750      "checking for C compiler version" >&5
1751 ac_compiler=`set X $ac_compile; echo $2`
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753   (eval $ac_compiler --version </dev/null >&5) 2>&5
1754   ac_status=$?
1755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756   (exit $ac_status); }
1757 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758   (eval $ac_compiler -v </dev/null >&5) 2>&5
1759   ac_status=$?
1760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761   (exit $ac_status); }
1762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763   (eval $ac_compiler -V </dev/null >&5) 2>&5
1764   ac_status=$?
1765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766   (exit $ac_status); }
1767
1768 cat >conftest.$ac_ext <<_ACEOF
1769 /* confdefs.h.  */
1770 _ACEOF
1771 cat confdefs.h >>conftest.$ac_ext
1772 cat >>conftest.$ac_ext <<_ACEOF
1773 /* end confdefs.h.  */
1774
1775 int
1776 main ()
1777 {
1778
1779   ;
1780   return 0;
1781 }
1782 _ACEOF
1783 ac_clean_files_save=$ac_clean_files
1784 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785 # Try to create an executable without -o first, disregard a.out.
1786 # It will help us diagnose broken compilers, and finding out an intuition
1787 # of exeext.
1788 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792   (eval $ac_link_default) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }; then
1796   # Find the output, starting from the most likely.  This scheme is
1797 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798 # resort.
1799
1800 # Be careful to initialize this variable, since it used to be cached.
1801 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802 ac_cv_exeext=
1803 # b.out is created by i960 compilers.
1804 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805 do
1806   test -f "$ac_file" || continue
1807   case $ac_file in
1808     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809         ;;
1810     conftest.$ac_ext )
1811         # This is the source file.
1812         ;;
1813     [ab].out )
1814         # We found the default executable, but exeext='' is most
1815         # certainly right.
1816         break;;
1817     *.* )
1818         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819         # FIXME: I believe we export ac_cv_exeext for Libtool,
1820         # but it would be cool to find out if it's true.  Does anybody
1821         # maintain Libtool? --akim.
1822         export ac_cv_exeext
1823         break;;
1824     * )
1825         break;;
1826   esac
1827 done
1828 else
1829   echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&2;}
1836    { (exit 77); exit 77; }; }
1837 fi
1838
1839 ac_exeext=$ac_cv_exeext
1840 echo "$as_me:$LINENO: result: $ac_file" >&5
1841 echo "${ECHO_T}$ac_file" >&6
1842
1843 # Check the compiler produces executables we can run.  If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848 # If not cross compiling, check that we can run a simple program.
1849 if test "$cross_compiling" != yes; then
1850   if { ac_try='./$ac_file'
1851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852   (eval $ac_try) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }; }; then
1856     cross_compiling=no
1857   else
1858     if test "$cross_compiling" = maybe; then
1859         cross_compiling=yes
1860     else
1861         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&5
1864 echo "$as_me: error: cannot run C compiled programs.
1865 If you meant to cross compile, use \`--host'.
1866 See \`config.log' for more details." >&2;}
1867    { (exit 1); exit 1; }; }
1868     fi
1869   fi
1870 fi
1871 echo "$as_me:$LINENO: result: yes" >&5
1872 echo "${ECHO_T}yes" >&6
1873
1874 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875 ac_clean_files=$ac_clean_files_save
1876 # Check the compiler produces executables we can run.  If not, either
1877 # the compiler is broken, or we cross compile.
1878 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881 echo "${ECHO_T}$cross_compiling" >&6
1882
1883 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886   (eval $ac_link) 2>&5
1887   ac_status=$?
1888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889   (exit $ac_status); }; then
1890   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1892 # work properly (i.e., refer to `conftest.exe'), while it won't with
1893 # `rm'.
1894 for ac_file in conftest.exe conftest conftest.*; do
1895   test -f "$ac_file" || continue
1896   case $ac_file in
1897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899           export ac_cv_exeext
1900           break;;
1901     * ) break;;
1902   esac
1903 done
1904 else
1905   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906 See \`config.log' for more details." >&5
1907 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912 rm -f conftest$ac_cv_exeext
1913 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914 echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916 rm -f conftest.$ac_ext
1917 EXEEXT=$ac_cv_exeext
1918 ac_exeext=$EXEEXT
1919 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921 if test "${ac_cv_objext+set}" = set; then
1922   echo $ECHO_N "(cached) $ECHO_C" >&6
1923 else
1924   cat >conftest.$ac_ext <<_ACEOF
1925 /* confdefs.h.  */
1926 _ACEOF
1927 cat confdefs.h >>conftest.$ac_ext
1928 cat >>conftest.$ac_ext <<_ACEOF
1929 /* end confdefs.h.  */
1930
1931 int
1932 main ()
1933 {
1934
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 rm -f conftest.o conftest.obj
1940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941   (eval $ac_compile) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }; then
1945   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946   case $ac_file in
1947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949        break;;
1950   esac
1951 done
1952 else
1953   echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 fi
1965 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966 echo "${ECHO_T}$ac_cv_objext" >&6
1967 OBJEXT=$ac_cv_objext
1968 ac_objext=$OBJEXT
1969 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   cat >conftest.$ac_ext <<_ACEOF
1975 /* confdefs.h.  */
1976 _ACEOF
1977 cat confdefs.h >>conftest.$ac_ext
1978 cat >>conftest.$ac_ext <<_ACEOF
1979 /* end confdefs.h.  */
1980
1981 int
1982 main ()
1983 {
1984 #ifndef __GNUC__
1985        choke me
1986 #endif
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 rm -f conftest.$ac_objext
1993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994   (eval $ac_compile) 2>conftest.er1
1995   ac_status=$?
1996   grep -v '^ *+' conftest.er1 >conftest.err
1997   rm -f conftest.er1
1998   cat conftest.err >&5
1999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000   (exit $ac_status); } &&
2001          { ac_try='test -z "$ac_c_werror_flag"
2002                          || test ! -s conftest.err'
2003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004   (eval $ac_try) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }; } &&
2008          { ac_try='test -s conftest.$ac_objext'
2009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010   (eval $ac_try) 2>&5
2011   ac_status=$?
2012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013   (exit $ac_status); }; }; then
2014   ac_compiler_gnu=yes
2015 else
2016   echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 ac_compiler_gnu=no
2020 fi
2021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024 fi
2025 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027 GCC=`test $ac_compiler_gnu = yes && echo yes`
2028 ac_test_CFLAGS=${CFLAGS+set}
2029 ac_save_CFLAGS=$CFLAGS
2030 CFLAGS="-g"
2031 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033 if test "${ac_cv_prog_cc_g+set}" = set; then
2034   echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036   cat >conftest.$ac_ext <<_ACEOF
2037 /* confdefs.h.  */
2038 _ACEOF
2039 cat confdefs.h >>conftest.$ac_ext
2040 cat >>conftest.$ac_ext <<_ACEOF
2041 /* end confdefs.h.  */
2042
2043 int
2044 main ()
2045 {
2046
2047   ;
2048   return 0;
2049 }
2050 _ACEOF
2051 rm -f conftest.$ac_objext
2052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053   (eval $ac_compile) 2>conftest.er1
2054   ac_status=$?
2055   grep -v '^ *+' conftest.er1 >conftest.err
2056   rm -f conftest.er1
2057   cat conftest.err >&5
2058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059   (exit $ac_status); } &&
2060          { ac_try='test -z "$ac_c_werror_flag"
2061                          || test ! -s conftest.err'
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); }; } &&
2067          { ac_try='test -s conftest.$ac_objext'
2068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069   (eval $ac_try) 2>&5
2070   ac_status=$?
2071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072   (exit $ac_status); }; }; then
2073   ac_cv_prog_cc_g=yes
2074 else
2075   echo "$as_me: failed program was:" >&5
2076 sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_cv_prog_cc_g=no
2079 fi
2080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081 fi
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084 if test "$ac_test_CFLAGS" = set; then
2085   CFLAGS=$ac_save_CFLAGS
2086 elif test $ac_cv_prog_cc_g = yes; then
2087   if test "$GCC" = yes; then
2088     CFLAGS="-g -O2"
2089   else
2090     CFLAGS="-g"
2091   fi
2092 else
2093   if test "$GCC" = yes; then
2094     CFLAGS="-O2"
2095   else
2096     CFLAGS=
2097   fi
2098 fi
2099 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   ac_cv_prog_cc_stdc=no
2105 ac_save_CC=$CC
2106 cat >conftest.$ac_ext <<_ACEOF
2107 /* confdefs.h.  */
2108 _ACEOF
2109 cat confdefs.h >>conftest.$ac_ext
2110 cat >>conftest.$ac_ext <<_ACEOF
2111 /* end confdefs.h.  */
2112 #include <stdarg.h>
2113 #include <stdio.h>
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2117 struct buf { int x; };
2118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119 static char *e (p, i)
2120      char **p;
2121      int i;
2122 {
2123   return p[i];
2124 }
2125 static char *f (char * (*g) (char **, int), char **p, ...)
2126 {
2127   char *s;
2128   va_list v;
2129   va_start (v,p);
2130   s = g (p, va_arg (v,int));
2131   va_end (v);
2132   return s;
2133 }
2134
2135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2136    function prototypes and stuff, but not '\xHH' hex character constants.
2137    These don't provoke an error unfortunately, instead are silently treated
2138    as 'x'.  The following induces an error, until -std1 is added to get
2139    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2140    array size at least.  It's necessary to write '\x00'==0 to get something
2141    that's true only with -std1.  */
2142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144 int test (int i, double x);
2145 struct s1 {int (*f) (int a);};
2146 struct s2 {int (*f) (double a);};
2147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148 int argc;
2149 char **argv;
2150 int
2151 main ()
2152 {
2153 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 # Don't try gcc -ansi; that turns off useful extensions and
2159 # breaks some systems' header files.
2160 # AIX                   -qlanglvl=ansi
2161 # Ultrix and OSF/1      -std1
2162 # HP-UX 10.20 and later -Ae
2163 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2164 # SVR4                  -Xc -D__EXTENSIONS__
2165 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166 do
2167   CC="$ac_save_CC $ac_arg"
2168   rm -f conftest.$ac_objext
2169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170   (eval $ac_compile) 2>conftest.er1
2171   ac_status=$?
2172   grep -v '^ *+' conftest.er1 >conftest.err
2173   rm -f conftest.er1
2174   cat conftest.err >&5
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); } &&
2177          { ac_try='test -z "$ac_c_werror_flag"
2178                          || test ! -s conftest.err'
2179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180   (eval $ac_try) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.err conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>conftest.er1
2226   ac_status=$?
2227   grep -v '^ *+' conftest.er1 >conftest.err
2228   rm -f conftest.er1
2229   cat conftest.err >&5
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -z "$ac_c_werror_flag"
2233                          || test ! -s conftest.err'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   for ac_declaration in \
2246    '' \
2247    'extern "C" void std::exit (int) throw (); using std::exit;' \
2248    'extern "C" void std::exit (int); using std::exit;' \
2249    'extern "C" void exit (int) throw ();' \
2250    'extern "C" void exit (int);' \
2251    'void exit (int);'
2252 do
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259 $ac_declaration
2260 #include <stdlib.h>
2261 int
2262 main ()
2263 {
2264 exit (42);
2265   ;
2266   return 0;
2267 }
2268 _ACEOF
2269 rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>conftest.er1
2272   ac_status=$?
2273   grep -v '^ *+' conftest.er1 >conftest.err
2274   rm -f conftest.er1
2275   cat conftest.err >&5
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -z "$ac_c_werror_flag"
2279                          || test ! -s conftest.err'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   :
2292 else
2293   echo "$as_me: failed program was:" >&5
2294 sed 's/^/| /' conftest.$ac_ext >&5
2295
2296 continue
2297 fi
2298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299   cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305 $ac_declaration
2306 int
2307 main ()
2308 {
2309 exit (42);
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316   (eval $ac_compile) 2>conftest.er1
2317   ac_status=$?
2318   grep -v '^ *+' conftest.er1 >conftest.err
2319   rm -f conftest.er1
2320   cat conftest.err >&5
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); } &&
2323          { ac_try='test -z "$ac_c_werror_flag"
2324                          || test ! -s conftest.err'
2325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326   (eval $ac_try) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; } &&
2330          { ac_try='test -s conftest.$ac_objext'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; }; then
2336   break
2337 else
2338   echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 fi
2342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343 done
2344 rm -f conftest*
2345 if test -n "$ac_declaration"; then
2346   echo '#ifdef __cplusplus' >>confdefs.h
2347   echo $ac_declaration      >>confdefs.h
2348   echo '#endif'             >>confdefs.h
2349 fi
2350
2351 else
2352   echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2354
2355 fi
2356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357 ac_ext=c
2358 ac_cpp='$CPP $CPPFLAGS'
2359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
2364 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366 if test "${ac_cv_search_strerror+set}" = set; then
2367   echo $ECHO_N "(cached) $ECHO_C" >&6
2368 else
2369   ac_func_search_save_LIBS=$LIBS
2370 ac_cv_search_strerror=no
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h.  */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h.  */
2377
2378 /* Override any gcc2 internal prototype to avoid an error.  */
2379 #ifdef __cplusplus
2380 extern "C"
2381 #endif
2382 /* We use char because int might match the return type of a gcc2
2383    builtin and then its argument prototype would still apply.  */
2384 char strerror ();
2385 int
2386 main ()
2387 {
2388 strerror ();
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395   (eval $ac_link) 2>conftest.er1
2396   ac_status=$?
2397   grep -v '^ *+' conftest.er1 >conftest.err
2398   rm -f conftest.er1
2399   cat conftest.err >&5
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -z "$ac_c_werror_flag"
2403                          || test ! -s conftest.err'
2404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405   (eval $ac_try) 2>&5
2406   ac_status=$?
2407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }; } &&
2409          { ac_try='test -s conftest$ac_exeext'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415   ac_cv_search_strerror="none required"
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 fi
2421 rm -f conftest.err conftest.$ac_objext \
2422       conftest$ac_exeext conftest.$ac_ext
2423 if test "$ac_cv_search_strerror" = no; then
2424   for ac_lib in cposix; do
2425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2426     cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432
2433 /* Override any gcc2 internal prototype to avoid an error.  */
2434 #ifdef __cplusplus
2435 extern "C"
2436 #endif
2437 /* We use char because int might match the return type of a gcc2
2438    builtin and then its argument prototype would still apply.  */
2439 char strerror ();
2440 int
2441 main ()
2442 {
2443 strerror ();
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 rm -f conftest.$ac_objext conftest$ac_exeext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450   (eval $ac_link) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest$ac_exeext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_search_strerror="-l$ac_lib"
2471 break
2472 else
2473   echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 fi
2477 rm -f conftest.err conftest.$ac_objext \
2478       conftest$ac_exeext conftest.$ac_ext
2479   done
2480 fi
2481 LIBS=$ac_func_search_save_LIBS
2482 fi
2483 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485 if test "$ac_cv_search_strerror" != no; then
2486   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2487
2488 fi
2489
2490
2491 am__api_version="1.9"
2492 # Find a good install program.  We prefer a C program (faster),
2493 # so one script is as good as another.  But avoid the broken or
2494 # incompatible versions:
2495 # SysV /etc/install, /usr/sbin/install
2496 # SunOS /usr/etc/install
2497 # IRIX /sbin/install
2498 # AIX /bin/install
2499 # AmigaOS /C/install, which installs bootblocks on floppy discs
2500 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2503 # OS/2's system install, which has a completely different semantic
2504 # ./install, which can be erroneously created by make from ./install.sh.
2505 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2507 if test -z "$INSTALL"; then
2508 if test "${ac_cv_path_install+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   # Account for people who put trailing slashes in PATH elements.
2517 case $as_dir/ in
2518   ./ | .// | /cC/* | \
2519   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521   /usr/ucb/* ) ;;
2522   *)
2523     # OSF1 and SCO ODT 3.0 have their own names for install.
2524     # Don't use installbsd from OSF since it installs stuff as root
2525     # by default.
2526     for ac_prog in ginstall scoinst install; do
2527       for ac_exec_ext in '' $ac_executable_extensions; do
2528         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2529           if test $ac_prog = install &&
2530             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531             # AIX install.  It has an incompatible calling convention.
2532             :
2533           elif test $ac_prog = install &&
2534             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535             # program-specific install script used by HP pwplus--don't use.
2536             :
2537           else
2538             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539             break 3
2540           fi
2541         fi
2542       done
2543     done
2544     ;;
2545 esac
2546 done
2547
2548
2549 fi
2550   if test "${ac_cv_path_install+set}" = set; then
2551     INSTALL=$ac_cv_path_install
2552   else
2553     # As a last resort, use the slow shell script.  We don't cache a
2554     # path for INSTALL within a source directory, because that will
2555     # break other packages using the cache if that directory is
2556     # removed, or if the path is relative.
2557     INSTALL=$ac_install_sh
2558   fi
2559 fi
2560 echo "$as_me:$LINENO: result: $INSTALL" >&5
2561 echo "${ECHO_T}$INSTALL" >&6
2562
2563 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564 # It thinks the first close brace ends the variable substitution.
2565 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
2567 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2568
2569 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
2571 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2573 # Just in case
2574 sleep 1
2575 echo timestamp > conftest.file
2576 # Do `set' in a subshell so we don't clobber the current shell's
2577 # arguments.  Must try -L first in case configure is actually a
2578 # symlink; some systems play weird games with the mod time of symlinks
2579 # (eg FreeBSD returns the mod time of the symlink's containing
2580 # directory).
2581 if (
2582    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2583    if test "$*" = "X"; then
2584       # -L didn't work.
2585       set X `ls -t $srcdir/configure conftest.file`
2586    fi
2587    rm -f conftest.file
2588    if test "$*" != "X $srcdir/configure conftest.file" \
2589       && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591       # If neither matched, then we have a broken ls.  This can happen
2592       # if, for instance, CONFIG_SHELL is bash and it inherits a
2593       # broken ls alias from the environment.  This has actually
2594       # happened.  Such a system could not be considered "sane".
2595       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2596 alias in your environment" >&5
2597 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2598 alias in your environment" >&2;}
2599    { (exit 1); exit 1; }; }
2600    fi
2601
2602    test "$2" = conftest.file
2603    )
2604 then
2605    # Ok.
2606    :
2607 else
2608    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609 Check your system clock" >&5
2610 echo "$as_me: error: newly created file is older than distributed files!
2611 Check your system clock" >&2;}
2612    { (exit 1); exit 1; }; }
2613 fi
2614 echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6
2616 test "$program_prefix" != NONE &&
2617   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621 # Double any \ or $.  echo might interpret backslashes.
2622 # By default was `s,x,x', remove it if useless.
2623 cat <<\_ACEOF >conftest.sed
2624 s/[\\$]/&&/g;s/;s,x,x,$//
2625 _ACEOF
2626 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627 rm conftest.sed
2628
2629 # expand $ac_aux_dir to an absolute path
2630 am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633 # Use eval to expand $SHELL
2634 if eval "$MISSING --run true"; then
2635   am_missing_run="$MISSING --run "
2636 else
2637   am_missing_run=
2638   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640 fi
2641
2642 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643   # We used to keeping the `.' as first argument, in order to
2644   # allow $(mkdir_p) to be used without argument.  As in
2645   #   $(mkdir_p) $(somedir)
2646   # where $(somedir) is conditionally defined.  However this is wrong
2647   # for two reasons:
2648   #  1. if the package is installed by a user who cannot write `.'
2649   #     make install will fail,
2650   #  2. the above comment should most certainly read
2651   #     $(mkdir_p) $(DESTDIR)$(somedir)
2652   #     so it does not work when $(somedir) is undefined and
2653   #     $(DESTDIR) is not.
2654   #  To support the latter case, we have to write
2655   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656   #  so the `.' trick is pointless.
2657   mkdir_p='mkdir -p --'
2658 else
2659   # On NextStep and OpenStep, the `mkdir' command does not
2660   # recognize any option.  It will interpret all options as
2661   # directories to create, and then abort because `.' already
2662   # exists.
2663   for d in ./-p ./--version;
2664   do
2665     test -d $d && rmdir $d
2666   done
2667   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668   if test -f "$ac_aux_dir/mkinstalldirs"; then
2669     mkdir_p='$(mkinstalldirs)'
2670   else
2671     mkdir_p='$(install_sh) -d'
2672   fi
2673 fi
2674
2675 for ac_prog in gawk mawk nawk awk
2676 do
2677   # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_AWK+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   if test -n "$AWK"; then
2685   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692   for ac_exec_ext in '' $ac_executable_extensions; do
2693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694     ac_cv_prog_AWK="$ac_prog"
2695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699 done
2700
2701 fi
2702 fi
2703 AWK=$ac_cv_prog_AWK
2704 if test -n "$AWK"; then
2705   echo "$as_me:$LINENO: result: $AWK" >&5
2706 echo "${ECHO_T}$AWK" >&6
2707 else
2708   echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710 fi
2711
2712   test -n "$AWK" && break
2713 done
2714
2715 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719   echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721   cat >conftest.make <<\_ACEOF
2722 all:
2723         @echo 'ac_maketemp="$(MAKE)"'
2724 _ACEOF
2725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2726 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2727 if test -n "$ac_maketemp"; then
2728   eval ac_cv_prog_make_${ac_make}_set=yes
2729 else
2730   eval ac_cv_prog_make_${ac_make}_set=no
2731 fi
2732 rm -f conftest.make
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737   SET_MAKE=
2738 else
2739   echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741   SET_MAKE="MAKE=${MAKE-make}"
2742 fi
2743
2744 rm -rf .tst 2>/dev/null
2745 mkdir .tst 2>/dev/null
2746 if test -d .tst; then
2747   am__leading_dot=.
2748 else
2749   am__leading_dot=_
2750 fi
2751 rmdir .tst 2>/dev/null
2752
2753 DEPDIR="${am__leading_dot}deps"
2754
2755           ac_config_commands="$ac_config_commands depfiles"
2756
2757
2758 am_make=${MAKE-make}
2759 cat > confinc << 'END'
2760 am__doit:
2761         @echo done
2762 .PHONY: am__doit
2763 END
2764 # If we don't find an include directive, just comment out the code.
2765 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767 am__include="#"
2768 am__quote=
2769 _am_result=none
2770 # First try GNU make style include.
2771 echo "include confinc" > confmf
2772 # We grep out `Entering directory' and `Leaving directory'
2773 # messages which can occur if `w' ends up in MAKEFLAGS.
2774 # In particular we don't look at `^make:' because GNU make might
2775 # be invoked under some other name (usually "gmake"), in which
2776 # case it prints its new name instead of `make'.
2777 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778    am__include=include
2779    am__quote=
2780    _am_result=GNU
2781 fi
2782 # Now try BSD make style include.
2783 if test "$am__include" = "#"; then
2784    echo '.include "confinc"' > confmf
2785    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786       am__include=.include
2787       am__quote="\""
2788       _am_result=BSD
2789    fi
2790 fi
2791
2792
2793 echo "$as_me:$LINENO: result: $_am_result" >&5
2794 echo "${ECHO_T}$_am_result" >&6
2795 rm -f confinc confmf
2796
2797 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798 if test "${enable_dependency_tracking+set}" = set; then
2799   enableval="$enable_dependency_tracking"
2800
2801 fi;
2802 if test "x$enable_dependency_tracking" != xno; then
2803   am_depcomp="$ac_aux_dir/depcomp"
2804   AMDEPBACKSLASH='\'
2805 fi
2806
2807
2808 if test "x$enable_dependency_tracking" != xno; then
2809   AMDEP_TRUE=
2810   AMDEP_FALSE='#'
2811 else
2812   AMDEP_TRUE='#'
2813   AMDEP_FALSE=
2814 fi
2815
2816
2817
2818 # test to see if srcdir already configured
2819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820    test -f $srcdir/config.status; then
2821   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823    { (exit 1); exit 1; }; }
2824 fi
2825
2826 # test whether we have cygpath
2827 if test -z "$CYGPATH_W"; then
2828   if (cygpath --version) >/dev/null 2>/dev/null; then
2829     CYGPATH_W='cygpath -w'
2830   else
2831     CYGPATH_W=echo
2832   fi
2833 fi
2834
2835
2836 # Define the identity of the package.
2837  PACKAGE=bfd
2838  VERSION=2.16.90
2839
2840
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE "$PACKAGE"
2843 _ACEOF
2844
2845
2846 cat >>confdefs.h <<_ACEOF
2847 #define VERSION "$VERSION"
2848 _ACEOF
2849
2850 # Some tools Automake needs.
2851
2852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2865
2866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2867
2868 # Installed binaries are usually stripped using `strip' when the user
2869 # run `make install-strip'.  However `strip' might not be the right
2870 # tool to use in cross-compilation environments, therefore Automake
2871 # will honor the `STRIP' environment variable to overrule this program.
2872 if test "$cross_compiling" != no; then
2873   if test -n "$ac_tool_prefix"; then
2874   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}strip; ac_word=$2
2876 echo "$as_me:$LINENO: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_prog_STRIP+set}" = set; then
2879   echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881   if test -n "$STRIP"; then
2882   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2886 do
2887   IFS=$as_save_IFS
2888   test -z "$as_dir" && as_dir=.
2889   for ac_exec_ext in '' $ac_executable_extensions; do
2890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893     break 2
2894   fi
2895 done
2896 done
2897
2898 fi
2899 fi
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902   echo "$as_me:$LINENO: result: $STRIP" >&5
2903 echo "${ECHO_T}$STRIP" >&6
2904 else
2905   echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6
2907 fi
2908
2909 fi
2910 if test -z "$ac_cv_prog_STRIP"; then
2911   ac_ct_STRIP=$STRIP
2912   # Extract the first word of "strip", so it can be a program name with args.
2913 set dummy strip; ac_word=$2
2914 echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917   echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919   if test -n "$ac_ct_STRIP"; then
2920   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927   for ac_exec_ext in '' $ac_executable_extensions; do
2928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929     ac_cv_prog_ac_ct_STRIP="strip"
2930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931     break 2
2932   fi
2933 done
2934 done
2935
2936   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937 fi
2938 fi
2939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940 if test -n "$ac_ct_STRIP"; then
2941   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942 echo "${ECHO_T}$ac_ct_STRIP" >&6
2943 else
2944   echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2946 fi
2947
2948   STRIP=$ac_ct_STRIP
2949 else
2950   STRIP="$ac_cv_prog_STRIP"
2951 fi
2952
2953 fi
2954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2955
2956 # We need awk for the "check" target.  The system "awk" is bad on
2957 # some platforms.
2958 # Always define AMTAR for backward compatibility.
2959
2960 AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
2964
2965
2966
2967 depcc="$CC"   am_compiler_list=
2968
2969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975   # We make a subdir and do the tests there.  Otherwise we can end up
2976   # making bogus files that we don't know about and never remove.  For
2977   # instance it was reported that on HP-UX the gcc test will end up
2978   # making a dummy file named `D' -- because `-MD' means `put the output
2979   # in D'.
2980   mkdir conftest.dir
2981   # Copy depcomp to subdir because otherwise we won't find it if we're
2982   # using a relative directory.
2983   cp "$am_depcomp" conftest.dir
2984   cd conftest.dir
2985   # We will build objects and dependencies in a subdirectory because
2986   # it helps to detect inapplicable dependency modes.  For instance
2987   # both Tru64's cc and ICC support -MD to output dependencies as a
2988   # side effect of compilation, but ICC will put the dependencies in
2989   # the current directory while Tru64 will put them in the object
2990   # directory.
2991   mkdir sub
2992
2993   am_cv_CC_dependencies_compiler_type=none
2994   if test "$am_compiler_list" = ""; then
2995      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2996   fi
2997   for depmode in $am_compiler_list; do
2998     # Setup a source with many dependencies, because some compilers
2999     # like to wrap large dependency lists on column 80 (with \), and
3000     # we should not choose a depcomp mode which is confused by this.
3001     #
3002     # We need to recreate these files for each test, as the compiler may
3003     # overwrite some of them when testing with obscure command lines.
3004     # This happens at least with the AIX C compiler.
3005     : > sub/conftest.c
3006     for i in 1 2 3 4 5 6; do
3007       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009       # Solaris 8's {/usr,}/bin/sh.
3010       touch sub/conftst$i.h
3011     done
3012     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3013
3014     case $depmode in
3015     nosideeffect)
3016       # after this tag, mechanisms are not by side-effect, so they'll
3017       # only be used when explicitly requested
3018       if test "x$enable_dependency_tracking" = xyes; then
3019         continue
3020       else
3021         break
3022       fi
3023       ;;
3024     none) break ;;
3025     esac
3026     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027     # mode.  It turns out that the SunPro C++ compiler does not properly
3028     # handle `-M -o', and we need to detect this.
3029     if depmode=$depmode \
3030        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033          >/dev/null 2>conftest.err &&
3034        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037       # icc doesn't choke on unknown options, it will just issue warnings
3038       # or remarks (even with -Werror).  So we grep stderr for any message
3039       # that says an option was ignored or not supported.
3040       # When given -MP, icc 7.0 and 7.1 complain thusly:
3041       #   icc: Command line warning: ignoring option '-M'; no argument required
3042       # The diagnosis changed in icc 8.0:
3043       #   icc: Command line remark: option '-MP' not supported
3044       if (grep 'ignoring option' conftest.err ||
3045           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046         am_cv_CC_dependencies_compiler_type=$depmode
3047         break
3048       fi
3049     fi
3050   done
3051
3052   cd ..
3053   rm -rf conftest.dir
3054 else
3055   am_cv_CC_dependencies_compiler_type=none
3056 fi
3057
3058 fi
3059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3062
3063
3064
3065 if
3066   test "x$enable_dependency_tracking" != xno \
3067   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068   am__fastdepCC_TRUE=
3069   am__fastdepCC_FALSE='#'
3070 else
3071   am__fastdepCC_TRUE='#'
3072   am__fastdepCC_FALSE=
3073 fi
3074
3075
3076
3077
3078 if test -n "$ac_tool_prefix"; then
3079   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}ar; ac_word=$2
3081 echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083 if test "${ac_cv_prog_AR+set}" = set; then
3084   echo $ECHO_N "(cached) $ECHO_C" >&6
3085 else
3086   if test -n "$AR"; then
3087   ac_cv_prog_AR="$AR" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094   for ac_exec_ext in '' $ac_executable_extensions; do
3095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096     ac_cv_prog_AR="${ac_tool_prefix}ar"
3097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101 done
3102
3103 fi
3104 fi
3105 AR=$ac_cv_prog_AR
3106 if test -n "$AR"; then
3107   echo "$as_me:$LINENO: result: $AR" >&5
3108 echo "${ECHO_T}$AR" >&6
3109 else
3110   echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3112 fi
3113
3114 fi
3115 if test -z "$ac_cv_prog_AR"; then
3116   ac_ct_AR=$AR
3117   # Extract the first word of "ar", so it can be a program name with args.
3118 set dummy ar; ac_word=$2
3119 echo "$as_me:$LINENO: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122   echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124   if test -n "$ac_ct_AR"; then
3125   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126 else
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132   for ac_exec_ext in '' $ac_executable_extensions; do
3133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134     ac_cv_prog_ac_ct_AR="ar"
3135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139 done
3140
3141 fi
3142 fi
3143 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144 if test -n "$ac_ct_AR"; then
3145   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146 echo "${ECHO_T}$ac_ct_AR" >&6
3147 else
3148   echo "$as_me:$LINENO: result: no" >&5
3149 echo "${ECHO_T}no" >&6
3150 fi
3151
3152   AR=$ac_ct_AR
3153 else
3154   AR="$ac_cv_prog_AR"
3155 fi
3156
3157 if test -n "$ac_tool_prefix"; then
3158   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3159 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3160 echo "$as_me:$LINENO: checking for $ac_word" >&5
3161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162 if test "${ac_cv_prog_RANLIB+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   if test -n "$RANLIB"; then
3166   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   test -z "$as_dir" && as_dir=.
3173   for ac_exec_ext in '' $ac_executable_extensions; do
3174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177     break 2
3178   fi
3179 done
3180 done
3181
3182 fi
3183 fi
3184 RANLIB=$ac_cv_prog_RANLIB
3185 if test -n "$RANLIB"; then
3186   echo "$as_me:$LINENO: result: $RANLIB" >&5
3187 echo "${ECHO_T}$RANLIB" >&6
3188 else
3189   echo "$as_me:$LINENO: result: no" >&5
3190 echo "${ECHO_T}no" >&6
3191 fi
3192
3193 fi
3194 if test -z "$ac_cv_prog_RANLIB"; then
3195   ac_ct_RANLIB=$RANLIB
3196   # Extract the first word of "ranlib", so it can be a program name with args.
3197 set dummy ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -n "$ac_ct_RANLIB"; then
3204   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211   for ac_exec_ext in '' $ac_executable_extensions; do
3212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213     ac_cv_prog_ac_ct_RANLIB="ranlib"
3214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218 done
3219
3220   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3221 fi
3222 fi
3223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224 if test -n "$ac_ct_RANLIB"; then
3225   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3227 else
3228   echo "$as_me:$LINENO: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3230 fi
3231
3232   RANLIB=$ac_ct_RANLIB
3233 else
3234   RANLIB="$ac_cv_prog_RANLIB"
3235 fi
3236
3237
3238 # Check whether --enable-shared or --disable-shared was given.
3239 if test "${enable_shared+set}" = set; then
3240   enableval="$enable_shared"
3241   p=${PACKAGE-default}
3242 case $enableval in
3243 yes) enable_shared=yes ;;
3244 no) enable_shared=no ;;
3245 *)
3246   enable_shared=no
3247   # Look at the argument we got.  We use all the common list separators.
3248   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249   for pkg in $enableval; do
3250     if test "X$pkg" = "X$p"; then
3251       enable_shared=yes
3252     fi
3253   done
3254   IFS="$ac_save_ifs"
3255   ;;
3256 esac
3257 else
3258   enable_shared=no
3259 fi;
3260
3261 # Check whether --enable-static or --disable-static was given.
3262 if test "${enable_static+set}" = set; then
3263   enableval="$enable_static"
3264   p=${PACKAGE-default}
3265 case $enableval in
3266 yes) enable_static=yes ;;
3267 no) enable_static=no ;;
3268 *)
3269   enable_static=no
3270   # Look at the argument we got.  We use all the common list separators.
3271   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272   for pkg in $enableval; do
3273     if test "X$pkg" = "X$p"; then
3274       enable_static=yes
3275     fi
3276   done
3277   IFS="$ac_save_ifs"
3278   ;;
3279 esac
3280 else
3281   enable_static=yes
3282 fi;
3283 # Check whether --enable-fast-install or --disable-fast-install was given.
3284 if test "${enable_fast_install+set}" = set; then
3285   enableval="$enable_fast_install"
3286   p=${PACKAGE-default}
3287 case $enableval in
3288 yes) enable_fast_install=yes ;;
3289 no) enable_fast_install=no ;;
3290 *)
3291   enable_fast_install=no
3292   # Look at the argument we got.  We use all the common list separators.
3293   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294   for pkg in $enableval; do
3295     if test "X$pkg" = "X$p"; then
3296       enable_fast_install=yes
3297     fi
3298   done
3299   IFS="$ac_save_ifs"
3300   ;;
3301 esac
3302 else
3303   enable_fast_install=yes
3304 fi;
3305
3306 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3307 if test "${with_gnu_ld+set}" = set; then
3308   withval="$with_gnu_ld"
3309   test "$withval" = no || with_gnu_ld=yes
3310 else
3311   with_gnu_ld=no
3312 fi;
3313 ac_prog=ld
3314 if test "$GCC" = yes; then
3315   # Check if gcc -print-prog-name=ld gives a path.
3316   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3318   case $host in
3319   *-*-mingw*)
3320     # gcc leaves a trailing carriage return which upsets mingw
3321     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322   *)
3323     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324   esac
3325   case $ac_prog in
3326     # Accept absolute paths.
3327     [\\/]* | [A-Za-z]:[\\/]*)
3328       re_direlt='/[^/][^/]*/\.\./'
3329       # Canonicalize the path of ld
3330       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333       done
3334       test -z "$LD" && LD="$ac_prog"
3335       ;;
3336   "")
3337     # If it fails, then pretend we aren't using GCC.
3338     ac_prog=ld
3339     ;;
3340   *)
3341     # If it is relative, then search for the first ld in PATH.
3342     with_gnu_ld=unknown
3343     ;;
3344   esac
3345 elif test "$with_gnu_ld" = yes; then
3346   echo "$as_me:$LINENO: checking for GNU ld" >&5
3347 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3348 else
3349   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3351 fi
3352 if test "${lt_cv_path_LD+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   if test -z "$LD"; then
3356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3357   for ac_dir in $PATH; do
3358     test -z "$ac_dir" && ac_dir=.
3359     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3360       lt_cv_path_LD="$ac_dir/$ac_prog"
3361       # Check to see if the program is GNU ld.  I'd rather use --version,
3362       # but apparently some GNU ld's only accept -v.
3363       # Break only if it was the GNU/non-GNU ld that we prefer.
3364       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3365         test "$with_gnu_ld" != no && break
3366       else
3367         test "$with_gnu_ld" != yes && break
3368       fi
3369     fi
3370   done
3371   IFS="$ac_save_ifs"
3372 else
3373   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3374 fi
3375 fi
3376
3377 LD="$lt_cv_path_LD"
3378 if test -n "$LD"; then
3379   echo "$as_me:$LINENO: result: $LD" >&5
3380 echo "${ECHO_T}$LD" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387    { (exit 1); exit 1; }; }
3388 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3395   lt_cv_prog_gnu_ld=yes
3396 else
3397   lt_cv_prog_gnu_ld=no
3398 fi
3399 fi
3400 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3402 with_gnu_ld=$lt_cv_prog_gnu_ld
3403
3404
3405 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407 if test "${lt_cv_ld_reload_flag+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   lt_cv_ld_reload_flag='-r'
3411 fi
3412 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3414 reload_flag=$lt_cv_ld_reload_flag
3415 test -n "$reload_flag" && reload_flag=" $reload_flag"
3416
3417 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419 if test "${lt_cv_path_NM+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   if test -n "$NM"; then
3423   # Let the user override the test.
3424   lt_cv_path_NM="$NM"
3425 else
3426   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3427   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3428     test -z "$ac_dir" && ac_dir=.
3429     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3431       # Check to see if the nm accepts a BSD-compat flag.
3432       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433       #   nm: unknown option "B" ignored
3434       # Tru64's nm complains that /dev/null is an invalid object file
3435       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3436         lt_cv_path_NM="$tmp_nm -B"
3437         break
3438       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3439         lt_cv_path_NM="$tmp_nm -p"
3440         break
3441       else
3442         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443         continue # so that we can try to find one that supports BSD flags
3444       fi
3445     fi
3446   done
3447   IFS="$ac_save_ifs"
3448   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3449 fi
3450 fi
3451
3452 NM="$lt_cv_path_NM"
3453 echo "$as_me:$LINENO: result: $NM" >&5
3454 echo "${ECHO_T}$NM" >&6
3455
3456 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458 LN_S=$as_ln_s
3459 if test "$LN_S" = "ln -s"; then
3460   echo "$as_me:$LINENO: result: yes" >&5
3461 echo "${ECHO_T}yes" >&6
3462 else
3463   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464 echo "${ECHO_T}no, using $LN_S" >&6
3465 fi
3466
3467 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469 if test "${lt_cv_deplibs_check_method+set}" = set; then
3470   echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472   lt_cv_file_magic_cmd='$MAGIC_CMD'
3473 lt_cv_file_magic_test_file=
3474 lt_cv_deplibs_check_method='unknown'
3475 # Need to set the preceding variable on all platforms that support
3476 # interlibrary dependencies.
3477 # 'none' -- dependencies not supported.
3478 # `unknown' -- same as none, but documents that we really don't know.
3479 # 'pass_all' -- all dependencies passed with no checks.
3480 # 'test_compile' -- check by making test program.
3481 # 'file_magic [regex]' -- check by looking for files in library path
3482 # which responds to the $file_magic_cmd with a given egrep regex.
3483 # If you have `file' or equivalent on your system and you're not sure
3484 # whether `pass_all' will *always* work, you probably want this one.
3485
3486 case $host_os in
3487 aix*)
3488   lt_cv_deplibs_check_method=pass_all
3489   ;;
3490
3491 beos*)
3492   lt_cv_deplibs_check_method=pass_all
3493   ;;
3494
3495 bsdi4*)
3496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497   lt_cv_file_magic_cmd='/usr/bin/file -L'
3498   lt_cv_file_magic_test_file=/shlib/libc.so
3499   ;;
3500
3501 cygwin* | mingw* |pw32*)
3502   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3503   lt_cv_file_magic_cmd='$OBJDUMP -f'
3504   ;;
3505
3506 darwin* | rhapsody*)
3507   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3508   lt_cv_file_magic_cmd='/usr/bin/file -L'
3509   case "$host_os" in
3510   rhapsody* | darwin1.012)
3511     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3512     ;;
3513   *) # Darwin 1.3 on
3514     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3515     ;;
3516   esac
3517   ;;
3518
3519 freebsd* | kfreebsd*-gnu)
3520   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521     case $host_cpu in
3522     i*86 )
3523       # Not sure whether the presence of OpenBSD here was a mistake.
3524       # Let's accept both of them until this is cleared up.
3525       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3526       lt_cv_file_magic_cmd=/usr/bin/file
3527       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528       ;;
3529     esac
3530   else
3531     lt_cv_deplibs_check_method=pass_all
3532   fi
3533   ;;
3534
3535 gnu*)
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3538
3539 hpux10.20*|hpux11*)
3540   case $host_cpu in
3541   hppa*)
3542     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543     lt_cv_file_magic_cmd=/usr/bin/file
3544     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3545     ;;
3546   ia64*)
3547     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3548     lt_cv_file_magic_cmd=/usr/bin/file
3549     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550     ;;
3551   esac
3552   ;;
3553
3554 irix5* | irix6*)
3555   case $host_os in
3556   irix5*)
3557     # this will be overridden with pass_all, but let us keep it just in case
3558     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3559     ;;
3560   *)
3561     case $LD in
3562     *-32|*"-32 ") libmagic=32-bit;;
3563     *-n32|*"-n32 ") libmagic=N32;;
3564     *-64|*"-64 ") libmagic=64-bit;;
3565     *) libmagic=never-match;;
3566     esac
3567     # this will be overridden with pass_all, but let us keep it just in case
3568     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3569     ;;
3570   esac
3571   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3572   lt_cv_deplibs_check_method=pass_all
3573   ;;
3574
3575 # This must be Linux ELF.
3576 linux-gnu*)
3577   case $host_cpu in
3578   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3579     lt_cv_deplibs_check_method=pass_all ;;
3580   *)
3581     # glibc up to 2.1.1 does not perform some relocations on ARM
3582     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3583   esac
3584   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3585   ;;
3586
3587 netbsd* | knetbsd*-gnu)
3588   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3589     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3590   else
3591     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3592   fi
3593   ;;
3594
3595 newsos6)
3596   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597   lt_cv_file_magic_cmd=/usr/bin/file
3598   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3599   ;;
3600
3601 osf3* | osf4* | osf5*)
3602   # this will be overridden with pass_all, but let us keep it just in case
3603   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3604   lt_cv_file_magic_test_file=/shlib/libc.so
3605   lt_cv_deplibs_check_method=pass_all
3606   ;;
3607
3608 sco3.2v5*)
3609   lt_cv_deplibs_check_method=pass_all
3610   ;;
3611
3612 solaris*)
3613   lt_cv_deplibs_check_method=pass_all
3614   lt_cv_file_magic_test_file=/lib/libc.so
3615   ;;
3616
3617 sysv5uw[78]* | sysv4*uw2*)
3618   lt_cv_deplibs_check_method=pass_all
3619   ;;
3620
3621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3622   case $host_vendor in
3623   ncr)
3624     lt_cv_deplibs_check_method=pass_all
3625     ;;
3626   motorola)
3627     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]'
3628     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3629     ;;
3630   esac
3631   ;;
3632 esac
3633
3634 fi
3635 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3637 file_magic_cmd=$lt_cv_file_magic_cmd
3638 deplibs_check_method=$lt_cv_deplibs_check_method
3639
3640
3641
3642
3643 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3644
3645 # Only perform the check for file, if the check method requires it
3646 case $deplibs_check_method in
3647 file_magic*)
3648   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3649     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3650 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   case $MAGIC_CMD in
3655   /*)
3656   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3657   ;;
3658   ?:/*)
3659   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3660   ;;
3661   *)
3662   ac_save_MAGIC_CMD="$MAGIC_CMD"
3663   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3664   ac_dummy="/usr/bin:$PATH"
3665   for ac_dir in $ac_dummy; do
3666     test -z "$ac_dir" && ac_dir=.
3667     if test -f $ac_dir/${ac_tool_prefix}file; then
3668       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3669       if test -n "$file_magic_test_file"; then
3670         case $deplibs_check_method in
3671         "file_magic "*)
3672           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3673           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3674           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3675             egrep "$file_magic_regex" > /dev/null; then
3676             :
3677           else
3678             cat <<EOF 1>&2
3679
3680 *** Warning: the command libtool uses to detect shared libraries,
3681 *** $file_magic_cmd, produces output that libtool cannot recognize.
3682 *** The result is that libtool may fail to recognize shared libraries
3683 *** as such.  This will affect the creation of libtool libraries that
3684 *** depend on shared libraries, but programs linked with such libtool
3685 *** libraries will work regardless of this problem.  Nevertheless, you
3686 *** may want to report the problem to your system manager and/or to
3687 *** bug-libtool@gnu.org
3688
3689 EOF
3690           fi ;;
3691         esac
3692       fi
3693       break
3694     fi
3695   done
3696   IFS="$ac_save_ifs"
3697   MAGIC_CMD="$ac_save_MAGIC_CMD"
3698   ;;
3699 esac
3700 fi
3701
3702 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703 if test -n "$MAGIC_CMD"; then
3704   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3705 echo "${ECHO_T}$MAGIC_CMD" >&6
3706 else
3707   echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3709 fi
3710
3711 if test -z "$lt_cv_path_MAGIC_CMD"; then
3712   if test -n "$ac_tool_prefix"; then
3713     echo "$as_me:$LINENO: checking for file" >&5
3714 echo $ECHO_N "checking for file... $ECHO_C" >&6
3715 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   case $MAGIC_CMD in
3719   /*)
3720   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3721   ;;
3722   ?:/*)
3723   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3724   ;;
3725   *)
3726   ac_save_MAGIC_CMD="$MAGIC_CMD"
3727   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3728   ac_dummy="/usr/bin:$PATH"
3729   for ac_dir in $ac_dummy; do
3730     test -z "$ac_dir" && ac_dir=.
3731     if test -f $ac_dir/file; then
3732       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3733       if test -n "$file_magic_test_file"; then
3734         case $deplibs_check_method in
3735         "file_magic "*)
3736           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3737           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3738           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3739             egrep "$file_magic_regex" > /dev/null; then
3740             :
3741           else
3742             cat <<EOF 1>&2
3743
3744 *** Warning: the command libtool uses to detect shared libraries,
3745 *** $file_magic_cmd, produces output that libtool cannot recognize.
3746 *** The result is that libtool may fail to recognize shared libraries
3747 *** as such.  This will affect the creation of libtool libraries that
3748 *** depend on shared libraries, but programs linked with such libtool
3749 *** libraries will work regardless of this problem.  Nevertheless, you
3750 *** may want to report the problem to your system manager and/or to
3751 *** bug-libtool@gnu.org
3752
3753 EOF
3754           fi ;;
3755         esac
3756       fi
3757       break
3758     fi
3759   done
3760   IFS="$ac_save_ifs"
3761   MAGIC_CMD="$ac_save_MAGIC_CMD"
3762   ;;
3763 esac
3764 fi
3765
3766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3767 if test -n "$MAGIC_CMD"; then
3768   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3769 echo "${ECHO_T}$MAGIC_CMD" >&6
3770 else
3771   echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6
3773 fi
3774
3775   else
3776     MAGIC_CMD=:
3777   fi
3778 fi
3779
3780   fi
3781   ;;
3782 esac
3783
3784 if test -n "$ac_tool_prefix"; then
3785   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -n "$RANLIB"; then
3793   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809 fi
3810 fi
3811 RANLIB=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813   echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 fi
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822   ac_ct_RANLIB=$RANLIB
3823   # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   if test -n "$ac_ct_RANLIB"; then
3831   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for ac_exec_ext in '' $ac_executable_extensions; do
3839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840     ac_cv_prog_ac_ct_RANLIB="ranlib"
3841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842     break 2
3843   fi
3844 done
3845 done
3846
3847   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3848 fi
3849 fi
3850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859   RANLIB=$ac_ct_RANLIB
3860 else
3861   RANLIB="$ac_cv_prog_RANLIB"
3862 fi
3863
3864 if test -n "$ac_tool_prefix"; then
3865   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}strip; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_prog_STRIP+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   if test -n "$STRIP"; then
3873   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880   for ac_exec_ext in '' $ac_executable_extensions; do
3881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884     break 2
3885   fi
3886 done
3887 done
3888
3889 fi
3890 fi
3891 STRIP=$ac_cv_prog_STRIP
3892 if test -n "$STRIP"; then
3893   echo "$as_me:$LINENO: result: $STRIP" >&5
3894 echo "${ECHO_T}$STRIP" >&6
3895 else
3896   echo "$as_me:$LINENO: result: no" >&5
3897 echo "${ECHO_T}no" >&6
3898 fi
3899
3900 fi
3901 if test -z "$ac_cv_prog_STRIP"; then
3902   ac_ct_STRIP=$STRIP
3903   # Extract the first word of "strip", so it can be a program name with args.
3904 set dummy strip; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   if test -n "$ac_ct_STRIP"; then
3911   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3912 else
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3915 do
3916   IFS=$as_save_IFS
3917   test -z "$as_dir" && as_dir=.
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920     ac_cv_prog_ac_ct_STRIP="strip"
3921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922     break 2
3923   fi
3924 done
3925 done
3926
3927   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3928 fi
3929 fi
3930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931 if test -n "$ac_ct_STRIP"; then
3932   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933 echo "${ECHO_T}$ac_ct_STRIP" >&6
3934 else
3935   echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939   STRIP=$ac_ct_STRIP
3940 else
3941   STRIP="$ac_cv_prog_STRIP"
3942 fi
3943
3944
3945 # Check for any special flags to pass to ltconfig.
3946 libtool_flags="--cache-file=$cache_file"
3947 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3948 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3949 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3950 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3951 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3952
3953
3954 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3955 if test "${enable_libtool_lock+set}" = set; then
3956   enableval="$enable_libtool_lock"
3957
3958 fi;
3959 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3960 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3961
3962
3963 # Check whether --with-pic or --without-pic was given.
3964 if test "${with_pic+set}" = set; then
3965   withval="$with_pic"
3966   pic_mode="$withval"
3967 else
3968   pic_mode=default
3969 fi;
3970 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3971 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3972
3973 # Some flags need to be propagated to the compiler or linker for good
3974 # libtool support.
3975 case $host in
3976 *-*-irix6*)
3977   # Find out which ABI we are using.
3978   echo '#line 3978 "configure"' > conftest.$ac_ext
3979   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980   (eval $ac_compile) 2>&5
3981   ac_status=$?
3982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983   (exit $ac_status); }; then
3984    if test "$lt_cv_prog_gnu_ld" = yes; then
3985     case `/usr/bin/file conftest.$ac_objext` in
3986     *32-bit*)
3987       LD="${LD-ld} -melf32bsmip"
3988       ;;
3989     *N32*)
3990       LD="${LD-ld} -melf32bmipn32"
3991       ;;
3992     *64-bit*)
3993       LD="${LD-ld} -melf64bmip"
3994       ;;
3995     esac
3996    else
3997     case `/usr/bin/file conftest.$ac_objext` in
3998     *32-bit*)
3999       LD="${LD-ld} -32"
4000       ;;
4001     *N32*)
4002       LD="${LD-ld} -n32"
4003       ;;
4004     *64-bit*)
4005       LD="${LD-ld} -64"
4006       ;;
4007     esac
4008    fi
4009   fi
4010   rm -rf conftest*
4011   ;;
4012
4013 ia64-*-hpux*)
4014   # Find out which ABI we are using.
4015   echo 'int i;' > conftest.$ac_ext
4016   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017   (eval $ac_compile) 2>&5
4018   ac_status=$?
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); }; then
4021     case "`/usr/bin/file conftest.o`" in
4022     *ELF-32*)
4023       HPUX_IA64_MODE="32"
4024       ;;
4025     *ELF-64*)
4026       HPUX_IA64_MODE="64"
4027       ;;
4028     esac
4029   fi
4030   rm -rf conftest*
4031   ;;
4032
4033 *-*-sco3.2v5*)
4034   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4035   SAVE_CFLAGS="$CFLAGS"
4036   CFLAGS="$CFLAGS -belf"
4037   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4038 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4039 if test "${lt_cv_cc_needs_belf+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042
4043
4044      ac_ext=c
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049
4050      cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h.  */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h.  */
4056
4057 int
4058 main ()
4059 {
4060
4061   ;
4062   return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067   (eval $ac_link) 2>conftest.er1
4068   ac_status=$?
4069   grep -v '^ *+' conftest.er1 >conftest.err
4070   rm -f conftest.er1
4071   cat conftest.err >&5
4072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073   (exit $ac_status); } &&
4074          { ac_try='test -z "$ac_c_werror_flag"
4075                          || test ! -s conftest.err'
4076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077   (eval $ac_try) 2>&5
4078   ac_status=$?
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); }; } &&
4081          { ac_try='test -s conftest$ac_exeext'
4082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083   (eval $ac_try) 2>&5
4084   ac_status=$?
4085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086   (exit $ac_status); }; }; then
4087   lt_cv_cc_needs_belf=yes
4088 else
4089   echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 lt_cv_cc_needs_belf=no
4093 fi
4094 rm -f conftest.err conftest.$ac_objext \
4095       conftest$ac_exeext conftest.$ac_ext
4096      ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101
4102 fi
4103 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4104 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4105   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4106     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4107     CFLAGS="$SAVE_CFLAGS"
4108   fi
4109   ;;
4110
4111
4112 esac
4113
4114
4115 # Save cache, so that ltconfig can load it
4116 cat >confcache <<\_ACEOF
4117 # This file is a shell script that caches the results of configure
4118 # tests run on this system so they can be shared between configure
4119 # scripts and configure runs, see configure's option --config-cache.
4120 # It is not useful on other systems.  If it contains results you don't
4121 # want to keep, you may remove or edit it.
4122 #
4123 # config.status only pays attention to the cache file if you give it
4124 # the --recheck option to rerun configure.
4125 #
4126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4128 # following values.
4129
4130 _ACEOF
4131
4132 # The following way of writing the cache mishandles newlines in values,
4133 # but we know of no workaround that is simple, portable, and efficient.
4134 # So, don't put newlines in cache variables' values.
4135 # Ultrix sh set writes to stderr and can't be redirected directly,
4136 # and sets the high bit in the cache file unless we assign to the vars.
4137 {
4138   (set) 2>&1 |
4139     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4140     *ac_space=\ *)
4141       # `set' does not quote correctly, so add quotes (double-quote
4142       # substitution turns \\\\ into \\, and sed turns \\ into \).
4143       sed -n \
4144         "s/'/'\\\\''/g;
4145           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4146       ;;
4147     *)
4148       # `set' quotes correctly as required by POSIX, so do not add quotes.
4149       sed -n \
4150         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4151       ;;
4152     esac;
4153 } |
4154   sed '
4155      t clear
4156      : clear
4157      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4158      t end
4159      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4160      : end' >>confcache
4161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4162   if test -w $cache_file; then
4163     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4164     cat confcache >$cache_file
4165   else
4166     echo "not updating unwritable cache $cache_file"
4167   fi
4168 fi
4169 rm -f confcache
4170
4171 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4172 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4173 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4174 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4175 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4176 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4177 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4178 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4179 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4180 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4181 echo "$as_me: error: libtool configure failed" >&2;}
4182    { (exit 1); exit 1; }; }
4183
4184 # Reload cache, that may have been modified by ltconfig
4185 if test -r "$cache_file"; then
4186   # Some versions of bash will fail to source /dev/null (special
4187   # files actually), so we avoid doing that.
4188   if test -f "$cache_file"; then
4189     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4190 echo "$as_me: loading cache $cache_file" >&6;}
4191     case $cache_file in
4192       [\\/]* | ?:[\\/]* ) . $cache_file;;
4193       *)                      . ./$cache_file;;
4194     esac
4195   fi
4196 else
4197   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4198 echo "$as_me: creating cache $cache_file" >&6;}
4199   >$cache_file
4200 fi
4201
4202
4203 # This can be used to rebuild libtool when needed
4204 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4205
4206 # Always use our own libtool.
4207 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4208
4209 # Redirect the config.log output again, so that the ltconfig log is not
4210 # clobbered by the next message.
4211 exec 5>>./config.log
4212
4213
4214
4215
4216
4217
4218
4219 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4220 if test "${enable_64_bit_bfd+set}" = set; then
4221   enableval="$enable_64_bit_bfd"
4222   case "${enableval}" in
4223   yes)  want64=true  ;;
4224   no)   want64=false ;;
4225   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4226 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4227    { (exit 1); exit 1; }; } ;;
4228 esac
4229 else
4230   want64=false
4231 fi; # Check whether --enable-targets or --disable-targets was given.
4232 if test "${enable_targets+set}" = set; then
4233   enableval="$enable_targets"
4234   case "${enableval}" in
4235   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4236 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4237    { (exit 1); exit 1; }; }
4238             ;;
4239   no)       enable_targets= ;;
4240   *)        enable_targets=$enableval ;;
4241 esac
4242 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4243 if test "${enable_commonbfdlib+set}" = set; then
4244   enableval="$enable_commonbfdlib"
4245   case "${enableval}" in
4246   yes) commonbfdlib=true ;;
4247   no)  commonbfdlib=false ;;
4248   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4249 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4250    { (exit 1); exit 1; }; } ;;
4251 esac
4252 fi;
4253 # Check whether --with-mmap or --without-mmap was given.
4254 if test "${with_mmap+set}" = set; then
4255   withval="$with_mmap"
4256   case "${withval}" in
4257   yes)  want_mmap=true ;;
4258   no)   want_mmap=false ;;
4259   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4260 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4261    { (exit 1); exit 1; }; } ;;
4262 esac
4263 else
4264   want_mmap=false
4265 fi;
4266 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4267
4268 # Check whether --enable-werror or --disable-werror was given.
4269 if test "${enable_werror+set}" = set; then
4270   enableval="$enable_werror"
4271   case "${enableval}" in
4272      yes | y) ERROR_ON_WARNING="yes" ;;
4273      no | n)  ERROR_ON_WARNING="no" ;;
4274      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4275 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4276    { (exit 1); exit 1; }; } ;;
4277    esac
4278 fi;
4279
4280 # Enable -Werror by default, suppressing it only for --disable-werror
4281 # or --disable-build-warnings.
4282 if test "${ERROR_ON_WARNING}" != no
4283 then
4284   build_warnings="$build_warnings -Werror"
4285 fi
4286
4287 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4288 if test "${enable_build_warnings+set}" = set; then
4289   enableval="$enable_build_warnings"
4290   case "${enableval}" in
4291   yes)  ;;
4292   no)   build_warnings="-w";;
4293   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4294         build_warnings="${build_warnings} ${t}";;
4295   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4296         build_warnings="${t} ${build_warnings}";;
4297   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4298 esac
4299 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4300   echo "Setting warning flags = $build_warnings" 6>&1
4301 fi
4302 fi; WARN_CFLAGS=""
4303 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
4304     WARN_CFLAGS="${build_warnings}"
4305 fi
4306
4307
4308           ac_config_headers="$ac_config_headers config.h:config.in"
4309
4310
4311 if test -z "$target" ; then
4312     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4313 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4314    { (exit 1); exit 1; }; }
4315 fi
4316
4317 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4318 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4319     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4320 if test "${enable_maintainer_mode+set}" = set; then
4321   enableval="$enable_maintainer_mode"
4322   USE_MAINTAINER_MODE=$enableval
4323 else
4324   USE_MAINTAINER_MODE=no
4325 fi;
4326   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4327 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4328
4329
4330 if test $USE_MAINTAINER_MODE = yes; then
4331   MAINTAINER_MODE_TRUE=
4332   MAINTAINER_MODE_FALSE='#'
4333 else
4334   MAINTAINER_MODE_TRUE='#'
4335   MAINTAINER_MODE_FALSE=
4336 fi
4337
4338   MAINT=$MAINTAINER_MODE_TRUE
4339
4340
4341  case ${build_alias} in
4342   "") build_noncanonical=${build} ;;
4343   *) build_noncanonical=${build_alias} ;;
4344 esac
4345
4346  case ${host_alias} in
4347   "") host_noncanonical=${build_noncanonical} ;;
4348   *) host_noncanonical=${host_alias} ;;
4349 esac
4350
4351  case ${target_alias} in
4352   "") target_noncanonical=${host_noncanonical} ;;
4353   *) target_noncanonical=${target_alias} ;;
4354 esac
4355
4356 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4357 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4358   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4359 if test "${enable_install_libbfd+set}" = set; then
4360   enableval="$enable_install_libbfd"
4361   install_libbfd_p=$enableval
4362 else
4363   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4364         install_libbfd_p=yes
4365       else
4366         install_libbfd_p=no
4367       fi
4368 fi;
4369   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4370 echo "${ECHO_T}$install_libbfd_p" >&6
4371
4372
4373 if test $install_libbfd_p = yes; then
4374   INSTALL_LIBBFD_TRUE=
4375   INSTALL_LIBBFD_FALSE='#'
4376 else
4377   INSTALL_LIBBFD_TRUE='#'
4378   INSTALL_LIBBFD_FALSE=
4379 fi
4380
4381   # Need _noncanonical variables for this.
4382
4383
4384
4385
4386   # libbfd.a is a host library containing target dependent code
4387   bfdlibdir='$(libdir)'
4388   bfdincludedir='$(includedir)'
4389   if test "${host}" != "${target}"; then
4390     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4391     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4392   fi
4393
4394
4395
4396
4397
4398
4399 host64=false
4400 target64=false
4401 bfd_default_target_size=32
4402
4403 # host stuff:
4404
4405 ac_ext=c
4406 ac_cpp='$CPP $CPPFLAGS'
4407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410 if test -n "$ac_tool_prefix"; then
4411   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4412 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_prog_CC+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test -n "$CC"; then
4419   ac_cv_prog_CC="$CC" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434
4435 fi
4436 fi
4437 CC=$ac_cv_prog_CC
4438 if test -n "$CC"; then
4439   echo "$as_me:$LINENO: result: $CC" >&5
4440 echo "${ECHO_T}$CC" >&6
4441 else
4442   echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4444 fi
4445
4446 fi
4447 if test -z "$ac_cv_prog_CC"; then
4448   ac_ct_CC=$CC
4449   # Extract the first word of "gcc", so it can be a program name with args.
4450 set dummy gcc; ac_word=$2
4451 echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   if test -n "$ac_ct_CC"; then
4457   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466     ac_cv_prog_ac_ct_CC="gcc"
4467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468     break 2
4469   fi
4470 done
4471 done
4472
4473 fi
4474 fi
4475 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476 if test -n "$ac_ct_CC"; then
4477   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4478 echo "${ECHO_T}$ac_ct_CC" >&6
4479 else
4480   echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4482 fi
4483
4484   CC=$ac_ct_CC
4485 else
4486   CC="$ac_cv_prog_CC"
4487 fi
4488
4489 if test -z "$CC"; then
4490   if test -n "$ac_tool_prefix"; then
4491   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}cc; ac_word=$2
4493 echo "$as_me:$LINENO: checking for $ac_word" >&5
4494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495 if test "${ac_cv_prog_CC+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   if test -n "$CC"; then
4499   ac_cv_prog_CC="$CC" # Let the user override the test.
4500 else
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508     ac_cv_prog_CC="${ac_tool_prefix}cc"
4509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510     break 2
4511   fi
4512 done
4513 done
4514
4515 fi
4516 fi
4517 CC=$ac_cv_prog_CC
4518 if test -n "$CC"; then
4519   echo "$as_me:$LINENO: result: $CC" >&5
4520 echo "${ECHO_T}$CC" >&6
4521 else
4522   echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6
4524 fi
4525
4526 fi
4527 if test -z "$ac_cv_prog_CC"; then
4528   ac_ct_CC=$CC
4529   # Extract the first word of "cc", so it can be a program name with args.
4530 set dummy cc; ac_word=$2
4531 echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4534   echo $ECHO_N "(cached) $ECHO_C" >&6
4535 else
4536   if test -n "$ac_ct_CC"; then
4537   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544   for ac_exec_ext in '' $ac_executable_extensions; do
4545   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546     ac_cv_prog_ac_ct_CC="cc"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552
4553 fi
4554 fi
4555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4556 if test -n "$ac_ct_CC"; then
4557   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4558 echo "${ECHO_T}$ac_ct_CC" >&6
4559 else
4560   echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4562 fi
4563
4564   CC=$ac_ct_CC
4565 else
4566   CC="$ac_cv_prog_CC"
4567 fi
4568
4569 fi
4570 if test -z "$CC"; then
4571   # Extract the first word of "cc", so it can be a program name with args.
4572 set dummy cc; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_prog_CC+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test -n "$CC"; then
4579   ac_cv_prog_CC="$CC" # Let the user override the test.
4580 else
4581   ac_prog_rejected=no
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4584 do
4585   IFS=$as_save_IFS
4586   test -z "$as_dir" && as_dir=.
4587   for ac_exec_ext in '' $ac_executable_extensions; do
4588   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4590        ac_prog_rejected=yes
4591        continue
4592      fi
4593     ac_cv_prog_CC="cc"
4594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595     break 2
4596   fi
4597 done
4598 done
4599
4600 if test $ac_prog_rejected = yes; then
4601   # We found a bogon in the path, so make sure we never use it.
4602   set dummy $ac_cv_prog_CC
4603   shift
4604   if test $# != 0; then
4605     # We chose a different compiler from the bogus one.
4606     # However, it has the same basename, so the bogon will be chosen
4607     # first if we set CC to just the basename; use the full file name.
4608     shift
4609     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610   fi
4611 fi
4612 fi
4613 fi
4614 CC=$ac_cv_prog_CC
4615 if test -n "$CC"; then
4616   echo "$as_me:$LINENO: result: $CC" >&5
4617 echo "${ECHO_T}$CC" >&6
4618 else
4619   echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4621 fi
4622
4623 fi
4624 if test -z "$CC"; then
4625   if test -n "$ac_tool_prefix"; then
4626   for ac_prog in cl
4627   do
4628     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630 echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_CC+set}" = set; then
4633   echo $ECHO_N "(cached) $ECHO_C" >&6
4634 else
4635   if test -n "$CC"; then
4636   ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647     break 2
4648   fi
4649 done
4650 done
4651
4652 fi
4653 fi
4654 CC=$ac_cv_prog_CC
4655 if test -n "$CC"; then
4656   echo "$as_me:$LINENO: result: $CC" >&5
4657 echo "${ECHO_T}$CC" >&6
4658 else
4659   echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6
4661 fi
4662
4663     test -n "$CC" && break
4664   done
4665 fi
4666 if test -z "$CC"; then
4667   ac_ct_CC=$CC
4668   for ac_prog in cl
4669 do
4670   # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$ac_ct_CC"; then
4678   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687     ac_cv_prog_ac_ct_CC="$ac_prog"
4688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693
4694 fi
4695 fi
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4699 echo "${ECHO_T}$ac_ct_CC" >&6
4700 else
4701   echo "$as_me:$LINENO: result: no" >&5
4702 echo "${ECHO_T}no" >&6
4703 fi
4704
4705   test -n "$ac_ct_CC" && break
4706 done
4707
4708   CC=$ac_ct_CC
4709 fi
4710
4711 fi
4712
4713
4714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4715 See \`config.log' for more details." >&5
4716 echo "$as_me: error: no acceptable C compiler found in \$PATH
4717 See \`config.log' for more details." >&2;}
4718    { (exit 1); exit 1; }; }
4719
4720 # Provide some information about the compiler.
4721 echo "$as_me:$LINENO:" \
4722      "checking for C compiler version" >&5
4723 ac_compiler=`set X $ac_compile; echo $2`
4724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4725   (eval $ac_compiler --version </dev/null >&5) 2>&5
4726   ac_status=$?
4727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728   (exit $ac_status); }
4729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4730   (eval $ac_compiler -v </dev/null >&5) 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }
4734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4735   (eval $ac_compiler -V </dev/null >&5) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }
4739
4740 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4741 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4742 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h.  */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h.  */
4751
4752 int
4753 main ()
4754 {
4755 #ifndef __GNUC__
4756        choke me
4757 #endif
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765   (eval $ac_compile) 2>conftest.er1
4766   ac_status=$?
4767   grep -v '^ *+' conftest.er1 >conftest.err
4768   rm -f conftest.er1
4769   cat conftest.err >&5
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -z "$ac_c_werror_flag"
4773                          || test ! -s conftest.err'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; } &&
4779          { ac_try='test -s conftest.$ac_objext'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; }; then
4785   ac_compiler_gnu=yes
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 ac_compiler_gnu=no
4791 fi
4792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794
4795 fi
4796 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4797 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4798 GCC=`test $ac_compiler_gnu = yes && echo yes`
4799 ac_test_CFLAGS=${CFLAGS+set}
4800 ac_save_CFLAGS=$CFLAGS
4801 CFLAGS="-g"
4802 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4803 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4804 if test "${ac_cv_prog_cc_g+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813
4814 int
4815 main ()
4816 {
4817
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 rm -f conftest.$ac_objext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824   (eval $ac_compile) 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } &&
4831          { ac_try='test -z "$ac_c_werror_flag"
4832                          || test ! -s conftest.err'
4833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834   (eval $ac_try) 2>&5
4835   ac_status=$?
4836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837   (exit $ac_status); }; } &&
4838          { ac_try='test -s conftest.$ac_objext'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; }; then
4844   ac_cv_prog_cc_g=yes
4845 else
4846   echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 ac_cv_prog_cc_g=no
4850 fi
4851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852 fi
4853 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4854 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4855 if test "$ac_test_CFLAGS" = set; then
4856   CFLAGS=$ac_save_CFLAGS
4857 elif test $ac_cv_prog_cc_g = yes; then
4858   if test "$GCC" = yes; then
4859     CFLAGS="-g -O2"
4860   else
4861     CFLAGS="-g"
4862   fi
4863 else
4864   if test "$GCC" = yes; then
4865     CFLAGS="-O2"
4866   else
4867     CFLAGS=
4868   fi
4869 fi
4870 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4871 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4872 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4873   echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875   ac_cv_prog_cc_stdc=no
4876 ac_save_CC=$CC
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 #include <stdarg.h>
4884 #include <stdio.h>
4885 #include <sys/types.h>
4886 #include <sys/stat.h>
4887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4888 struct buf { int x; };
4889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890 static char *e (p, i)
4891      char **p;
4892      int i;
4893 {
4894   return p[i];
4895 }
4896 static char *f (char * (*g) (char **, int), char **p, ...)
4897 {
4898   char *s;
4899   va_list v;
4900   va_start (v,p);
4901   s = g (p, va_arg (v,int));
4902   va_end (v);
4903   return s;
4904 }
4905
4906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4907    function prototypes and stuff, but not '\xHH' hex character constants.
4908    These don't provoke an error unfortunately, instead are silently treated
4909    as 'x'.  The following induces an error, until -std1 is added to get
4910    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4911    array size at least.  It's necessary to write '\x00'==0 to get something
4912    that's true only with -std1.  */
4913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4914
4915 int test (int i, double x);
4916 struct s1 {int (*f) (int a);};
4917 struct s2 {int (*f) (double a);};
4918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4919 int argc;
4920 char **argv;
4921 int
4922 main ()
4923 {
4924 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4925   ;
4926   return 0;
4927 }
4928 _ACEOF
4929 # Don't try gcc -ansi; that turns off useful extensions and
4930 # breaks some systems' header files.
4931 # AIX                   -qlanglvl=ansi
4932 # Ultrix and OSF/1      -std1
4933 # HP-UX 10.20 and later -Ae
4934 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4935 # SVR4                  -Xc -D__EXTENSIONS__
4936 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4937 do
4938   CC="$ac_save_CC $ac_arg"
4939   rm -f conftest.$ac_objext
4940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941   (eval $ac_compile) 2>conftest.er1
4942   ac_status=$?
4943   grep -v '^ *+' conftest.er1 >conftest.err
4944   rm -f conftest.er1
4945   cat conftest.err >&5
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); } &&
4948          { ac_try='test -z "$ac_c_werror_flag"
4949                          || test ! -s conftest.err'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; } &&
4955          { ac_try='test -s conftest.$ac_objext'
4956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957   (eval $ac_try) 2>&5
4958   ac_status=$?
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); }; }; then
4961   ac_cv_prog_cc_stdc=$ac_arg
4962 break
4963 else
4964   echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 fi
4968 rm -f conftest.err conftest.$ac_objext
4969 done
4970 rm -f conftest.$ac_ext conftest.$ac_objext
4971 CC=$ac_save_CC
4972
4973 fi
4974
4975 case "x$ac_cv_prog_cc_stdc" in
4976   x|xno)
4977     echo "$as_me:$LINENO: result: none needed" >&5
4978 echo "${ECHO_T}none needed" >&6 ;;
4979   *)
4980     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4981 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4982     CC="$CC $ac_cv_prog_cc_stdc" ;;
4983 esac
4984
4985 # Some people use a C++ compiler to compile C.  Since we use `exit',
4986 # in C++ we need to declare it.  In case someone uses the same compiler
4987 # for both compiling C and C++ we need to have the C++ compiler decide
4988 # the declaration of exit, since it's the most demanding environment.
4989 cat >conftest.$ac_ext <<_ACEOF
4990 #ifndef __cplusplus
4991   choke me
4992 #endif
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996   (eval $ac_compile) 2>conftest.er1
4997   ac_status=$?
4998   grep -v '^ *+' conftest.er1 >conftest.err
4999   rm -f conftest.er1
5000   cat conftest.err >&5
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } &&
5003          { ac_try='test -z "$ac_c_werror_flag"
5004                          || test ! -s conftest.err'
5005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006   (eval $ac_try) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); }; } &&
5010          { ac_try='test -s conftest.$ac_objext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   for ac_declaration in \
5017    '' \
5018    'extern "C" void std::exit (int) throw (); using std::exit;' \
5019    'extern "C" void std::exit (int); using std::exit;' \
5020    'extern "C" void exit (int) throw ();' \
5021    'extern "C" void exit (int);' \
5022    'void exit (int);'
5023 do
5024   cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030 $ac_declaration
5031 #include <stdlib.h>
5032 int
5033 main ()
5034 {
5035 exit (42);
5036   ;
5037   return 0;
5038 }
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042   (eval $ac_compile) 2>conftest.er1
5043   ac_status=$?
5044   grep -v '^ *+' conftest.er1 >conftest.err
5045   rm -f conftest.er1
5046   cat conftest.err >&5
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); } &&
5049          { ac_try='test -z "$ac_c_werror_flag"
5050                          || test ! -s conftest.err'
5051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052   (eval $ac_try) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); }; } &&
5056          { ac_try='test -s conftest.$ac_objext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   :
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5066
5067 continue
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 $ac_declaration
5077 int
5078 main ()
5079 {
5080 exit (42);
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087   (eval $ac_compile) 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } &&
5094          { ac_try='test -z "$ac_c_werror_flag"
5095                          || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest.$ac_objext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   break
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 fi
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114 done
5115 rm -f conftest*
5116 if test -n "$ac_declaration"; then
5117   echo '#ifdef __cplusplus' >>confdefs.h
5118   echo $ac_declaration      >>confdefs.h
5119   echo '#endif'             >>confdefs.h
5120 fi
5121
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 fi
5127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5136 if test -n "$ac_tool_prefix"; then
5137   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5139 echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141 if test "${ac_cv_prog_RANLIB+set}" = set; then
5142   echo $ECHO_N "(cached) $ECHO_C" >&6
5143 else
5144   if test -n "$RANLIB"; then
5145   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5146 else
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152   for ac_exec_ext in '' $ac_executable_extensions; do
5153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159 done
5160
5161 fi
5162 fi
5163 RANLIB=$ac_cv_prog_RANLIB
5164 if test -n "$RANLIB"; then
5165   echo "$as_me:$LINENO: result: $RANLIB" >&5
5166 echo "${ECHO_T}$RANLIB" >&6
5167 else
5168   echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5170 fi
5171
5172 fi
5173 if test -z "$ac_cv_prog_RANLIB"; then
5174   ac_ct_RANLIB=$RANLIB
5175   # Extract the first word of "ranlib", so it can be a program name with args.
5176 set dummy ranlib; ac_word=$2
5177 echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if test -n "$ac_ct_RANLIB"; then
5183   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188   IFS=$as_save_IFS
5189   test -z "$as_dir" && as_dir=.
5190   for ac_exec_ext in '' $ac_executable_extensions; do
5191   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192     ac_cv_prog_ac_ct_RANLIB="ranlib"
5193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194     break 2
5195   fi
5196 done
5197 done
5198
5199   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5200 fi
5201 fi
5202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5203 if test -n "$ac_ct_RANLIB"; then
5204   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5205 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5206 else
5207   echo "$as_me:$LINENO: result: no" >&5
5208 echo "${ECHO_T}no" >&6
5209 fi
5210
5211   RANLIB=$ac_ct_RANLIB
5212 else
5213   RANLIB="$ac_cv_prog_RANLIB"
5214 fi
5215
5216 ac_ext=c
5217 ac_cpp='$CPP $CPPFLAGS'
5218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5222 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5223 # On Suns, sometimes $CPP names a directory.
5224 if test -n "$CPP" && test -d "$CPP"; then
5225   CPP=
5226 fi
5227 if test -z "$CPP"; then
5228   if test "${ac_cv_prog_CPP+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231       # Double quotes because CPP needs to be expanded
5232     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5233     do
5234       ac_preproc_ok=false
5235 for ac_c_preproc_warn_flag in '' yes
5236 do
5237   # Use a header file that comes with gcc, so configuring glibc
5238   # with a fresh cross-compiler works.
5239   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240   # <limits.h> exists even on freestanding compilers.
5241   # On the NeXT, cc -E runs the code through the compiler's parser,
5242   # not just through cpp. "Syntax error" is here to catch this case.
5243   cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h.  */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h.  */
5249 #ifdef __STDC__
5250 # include <limits.h>
5251 #else
5252 # include <assert.h>
5253 #endif
5254                      Syntax error
5255 _ACEOF
5256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5258   ac_status=$?
5259   grep -v '^ *+' conftest.er1 >conftest.err
5260   rm -f conftest.er1
5261   cat conftest.err >&5
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } >/dev/null; then
5264   if test -s conftest.err; then
5265     ac_cpp_err=$ac_c_preproc_warn_flag
5266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267   else
5268     ac_cpp_err=
5269   fi
5270 else
5271   ac_cpp_err=yes
5272 fi
5273 if test -z "$ac_cpp_err"; then
5274   :
5275 else
5276   echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5278
5279   # Broken: fails on valid input.
5280 continue
5281 fi
5282 rm -f conftest.err conftest.$ac_ext
5283
5284   # OK, works on sane cases.  Now check whether non-existent headers
5285   # can be detected and how.
5286   cat >conftest.$ac_ext <<_ACEOF
5287 /* confdefs.h.  */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h.  */
5292 #include <ac_nonexistent.h>
5293 _ACEOF
5294 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5295   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5296   ac_status=$?
5297   grep -v '^ *+' conftest.er1 >conftest.err
5298   rm -f conftest.er1
5299   cat conftest.err >&5
5300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301   (exit $ac_status); } >/dev/null; then
5302   if test -s conftest.err; then
5303     ac_cpp_err=$ac_c_preproc_warn_flag
5304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5305   else
5306     ac_cpp_err=
5307   fi
5308 else
5309   ac_cpp_err=yes
5310 fi
5311 if test -z "$ac_cpp_err"; then
5312   # Broken: success on invalid input.
5313 continue
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318   # Passes both tests.
5319 ac_preproc_ok=:
5320 break
5321 fi
5322 rm -f conftest.err conftest.$ac_ext
5323
5324 done
5325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5326 rm -f conftest.err conftest.$ac_ext
5327 if $ac_preproc_ok; then
5328   break
5329 fi
5330
5331     done
5332     ac_cv_prog_CPP=$CPP
5333
5334 fi
5335   CPP=$ac_cv_prog_CPP
5336 else
5337   ac_cv_prog_CPP=$CPP
5338 fi
5339 echo "$as_me:$LINENO: result: $CPP" >&5
5340 echo "${ECHO_T}$CPP" >&6
5341 ac_preproc_ok=false
5342 for ac_c_preproc_warn_flag in '' yes
5343 do
5344   # Use a header file that comes with gcc, so configuring glibc
5345   # with a fresh cross-compiler works.
5346   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347   # <limits.h> exists even on freestanding compilers.
5348   # On the NeXT, cc -E runs the code through the compiler's parser,
5349   # not just through cpp. "Syntax error" is here to catch this case.
5350   cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356 #ifdef __STDC__
5357 # include <limits.h>
5358 #else
5359 # include <assert.h>
5360 #endif
5361                      Syntax error
5362 _ACEOF
5363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365   ac_status=$?
5366   grep -v '^ *+' conftest.er1 >conftest.err
5367   rm -f conftest.er1
5368   cat conftest.err >&5
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); } >/dev/null; then
5371   if test -s conftest.err; then
5372     ac_cpp_err=$ac_c_preproc_warn_flag
5373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5374   else
5375     ac_cpp_err=
5376   fi
5377 else
5378   ac_cpp_err=yes
5379 fi
5380 if test -z "$ac_cpp_err"; then
5381   :
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386   # Broken: fails on valid input.
5387 continue
5388 fi
5389 rm -f conftest.err conftest.$ac_ext
5390
5391   # OK, works on sane cases.  Now check whether non-existent headers
5392   # can be detected and how.
5393   cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h.  */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h.  */
5399 #include <ac_nonexistent.h>
5400 _ACEOF
5401 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5402   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5403   ac_status=$?
5404   grep -v '^ *+' conftest.er1 >conftest.err
5405   rm -f conftest.er1
5406   cat conftest.err >&5
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } >/dev/null; then
5409   if test -s conftest.err; then
5410     ac_cpp_err=$ac_c_preproc_warn_flag
5411     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5412   else
5413     ac_cpp_err=
5414   fi
5415 else
5416   ac_cpp_err=yes
5417 fi
5418 if test -z "$ac_cpp_err"; then
5419   # Broken: success on invalid input.
5420 continue
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425   # Passes both tests.
5426 ac_preproc_ok=:
5427 break
5428 fi
5429 rm -f conftest.err conftest.$ac_ext
5430
5431 done
5432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5433 rm -f conftest.err conftest.$ac_ext
5434 if $ac_preproc_ok; then
5435   :
5436 else
5437   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5438 See \`config.log' for more details." >&5
5439 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5440 See \`config.log' for more details." >&2;}
5441    { (exit 1); exit 1; }; }
5442 fi
5443
5444 ac_ext=c
5445 ac_cpp='$CPP $CPPFLAGS'
5446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449
5450
5451 echo "$as_me:$LINENO: checking for egrep" >&5
5452 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5453 if test "${ac_cv_prog_egrep+set}" = set; then
5454   echo $ECHO_N "(cached) $ECHO_C" >&6
5455 else
5456   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5457     then ac_cv_prog_egrep='grep -E'
5458     else ac_cv_prog_egrep='egrep'
5459     fi
5460 fi
5461 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5462 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5463  EGREP=$ac_cv_prog_egrep
5464
5465
5466 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5467 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5468 if test "${ac_cv_header_stdc+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 #include <stdlib.h>
5478 #include <stdarg.h>
5479 #include <string.h>
5480 #include <float.h>
5481
5482 int
5483 main ()
5484 {
5485
5486   ;
5487   return 0;
5488 }
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492   (eval $ac_compile) 2>conftest.er1
5493   ac_status=$?
5494   grep -v '^ *+' conftest.er1 >conftest.err
5495   rm -f conftest.er1
5496   cat conftest.err >&5
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); } &&
5499          { ac_try='test -z "$ac_c_werror_flag"
5500                          || test ! -s conftest.err'
5501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502   (eval $ac_try) 2>&5
5503   ac_status=$?
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); }; } &&
5506          { ac_try='test -s conftest.$ac_objext'
5507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); }; }; then
5512   ac_cv_header_stdc=yes
5513 else
5514   echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517 ac_cv_header_stdc=no
5518 fi
5519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5520
5521 if test $ac_cv_header_stdc = yes; then
5522   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5523   cat >conftest.$ac_ext <<_ACEOF
5524 /* confdefs.h.  */
5525 _ACEOF
5526 cat confdefs.h >>conftest.$ac_ext
5527 cat >>conftest.$ac_ext <<_ACEOF
5528 /* end confdefs.h.  */
5529 #include <string.h>
5530
5531 _ACEOF
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533   $EGREP "memchr" >/dev/null 2>&1; then
5534   :
5535 else
5536   ac_cv_header_stdc=no
5537 fi
5538 rm -f conftest*
5539
5540 fi
5541
5542 if test $ac_cv_header_stdc = yes; then
5543   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5544   cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550 #include <stdlib.h>
5551
5552 _ACEOF
5553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554   $EGREP "free" >/dev/null 2>&1; then
5555   :
5556 else
5557   ac_cv_header_stdc=no
5558 fi
5559 rm -f conftest*
5560
5561 fi
5562
5563 if test $ac_cv_header_stdc = yes; then
5564   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5565   if test "$cross_compiling" = yes; then
5566   :
5567 else
5568   cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h.  */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h.  */
5574 #include <ctype.h>
5575 #if ((' ' & 0x0FF) == 0x020)
5576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5578 #else
5579 # define ISLOWER(c) \
5580                    (('a' <= (c) && (c) <= 'i') \
5581                      || ('j' <= (c) && (c) <= 'r') \
5582                      || ('s' <= (c) && (c) <= 'z'))
5583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5584 #endif
5585
5586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587 int
5588 main ()
5589 {
5590   int i;
5591   for (i = 0; i < 256; i++)
5592     if (XOR (islower (i), ISLOWER (i))
5593         || toupper (i) != TOUPPER (i))
5594       exit(2);
5595   exit (0);
5596 }
5597 _ACEOF
5598 rm -f conftest$ac_exeext
5599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600   (eval $ac_link) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605   (eval $ac_try) 2>&5
5606   ac_status=$?
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); }; }; then
5609   :
5610 else
5611   echo "$as_me: program exited with status $ac_status" >&5
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615 ( exit $ac_status )
5616 ac_cv_header_stdc=no
5617 fi
5618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 fi
5621 fi
5622 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5623 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5624 if test $ac_cv_header_stdc = yes; then
5625
5626 cat >>confdefs.h <<\_ACEOF
5627 #define STDC_HEADERS 1
5628 _ACEOF
5629
5630 fi
5631
5632 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5633 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5634 if test "${ac_cv_c_const+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643
5644 int
5645 main ()
5646 {
5647 /* FIXME: Include the comments suggested by Paul. */
5648 #ifndef __cplusplus
5649   /* Ultrix mips cc rejects this.  */
5650   typedef int charset[2];
5651   const charset x;
5652   /* SunOS 4.1.1 cc rejects this.  */
5653   char const *const *ccp;
5654   char **p;
5655   /* NEC SVR4.0.2 mips cc rejects this.  */
5656   struct point {int x, y;};
5657   static struct point const zero = {0,0};
5658   /* AIX XL C 1.02.0.0 rejects this.
5659      It does not let you subtract one const X* pointer from another in
5660      an arm of an if-expression whose if-part is not a constant
5661      expression */
5662   const char *g = "string";
5663   ccp = &g + (g ? g-g : 0);
5664   /* HPUX 7.0 cc rejects these. */
5665   ++ccp;
5666   p = (char**) ccp;
5667   ccp = (char const *const *) p;
5668   { /* SCO 3.2v4 cc rejects this.  */
5669     char *t;
5670     char const *s = 0 ? (char *) 0 : (char const *) 0;
5671
5672     *t++ = 0;
5673   }
5674   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5675     int x[] = {25, 17};
5676     const int *foo = &x[0];
5677     ++foo;
5678   }
5679   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5680     typedef const int *iptr;
5681     iptr p = 0;
5682     ++p;
5683   }
5684   { /* AIX XL C 1.02.0.0 rejects this saying
5685        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5686     struct s { int j; const int *ap[3]; };
5687     struct s *b; b->j = 5;
5688   }
5689   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5690     const int foo = 10;
5691   }
5692 #endif
5693
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>conftest.er1
5701   ac_status=$?
5702   grep -v '^ *+' conftest.er1 >conftest.err
5703   rm -f conftest.er1
5704   cat conftest.err >&5
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); } &&
5707          { ac_try='test -z "$ac_c_werror_flag"
5708                          || test ! -s conftest.err'
5709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710   (eval $ac_try) 2>&5
5711   ac_status=$?
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); }; } &&
5714          { ac_try='test -s conftest.$ac_objext'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; }; then
5720   ac_cv_c_const=yes
5721 else
5722   echo "$as_me: failed program was:" >&5
5723 sed 's/^/| /' conftest.$ac_ext >&5
5724
5725 ac_cv_c_const=no
5726 fi
5727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728 fi
5729 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5730 echo "${ECHO_T}$ac_cv_c_const" >&6
5731 if test $ac_cv_c_const = no; then
5732
5733 cat >>confdefs.h <<\_ACEOF
5734 #define const
5735 _ACEOF
5736
5737 fi
5738
5739 echo "$as_me:$LINENO: checking for inline" >&5
5740 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5741 if test "${ac_cv_c_inline+set}" = set; then
5742   echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744   ac_cv_c_inline=no
5745 for ac_kw in inline __inline__ __inline; do
5746   cat >conftest.$ac_ext <<_ACEOF
5747 /* confdefs.h.  */
5748 _ACEOF
5749 cat confdefs.h >>conftest.$ac_ext
5750 cat >>conftest.$ac_ext <<_ACEOF
5751 /* end confdefs.h.  */
5752 #ifndef __cplusplus
5753 typedef int foo_t;
5754 static $ac_kw foo_t static_foo () {return 0; }
5755 $ac_kw foo_t foo () {return 0; }
5756 #endif
5757
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761   (eval $ac_compile) 2>conftest.er1
5762   ac_status=$?
5763   grep -v '^ *+' conftest.er1 >conftest.err
5764   rm -f conftest.er1
5765   cat conftest.err >&5
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); } &&
5768          { ac_try='test -z "$ac_c_werror_flag"
5769                          || test ! -s conftest.err'
5770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771   (eval $ac_try) 2>&5
5772   ac_status=$?
5773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774   (exit $ac_status); }; } &&
5775          { ac_try='test -s conftest.$ac_objext'
5776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777   (eval $ac_try) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); }; }; then
5781   ac_cv_c_inline=$ac_kw; break
5782 else
5783   echo "$as_me: failed program was:" >&5
5784 sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 fi
5787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5788 done
5789
5790 fi
5791 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5792 echo "${ECHO_T}$ac_cv_c_inline" >&6
5793
5794
5795 case $ac_cv_c_inline in
5796   inline | yes) ;;
5797   *)
5798     case $ac_cv_c_inline in
5799       no) ac_val=;;
5800       *) ac_val=$ac_cv_c_inline;;
5801     esac
5802     cat >>confdefs.h <<_ACEOF
5803 #ifndef __cplusplus
5804 #define inline $ac_val
5805 #endif
5806 _ACEOF
5807     ;;
5808 esac
5809
5810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5821                   inttypes.h stdint.h unistd.h
5822 do
5823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5824 echo "$as_me:$LINENO: checking for $ac_header" >&5
5825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 $ac_includes_default
5836
5837 #include <$ac_header>
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841   (eval $ac_compile) 2>conftest.er1
5842   ac_status=$?
5843   grep -v '^ *+' conftest.er1 >conftest.err
5844   rm -f conftest.er1
5845   cat conftest.err >&5
5846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); } &&
5848          { ac_try='test -z "$ac_c_werror_flag"
5849                          || test ! -s conftest.err'
5850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851   (eval $ac_try) 2>&5
5852   ac_status=$?
5853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854   (exit $ac_status); }; } &&
5855          { ac_try='test -s conftest.$ac_objext'
5856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857   (eval $ac_try) 2>&5
5858   ac_status=$?
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); }; }; then
5861   eval "$as_ac_Header=yes"
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866 eval "$as_ac_Header=no"
5867 fi
5868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869 fi
5870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5873   cat >>confdefs.h <<_ACEOF
5874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5875 _ACEOF
5876
5877 fi
5878
5879 done
5880
5881
5882 echo "$as_me:$LINENO: checking for off_t" >&5
5883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5884 if test "${ac_cv_type_off_t+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 $ac_includes_default
5894 int
5895 main ()
5896 {
5897 if ((off_t *) 0)
5898   return 0;
5899 if (sizeof (off_t))
5900   return 0;
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907   (eval $ac_compile) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest.$ac_objext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   ac_cv_type_off_t=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 ac_cv_type_off_t=no
5933 fi
5934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935 fi
5936 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5937 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5938 if test $ac_cv_type_off_t = yes; then
5939   :
5940 else
5941
5942 cat >>confdefs.h <<_ACEOF
5943 #define off_t long
5944 _ACEOF
5945
5946 fi
5947
5948 echo "$as_me:$LINENO: checking for size_t" >&5
5949 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5950 if test "${ac_cv_type_size_t+set}" = set; then
5951   echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953   cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959 $ac_includes_default
5960 int
5961 main ()
5962 {
5963 if ((size_t *) 0)
5964   return 0;
5965 if (sizeof (size_t))
5966   return 0;
5967   ;
5968   return 0;
5969 }
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973   (eval $ac_compile) 2>conftest.er1
5974   ac_status=$?
5975   grep -v '^ *+' conftest.er1 >conftest.err
5976   rm -f conftest.er1
5977   cat conftest.err >&5
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -z "$ac_c_werror_flag"
5981                          || test ! -s conftest.err'
5982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983   (eval $ac_try) 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; } &&
5987          { ac_try='test -s conftest.$ac_objext'
5988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989   (eval $ac_try) 2>&5
5990   ac_status=$?
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); }; }; then
5993   ac_cv_type_size_t=yes
5994 else
5995   echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_cv_type_size_t=no
5999 fi
6000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001 fi
6002 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6003 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6004 if test $ac_cv_type_size_t = yes; then
6005   :
6006 else
6007
6008 cat >>confdefs.h <<_ACEOF
6009 #define size_t unsigned
6010 _ACEOF
6011
6012 fi
6013
6014 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6015 # for constant arguments.  Useless!
6016 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6017 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6018 if test "${ac_cv_working_alloca_h+set}" = set; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021   cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h.  */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h.  */
6027 #include <alloca.h>
6028 int
6029 main ()
6030 {
6031 char *p = (char *) alloca (2 * sizeof (int));
6032   ;
6033   return 0;
6034 }
6035 _ACEOF
6036 rm -f conftest.$ac_objext conftest$ac_exeext
6037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6038   (eval $ac_link) 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -z "$ac_c_werror_flag"
6046                          || test ! -s conftest.err'
6047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048   (eval $ac_try) 2>&5
6049   ac_status=$?
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); }; } &&
6052          { ac_try='test -s conftest$ac_exeext'
6053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054   (eval $ac_try) 2>&5
6055   ac_status=$?
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); }; }; then
6058   ac_cv_working_alloca_h=yes
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 ac_cv_working_alloca_h=no
6064 fi
6065 rm -f conftest.err conftest.$ac_objext \
6066       conftest$ac_exeext conftest.$ac_ext
6067 fi
6068 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6069 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6070 if test $ac_cv_working_alloca_h = yes; then
6071
6072 cat >>confdefs.h <<\_ACEOF
6073 #define HAVE_ALLOCA_H 1
6074 _ACEOF
6075
6076 fi
6077
6078 echo "$as_me:$LINENO: checking for alloca" >&5
6079 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6080 if test "${ac_cv_func_alloca_works+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 #ifdef __GNUC__
6090 # define alloca __builtin_alloca
6091 #else
6092 # ifdef _MSC_VER
6093 #  include <malloc.h>
6094 #  define alloca _alloca
6095 # else
6096 #  if HAVE_ALLOCA_H
6097 #   include <alloca.h>
6098 #  else
6099 #   ifdef _AIX
6100  #pragma alloca
6101 #   else
6102 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6103 char *alloca ();
6104 #    endif
6105 #   endif
6106 #  endif
6107 # endif
6108 #endif
6109
6110 int
6111 main ()
6112 {
6113 char *p = (char *) alloca (1);
6114   ;
6115   return 0;
6116 }
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120   (eval $ac_link) 2>conftest.er1
6121   ac_status=$?
6122   grep -v '^ *+' conftest.er1 >conftest.err
6123   rm -f conftest.er1
6124   cat conftest.err >&5
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } &&
6127          { ac_try='test -z "$ac_c_werror_flag"
6128                          || test ! -s conftest.err'
6129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130   (eval $ac_try) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; } &&
6134          { ac_try='test -s conftest$ac_exeext'
6135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136   (eval $ac_try) 2>&5
6137   ac_status=$?
6138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139   (exit $ac_status); }; }; then
6140   ac_cv_func_alloca_works=yes
6141 else
6142   echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145 ac_cv_func_alloca_works=no
6146 fi
6147 rm -f conftest.err conftest.$ac_objext \
6148       conftest$ac_exeext conftest.$ac_ext
6149 fi
6150 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6151 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6152
6153 if test $ac_cv_func_alloca_works = yes; then
6154
6155 cat >>confdefs.h <<\_ACEOF
6156 #define HAVE_ALLOCA 1
6157 _ACEOF
6158
6159 else
6160   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6161 # that cause trouble.  Some versions do not even contain alloca or
6162 # contain a buggy version.  If you still want to use their alloca,
6163 # use ar to extract alloca.o from them instead of compiling alloca.c.
6164
6165 ALLOCA=alloca.$ac_objext
6166
6167 cat >>confdefs.h <<\_ACEOF
6168 #define C_ALLOCA 1
6169 _ACEOF
6170
6171
6172 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6173 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6174 if test "${ac_cv_os_cray+set}" = set; then
6175   echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177   cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 #if defined(CRAY) && ! defined(CRAY2)
6184 webecray
6185 #else
6186 wenotbecray
6187 #endif
6188
6189 _ACEOF
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191   $EGREP "webecray" >/dev/null 2>&1; then
6192   ac_cv_os_cray=yes
6193 else
6194   ac_cv_os_cray=no
6195 fi
6196 rm -f conftest*
6197
6198 fi
6199 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6200 echo "${ECHO_T}$ac_cv_os_cray" >&6
6201 if test $ac_cv_os_cray = yes; then
6202   for ac_func in _getb67 GETB67 getb67; do
6203     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6204 echo "$as_me:$LINENO: checking for $ac_func" >&5
6205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6206 if eval "test \"\${$as_ac_var+set}\" = set"; then
6207   echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209   cat >conftest.$ac_ext <<_ACEOF
6210 /* confdefs.h.  */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h.  */
6215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6217 #define $ac_func innocuous_$ac_func
6218
6219 /* System header to define __stub macros and hopefully few prototypes,
6220     which can conflict with char $ac_func (); below.
6221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6222     <limits.h> exists even on freestanding compilers.  */
6223
6224 #ifdef __STDC__
6225 # include <limits.h>
6226 #else
6227 # include <assert.h>
6228 #endif
6229
6230 #undef $ac_func
6231
6232 /* Override any gcc2 internal prototype to avoid an error.  */
6233 #ifdef __cplusplus
6234 extern "C"
6235 {
6236 #endif
6237 /* We use char because int might match the return type of a gcc2
6238    builtin and then its argument prototype would still apply.  */
6239 char $ac_func ();
6240 /* The GNU C library defines this for functions which it implements
6241     to always fail with ENOSYS.  Some functions are actually named
6242     something starting with __ and the normal name is an alias.  */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244 choke me
6245 #else
6246 char (*f) () = $ac_func;
6247 #endif
6248 #ifdef __cplusplus
6249 }
6250 #endif
6251
6252 int
6253 main ()
6254 {
6255 return f != $ac_func;
6256   ;
6257   return 0;
6258 }
6259 _ACEOF
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262   (eval $ac_link) 2>conftest.er1
6263   ac_status=$?
6264   grep -v '^ *+' conftest.er1 >conftest.err
6265   rm -f conftest.er1
6266   cat conftest.err >&5
6267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } &&
6269          { ac_try='test -z "$ac_c_werror_flag"
6270                          || test ! -s conftest.err'
6271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272   (eval $ac_try) 2>&5
6273   ac_status=$?
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); }; } &&
6276          { ac_try='test -s conftest$ac_exeext'
6277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278   (eval $ac_try) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; }; then
6282   eval "$as_ac_var=yes"
6283 else
6284   echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 eval "$as_ac_var=no"
6288 fi
6289 rm -f conftest.err conftest.$ac_objext \
6290       conftest$ac_exeext conftest.$ac_ext
6291 fi
6292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6294 if test `eval echo '${'$as_ac_var'}'` = yes; then
6295
6296 cat >>confdefs.h <<_ACEOF
6297 #define CRAY_STACKSEG_END $ac_func
6298 _ACEOF
6299
6300     break
6301 fi
6302
6303   done
6304 fi
6305
6306 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6307 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6308 if test "${ac_cv_c_stack_direction+set}" = set; then
6309   echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311   if test "$cross_compiling" = yes; then
6312   ac_cv_c_stack_direction=0
6313 else
6314   cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h.  */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h.  */
6320 int
6321 find_stack_direction ()
6322 {
6323   static char *addr = 0;
6324   auto char dummy;
6325   if (addr == 0)
6326     {
6327       addr = &dummy;
6328       return find_stack_direction ();
6329     }
6330   else
6331     return (&dummy > addr) ? 1 : -1;
6332 }
6333
6334 int
6335 main ()
6336 {
6337   exit (find_stack_direction () < 0);
6338 }
6339 _ACEOF
6340 rm -f conftest$ac_exeext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342   (eval $ac_link) 2>&5
6343   ac_status=$?
6344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347   (eval $ac_try) 2>&5
6348   ac_status=$?
6349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350   (exit $ac_status); }; }; then
6351   ac_cv_c_stack_direction=1
6352 else
6353   echo "$as_me: program exited with status $ac_status" >&5
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6356
6357 ( exit $ac_status )
6358 ac_cv_c_stack_direction=-1
6359 fi
6360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6361 fi
6362 fi
6363 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6364 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6365
6366 cat >>confdefs.h <<_ACEOF
6367 #define STACK_DIRECTION $ac_cv_c_stack_direction
6368 _ACEOF
6369
6370
6371 fi
6372
6373
6374
6375 for ac_header in stdlib.h unistd.h
6376 do
6377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379   echo "$as_me:$LINENO: checking for $ac_header" >&5
6380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382   echo $ECHO_N "(cached) $ECHO_C" >&6
6383 fi
6384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 else
6387   # Is the header compilable?
6388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397 #include <$ac_header>
6398 _ACEOF
6399 rm -f conftest.$ac_objext
6400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401   (eval $ac_compile) 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -z "$ac_c_werror_flag"
6409                          || test ! -s conftest.err'
6410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411   (eval $ac_try) 2>&5
6412   ac_status=$?
6413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414   (exit $ac_status); }; } &&
6415          { ac_try='test -s conftest.$ac_objext'
6416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417   (eval $ac_try) 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_header_compiler=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_header_compiler=no
6427 fi
6428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430 echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432 # Is the header present?
6433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435 cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h.  */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h.  */
6441 #include <$ac_header>
6442 _ACEOF
6443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445   ac_status=$?
6446   grep -v '^ *+' conftest.er1 >conftest.err
6447   rm -f conftest.er1
6448   cat conftest.err >&5
6449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450   (exit $ac_status); } >/dev/null; then
6451   if test -s conftest.err; then
6452     ac_cpp_err=$ac_c_preproc_warn_flag
6453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454   else
6455     ac_cpp_err=
6456   fi
6457 else
6458   ac_cpp_err=yes
6459 fi
6460 if test -z "$ac_cpp_err"; then
6461   ac_header_preproc=yes
6462 else
6463   echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6465
6466   ac_header_preproc=no
6467 fi
6468 rm -f conftest.err conftest.$ac_ext
6469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470 echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472 # So?  What about this header?
6473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474   yes:no: )
6475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479     ac_header_preproc=yes
6480     ;;
6481   no:yes:* )
6482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6494     (
6495       cat <<\_ASBOX
6496 ## ------------------------------------------ ##
6497 ## Report this to the AC_PACKAGE_NAME lists.  ##
6498 ## ------------------------------------------ ##
6499 _ASBOX
6500     ) |
6501       sed "s/^/$as_me: WARNING:     /" >&2
6502     ;;
6503 esac
6504 echo "$as_me:$LINENO: checking for $ac_header" >&5
6505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   eval "$as_ac_Header=\$ac_header_preproc"
6510 fi
6511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6513
6514 fi
6515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516   cat >>confdefs.h <<_ACEOF
6517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518 _ACEOF
6519
6520 fi
6521
6522 done
6523
6524
6525 for ac_func in getpagesize
6526 do
6527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6528 echo "$as_me:$LINENO: checking for $ac_func" >&5
6529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6530 if eval "test \"\${$as_ac_var+set}\" = set"; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h.  */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h.  */
6539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6541 #define $ac_func innocuous_$ac_func
6542
6543 /* System header to define __stub macros and hopefully few prototypes,
6544     which can conflict with char $ac_func (); below.
6545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6546     <limits.h> exists even on freestanding compilers.  */
6547
6548 #ifdef __STDC__
6549 # include <limits.h>
6550 #else
6551 # include <assert.h>
6552 #endif
6553
6554 #undef $ac_func
6555
6556 /* Override any gcc2 internal prototype to avoid an error.  */
6557 #ifdef __cplusplus
6558 extern "C"
6559 {
6560 #endif
6561 /* We use char because int might match the return type of a gcc2
6562    builtin and then its argument prototype would still apply.  */
6563 char $ac_func ();
6564 /* The GNU C library defines this for functions which it implements
6565     to always fail with ENOSYS.  Some functions are actually named
6566     something starting with __ and the normal name is an alias.  */
6567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6568 choke me
6569 #else
6570 char (*f) () = $ac_func;
6571 #endif
6572 #ifdef __cplusplus
6573 }
6574 #endif
6575
6576 int
6577 main ()
6578 {
6579 return f != $ac_func;
6580   ;
6581   return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6586   (eval $ac_link) 2>conftest.er1
6587   ac_status=$?
6588   grep -v '^ *+' conftest.er1 >conftest.err
6589   rm -f conftest.er1
6590   cat conftest.err >&5
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); } &&
6593          { ac_try='test -z "$ac_c_werror_flag"
6594                          || test ! -s conftest.err'
6595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596   (eval $ac_try) 2>&5
6597   ac_status=$?
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); }; } &&
6600          { ac_try='test -s conftest$ac_exeext'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; }; then
6606   eval "$as_ac_var=yes"
6607 else
6608   echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611 eval "$as_ac_var=no"
6612 fi
6613 rm -f conftest.err conftest.$ac_objext \
6614       conftest$ac_exeext conftest.$ac_ext
6615 fi
6616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6618 if test `eval echo '${'$as_ac_var'}'` = yes; then
6619   cat >>confdefs.h <<_ACEOF
6620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6621 _ACEOF
6622
6623 fi
6624 done
6625
6626 echo "$as_me:$LINENO: checking for working mmap" >&5
6627 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6628 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   if test "$cross_compiling" = yes; then
6632   ac_cv_func_mmap_fixed_mapped=no
6633 else
6634   cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h.  */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h.  */
6640 $ac_includes_default
6641 /* malloc might have been renamed as rpl_malloc. */
6642 #undef malloc
6643
6644 /* Thanks to Mike Haertel and Jim Avera for this test.
6645    Here is a matrix of mmap possibilities:
6646         mmap private not fixed
6647         mmap private fixed at somewhere currently unmapped
6648         mmap private fixed at somewhere already mapped
6649         mmap shared not fixed
6650         mmap shared fixed at somewhere currently unmapped
6651         mmap shared fixed at somewhere already mapped
6652    For private mappings, we should verify that changes cannot be read()
6653    back from the file, nor mmap's back from the file at a different
6654    address.  (There have been systems where private was not correctly
6655    implemented like the infamous i386 svr4.0, and systems where the
6656    VM page cache was not coherent with the file system buffer cache
6657    like early versions of FreeBSD and possibly contemporary NetBSD.)
6658    For shared mappings, we should conversely verify that changes get
6659    propagated back to all the places they're supposed to be.
6660
6661    Grep wants private fixed already mapped.
6662    The main things grep needs to know about mmap are:
6663    * does it exist and is it safe to write into the mmap'd area
6664    * how to use it (BSD variants)  */
6665
6666 #include <fcntl.h>
6667 #include <sys/mman.h>
6668
6669 #if !STDC_HEADERS && !HAVE_STDLIB_H
6670 char *malloc ();
6671 #endif
6672
6673 /* This mess was copied from the GNU getpagesize.h.  */
6674 #if !HAVE_GETPAGESIZE
6675 /* Assume that all systems that can run configure have sys/param.h.  */
6676 # if !HAVE_SYS_PARAM_H
6677 #  define HAVE_SYS_PARAM_H 1
6678 # endif
6679
6680 # ifdef _SC_PAGESIZE
6681 #  define getpagesize() sysconf(_SC_PAGESIZE)
6682 # else /* no _SC_PAGESIZE */
6683 #  if HAVE_SYS_PARAM_H
6684 #   include <sys/param.h>
6685 #   ifdef EXEC_PAGESIZE
6686 #    define getpagesize() EXEC_PAGESIZE
6687 #   else /* no EXEC_PAGESIZE */
6688 #    ifdef NBPG
6689 #     define getpagesize() NBPG * CLSIZE
6690 #     ifndef CLSIZE
6691 #      define CLSIZE 1
6692 #     endif /* no CLSIZE */
6693 #    else /* no NBPG */
6694 #     ifdef NBPC
6695 #      define getpagesize() NBPC
6696 #     else /* no NBPC */
6697 #      ifdef PAGESIZE
6698 #       define getpagesize() PAGESIZE
6699 #      endif /* PAGESIZE */
6700 #     endif /* no NBPC */
6701 #    endif /* no NBPG */
6702 #   endif /* no EXEC_PAGESIZE */
6703 #  else /* no HAVE_SYS_PARAM_H */
6704 #   define getpagesize() 8192   /* punt totally */
6705 #  endif /* no HAVE_SYS_PARAM_H */
6706 # endif /* no _SC_PAGESIZE */
6707
6708 #endif /* no HAVE_GETPAGESIZE */
6709
6710 int
6711 main ()
6712 {
6713   char *data, *data2, *data3;
6714   int i, pagesize;
6715   int fd;
6716
6717   pagesize = getpagesize ();
6718
6719   /* First, make a file with some known garbage in it. */
6720   data = (char *) malloc (pagesize);
6721   if (!data)
6722     exit (1);
6723   for (i = 0; i < pagesize; ++i)
6724     *(data + i) = rand ();
6725   umask (0);
6726   fd = creat ("conftest.mmap", 0600);
6727   if (fd < 0)
6728     exit (1);
6729   if (write (fd, data, pagesize) != pagesize)
6730     exit (1);
6731   close (fd);
6732
6733   /* Next, try to mmap the file at a fixed address which already has
6734      something else allocated at it.  If we can, also make sure that
6735      we see the same garbage.  */
6736   fd = open ("conftest.mmap", O_RDWR);
6737   if (fd < 0)
6738     exit (1);
6739   data2 = (char *) malloc (2 * pagesize);
6740   if (!data2)
6741     exit (1);
6742   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6743   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6744                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6745     exit (1);
6746   for (i = 0; i < pagesize; ++i)
6747     if (*(data + i) != *(data2 + i))
6748       exit (1);
6749
6750   /* Finally, make sure that changes to the mapped area do not
6751      percolate back to the file as seen by read().  (This is a bug on
6752      some variants of i386 svr4.0.)  */
6753   for (i = 0; i < pagesize; ++i)
6754     *(data2 + i) = *(data2 + i) + 1;
6755   data3 = (char *) malloc (pagesize);
6756   if (!data3)
6757     exit (1);
6758   if (read (fd, data3, pagesize) != pagesize)
6759     exit (1);
6760   for (i = 0; i < pagesize; ++i)
6761     if (*(data + i) != *(data3 + i))
6762       exit (1);
6763   close (fd);
6764   exit (0);
6765 }
6766 _ACEOF
6767 rm -f conftest$ac_exeext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769   (eval $ac_link) 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774   (eval $ac_try) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   ac_cv_func_mmap_fixed_mapped=yes
6779 else
6780   echo "$as_me: program exited with status $ac_status" >&5
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 ( exit $ac_status )
6785 ac_cv_func_mmap_fixed_mapped=no
6786 fi
6787 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6788 fi
6789 fi
6790 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6791 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6793
6794 cat >>confdefs.h <<\_ACEOF
6795 #define HAVE_MMAP 1
6796 _ACEOF
6797
6798 fi
6799 rm -f conftest.mmap
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6812 unistd.h values.h sys/param.h
6813 do
6814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816   echo "$as_me:$LINENO: checking for $ac_header" >&5
6817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 fi
6821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6823 else
6824   # Is the header compilable?
6825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6827 cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h.  */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h.  */
6833 $ac_includes_default
6834 #include <$ac_header>
6835 _ACEOF
6836 rm -f conftest.$ac_objext
6837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838   (eval $ac_compile) 2>conftest.er1
6839   ac_status=$?
6840   grep -v '^ *+' conftest.er1 >conftest.err
6841   rm -f conftest.er1
6842   cat conftest.err >&5
6843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844   (exit $ac_status); } &&
6845          { ac_try='test -z "$ac_c_werror_flag"
6846                          || test ! -s conftest.err'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; } &&
6852          { ac_try='test -s conftest.$ac_objext'
6853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854   (eval $ac_try) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); }; }; then
6858   ac_header_compiler=yes
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 ac_header_compiler=no
6864 fi
6865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6867 echo "${ECHO_T}$ac_header_compiler" >&6
6868
6869 # Is the header present?
6870 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6872 cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #include <$ac_header>
6879 _ACEOF
6880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882   ac_status=$?
6883   grep -v '^ *+' conftest.er1 >conftest.err
6884   rm -f conftest.er1
6885   cat conftest.err >&5
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); } >/dev/null; then
6888   if test -s conftest.err; then
6889     ac_cpp_err=$ac_c_preproc_warn_flag
6890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6891   else
6892     ac_cpp_err=
6893   fi
6894 else
6895   ac_cpp_err=yes
6896 fi
6897 if test -z "$ac_cpp_err"; then
6898   ac_header_preproc=yes
6899 else
6900   echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903   ac_header_preproc=no
6904 fi
6905 rm -f conftest.err conftest.$ac_ext
6906 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6907 echo "${ECHO_T}$ac_header_preproc" >&6
6908
6909 # So?  What about this header?
6910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6911   yes:no: )
6912     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6916     ac_header_preproc=yes
6917     ;;
6918   no:yes:* )
6919     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6921     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6922 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6923     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6925     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6926 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6931     (
6932       cat <<\_ASBOX
6933 ## ------------------------------------------ ##
6934 ## Report this to the AC_PACKAGE_NAME lists.  ##
6935 ## ------------------------------------------ ##
6936 _ASBOX
6937     ) |
6938       sed "s/^/$as_me: WARNING:     /" >&2
6939     ;;
6940 esac
6941 echo "$as_me:$LINENO: checking for $ac_header" >&5
6942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   eval "$as_ac_Header=\$ac_header_preproc"
6947 fi
6948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6950
6951 fi
6952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6953   cat >>confdefs.h <<_ACEOF
6954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955 _ACEOF
6956
6957 fi
6958
6959 done
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6972 __argz_count __argz_stringify __argz_next
6973 do
6974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6975 echo "$as_me:$LINENO: checking for $ac_func" >&5
6976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6977 if eval "test \"\${$as_ac_var+set}\" = set"; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6988 #define $ac_func innocuous_$ac_func
6989
6990 /* System header to define __stub macros and hopefully few prototypes,
6991     which can conflict with char $ac_func (); below.
6992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993     <limits.h> exists even on freestanding compilers.  */
6994
6995 #ifdef __STDC__
6996 # include <limits.h>
6997 #else
6998 # include <assert.h>
6999 #endif
7000
7001 #undef $ac_func
7002
7003 /* Override any gcc2 internal prototype to avoid an error.  */
7004 #ifdef __cplusplus
7005 extern "C"
7006 {
7007 #endif
7008 /* We use char because int might match the return type of a gcc2
7009    builtin and then its argument prototype would still apply.  */
7010 char $ac_func ();
7011 /* The GNU C library defines this for functions which it implements
7012     to always fail with ENOSYS.  Some functions are actually named
7013     something starting with __ and the normal name is an alias.  */
7014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7015 choke me
7016 #else
7017 char (*f) () = $ac_func;
7018 #endif
7019 #ifdef __cplusplus
7020 }
7021 #endif
7022
7023 int
7024 main ()
7025 {
7026 return f != $ac_func;
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033   (eval $ac_link) 2>conftest.er1
7034   ac_status=$?
7035   grep -v '^ *+' conftest.er1 >conftest.err
7036   rm -f conftest.er1
7037   cat conftest.err >&5
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); } &&
7040          { ac_try='test -z "$ac_c_werror_flag"
7041                          || test ! -s conftest.err'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; } &&
7047          { ac_try='test -s conftest$ac_exeext'
7048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049   (eval $ac_try) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); }; }; then
7053   eval "$as_ac_var=yes"
7054 else
7055   echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7057
7058 eval "$as_ac_var=no"
7059 fi
7060 rm -f conftest.err conftest.$ac_objext \
7061       conftest$ac_exeext conftest.$ac_ext
7062 fi
7063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7065 if test `eval echo '${'$as_ac_var'}'` = yes; then
7066   cat >>confdefs.h <<_ACEOF
7067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7068 _ACEOF
7069
7070 fi
7071 done
7072
7073
7074    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7075
7076 for ac_func in stpcpy
7077 do
7078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7079 echo "$as_me:$LINENO: checking for $ac_func" >&5
7080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7081 if eval "test \"\${$as_ac_var+set}\" = set"; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7092 #define $ac_func innocuous_$ac_func
7093
7094 /* System header to define __stub macros and hopefully few prototypes,
7095     which can conflict with char $ac_func (); below.
7096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097     <limits.h> exists even on freestanding compilers.  */
7098
7099 #ifdef __STDC__
7100 # include <limits.h>
7101 #else
7102 # include <assert.h>
7103 #endif
7104
7105 #undef $ac_func
7106
7107 /* Override any gcc2 internal prototype to avoid an error.  */
7108 #ifdef __cplusplus
7109 extern "C"
7110 {
7111 #endif
7112 /* We use char because int might match the return type of a gcc2
7113    builtin and then its argument prototype would still apply.  */
7114 char $ac_func ();
7115 /* The GNU C library defines this for functions which it implements
7116     to always fail with ENOSYS.  Some functions are actually named
7117     something starting with __ and the normal name is an alias.  */
7118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7119 choke me
7120 #else
7121 char (*f) () = $ac_func;
7122 #endif
7123 #ifdef __cplusplus
7124 }
7125 #endif
7126
7127 int
7128 main ()
7129 {
7130 return f != $ac_func;
7131   ;
7132   return 0;
7133 }
7134 _ACEOF
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137   (eval $ac_link) 2>conftest.er1
7138   ac_status=$?
7139   grep -v '^ *+' conftest.er1 >conftest.err
7140   rm -f conftest.er1
7141   cat conftest.err >&5
7142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143   (exit $ac_status); } &&
7144          { ac_try='test -z "$ac_c_werror_flag"
7145                          || test ! -s conftest.err'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; } &&
7151          { ac_try='test -s conftest$ac_exeext'
7152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153   (eval $ac_try) 2>&5
7154   ac_status=$?
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); }; }; then
7157   eval "$as_ac_var=yes"
7158 else
7159   echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7161
7162 eval "$as_ac_var=no"
7163 fi
7164 rm -f conftest.err conftest.$ac_objext \
7165       conftest$ac_exeext conftest.$ac_ext
7166 fi
7167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7169 if test `eval echo '${'$as_ac_var'}'` = yes; then
7170   cat >>confdefs.h <<_ACEOF
7171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7172 _ACEOF
7173
7174 fi
7175 done
7176
7177    fi
7178    if test "${ac_cv_func_stpcpy}" = "yes"; then
7179
7180 cat >>confdefs.h <<\_ACEOF
7181 #define HAVE_STPCPY 1
7182 _ACEOF
7183
7184    fi
7185
7186    if test $ac_cv_header_locale_h = yes; then
7187     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7188 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7189 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h.  */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h.  */
7198 #include <locale.h>
7199 int
7200 main ()
7201 {
7202 return LC_MESSAGES
7203   ;
7204   return 0;
7205 }
7206 _ACEOF
7207 rm -f conftest.$ac_objext conftest$ac_exeext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7209   (eval $ac_link) 2>conftest.er1
7210   ac_status=$?
7211   grep -v '^ *+' conftest.er1 >conftest.err
7212   rm -f conftest.er1
7213   cat conftest.err >&5
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } &&
7216          { ac_try='test -z "$ac_c_werror_flag"
7217                          || test ! -s conftest.err'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; } &&
7223          { ac_try='test -s conftest$ac_exeext'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; }; then
7229   am_cv_val_LC_MESSAGES=yes
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 am_cv_val_LC_MESSAGES=no
7235 fi
7236 rm -f conftest.err conftest.$ac_objext \
7237       conftest$ac_exeext conftest.$ac_ext
7238 fi
7239 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7240 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7241     if test $am_cv_val_LC_MESSAGES = yes; then
7242
7243 cat >>confdefs.h <<\_ACEOF
7244 #define HAVE_LC_MESSAGES 1
7245 _ACEOF
7246
7247     fi
7248   fi
7249    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7250 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7251         # Check whether --enable-nls or --disable-nls was given.
7252 if test "${enable_nls+set}" = set; then
7253   enableval="$enable_nls"
7254   USE_NLS=$enableval
7255 else
7256   USE_NLS=yes
7257 fi;
7258     echo "$as_me:$LINENO: result: $USE_NLS" >&5
7259 echo "${ECHO_T}$USE_NLS" >&6
7260
7261
7262     USE_INCLUDED_LIBINTL=no
7263
7264         if test "$USE_NLS" = "yes"; then
7265       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7266 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7267
7268 # Check whether --with-included-gettext or --without-included-gettext was given.
7269 if test "${with_included_gettext+set}" = set; then
7270   withval="$with_included_gettext"
7271   nls_cv_force_use_gnu_gettext=$withval
7272 else
7273   nls_cv_force_use_gnu_gettext=no
7274 fi;
7275       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7276 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7277
7278       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7279       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7280                                         nls_cv_header_intl=
7281         nls_cv_header_libgt=
7282         CATOBJEXT=
7283
7284         if test "${ac_cv_header_libintl_h+set}" = set; then
7285   echo "$as_me:$LINENO: checking for libintl.h" >&5
7286 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7287 if test "${ac_cv_header_libintl_h+set}" = set; then
7288   echo $ECHO_N "(cached) $ECHO_C" >&6
7289 fi
7290 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7291 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7292 else
7293   # Is the header compilable?
7294 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7295 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 $ac_includes_default
7303 #include <libintl.h>
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7307   (eval $ac_compile) 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } &&
7314          { ac_try='test -z "$ac_c_werror_flag"
7315                          || test ! -s conftest.err'
7316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317   (eval $ac_try) 2>&5
7318   ac_status=$?
7319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320   (exit $ac_status); }; } &&
7321          { ac_try='test -s conftest.$ac_objext'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; }; then
7327   ac_header_compiler=yes
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332 ac_header_compiler=no
7333 fi
7334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7336 echo "${ECHO_T}$ac_header_compiler" >&6
7337
7338 # Is the header present?
7339 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7340 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347 #include <libintl.h>
7348 _ACEOF
7349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7351   ac_status=$?
7352   grep -v '^ *+' conftest.er1 >conftest.err
7353   rm -f conftest.er1
7354   cat conftest.err >&5
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); } >/dev/null; then
7357   if test -s conftest.err; then
7358     ac_cpp_err=$ac_c_preproc_warn_flag
7359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7360   else
7361     ac_cpp_err=
7362   fi
7363 else
7364   ac_cpp_err=yes
7365 fi
7366 if test -z "$ac_cpp_err"; then
7367   ac_header_preproc=yes
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372   ac_header_preproc=no
7373 fi
7374 rm -f conftest.err conftest.$ac_ext
7375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7376 echo "${ECHO_T}$ac_header_preproc" >&6
7377
7378 # So?  What about this header?
7379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7380   yes:no: )
7381     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7382 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7383     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7384 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7385     ac_header_preproc=yes
7386     ;;
7387   no:yes:* )
7388     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7389 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7390     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7391 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7392     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7393 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7394     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7395 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7396     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7397 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7398     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7399 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7400     (
7401       cat <<\_ASBOX
7402 ## ------------------------------------------ ##
7403 ## Report this to the AC_PACKAGE_NAME lists.  ##
7404 ## ------------------------------------------ ##
7405 _ASBOX
7406     ) |
7407       sed "s/^/$as_me: WARNING:     /" >&2
7408     ;;
7409 esac
7410 echo "$as_me:$LINENO: checking for libintl.h" >&5
7411 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7412 if test "${ac_cv_header_libintl_h+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   ac_cv_header_libintl_h=$ac_header_preproc
7416 fi
7417 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7418 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7419
7420 fi
7421 if test $ac_cv_header_libintl_h = yes; then
7422   echo "$as_me:$LINENO: checking for gettext in libc" >&5
7423 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7424 if test "${gt_cv_func_gettext_libc+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h.  */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h.  */
7433 #include <libintl.h>
7434 int
7435 main ()
7436 {
7437 return (int) gettext ("")
7438   ;
7439   return 0;
7440 }
7441 _ACEOF
7442 rm -f conftest.$ac_objext conftest$ac_exeext
7443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444   (eval $ac_link) 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag"
7452                          || test ! -s conftest.err'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; } &&
7458          { ac_try='test -s conftest$ac_exeext'
7459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460   (eval $ac_try) 2>&5
7461   ac_status=$?
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); }; }; then
7464   gt_cv_func_gettext_libc=yes
7465 else
7466   echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 gt_cv_func_gettext_libc=no
7470 fi
7471 rm -f conftest.err conftest.$ac_objext \
7472       conftest$ac_exeext conftest.$ac_ext
7473 fi
7474 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7475 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7476
7477            if test "$gt_cv_func_gettext_libc" != "yes"; then
7478              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7479 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7480 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7481   echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483   ac_check_lib_save_LIBS=$LIBS
7484 LIBS="-lintl  $LIBS"
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491
7492 /* Override any gcc2 internal prototype to avoid an error.  */
7493 #ifdef __cplusplus
7494 extern "C"
7495 #endif
7496 /* We use char because int might match the return type of a gcc2
7497    builtin and then its argument prototype would still apply.  */
7498 char bindtextdomain ();
7499 int
7500 main ()
7501 {
7502 bindtextdomain ();
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509   (eval $ac_link) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } &&
7516          { ac_try='test -z "$ac_c_werror_flag"
7517                          || test ! -s conftest.err'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; } &&
7523          { ac_try='test -s conftest$ac_exeext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_lib_intl_bindtextdomain=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_lib_intl_bindtextdomain=no
7535 fi
7536 rm -f conftest.err conftest.$ac_objext \
7537       conftest$ac_exeext conftest.$ac_ext
7538 LIBS=$ac_check_lib_save_LIBS
7539 fi
7540 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7541 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7542 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7543   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7544 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7545 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7546   echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548   cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h.  */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h.  */
7554
7555 int
7556 main ()
7557 {
7558 return (int) gettext ("")
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565   (eval $ac_link) 2>conftest.er1
7566   ac_status=$?
7567   grep -v '^ *+' conftest.er1 >conftest.err
7568   rm -f conftest.er1
7569   cat conftest.err >&5
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); } &&
7572          { ac_try='test -z "$ac_c_werror_flag"
7573                          || test ! -s conftest.err'
7574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575   (eval $ac_try) 2>&5
7576   ac_status=$?
7577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578   (exit $ac_status); }; } &&
7579          { ac_try='test -s conftest$ac_exeext'
7580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581   (eval $ac_try) 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585   gt_cv_func_gettext_libintl=yes
7586 else
7587   echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7589
7590 gt_cv_func_gettext_libintl=no
7591 fi
7592 rm -f conftest.err conftest.$ac_objext \
7593       conftest$ac_exeext conftest.$ac_ext
7594 fi
7595 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7596 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7597 fi
7598
7599            fi
7600
7601            if test "$gt_cv_func_gettext_libc" = "yes" \
7602               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7603
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_GETTEXT 1
7606 _ACEOF
7607
7608               # Extract the first word of "msgfmt", so it can be a program name with args.
7609 set dummy msgfmt; ac_word=$2
7610 echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612 if test "${ac_cv_path_MSGFMT+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   case "$MSGFMT" in
7616   /*)
7617   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7621   for ac_dir in $PATH; do
7622     test -z "$ac_dir" && ac_dir=.
7623     if test -f $ac_dir/$ac_word; then
7624       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7625         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7626         break
7627       fi
7628     fi
7629   done
7630   IFS="$ac_save_ifs"
7631   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7632   ;;
7633 esac
7634 fi
7635 MSGFMT="$ac_cv_path_MSGFMT"
7636 if test -n "$MSGFMT"; then
7637   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7638 echo "${ECHO_T}$MSGFMT" >&6
7639 else
7640   echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6
7642 fi
7643               if test "$MSGFMT" != "no"; then
7644
7645 for ac_func in dcgettext
7646 do
7647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7648 echo "$as_me:$LINENO: checking for $ac_func" >&5
7649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7650 if eval "test \"\${$as_ac_var+set}\" = set"; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   cat >conftest.$ac_ext <<_ACEOF
7654 /* confdefs.h.  */
7655 _ACEOF
7656 cat confdefs.h >>conftest.$ac_ext
7657 cat >>conftest.$ac_ext <<_ACEOF
7658 /* end confdefs.h.  */
7659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7661 #define $ac_func innocuous_$ac_func
7662
7663 /* System header to define __stub macros and hopefully few prototypes,
7664     which can conflict with char $ac_func (); below.
7665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666     <limits.h> exists even on freestanding compilers.  */
7667
7668 #ifdef __STDC__
7669 # include <limits.h>
7670 #else
7671 # include <assert.h>
7672 #endif
7673
7674 #undef $ac_func
7675
7676 /* Override any gcc2 internal prototype to avoid an error.  */
7677 #ifdef __cplusplus
7678 extern "C"
7679 {
7680 #endif
7681 /* We use char because int might match the return type of a gcc2
7682    builtin and then its argument prototype would still apply.  */
7683 char $ac_func ();
7684 /* The GNU C library defines this for functions which it implements
7685     to always fail with ENOSYS.  Some functions are actually named
7686     something starting with __ and the normal name is an alias.  */
7687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688 choke me
7689 #else
7690 char (*f) () = $ac_func;
7691 #endif
7692 #ifdef __cplusplus
7693 }
7694 #endif
7695
7696 int
7697 main ()
7698 {
7699 return f != $ac_func;
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 rm -f conftest.$ac_objext conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706   (eval $ac_link) 2>conftest.er1
7707   ac_status=$?
7708   grep -v '^ *+' conftest.er1 >conftest.err
7709   rm -f conftest.er1
7710   cat conftest.err >&5
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); } &&
7713          { ac_try='test -z "$ac_c_werror_flag"
7714                          || test ! -s conftest.err'
7715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716   (eval $ac_try) 2>&5
7717   ac_status=$?
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); }; } &&
7720          { ac_try='test -s conftest$ac_exeext'
7721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722   (eval $ac_try) 2>&5
7723   ac_status=$?
7724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725   (exit $ac_status); }; }; then
7726   eval "$as_ac_var=yes"
7727 else
7728   echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 eval "$as_ac_var=no"
7732 fi
7733 rm -f conftest.err conftest.$ac_objext \
7734       conftest$ac_exeext conftest.$ac_ext
7735 fi
7736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7738 if test `eval echo '${'$as_ac_var'}'` = yes; then
7739   cat >>confdefs.h <<_ACEOF
7740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7741 _ACEOF
7742
7743 fi
7744 done
7745
7746                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7747 set dummy gmsgfmt; ac_word=$2
7748 echo "$as_me:$LINENO: checking for $ac_word" >&5
7749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   case $GMSGFMT in
7754   [\\/]* | ?:[\\/]*)
7755   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7756   ;;
7757   *)
7758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759 for as_dir in $PATH
7760 do
7761   IFS=$as_save_IFS
7762   test -z "$as_dir" && as_dir=.
7763   for ac_exec_ext in '' $ac_executable_extensions; do
7764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767     break 2
7768   fi
7769 done
7770 done
7771
7772   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7773   ;;
7774 esac
7775 fi
7776 GMSGFMT=$ac_cv_path_GMSGFMT
7777
7778 if test -n "$GMSGFMT"; then
7779   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7780 echo "${ECHO_T}$GMSGFMT" >&6
7781 else
7782   echo "$as_me:$LINENO: result: no" >&5
7783 echo "${ECHO_T}no" >&6
7784 fi
7785
7786                 # Extract the first word of "xgettext", so it can be a program name with args.
7787 set dummy xgettext; ac_word=$2
7788 echo "$as_me:$LINENO: checking for $ac_word" >&5
7789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7790 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7791   echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793   case "$XGETTEXT" in
7794   /*)
7795   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7796   ;;
7797   *)
7798   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7799   for ac_dir in $PATH; do
7800     test -z "$ac_dir" && ac_dir=.
7801     if test -f $ac_dir/$ac_word; then
7802       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7803         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7804         break
7805       fi
7806     fi
7807   done
7808   IFS="$ac_save_ifs"
7809   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7810   ;;
7811 esac
7812 fi
7813 XGETTEXT="$ac_cv_path_XGETTEXT"
7814 if test -n "$XGETTEXT"; then
7815   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7816 echo "${ECHO_T}$XGETTEXT" >&6
7817 else
7818   echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6
7820 fi
7821
7822                 cat >conftest.$ac_ext <<_ACEOF
7823 /* confdefs.h.  */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h.  */
7828
7829 int
7830 main ()
7831 {
7832 extern int _nl_msg_cat_cntr;
7833                                return _nl_msg_cat_cntr
7834   ;
7835   return 0;
7836 }
7837 _ACEOF
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840   (eval $ac_link) 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } &&
7847          { ac_try='test -z "$ac_c_werror_flag"
7848                          || test ! -s conftest.err'
7849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850   (eval $ac_try) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); }; } &&
7854          { ac_try='test -s conftest$ac_exeext'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   CATOBJEXT=.gmo
7861                    DATADIRNAME=share
7862 else
7863   echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 CATOBJEXT=.mo
7867                    DATADIRNAME=lib
7868 fi
7869 rm -f conftest.err conftest.$ac_objext \
7870       conftest$ac_exeext conftest.$ac_ext
7871                 INSTOBJEXT=.mo
7872               fi
7873             fi
7874
7875 fi
7876
7877
7878
7879
7880         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7881           # Neither gettext nor catgets in included in the C library.
7882           # Fall back on GNU gettext library (assuming it is present).
7883           nls_cv_use_gnu_gettext=yes
7884         fi
7885       fi
7886
7887       if test "$nls_cv_use_gnu_gettext" = "yes"; then
7888                 INTLOBJS="\$(GETTOBJS)"
7889         # Extract the first word of "msgfmt", so it can be a program name with args.
7890 set dummy msgfmt; ac_word=$2
7891 echo "$as_me:$LINENO: checking for $ac_word" >&5
7892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7893 if test "${ac_cv_path_MSGFMT+set}" = set; then
7894   echo $ECHO_N "(cached) $ECHO_C" >&6
7895 else
7896   case "$MSGFMT" in
7897   /*)
7898   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7899   ;;
7900   *)
7901   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7902   for ac_dir in $PATH; do
7903     test -z "$ac_dir" && ac_dir=.
7904     if test -f $ac_dir/$ac_word; then
7905       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7906         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7907         break
7908       fi
7909     fi
7910   done
7911   IFS="$ac_save_ifs"
7912   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7913   ;;
7914 esac
7915 fi
7916 MSGFMT="$ac_cv_path_MSGFMT"
7917 if test -n "$MSGFMT"; then
7918   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7919 echo "${ECHO_T}$MSGFMT" >&6
7920 else
7921   echo "$as_me:$LINENO: result: no" >&5
7922 echo "${ECHO_T}no" >&6
7923 fi
7924
7925         # Extract the first word of "gmsgfmt", so it can be a program name with args.
7926 set dummy gmsgfmt; ac_word=$2
7927 echo "$as_me:$LINENO: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7929 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   case $GMSGFMT in
7933   [\\/]* | ?:[\\/]*)
7934   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7935   ;;
7936   *)
7937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 for as_dir in $PATH
7939 do
7940   IFS=$as_save_IFS
7941   test -z "$as_dir" && as_dir=.
7942   for ac_exec_ext in '' $ac_executable_extensions; do
7943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946     break 2
7947   fi
7948 done
7949 done
7950
7951   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7952   ;;
7953 esac
7954 fi
7955 GMSGFMT=$ac_cv_path_GMSGFMT
7956
7957 if test -n "$GMSGFMT"; then
7958   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7959 echo "${ECHO_T}$GMSGFMT" >&6
7960 else
7961   echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7963 fi
7964
7965         # Extract the first word of "xgettext", so it can be a program name with args.
7966 set dummy xgettext; ac_word=$2
7967 echo "$as_me:$LINENO: checking for $ac_word" >&5
7968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7969 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7970   echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972   case "$XGETTEXT" in
7973   /*)
7974   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7975   ;;
7976   *)
7977   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7978   for ac_dir in $PATH; do
7979     test -z "$ac_dir" && ac_dir=.
7980     if test -f $ac_dir/$ac_word; then
7981       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7982         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7983         break
7984       fi
7985     fi
7986   done
7987   IFS="$ac_save_ifs"
7988   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7989   ;;
7990 esac
7991 fi
7992 XGETTEXT="$ac_cv_path_XGETTEXT"
7993 if test -n "$XGETTEXT"; then
7994   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7995 echo "${ECHO_T}$XGETTEXT" >&6
7996 else
7997   echo "$as_me:$LINENO: result: no" >&5
7998 echo "${ECHO_T}no" >&6
7999 fi
8000
8001
8002         USE_INCLUDED_LIBINTL=yes
8003         CATOBJEXT=.gmo
8004         INSTOBJEXT=.mo
8005         DATADIRNAME=share
8006         INTLDEPS='$(top_builddir)/../intl/libintl.a'
8007         INTLLIBS=$INTLDEPS
8008         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8009         nls_cv_header_intl=libintl.h
8010         nls_cv_header_libgt=libgettext.h
8011       fi
8012
8013             if test "$XGETTEXT" != ":"; then
8014                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8015           : ;
8016         else
8017           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8018 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8019           XGETTEXT=":"
8020         fi
8021       fi
8022
8023       # We need to process the po/ directory.
8024       POSUB=po
8025     else
8026       DATADIRNAME=share
8027       nls_cv_header_intl=libintl.h
8028       nls_cv_header_libgt=libgettext.h
8029     fi
8030
8031     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8032     # because some of the sources are only built for this goal.
8033     if test "$PACKAGE" = gettext; then
8034       USE_NLS=yes
8035       USE_INCLUDED_LIBINTL=yes
8036     fi
8037
8038                 for lang in $ALL_LINGUAS; do
8039       GMOFILES="$GMOFILES $lang.gmo"
8040       POFILES="$POFILES $lang.po"
8041     done
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054     if test "x$CATOBJEXT" != "x"; then
8055
8056 cat >>confdefs.h <<\_ACEOF
8057 #define ENABLE_NLS 1
8058 _ACEOF
8059
8060     fi
8061
8062
8063    if test "x$CATOBJEXT" != "x"; then
8064      if test "x$ALL_LINGUAS" = "x"; then
8065        LINGUAS=
8066      else
8067        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8068 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8069        NEW_LINGUAS=
8070        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8071          case "$ALL_LINGUAS" in
8072           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8073          esac
8074        done
8075        LINGUAS=$NEW_LINGUAS
8076        echo "$as_me:$LINENO: result: $LINGUAS" >&5
8077 echo "${ECHO_T}$LINGUAS" >&6
8078      fi
8079
8080           if test -n "$LINGUAS"; then
8081        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8082      fi
8083    fi
8084
8085             if test $ac_cv_header_locale_h = yes; then
8086      INCLUDE_LOCALE_H="#include <locale.h>"
8087    else
8088      INCLUDE_LOCALE_H="\
8089 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8090    fi
8091
8092
8093             if test -f $srcdir/po2tbl.sed.in; then
8094       if test "$CATOBJEXT" = ".cat"; then
8095          if test "${ac_cv_header_linux_version_h+set}" = set; then
8096   echo "$as_me:$LINENO: checking for linux/version.h" >&5
8097 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8098 if test "${ac_cv_header_linux_version_h+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 fi
8101 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8102 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8103 else
8104   # Is the header compilable?
8105 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8106 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113 $ac_includes_default
8114 #include <linux/version.h>
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118   (eval $ac_compile) 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } &&
8125          { ac_try='test -z "$ac_c_werror_flag"
8126                          || test ! -s conftest.err'
8127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128   (eval $ac_try) 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; } &&
8132          { ac_try='test -s conftest.$ac_objext'
8133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134   (eval $ac_try) 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; }; then
8138   ac_header_compiler=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143 ac_header_compiler=no
8144 fi
8145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8147 echo "${ECHO_T}$ac_header_compiler" >&6
8148
8149 # Is the header present?
8150 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8151 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8152 cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158 #include <linux/version.h>
8159 _ACEOF
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8162   ac_status=$?
8163   grep -v '^ *+' conftest.er1 >conftest.err
8164   rm -f conftest.er1
8165   cat conftest.err >&5
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } >/dev/null; then
8168   if test -s conftest.err; then
8169     ac_cpp_err=$ac_c_preproc_warn_flag
8170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8171   else
8172     ac_cpp_err=
8173   fi
8174 else
8175   ac_cpp_err=yes
8176 fi
8177 if test -z "$ac_cpp_err"; then
8178   ac_header_preproc=yes
8179 else
8180   echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8182
8183   ac_header_preproc=no
8184 fi
8185 rm -f conftest.err conftest.$ac_ext
8186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8187 echo "${ECHO_T}$ac_header_preproc" >&6
8188
8189 # So?  What about this header?
8190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8191   yes:no: )
8192     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8193 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8194     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8195 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8196     ac_header_preproc=yes
8197     ;;
8198   no:yes:* )
8199     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8200 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8201     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
8202 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
8203     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8204 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8205     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
8206 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8207     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8208 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8209     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8210 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8211     (
8212       cat <<\_ASBOX
8213 ## ------------------------------------------ ##
8214 ## Report this to the AC_PACKAGE_NAME lists.  ##
8215 ## ------------------------------------------ ##
8216 _ASBOX
8217     ) |
8218       sed "s/^/$as_me: WARNING:     /" >&2
8219     ;;
8220 esac
8221 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8222 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8223 if test "${ac_cv_header_linux_version_h+set}" = set; then
8224   echo $ECHO_N "(cached) $ECHO_C" >&6
8225 else
8226   ac_cv_header_linux_version_h=$ac_header_preproc
8227 fi
8228 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8229 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8230
8231 fi
8232 if test $ac_cv_header_linux_version_h = yes; then
8233   msgformat=linux
8234 else
8235   msgformat=xopen
8236 fi
8237
8238
8239
8240                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8241       fi
8242             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8243          $srcdir/po2tbl.sed.in > po2tbl.sed
8244    fi
8245
8246             if test "$PACKAGE" = "gettext"; then
8247      GT_NO="#NO#"
8248      GT_YES=
8249    else
8250      GT_NO=
8251      GT_YES="#YES#"
8252    fi
8253
8254
8255
8256    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8257
8258
8259       l=
8260
8261
8262             if test -f $srcdir/po/POTFILES.in; then
8263       test -d po || mkdir po
8264       if test "x$srcdir" != "x."; then
8265          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8266             posrcprefix="$srcdir/"
8267          else
8268             posrcprefix="../$srcdir/"
8269          fi
8270       else
8271          posrcprefix="../"
8272       fi
8273       rm -f po/POTFILES
8274       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8275          < $srcdir/po/POTFILES.in > po/POTFILES
8276    fi
8277
8278
8279 # Permit host specific settings.
8280 . ${srcdir}/configure.host
8281
8282
8283 # Find a good install program.  We prefer a C program (faster),
8284 # so one script is as good as another.  But avoid the broken or
8285 # incompatible versions:
8286 # SysV /etc/install, /usr/sbin/install
8287 # SunOS /usr/etc/install
8288 # IRIX /sbin/install
8289 # AIX /bin/install
8290 # AmigaOS /C/install, which installs bootblocks on floppy discs
8291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8294 # OS/2's system install, which has a completely different semantic
8295 # ./install, which can be erroneously created by make from ./install.sh.
8296 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8297 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8298 if test -z "$INSTALL"; then
8299 if test "${ac_cv_path_install+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307   # Account for people who put trailing slashes in PATH elements.
8308 case $as_dir/ in
8309   ./ | .// | /cC/* | \
8310   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8311   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8312   /usr/ucb/* ) ;;
8313   *)
8314     # OSF1 and SCO ODT 3.0 have their own names for install.
8315     # Don't use installbsd from OSF since it installs stuff as root
8316     # by default.
8317     for ac_prog in ginstall scoinst install; do
8318       for ac_exec_ext in '' $ac_executable_extensions; do
8319         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8320           if test $ac_prog = install &&
8321             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8322             # AIX install.  It has an incompatible calling convention.
8323             :
8324           elif test $ac_prog = install &&
8325             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8326             # program-specific install script used by HP pwplus--don't use.
8327             :
8328           else
8329             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8330             break 3
8331           fi
8332         fi
8333       done
8334     done
8335     ;;
8336 esac
8337 done
8338
8339
8340 fi
8341   if test "${ac_cv_path_install+set}" = set; then
8342     INSTALL=$ac_cv_path_install
8343   else
8344     # As a last resort, use the slow shell script.  We don't cache a
8345     # path for INSTALL within a source directory, because that will
8346     # break other packages using the cache if that directory is
8347     # removed, or if the path is relative.
8348     INSTALL=$ac_install_sh
8349   fi
8350 fi
8351 echo "$as_me:$LINENO: result: $INSTALL" >&5
8352 echo "${ECHO_T}$INSTALL" >&6
8353
8354 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8355 # It thinks the first close brace ends the variable substitution.
8356 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8357
8358 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8359
8360 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8361
8362
8363 BFD_HOST_64BIT_LONG=0
8364 BFD_HOST_LONG_LONG=0
8365 BFD_HOST_64_BIT_DEFINED=0
8366 BFD_HOST_64_BIT=
8367 BFD_HOST_U_64_BIT=
8368
8369 echo "$as_me:$LINENO: checking for long long" >&5
8370 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8371 if test "${bfd_cv_has_long_long+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380
8381 int
8382 main ()
8383 {
8384 unsigned long long ll = 18446744073709551615ULL;
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391   (eval $ac_compile) 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag"
8399                          || test ! -s conftest.err'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; } &&
8405          { ac_try='test -s conftest.$ac_objext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   bfd_cv_has_long_long=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 bfd_cv_has_long_long=no
8417 fi
8418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420
8421 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8422 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8423 if test $bfd_cv_has_long_long = yes; then
8424   BFD_HOST_LONG_LONG=1
8425   echo "$as_me:$LINENO: checking size of long long" >&5
8426 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8427 if test "${ac_cv_sizeof_long_long+set}" = set; then
8428   echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8431   cat >conftest.$ac_ext <<_ACEOF
8432 /* confdefs.h.  */
8433 _ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h.  */
8437 #include "confdefs.h"
8438 #include <sys/types.h>
8439
8440
8441 int
8442 main ()
8443 {
8444 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451   (eval $ac_compile) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"
8459                          || test ! -s conftest.err'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; } &&
8465          { ac_try='test -s conftest.$ac_objext'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471   ac_cv_sizeof_long_long=$ac_size
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 fi
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478   if test x$ac_cv_sizeof_long_long != x ; then break; fi
8479 done
8480
8481 fi
8482
8483 if test x$ac_cv_sizeof_long_long = x ; then
8484   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8485 echo "$as_me: error: cannot determine a size for long long" >&2;}
8486    { (exit 1); exit 1; }; }
8487 fi
8488 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8489 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8490
8491 cat >>confdefs.h <<_ACEOF
8492 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8493 _ACEOF
8494
8495
8496 fi
8497
8498 echo "$as_me:$LINENO: checking size of long" >&5
8499 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8500 if test "${ac_cv_sizeof_long+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8504   cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510 #include "confdefs.h"
8511 #include <sys/types.h>
8512
8513
8514 int
8515 main ()
8516 {
8517 switch (0) case 0: case (sizeof (long) == $ac_size):;
8518   ;
8519   return 0;
8520 }
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524   (eval $ac_compile) 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } &&
8531          { ac_try='test -z "$ac_c_werror_flag"
8532                          || test ! -s conftest.err'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest.$ac_objext'
8539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540   (eval $ac_try) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); }; }; then
8544   ac_cv_sizeof_long=$ac_size
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 fi
8550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8551   if test x$ac_cv_sizeof_long != x ; then break; fi
8552 done
8553
8554 fi
8555
8556 if test x$ac_cv_sizeof_long = x ; then
8557   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8558 echo "$as_me: error: cannot determine a size for long" >&2;}
8559    { (exit 1); exit 1; }; }
8560 fi
8561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8562 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8563
8564 cat >>confdefs.h <<_ACEOF
8565 #define SIZEOF_LONG $ac_cv_sizeof_long
8566 _ACEOF
8567
8568
8569 if test "x${ac_cv_sizeof_long}" = "x8"; then
8570   host64=true
8571   BFD_HOST_64BIT_LONG=1
8572   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8573   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8574 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8575   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8576   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8577 fi
8578
8579 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8580   BFD_HOST_64_BIT_DEFINED=1
8581   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8582   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591 # Put a plausible default for CC_FOR_BUILD in Makefile.
8592 if test -z "$CC_FOR_BUILD"; then
8593   if test "x$cross_compiling" = "xno"; then
8594     CC_FOR_BUILD='$(CC)'
8595   else
8596     CC_FOR_BUILD=gcc
8597   fi
8598 fi
8599
8600 # Also set EXEEXT_FOR_BUILD.
8601 if test "x$cross_compiling" = "xno"; then
8602   EXEEXT_FOR_BUILD='$(EXEEXT)'
8603 else
8604   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8605 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8606 if test "${bfd_cv_build_exeext+set}" = set; then
8607   echo $ECHO_N "(cached) $ECHO_C" >&6
8608 else
8609   rm -f conftest*
8610      echo 'int main () { return 0; }' > conftest.c
8611      bfd_cv_build_exeext=
8612      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8613      for file in conftest.*; do
8614        case $file in
8615        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8616        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8617        esac
8618      done
8619      rm -f conftest*
8620      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8621 fi
8622 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8623 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8624   EXEEXT_FOR_BUILD=""
8625   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8626 fi
8627
8628
8629
8630
8631
8632
8633
8634
8635 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8636 do
8637 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639   echo "$as_me:$LINENO: checking for $ac_header" >&5
8640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642   echo $ECHO_N "(cached) $ECHO_C" >&6
8643 fi
8644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8646 else
8647   # Is the header compilable?
8648 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h.  */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h.  */
8656 $ac_includes_default
8657 #include <$ac_header>
8658 _ACEOF
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661   (eval $ac_compile) 2>conftest.er1
8662   ac_status=$?
8663   grep -v '^ *+' conftest.er1 >conftest.err
8664   rm -f conftest.er1
8665   cat conftest.err >&5
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); } &&
8668          { ac_try='test -z "$ac_c_werror_flag"
8669                          || test ! -s conftest.err'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; } &&
8675          { ac_try='test -s conftest.$ac_objext'
8676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677   (eval $ac_try) 2>&5
8678   ac_status=$?
8679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680   (exit $ac_status); }; }; then
8681   ac_header_compiler=yes
8682 else
8683   echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8685
8686 ac_header_compiler=no
8687 fi
8688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8690 echo "${ECHO_T}$ac_header_compiler" >&6
8691
8692 # Is the header present?
8693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701 #include <$ac_header>
8702 _ACEOF
8703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8705   ac_status=$?
8706   grep -v '^ *+' conftest.er1 >conftest.err
8707   rm -f conftest.er1
8708   cat conftest.err >&5
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); } >/dev/null; then
8711   if test -s conftest.err; then
8712     ac_cpp_err=$ac_c_preproc_warn_flag
8713     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8714   else
8715     ac_cpp_err=
8716   fi
8717 else
8718   ac_cpp_err=yes
8719 fi
8720 if test -z "$ac_cpp_err"; then
8721   ac_header_preproc=yes
8722 else
8723   echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8725
8726   ac_header_preproc=no
8727 fi
8728 rm -f conftest.err conftest.$ac_ext
8729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730 echo "${ECHO_T}$ac_header_preproc" >&6
8731
8732 # So?  What about this header?
8733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734   yes:no: )
8735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8739     ac_header_preproc=yes
8740     ;;
8741   no:yes:* )
8742     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8744     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8745 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8746     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8748     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8749 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8752     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8754     (
8755       cat <<\_ASBOX
8756 ## ------------------------------------------ ##
8757 ## Report this to the AC_PACKAGE_NAME lists.  ##
8758 ## ------------------------------------------ ##
8759 _ASBOX
8760     ) |
8761       sed "s/^/$as_me: WARNING:     /" >&2
8762     ;;
8763 esac
8764 echo "$as_me:$LINENO: checking for $ac_header" >&5
8765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   eval "$as_ac_Header=\$ac_header_preproc"
8770 fi
8771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773
8774 fi
8775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8776   cat >>confdefs.h <<_ACEOF
8777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 _ACEOF
8779
8780 fi
8781
8782 done
8783
8784
8785
8786
8787 for ac_header in fcntl.h sys/file.h sys/time.h
8788 do
8789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8791   echo "$as_me:$LINENO: checking for $ac_header" >&5
8792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 fi
8796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8798 else
8799   # Is the header compilable?
8800 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8802 cat >conftest.$ac_ext <<_ACEOF
8803 /* confdefs.h.  */
8804 _ACEOF
8805 cat confdefs.h >>conftest.$ac_ext
8806 cat >>conftest.$ac_ext <<_ACEOF
8807 /* end confdefs.h.  */
8808 $ac_includes_default
8809 #include <$ac_header>
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813   (eval $ac_compile) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -z "$ac_c_werror_flag"
8821                          || test ! -s conftest.err'
8822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823   (eval $ac_try) 2>&5
8824   ac_status=$?
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); }; } &&
8827          { ac_try='test -s conftest.$ac_objext'
8828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829   (eval $ac_try) 2>&5
8830   ac_status=$?
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); }; }; then
8833   ac_header_compiler=yes
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838 ac_header_compiler=no
8839 fi
8840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8842 echo "${ECHO_T}$ac_header_compiler" >&6
8843
8844 # Is the header present?
8845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853 #include <$ac_header>
8854 _ACEOF
8855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857   ac_status=$?
8858   grep -v '^ *+' conftest.er1 >conftest.err
8859   rm -f conftest.er1
8860   cat conftest.err >&5
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); } >/dev/null; then
8863   if test -s conftest.err; then
8864     ac_cpp_err=$ac_c_preproc_warn_flag
8865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8866   else
8867     ac_cpp_err=
8868   fi
8869 else
8870   ac_cpp_err=yes
8871 fi
8872 if test -z "$ac_cpp_err"; then
8873   ac_header_preproc=yes
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878   ac_header_preproc=no
8879 fi
8880 rm -f conftest.err conftest.$ac_ext
8881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882 echo "${ECHO_T}$ac_header_preproc" >&6
8883
8884 # So?  What about this header?
8885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8886   yes:no: )
8887     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8889     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891     ac_header_preproc=yes
8892     ;;
8893   no:yes:* )
8894     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8896     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8897 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8898     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8901 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8902     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8904     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8906     (
8907       cat <<\_ASBOX
8908 ## ------------------------------------------ ##
8909 ## Report this to the AC_PACKAGE_NAME lists.  ##
8910 ## ------------------------------------------ ##
8911 _ASBOX
8912     ) |
8913       sed "s/^/$as_me: WARNING:     /" >&2
8914     ;;
8915 esac
8916 echo "$as_me:$LINENO: checking for $ac_header" >&5
8917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   eval "$as_ac_Header=\$ac_header_preproc"
8922 fi
8923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925
8926 fi
8927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928   cat >>confdefs.h <<_ACEOF
8929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930 _ACEOF
8931
8932 fi
8933
8934 done
8935
8936 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8937 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8938 if test "${ac_cv_header_time+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947 #include <sys/types.h>
8948 #include <sys/time.h>
8949 #include <time.h>
8950
8951 int
8952 main ()
8953 {
8954 if ((struct tm *) 0)
8955 return 0;
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962   (eval $ac_compile) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } &&
8969          { ac_try='test -z "$ac_c_werror_flag"
8970                          || test ! -s conftest.err'
8971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972   (eval $ac_try) 2>&5
8973   ac_status=$?
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); }; } &&
8976          { ac_try='test -s conftest.$ac_objext'
8977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978   (eval $ac_try) 2>&5
8979   ac_status=$?
8980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981   (exit $ac_status); }; }; then
8982   ac_cv_header_time=yes
8983 else
8984   echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8986
8987 ac_cv_header_time=no
8988 fi
8989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8990 fi
8991 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8992 echo "${ECHO_T}$ac_cv_header_time" >&6
8993 if test $ac_cv_header_time = yes; then
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define TIME_WITH_SYS_TIME 1
8997 _ACEOF
8998
8999 fi
9000
9001
9002
9003
9004
9005
9006 ac_header_dirent=no
9007 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9008   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9009 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9010 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020 #include <sys/types.h>
9021 #include <$ac_hdr>
9022
9023 int
9024 main ()
9025 {
9026 if ((DIR *) 0)
9027 return 0;
9028   ;
9029   return 0;
9030 }
9031 _ACEOF
9032 rm -f conftest.$ac_objext
9033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034   (eval $ac_compile) 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -z "$ac_c_werror_flag"
9042                          || test ! -s conftest.err'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; } &&
9048          { ac_try='test -s conftest.$ac_objext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   eval "$as_ac_Header=yes"
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 eval "$as_ac_Header=no"
9060 fi
9061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066   cat >>confdefs.h <<_ACEOF
9067 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9068 _ACEOF
9069
9070 ac_header_dirent=$ac_hdr; break
9071 fi
9072
9073 done
9074 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9075 if test $ac_header_dirent = dirent.h; then
9076   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9077 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9078 if test "${ac_cv_search_opendir+set}" = set; then
9079   echo $ECHO_N "(cached) $ECHO_C" >&6
9080 else
9081   ac_func_search_save_LIBS=$LIBS
9082 ac_cv_search_opendir=no
9083 cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089
9090 /* Override any gcc2 internal prototype to avoid an error.  */
9091 #ifdef __cplusplus
9092 extern "C"
9093 #endif
9094 /* We use char because int might match the return type of a gcc2
9095    builtin and then its argument prototype would still apply.  */
9096 char opendir ();
9097 int
9098 main ()
9099 {
9100 opendir ();
9101   ;
9102   return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107   (eval $ac_link) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } &&
9114          { ac_try='test -z "$ac_c_werror_flag"
9115                          || test ! -s conftest.err'
9116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117   (eval $ac_try) 2>&5
9118   ac_status=$?
9119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120   (exit $ac_status); }; } &&
9121          { ac_try='test -s conftest$ac_exeext'
9122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123   (eval $ac_try) 2>&5
9124   ac_status=$?
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); }; }; then
9127   ac_cv_search_opendir="none required"
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132 fi
9133 rm -f conftest.err conftest.$ac_objext \
9134       conftest$ac_exeext conftest.$ac_ext
9135 if test "$ac_cv_search_opendir" = no; then
9136   for ac_lib in dir; do
9137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9138     cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144
9145 /* Override any gcc2 internal prototype to avoid an error.  */
9146 #ifdef __cplusplus
9147 extern "C"
9148 #endif
9149 /* We use char because int might match the return type of a gcc2
9150    builtin and then its argument prototype would still apply.  */
9151 char opendir ();
9152 int
9153 main ()
9154 {
9155 opendir ();
9156   ;
9157   return 0;
9158 }
9159 _ACEOF
9160 rm -f conftest.$ac_objext conftest$ac_exeext
9161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162   (eval $ac_link) 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } &&
9169          { ac_try='test -z "$ac_c_werror_flag"
9170                          || test ! -s conftest.err'
9171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172   (eval $ac_try) 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; } &&
9176          { ac_try='test -s conftest$ac_exeext'
9177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178   (eval $ac_try) 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); }; }; then
9182   ac_cv_search_opendir="-l$ac_lib"
9183 break
9184 else
9185   echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188 fi
9189 rm -f conftest.err conftest.$ac_objext \
9190       conftest$ac_exeext conftest.$ac_ext
9191   done
9192 fi
9193 LIBS=$ac_func_search_save_LIBS
9194 fi
9195 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9196 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9197 if test "$ac_cv_search_opendir" != no; then
9198   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9199
9200 fi
9201
9202 else
9203   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9205 if test "${ac_cv_search_opendir+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   ac_func_search_save_LIBS=$LIBS
9209 ac_cv_search_opendir=no
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216
9217 /* Override any gcc2 internal prototype to avoid an error.  */
9218 #ifdef __cplusplus
9219 extern "C"
9220 #endif
9221 /* We use char because int might match the return type of a gcc2
9222    builtin and then its argument prototype would still apply.  */
9223 char opendir ();
9224 int
9225 main ()
9226 {
9227 opendir ();
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext conftest$ac_exeext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234   (eval $ac_link) 2>conftest.er1
9235   ac_status=$?
9236   grep -v '^ *+' conftest.er1 >conftest.err
9237   rm -f conftest.er1
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } &&
9241          { ac_try='test -z "$ac_c_werror_flag"
9242                          || test ! -s conftest.err'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; } &&
9248          { ac_try='test -s conftest$ac_exeext'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; }; then
9254   ac_cv_search_opendir="none required"
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 fi
9260 rm -f conftest.err conftest.$ac_objext \
9261       conftest$ac_exeext conftest.$ac_ext
9262 if test "$ac_cv_search_opendir" = no; then
9263   for ac_lib in x; do
9264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9265     cat >conftest.$ac_ext <<_ACEOF
9266 /* confdefs.h.  */
9267 _ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h.  */
9271
9272 /* Override any gcc2 internal prototype to avoid an error.  */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 /* We use char because int might match the return type of a gcc2
9277    builtin and then its argument prototype would still apply.  */
9278 char opendir ();
9279 int
9280 main ()
9281 {
9282 opendir ();
9283   ;
9284   return 0;
9285 }
9286 _ACEOF
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289   (eval $ac_link) 2>conftest.er1
9290   ac_status=$?
9291   grep -v '^ *+' conftest.er1 >conftest.err
9292   rm -f conftest.er1
9293   cat conftest.err >&5
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } &&
9296          { ac_try='test -z "$ac_c_werror_flag"
9297                          || test ! -s conftest.err'
9298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299   (eval $ac_try) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); }; } &&
9303          { ac_try='test -s conftest$ac_exeext'
9304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305   (eval $ac_try) 2>&5
9306   ac_status=$?
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); }; }; then
9309   ac_cv_search_opendir="-l$ac_lib"
9310 break
9311 else
9312   echo "$as_me: failed program was:" >&5
9313 sed 's/^/| /' conftest.$ac_ext >&5
9314
9315 fi
9316 rm -f conftest.err conftest.$ac_objext \
9317       conftest$ac_exeext conftest.$ac_ext
9318   done
9319 fi
9320 LIBS=$ac_func_search_save_LIBS
9321 fi
9322 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9323 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9324 if test "$ac_cv_search_opendir" != no; then
9325   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9326
9327 fi
9328
9329 fi
9330
9331
9332
9333
9334
9335
9336
9337
9338 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
9339 do
9340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341 echo "$as_me:$LINENO: checking for $ac_func" >&5
9342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9343 if eval "test \"\${$as_ac_var+set}\" = set"; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346   cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9354 #define $ac_func innocuous_$ac_func
9355
9356 /* System header to define __stub macros and hopefully few prototypes,
9357     which can conflict with char $ac_func (); below.
9358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359     <limits.h> exists even on freestanding compilers.  */
9360
9361 #ifdef __STDC__
9362 # include <limits.h>
9363 #else
9364 # include <assert.h>
9365 #endif
9366
9367 #undef $ac_func
9368
9369 /* Override any gcc2 internal prototype to avoid an error.  */
9370 #ifdef __cplusplus
9371 extern "C"
9372 {
9373 #endif
9374 /* We use char because int might match the return type of a gcc2
9375    builtin and then its argument prototype would still apply.  */
9376 char $ac_func ();
9377 /* The GNU C library defines this for functions which it implements
9378     to always fail with ENOSYS.  Some functions are actually named
9379     something starting with __ and the normal name is an alias.  */
9380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9381 choke me
9382 #else
9383 char (*f) () = $ac_func;
9384 #endif
9385 #ifdef __cplusplus
9386 }
9387 #endif
9388
9389 int
9390 main ()
9391 {
9392 return f != $ac_func;
9393   ;
9394   return 0;
9395 }
9396 _ACEOF
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399   (eval $ac_link) 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } &&
9406          { ac_try='test -z "$ac_c_werror_flag"
9407                          || test ! -s conftest.err'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; } &&
9413          { ac_try='test -s conftest$ac_exeext'
9414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415   (eval $ac_try) 2>&5
9416   ac_status=$?
9417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418   (exit $ac_status); }; }; then
9419   eval "$as_ac_var=yes"
9420 else
9421   echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9423
9424 eval "$as_ac_var=no"
9425 fi
9426 rm -f conftest.err conftest.$ac_objext \
9427       conftest$ac_exeext conftest.$ac_ext
9428 fi
9429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9431 if test `eval echo '${'$as_ac_var'}'` = yes; then
9432   cat >>confdefs.h <<_ACEOF
9433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9434 _ACEOF
9435
9436 fi
9437 done
9438
9439
9440 for ac_func in strtoull
9441 do
9442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9443 echo "$as_me:$LINENO: checking for $ac_func" >&5
9444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9445 if eval "test \"\${$as_ac_var+set}\" = set"; then
9446   echo $ECHO_N "(cached) $ECHO_C" >&6
9447 else
9448   cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h.  */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h.  */
9454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9456 #define $ac_func innocuous_$ac_func
9457
9458 /* System header to define __stub macros and hopefully few prototypes,
9459     which can conflict with char $ac_func (); below.
9460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461     <limits.h> exists even on freestanding compilers.  */
9462
9463 #ifdef __STDC__
9464 # include <limits.h>
9465 #else
9466 # include <assert.h>
9467 #endif
9468
9469 #undef $ac_func
9470
9471 /* Override any gcc2 internal prototype to avoid an error.  */
9472 #ifdef __cplusplus
9473 extern "C"
9474 {
9475 #endif
9476 /* We use char because int might match the return type of a gcc2
9477    builtin and then its argument prototype would still apply.  */
9478 char $ac_func ();
9479 /* The GNU C library defines this for functions which it implements
9480     to always fail with ENOSYS.  Some functions are actually named
9481     something starting with __ and the normal name is an alias.  */
9482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483 choke me
9484 #else
9485 char (*f) () = $ac_func;
9486 #endif
9487 #ifdef __cplusplus
9488 }
9489 #endif
9490
9491 int
9492 main ()
9493 {
9494 return f != $ac_func;
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501   (eval $ac_link) 2>conftest.er1
9502   ac_status=$?
9503   grep -v '^ *+' conftest.er1 >conftest.err
9504   rm -f conftest.er1
9505   cat conftest.err >&5
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -z "$ac_c_werror_flag"
9509                          || test ! -s conftest.err'
9510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511   (eval $ac_try) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; } &&
9515          { ac_try='test -s conftest$ac_exeext'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; }; then
9521   eval "$as_ac_var=yes"
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 eval "$as_ac_var=no"
9527 fi
9528 rm -f conftest.err conftest.$ac_objext \
9529       conftest$ac_exeext conftest.$ac_ext
9530 fi
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533 if test `eval echo '${'$as_ac_var'}'` = yes; then
9534   cat >>confdefs.h <<_ACEOF
9535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536 _ACEOF
9537
9538 fi
9539 done
9540
9541
9542 echo "$as_me:$LINENO: checking whether basename is declared" >&5
9543 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
9544 if test "${ac_cv_have_decl_basename+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h.  */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h.  */
9553 #include "sysdep.h"
9554
9555 int
9556 main ()
9557 {
9558 #ifndef basename
9559   char *p = (char *) basename;
9560 #endif
9561
9562   ;
9563   return 0;
9564 }
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568   (eval $ac_compile) 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } &&
9575          { ac_try='test -z "$ac_c_werror_flag"
9576                          || test ! -s conftest.err'
9577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578   (eval $ac_try) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); }; } &&
9582          { ac_try='test -s conftest.$ac_objext'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; }; then
9588   ac_cv_have_decl_basename=yes
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 ac_cv_have_decl_basename=no
9594 fi
9595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9596 fi
9597 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
9598 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
9599 if test $ac_cv_have_decl_basename = yes; then
9600
9601 cat >>confdefs.h <<_ACEOF
9602 #define HAVE_DECL_BASENAME 1
9603 _ACEOF
9604
9605
9606 else
9607   cat >>confdefs.h <<_ACEOF
9608 #define HAVE_DECL_BASENAME 0
9609 _ACEOF
9610
9611
9612 fi
9613
9614
9615
9616
9617 case "${host}" in
9618 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9619
9620 cat >>confdefs.h <<\_ACEOF
9621 #define USE_BINARY_FOPEN 1
9622 _ACEOF
9623  ;;
9624 esac
9625
9626 echo "$as_me:$LINENO: checking whether ffs must be declared" >&5
9627 echo $ECHO_N "checking whether ffs must be declared... $ECHO_C" >&6
9628 if test "${bfd_cv_decl_needed_ffs+set}" = set; then
9629   echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631   cat >conftest.$ac_ext <<_ACEOF
9632 /* confdefs.h.  */
9633 _ACEOF
9634 cat confdefs.h >>conftest.$ac_ext
9635 cat >>conftest.$ac_ext <<_ACEOF
9636 /* end confdefs.h.  */
9637
9638 #include <stdio.h>
9639 #ifdef HAVE_STRING_H
9640 #include <string.h>
9641 #else
9642 #ifdef HAVE_STRINGS_H
9643 #include <strings.h>
9644 #endif
9645 #endif
9646 #ifdef HAVE_STDLIB_H
9647 #include <stdlib.h>
9648 #endif
9649 #ifdef HAVE_UNISTD_H
9650 #include <unistd.h>
9651 #endif
9652 int
9653 main ()
9654 {
9655 char *(*pfn) = (char *(*)) ffs
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 rm -f conftest.$ac_objext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9662   (eval $ac_compile) 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } &&
9669          { ac_try='test -z "$ac_c_werror_flag"
9670                          || test ! -s conftest.err'
9671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672   (eval $ac_try) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest.$ac_objext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   bfd_cv_decl_needed_ffs=no
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 bfd_cv_decl_needed_ffs=yes
9688 fi
9689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9690 fi
9691
9692 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_ffs" >&5
9693 echo "${ECHO_T}$bfd_cv_decl_needed_ffs" >&6
9694 if test $bfd_cv_decl_needed_ffs = yes; then
9695
9696 cat >>confdefs.h <<\_ACEOF
9697 #define NEED_DECLARATION_FFS 1
9698 _ACEOF
9699
9700 fi
9701
9702 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9703 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9704 if test "${bfd_cv_decl_needed_free+set}" = set; then
9705   echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707   cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713
9714 #include <stdio.h>
9715 #ifdef HAVE_STRING_H
9716 #include <string.h>
9717 #else
9718 #ifdef HAVE_STRINGS_H
9719 #include <strings.h>
9720 #endif
9721 #endif
9722 #ifdef HAVE_STDLIB_H
9723 #include <stdlib.h>
9724 #endif
9725 #ifdef HAVE_UNISTD_H
9726 #include <unistd.h>
9727 #endif
9728 int
9729 main ()
9730 {
9731 char *(*pfn) = (char *(*)) free
9732   ;
9733   return 0;
9734 }
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738   (eval $ac_compile) 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } &&
9745          { ac_try='test -z "$ac_c_werror_flag"
9746                          || test ! -s conftest.err'
9747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748   (eval $ac_try) 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); }; } &&
9752          { ac_try='test -s conftest.$ac_objext'
9753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9754   (eval $ac_try) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); }; }; then
9758   bfd_cv_decl_needed_free=no
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763 bfd_cv_decl_needed_free=yes
9764 fi
9765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9766 fi
9767
9768 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9769 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9770 if test $bfd_cv_decl_needed_free = yes; then
9771
9772 cat >>confdefs.h <<\_ACEOF
9773 #define NEED_DECLARATION_FREE 1
9774 _ACEOF
9775
9776 fi
9777
9778 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9779 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9780 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783   cat >conftest.$ac_ext <<_ACEOF
9784 /* confdefs.h.  */
9785 _ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h.  */
9789
9790 #include <stdio.h>
9791 #ifdef HAVE_STRING_H
9792 #include <string.h>
9793 #else
9794 #ifdef HAVE_STRINGS_H
9795 #include <strings.h>
9796 #endif
9797 #endif
9798 #ifdef HAVE_STDLIB_H
9799 #include <stdlib.h>
9800 #endif
9801 #ifdef HAVE_UNISTD_H
9802 #include <unistd.h>
9803 #endif
9804 int
9805 main ()
9806 {
9807 char *(*pfn) = (char *(*)) getenv
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9814   (eval $ac_compile) 2>conftest.er1
9815   ac_status=$?
9816   grep -v '^ *+' conftest.er1 >conftest.err
9817   rm -f conftest.er1
9818   cat conftest.err >&5
9819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820   (exit $ac_status); } &&
9821          { ac_try='test -z "$ac_c_werror_flag"
9822                          || test ! -s conftest.err'
9823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824   (eval $ac_try) 2>&5
9825   ac_status=$?
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); }; } &&
9828          { ac_try='test -s conftest.$ac_objext'
9829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830   (eval $ac_try) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); }; }; then
9834   bfd_cv_decl_needed_getenv=no
9835 else
9836   echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 bfd_cv_decl_needed_getenv=yes
9840 fi
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9842 fi
9843
9844 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9845 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9846 if test $bfd_cv_decl_needed_getenv = yes; then
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define NEED_DECLARATION_GETENV 1
9850 _ACEOF
9851
9852 fi
9853
9854 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9855 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9856 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9857   echo $ECHO_N "(cached) $ECHO_C" >&6
9858 else
9859   cat >conftest.$ac_ext <<_ACEOF
9860 /* confdefs.h.  */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h.  */
9865
9866 #include <stdio.h>
9867 #ifdef HAVE_STRING_H
9868 #include <string.h>
9869 #else
9870 #ifdef HAVE_STRINGS_H
9871 #include <strings.h>
9872 #endif
9873 #endif
9874 #ifdef HAVE_STDLIB_H
9875 #include <stdlib.h>
9876 #endif
9877 #ifdef HAVE_UNISTD_H
9878 #include <unistd.h>
9879 #endif
9880 int
9881 main ()
9882 {
9883 char *(*pfn) = (char *(*)) malloc
9884   ;
9885   return 0;
9886 }
9887 _ACEOF
9888 rm -f conftest.$ac_objext
9889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9890   (eval $ac_compile) 2>conftest.er1
9891   ac_status=$?
9892   grep -v '^ *+' conftest.er1 >conftest.err
9893   rm -f conftest.er1
9894   cat conftest.err >&5
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); } &&
9897          { ac_try='test -z "$ac_c_werror_flag"
9898                          || test ! -s conftest.err'
9899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900   (eval $ac_try) 2>&5
9901   ac_status=$?
9902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903   (exit $ac_status); }; } &&
9904          { ac_try='test -s conftest.$ac_objext'
9905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906   (eval $ac_try) 2>&5
9907   ac_status=$?
9908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909   (exit $ac_status); }; }; then
9910   bfd_cv_decl_needed_malloc=no
9911 else
9912   echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 bfd_cv_decl_needed_malloc=yes
9916 fi
9917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9918 fi
9919
9920 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9921 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9922 if test $bfd_cv_decl_needed_malloc = yes; then
9923
9924 cat >>confdefs.h <<\_ACEOF
9925 #define NEED_DECLARATION_MALLOC 1
9926 _ACEOF
9927
9928 fi
9929
9930 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9931 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9932 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9933   echo $ECHO_N "(cached) $ECHO_C" >&6
9934 else
9935   cat >conftest.$ac_ext <<_ACEOF
9936 /* confdefs.h.  */
9937 _ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h.  */
9941
9942 #include <stdio.h>
9943 #ifdef HAVE_STRING_H
9944 #include <string.h>
9945 #else
9946 #ifdef HAVE_STRINGS_H
9947 #include <strings.h>
9948 #endif
9949 #endif
9950 #ifdef HAVE_STDLIB_H
9951 #include <stdlib.h>
9952 #endif
9953 #ifdef HAVE_UNISTD_H
9954 #include <unistd.h>
9955 #endif
9956 int
9957 main ()
9958 {
9959 char *(*pfn) = (char *(*)) realloc
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966   (eval $ac_compile) 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } &&
9973          { ac_try='test -z "$ac_c_werror_flag"
9974                          || test ! -s conftest.err'
9975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9976   (eval $ac_try) 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); }; } &&
9980          { ac_try='test -s conftest.$ac_objext'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   bfd_cv_decl_needed_realloc=no
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 bfd_cv_decl_needed_realloc=yes
9992 fi
9993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9994 fi
9995
9996 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9997 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9998 if test $bfd_cv_decl_needed_realloc = yes; then
9999
10000 cat >>confdefs.h <<\_ACEOF
10001 #define NEED_DECLARATION_REALLOC 1
10002 _ACEOF
10003
10004 fi
10005
10006 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
10007 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
10008 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
10009   echo $ECHO_N "(cached) $ECHO_C" >&6
10010 else
10011   cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017
10018 #include <stdio.h>
10019 #ifdef HAVE_STRING_H
10020 #include <string.h>
10021 #else
10022 #ifdef HAVE_STRINGS_H
10023 #include <strings.h>
10024 #endif
10025 #endif
10026 #ifdef HAVE_STDLIB_H
10027 #include <stdlib.h>
10028 #endif
10029 #ifdef HAVE_UNISTD_H
10030 #include <unistd.h>
10031 #endif
10032 int
10033 main ()
10034 {
10035 char *(*pfn) = (char *(*)) strstr
10036   ;
10037   return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext
10041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10042   (eval $ac_compile) 2>conftest.er1
10043   ac_status=$?
10044   grep -v '^ *+' conftest.er1 >conftest.err
10045   rm -f conftest.er1
10046   cat conftest.err >&5
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); } &&
10049          { ac_try='test -z "$ac_c_werror_flag"
10050                          || test ! -s conftest.err'
10051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052   (eval $ac_try) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); }; } &&
10056          { ac_try='test -s conftest.$ac_objext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   bfd_cv_decl_needed_strstr=no
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 bfd_cv_decl_needed_strstr=yes
10068 fi
10069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10070 fi
10071
10072 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
10073 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
10074 if test $bfd_cv_decl_needed_strstr = yes; then
10075
10076 cat >>confdefs.h <<\_ACEOF
10077 #define NEED_DECLARATION_STRSTR 1
10078 _ACEOF
10079
10080 fi
10081
10082
10083 # If we are configured native, pick a core file support file.
10084 COREFILE=
10085 COREFLAG=
10086 TRAD_HEADER=
10087 if test "${target}" = "${host}"; then
10088   case "${host}" in
10089   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
10090         COREFILE=''
10091         ;;
10092   alpha*-*-linux-*)
10093         COREFILE=trad-core.lo
10094         TRAD_HEADER='"hosts/alphalinux.h"'
10095         ;;
10096   alpha*-*-netbsd* | alpha*-*-openbsd*)
10097         COREFILE=netbsd-core.lo
10098         ;;
10099   alpha*-*-*)           COREFILE=osf-core.lo ;;
10100   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
10101                         COREFILE='' ;;
10102   arm-*-netbsd*)        COREFILE=netbsd-core.lo ;;
10103   arm-*-riscix)         COREFILE=trad-core.lo ;;
10104   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
10105   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
10106   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
10107   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
10108                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
10109   hppa*-*-netbsd* | hppa*-*-openbsd*)
10110         COREFILE=netbsd-core.lo
10111         ;;
10112
10113   i370-*-*)
10114         COREFILE=trad-core.lo
10115         TRAD_HEADER='"hosts/i370linux.h"'
10116         ;;
10117
10118   i[3-7]86-sequent-bsd*)
10119         COREFILE=trad-core.lo
10120         TRAD_HEADER='"hosts/symmetry.h"'
10121         ;;
10122   i[3-7]86-sequent-sysv4*) ;;
10123   i[3-7]86-sequent-sysv*)
10124         COREFILE=trad-core.lo
10125         TRAD_HEADER='"hosts/symmetry.h"'
10126         ;;
10127   i[3-7]86-*-bsdi)
10128         COREFILE=
10129         ;;
10130   i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
10131         COREFILE=trad-core.lo
10132         TRAD_HEADER='"hosts/i386bsd.h"'
10133         ;;
10134   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
10135         COREFILE=''
10136         TRAD_HEADER='"hosts/i386bsd.h"'
10137         ;;
10138   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
10139         COREFILE=netbsd-core.lo
10140         ;;
10141   i[3-7]86-esix-sysv3*)
10142         COREFILE=trad-core.lo
10143         TRAD_HEADER='"hosts/esix.h"'
10144         ;;
10145   i[3-7]86-*-sco3.2v5*)
10146         COREFILE=sco5-core.lo
10147         ;;
10148   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
10149         COREFILE=trad-core.lo
10150         TRAD_HEADER='"hosts/i386sco.h"'
10151         ;;
10152   i[3-7]86-*-mach3*)
10153         COREFILE=trad-core.lo
10154         TRAD_HEADER='"hosts/i386mach3.h"'
10155         ;;
10156   i[3-7]86-*-linux-*)
10157         COREFILE=trad-core.lo
10158         TRAD_HEADER='"hosts/i386linux.h"'
10159         ;;
10160   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
10161   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
10162   i860-*-mach3* | i860-*-osf1*)
10163         COREFILE=trad-core.lo
10164         TRAD_HEADER='"hosts/i860mach3.h"'
10165         ;;
10166   mips-*-netbsd* | mips*-*-openbsd*)
10167         COREFILE=netbsd-core.lo
10168         ;;
10169   mips-dec-*)
10170         COREFILE=trad-core.lo
10171         TRAD_HEADER='"hosts/decstation.h"'
10172         ;;
10173   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
10174   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
10175   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
10176   mips-*-sysv4*)        ;;
10177   mips-*-sysv* | mips-*-riscos*)
10178         COREFILE=trad-core.lo
10179         TRAD_HEADER='"hosts/riscos.h"'
10180         ;;
10181   mips-sony-bsd*)
10182         COREFILE=trad-core.lo
10183         TRAD_HEADER='"hosts/news-mips.h"'
10184         ;;
10185   m68*-bull*-sysv*)
10186         COREFILE=trad-core.lo
10187         TRAD_HEADER='"hosts/dpx2.h"'
10188         ;;
10189   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
10190   m68*-hp-bsd*)
10191         COREFILE=trad-core.lo
10192         TRAD_HEADER='"hosts/hp300bsd.h"'
10193         ;;
10194   m68*-*-linux-*)
10195         COREFILE=trad-core.lo
10196         TRAD_HEADER='"hosts/m68klinux.h"'
10197         ;;
10198   m68*-motorola-sysv*)
10199         COREFILE=trad-core.lo
10200         TRAD_HEADER='"hosts/delta68.h"'
10201         ;;
10202   m68*-sony-*)
10203         COREFILE=trad-core.lo
10204         TRAD_HEADER='"hosts/news.h"'
10205         ;;
10206   m68*-*-netbsd* | m68*-*-openbsd*)
10207         COREFILE=netbsd-core.lo
10208         ;;
10209   m68*-apple-aux*)
10210         COREFILE=trad-core.lo
10211         TRAD_HEADER='"hosts/m68kaux.h"'
10212         ;;
10213   m88*-*-sysv4*)
10214         ;;
10215   m88*-motorola-sysv*)
10216         COREFILE=ptrace-core.lo
10217         ;;
10218   m88*-*-mach3*)
10219         COREFILE=trad-core.lo
10220         TRAD_HEADER='"hosts/m88kmach3.h"'
10221         ;;
10222   m88*-*-openbsd*)
10223         COREFILE=netbsd-core.lo
10224         ;;
10225   ns32k-pc532-mach)
10226         COREFILE=trad-core.lo
10227         TRAD_HEADER='"hosts/pc532mach.h"'
10228         ;;
10229   ns32k-*-netbsd* | ns32k-*-openbsd*)
10230         COREFILE=netbsd-core.lo
10231         ;;
10232   rs6000-*-lynx*)
10233         COREFILE=lynx-core.lo
10234         ;;
10235   rs6000-*-aix5.* | powerpc-*-aix5.*)
10236         COREFILE=rs6000-core.lo
10237         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10238         ;;
10239   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
10240         COREFILE=rs6000-core.lo
10241         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
10242         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10243         # have c_impl as a member of struct core_dumpx
10244         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10245 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10246         cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 #include <core.h>
10253 int
10254 main ()
10255 {
10256 struct core_dumpx c; c.c_impl = 0;
10257   ;
10258   return 0;
10259 }
10260 _ACEOF
10261 rm -f conftest.$ac_objext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10263   (eval $ac_compile) 2>conftest.er1
10264   ac_status=$?
10265   grep -v '^ *+' conftest.er1 >conftest.err
10266   rm -f conftest.er1
10267   cat conftest.err >&5
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); } &&
10270          { ac_try='test -z "$ac_c_werror_flag"
10271                          || test ! -s conftest.err'
10272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10273   (eval $ac_try) 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; } &&
10277          { ac_try='test -s conftest.$ac_objext'
10278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279   (eval $ac_try) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); }; }; then
10283
10284 cat >>confdefs.h <<\_ACEOF
10285 #define HAVE_ST_C_IMPL 1
10286 _ACEOF
10287
10288           echo "$as_me:$LINENO: result: yes" >&5
10289 echo "${ECHO_T}yes" >&6
10290 else
10291   echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10293
10294 echo "$as_me:$LINENO: result: no" >&5
10295 echo "${ECHO_T}no" >&6
10296 fi
10297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10298         ;;
10299   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
10300   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
10301   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
10302   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
10303   powerpc-*-beos*)      ;;
10304   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10305                         COREFILE='' ;;
10306   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
10307   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
10308   s390*-*-*)            COREFILE=trad-core.lo ;;
10309   sh*-*-netbsd*)        COREFILE=netbsd-core.lo ;;
10310   sparc-*-netbsd* | sparc*-*-openbsd*)
10311         COREFILE=netbsd-core.lo
10312         ;;
10313   tahoe-*-*)
10314         COREFILE=trad-core.lo
10315         TRAD_HEADER='"hosts/tahoe.h"'
10316         ;;
10317   vax-*-netbsd* | vax-*-openbsd*)
10318         COREFILE=netbsd-core.lo
10319         ;;
10320   vax-*-ultrix2*)
10321         COREFILE=trad-core.lo
10322         TRAD_HEADER='"hosts/vaxult2.h"'
10323         ;;
10324   vax-*-ultrix*)
10325         COREFILE=trad-core.lo
10326         TRAD_HEADER='"hosts/vaxult2.h"'
10327         ;;
10328   vax-*-linux-*)
10329         COREFILE=trad-core.lo
10330         TRAD_HEADER='"hosts/vaxlinux.h"'
10331         ;;
10332   vax-*-*)
10333         COREFILE=trad-core.lo
10334         TRAD_HEADER='"hosts/vaxbsd.h"'
10335         ;;
10336   x86_64-*-netbsd* | x86_64-*-openbsd*)
10337         COREFILE=netbsd-core.lo
10338         ;;
10339   esac
10340
10341   case "$COREFILE" in
10342   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
10343   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
10344   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
10345   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
10346   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
10347   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
10348   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
10349   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
10350   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
10351   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10352   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10353   esac
10354
10355   # ELF corefile support has several flavors, but all of
10356   # them use something called <sys/procfs.h>
10357
10358 for ac_header in sys/procfs.h
10359 do
10360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10362   echo "$as_me:$LINENO: checking for $ac_header" >&5
10363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10365   echo $ECHO_N "(cached) $ECHO_C" >&6
10366 fi
10367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10369 else
10370   # Is the header compilable?
10371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 $ac_includes_default
10380 #include <$ac_header>
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384   (eval $ac_compile) 2>conftest.er1
10385   ac_status=$?
10386   grep -v '^ *+' conftest.er1 >conftest.err
10387   rm -f conftest.er1
10388   cat conftest.err >&5
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); } &&
10391          { ac_try='test -z "$ac_c_werror_flag"
10392                          || test ! -s conftest.err'
10393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394   (eval $ac_try) 2>&5
10395   ac_status=$?
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); }; } &&
10398          { ac_try='test -s conftest.$ac_objext'
10399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400   (eval $ac_try) 2>&5
10401   ac_status=$?
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); }; }; then
10404   ac_header_compiler=yes
10405 else
10406   echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 ac_header_compiler=no
10410 fi
10411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10413 echo "${ECHO_T}$ac_header_compiler" >&6
10414
10415 # Is the header present?
10416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10418 cat >conftest.$ac_ext <<_ACEOF
10419 /* confdefs.h.  */
10420 _ACEOF
10421 cat confdefs.h >>conftest.$ac_ext
10422 cat >>conftest.$ac_ext <<_ACEOF
10423 /* end confdefs.h.  */
10424 #include <$ac_header>
10425 _ACEOF
10426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10427   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10428   ac_status=$?
10429   grep -v '^ *+' conftest.er1 >conftest.err
10430   rm -f conftest.er1
10431   cat conftest.err >&5
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } >/dev/null; then
10434   if test -s conftest.err; then
10435     ac_cpp_err=$ac_c_preproc_warn_flag
10436     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10437   else
10438     ac_cpp_err=
10439   fi
10440 else
10441   ac_cpp_err=yes
10442 fi
10443 if test -z "$ac_cpp_err"; then
10444   ac_header_preproc=yes
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449   ac_header_preproc=no
10450 fi
10451 rm -f conftest.err conftest.$ac_ext
10452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10453 echo "${ECHO_T}$ac_header_preproc" >&6
10454
10455 # So?  What about this header?
10456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10457   yes:no: )
10458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10462     ac_header_preproc=yes
10463     ;;
10464   no:yes:* )
10465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10477     (
10478       cat <<\_ASBOX
10479 ## ------------------------------------------ ##
10480 ## Report this to the AC_PACKAGE_NAME lists.  ##
10481 ## ------------------------------------------ ##
10482 _ASBOX
10483     ) |
10484       sed "s/^/$as_me: WARNING:     /" >&2
10485     ;;
10486 esac
10487 echo "$as_me:$LINENO: checking for $ac_header" >&5
10488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10490   echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492   eval "$as_ac_Header=\$ac_header_preproc"
10493 fi
10494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10495 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10496
10497 fi
10498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10499   cat >>confdefs.h <<_ACEOF
10500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10501 _ACEOF
10502
10503 fi
10504
10505 done
10506
10507   if test "$ac_cv_header_sys_procfs_h" = yes; then
10508     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10509 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10510  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10511   echo $ECHO_N "(cached) $ECHO_C" >&6
10512 else
10513   cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519
10520 #define _SYSCALL32
10521 #include <sys/procfs.h>
10522 int
10523 main ()
10524 {
10525 prstatus_t avar
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10532   (eval $ac_compile) 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -z "$ac_c_werror_flag"
10540                          || test ! -s conftest.err'
10541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542   (eval $ac_try) 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; } &&
10546          { ac_try='test -s conftest.$ac_objext'
10547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; }; then
10552   bfd_cv_have_sys_procfs_type_prstatus_t=yes
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 bfd_cv_have_sys_procfs_type_prstatus_t=no
10558
10559 fi
10560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10561 fi
10562
10563  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10564
10565 cat >>confdefs.h <<\_ACEOF
10566 #define HAVE_PRSTATUS_T 1
10567 _ACEOF
10568
10569  fi
10570  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10571 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10572
10573     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10574 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10575  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578   cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584
10585 #define _SYSCALL32
10586 #include <sys/procfs.h>
10587 int
10588 main ()
10589 {
10590 prstatus32_t avar
10591   ;
10592   return 0;
10593 }
10594 _ACEOF
10595 rm -f conftest.$ac_objext
10596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10597   (eval $ac_compile) 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } &&
10604          { ac_try='test -z "$ac_c_werror_flag"
10605                          || test ! -s conftest.err'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; } &&
10611          { ac_try='test -s conftest.$ac_objext'
10612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613   (eval $ac_try) 2>&5
10614   ac_status=$?
10615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616   (exit $ac_status); }; }; then
10617   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10618 else
10619   echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10621
10622 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10623
10624 fi
10625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10626 fi
10627
10628  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10629
10630 cat >>confdefs.h <<\_ACEOF
10631 #define HAVE_PRSTATUS32_T 1
10632 _ACEOF
10633
10634  fi
10635  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10636 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10637
10638     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10639 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10640  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10641   echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643   cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h.  */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h.  */
10649
10650 #define _SYSCALL32
10651 #include <sys/procfs.h>
10652 int
10653 main ()
10654 {
10655 prstatus_t avar; void* aref = (void*) &avar.pr_who
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662   (eval $ac_compile) 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag"
10670                          || test ! -s conftest.err'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; } &&
10676          { ac_try='test -s conftest.$ac_objext'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10688
10689 fi
10690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10691 fi
10692
10693  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10694
10695 cat >>confdefs.h <<\_ACEOF
10696 #define HAVE_PRSTATUS_T_PR_WHO 1
10697 _ACEOF
10698
10699  fi
10700  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10701 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10702
10703     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10704 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10705  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10706   echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708   cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h.  */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h.  */
10714
10715 #define _SYSCALL32
10716 #include <sys/procfs.h>
10717 int
10718 main ()
10719 {
10720 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 rm -f conftest.$ac_objext
10726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10727   (eval $ac_compile) 2>conftest.er1
10728   ac_status=$?
10729   grep -v '^ *+' conftest.er1 >conftest.err
10730   rm -f conftest.er1
10731   cat conftest.err >&5
10732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733   (exit $ac_status); } &&
10734          { ac_try='test -z "$ac_c_werror_flag"
10735                          || test ! -s conftest.err'
10736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737   (eval $ac_try) 2>&5
10738   ac_status=$?
10739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740   (exit $ac_status); }; } &&
10741          { ac_try='test -s conftest.$ac_objext'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; }; then
10747   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10748 else
10749   echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10753
10754 fi
10755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10756 fi
10757
10758  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10759
10760 cat >>confdefs.h <<\_ACEOF
10761 #define HAVE_PRSTATUS32_T_PR_WHO 1
10762 _ACEOF
10763
10764  fi
10765  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10766 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10767
10768     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10769 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10770  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779
10780 #define _SYSCALL32
10781 #include <sys/procfs.h>
10782 int
10783 main ()
10784 {
10785 pstatus_t avar
10786   ;
10787   return 0;
10788 }
10789 _ACEOF
10790 rm -f conftest.$ac_objext
10791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10792   (eval $ac_compile) 2>conftest.er1
10793   ac_status=$?
10794   grep -v '^ *+' conftest.er1 >conftest.err
10795   rm -f conftest.er1
10796   cat conftest.err >&5
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -z "$ac_c_werror_flag"
10800                          || test ! -s conftest.err'
10801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802   (eval $ac_try) 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); }; } &&
10806          { ac_try='test -s conftest.$ac_objext'
10807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808   (eval $ac_try) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; }; then
10812   bfd_cv_have_sys_procfs_type_pstatus_t=yes
10813 else
10814   echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 bfd_cv_have_sys_procfs_type_pstatus_t=no
10818
10819 fi
10820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10821 fi
10822
10823  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10824
10825 cat >>confdefs.h <<\_ACEOF
10826 #define HAVE_PSTATUS_T 1
10827 _ACEOF
10828
10829  fi
10830  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10831 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10832
10833     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10834 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10835  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10836   echo $ECHO_N "(cached) $ECHO_C" >&6
10837 else
10838   cat >conftest.$ac_ext <<_ACEOF
10839 /* confdefs.h.  */
10840 _ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h.  */
10844
10845 #define _SYSCALL32
10846 #include <sys/procfs.h>
10847 int
10848 main ()
10849 {
10850 pxstatus_t avar
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 rm -f conftest.$ac_objext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10857   (eval $ac_compile) 2>conftest.er1
10858   ac_status=$?
10859   grep -v '^ *+' conftest.er1 >conftest.err
10860   rm -f conftest.er1
10861   cat conftest.err >&5
10862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863   (exit $ac_status); } &&
10864          { ac_try='test -z "$ac_c_werror_flag"
10865                          || test ! -s conftest.err'
10866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867   (eval $ac_try) 2>&5
10868   ac_status=$?
10869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870   (exit $ac_status); }; } &&
10871          { ac_try='test -s conftest.$ac_objext'
10872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873   (eval $ac_try) 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; }; then
10877   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10883
10884 fi
10885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10886 fi
10887
10888  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_PXSTATUS_T 1
10892 _ACEOF
10893
10894  fi
10895  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10896 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10897
10898     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10899 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10900  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10901   echo $ECHO_N "(cached) $ECHO_C" >&6
10902 else
10903   cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 #define _SYSCALL32
10911 #include <sys/procfs.h>
10912 int
10913 main ()
10914 {
10915 pstatus32_t avar
10916   ;
10917   return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext
10921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10922   (eval $ac_compile) 2>conftest.er1
10923   ac_status=$?
10924   grep -v '^ *+' conftest.er1 >conftest.err
10925   rm -f conftest.er1
10926   cat conftest.err >&5
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } &&
10929          { ac_try='test -z "$ac_c_werror_flag"
10930                          || test ! -s conftest.err'
10931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932   (eval $ac_try) 2>&5
10933   ac_status=$?
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); }; } &&
10936          { ac_try='test -s conftest.$ac_objext'
10937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938   (eval $ac_try) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; }; then
10942   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10943 else
10944   echo "$as_me: failed program was:" >&5
10945 sed 's/^/| /' conftest.$ac_ext >&5
10946
10947 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10948
10949 fi
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951 fi
10952
10953  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10954
10955 cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_PSTATUS32_T 1
10957 _ACEOF
10958
10959  fi
10960  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10961 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10962
10963     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10964 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10965  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10966   echo $ECHO_N "(cached) $ECHO_C" >&6
10967 else
10968   cat >conftest.$ac_ext <<_ACEOF
10969 /* confdefs.h.  */
10970 _ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h.  */
10974
10975 #define _SYSCALL32
10976 #include <sys/procfs.h>
10977 int
10978 main ()
10979 {
10980 prpsinfo_t avar
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 rm -f conftest.$ac_objext
10986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10987   (eval $ac_compile) 2>conftest.er1
10988   ac_status=$?
10989   grep -v '^ *+' conftest.er1 >conftest.err
10990   rm -f conftest.er1
10991   cat conftest.err >&5
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); } &&
10994          { ac_try='test -z "$ac_c_werror_flag"
10995                          || test ! -s conftest.err'
10996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10997   (eval $ac_try) 2>&5
10998   ac_status=$?
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); }; } &&
11001          { ac_try='test -s conftest.$ac_objext'
11002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003   (eval $ac_try) 2>&5
11004   ac_status=$?
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); }; }; then
11007   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
11013
11014 fi
11015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11016 fi
11017
11018  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
11019
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_PRPSINFO_T 1
11022 _ACEOF
11023
11024  fi
11025  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
11026 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
11027
11028     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
11029 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
11030  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033   cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039
11040 #define _SYSCALL32
11041 #include <sys/procfs.h>
11042 int
11043 main ()
11044 {
11045 prpsinfo32_t avar
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052   (eval $ac_compile) 2>conftest.er1
11053   ac_status=$?
11054   grep -v '^ *+' conftest.er1 >conftest.err
11055   rm -f conftest.er1
11056   cat conftest.err >&5
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); } &&
11059          { ac_try='test -z "$ac_c_werror_flag"
11060                          || test ! -s conftest.err'
11061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062   (eval $ac_try) 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); }; } &&
11066          { ac_try='test -s conftest.$ac_objext'
11067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068   (eval $ac_try) 2>&5
11069   ac_status=$?
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); }; }; then
11072   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
11078
11079 fi
11080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11081 fi
11082
11083  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
11084
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_PRPSINFO32_T 1
11087 _ACEOF
11088
11089  fi
11090  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
11091 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
11092
11093     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
11094 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
11095  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
11096   echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098   cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104
11105 #define _SYSCALL32
11106 #include <sys/procfs.h>
11107 int
11108 main ()
11109 {
11110 psinfo_t avar
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117   (eval $ac_compile) 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -z "$ac_c_werror_flag"
11125                          || test ! -s conftest.err'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; } &&
11131          { ac_try='test -s conftest.$ac_objext'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; }; then
11137   bfd_cv_have_sys_procfs_type_psinfo_t=yes
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 bfd_cv_have_sys_procfs_type_psinfo_t=no
11143
11144 fi
11145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11146 fi
11147
11148  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
11149
11150 cat >>confdefs.h <<\_ACEOF
11151 #define HAVE_PSINFO_T 1
11152 _ACEOF
11153
11154  fi
11155  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
11156 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
11157
11158     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
11159 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
11160  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163   cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169
11170 #define _SYSCALL32
11171 #include <sys/procfs.h>
11172 int
11173 main ()
11174 {
11175 psinfo32_t avar
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182   (eval $ac_compile) 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -z "$ac_c_werror_flag"
11190                          || test ! -s conftest.err'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 bfd_cv_have_sys_procfs_type_psinfo32_t=no
11208
11209 fi
11210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11211 fi
11212
11213  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
11214
11215 cat >>confdefs.h <<\_ACEOF
11216 #define HAVE_PSINFO32_T 1
11217 _ACEOF
11218
11219  fi
11220  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11221 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
11222
11223     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11224 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11225  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228   cat >conftest.$ac_ext <<_ACEOF
11229 /* confdefs.h.  */
11230 _ACEOF
11231 cat confdefs.h >>conftest.$ac_ext
11232 cat >>conftest.$ac_ext <<_ACEOF
11233 /* end confdefs.h.  */
11234
11235 #define _SYSCALL32
11236 #include <sys/procfs.h>
11237 int
11238 main ()
11239 {
11240 lwpstatus_t avar
11241   ;
11242   return 0;
11243 }
11244 _ACEOF
11245 rm -f conftest.$ac_objext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247   (eval $ac_compile) 2>conftest.er1
11248   ac_status=$?
11249   grep -v '^ *+' conftest.er1 >conftest.err
11250   rm -f conftest.er1
11251   cat conftest.err >&5
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); } &&
11254          { ac_try='test -z "$ac_c_werror_flag"
11255                          || test ! -s conftest.err'
11256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257   (eval $ac_try) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }; } &&
11261          { ac_try='test -s conftest.$ac_objext'
11262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263   (eval $ac_try) 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); }; }; then
11267   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11268 else
11269   echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11271
11272 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11273
11274 fi
11275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11276 fi
11277
11278  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
11279
11280 cat >>confdefs.h <<\_ACEOF
11281 #define HAVE_LWPSTATUS_T 1
11282 _ACEOF
11283
11284  fi
11285  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11286 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
11287
11288     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11289 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11290  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11291   echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293   cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299
11300 #define _SYSCALL32
11301 #include <sys/procfs.h>
11302 int
11303 main ()
11304 {
11305 lwpxstatus_t avar
11306   ;
11307   return 0;
11308 }
11309 _ACEOF
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312   (eval $ac_compile) 2>conftest.er1
11313   ac_status=$?
11314   grep -v '^ *+' conftest.er1 >conftest.err
11315   rm -f conftest.er1
11316   cat conftest.err >&5
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } &&
11319          { ac_try='test -z "$ac_c_werror_flag"
11320                          || test ! -s conftest.err'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; } &&
11326          { ac_try='test -s conftest.$ac_objext'
11327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11328   (eval $ac_try) 2>&5
11329   ac_status=$?
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); }; }; then
11332   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11333 else
11334   echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11338
11339 fi
11340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11341 fi
11342
11343  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
11344
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_LWPXSTATUS_T 1
11347 _ACEOF
11348
11349  fi
11350  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11351 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
11352
11353     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11354 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11355  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358   cat >conftest.$ac_ext <<_ACEOF
11359 /* confdefs.h.  */
11360 _ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h.  */
11364
11365 #define _SYSCALL32
11366 #include <sys/procfs.h>
11367 int
11368 main ()
11369 {
11370 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377   (eval $ac_compile) 2>conftest.er1
11378   ac_status=$?
11379   grep -v '^ *+' conftest.er1 >conftest.err
11380   rm -f conftest.er1
11381   cat conftest.err >&5
11382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383   (exit $ac_status); } &&
11384          { ac_try='test -z "$ac_c_werror_flag"
11385                          || test ! -s conftest.err'
11386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387   (eval $ac_try) 2>&5
11388   ac_status=$?
11389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390   (exit $ac_status); }; } &&
11391          { ac_try='test -s conftest.$ac_objext'
11392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393   (eval $ac_try) 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); }; }; then
11397   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11398 else
11399   echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11401
11402 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11403
11404 fi
11405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11406 fi
11407
11408  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
11409
11410 cat >>confdefs.h <<\_ACEOF
11411 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
11412 _ACEOF
11413
11414  fi
11415  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11416 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
11417
11418     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11419 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11420  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11421   echo $ECHO_N "(cached) $ECHO_C" >&6
11422 else
11423   cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429
11430 #define _SYSCALL32
11431 #include <sys/procfs.h>
11432 int
11433 main ()
11434 {
11435 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11442   (eval $ac_compile) 2>conftest.er1
11443   ac_status=$?
11444   grep -v '^ *+' conftest.er1 >conftest.err
11445   rm -f conftest.er1
11446   cat conftest.err >&5
11447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448   (exit $ac_status); } &&
11449          { ac_try='test -z "$ac_c_werror_flag"
11450                          || test ! -s conftest.err'
11451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452   (eval $ac_try) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); }; } &&
11456          { ac_try='test -s conftest.$ac_objext'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11468
11469 fi
11470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471 fi
11472
11473  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
11474
11475 cat >>confdefs.h <<\_ACEOF
11476 #define HAVE_LWPSTATUS_T_PR_REG 1
11477 _ACEOF
11478
11479  fi
11480  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11481 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
11482
11483     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11484 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11485  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h.  */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h.  */
11494
11495 #define _SYSCALL32
11496 #include <sys/procfs.h>
11497 int
11498 main ()
11499 {
11500 win32_pstatus_t avar
11501   ;
11502   return 0;
11503 }
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11507   (eval $ac_compile) 2>conftest.er1
11508   ac_status=$?
11509   grep -v '^ *+' conftest.er1 >conftest.err
11510   rm -f conftest.er1
11511   cat conftest.err >&5
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); } &&
11514          { ac_try='test -z "$ac_c_werror_flag"
11515                          || test ! -s conftest.err'
11516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517   (eval $ac_try) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); }; } &&
11521          { ac_try='test -s conftest.$ac_objext'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; }; then
11527   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11528 else
11529   echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11533
11534 fi
11535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11536 fi
11537
11538  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
11539
11540 cat >>confdefs.h <<\_ACEOF
11541 #define HAVE_WIN32_PSTATUS_T 1
11542 _ACEOF
11543
11544  fi
11545  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11546 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
11547
11548   fi
11549 fi
11550
11551
11552 if test -n "$TRAD_HEADER"; then
11553
11554 cat >>confdefs.h <<_ACEOF
11555 #define TRAD_HEADER $TRAD_HEADER
11556 _ACEOF
11557
11558 fi
11559
11560 # Horrible hacks to build DLLs on Windows.
11561 WIN32LDFLAGS=
11562 WIN32LIBADD=
11563 case "${host}" in
11564 *-*-cygwin*)
11565   if test "$enable_shared" = "yes"; then
11566     WIN32LDFLAGS="-no-undefined"
11567     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11568   fi
11569   ;;
11570 *-*-linux*)
11571   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11572   # libiberty.a.
11573   case "${host}" in
11574   mips*-*-linux*)
11575     # Linux/MIPS uses PIC by default.
11576     if test "$enable_shared" = "yes"; then
11577       WIN32LIBADD="-L../libiberty -liberty"
11578     fi
11579     ;;
11580   *)
11581     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11582     if test -n "$x"; then
11583       WIN32LIBADD="-L../libiberty/pic -liberty"
11584     fi
11585   ;;
11586   esac
11587   ;;
11588 esac
11589
11590
11591
11592 # target stuff:
11593
11594 # Canonicalize the secondary target names.
11595 if test -n "$enable_targets" ; then
11596     for targ in `echo $enable_targets | sed 's/,/ /g'`
11597     do
11598         result=`$ac_config_sub $targ 2>/dev/null`
11599         if test -n "$result" ; then
11600             canon_targets="$canon_targets $result"
11601         else
11602             # Allow targets that config.sub doesn't recognize, like "all".
11603             canon_targets="$canon_targets $targ"
11604         fi
11605     done
11606 fi
11607
11608 all_targets=false
11609 defvec=
11610 selvecs=
11611 assocvecs=
11612 selarchs=
11613 TDEFINES=
11614 for targ in $target $canon_targets
11615 do
11616     if test "x$targ" = "xall"; then
11617         all_targets=true
11618         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11619     else
11620         . $srcdir/config.bfd
11621         if test "x$targ" = "x$target"; then
11622             defvec=$targ_defvec
11623         fi
11624         selvecs="$selvecs $targ_defvec $targ_selvecs"
11625         selarchs="$selarchs $targ_archs"
11626         TDEFINES="$TDEFINES $targ_cflags"
11627     fi
11628 done
11629
11630
11631 # This processing still needs to be done if we're to decide properly whether
11632 # 64-bit support needs to be compiled in.  Currently, it will be included if
11633 # the default or any other explicitly requested target requires it; it
11634 # will not be included on a 32-bit host if no 64-bit target is requested, and
11635 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11636 # used.
11637
11638 # uniq the default and selected vectors in all the configured targets.
11639 f=""
11640 for i in $selvecs ; do
11641     case " $f " in
11642     *" $i "*) ;;
11643     *) f="$f $i" ;;
11644     esac
11645 done
11646 selvecs="$f"
11647
11648
11649 # uniq the associated vectors in all the configured targets.
11650 f=""
11651 for i in $assocvecs ; do
11652     case " $f " in
11653     *" $i "*) ;;
11654     *) f="$f $i" ;;
11655     esac
11656 done
11657 assocvecs="$f"
11658
11659
11660 # uniq the architectures in all the configured targets.
11661 f=""
11662 for i in $selarchs ; do
11663     case " $f " in
11664     *" $i "*) ;;
11665     *) f="$f $i" ;;
11666     esac
11667 done
11668 selarchs="$f"
11669
11670 # Target backend .o files.
11671 tb=
11672
11673 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11674
11675 for vec in $selvecs
11676 do
11677     target_size=32
11678     case "$vec" in
11679     # This list is alphabetized to make it easy to compare
11680     # with the two vector lists in targets.c.  For the same reason,
11681     # use one entry per line, even though this leads to long lines.
11682     a29kcoff_big_vec)           tb="$tb coff-a29k.lo cofflink.lo" ;;
11683     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
11684     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11685     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
11686     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
11687     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
11688     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
11689     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11690     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11691     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11692     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11693     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
11694     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
11695     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
11696     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11697     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11698     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11699     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11700     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
11701     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
11702     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11703     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11704     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11705     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11706     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11707     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11708     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11709     bfd_elf32_bigarm_symbian_vec)
11710                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11711     bfd_elf32_bigarm_vxworks_vec)
11712                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11713     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11714     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11715     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11716     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11717     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11718     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11719     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11720     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11721     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11722     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11723     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11724     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11725     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11726     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11727     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11728     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11729     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11730     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11731     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11732     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11733     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11734     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11735     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11736     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11737     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11738     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11739     bfd_elf32_littlearm_symbian_vec)
11740                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11741     bfd_elf32_littlearm_vxworks_vec)
11742                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11743     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11744     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11745     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11746     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11747     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11748     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11749     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11750     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11751     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11752     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11753     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11754     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11755     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11756     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11757     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11758     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11759     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11760     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11761     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11762     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11763     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11764     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
11765     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
11766     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11767     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11768     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11769     # FIXME: We include cofflink.lo not because it's needed for
11770     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11771     # which needs it but does not list it.  Should be fixed in right place.
11772     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11773     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11774     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11775     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11776     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11777     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11778     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11779     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11780     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11781     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11782     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11783     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11784     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11785     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11786     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11787     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11788     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11789     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11790     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11791     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11792     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11793     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11794     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11795     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11796     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11797     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11798     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11799     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11800     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11801     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11802     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11803     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11804     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11805     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11806     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11807     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11808     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11809     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11810     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11811     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11812     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11813     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11814     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11815     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11816     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11817     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11818     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11819     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
11820     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11821     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11822     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11823     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11824     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
11825     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11826     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11827     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11828     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11829     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11830     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
11831     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
11832     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
11833     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
11834     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
11835     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
11836     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
11837     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
11838     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
11839     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
11840     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
11841     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
11842     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
11843     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11844     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11845     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
11846     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
11847     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
11848     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
11849     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11850     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11851     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
11852     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
11853     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
11854     ieee_vec)                   tb="$tb ieee.lo" ;;
11855     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11856     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11857     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
11858     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11859     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
11860     m68klynx_aout_vec)          tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11861     m68klynx_coff_vec)          tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11862     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
11863     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
11864     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
11865     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
11866     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
11867     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
11868     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
11869     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
11870     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
11871     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11872     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11873     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11874     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11875     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11876     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11877     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
11878     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11879     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11880     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11881     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11882     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
11883     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11884     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11885     pef_vec)                    tb="$tb pef.lo" ;;
11886     pef_xlib_vec)               tb="$tb pef.lo" ;;
11887     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
11888     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11889     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
11890     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
11891     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11892     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11893     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
11894     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
11895     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
11896     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
11897     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11898     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11899     som_vec)                    tb="$tb som.lo" ;;
11900     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
11901     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
11902     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
11903     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11904     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11905     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
11906     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
11907     sym_vec)                    tb="$tb xsym.lo" ;;
11908     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
11909     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
11910     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
11911     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11912     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
11913     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11914     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
11915     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11916     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11917     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
11918     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11919     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
11920     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11921     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
11922     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
11923     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
11924     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
11925     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
11926     versados_vec)               tb="$tb versados.lo" ;;
11927     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11928     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11929     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
11930     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
11931     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo" ;;
11932
11933     # These appear out of order in targets.c
11934     srec_vec)                   tb="$tb srec.lo" ;;
11935     symbolsrec_vec)             tb="$tb srec.lo" ;;
11936     tekhex_vec)                 tb="$tb tekhex.lo" ;;
11937     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
11938     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
11939
11940     "")                 ;;
11941     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11942 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11943    { (exit 1); exit 1; }; } ;;
11944     esac
11945
11946     if test ${target_size} = 64; then
11947         target64=true
11948     fi
11949     if test x"${vec}" = x"${defvec}"; then
11950         bfd_default_target_size=${target_size}
11951     fi
11952 done
11953
11954 # Target architecture .o files.
11955 # A couple of CPUs use shorter file names to avoid problems on DOS
11956 # filesystems.
11957 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11958
11959 # Weed out duplicate .o files.
11960 f=""
11961 for i in $tb ; do
11962     case " $f " in
11963     *" $i "*) ;;
11964     *) f="$f $i" ;;
11965     esac
11966 done
11967 tb="$f"
11968
11969 f=""
11970 for i in $ta ; do
11971     case " $f " in
11972     *" $i "*) ;;
11973     *) f="$f $i" ;;
11974     esac
11975 done
11976 ta="$f"
11977
11978 bfd_backends="$tb"
11979 bfd_machines="$ta"
11980
11981 if test x${all_targets} = xtrue ; then
11982   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11983   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11984   selvecs=
11985   havevecs=
11986   selarchs=
11987   test -n "$assocvecs" &&
11988     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11989 else    # all_targets is true
11990   # Only set these if they will be nonempty, for the clever echo.
11991   havevecs=
11992   assocvecs=
11993   test -n "$selvecs" &&
11994     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11995   test -n "$selvecs" &&
11996     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11997   test -n "$selarchs" &&
11998     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11999 fi      # all_targets is true
12000
12001 case ${host64}-${target64}-${want64} in
12002   *true*)
12003     wordsize=64
12004     bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
12005     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
12006     if test $BFD_HOST_64_BIT_DEFINED = 0; then
12007       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
12008 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
12009       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
12010 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
12011     fi
12012     if test -n "$GCC" ; then
12013        bad_64bit_gcc=no;
12014        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
12015 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
12016        # Add more tests for gcc versions with non-working 64-bit support here.
12017        cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023 :__GNUC__:__GNUC_MINOR__:__i386__:
12024 _ACEOF
12025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12026   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
12027   bad_64bit_gcc=yes;
12028                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
12029 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
12030 else
12031   echo "$as_me:$LINENO: result: no" >&5
12032 echo "${ECHO_T}no" >&6
12033 fi
12034 rm -f conftest*
12035
12036        if test $bad_64bit_gcc = yes ; then
12037          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
12038 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
12039    { (exit 1); exit 1; }; }
12040        fi
12041     fi
12042     ;;
12043   false-false-false)
12044     wordsize=32
12045     bfd_libs='$(BFD32_LIBS)'
12046     all_backends='$(BFD32_BACKENDS)'
12047     ;;
12048 esac
12049
12050
12051
12052
12053
12054
12055
12056
12057 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
12058 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
12059 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
12060 # Hopefully a reasonable assumption since fseeko et.al. should be
12061 # upward compatible.
12062
12063
12064
12065
12066 for ac_func in ftello ftello64 fseeko fseeko64
12067 do
12068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12069 echo "$as_me:$LINENO: checking for $ac_func" >&5
12070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12071 if eval "test \"\${$as_ac_var+set}\" = set"; then
12072   echo $ECHO_N "(cached) $ECHO_C" >&6
12073 else
12074   cat >conftest.$ac_ext <<_ACEOF
12075 /* confdefs.h.  */
12076 _ACEOF
12077 cat confdefs.h >>conftest.$ac_ext
12078 cat >>conftest.$ac_ext <<_ACEOF
12079 /* end confdefs.h.  */
12080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12082 #define $ac_func innocuous_$ac_func
12083
12084 /* System header to define __stub macros and hopefully few prototypes,
12085     which can conflict with char $ac_func (); below.
12086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12087     <limits.h> exists even on freestanding compilers.  */
12088
12089 #ifdef __STDC__
12090 # include <limits.h>
12091 #else
12092 # include <assert.h>
12093 #endif
12094
12095 #undef $ac_func
12096
12097 /* Override any gcc2 internal prototype to avoid an error.  */
12098 #ifdef __cplusplus
12099 extern "C"
12100 {
12101 #endif
12102 /* We use char because int might match the return type of a gcc2
12103    builtin and then its argument prototype would still apply.  */
12104 char $ac_func ();
12105 /* The GNU C library defines this for functions which it implements
12106     to always fail with ENOSYS.  Some functions are actually named
12107     something starting with __ and the normal name is an alias.  */
12108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12109 choke me
12110 #else
12111 char (*f) () = $ac_func;
12112 #endif
12113 #ifdef __cplusplus
12114 }
12115 #endif
12116
12117 int
12118 main ()
12119 {
12120 return f != $ac_func;
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127   (eval $ac_link) 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -z "$ac_c_werror_flag"
12135                          || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   eval "$as_ac_var=yes"
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152 eval "$as_ac_var=no"
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 fi
12157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12159 if test `eval echo '${'$as_ac_var'}'` = yes; then
12160   cat >>confdefs.h <<_ACEOF
12161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12162 _ACEOF
12163
12164 fi
12165 done
12166
12167 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
12168     echo "$as_me:$LINENO: checking size of off_t" >&5
12169 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12170 if test "${ac_cv_sizeof_off_t+set}" = set; then
12171   echo $ECHO_N "(cached) $ECHO_C" >&6
12172 else
12173   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
12174   cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h.  */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h.  */
12180 #include "confdefs.h"
12181 #include <sys/types.h>
12182
12183
12184 int
12185 main ()
12186 {
12187 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 rm -f conftest.$ac_objext
12193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12194   (eval $ac_compile) 2>conftest.er1
12195   ac_status=$?
12196   grep -v '^ *+' conftest.er1 >conftest.err
12197   rm -f conftest.er1
12198   cat conftest.err >&5
12199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200   (exit $ac_status); } &&
12201          { ac_try='test -z "$ac_c_werror_flag"
12202                          || test ! -s conftest.err'
12203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12204   (eval $ac_try) 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; } &&
12208          { ac_try='test -s conftest.$ac_objext'
12209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210   (eval $ac_try) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); }; }; then
12214   ac_cv_sizeof_off_t=$ac_size
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219 fi
12220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12221   if test x$ac_cv_sizeof_off_t != x ; then break; fi
12222 done
12223
12224 fi
12225
12226 if test x$ac_cv_sizeof_off_t = x ; then
12227   { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12228 echo "$as_me: error: cannot determine a size for off_t" >&2;}
12229    { (exit 1); exit 1; }; }
12230 fi
12231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12232 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12233
12234 cat >>confdefs.h <<_ACEOF
12235 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12236 _ACEOF
12237
12238
12239 fi
12240 echo "$as_me:$LINENO: checking file_ptr type" >&5
12241 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
12242 bfd_file_ptr="long"
12243 bfd_ufile_ptr="unsigned long"
12244 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12245         -o x"${ac_cv_sizeof_off_t}" = x8; then
12246     bfd_file_ptr=BFD_HOST_64_BIT
12247     bfd_ufile_ptr=BFD_HOST_U_64_BIT
12248 fi
12249 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12250 echo "${ECHO_T}$bfd_file_ptr" >&6
12251
12252
12253
12254
12255 tdefaults=""
12256 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12257 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
12258 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
12259 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12260 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12261
12262
12263
12264
12265 for ac_header in stdlib.h unistd.h
12266 do
12267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12269   echo "$as_me:$LINENO: checking for $ac_header" >&5
12270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 fi
12274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12276 else
12277   # Is the header compilable?
12278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286 $ac_includes_default
12287 #include <$ac_header>
12288 _ACEOF
12289 rm -f conftest.$ac_objext
12290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12291   (eval $ac_compile) 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } &&
12298          { ac_try='test -z "$ac_c_werror_flag"
12299                          || test ! -s conftest.err'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; } &&
12305          { ac_try='test -s conftest.$ac_objext'
12306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307   (eval $ac_try) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); }; }; then
12311   ac_header_compiler=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316 ac_header_compiler=no
12317 fi
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12320 echo "${ECHO_T}$ac_header_compiler" >&6
12321
12322 # Is the header present?
12323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331 #include <$ac_header>
12332 _ACEOF
12333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12335   ac_status=$?
12336   grep -v '^ *+' conftest.er1 >conftest.err
12337   rm -f conftest.er1
12338   cat conftest.err >&5
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); } >/dev/null; then
12341   if test -s conftest.err; then
12342     ac_cpp_err=$ac_c_preproc_warn_flag
12343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12344   else
12345     ac_cpp_err=
12346   fi
12347 else
12348   ac_cpp_err=yes
12349 fi
12350 if test -z "$ac_cpp_err"; then
12351   ac_header_preproc=yes
12352 else
12353   echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356   ac_header_preproc=no
12357 fi
12358 rm -f conftest.err conftest.$ac_ext
12359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12360 echo "${ECHO_T}$ac_header_preproc" >&6
12361
12362 # So?  What about this header?
12363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12364   yes:no: )
12365     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12369     ac_header_preproc=yes
12370     ;;
12371   no:yes:* )
12372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12374     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12375 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12376     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12378     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12379 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12380     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12382     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12384     (
12385       cat <<\_ASBOX
12386 ## ------------------------------------------ ##
12387 ## Report this to the AC_PACKAGE_NAME lists.  ##
12388 ## ------------------------------------------ ##
12389 _ASBOX
12390     ) |
12391       sed "s/^/$as_me: WARNING:     /" >&2
12392     ;;
12393 esac
12394 echo "$as_me:$LINENO: checking for $ac_header" >&5
12395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   eval "$as_ac_Header=\$ac_header_preproc"
12400 fi
12401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12403
12404 fi
12405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12406   cat >>confdefs.h <<_ACEOF
12407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12408 _ACEOF
12409
12410 fi
12411
12412 done
12413
12414
12415 for ac_func in getpagesize
12416 do
12417 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12418 echo "$as_me:$LINENO: checking for $ac_func" >&5
12419 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12420 if eval "test \"\${$as_ac_var+set}\" = set"; then
12421   echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423   cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h.  */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h.  */
12429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12430    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12431 #define $ac_func innocuous_$ac_func
12432
12433 /* System header to define __stub macros and hopefully few prototypes,
12434     which can conflict with char $ac_func (); below.
12435     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12436     <limits.h> exists even on freestanding compilers.  */
12437
12438 #ifdef __STDC__
12439 # include <limits.h>
12440 #else
12441 # include <assert.h>
12442 #endif
12443
12444 #undef $ac_func
12445
12446 /* Override any gcc2 internal prototype to avoid an error.  */
12447 #ifdef __cplusplus
12448 extern "C"
12449 {
12450 #endif
12451 /* We use char because int might match the return type of a gcc2
12452    builtin and then its argument prototype would still apply.  */
12453 char $ac_func ();
12454 /* The GNU C library defines this for functions which it implements
12455     to always fail with ENOSYS.  Some functions are actually named
12456     something starting with __ and the normal name is an alias.  */
12457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12458 choke me
12459 #else
12460 char (*f) () = $ac_func;
12461 #endif
12462 #ifdef __cplusplus
12463 }
12464 #endif
12465
12466 int
12467 main ()
12468 {
12469 return f != $ac_func;
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext conftest$ac_exeext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476   (eval $ac_link) 2>conftest.er1
12477   ac_status=$?
12478   grep -v '^ *+' conftest.er1 >conftest.err
12479   rm -f conftest.er1
12480   cat conftest.err >&5
12481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482   (exit $ac_status); } &&
12483          { ac_try='test -z "$ac_c_werror_flag"
12484                          || test ! -s conftest.err'
12485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486   (eval $ac_try) 2>&5
12487   ac_status=$?
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); }; } &&
12490          { ac_try='test -s conftest$ac_exeext'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; }; then
12496   eval "$as_ac_var=yes"
12497 else
12498   echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 eval "$as_ac_var=no"
12502 fi
12503 rm -f conftest.err conftest.$ac_objext \
12504       conftest$ac_exeext conftest.$ac_ext
12505 fi
12506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12508 if test `eval echo '${'$as_ac_var'}'` = yes; then
12509   cat >>confdefs.h <<_ACEOF
12510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12511 _ACEOF
12512
12513 fi
12514 done
12515
12516 echo "$as_me:$LINENO: checking for working mmap" >&5
12517 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12518 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   if test "$cross_compiling" = yes; then
12522   ac_cv_func_mmap_fixed_mapped=no
12523 else
12524   cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 $ac_includes_default
12531 /* malloc might have been renamed as rpl_malloc. */
12532 #undef malloc
12533
12534 /* Thanks to Mike Haertel and Jim Avera for this test.
12535    Here is a matrix of mmap possibilities:
12536         mmap private not fixed
12537         mmap private fixed at somewhere currently unmapped
12538         mmap private fixed at somewhere already mapped
12539         mmap shared not fixed
12540         mmap shared fixed at somewhere currently unmapped
12541         mmap shared fixed at somewhere already mapped
12542    For private mappings, we should verify that changes cannot be read()
12543    back from the file, nor mmap's back from the file at a different
12544    address.  (There have been systems where private was not correctly
12545    implemented like the infamous i386 svr4.0, and systems where the
12546    VM page cache was not coherent with the file system buffer cache
12547    like early versions of FreeBSD and possibly contemporary NetBSD.)
12548    For shared mappings, we should conversely verify that changes get
12549    propagated back to all the places they're supposed to be.
12550
12551    Grep wants private fixed already mapped.
12552    The main things grep needs to know about mmap are:
12553    * does it exist and is it safe to write into the mmap'd area
12554    * how to use it (BSD variants)  */
12555
12556 #include <fcntl.h>
12557 #include <sys/mman.h>
12558
12559 #if !STDC_HEADERS && !HAVE_STDLIB_H
12560 char *malloc ();
12561 #endif
12562
12563 /* This mess was copied from the GNU getpagesize.h.  */
12564 #if !HAVE_GETPAGESIZE
12565 /* Assume that all systems that can run configure have sys/param.h.  */
12566 # if !HAVE_SYS_PARAM_H
12567 #  define HAVE_SYS_PARAM_H 1
12568 # endif
12569
12570 # ifdef _SC_PAGESIZE
12571 #  define getpagesize() sysconf(_SC_PAGESIZE)
12572 # else /* no _SC_PAGESIZE */
12573 #  if HAVE_SYS_PARAM_H
12574 #   include <sys/param.h>
12575 #   ifdef EXEC_PAGESIZE
12576 #    define getpagesize() EXEC_PAGESIZE
12577 #   else /* no EXEC_PAGESIZE */
12578 #    ifdef NBPG
12579 #     define getpagesize() NBPG * CLSIZE
12580 #     ifndef CLSIZE
12581 #      define CLSIZE 1
12582 #     endif /* no CLSIZE */
12583 #    else /* no NBPG */
12584 #     ifdef NBPC
12585 #      define getpagesize() NBPC
12586 #     else /* no NBPC */
12587 #      ifdef PAGESIZE
12588 #       define getpagesize() PAGESIZE
12589 #      endif /* PAGESIZE */
12590 #     endif /* no NBPC */
12591 #    endif /* no NBPG */
12592 #   endif /* no EXEC_PAGESIZE */
12593 #  else /* no HAVE_SYS_PARAM_H */
12594 #   define getpagesize() 8192   /* punt totally */
12595 #  endif /* no HAVE_SYS_PARAM_H */
12596 # endif /* no _SC_PAGESIZE */
12597
12598 #endif /* no HAVE_GETPAGESIZE */
12599
12600 int
12601 main ()
12602 {
12603   char *data, *data2, *data3;
12604   int i, pagesize;
12605   int fd;
12606
12607   pagesize = getpagesize ();
12608
12609   /* First, make a file with some known garbage in it. */
12610   data = (char *) malloc (pagesize);
12611   if (!data)
12612     exit (1);
12613   for (i = 0; i < pagesize; ++i)
12614     *(data + i) = rand ();
12615   umask (0);
12616   fd = creat ("conftest.mmap", 0600);
12617   if (fd < 0)
12618     exit (1);
12619   if (write (fd, data, pagesize) != pagesize)
12620     exit (1);
12621   close (fd);
12622
12623   /* Next, try to mmap the file at a fixed address which already has
12624      something else allocated at it.  If we can, also make sure that
12625      we see the same garbage.  */
12626   fd = open ("conftest.mmap", O_RDWR);
12627   if (fd < 0)
12628     exit (1);
12629   data2 = (char *) malloc (2 * pagesize);
12630   if (!data2)
12631     exit (1);
12632   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12633   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12634                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12635     exit (1);
12636   for (i = 0; i < pagesize; ++i)
12637     if (*(data + i) != *(data2 + i))
12638       exit (1);
12639
12640   /* Finally, make sure that changes to the mapped area do not
12641      percolate back to the file as seen by read().  (This is a bug on
12642      some variants of i386 svr4.0.)  */
12643   for (i = 0; i < pagesize; ++i)
12644     *(data2 + i) = *(data2 + i) + 1;
12645   data3 = (char *) malloc (pagesize);
12646   if (!data3)
12647     exit (1);
12648   if (read (fd, data3, pagesize) != pagesize)
12649     exit (1);
12650   for (i = 0; i < pagesize; ++i)
12651     if (*(data + i) != *(data3 + i))
12652       exit (1);
12653   close (fd);
12654   exit (0);
12655 }
12656 _ACEOF
12657 rm -f conftest$ac_exeext
12658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659   (eval $ac_link) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664   (eval $ac_try) 2>&5
12665   ac_status=$?
12666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667   (exit $ac_status); }; }; then
12668   ac_cv_func_mmap_fixed_mapped=yes
12669 else
12670   echo "$as_me: program exited with status $ac_status" >&5
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ( exit $ac_status )
12675 ac_cv_func_mmap_fixed_mapped=no
12676 fi
12677 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12678 fi
12679 fi
12680 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12681 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12682 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12683
12684 cat >>confdefs.h <<\_ACEOF
12685 #define HAVE_MMAP 1
12686 _ACEOF
12687
12688 fi
12689 rm -f conftest.mmap
12690
12691
12692
12693 for ac_func in madvise mprotect
12694 do
12695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12696 echo "$as_me:$LINENO: checking for $ac_func" >&5
12697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12698 if eval "test \"\${$as_ac_var+set}\" = set"; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12709 #define $ac_func innocuous_$ac_func
12710
12711 /* System header to define __stub macros and hopefully few prototypes,
12712     which can conflict with char $ac_func (); below.
12713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12714     <limits.h> exists even on freestanding compilers.  */
12715
12716 #ifdef __STDC__
12717 # include <limits.h>
12718 #else
12719 # include <assert.h>
12720 #endif
12721
12722 #undef $ac_func
12723
12724 /* Override any gcc2 internal prototype to avoid an error.  */
12725 #ifdef __cplusplus
12726 extern "C"
12727 {
12728 #endif
12729 /* We use char because int might match the return type of a gcc2
12730    builtin and then its argument prototype would still apply.  */
12731 char $ac_func ();
12732 /* The GNU C library defines this for functions which it implements
12733     to always fail with ENOSYS.  Some functions are actually named
12734     something starting with __ and the normal name is an alias.  */
12735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12736 choke me
12737 #else
12738 char (*f) () = $ac_func;
12739 #endif
12740 #ifdef __cplusplus
12741 }
12742 #endif
12743
12744 int
12745 main ()
12746 {
12747 return f != $ac_func;
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754   (eval $ac_link) 2>conftest.er1
12755   ac_status=$?
12756   grep -v '^ *+' conftest.er1 >conftest.err
12757   rm -f conftest.er1
12758   cat conftest.err >&5
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } &&
12761          { ac_try='test -z "$ac_c_werror_flag"
12762                          || test ! -s conftest.err'
12763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12764   (eval $ac_try) 2>&5
12765   ac_status=$?
12766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767   (exit $ac_status); }; } &&
12768          { ac_try='test -s conftest$ac_exeext'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; }; then
12774   eval "$as_ac_var=yes"
12775 else
12776   echo "$as_me: failed program was:" >&5
12777 sed 's/^/| /' conftest.$ac_ext >&5
12778
12779 eval "$as_ac_var=no"
12780 fi
12781 rm -f conftest.err conftest.$ac_objext \
12782       conftest$ac_exeext conftest.$ac_ext
12783 fi
12784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787   cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12789 _ACEOF
12790
12791 fi
12792 done
12793
12794 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12795   true+yes )
12796 cat >>confdefs.h <<\_ACEOF
12797 #define USE_MMAP 1
12798 _ACEOF
12799  ;;
12800 esac
12801
12802 rm -f doc/config.status
12803                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12804
12805           ac_config_commands="$ac_config_commands default"
12806
12807 cat >confcache <<\_ACEOF
12808 # This file is a shell script that caches the results of configure
12809 # tests run on this system so they can be shared between configure
12810 # scripts and configure runs, see configure's option --config-cache.
12811 # It is not useful on other systems.  If it contains results you don't
12812 # want to keep, you may remove or edit it.
12813 #
12814 # config.status only pays attention to the cache file if you give it
12815 # the --recheck option to rerun configure.
12816 #
12817 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12818 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12819 # following values.
12820
12821 _ACEOF
12822
12823 # The following way of writing the cache mishandles newlines in values,
12824 # but we know of no workaround that is simple, portable, and efficient.
12825 # So, don't put newlines in cache variables' values.
12826 # Ultrix sh set writes to stderr and can't be redirected directly,
12827 # and sets the high bit in the cache file unless we assign to the vars.
12828 {
12829   (set) 2>&1 |
12830     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12831     *ac_space=\ *)
12832       # `set' does not quote correctly, so add quotes (double-quote
12833       # substitution turns \\\\ into \\, and sed turns \\ into \).
12834       sed -n \
12835         "s/'/'\\\\''/g;
12836           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12837       ;;
12838     *)
12839       # `set' quotes correctly as required by POSIX, so do not add quotes.
12840       sed -n \
12841         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12842       ;;
12843     esac;
12844 } |
12845   sed '
12846      t clear
12847      : clear
12848      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12849      t end
12850      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12851      : end' >>confcache
12852 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12853   if test -w $cache_file; then
12854     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12855     cat confcache >$cache_file
12856   else
12857     echo "not updating unwritable cache $cache_file"
12858   fi
12859 fi
12860 rm -f confcache
12861
12862 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12863 # Let make expand exec_prefix.
12864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12865
12866 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12867 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12868 # trailing colons and then remove the whole line if VPATH becomes empty
12869 # (actually we leave an empty line to preserve line numbers).
12870 if test "x$srcdir" = x.; then
12871   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12872 s/:*\$(srcdir):*/:/;
12873 s/:*\${srcdir}:*/:/;
12874 s/:*@srcdir@:*/:/;
12875 s/^\([^=]*=[     ]*\):*/\1/;
12876 s/:*$//;
12877 s/^[^=]*=[       ]*$//;
12878 }'
12879 fi
12880
12881 DEFS=-DHAVE_CONFIG_H
12882
12883 ac_libobjs=
12884 ac_ltlibobjs=
12885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12886   # 1. Remove the extension, and $U if already installed.
12887   ac_i=`echo "$ac_i" |
12888          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12889   # 2. Add them.
12890   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12891   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12892 done
12893 LIBOBJS=$ac_libobjs
12894
12895 LTLIBOBJS=$ac_ltlibobjs
12896
12897
12898 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12899   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12900 Usually this means the macro was only invoked conditionally." >&5
12901 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12902 Usually this means the macro was only invoked conditionally." >&2;}
12903    { (exit 1); exit 1; }; }
12904 fi
12905 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12906   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12907 Usually this means the macro was only invoked conditionally." >&5
12908 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12909 Usually this means the macro was only invoked conditionally." >&2;}
12910    { (exit 1); exit 1; }; }
12911 fi
12912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12913   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12914 Usually this means the macro was only invoked conditionally." >&5
12915 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12916 Usually this means the macro was only invoked conditionally." >&2;}
12917    { (exit 1); exit 1; }; }
12918 fi
12919 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12920   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12921 Usually this means the macro was only invoked conditionally." >&5
12922 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12923 Usually this means the macro was only invoked conditionally." >&2;}
12924    { (exit 1); exit 1; }; }
12925 fi
12926
12927 : ${CONFIG_STATUS=./config.status}
12928 ac_clean_files_save=$ac_clean_files
12929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12932 cat >$CONFIG_STATUS <<_ACEOF
12933 #! $SHELL
12934 # Generated by $as_me.
12935 # Run this file to recreate the current configuration.
12936 # Compiler output produced by configure, useful for debugging
12937 # configure, is in config.log if it exists.
12938
12939 debug=false
12940 ac_cs_recheck=false
12941 ac_cs_silent=false
12942 SHELL=\${CONFIG_SHELL-$SHELL}
12943 _ACEOF
12944
12945 cat >>$CONFIG_STATUS <<\_ACEOF
12946 ## --------------------- ##
12947 ## M4sh Initialization.  ##
12948 ## --------------------- ##
12949
12950 # Be Bourne compatible
12951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12952   emulate sh
12953   NULLCMD=:
12954   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12955   # is contrary to our usage.  Disable this feature.
12956   alias -g '${1+"$@"}'='"$@"'
12957 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12958   set -o posix
12959 fi
12960 DUALCASE=1; export DUALCASE # for MKS sh
12961
12962 # Support unset when possible.
12963 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12964   as_unset=unset
12965 else
12966   as_unset=false
12967 fi
12968
12969
12970 # Work around bugs in pre-3.0 UWIN ksh.
12971 $as_unset ENV MAIL MAILPATH
12972 PS1='$ '
12973 PS2='> '
12974 PS4='+ '
12975
12976 # NLS nuisances.
12977 for as_var in \
12978   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12979   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12980   LC_TELEPHONE LC_TIME
12981 do
12982   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12983     eval $as_var=C; export $as_var
12984   else
12985     $as_unset $as_var
12986   fi
12987 done
12988
12989 # Required to use basename.
12990 if expr a : '\(a\)' >/dev/null 2>&1; then
12991   as_expr=expr
12992 else
12993   as_expr=false
12994 fi
12995
12996 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12997   as_basename=basename
12998 else
12999   as_basename=false
13000 fi
13001
13002
13003 # Name of the executable.
13004 as_me=`$as_basename "$0" ||
13005 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13006          X"$0" : 'X\(//\)$' \| \
13007          X"$0" : 'X\(/\)$' \| \
13008          .     : '\(.\)' 2>/dev/null ||
13009 echo X/"$0" |
13010     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13011           /^X\/\(\/\/\)$/{ s//\1/; q; }
13012           /^X\/\(\/\).*/{ s//\1/; q; }
13013           s/.*/./; q'`
13014
13015
13016 # PATH needs CR, and LINENO needs CR and PATH.
13017 # Avoid depending upon Character Ranges.
13018 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13019 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13020 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13021 as_cr_digits='0123456789'
13022 as_cr_alnum=$as_cr_Letters$as_cr_digits
13023
13024 # The user is always right.
13025 if test "${PATH_SEPARATOR+set}" != set; then
13026   echo "#! /bin/sh" >conf$$.sh
13027   echo  "exit 0"   >>conf$$.sh
13028   chmod +x conf$$.sh
13029   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13030     PATH_SEPARATOR=';'
13031   else
13032     PATH_SEPARATOR=:
13033   fi
13034   rm -f conf$$.sh
13035 fi
13036
13037
13038   as_lineno_1=$LINENO
13039   as_lineno_2=$LINENO
13040   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13041   test "x$as_lineno_1" != "x$as_lineno_2" &&
13042   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13043   # Find who we are.  Look in the path if we contain no path at all
13044   # relative or not.
13045   case $0 in
13046     *[\\/]* ) as_myself=$0 ;;
13047     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13049 do
13050   IFS=$as_save_IFS
13051   test -z "$as_dir" && as_dir=.
13052   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13053 done
13054
13055        ;;
13056   esac
13057   # We did not find ourselves, most probably we were run as `sh COMMAND'
13058   # in which case we are not to be found in the path.
13059   if test "x$as_myself" = x; then
13060     as_myself=$0
13061   fi
13062   if test ! -f "$as_myself"; then
13063     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13064 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13065    { (exit 1); exit 1; }; }
13066   fi
13067   case $CONFIG_SHELL in
13068   '')
13069     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13071 do
13072   IFS=$as_save_IFS
13073   test -z "$as_dir" && as_dir=.
13074   for as_base in sh bash ksh sh5; do
13075          case $as_dir in
13076          /*)
13077            if ("$as_dir/$as_base" -c '
13078   as_lineno_1=$LINENO
13079   as_lineno_2=$LINENO
13080   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13081   test "x$as_lineno_1" != "x$as_lineno_2" &&
13082   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13083              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13084              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13085              CONFIG_SHELL=$as_dir/$as_base
13086              export CONFIG_SHELL
13087              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13088            fi;;
13089          esac
13090        done
13091 done
13092 ;;
13093   esac
13094
13095   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13096   # uniformly replaced by the line number.  The first 'sed' inserts a
13097   # line-number line before each line; the second 'sed' does the real
13098   # work.  The second script uses 'N' to pair each line-number line
13099   # with the numbered line, and appends trailing '-' during
13100   # substitution so that $LINENO is not a special case at line end.
13101   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13102   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13103   sed '=' <$as_myself |
13104     sed '
13105       N
13106       s,$,-,
13107       : loop
13108       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13109       t loop
13110       s,-$,,
13111       s,^['$as_cr_digits']*\n,,
13112     ' >$as_me.lineno &&
13113   chmod +x $as_me.lineno ||
13114     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13115 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13116    { (exit 1); exit 1; }; }
13117
13118   # Don't try to exec as it changes $[0], causing all sort of problems
13119   # (the dirname of $[0] is not the place where we might find the
13120   # original and so on.  Autoconf is especially sensible to this).
13121   . ./$as_me.lineno
13122   # Exit status is that of the last command.
13123   exit
13124 }
13125
13126
13127 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13128   *c*,-n*) ECHO_N= ECHO_C='
13129 ' ECHO_T='      ' ;;
13130   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13131   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13132 esac
13133
13134 if expr a : '\(a\)' >/dev/null 2>&1; then
13135   as_expr=expr
13136 else
13137   as_expr=false
13138 fi
13139
13140 rm -f conf$$ conf$$.exe conf$$.file
13141 echo >conf$$.file
13142 if ln -s conf$$.file conf$$ 2>/dev/null; then
13143   # We could just check for DJGPP; but this test a) works b) is more generic
13144   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13145   if test -f conf$$.exe; then
13146     # Don't use ln at all; we don't have any links
13147     as_ln_s='cp -p'
13148   else
13149     as_ln_s='ln -s'
13150   fi
13151 elif ln conf$$.file conf$$ 2>/dev/null; then
13152   as_ln_s=ln
13153 else
13154   as_ln_s='cp -p'
13155 fi
13156 rm -f conf$$ conf$$.exe conf$$.file
13157
13158 if mkdir -p . 2>/dev/null; then
13159   as_mkdir_p=:
13160 else
13161   test -d ./-p && rmdir ./-p
13162   as_mkdir_p=false
13163 fi
13164
13165 as_executable_p="test -f"
13166
13167 # Sed expression to map a string onto a valid CPP name.
13168 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13169
13170 # Sed expression to map a string onto a valid variable name.
13171 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13172
13173
13174 # IFS
13175 # We need space, tab and new line, in precisely that order.
13176 as_nl='
13177 '
13178 IFS="   $as_nl"
13179
13180 # CDPATH.
13181 $as_unset CDPATH
13182
13183 exec 6>&1
13184
13185 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13186 # report actual input values of CONFIG_FILES etc. instead of their
13187 # values after options handling.  Logging --version etc. is OK.
13188 exec 5>>config.log
13189 {
13190   echo
13191   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13192 ## Running $as_me. ##
13193 _ASBOX
13194 } >&5
13195 cat >&5 <<_CSEOF
13196
13197 This file was extended by $as_me, which was
13198 generated by GNU Autoconf 2.59.  Invocation command line was
13199
13200   CONFIG_FILES    = $CONFIG_FILES
13201   CONFIG_HEADERS  = $CONFIG_HEADERS
13202   CONFIG_LINKS    = $CONFIG_LINKS
13203   CONFIG_COMMANDS = $CONFIG_COMMANDS
13204   $ $0 $@
13205
13206 _CSEOF
13207 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13208 echo >&5
13209 _ACEOF
13210
13211 # Files that config.status was made for.
13212 if test -n "$ac_config_files"; then
13213   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13214 fi
13215
13216 if test -n "$ac_config_headers"; then
13217   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13218 fi
13219
13220 if test -n "$ac_config_links"; then
13221   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13222 fi
13223
13224 if test -n "$ac_config_commands"; then
13225   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13226 fi
13227
13228 cat >>$CONFIG_STATUS <<\_ACEOF
13229
13230 ac_cs_usage="\
13231 \`$as_me' instantiates files from templates according to the
13232 current configuration.
13233
13234 Usage: $0 [OPTIONS] [FILE]...
13235
13236   -h, --help       print this help, then exit
13237   -V, --version    print version number, then exit
13238   -q, --quiet      do not print progress messages
13239   -d, --debug      don't remove temporary files
13240       --recheck    update $as_me by reconfiguring in the same conditions
13241   --file=FILE[:TEMPLATE]
13242                    instantiate the configuration file FILE
13243   --header=FILE[:TEMPLATE]
13244                    instantiate the configuration header FILE
13245
13246 Configuration files:
13247 $config_files
13248
13249 Configuration headers:
13250 $config_headers
13251
13252 Configuration commands:
13253 $config_commands
13254
13255 Report bugs to <bug-autoconf@gnu.org>."
13256 _ACEOF
13257
13258 cat >>$CONFIG_STATUS <<_ACEOF
13259 ac_cs_version="\\
13260 config.status
13261 configured by $0, generated by GNU Autoconf 2.59,
13262   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13263
13264 Copyright (C) 2003 Free Software Foundation, Inc.
13265 This config.status script is free software; the Free Software Foundation
13266 gives unlimited permission to copy, distribute and modify it."
13267 srcdir=$srcdir
13268 INSTALL="$INSTALL"
13269 _ACEOF
13270
13271 cat >>$CONFIG_STATUS <<\_ACEOF
13272 # If no file are specified by the user, then we need to provide default
13273 # value.  By we need to know if files were specified by the user.
13274 ac_need_defaults=:
13275 while test $# != 0
13276 do
13277   case $1 in
13278   --*=*)
13279     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13280     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13281     ac_shift=:
13282     ;;
13283   -*)
13284     ac_option=$1
13285     ac_optarg=$2
13286     ac_shift=shift
13287     ;;
13288   *) # This is not an option, so the user has probably given explicit
13289      # arguments.
13290      ac_option=$1
13291      ac_need_defaults=false;;
13292   esac
13293
13294   case $ac_option in
13295   # Handling of the options.
13296 _ACEOF
13297 cat >>$CONFIG_STATUS <<\_ACEOF
13298   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13299     ac_cs_recheck=: ;;
13300   --version | --vers* | -V )
13301     echo "$ac_cs_version"; exit 0 ;;
13302   --he | --h)
13303     # Conflict between --help and --header
13304     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13305 Try \`$0 --help' for more information." >&5
13306 echo "$as_me: error: ambiguous option: $1
13307 Try \`$0 --help' for more information." >&2;}
13308    { (exit 1); exit 1; }; };;
13309   --help | --hel | -h )
13310     echo "$ac_cs_usage"; exit 0 ;;
13311   --debug | --d* | -d )
13312     debug=: ;;
13313   --file | --fil | --fi | --f )
13314     $ac_shift
13315     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13316     ac_need_defaults=false;;
13317   --header | --heade | --head | --hea )
13318     $ac_shift
13319     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13320     ac_need_defaults=false;;
13321   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13322   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13323     ac_cs_silent=: ;;
13324
13325   # This is an error.
13326   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13327 Try \`$0 --help' for more information." >&5
13328 echo "$as_me: error: unrecognized option: $1
13329 Try \`$0 --help' for more information." >&2;}
13330    { (exit 1); exit 1; }; } ;;
13331
13332   *) ac_config_targets="$ac_config_targets $1" ;;
13333
13334   esac
13335   shift
13336 done
13337
13338 ac_configure_extra_args=
13339
13340 if $ac_cs_silent; then
13341   exec 6>/dev/null
13342   ac_configure_extra_args="$ac_configure_extra_args --silent"
13343 fi
13344
13345 _ACEOF
13346 cat >>$CONFIG_STATUS <<_ACEOF
13347 if \$ac_cs_recheck; then
13348   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13349   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13350 fi
13351
13352 _ACEOF
13353
13354 cat >>$CONFIG_STATUS <<_ACEOF
13355 #
13356 # INIT-COMMANDS section.
13357 #
13358
13359 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13360
13361
13362 _ACEOF
13363
13364
13365
13366 cat >>$CONFIG_STATUS <<\_ACEOF
13367 for ac_config_target in $ac_config_targets
13368 do
13369   case "$ac_config_target" in
13370   # Handling of arguments.
13371   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13372   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13373   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13374   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13375   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13376   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13377   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13378   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13379 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13380    { (exit 1); exit 1; }; };;
13381   esac
13382 done
13383
13384 # If the user did not use the arguments to specify the items to instantiate,
13385 # then the envvar interface is used.  Set only those that are not.
13386 # We use the long form for the default assignment because of an extremely
13387 # bizarre bug on SunOS 4.1.3.
13388 if $ac_need_defaults; then
13389   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13390   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13391   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13392 fi
13393
13394 # Have a temporary directory for convenience.  Make it in the build tree
13395 # simply because there is no reason to put it here, and in addition,
13396 # creating and moving files from /tmp can sometimes cause problems.
13397 # Create a temporary directory, and hook for its removal unless debugging.
13398 $debug ||
13399 {
13400   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13401   trap '{ (exit 1); exit 1; }' 1 2 13 15
13402 }
13403
13404 # Create a (secure) tmp directory for tmp files.
13405
13406 {
13407   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13408   test -n "$tmp" && test -d "$tmp"
13409 }  ||
13410 {
13411   tmp=./confstat$$-$RANDOM
13412   (umask 077 && mkdir $tmp)
13413 } ||
13414 {
13415    echo "$me: cannot create a temporary directory in ." >&2
13416    { (exit 1); exit 1; }
13417 }
13418
13419 _ACEOF
13420
13421 cat >>$CONFIG_STATUS <<_ACEOF
13422
13423 #
13424 # CONFIG_FILES section.
13425 #
13426
13427 # No need to generate the scripts if there are no CONFIG_FILES.
13428 # This happens for instance when ./config.status config.h
13429 if test -n "\$CONFIG_FILES"; then
13430   # Protect against being on the right side of a sed subst in config.status.
13431   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13432    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13433 s,@SHELL@,$SHELL,;t t
13434 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13435 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13436 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13437 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13438 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13439 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13440 s,@exec_prefix@,$exec_prefix,;t t
13441 s,@prefix@,$prefix,;t t
13442 s,@program_transform_name@,$program_transform_name,;t t
13443 s,@bindir@,$bindir,;t t
13444 s,@sbindir@,$sbindir,;t t
13445 s,@libexecdir@,$libexecdir,;t t
13446 s,@datadir@,$datadir,;t t
13447 s,@sysconfdir@,$sysconfdir,;t t
13448 s,@sharedstatedir@,$sharedstatedir,;t t
13449 s,@localstatedir@,$localstatedir,;t t
13450 s,@libdir@,$libdir,;t t
13451 s,@includedir@,$includedir,;t t
13452 s,@oldincludedir@,$oldincludedir,;t t
13453 s,@infodir@,$infodir,;t t
13454 s,@mandir@,$mandir,;t t
13455 s,@build_alias@,$build_alias,;t t
13456 s,@host_alias@,$host_alias,;t t
13457 s,@target_alias@,$target_alias,;t t
13458 s,@DEFS@,$DEFS,;t t
13459 s,@ECHO_C@,$ECHO_C,;t t
13460 s,@ECHO_N@,$ECHO_N,;t t
13461 s,@ECHO_T@,$ECHO_T,;t t
13462 s,@LIBS@,$LIBS,;t t
13463 s,@build@,$build,;t t
13464 s,@build_cpu@,$build_cpu,;t t
13465 s,@build_vendor@,$build_vendor,;t t
13466 s,@build_os@,$build_os,;t t
13467 s,@host@,$host,;t t
13468 s,@host_cpu@,$host_cpu,;t t
13469 s,@host_vendor@,$host_vendor,;t t
13470 s,@host_os@,$host_os,;t t
13471 s,@target@,$target,;t t
13472 s,@target_cpu@,$target_cpu,;t t
13473 s,@target_vendor@,$target_vendor,;t t
13474 s,@target_os@,$target_os,;t t
13475 s,@CC@,$CC,;t t
13476 s,@CFLAGS@,$CFLAGS,;t t
13477 s,@LDFLAGS@,$LDFLAGS,;t t
13478 s,@CPPFLAGS@,$CPPFLAGS,;t t
13479 s,@ac_ct_CC@,$ac_ct_CC,;t t
13480 s,@EXEEXT@,$EXEEXT,;t t
13481 s,@OBJEXT@,$OBJEXT,;t t
13482 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13483 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13484 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13485 s,@CYGPATH_W@,$CYGPATH_W,;t t
13486 s,@PACKAGE@,$PACKAGE,;t t
13487 s,@VERSION@,$VERSION,;t t
13488 s,@ACLOCAL@,$ACLOCAL,;t t
13489 s,@AUTOCONF@,$AUTOCONF,;t t
13490 s,@AUTOMAKE@,$AUTOMAKE,;t t
13491 s,@AUTOHEADER@,$AUTOHEADER,;t t
13492 s,@MAKEINFO@,$MAKEINFO,;t t
13493 s,@install_sh@,$install_sh,;t t
13494 s,@STRIP@,$STRIP,;t t
13495 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13496 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13497 s,@mkdir_p@,$mkdir_p,;t t
13498 s,@AWK@,$AWK,;t t
13499 s,@SET_MAKE@,$SET_MAKE,;t t
13500 s,@am__leading_dot@,$am__leading_dot,;t t
13501 s,@AMTAR@,$AMTAR,;t t
13502 s,@am__tar@,$am__tar,;t t
13503 s,@am__untar@,$am__untar,;t t
13504 s,@DEPDIR@,$DEPDIR,;t t
13505 s,@am__include@,$am__include,;t t
13506 s,@am__quote@,$am__quote,;t t
13507 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13508 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13509 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13510 s,@CCDEPMODE@,$CCDEPMODE,;t t
13511 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13512 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13513 s,@AR@,$AR,;t t
13514 s,@ac_ct_AR@,$ac_ct_AR,;t t
13515 s,@RANLIB@,$RANLIB,;t t
13516 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13517 s,@LN_S@,$LN_S,;t t
13518 s,@LIBTOOL@,$LIBTOOL,;t t
13519 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13520 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13521 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13522 s,@MAINT@,$MAINT,;t t
13523 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13524 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13525 s,@host_noncanonical@,$host_noncanonical,;t t
13526 s,@target_noncanonical@,$target_noncanonical,;t t
13527 s,@bfdlibdir@,$bfdlibdir,;t t
13528 s,@bfdincludedir@,$bfdincludedir,;t t
13529 s,@CPP@,$CPP,;t t
13530 s,@EGREP@,$EGREP,;t t
13531 s,@ALLOCA@,$ALLOCA,;t t
13532 s,@USE_NLS@,$USE_NLS,;t t
13533 s,@MSGFMT@,$MSGFMT,;t t
13534 s,@GMSGFMT@,$GMSGFMT,;t t
13535 s,@XGETTEXT@,$XGETTEXT,;t t
13536 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13537 s,@CATALOGS@,$CATALOGS,;t t
13538 s,@CATOBJEXT@,$CATOBJEXT,;t t
13539 s,@DATADIRNAME@,$DATADIRNAME,;t t
13540 s,@GMOFILES@,$GMOFILES,;t t
13541 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13542 s,@INTLDEPS@,$INTLDEPS,;t t
13543 s,@INTLLIBS@,$INTLLIBS,;t t
13544 s,@INTLOBJS@,$INTLOBJS,;t t
13545 s,@POFILES@,$POFILES,;t t
13546 s,@POSUB@,$POSUB,;t t
13547 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13548 s,@GT_NO@,$GT_NO,;t t
13549 s,@GT_YES@,$GT_YES,;t t
13550 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13551 s,@l@,$l,;t t
13552 s,@HDEFINES@,$HDEFINES,;t t
13553 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13554 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13555 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13556 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13557 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13558 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13559 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13560 s,@COREFILE@,$COREFILE,;t t
13561 s,@COREFLAG@,$COREFLAG,;t t
13562 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13563 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13564 s,@TDEFINES@,$TDEFINES,;t t
13565 s,@wordsize@,$wordsize,;t t
13566 s,@bfd_libs@,$bfd_libs,;t t
13567 s,@all_backends@,$all_backends,;t t
13568 s,@bfd_backends@,$bfd_backends,;t t
13569 s,@bfd_machines@,$bfd_machines,;t t
13570 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13571 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13572 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13573 s,@tdefaults@,$tdefaults,;t t
13574 s,@LIBOBJS@,$LIBOBJS,;t t
13575 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13576 CEOF
13577
13578 _ACEOF
13579
13580   cat >>$CONFIG_STATUS <<\_ACEOF
13581   # Split the substitutions into bite-sized pieces for seds with
13582   # small command number limits, like on Digital OSF/1 and HP-UX.
13583   ac_max_sed_lines=48
13584   ac_sed_frag=1 # Number of current file.
13585   ac_beg=1 # First line for current file.
13586   ac_end=$ac_max_sed_lines # Line after last line for current file.
13587   ac_more_lines=:
13588   ac_sed_cmds=
13589   while $ac_more_lines; do
13590     if test $ac_beg -gt 1; then
13591       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13592     else
13593       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13594     fi
13595     if test ! -s $tmp/subs.frag; then
13596       ac_more_lines=false
13597     else
13598       # The purpose of the label and of the branching condition is to
13599       # speed up the sed processing (if there are no `@' at all, there
13600       # is no need to browse any of the substitutions).
13601       # These are the two extra sed commands mentioned above.
13602       (echo ':t
13603   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13604       if test -z "$ac_sed_cmds"; then
13605         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13606       else
13607         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13608       fi
13609       ac_sed_frag=`expr $ac_sed_frag + 1`
13610       ac_beg=$ac_end
13611       ac_end=`expr $ac_end + $ac_max_sed_lines`
13612     fi
13613   done
13614   if test -z "$ac_sed_cmds"; then
13615     ac_sed_cmds=cat
13616   fi
13617 fi # test -n "$CONFIG_FILES"
13618
13619 _ACEOF
13620 cat >>$CONFIG_STATUS <<\_ACEOF
13621 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13622   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13623   case $ac_file in
13624   - | *:- | *:-:* ) # input from stdin
13625         cat >$tmp/stdin
13626         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13627         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13628   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13629         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13630   * )   ac_file_in=$ac_file.in ;;
13631   esac
13632
13633   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13634   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13636          X"$ac_file" : 'X\(//\)[^/]' \| \
13637          X"$ac_file" : 'X\(//\)$' \| \
13638          X"$ac_file" : 'X\(/\)' \| \
13639          .     : '\(.\)' 2>/dev/null ||
13640 echo X"$ac_file" |
13641     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13642           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13643           /^X\(\/\/\)$/{ s//\1/; q; }
13644           /^X\(\/\).*/{ s//\1/; q; }
13645           s/.*/./; q'`
13646   { if $as_mkdir_p; then
13647     mkdir -p "$ac_dir"
13648   else
13649     as_dir="$ac_dir"
13650     as_dirs=
13651     while test ! -d "$as_dir"; do
13652       as_dirs="$as_dir $as_dirs"
13653       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13655          X"$as_dir" : 'X\(//\)[^/]' \| \
13656          X"$as_dir" : 'X\(//\)$' \| \
13657          X"$as_dir" : 'X\(/\)' \| \
13658          .     : '\(.\)' 2>/dev/null ||
13659 echo X"$as_dir" |
13660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13661           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13662           /^X\(\/\/\)$/{ s//\1/; q; }
13663           /^X\(\/\).*/{ s//\1/; q; }
13664           s/.*/./; q'`
13665     done
13666     test ! -n "$as_dirs" || mkdir $as_dirs
13667   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13668 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13669    { (exit 1); exit 1; }; }; }
13670
13671   ac_builddir=.
13672
13673 if test "$ac_dir" != .; then
13674   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13675   # A "../" for each directory in $ac_dir_suffix.
13676   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13677 else
13678   ac_dir_suffix= ac_top_builddir=
13679 fi
13680
13681 case $srcdir in
13682   .)  # No --srcdir option.  We are building in place.
13683     ac_srcdir=.
13684     if test -z "$ac_top_builddir"; then
13685        ac_top_srcdir=.
13686     else
13687        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13688     fi ;;
13689   [\\/]* | ?:[\\/]* )  # Absolute path.
13690     ac_srcdir=$srcdir$ac_dir_suffix;
13691     ac_top_srcdir=$srcdir ;;
13692   *) # Relative path.
13693     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13694     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13695 esac
13696
13697 # Do not use `cd foo && pwd` to compute absolute paths, because
13698 # the directories may not exist.
13699 case `pwd` in
13700 .) ac_abs_builddir="$ac_dir";;
13701 *)
13702   case "$ac_dir" in
13703   .) ac_abs_builddir=`pwd`;;
13704   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13705   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13706   esac;;
13707 esac
13708 case $ac_abs_builddir in
13709 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13710 *)
13711   case ${ac_top_builddir}. in
13712   .) ac_abs_top_builddir=$ac_abs_builddir;;
13713   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13714   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13715   esac;;
13716 esac
13717 case $ac_abs_builddir in
13718 .) ac_abs_srcdir=$ac_srcdir;;
13719 *)
13720   case $ac_srcdir in
13721   .) ac_abs_srcdir=$ac_abs_builddir;;
13722   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13723   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13724   esac;;
13725 esac
13726 case $ac_abs_builddir in
13727 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13728 *)
13729   case $ac_top_srcdir in
13730   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13731   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13732   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13733   esac;;
13734 esac
13735
13736
13737   case $INSTALL in
13738   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13739   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13740   esac
13741
13742   if test x"$ac_file" != x-; then
13743     { echo "$as_me:$LINENO: creating $ac_file" >&5
13744 echo "$as_me: creating $ac_file" >&6;}
13745     rm -f "$ac_file"
13746   fi
13747   # Let's still pretend it is `configure' which instantiates (i.e., don't
13748   # use $as_me), people would be surprised to read:
13749   #    /* config.h.  Generated by config.status.  */
13750   if test x"$ac_file" = x-; then
13751     configure_input=
13752   else
13753     configure_input="$ac_file.  "
13754   fi
13755   configure_input=$configure_input"Generated from `echo $ac_file_in |
13756                                      sed 's,.*/,,'` by configure."
13757
13758   # First look for the input files in the build tree, otherwise in the
13759   # src tree.
13760   ac_file_inputs=`IFS=:
13761     for f in $ac_file_in; do
13762       case $f in
13763       -) echo $tmp/stdin ;;
13764       [\\/$]*)
13765          # Absolute (can't be DOS-style, as IFS=:)
13766          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13767 echo "$as_me: error: cannot find input file: $f" >&2;}
13768    { (exit 1); exit 1; }; }
13769          echo "$f";;
13770       *) # Relative
13771          if test -f "$f"; then
13772            # Build tree
13773            echo "$f"
13774          elif test -f "$srcdir/$f"; then
13775            # Source tree
13776            echo "$srcdir/$f"
13777          else
13778            # /dev/null tree
13779            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13780 echo "$as_me: error: cannot find input file: $f" >&2;}
13781    { (exit 1); exit 1; }; }
13782          fi;;
13783       esac
13784     done` || { (exit 1); exit 1; }
13785 _ACEOF
13786 cat >>$CONFIG_STATUS <<_ACEOF
13787   sed "$ac_vpsub
13788 $extrasub
13789 _ACEOF
13790 cat >>$CONFIG_STATUS <<\_ACEOF
13791 :t
13792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13793 s,@configure_input@,$configure_input,;t t
13794 s,@srcdir@,$ac_srcdir,;t t
13795 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13796 s,@top_srcdir@,$ac_top_srcdir,;t t
13797 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13798 s,@builddir@,$ac_builddir,;t t
13799 s,@abs_builddir@,$ac_abs_builddir,;t t
13800 s,@top_builddir@,$ac_top_builddir,;t t
13801 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13802 s,@INSTALL@,$ac_INSTALL,;t t
13803 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13804   rm -f $tmp/stdin
13805   if test x"$ac_file" != x-; then
13806     mv $tmp/out $ac_file
13807   else
13808     cat $tmp/out
13809     rm -f $tmp/out
13810   fi
13811
13812 done
13813 _ACEOF
13814 cat >>$CONFIG_STATUS <<\_ACEOF
13815
13816 #
13817 # CONFIG_HEADER section.
13818 #
13819
13820 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13821 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13822 #
13823 # ac_d sets the value in "#define NAME VALUE" lines.
13824 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13825 ac_dB='[         ].*$,\1#\2'
13826 ac_dC=' '
13827 ac_dD=',;t'
13828 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13829 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13830 ac_uB='$,\1#\2define\3'
13831 ac_uC=' '
13832 ac_uD=',;t'
13833
13834 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13835   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13836   case $ac_file in
13837   - | *:- | *:-:* ) # input from stdin
13838         cat >$tmp/stdin
13839         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13840         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13841   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13843   * )   ac_file_in=$ac_file.in ;;
13844   esac
13845
13846   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13847 echo "$as_me: creating $ac_file" >&6;}
13848
13849   # First look for the input files in the build tree, otherwise in the
13850   # src tree.
13851   ac_file_inputs=`IFS=:
13852     for f in $ac_file_in; do
13853       case $f in
13854       -) echo $tmp/stdin ;;
13855       [\\/$]*)
13856          # Absolute (can't be DOS-style, as IFS=:)
13857          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13858 echo "$as_me: error: cannot find input file: $f" >&2;}
13859    { (exit 1); exit 1; }; }
13860          # Do quote $f, to prevent DOS paths from being IFS'd.
13861          echo "$f";;
13862       *) # Relative
13863          if test -f "$f"; then
13864            # Build tree
13865            echo "$f"
13866          elif test -f "$srcdir/$f"; then
13867            # Source tree
13868            echo "$srcdir/$f"
13869          else
13870            # /dev/null tree
13871            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13872 echo "$as_me: error: cannot find input file: $f" >&2;}
13873    { (exit 1); exit 1; }; }
13874          fi;;
13875       esac
13876     done` || { (exit 1); exit 1; }
13877   # Remove the trailing spaces.
13878   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13879
13880 _ACEOF
13881
13882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13883 # `conftest.undefs', that substitutes the proper values into
13884 # config.h.in to produce config.h.  The first handles `#define'
13885 # templates, and the second `#undef' templates.
13886 # And first: Protect against being on the right side of a sed subst in
13887 # config.status.  Protect against being in an unquoted here document
13888 # in config.status.
13889 rm -f conftest.defines conftest.undefs
13890 # Using a here document instead of a string reduces the quoting nightmare.
13891 # Putting comments in sed scripts is not portable.
13892 #
13893 # `end' is used to avoid that the second main sed command (meant for
13894 # 0-ary CPP macros) applies to n-ary macro definitions.
13895 # See the Autoconf documentation for `clear'.
13896 cat >confdef2sed.sed <<\_ACEOF
13897 s/[\\&,]/\\&/g
13898 s,[\\$`],\\&,g
13899 t clear
13900 : clear
13901 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13902 t end
13903 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13904 : end
13905 _ACEOF
13906 # If some macros were called several times there might be several times
13907 # the same #defines, which is useless.  Nevertheless, we may not want to
13908 # sort them, since we want the *last* AC-DEFINE to be honored.
13909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13911 rm -f confdef2sed.sed
13912
13913 # This sed command replaces #undef with comments.  This is necessary, for
13914 # example, in the case of _POSIX_SOURCE, which is predefined and required
13915 # on some systems where configure will not decide to define it.
13916 cat >>conftest.undefs <<\_ACEOF
13917 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13918 _ACEOF
13919
13920 # Break up conftest.defines because some shells have a limit on the size
13921 # of here documents, and old seds have small limits too (100 cmds).
13922 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13923 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13924 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13925 echo '  :' >>$CONFIG_STATUS
13926 rm -f conftest.tail
13927 while grep . conftest.defines >/dev/null
13928 do
13929   # Write a limited-size here document to $tmp/defines.sed.
13930   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13931   # Speed up: don't consider the non `#define' lines.
13932   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13933   # Work around the forget-to-reset-the-flag bug.
13934   echo 't clr' >>$CONFIG_STATUS
13935   echo ': clr' >>$CONFIG_STATUS
13936   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13937   echo 'CEOF
13938   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13939   rm -f $tmp/in
13940   mv $tmp/out $tmp/in
13941 ' >>$CONFIG_STATUS
13942   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13943   rm -f conftest.defines
13944   mv conftest.tail conftest.defines
13945 done
13946 rm -f conftest.defines
13947 echo '  fi # grep' >>$CONFIG_STATUS
13948 echo >>$CONFIG_STATUS
13949
13950 # Break up conftest.undefs because some shells have a limit on the size
13951 # of here documents, and old seds have small limits too (100 cmds).
13952 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13953 rm -f conftest.tail
13954 while grep . conftest.undefs >/dev/null
13955 do
13956   # Write a limited-size here document to $tmp/undefs.sed.
13957   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13958   # Speed up: don't consider the non `#undef'
13959   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13960   # Work around the forget-to-reset-the-flag bug.
13961   echo 't clr' >>$CONFIG_STATUS
13962   echo ': clr' >>$CONFIG_STATUS
13963   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13964   echo 'CEOF
13965   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13966   rm -f $tmp/in
13967   mv $tmp/out $tmp/in
13968 ' >>$CONFIG_STATUS
13969   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13970   rm -f conftest.undefs
13971   mv conftest.tail conftest.undefs
13972 done
13973 rm -f conftest.undefs
13974
13975 cat >>$CONFIG_STATUS <<\_ACEOF
13976   # Let's still pretend it is `configure' which instantiates (i.e., don't
13977   # use $as_me), people would be surprised to read:
13978   #    /* config.h.  Generated by config.status.  */
13979   if test x"$ac_file" = x-; then
13980     echo "/* Generated by configure.  */" >$tmp/config.h
13981   else
13982     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13983   fi
13984   cat $tmp/in >>$tmp/config.h
13985   rm -f $tmp/in
13986   if test x"$ac_file" != x-; then
13987     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13988       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13989 echo "$as_me: $ac_file is unchanged" >&6;}
13990     else
13991       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13993          X"$ac_file" : 'X\(//\)[^/]' \| \
13994          X"$ac_file" : 'X\(//\)$' \| \
13995          X"$ac_file" : 'X\(/\)' \| \
13996          .     : '\(.\)' 2>/dev/null ||
13997 echo X"$ac_file" |
13998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14000           /^X\(\/\/\)$/{ s//\1/; q; }
14001           /^X\(\/\).*/{ s//\1/; q; }
14002           s/.*/./; q'`
14003       { if $as_mkdir_p; then
14004     mkdir -p "$ac_dir"
14005   else
14006     as_dir="$ac_dir"
14007     as_dirs=
14008     while test ! -d "$as_dir"; do
14009       as_dirs="$as_dir $as_dirs"
14010       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14012          X"$as_dir" : 'X\(//\)[^/]' \| \
14013          X"$as_dir" : 'X\(//\)$' \| \
14014          X"$as_dir" : 'X\(/\)' \| \
14015          .     : '\(.\)' 2>/dev/null ||
14016 echo X"$as_dir" |
14017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14019           /^X\(\/\/\)$/{ s//\1/; q; }
14020           /^X\(\/\).*/{ s//\1/; q; }
14021           s/.*/./; q'`
14022     done
14023     test ! -n "$as_dirs" || mkdir $as_dirs
14024   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14026    { (exit 1); exit 1; }; }; }
14027
14028       rm -f $ac_file
14029       mv $tmp/config.h $ac_file
14030     fi
14031   else
14032     cat $tmp/config.h
14033     rm -f $tmp/config.h
14034   fi
14035 # Compute $ac_file's index in $config_headers.
14036 _am_stamp_count=1
14037 for _am_header in $config_headers :; do
14038   case $_am_header in
14039     $ac_file | $ac_file:* )
14040       break ;;
14041     * )
14042       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14043   esac
14044 done
14045 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14046 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14047          X$ac_file : 'X\(//\)[^/]' \| \
14048          X$ac_file : 'X\(//\)$' \| \
14049          X$ac_file : 'X\(/\)' \| \
14050          .     : '\(.\)' 2>/dev/null ||
14051 echo X$ac_file |
14052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14053           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14054           /^X\(\/\/\)$/{ s//\1/; q; }
14055           /^X\(\/\).*/{ s//\1/; q; }
14056           s/.*/./; q'`/stamp-h$_am_stamp_count
14057 done
14058 _ACEOF
14059 cat >>$CONFIG_STATUS <<\_ACEOF
14060
14061 #
14062 # CONFIG_COMMANDS section.
14063 #
14064 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14065   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14066   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14067   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14068 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14069          X"$ac_dest" : 'X\(//\)[^/]' \| \
14070          X"$ac_dest" : 'X\(//\)$' \| \
14071          X"$ac_dest" : 'X\(/\)' \| \
14072          .     : '\(.\)' 2>/dev/null ||
14073 echo X"$ac_dest" |
14074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14076           /^X\(\/\/\)$/{ s//\1/; q; }
14077           /^X\(\/\).*/{ s//\1/; q; }
14078           s/.*/./; q'`
14079   { if $as_mkdir_p; then
14080     mkdir -p "$ac_dir"
14081   else
14082     as_dir="$ac_dir"
14083     as_dirs=
14084     while test ! -d "$as_dir"; do
14085       as_dirs="$as_dir $as_dirs"
14086       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14087 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14088          X"$as_dir" : 'X\(//\)[^/]' \| \
14089          X"$as_dir" : 'X\(//\)$' \| \
14090          X"$as_dir" : 'X\(/\)' \| \
14091          .     : '\(.\)' 2>/dev/null ||
14092 echo X"$as_dir" |
14093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14094           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14095           /^X\(\/\/\)$/{ s//\1/; q; }
14096           /^X\(\/\).*/{ s//\1/; q; }
14097           s/.*/./; q'`
14098     done
14099     test ! -n "$as_dirs" || mkdir $as_dirs
14100   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14101 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14102    { (exit 1); exit 1; }; }; }
14103
14104   ac_builddir=.
14105
14106 if test "$ac_dir" != .; then
14107   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14108   # A "../" for each directory in $ac_dir_suffix.
14109   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14110 else
14111   ac_dir_suffix= ac_top_builddir=
14112 fi
14113
14114 case $srcdir in
14115   .)  # No --srcdir option.  We are building in place.
14116     ac_srcdir=.
14117     if test -z "$ac_top_builddir"; then
14118        ac_top_srcdir=.
14119     else
14120        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14121     fi ;;
14122   [\\/]* | ?:[\\/]* )  # Absolute path.
14123     ac_srcdir=$srcdir$ac_dir_suffix;
14124     ac_top_srcdir=$srcdir ;;
14125   *) # Relative path.
14126     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14127     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14128 esac
14129
14130 # Do not use `cd foo && pwd` to compute absolute paths, because
14131 # the directories may not exist.
14132 case `pwd` in
14133 .) ac_abs_builddir="$ac_dir";;
14134 *)
14135   case "$ac_dir" in
14136   .) ac_abs_builddir=`pwd`;;
14137   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14138   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14139   esac;;
14140 esac
14141 case $ac_abs_builddir in
14142 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14143 *)
14144   case ${ac_top_builddir}. in
14145   .) ac_abs_top_builddir=$ac_abs_builddir;;
14146   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14147   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14148   esac;;
14149 esac
14150 case $ac_abs_builddir in
14151 .) ac_abs_srcdir=$ac_srcdir;;
14152 *)
14153   case $ac_srcdir in
14154   .) ac_abs_srcdir=$ac_abs_builddir;;
14155   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14156   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14157   esac;;
14158 esac
14159 case $ac_abs_builddir in
14160 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14161 *)
14162   case $ac_top_srcdir in
14163   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14164   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14165   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14166   esac;;
14167 esac
14168
14169
14170   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14171 echo "$as_me: executing $ac_dest commands" >&6;}
14172   case $ac_dest in
14173     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14174   # Strip MF so we end up with the name of the file.
14175   mf=`echo "$mf" | sed -e 's/:.*$//'`
14176   # Check whether this is an Automake generated Makefile or not.
14177   # We used to match only the files named `Makefile.in', but
14178   # some people rename them; so instead we look at the file content.
14179   # Grep'ing the first line is not enough: some people post-process
14180   # each Makefile.in and add a new line on top of each file to say so.
14181   # So let's grep whole file.
14182   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14183     dirpart=`(dirname "$mf") 2>/dev/null ||
14184 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14185          X"$mf" : 'X\(//\)[^/]' \| \
14186          X"$mf" : 'X\(//\)$' \| \
14187          X"$mf" : 'X\(/\)' \| \
14188          .     : '\(.\)' 2>/dev/null ||
14189 echo X"$mf" |
14190     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14191           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14192           /^X\(\/\/\)$/{ s//\1/; q; }
14193           /^X\(\/\).*/{ s//\1/; q; }
14194           s/.*/./; q'`
14195   else
14196     continue
14197   fi
14198   # Extract the definition of DEPDIR, am__include, and am__quote
14199   # from the Makefile without running `make'.
14200   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14201   test -z "$DEPDIR" && continue
14202   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14203   test -z "am__include" && continue
14204   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14205   # When using ansi2knr, U may be empty or an underscore; expand it
14206   U=`sed -n 's/^U = //p' < "$mf"`
14207   # Find all dependency output files, they are included files with
14208   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14209   # simplest approach to changing $(DEPDIR) to its actual value in the
14210   # expansion.
14211   for file in `sed -n "
14212     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14213        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14214     # Make sure the directory exists.
14215     test -f "$dirpart/$file" && continue
14216     fdir=`(dirname "$file") 2>/dev/null ||
14217 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14218          X"$file" : 'X\(//\)[^/]' \| \
14219          X"$file" : 'X\(//\)$' \| \
14220          X"$file" : 'X\(/\)' \| \
14221          .     : '\(.\)' 2>/dev/null ||
14222 echo X"$file" |
14223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14224           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14225           /^X\(\/\/\)$/{ s//\1/; q; }
14226           /^X\(\/\).*/{ s//\1/; q; }
14227           s/.*/./; q'`
14228     { if $as_mkdir_p; then
14229     mkdir -p $dirpart/$fdir
14230   else
14231     as_dir=$dirpart/$fdir
14232     as_dirs=
14233     while test ! -d "$as_dir"; do
14234       as_dirs="$as_dir $as_dirs"
14235       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14236 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14237          X"$as_dir" : 'X\(//\)[^/]' \| \
14238          X"$as_dir" : 'X\(//\)$' \| \
14239          X"$as_dir" : 'X\(/\)' \| \
14240          .     : '\(.\)' 2>/dev/null ||
14241 echo X"$as_dir" |
14242     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14243           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14244           /^X\(\/\/\)$/{ s//\1/; q; }
14245           /^X\(\/\).*/{ s//\1/; q; }
14246           s/.*/./; q'`
14247     done
14248     test ! -n "$as_dirs" || mkdir $as_dirs
14249   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14250 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14251    { (exit 1); exit 1; }; }; }
14252
14253     # echo "creating $dirpart/$file"
14254     echo '# dummy' > "$dirpart/$file"
14255   done
14256 done
14257  ;;
14258     default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14259   esac
14260 done
14261 _ACEOF
14262
14263 cat >>$CONFIG_STATUS <<\_ACEOF
14264
14265 { (exit 0); exit 0; }
14266 _ACEOF
14267 chmod +x $CONFIG_STATUS
14268 ac_clean_files=$ac_clean_files_save
14269
14270
14271 # configure is writing to config.log, and then calls config.status.
14272 # config.status does its own redirection, appending to config.log.
14273 # Unfortunately, on DOS this fails, as config.log is still kept open
14274 # by configure, so config.status won't be able to write to it; its
14275 # output is simply discarded.  So we exec the FD to /dev/null,
14276 # effectively closing config.log, so it can be properly (re)opened and
14277 # appended to by config.status.  When coming back to configure, we
14278 # need to make the FD available again.
14279 if test "$no_create" != yes; then
14280   ac_cs_success=:
14281   ac_config_status_args=
14282   test "$silent" = yes &&
14283     ac_config_status_args="$ac_config_status_args --quiet"
14284   exec 5>/dev/null
14285   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14286   exec 5>>config.log
14287   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14288   # would make configure fail if this is the last instruction.
14289   $ac_cs_success || { (exit 1); exit 1; }
14290 fi
14291
14292