* configure.in: Check for fopen64.
[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 NO_WERROR 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-secureplt      Default to creating read-only plt entries
863   --enable-werror    treat compile warnings as errors
864   --enable-build-warnings Enable build-time compiler warnings
865   --enable-maintainer-mode  enable make rules and dependencies not useful
866                           (and sometimes confusing) to the casual installer
867   --enable-install-libbfd controls installation of libbfd and related headers
868   --disable-nls           do not use Native Language Support
869
870 Optional Packages:
871   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
872   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
873   --with-gnu-ld           assume the C compiler uses GNU ld default=no
874   --with-pic              try to use only PIC/non-PIC objects default=use both
875   --with-mmap             try using mmap for BFD input files if available
876   --with-included-gettext use the GNU gettext library included here
877
878 Some influential environment variables:
879   CC          C compiler command
880   CFLAGS      C compiler flags
881   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
882               nonstandard directory <lib dir>
883   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
884               headers in a nonstandard directory <include dir>
885   CPP         C preprocessor
886
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
889
890 _ACEOF
891 fi
892
893 if test "$ac_init_help" = "recursive"; then
894   # If there are subdirs, report their specific --help.
895   ac_popdir=`pwd`
896   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897     test -d $ac_dir || continue
898     ac_builddir=.
899
900 if test "$ac_dir" != .; then
901   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902   # A "../" for each directory in $ac_dir_suffix.
903   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905   ac_dir_suffix= ac_top_builddir=
906 fi
907
908 case $srcdir in
909   .)  # No --srcdir option.  We are building in place.
910     ac_srcdir=.
911     if test -z "$ac_top_builddir"; then
912        ac_top_srcdir=.
913     else
914        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915     fi ;;
916   [\\/]* | ?:[\\/]* )  # Absolute path.
917     ac_srcdir=$srcdir$ac_dir_suffix;
918     ac_top_srcdir=$srcdir ;;
919   *) # Relative path.
920     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921     ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
923
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
928 *)
929   case "$ac_dir" in
930   .) ac_abs_builddir=`pwd`;;
931   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932   *) ac_abs_builddir=`pwd`/"$ac_dir";;
933   esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *)
938   case ${ac_top_builddir}. in
939   .) ac_abs_top_builddir=$ac_abs_builddir;;
940   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942   esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
946 *)
947   case $ac_srcdir in
948   .) ac_abs_srcdir=$ac_abs_builddir;;
949   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951   esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *)
956   case $ac_top_srcdir in
957   .) ac_abs_top_srcdir=$ac_abs_builddir;;
958   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960   esac;;
961 esac
962
963     cd $ac_dir
964     # Check for guested configure; otherwise get Cygnus style configure.
965     if test -f $ac_srcdir/configure.gnu; then
966       echo
967       $SHELL $ac_srcdir/configure.gnu  --help=recursive
968     elif test -f $ac_srcdir/configure; then
969       echo
970       $SHELL $ac_srcdir/configure  --help=recursive
971     elif test -f $ac_srcdir/configure.ac ||
972            test -f $ac_srcdir/configure.in; then
973       echo
974       $ac_configure --help
975     else
976       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977     fi
978     cd "$ac_popdir"
979   done
980 fi
981
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984   cat <<\_ACEOF
985
986 Copyright (C) 2003 Free Software Foundation, Inc.
987 This configure script is free software; the Free Software Foundation
988 gives unlimited permission to copy, distribute and modify it.
989 _ACEOF
990   exit 0
991 fi
992 exec 5>config.log
993 cat >&5 <<_ACEOF
994 This file contains any messages produced by compilers while
995 running configure, to aid debugging if configure makes a mistake.
996
997 It was created by $as_me, which was
998 generated by GNU Autoconf 2.59.  Invocation command line was
999
1000   $ $0 $@
1001
1002 _ACEOF
1003 {
1004 cat <<_ASUNAME
1005 ## --------- ##
1006 ## Platform. ##
1007 ## --------- ##
1008
1009 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1017
1018 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1019 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1020 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1022 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1023 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1024 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1025
1026 _ASUNAME
1027
1028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 for as_dir in $PATH
1030 do
1031   IFS=$as_save_IFS
1032   test -z "$as_dir" && as_dir=.
1033   echo "PATH: $as_dir"
1034 done
1035
1036 } >&5
1037
1038 cat >&5 <<_ACEOF
1039
1040
1041 ## ----------- ##
1042 ## Core tests. ##
1043 ## ----------- ##
1044
1045 _ACEOF
1046
1047
1048 # Keep a trace of the command line.
1049 # Strip out --no-create and --no-recursion so they do not pile up.
1050 # Strip out --silent because we don't want to record it for future runs.
1051 # Also quote any args containing shell meta-characters.
1052 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_configure_args=
1054 ac_configure_args0=
1055 ac_configure_args1=
1056 ac_sep=
1057 ac_must_keep_next=false
1058 for ac_pass in 1 2
1059 do
1060   for ac_arg
1061   do
1062     case $ac_arg in
1063     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065     | -silent | --silent | --silen | --sile | --sil)
1066       continue ;;
1067     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069     esac
1070     case $ac_pass in
1071     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072     2)
1073       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074       if test $ac_must_keep_next = true; then
1075         ac_must_keep_next=false # Got value, back to normal.
1076       else
1077         case $ac_arg in
1078           *=* | --config-cache | -C | -disable-* | --disable-* \
1079           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081           | -with-* | --with-* | -without-* | --without-* | --x)
1082             case "$ac_configure_args0 " in
1083               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084             esac
1085             ;;
1086           -* ) ac_must_keep_next=true ;;
1087         esac
1088       fi
1089       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090       # Get rid of the leading space.
1091       ac_sep=" "
1092       ;;
1093     esac
1094   done
1095 done
1096 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099 # When interrupted or exit'd, cleanup temporary files, and complete
1100 # config.log.  We remove comments because anyway the quotes in there
1101 # would cause problems or look ugly.
1102 # WARNING: Be sure not to use single quotes in there, as some shells,
1103 # such as our DU 5.0 friend, will then `close' the trap.
1104 trap 'exit_status=$?
1105   # Save into config.log some information that might help in debugging.
1106   {
1107     echo
1108
1109     cat <<\_ASBOX
1110 ## ---------------- ##
1111 ## Cache variables. ##
1112 ## ---------------- ##
1113 _ASBOX
1114     echo
1115     # The following way of writing the cache mishandles newlines in values,
1116 {
1117   (set) 2>&1 |
1118     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119     *ac_space=\ *)
1120       sed -n \
1121         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123       ;;
1124     *)
1125       sed -n \
1126         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127       ;;
1128     esac;
1129 }
1130     echo
1131
1132     cat <<\_ASBOX
1133 ## ----------------- ##
1134 ## Output variables. ##
1135 ## ----------------- ##
1136 _ASBOX
1137     echo
1138     for ac_var in $ac_subst_vars
1139     do
1140       eval ac_val=$`echo $ac_var`
1141       echo "$ac_var='"'"'$ac_val'"'"'"
1142     done | sort
1143     echo
1144
1145     if test -n "$ac_subst_files"; then
1146       cat <<\_ASBOX
1147 ## ------------- ##
1148 ## Output files. ##
1149 ## ------------- ##
1150 _ASBOX
1151       echo
1152       for ac_var in $ac_subst_files
1153       do
1154         eval ac_val=$`echo $ac_var`
1155         echo "$ac_var='"'"'$ac_val'"'"'"
1156       done | sort
1157       echo
1158     fi
1159
1160     if test -s confdefs.h; then
1161       cat <<\_ASBOX
1162 ## ----------- ##
1163 ## confdefs.h. ##
1164 ## ----------- ##
1165 _ASBOX
1166       echo
1167       sed "/^$/d" confdefs.h | sort
1168       echo
1169     fi
1170     test "$ac_signal" != 0 &&
1171       echo "$as_me: caught signal $ac_signal"
1172     echo "$as_me: exit $exit_status"
1173   } >&5
1174   rm -f core *.core &&
1175   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176     exit $exit_status
1177      ' 0
1178 for ac_signal in 1 2 13 15; do
1179   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 done
1181 ac_signal=0
1182
1183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1184 rm -rf conftest* confdefs.h
1185 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 echo >confdefs.h
1187
1188 # Predefined preprocessor variables.
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 _ACEOF
1198
1199
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 _ACEOF
1203
1204
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 _ACEOF
1208
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 _ACEOF
1213
1214
1215 # Let the site file select an alternate cache file if it wants to.
1216 # Prefer explicitly selected file to automatically selected ones.
1217 if test -z "$CONFIG_SITE"; then
1218   if test "x$prefix" != xNONE; then
1219     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220   else
1221     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222   fi
1223 fi
1224 for ac_site_file in $CONFIG_SITE; do
1225   if test -r "$ac_site_file"; then
1226     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227 echo "$as_me: loading site script $ac_site_file" >&6;}
1228     sed 's/^/| /' "$ac_site_file" >&5
1229     . "$ac_site_file"
1230   fi
1231 done
1232
1233 if test -r "$cache_file"; then
1234   # Some versions of bash will fail to source /dev/null (special
1235   # files actually), so we avoid doing that.
1236   if test -f "$cache_file"; then
1237     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238 echo "$as_me: loading cache $cache_file" >&6;}
1239     case $cache_file in
1240       [\\/]* | ?:[\\/]* ) . $cache_file;;
1241       *)                      . ./$cache_file;;
1242     esac
1243   fi
1244 else
1245   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246 echo "$as_me: creating cache $cache_file" >&6;}
1247   >$cache_file
1248 fi
1249
1250 # Check that the precious variables saved in the cache have kept the same
1251 # value.
1252 ac_cache_corrupted=false
1253 for ac_var in `(set) 2>&1 |
1254                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256   eval ac_new_set=\$ac_env_${ac_var}_set
1257   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258   eval ac_new_val="\$ac_env_${ac_var}_value"
1259   case $ac_old_set,$ac_new_set in
1260     set,)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,set)
1265       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267       ac_cache_corrupted=: ;;
1268     ,);;
1269     *)
1270       if test "x$ac_old_val" != "x$ac_new_val"; then
1271         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1274 echo "$as_me:   former value:  $ac_old_val" >&2;}
1275         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1276 echo "$as_me:   current value: $ac_new_val" >&2;}
1277         ac_cache_corrupted=:
1278       fi;;
1279   esac
1280   # Pass precious variables to config.status.
1281   if test "$ac_new_set" = set; then
1282     case $ac_new_val in
1283     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285     *) ac_arg=$ac_var=$ac_new_val ;;
1286     esac
1287     case " $ac_configure_args " in
1288       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1289       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290     esac
1291   fi
1292 done
1293 if $ac_cache_corrupted; then
1294   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298    { (exit 1); exit 1; }; }
1299 fi
1300
1301 ac_ext=c
1302 ac_cpp='$CPP $CPPFLAGS'
1303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329   if test -f $ac_dir/install-sh; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/install-sh -c"
1332     break
1333   elif test -f $ac_dir/install.sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install.sh -c"
1336     break
1337   elif test -f $ac_dir/shtool; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/shtool install -c"
1340     break
1341   fi
1342 done
1343 if test -z "$ac_aux_dir"; then
1344   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346    { (exit 1); exit 1; }; }
1347 fi
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352 # Make sure we can run config.sub.
1353 $ac_config_sub sun4 >/dev/null 2>&1 ||
1354   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356    { (exit 1); exit 1; }; }
1357
1358 echo "$as_me:$LINENO: checking build system type" >&5
1359 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360 if test "${ac_cv_build+set}" = set; then
1361   echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363   ac_cv_build_alias=$build_alias
1364 test -z "$ac_cv_build_alias" &&
1365   ac_cv_build_alias=`$ac_config_guess`
1366 test -z "$ac_cv_build_alias" &&
1367   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369    { (exit 1); exit 1; }; }
1370 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373    { (exit 1); exit 1; }; }
1374
1375 fi
1376 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377 echo "${ECHO_T}$ac_cv_build" >&6
1378 build=$ac_cv_build
1379 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384 echo "$as_me:$LINENO: checking host system type" >&5
1385 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386 if test "${ac_cv_host+set}" = set; then
1387   echo $ECHO_N "(cached) $ECHO_C" >&6
1388 else
1389   ac_cv_host_alias=$host_alias
1390 test -z "$ac_cv_host_alias" &&
1391   ac_cv_host_alias=$ac_cv_build_alias
1392 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 fi
1398 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399 echo "${ECHO_T}$ac_cv_host" >&6
1400 host=$ac_cv_host
1401 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406 echo "$as_me:$LINENO: checking target system type" >&5
1407 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408 if test "${ac_cv_target+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_target_alias=$target_alias
1412 test "x$ac_cv_target_alias" = "x" &&
1413   ac_cv_target_alias=$ac_cv_host_alias
1414 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417    { (exit 1); exit 1; }; }
1418
1419 fi
1420 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421 echo "${ECHO_T}$ac_cv_target" >&6
1422 target=$ac_cv_target
1423 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428 # The aliases save the names the user supplied, while $host etc.
1429 # will get canonicalized.
1430 test -n "$target_alias" &&
1431   test "$program_prefix$program_suffix$program_transform_name" = \
1432     NONENONEs,x,x, &&
1433   program_prefix=${target_alias}-
1434 ac_ext=c
1435 ac_cpp='$CPP $CPPFLAGS'
1436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439 if test -n "$ac_tool_prefix"; then
1440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442 echo "$as_me:$LINENO: checking for $ac_word" >&5
1443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444 if test "${ac_cv_prog_CC+set}" = set; then
1445   echo $ECHO_N "(cached) $ECHO_C" >&6
1446 else
1447   if test -n "$CC"; then
1448   ac_cv_prog_CC="$CC" # Let the user override the test.
1449 else
1450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451 for as_dir in $PATH
1452 do
1453   IFS=$as_save_IFS
1454   test -z "$as_dir" && as_dir=.
1455   for ac_exec_ext in '' $ac_executable_extensions; do
1456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459     break 2
1460   fi
1461 done
1462 done
1463
1464 fi
1465 fi
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468   echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 fi
1476 if test -z "$ac_cv_prog_CC"; then
1477   ac_ct_CC=$CC
1478   # Extract the first word of "gcc", so it can be a program name with args.
1479 set dummy gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$ac_ct_CC"; then
1486   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_ac_ct_CC="gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505 if test -n "$ac_ct_CC"; then
1506   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507 echo "${ECHO_T}$ac_ct_CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513   CC=$ac_ct_CC
1514 else
1515   CC="$ac_cv_prog_CC"
1516 fi
1517
1518 if test -z "$CC"; then
1519   if test -n "$ac_tool_prefix"; then
1520   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521 set dummy ${ac_tool_prefix}cc; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   if test -n "$CC"; then
1528   ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   for ac_exec_ext in '' $ac_executable_extensions; do
1536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537     ac_cv_prog_CC="${ac_tool_prefix}cc"
1538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539     break 2
1540   fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548   echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551   echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555 fi
1556 if test -z "$ac_cv_prog_CC"; then
1557   ac_ct_CC=$CC
1558   # Extract the first word of "cc", so it can be a program name with args.
1559 set dummy cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$ac_ct_CC"; then
1566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_ac_ct_CC="cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593   CC=$ac_ct_CC
1594 else
1595   CC="$ac_cv_prog_CC"
1596 fi
1597
1598 fi
1599 if test -z "$CC"; then
1600   # Extract the first word of "cc", so it can be a program name with args.
1601 set dummy cc; ac_word=$2
1602 echo "$as_me:$LINENO: checking for $ac_word" >&5
1603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604 if test "${ac_cv_prog_CC+set}" = set; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   if test -n "$CC"; then
1608   ac_cv_prog_CC="$CC" # Let the user override the test.
1609 else
1610   ac_prog_rejected=no
1611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 for as_dir in $PATH
1613 do
1614   IFS=$as_save_IFS
1615   test -z "$as_dir" && as_dir=.
1616   for ac_exec_ext in '' $ac_executable_extensions; do
1617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619        ac_prog_rejected=yes
1620        continue
1621      fi
1622     ac_cv_prog_CC="cc"
1623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624     break 2
1625   fi
1626 done
1627 done
1628
1629 if test $ac_prog_rejected = yes; then
1630   # We found a bogon in the path, so make sure we never use it.
1631   set dummy $ac_cv_prog_CC
1632   shift
1633   if test $# != 0; then
1634     # We chose a different compiler from the bogus one.
1635     # However, it has the same basename, so the bogon will be chosen
1636     # first if we set CC to just the basename; use the full file name.
1637     shift
1638     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639   fi
1640 fi
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645   echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648   echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 fi
1653 if test -z "$CC"; then
1654   if test -n "$ac_tool_prefix"; then
1655   for ac_prog in cl
1656   do
1657     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659 echo "$as_me:$LINENO: checking for $ac_word" >&5
1660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661 if test "${ac_cv_prog_CC+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   if test -n "$CC"; then
1665   ac_cv_prog_CC="$CC" # Let the user override the test.
1666 else
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   for ac_exec_ext in '' $ac_executable_extensions; do
1673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676     break 2
1677   fi
1678 done
1679 done
1680
1681 fi
1682 fi
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685   echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6
1687 else
1688   echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6
1690 fi
1691
1692     test -n "$CC" && break
1693   done
1694 fi
1695 if test -z "$CC"; then
1696   ac_ct_CC=$CC
1697   for ac_prog in cl
1698 do
1699   # Extract the first word of "$ac_prog", so it can be a program name with args.
1700 set dummy $ac_prog; ac_word=$2
1701 echo "$as_me:$LINENO: checking for $ac_word" >&5
1702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704   echo $ECHO_N "(cached) $ECHO_C" >&6
1705 else
1706   if test -n "$ac_ct_CC"; then
1707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708 else
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     ac_cv_prog_ac_ct_CC="$ac_prog"
1717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718     break 2
1719   fi
1720 done
1721 done
1722
1723 fi
1724 fi
1725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726 if test -n "$ac_ct_CC"; then
1727   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728 echo "${ECHO_T}$ac_ct_CC" >&6
1729 else
1730   echo "$as_me:$LINENO: result: no" >&5
1731 echo "${ECHO_T}no" >&6
1732 fi
1733
1734   test -n "$ac_ct_CC" && break
1735 done
1736
1737   CC=$ac_ct_CC
1738 fi
1739
1740 fi
1741
1742
1743 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&5
1745 echo "$as_me: error: no acceptable C compiler found in \$PATH
1746 See \`config.log' for more details." >&2;}
1747    { (exit 1); exit 1; }; }
1748
1749 # Provide some information about the compiler.
1750 echo "$as_me:$LINENO:" \
1751      "checking for C compiler version" >&5
1752 ac_compiler=`set X $ac_compile; echo $2`
1753 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754   (eval $ac_compiler --version </dev/null >&5) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }
1758 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759   (eval $ac_compiler -v </dev/null >&5) 2>&5
1760   ac_status=$?
1761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762   (exit $ac_status); }
1763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764   (eval $ac_compiler -V </dev/null >&5) 2>&5
1765   ac_status=$?
1766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767   (exit $ac_status); }
1768
1769 cat >conftest.$ac_ext <<_ACEOF
1770 /* confdefs.h.  */
1771 _ACEOF
1772 cat confdefs.h >>conftest.$ac_ext
1773 cat >>conftest.$ac_ext <<_ACEOF
1774 /* end confdefs.h.  */
1775
1776 int
1777 main ()
1778 {
1779
1780   ;
1781   return 0;
1782 }
1783 _ACEOF
1784 ac_clean_files_save=$ac_clean_files
1785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786 # Try to create an executable without -o first, disregard a.out.
1787 # It will help us diagnose broken compilers, and finding out an intuition
1788 # of exeext.
1789 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793   (eval $ac_link_default) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }; then
1797   # Find the output, starting from the most likely.  This scheme is
1798 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799 # resort.
1800
1801 # Be careful to initialize this variable, since it used to be cached.
1802 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803 ac_cv_exeext=
1804 # b.out is created by i960 compilers.
1805 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806 do
1807   test -f "$ac_file" || continue
1808   case $ac_file in
1809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810         ;;
1811     conftest.$ac_ext )
1812         # This is the source file.
1813         ;;
1814     [ab].out )
1815         # We found the default executable, but exeext='' is most
1816         # certainly right.
1817         break;;
1818     *.* )
1819         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820         # FIXME: I believe we export ac_cv_exeext for Libtool,
1821         # but it would be cool to find out if it's true.  Does anybody
1822         # maintain Libtool? --akim.
1823         export ac_cv_exeext
1824         break;;
1825     * )
1826         break;;
1827   esac
1828 done
1829 else
1830   echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: C compiler cannot create executables
1836 See \`config.log' for more details." >&2;}
1837    { (exit 77); exit 77; }; }
1838 fi
1839
1840 ac_exeext=$ac_cv_exeext
1841 echo "$as_me:$LINENO: result: $ac_file" >&5
1842 echo "${ECHO_T}$ac_file" >&6
1843
1844 # Check the compiler produces executables we can run.  If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849 # If not cross compiling, check that we can run a simple program.
1850 if test "$cross_compiling" != yes; then
1851   if { ac_try='./$ac_file'
1852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853   (eval $ac_try) 2>&5
1854   ac_status=$?
1855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856   (exit $ac_status); }; }; then
1857     cross_compiling=no
1858   else
1859     if test "$cross_compiling" = maybe; then
1860         cross_compiling=yes
1861     else
1862         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863 If you meant to cross compile, use \`--host'.
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot run C compiled programs.
1866 If you meant to cross compile, use \`--host'.
1867 See \`config.log' for more details." >&2;}
1868    { (exit 1); exit 1; }; }
1869     fi
1870   fi
1871 fi
1872 echo "$as_me:$LINENO: result: yes" >&5
1873 echo "${ECHO_T}yes" >&6
1874
1875 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876 ac_clean_files=$ac_clean_files_save
1877 # Check the compiler produces executables we can run.  If not, either
1878 # the compiler is broken, or we cross compile.
1879 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882 echo "${ECHO_T}$cross_compiling" >&6
1883
1884 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887   (eval $ac_link) 2>&5
1888   ac_status=$?
1889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890   (exit $ac_status); }; then
1891   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1893 # work properly (i.e., refer to `conftest.exe'), while it won't with
1894 # `rm'.
1895 for ac_file in conftest.exe conftest conftest.*; do
1896   test -f "$ac_file" || continue
1897   case $ac_file in
1898     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900           export ac_cv_exeext
1901           break;;
1902     * ) break;;
1903   esac
1904 done
1905 else
1906   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&5
1908 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909 See \`config.log' for more details." >&2;}
1910    { (exit 1); exit 1; }; }
1911 fi
1912
1913 rm -f conftest$ac_cv_exeext
1914 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915 echo "${ECHO_T}$ac_cv_exeext" >&6
1916
1917 rm -f conftest.$ac_ext
1918 EXEEXT=$ac_cv_exeext
1919 ac_exeext=$EXEEXT
1920 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922 if test "${ac_cv_objext+set}" = set; then
1923   echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925   cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h.  */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h.  */
1931
1932 int
1933 main ()
1934 {
1935
1936   ;
1937   return 0;
1938 }
1939 _ACEOF
1940 rm -f conftest.o conftest.obj
1941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942   (eval $ac_compile) 2>&5
1943   ac_status=$?
1944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945   (exit $ac_status); }; then
1946   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947   case $ac_file in
1948     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950        break;;
1951   esac
1952 done
1953 else
1954   echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1956
1957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&5
1959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960 See \`config.log' for more details." >&2;}
1961    { (exit 1); exit 1; }; }
1962 fi
1963
1964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965 fi
1966 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967 echo "${ECHO_T}$ac_cv_objext" >&6
1968 OBJEXT=$ac_cv_objext
1969 ac_objext=$OBJEXT
1970 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h.  */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h.  */
1981
1982 int
1983 main ()
1984 {
1985 #ifndef __GNUC__
1986        choke me
1987 #endif
1988
1989   ;
1990   return 0;
1991 }
1992 _ACEOF
1993 rm -f conftest.$ac_objext
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995   (eval $ac_compile) 2>conftest.er1
1996   ac_status=$?
1997   grep -v '^ *+' conftest.er1 >conftest.err
1998   rm -f conftest.er1
1999   cat conftest.err >&5
2000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001   (exit $ac_status); } &&
2002          { ac_try='test -z "$ac_c_werror_flag"                   || 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"                   || test ! -s conftest.err'
2061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062   (eval $ac_try) 2>&5
2063   ac_status=$?
2064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065   (exit $ac_status); }; } &&
2066          { ac_try='test -s conftest.$ac_objext'
2067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068   (eval $ac_try) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; }; then
2072   ac_cv_prog_cc_g=yes
2073 else
2074   echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2076
2077 ac_cv_prog_cc_g=no
2078 fi
2079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080 fi
2081 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083 if test "$ac_test_CFLAGS" = set; then
2084   CFLAGS=$ac_save_CFLAGS
2085 elif test $ac_cv_prog_cc_g = yes; then
2086   if test "$GCC" = yes; then
2087     CFLAGS="-g -O2"
2088   else
2089     CFLAGS="-g"
2090   fi
2091 else
2092   if test "$GCC" = yes; then
2093     CFLAGS="-O2"
2094   else
2095     CFLAGS=
2096   fi
2097 fi
2098 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   ac_cv_prog_cc_stdc=no
2104 ac_save_CC=$CC
2105 cat >conftest.$ac_ext <<_ACEOF
2106 /* confdefs.h.  */
2107 _ACEOF
2108 cat confdefs.h >>conftest.$ac_ext
2109 cat >>conftest.$ac_ext <<_ACEOF
2110 /* end confdefs.h.  */
2111 #include <stdarg.h>
2112 #include <stdio.h>
2113 #include <sys/types.h>
2114 #include <sys/stat.h>
2115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2116 struct buf { int x; };
2117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118 static char *e (p, i)
2119      char **p;
2120      int i;
2121 {
2122   return p[i];
2123 }
2124 static char *f (char * (*g) (char **, int), char **p, ...)
2125 {
2126   char *s;
2127   va_list v;
2128   va_start (v,p);
2129   s = g (p, va_arg (v,int));
2130   va_end (v);
2131   return s;
2132 }
2133
2134 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2135    function prototypes and stuff, but not '\xHH' hex character constants.
2136    These don't provoke an error unfortunately, instead are silently treated
2137    as 'x'.  The following induces an error, until -std1 is added to get
2138    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2139    array size at least.  It's necessary to write '\x00'==0 to get something
2140    that's true only with -std1.  */
2141 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143 int test (int i, double x);
2144 struct s1 {int (*f) (int a);};
2145 struct s2 {int (*f) (double a);};
2146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147 int argc;
2148 char **argv;
2149 int
2150 main ()
2151 {
2152 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2153   ;
2154   return 0;
2155 }
2156 _ACEOF
2157 # Don't try gcc -ansi; that turns off useful extensions and
2158 # breaks some systems' header files.
2159 # AIX                   -qlanglvl=ansi
2160 # Ultrix and OSF/1      -std1
2161 # HP-UX 10.20 and later -Ae
2162 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2163 # SVR4                  -Xc -D__EXTENSIONS__
2164 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165 do
2166   CC="$ac_save_CC $ac_arg"
2167   rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169   (eval $ac_compile) 2>conftest.er1
2170   ac_status=$?
2171   grep -v '^ *+' conftest.er1 >conftest.err
2172   rm -f conftest.er1
2173   cat conftest.err >&5
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); } &&
2176          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; } &&
2182          { ac_try='test -s conftest.$ac_objext'
2183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184   (eval $ac_try) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; }; then
2188   ac_cv_prog_cc_stdc=$ac_arg
2189 break
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 fi
2195 rm -f conftest.err conftest.$ac_objext
2196 done
2197 rm -f conftest.$ac_ext conftest.$ac_objext
2198 CC=$ac_save_CC
2199
2200 fi
2201
2202 case "x$ac_cv_prog_cc_stdc" in
2203   x|xno)
2204     echo "$as_me:$LINENO: result: none needed" >&5
2205 echo "${ECHO_T}none needed" >&6 ;;
2206   *)
2207     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209     CC="$CC $ac_cv_prog_cc_stdc" ;;
2210 esac
2211
2212 # Some people use a C++ compiler to compile C.  Since we use `exit',
2213 # in C++ we need to declare it.  In case someone uses the same compiler
2214 # for both compiling C and C++ we need to have the C++ compiler decide
2215 # the declaration of exit, since it's the most demanding environment.
2216 cat >conftest.$ac_ext <<_ACEOF
2217 #ifndef __cplusplus
2218   choke me
2219 #endif
2220 _ACEOF
2221 rm -f conftest.$ac_objext
2222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223   (eval $ac_compile) 2>conftest.er1
2224   ac_status=$?
2225   grep -v '^ *+' conftest.er1 >conftest.err
2226   rm -f conftest.er1
2227   cat conftest.err >&5
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; } &&
2236          { ac_try='test -s conftest.$ac_objext'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   for ac_declaration in \
2243    '' \
2244    'extern "C" void std::exit (int) throw (); using std::exit;' \
2245    'extern "C" void std::exit (int); using std::exit;' \
2246    'extern "C" void exit (int) throw ();' \
2247    'extern "C" void exit (int);' \
2248    'void exit (int);'
2249 do
2250   cat >conftest.$ac_ext <<_ACEOF
2251 /* confdefs.h.  */
2252 _ACEOF
2253 cat confdefs.h >>conftest.$ac_ext
2254 cat >>conftest.$ac_ext <<_ACEOF
2255 /* end confdefs.h.  */
2256 $ac_declaration
2257 #include <stdlib.h>
2258 int
2259 main ()
2260 {
2261 exit (42);
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 rm -f conftest.$ac_objext
2267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268   (eval $ac_compile) 2>conftest.er1
2269   ac_status=$?
2270   grep -v '^ *+' conftest.er1 >conftest.err
2271   rm -f conftest.er1
2272   cat conftest.err >&5
2273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274   (exit $ac_status); } &&
2275          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   :
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 continue
2293 fi
2294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295   cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301 $ac_declaration
2302 int
2303 main ()
2304 {
2305 exit (42);
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312   (eval $ac_compile) 2>conftest.er1
2313   ac_status=$?
2314   grep -v '^ *+' conftest.er1 >conftest.err
2315   rm -f conftest.er1
2316   cat conftest.err >&5
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; } &&
2325          { ac_try='test -s conftest.$ac_objext'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331   break
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 fi
2337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338 done
2339 rm -f conftest*
2340 if test -n "$ac_declaration"; then
2341   echo '#ifdef __cplusplus' >>confdefs.h
2342   echo $ac_declaration      >>confdefs.h
2343   echo '#endif'             >>confdefs.h
2344 fi
2345
2346 else
2347   echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 fi
2351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352 ac_ext=c
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361 if test "${ac_cv_search_strerror+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   ac_func_search_save_LIBS=$LIBS
2365 ac_cv_search_strerror=no
2366 cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 /* Override any gcc2 internal prototype to avoid an error.  */
2374 #ifdef __cplusplus
2375 extern "C"
2376 #endif
2377 /* We use char because int might match the return type of a gcc2
2378    builtin and then its argument prototype would still apply.  */
2379 char strerror ();
2380 int
2381 main ()
2382 {
2383 strerror ();
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext conftest$ac_exeext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390   (eval $ac_link) 2>conftest.er1
2391   ac_status=$?
2392   grep -v '^ *+' conftest.er1 >conftest.err
2393   rm -f conftest.er1
2394   cat conftest.err >&5
2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396   (exit $ac_status); } &&
2397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399   (eval $ac_try) 2>&5
2400   ac_status=$?
2401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402   (exit $ac_status); }; } &&
2403          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2409   ac_cv_search_strerror="none required"
2410 else
2411   echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 fi
2415 rm -f conftest.err conftest.$ac_objext \
2416       conftest$ac_exeext conftest.$ac_ext
2417 if test "$ac_cv_search_strerror" = no; then
2418   for ac_lib in cposix; do
2419     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2420     cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h.  */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h.  */
2426
2427 /* Override any gcc2 internal prototype to avoid an error.  */
2428 #ifdef __cplusplus
2429 extern "C"
2430 #endif
2431 /* We use char because int might match the return type of a gcc2
2432    builtin and then its argument prototype would still apply.  */
2433 char strerror ();
2434 int
2435 main ()
2436 {
2437 strerror ();
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 rm -f conftest.$ac_objext conftest$ac_exeext
2443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2444   (eval $ac_link) 2>conftest.er1
2445   ac_status=$?
2446   grep -v '^ *+' conftest.er1 >conftest.err
2447   rm -f conftest.er1
2448   cat conftest.err >&5
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); } &&
2451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453   (eval $ac_try) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; } &&
2457          { ac_try='test -s conftest$ac_exeext'
2458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459   (eval $ac_try) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }; }; then
2463   ac_cv_search_strerror="-l$ac_lib"
2464 break
2465 else
2466   echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2468
2469 fi
2470 rm -f conftest.err conftest.$ac_objext \
2471       conftest$ac_exeext conftest.$ac_ext
2472   done
2473 fi
2474 LIBS=$ac_func_search_save_LIBS
2475 fi
2476 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2477 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2478 if test "$ac_cv_search_strerror" != no; then
2479   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2480
2481 fi
2482
2483
2484 am__api_version="1.9"
2485 # Find a good install program.  We prefer a C program (faster),
2486 # so one script is as good as another.  But avoid the broken or
2487 # incompatible versions:
2488 # SysV /etc/install, /usr/sbin/install
2489 # SunOS /usr/etc/install
2490 # IRIX /sbin/install
2491 # AIX /bin/install
2492 # AmigaOS /C/install, which installs bootblocks on floppy discs
2493 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2496 # OS/2's system install, which has a completely different semantic
2497 # ./install, which can be erroneously created by make from ./install.sh.
2498 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2499 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then
2502   echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509   # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in
2511   ./ | .// | /cC/* | \
2512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2514   /usr/ucb/* ) ;;
2515   *)
2516     # OSF1 and SCO ODT 3.0 have their own names for install.
2517     # Don't use installbsd from OSF since it installs stuff as root
2518     # by default.
2519     for ac_prog in ginstall scoinst install; do
2520       for ac_exec_ext in '' $ac_executable_extensions; do
2521         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2522           if test $ac_prog = install &&
2523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524             # AIX install.  It has an incompatible calling convention.
2525             :
2526           elif test $ac_prog = install &&
2527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528             # program-specific install script used by HP pwplus--don't use.
2529             :
2530           else
2531             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532             break 3
2533           fi
2534         fi
2535       done
2536     done
2537     ;;
2538 esac
2539 done
2540
2541
2542 fi
2543   if test "${ac_cv_path_install+set}" = set; then
2544     INSTALL=$ac_cv_path_install
2545   else
2546     # As a last resort, use the slow shell script.  We don't cache a
2547     # path for INSTALL within a source directory, because that will
2548     # break other packages using the cache if that directory is
2549     # removed, or if the path is relative.
2550     INSTALL=$ac_install_sh
2551   fi
2552 fi
2553 echo "$as_me:$LINENO: result: $INSTALL" >&5
2554 echo "${ECHO_T}$INSTALL" >&6
2555
2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557 # It thinks the first close brace ends the variable substitution.
2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559
2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561
2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563
2564 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2565 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2566 # Just in case
2567 sleep 1
2568 echo timestamp > conftest.file
2569 # Do `set' in a subshell so we don't clobber the current shell's
2570 # arguments.  Must try -L first in case configure is actually a
2571 # symlink; some systems play weird games with the mod time of symlinks
2572 # (eg FreeBSD returns the mod time of the symlink's containing
2573 # directory).
2574 if (
2575    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2576    if test "$*" = "X"; then
2577       # -L didn't work.
2578       set X `ls -t $srcdir/configure conftest.file`
2579    fi
2580    rm -f conftest.file
2581    if test "$*" != "X $srcdir/configure conftest.file" \
2582       && test "$*" != "X conftest.file $srcdir/configure"; then
2583
2584       # If neither matched, then we have a broken ls.  This can happen
2585       # if, for instance, CONFIG_SHELL is bash and it inherits a
2586       # broken ls alias from the environment.  This has actually
2587       # happened.  Such a system could not be considered "sane".
2588       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2589 alias in your environment" >&5
2590 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2591 alias in your environment" >&2;}
2592    { (exit 1); exit 1; }; }
2593    fi
2594
2595    test "$2" = conftest.file
2596    )
2597 then
2598    # Ok.
2599    :
2600 else
2601    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2602 Check your system clock" >&5
2603 echo "$as_me: error: newly created file is older than distributed files!
2604 Check your system clock" >&2;}
2605    { (exit 1); exit 1; }; }
2606 fi
2607 echo "$as_me:$LINENO: result: yes" >&5
2608 echo "${ECHO_T}yes" >&6
2609 test "$program_prefix" != NONE &&
2610   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2611 # Use a double $ so make ignores it.
2612 test "$program_suffix" != NONE &&
2613   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2614 # Double any \ or $.  echo might interpret backslashes.
2615 # By default was `s,x,x', remove it if useless.
2616 cat <<\_ACEOF >conftest.sed
2617 s/[\\$]/&&/g;s/;s,x,x,$//
2618 _ACEOF
2619 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2620 rm conftest.sed
2621
2622 # expand $ac_aux_dir to an absolute path
2623 am_aux_dir=`cd $ac_aux_dir && pwd`
2624
2625 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2626 # Use eval to expand $SHELL
2627 if eval "$MISSING --run true"; then
2628   am_missing_run="$MISSING --run "
2629 else
2630   am_missing_run=
2631   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2632 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2633 fi
2634
2635 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2636   # We used to keeping the `.' as first argument, in order to
2637   # allow $(mkdir_p) to be used without argument.  As in
2638   #   $(mkdir_p) $(somedir)
2639   # where $(somedir) is conditionally defined.  However this is wrong
2640   # for two reasons:
2641   #  1. if the package is installed by a user who cannot write `.'
2642   #     make install will fail,
2643   #  2. the above comment should most certainly read
2644   #     $(mkdir_p) $(DESTDIR)$(somedir)
2645   #     so it does not work when $(somedir) is undefined and
2646   #     $(DESTDIR) is not.
2647   #  To support the latter case, we have to write
2648   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2649   #  so the `.' trick is pointless.
2650   mkdir_p='mkdir -p --'
2651 else
2652   # On NextStep and OpenStep, the `mkdir' command does not
2653   # recognize any option.  It will interpret all options as
2654   # directories to create, and then abort because `.' already
2655   # exists.
2656   for d in ./-p ./--version;
2657   do
2658     test -d $d && rmdir $d
2659   done
2660   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2661   if test -f "$ac_aux_dir/mkinstalldirs"; then
2662     mkdir_p='$(mkinstalldirs)'
2663   else
2664     mkdir_p='$(install_sh) -d'
2665   fi
2666 fi
2667
2668 for ac_prog in gawk mawk nawk awk
2669 do
2670   # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 echo "$as_me:$LINENO: checking for $ac_word" >&5
2673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674 if test "${ac_cv_prog_AWK+set}" = set; then
2675   echo $ECHO_N "(cached) $ECHO_C" >&6
2676 else
2677   if test -n "$AWK"; then
2678   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2682 do
2683   IFS=$as_save_IFS
2684   test -z "$as_dir" && as_dir=.
2685   for ac_exec_ext in '' $ac_executable_extensions; do
2686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687     ac_cv_prog_AWK="$ac_prog"
2688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689     break 2
2690   fi
2691 done
2692 done
2693
2694 fi
2695 fi
2696 AWK=$ac_cv_prog_AWK
2697 if test -n "$AWK"; then
2698   echo "$as_me:$LINENO: result: $AWK" >&5
2699 echo "${ECHO_T}$AWK" >&6
2700 else
2701   echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6
2703 fi
2704
2705   test -n "$AWK" && break
2706 done
2707
2708 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2710 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2711 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2712   echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714   cat >conftest.make <<\_ACEOF
2715 all:
2716         @echo 'ac_maketemp="$(MAKE)"'
2717 _ACEOF
2718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2719 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2720 if test -n "$ac_maketemp"; then
2721   eval ac_cv_prog_make_${ac_make}_set=yes
2722 else
2723   eval ac_cv_prog_make_${ac_make}_set=no
2724 fi
2725 rm -f conftest.make
2726 fi
2727 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2728   echo "$as_me:$LINENO: result: yes" >&5
2729 echo "${ECHO_T}yes" >&6
2730   SET_MAKE=
2731 else
2732   echo "$as_me:$LINENO: result: no" >&5
2733 echo "${ECHO_T}no" >&6
2734   SET_MAKE="MAKE=${MAKE-make}"
2735 fi
2736
2737 rm -rf .tst 2>/dev/null
2738 mkdir .tst 2>/dev/null
2739 if test -d .tst; then
2740   am__leading_dot=.
2741 else
2742   am__leading_dot=_
2743 fi
2744 rmdir .tst 2>/dev/null
2745
2746 DEPDIR="${am__leading_dot}deps"
2747
2748           ac_config_commands="$ac_config_commands depfiles"
2749
2750
2751 am_make=${MAKE-make}
2752 cat > confinc << 'END'
2753 am__doit:
2754         @echo done
2755 .PHONY: am__doit
2756 END
2757 # If we don't find an include directive, just comment out the code.
2758 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2759 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2760 am__include="#"
2761 am__quote=
2762 _am_result=none
2763 # First try GNU make style include.
2764 echo "include confinc" > confmf
2765 # We grep out `Entering directory' and `Leaving directory'
2766 # messages which can occur if `w' ends up in MAKEFLAGS.
2767 # In particular we don't look at `^make:' because GNU make might
2768 # be invoked under some other name (usually "gmake"), in which
2769 # case it prints its new name instead of `make'.
2770 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2771    am__include=include
2772    am__quote=
2773    _am_result=GNU
2774 fi
2775 # Now try BSD make style include.
2776 if test "$am__include" = "#"; then
2777    echo '.include "confinc"' > confmf
2778    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2779       am__include=.include
2780       am__quote="\""
2781       _am_result=BSD
2782    fi
2783 fi
2784
2785
2786 echo "$as_me:$LINENO: result: $_am_result" >&5
2787 echo "${ECHO_T}$_am_result" >&6
2788 rm -f confinc confmf
2789
2790 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2791 if test "${enable_dependency_tracking+set}" = set; then
2792   enableval="$enable_dependency_tracking"
2793
2794 fi;
2795 if test "x$enable_dependency_tracking" != xno; then
2796   am_depcomp="$ac_aux_dir/depcomp"
2797   AMDEPBACKSLASH='\'
2798 fi
2799
2800
2801 if test "x$enable_dependency_tracking" != xno; then
2802   AMDEP_TRUE=
2803   AMDEP_FALSE='#'
2804 else
2805   AMDEP_TRUE='#'
2806   AMDEP_FALSE=
2807 fi
2808
2809
2810
2811 # test to see if srcdir already configured
2812 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2813    test -f $srcdir/config.status; then
2814   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2815 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2816    { (exit 1); exit 1; }; }
2817 fi
2818
2819 # test whether we have cygpath
2820 if test -z "$CYGPATH_W"; then
2821   if (cygpath --version) >/dev/null 2>/dev/null; then
2822     CYGPATH_W='cygpath -w'
2823   else
2824     CYGPATH_W=echo
2825   fi
2826 fi
2827
2828
2829 # Define the identity of the package.
2830  PACKAGE=bfd
2831  VERSION=2.16.91
2832
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE "$PACKAGE"
2836 _ACEOF
2837
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define VERSION "$VERSION"
2841 _ACEOF
2842
2843 # Some tools Automake needs.
2844
2845 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846
2847
2848 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849
2850
2851 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852
2853
2854 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855
2856
2857 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858
2859 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2860
2861 # Installed binaries are usually stripped using `strip' when the user
2862 # run `make install-strip'.  However `strip' might not be the right
2863 # tool to use in cross-compilation environments, therefore Automake
2864 # will honor the `STRIP' environment variable to overrule this program.
2865 if test "$cross_compiling" != no; then
2866   if test -n "$ac_tool_prefix"; then
2867   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}strip; ac_word=$2
2869 echo "$as_me:$LINENO: checking for $ac_word" >&5
2870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871 if test "${ac_cv_prog_STRIP+set}" = set; then
2872   echo $ECHO_N "(cached) $ECHO_C" >&6
2873 else
2874   if test -n "$STRIP"; then
2875   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880   IFS=$as_save_IFS
2881   test -z "$as_dir" && as_dir=.
2882   for ac_exec_ext in '' $ac_executable_extensions; do
2883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886     break 2
2887   fi
2888 done
2889 done
2890
2891 fi
2892 fi
2893 STRIP=$ac_cv_prog_STRIP
2894 if test -n "$STRIP"; then
2895   echo "$as_me:$LINENO: result: $STRIP" >&5
2896 echo "${ECHO_T}$STRIP" >&6
2897 else
2898   echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900 fi
2901
2902 fi
2903 if test -z "$ac_cv_prog_STRIP"; then
2904   ac_ct_STRIP=$STRIP
2905   # Extract the first word of "strip", so it can be a program name with args.
2906 set dummy strip; ac_word=$2
2907 echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2910   echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912   if test -n "$ac_ct_STRIP"; then
2913   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920   for ac_exec_ext in '' $ac_executable_extensions; do
2921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922     ac_cv_prog_ac_ct_STRIP="strip"
2923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927 done
2928
2929   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2930 fi
2931 fi
2932 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2933 if test -n "$ac_ct_STRIP"; then
2934   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2935 echo "${ECHO_T}$ac_ct_STRIP" >&6
2936 else
2937   echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6
2939 fi
2940
2941   STRIP=$ac_ct_STRIP
2942 else
2943   STRIP="$ac_cv_prog_STRIP"
2944 fi
2945
2946 fi
2947 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2948
2949 # We need awk for the "check" target.  The system "awk" is bad on
2950 # some platforms.
2951 # Always define AMTAR for backward compatibility.
2952
2953 AMTAR=${AMTAR-"${am_missing_run}tar"}
2954
2955 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2956
2957
2958
2959
2960 depcc="$CC"   am_compiler_list=
2961
2962 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2963 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2964 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2968   # We make a subdir and do the tests there.  Otherwise we can end up
2969   # making bogus files that we don't know about and never remove.  For
2970   # instance it was reported that on HP-UX the gcc test will end up
2971   # making a dummy file named `D' -- because `-MD' means `put the output
2972   # in D'.
2973   mkdir conftest.dir
2974   # Copy depcomp to subdir because otherwise we won't find it if we're
2975   # using a relative directory.
2976   cp "$am_depcomp" conftest.dir
2977   cd conftest.dir
2978   # We will build objects and dependencies in a subdirectory because
2979   # it helps to detect inapplicable dependency modes.  For instance
2980   # both Tru64's cc and ICC support -MD to output dependencies as a
2981   # side effect of compilation, but ICC will put the dependencies in
2982   # the current directory while Tru64 will put them in the object
2983   # directory.
2984   mkdir sub
2985
2986   am_cv_CC_dependencies_compiler_type=none
2987   if test "$am_compiler_list" = ""; then
2988      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2989   fi
2990   for depmode in $am_compiler_list; do
2991     # Setup a source with many dependencies, because some compilers
2992     # like to wrap large dependency lists on column 80 (with \), and
2993     # we should not choose a depcomp mode which is confused by this.
2994     #
2995     # We need to recreate these files for each test, as the compiler may
2996     # overwrite some of them when testing with obscure command lines.
2997     # This happens at least with the AIX C compiler.
2998     : > sub/conftest.c
2999     for i in 1 2 3 4 5 6; do
3000       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3001       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3002       # Solaris 8's {/usr,}/bin/sh.
3003       touch sub/conftst$i.h
3004     done
3005     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3006
3007     case $depmode in
3008     nosideeffect)
3009       # after this tag, mechanisms are not by side-effect, so they'll
3010       # only be used when explicitly requested
3011       if test "x$enable_dependency_tracking" = xyes; then
3012         continue
3013       else
3014         break
3015       fi
3016       ;;
3017     none) break ;;
3018     esac
3019     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3020     # mode.  It turns out that the SunPro C++ compiler does not properly
3021     # handle `-M -o', and we need to detect this.
3022     if depmode=$depmode \
3023        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3024        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3025        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3026          >/dev/null 2>conftest.err &&
3027        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3028        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3029        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3030       # icc doesn't choke on unknown options, it will just issue warnings
3031       # or remarks (even with -Werror).  So we grep stderr for any message
3032       # that says an option was ignored or not supported.
3033       # When given -MP, icc 7.0 and 7.1 complain thusly:
3034       #   icc: Command line warning: ignoring option '-M'; no argument required
3035       # The diagnosis changed in icc 8.0:
3036       #   icc: Command line remark: option '-MP' not supported
3037       if (grep 'ignoring option' conftest.err ||
3038           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3039         am_cv_CC_dependencies_compiler_type=$depmode
3040         break
3041       fi
3042     fi
3043   done
3044
3045   cd ..
3046   rm -rf conftest.dir
3047 else
3048   am_cv_CC_dependencies_compiler_type=none
3049 fi
3050
3051 fi
3052 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3053 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3055
3056
3057
3058 if
3059   test "x$enable_dependency_tracking" != xno \
3060   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3061   am__fastdepCC_TRUE=
3062   am__fastdepCC_FALSE='#'
3063 else
3064   am__fastdepCC_TRUE='#'
3065   am__fastdepCC_FALSE=
3066 fi
3067
3068
3069
3070
3071 if test -n "$ac_tool_prefix"; then
3072   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}ar; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_prog_AR+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   if test -n "$AR"; then
3080   ac_cv_prog_AR="$AR" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087   for ac_exec_ext in '' $ac_executable_extensions; do
3088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089     ac_cv_prog_AR="${ac_tool_prefix}ar"
3090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094 done
3095
3096 fi
3097 fi
3098 AR=$ac_cv_prog_AR
3099 if test -n "$AR"; then
3100   echo "$as_me:$LINENO: result: $AR" >&5
3101 echo "${ECHO_T}$AR" >&6
3102 else
3103   echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3105 fi
3106
3107 fi
3108 if test -z "$ac_cv_prog_AR"; then
3109   ac_ct_AR=$AR
3110   # Extract the first word of "ar", so it can be a program name with args.
3111 set dummy ar; ac_word=$2
3112 echo "$as_me:$LINENO: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3115   echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117   if test -n "$ac_ct_AR"; then
3118   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123   IFS=$as_save_IFS
3124   test -z "$as_dir" && as_dir=.
3125   for ac_exec_ext in '' $ac_executable_extensions; do
3126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127     ac_cv_prog_ac_ct_AR="ar"
3128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129     break 2
3130   fi
3131 done
3132 done
3133
3134 fi
3135 fi
3136 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3137 if test -n "$ac_ct_AR"; then
3138   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3139 echo "${ECHO_T}$ac_ct_AR" >&6
3140 else
3141   echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3143 fi
3144
3145   AR=$ac_ct_AR
3146 else
3147   AR="$ac_cv_prog_AR"
3148 fi
3149
3150 if test -n "$ac_tool_prefix"; then
3151   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3153 echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155 if test "${ac_cv_prog_RANLIB+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   if test -n "$RANLIB"; then
3159   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166   for ac_exec_ext in '' $ac_executable_extensions; do
3167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173 done
3174
3175 fi
3176 fi
3177 RANLIB=$ac_cv_prog_RANLIB
3178 if test -n "$RANLIB"; then
3179   echo "$as_me:$LINENO: result: $RANLIB" >&5
3180 echo "${ECHO_T}$RANLIB" >&6
3181 else
3182   echo "$as_me:$LINENO: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3184 fi
3185
3186 fi
3187 if test -z "$ac_cv_prog_RANLIB"; then
3188   ac_ct_RANLIB=$RANLIB
3189   # Extract the first word of "ranlib", so it can be a program name with args.
3190 set dummy ranlib; ac_word=$2
3191 echo "$as_me:$LINENO: checking for $ac_word" >&5
3192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   if test -n "$ac_ct_RANLIB"; then
3197   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204   for ac_exec_ext in '' $ac_executable_extensions; do
3205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206     ac_cv_prog_ac_ct_RANLIB="ranlib"
3207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211 done
3212
3213   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 fi
3215 fi
3216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3217 if test -n "$ac_ct_RANLIB"; then
3218   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3219 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3220 else
3221   echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224
3225   RANLIB=$ac_ct_RANLIB
3226 else
3227   RANLIB="$ac_cv_prog_RANLIB"
3228 fi
3229
3230
3231 # Check whether --enable-shared or --disable-shared was given.
3232 if test "${enable_shared+set}" = set; then
3233   enableval="$enable_shared"
3234   p=${PACKAGE-default}
3235 case $enableval in
3236 yes) enable_shared=yes ;;
3237 no) enable_shared=no ;;
3238 *)
3239   enable_shared=no
3240   # Look at the argument we got.  We use all the common list separators.
3241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3242   for pkg in $enableval; do
3243     if test "X$pkg" = "X$p"; then
3244       enable_shared=yes
3245     fi
3246   done
3247   IFS="$ac_save_ifs"
3248   ;;
3249 esac
3250 else
3251   enable_shared=no
3252 fi;
3253
3254 # Check whether --enable-static or --disable-static was given.
3255 if test "${enable_static+set}" = set; then
3256   enableval="$enable_static"
3257   p=${PACKAGE-default}
3258 case $enableval in
3259 yes) enable_static=yes ;;
3260 no) enable_static=no ;;
3261 *)
3262   enable_static=no
3263   # Look at the argument we got.  We use all the common list separators.
3264   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3265   for pkg in $enableval; do
3266     if test "X$pkg" = "X$p"; then
3267       enable_static=yes
3268     fi
3269   done
3270   IFS="$ac_save_ifs"
3271   ;;
3272 esac
3273 else
3274   enable_static=yes
3275 fi;
3276 # Check whether --enable-fast-install or --disable-fast-install was given.
3277 if test "${enable_fast_install+set}" = set; then
3278   enableval="$enable_fast_install"
3279   p=${PACKAGE-default}
3280 case $enableval in
3281 yes) enable_fast_install=yes ;;
3282 no) enable_fast_install=no ;;
3283 *)
3284   enable_fast_install=no
3285   # Look at the argument we got.  We use all the common list separators.
3286   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3287   for pkg in $enableval; do
3288     if test "X$pkg" = "X$p"; then
3289       enable_fast_install=yes
3290     fi
3291   done
3292   IFS="$ac_save_ifs"
3293   ;;
3294 esac
3295 else
3296   enable_fast_install=yes
3297 fi;
3298
3299 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3300 if test "${with_gnu_ld+set}" = set; then
3301   withval="$with_gnu_ld"
3302   test "$withval" = no || with_gnu_ld=yes
3303 else
3304   with_gnu_ld=no
3305 fi;
3306 ac_prog=ld
3307 if test "$GCC" = yes; then
3308   # Check if gcc -print-prog-name=ld gives a path.
3309   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3310 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3311   case $host in
3312   *-*-mingw*)
3313     # gcc leaves a trailing carriage return which upsets mingw
3314     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3315   *)
3316     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3317   esac
3318   case $ac_prog in
3319     # Accept absolute paths.
3320     [\\/]* | [A-Za-z]:[\\/]*)
3321       re_direlt='/[^/][^/]*/\.\./'
3322       # Canonicalize the path of ld
3323       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3324       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3325         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3326       done
3327       test -z "$LD" && LD="$ac_prog"
3328       ;;
3329   "")
3330     # If it fails, then pretend we aren't using GCC.
3331     ac_prog=ld
3332     ;;
3333   *)
3334     # If it is relative, then search for the first ld in PATH.
3335     with_gnu_ld=unknown
3336     ;;
3337   esac
3338 elif test "$with_gnu_ld" = yes; then
3339   echo "$as_me:$LINENO: checking for GNU ld" >&5
3340 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3341 else
3342   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3343 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3344 fi
3345 if test "${lt_cv_path_LD+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   if test -z "$LD"; then
3349   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3350   for ac_dir in $PATH; do
3351     test -z "$ac_dir" && ac_dir=.
3352     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3353       lt_cv_path_LD="$ac_dir/$ac_prog"
3354       # Check to see if the program is GNU ld.  I'd rather use --version,
3355       # but apparently some GNU ld's only accept -v.
3356       # Break only if it was the GNU/non-GNU ld that we prefer.
3357       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3358         test "$with_gnu_ld" != no && break
3359       else
3360         test "$with_gnu_ld" != yes && break
3361       fi
3362     fi
3363   done
3364   IFS="$ac_save_ifs"
3365 else
3366   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3367 fi
3368 fi
3369
3370 LD="$lt_cv_path_LD"
3371 if test -n "$LD"; then
3372   echo "$as_me:$LINENO: result: $LD" >&5
3373 echo "${ECHO_T}$LD" >&6
3374 else
3375   echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3377 fi
3378 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3379 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3380    { (exit 1); exit 1; }; }
3381 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3382 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3383 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3387 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3388   lt_cv_prog_gnu_ld=yes
3389 else
3390   lt_cv_prog_gnu_ld=no
3391 fi
3392 fi
3393 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3394 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3395 with_gnu_ld=$lt_cv_prog_gnu_ld
3396
3397
3398 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3399 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3400 if test "${lt_cv_ld_reload_flag+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   lt_cv_ld_reload_flag='-r'
3404 fi
3405 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3406 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3407 reload_flag=$lt_cv_ld_reload_flag
3408 test -n "$reload_flag" && reload_flag=" $reload_flag"
3409
3410 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3411 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3412 if test "${lt_cv_path_NM+set}" = set; then
3413   echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415   if test -n "$NM"; then
3416   # Let the user override the test.
3417   lt_cv_path_NM="$NM"
3418 else
3419   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3420   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3421     test -z "$ac_dir" && ac_dir=.
3422     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3423     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3424       # Check to see if the nm accepts a BSD-compat flag.
3425       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426       #   nm: unknown option "B" ignored
3427       # Tru64's nm complains that /dev/null is an invalid object file
3428       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3429         lt_cv_path_NM="$tmp_nm -B"
3430         break
3431       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3432         lt_cv_path_NM="$tmp_nm -p"
3433         break
3434       else
3435         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3436         continue # so that we can try to find one that supports BSD flags
3437       fi
3438     fi
3439   done
3440   IFS="$ac_save_ifs"
3441   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3442 fi
3443 fi
3444
3445 NM="$lt_cv_path_NM"
3446 echo "$as_me:$LINENO: result: $NM" >&5
3447 echo "${ECHO_T}$NM" >&6
3448
3449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3451 LN_S=$as_ln_s
3452 if test "$LN_S" = "ln -s"; then
3453   echo "$as_me:$LINENO: result: yes" >&5
3454 echo "${ECHO_T}yes" >&6
3455 else
3456   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3457 echo "${ECHO_T}no, using $LN_S" >&6
3458 fi
3459
3460 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3461 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3462 if test "${lt_cv_deplibs_check_method+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   lt_cv_file_magic_cmd='$MAGIC_CMD'
3466 lt_cv_file_magic_test_file=
3467 lt_cv_deplibs_check_method='unknown'
3468 # Need to set the preceding variable on all platforms that support
3469 # interlibrary dependencies.
3470 # 'none' -- dependencies not supported.
3471 # `unknown' -- same as none, but documents that we really don't know.
3472 # 'pass_all' -- all dependencies passed with no checks.
3473 # 'test_compile' -- check by making test program.
3474 # 'file_magic [regex]' -- check by looking for files in library path
3475 # which responds to the $file_magic_cmd with a given egrep regex.
3476 # If you have `file' or equivalent on your system and you're not sure
3477 # whether `pass_all' will *always* work, you probably want this one.
3478
3479 case $host_os in
3480 aix*)
3481   lt_cv_deplibs_check_method=pass_all
3482   ;;
3483
3484 beos*)
3485   lt_cv_deplibs_check_method=pass_all
3486   ;;
3487
3488 bsdi4*)
3489   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3490   lt_cv_file_magic_cmd='/usr/bin/file -L'
3491   lt_cv_file_magic_test_file=/shlib/libc.so
3492   ;;
3493
3494 cygwin* | mingw* |pw32*)
3495   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3496   lt_cv_file_magic_cmd='$OBJDUMP -f'
3497   ;;
3498
3499 darwin* | rhapsody*)
3500   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3501   lt_cv_file_magic_cmd='/usr/bin/file -L'
3502   case "$host_os" in
3503   rhapsody* | darwin1.012)
3504     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3505     ;;
3506   *) # Darwin 1.3 on
3507     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3508     ;;
3509   esac
3510   ;;
3511
3512 freebsd* | kfreebsd*-gnu)
3513   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3514     case $host_cpu in
3515     i*86 )
3516       # Not sure whether the presence of OpenBSD here was a mistake.
3517       # Let's accept both of them until this is cleared up.
3518       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3519       lt_cv_file_magic_cmd=/usr/bin/file
3520       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3521       ;;
3522     esac
3523   else
3524     lt_cv_deplibs_check_method=pass_all
3525   fi
3526   ;;
3527
3528 gnu*)
3529   lt_cv_deplibs_check_method=pass_all
3530   ;;
3531
3532 hpux10.20*|hpux11*)
3533   case $host_cpu in
3534   hppa*)
3535     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3536     lt_cv_file_magic_cmd=/usr/bin/file
3537     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3538     ;;
3539   ia64*)
3540     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3541     lt_cv_file_magic_cmd=/usr/bin/file
3542     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3543     ;;
3544   esac
3545   ;;
3546
3547 irix5* | irix6*)
3548   case $host_os in
3549   irix5*)
3550     # this will be overridden with pass_all, but let us keep it just in case
3551     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3552     ;;
3553   *)
3554     case $LD in
3555     *-32|*"-32 ") libmagic=32-bit;;
3556     *-n32|*"-n32 ") libmagic=N32;;
3557     *-64|*"-64 ") libmagic=64-bit;;
3558     *) libmagic=never-match;;
3559     esac
3560     # this will be overridden with pass_all, but let us keep it just in case
3561     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3562     ;;
3563   esac
3564   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3565   lt_cv_deplibs_check_method=pass_all
3566   ;;
3567
3568 # This must be Linux ELF.
3569 linux-gnu*)
3570   case $host_cpu in
3571   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3572     lt_cv_deplibs_check_method=pass_all ;;
3573   *)
3574     # glibc up to 2.1.1 does not perform some relocations on ARM
3575     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3576   esac
3577   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3578   ;;
3579
3580 netbsd* | knetbsd*-gnu)
3581   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3582     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3583   else
3584     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3585   fi
3586   ;;
3587
3588 newsos6)
3589   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3590   lt_cv_file_magic_cmd=/usr/bin/file
3591   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3592   ;;
3593
3594 osf3* | osf4* | osf5*)
3595   # this will be overridden with pass_all, but let us keep it just in case
3596   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3597   lt_cv_file_magic_test_file=/shlib/libc.so
3598   lt_cv_deplibs_check_method=pass_all
3599   ;;
3600
3601 sco3.2v5*)
3602   lt_cv_deplibs_check_method=pass_all
3603   ;;
3604
3605 solaris*)
3606   lt_cv_deplibs_check_method=pass_all
3607   lt_cv_file_magic_test_file=/lib/libc.so
3608   ;;
3609
3610 sysv5uw[78]* | sysv4*uw2*)
3611   lt_cv_deplibs_check_method=pass_all
3612   ;;
3613
3614 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3615   case $host_vendor in
3616   ncr)
3617     lt_cv_deplibs_check_method=pass_all
3618     ;;
3619   motorola)
3620     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]'
3621     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3622     ;;
3623   esac
3624   ;;
3625 esac
3626
3627 fi
3628 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3629 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3630 file_magic_cmd=$lt_cv_file_magic_cmd
3631 deplibs_check_method=$lt_cv_deplibs_check_method
3632
3633
3634
3635
3636 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3637
3638 # Only perform the check for file, if the check method requires it
3639 case $deplibs_check_method in
3640 file_magic*)
3641   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3642     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3643 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3644 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3645   echo $ECHO_N "(cached) $ECHO_C" >&6
3646 else
3647   case $MAGIC_CMD in
3648   /*)
3649   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3650   ;;
3651   ?:/*)
3652   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3653   ;;
3654   *)
3655   ac_save_MAGIC_CMD="$MAGIC_CMD"
3656   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3657   ac_dummy="/usr/bin:$PATH"
3658   for ac_dir in $ac_dummy; do
3659     test -z "$ac_dir" && ac_dir=.
3660     if test -f $ac_dir/${ac_tool_prefix}file; then
3661       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3662       if test -n "$file_magic_test_file"; then
3663         case $deplibs_check_method in
3664         "file_magic "*)
3665           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3666           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3667           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3668             egrep "$file_magic_regex" > /dev/null; then
3669             :
3670           else
3671             cat <<EOF 1>&2
3672
3673 *** Warning: the command libtool uses to detect shared libraries,
3674 *** $file_magic_cmd, produces output that libtool cannot recognize.
3675 *** The result is that libtool may fail to recognize shared libraries
3676 *** as such.  This will affect the creation of libtool libraries that
3677 *** depend on shared libraries, but programs linked with such libtool
3678 *** libraries will work regardless of this problem.  Nevertheless, you
3679 *** may want to report the problem to your system manager and/or to
3680 *** bug-libtool@gnu.org
3681
3682 EOF
3683           fi ;;
3684         esac
3685       fi
3686       break
3687     fi
3688   done
3689   IFS="$ac_save_ifs"
3690   MAGIC_CMD="$ac_save_MAGIC_CMD"
3691   ;;
3692 esac
3693 fi
3694
3695 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3696 if test -n "$MAGIC_CMD"; then
3697   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3698 echo "${ECHO_T}$MAGIC_CMD" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704 if test -z "$lt_cv_path_MAGIC_CMD"; then
3705   if test -n "$ac_tool_prefix"; then
3706     echo "$as_me:$LINENO: checking for file" >&5
3707 echo $ECHO_N "checking for file... $ECHO_C" >&6
3708 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   case $MAGIC_CMD in
3712   /*)
3713   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3714   ;;
3715   ?:/*)
3716   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3717   ;;
3718   *)
3719   ac_save_MAGIC_CMD="$MAGIC_CMD"
3720   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3721   ac_dummy="/usr/bin:$PATH"
3722   for ac_dir in $ac_dummy; do
3723     test -z "$ac_dir" && ac_dir=.
3724     if test -f $ac_dir/file; then
3725       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3726       if test -n "$file_magic_test_file"; then
3727         case $deplibs_check_method in
3728         "file_magic "*)
3729           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3730           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3731           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732             egrep "$file_magic_regex" > /dev/null; then
3733             :
3734           else
3735             cat <<EOF 1>&2
3736
3737 *** Warning: the command libtool uses to detect shared libraries,
3738 *** $file_magic_cmd, produces output that libtool cannot recognize.
3739 *** The result is that libtool may fail to recognize shared libraries
3740 *** as such.  This will affect the creation of libtool libraries that
3741 *** depend on shared libraries, but programs linked with such libtool
3742 *** libraries will work regardless of this problem.  Nevertheless, you
3743 *** may want to report the problem to your system manager and/or to
3744 *** bug-libtool@gnu.org
3745
3746 EOF
3747           fi ;;
3748         esac
3749       fi
3750       break
3751     fi
3752   done
3753   IFS="$ac_save_ifs"
3754   MAGIC_CMD="$ac_save_MAGIC_CMD"
3755   ;;
3756 esac
3757 fi
3758
3759 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760 if test -n "$MAGIC_CMD"; then
3761   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762 echo "${ECHO_T}$MAGIC_CMD" >&6
3763 else
3764   echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 fi
3767
3768   else
3769     MAGIC_CMD=:
3770   fi
3771 fi
3772
3773   fi
3774   ;;
3775 esac
3776
3777 if test -n "$ac_tool_prefix"; then
3778   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_prog_RANLIB+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -n "$RANLIB"; then
3786   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802 fi
3803 fi
3804 RANLIB=$ac_cv_prog_RANLIB
3805 if test -n "$RANLIB"; then
3806   echo "$as_me:$LINENO: result: $RANLIB" >&5
3807 echo "${ECHO_T}$RANLIB" >&6
3808 else
3809   echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6
3811 fi
3812
3813 fi
3814 if test -z "$ac_cv_prog_RANLIB"; then
3815   ac_ct_RANLIB=$RANLIB
3816   # Extract the first word of "ranlib", so it can be a program name with args.
3817 set dummy ranlib; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   if test -n "$ac_ct_RANLIB"; then
3824   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829   IFS=$as_save_IFS
3830   test -z "$as_dir" && as_dir=.
3831   for ac_exec_ext in '' $ac_executable_extensions; do
3832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833     ac_cv_prog_ac_ct_RANLIB="ranlib"
3834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835     break 2
3836   fi
3837 done
3838 done
3839
3840   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3841 fi
3842 fi
3843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3844 if test -n "$ac_ct_RANLIB"; then
3845   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3846 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3847 else
3848   echo "$as_me:$LINENO: result: no" >&5
3849 echo "${ECHO_T}no" >&6
3850 fi
3851
3852   RANLIB=$ac_ct_RANLIB
3853 else
3854   RANLIB="$ac_cv_prog_RANLIB"
3855 fi
3856
3857 if test -n "$ac_tool_prefix"; then
3858   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}strip; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_prog_STRIP+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   if test -n "$STRIP"; then
3866   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3867 else
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_exec_ext in '' $ac_executable_extensions; do
3874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880 done
3881
3882 fi
3883 fi
3884 STRIP=$ac_cv_prog_STRIP
3885 if test -n "$STRIP"; then
3886   echo "$as_me:$LINENO: result: $STRIP" >&5
3887 echo "${ECHO_T}$STRIP" >&6
3888 else
3889   echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6
3891 fi
3892
3893 fi
3894 if test -z "$ac_cv_prog_STRIP"; then
3895   ac_ct_STRIP=$STRIP
3896   # Extract the first word of "strip", so it can be a program name with args.
3897 set dummy strip; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   if test -n "$ac_ct_STRIP"; then
3904   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3905 else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_prog_ac_ct_STRIP="strip"
3914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918 done
3919
3920   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3921 fi
3922 fi
3923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3924 if test -n "$ac_ct_STRIP"; then
3925   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3926 echo "${ECHO_T}$ac_ct_STRIP" >&6
3927 else
3928   echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3930 fi
3931
3932   STRIP=$ac_ct_STRIP
3933 else
3934   STRIP="$ac_cv_prog_STRIP"
3935 fi
3936
3937
3938 # Check for any special flags to pass to ltconfig.
3939 libtool_flags="--cache-file=$cache_file"
3940 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3941 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3942 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3943 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3944 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3945
3946
3947 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3948 if test "${enable_libtool_lock+set}" = set; then
3949   enableval="$enable_libtool_lock"
3950
3951 fi;
3952 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3953 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3954
3955
3956 # Check whether --with-pic or --without-pic was given.
3957 if test "${with_pic+set}" = set; then
3958   withval="$with_pic"
3959   pic_mode="$withval"
3960 else
3961   pic_mode=default
3962 fi;
3963 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3964 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3965
3966 # Some flags need to be propagated to the compiler or linker for good
3967 # libtool support.
3968 case $host in
3969 *-*-irix6*)
3970   # Find out which ABI we are using.
3971   echo '#line 3971 "configure"' > conftest.$ac_ext
3972   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973   (eval $ac_compile) 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; then
3977    if test "$lt_cv_prog_gnu_ld" = yes; then
3978     case `/usr/bin/file conftest.$ac_objext` in
3979     *32-bit*)
3980       LD="${LD-ld} -melf32bsmip"
3981       ;;
3982     *N32*)
3983       LD="${LD-ld} -melf32bmipn32"
3984       ;;
3985     *64-bit*)
3986       LD="${LD-ld} -melf64bmip"
3987       ;;
3988     esac
3989    else
3990     case `/usr/bin/file conftest.$ac_objext` in
3991     *32-bit*)
3992       LD="${LD-ld} -32"
3993       ;;
3994     *N32*)
3995       LD="${LD-ld} -n32"
3996       ;;
3997     *64-bit*)
3998       LD="${LD-ld} -64"
3999       ;;
4000     esac
4001    fi
4002   fi
4003   rm -rf conftest*
4004   ;;
4005
4006 ia64-*-hpux*)
4007   # Find out which ABI we are using.
4008   echo 'int i;' > conftest.$ac_ext
4009   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010   (eval $ac_compile) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }; then
4014     case "`/usr/bin/file conftest.o`" in
4015     *ELF-32*)
4016       HPUX_IA64_MODE="32"
4017       ;;
4018     *ELF-64*)
4019       HPUX_IA64_MODE="64"
4020       ;;
4021     esac
4022   fi
4023   rm -rf conftest*
4024   ;;
4025
4026 *-*-sco3.2v5*)
4027   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4028   SAVE_CFLAGS="$CFLAGS"
4029   CFLAGS="$CFLAGS -belf"
4030   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4031 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4032 if test "${lt_cv_cc_needs_belf+set}" = set; then
4033   echo $ECHO_N "(cached) $ECHO_C" >&6
4034 else
4035
4036
4037      ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042
4043      cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h.  */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h.  */
4049
4050 int
4051 main ()
4052 {
4053
4054   ;
4055   return 0;
4056 }
4057 _ACEOF
4058 rm -f conftest.$ac_objext conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060   (eval $ac_link) 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } &&
4067          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069   (eval $ac_try) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); }; } &&
4073          { ac_try='test -s conftest$ac_exeext'
4074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   lt_cv_cc_needs_belf=yes
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 lt_cv_cc_needs_belf=no
4085 fi
4086 rm -f conftest.err conftest.$ac_objext \
4087       conftest$ac_exeext conftest.$ac_ext
4088      ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094 fi
4095 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4096 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4097   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4098     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4099     CFLAGS="$SAVE_CFLAGS"
4100   fi
4101   ;;
4102
4103
4104 esac
4105
4106
4107 # Save cache, so that ltconfig can load it
4108 cat >confcache <<\_ACEOF
4109 # This file is a shell script that caches the results of configure
4110 # tests run on this system so they can be shared between configure
4111 # scripts and configure runs, see configure's option --config-cache.
4112 # It is not useful on other systems.  If it contains results you don't
4113 # want to keep, you may remove or edit it.
4114 #
4115 # config.status only pays attention to the cache file if you give it
4116 # the --recheck option to rerun configure.
4117 #
4118 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4119 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4120 # following values.
4121
4122 _ACEOF
4123
4124 # The following way of writing the cache mishandles newlines in values,
4125 # but we know of no workaround that is simple, portable, and efficient.
4126 # So, don't put newlines in cache variables' values.
4127 # Ultrix sh set writes to stderr and can't be redirected directly,
4128 # and sets the high bit in the cache file unless we assign to the vars.
4129 {
4130   (set) 2>&1 |
4131     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4132     *ac_space=\ *)
4133       # `set' does not quote correctly, so add quotes (double-quote
4134       # substitution turns \\\\ into \\, and sed turns \\ into \).
4135       sed -n \
4136         "s/'/'\\\\''/g;
4137           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4138       ;;
4139     *)
4140       # `set' quotes correctly as required by POSIX, so do not add quotes.
4141       sed -n \
4142         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4143       ;;
4144     esac;
4145 } |
4146   sed '
4147      t clear
4148      : clear
4149      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4150      t end
4151      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4152      : end' >>confcache
4153 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4154   if test -w $cache_file; then
4155     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4156     cat confcache >$cache_file
4157   else
4158     echo "not updating unwritable cache $cache_file"
4159   fi
4160 fi
4161 rm -f confcache
4162
4163 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4164 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4165 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4166 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4167 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4168 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4169 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4170 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4171 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4172 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4173 echo "$as_me: error: libtool configure failed" >&2;}
4174    { (exit 1); exit 1; }; }
4175
4176 # Reload cache, that may have been modified by ltconfig
4177 if test -r "$cache_file"; then
4178   # Some versions of bash will fail to source /dev/null (special
4179   # files actually), so we avoid doing that.
4180   if test -f "$cache_file"; then
4181     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4182 echo "$as_me: loading cache $cache_file" >&6;}
4183     case $cache_file in
4184       [\\/]* | ?:[\\/]* ) . $cache_file;;
4185       *)                      . ./$cache_file;;
4186     esac
4187   fi
4188 else
4189   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4190 echo "$as_me: creating cache $cache_file" >&6;}
4191   >$cache_file
4192 fi
4193
4194
4195 # This can be used to rebuild libtool when needed
4196 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4197
4198 # Always use our own libtool.
4199 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4200
4201 # Redirect the config.log output again, so that the ltconfig log is not
4202 # clobbered by the next message.
4203 exec 5>>./config.log
4204
4205
4206
4207
4208
4209
4210
4211 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4212 if test "${enable_64_bit_bfd+set}" = set; then
4213   enableval="$enable_64_bit_bfd"
4214   case "${enableval}" in
4215   yes)  want64=true  ;;
4216   no)   want64=false ;;
4217   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4218 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4219    { (exit 1); exit 1; }; } ;;
4220 esac
4221 else
4222   want64=false
4223 fi; # Check whether --enable-targets or --disable-targets was given.
4224 if test "${enable_targets+set}" = set; then
4225   enableval="$enable_targets"
4226   case "${enableval}" in
4227   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4228 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4229    { (exit 1); exit 1; }; }
4230             ;;
4231   no)       enable_targets= ;;
4232   *)        enable_targets=$enableval ;;
4233 esac
4234 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4235 if test "${enable_commonbfdlib+set}" = set; then
4236   enableval="$enable_commonbfdlib"
4237   case "${enableval}" in
4238   yes) commonbfdlib=true ;;
4239   no)  commonbfdlib=false ;;
4240   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4241 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4242    { (exit 1); exit 1; }; } ;;
4243 esac
4244 fi;
4245 # Check whether --with-mmap or --without-mmap was given.
4246 if test "${with_mmap+set}" = set; then
4247   withval="$with_mmap"
4248   case "${withval}" in
4249   yes)  want_mmap=true ;;
4250   no)   want_mmap=false ;;
4251   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4252 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4253    { (exit 1); exit 1; }; } ;;
4254 esac
4255 else
4256   want_mmap=false
4257 fi;
4258 # Check whether --enable-secureplt or --disable-secureplt was given.
4259 if test "${enable_secureplt+set}" = set; then
4260   enableval="$enable_secureplt"
4261   case "${enableval}" in
4262   yes)  use_secureplt=true  ;;
4263   no)   use_secureplt=false ;;
4264   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4265 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4266    { (exit 1); exit 1; }; } ;;
4267 esac
4268 else
4269   use_secureplt=false
4270 fi; if test $use_secureplt = true; then
4271
4272 cat >>confdefs.h <<\_ACEOF
4273 #define USE_SECUREPLT 1
4274 _ACEOF
4275
4276 fi
4277
4278
4279 WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4280
4281 # Check whether --enable-werror or --disable-werror was given.
4282 if test "${enable_werror+set}" = set; then
4283   enableval="$enable_werror"
4284   case "${enableval}" in
4285      yes | y) ERROR_ON_WARNING="yes" ;;
4286      no | n)  ERROR_ON_WARNING="no" ;;
4287      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4288 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4289    { (exit 1); exit 1; }; } ;;
4290    esac
4291 fi;
4292
4293 # Enable -Werror by default when using gcc
4294 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4295     ERROR_ON_WARNING=yes
4296 fi
4297
4298 NO_WERROR=
4299 if test "${ERROR_ON_WARNING}" = yes ; then
4300     WARN_CFLAGS="$WARN_CFLAGS -Werror"
4301     NO_WERROR="-Wno-error"
4302 fi
4303
4304 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4305 if test "${enable_build_warnings+set}" = set; then
4306   enableval="$enable_build_warnings"
4307   case "${enableval}" in
4308   yes)  ;;
4309   no)   WARN_CFLAGS="-w";;
4310   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4311         WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
4312   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
4313         WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4314   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4315 esac
4316 fi;
4317
4318 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4319   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4320 fi
4321
4322
4323
4324
4325
4326           ac_config_headers="$ac_config_headers config.h:config.in"
4327
4328
4329 if test -z "$target" ; then
4330     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4331 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4332    { (exit 1); exit 1; }; }
4333 fi
4334
4335 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4336 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4337     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4338 if test "${enable_maintainer_mode+set}" = set; then
4339   enableval="$enable_maintainer_mode"
4340   USE_MAINTAINER_MODE=$enableval
4341 else
4342   USE_MAINTAINER_MODE=no
4343 fi;
4344   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4345 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4346
4347
4348 if test $USE_MAINTAINER_MODE = yes; then
4349   MAINTAINER_MODE_TRUE=
4350   MAINTAINER_MODE_FALSE='#'
4351 else
4352   MAINTAINER_MODE_TRUE='#'
4353   MAINTAINER_MODE_FALSE=
4354 fi
4355
4356   MAINT=$MAINTAINER_MODE_TRUE
4357
4358
4359  case ${build_alias} in
4360   "") build_noncanonical=${build} ;;
4361   *) build_noncanonical=${build_alias} ;;
4362 esac
4363
4364  case ${host_alias} in
4365   "") host_noncanonical=${build_noncanonical} ;;
4366   *) host_noncanonical=${host_alias} ;;
4367 esac
4368
4369  case ${target_alias} in
4370   "") target_noncanonical=${host_noncanonical} ;;
4371   *) target_noncanonical=${target_alias} ;;
4372 esac
4373
4374 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4375 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4376   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4377 if test "${enable_install_libbfd+set}" = set; then
4378   enableval="$enable_install_libbfd"
4379   install_libbfd_p=$enableval
4380 else
4381   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4382         install_libbfd_p=yes
4383       else
4384         install_libbfd_p=no
4385       fi
4386 fi;
4387   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4388 echo "${ECHO_T}$install_libbfd_p" >&6
4389
4390
4391 if test $install_libbfd_p = yes; then
4392   INSTALL_LIBBFD_TRUE=
4393   INSTALL_LIBBFD_FALSE='#'
4394 else
4395   INSTALL_LIBBFD_TRUE='#'
4396   INSTALL_LIBBFD_FALSE=
4397 fi
4398
4399   # Need _noncanonical variables for this.
4400
4401
4402
4403
4404   # libbfd.a is a host library containing target dependent code
4405   bfdlibdir='$(libdir)'
4406   bfdincludedir='$(includedir)'
4407   if test "${host}" != "${target}"; then
4408     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4409     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4410   fi
4411
4412
4413
4414
4415
4416
4417 host64=false
4418 target64=false
4419 bfd_default_target_size=32
4420
4421 # host stuff:
4422
4423 ac_ext=c
4424 ac_cpp='$CPP $CPPFLAGS'
4425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428 if test -n "$ac_tool_prefix"; then
4429   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4431 echo "$as_me:$LINENO: checking for $ac_word" >&5
4432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433 if test "${ac_cv_prog_CC+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   if test -n "$CC"; then
4437   ac_cv_prog_CC="$CC" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4441 do
4442   IFS=$as_save_IFS
4443   test -z "$as_dir" && as_dir=.
4444   for ac_exec_ext in '' $ac_executable_extensions; do
4445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448     break 2
4449   fi
4450 done
4451 done
4452
4453 fi
4454 fi
4455 CC=$ac_cv_prog_CC
4456 if test -n "$CC"; then
4457   echo "$as_me:$LINENO: result: $CC" >&5
4458 echo "${ECHO_T}$CC" >&6
4459 else
4460   echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4462 fi
4463
4464 fi
4465 if test -z "$ac_cv_prog_CC"; then
4466   ac_ct_CC=$CC
4467   # Extract the first word of "gcc", so it can be a program name with args.
4468 set dummy gcc; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   if test -n "$ac_ct_CC"; then
4475   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_prog_ac_ct_CC="gcc"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490
4491 fi
4492 fi
4493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4494 if test -n "$ac_ct_CC"; then
4495   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4496 echo "${ECHO_T}$ac_ct_CC" >&6
4497 else
4498   echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4500 fi
4501
4502   CC=$ac_ct_CC
4503 else
4504   CC="$ac_cv_prog_CC"
4505 fi
4506
4507 if test -z "$CC"; then
4508   if test -n "$ac_tool_prefix"; then
4509   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510 set dummy ${ac_tool_prefix}cc; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_prog_CC+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   if test -n "$CC"; then
4517   ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_prog_CC="${ac_tool_prefix}cc"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532
4533 fi
4534 fi
4535 CC=$ac_cv_prog_CC
4536 if test -n "$CC"; then
4537   echo "$as_me:$LINENO: result: $CC" >&5
4538 echo "${ECHO_T}$CC" >&6
4539 else
4540   echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6
4542 fi
4543
4544 fi
4545 if test -z "$ac_cv_prog_CC"; then
4546   ac_ct_CC=$CC
4547   # Extract the first word of "cc", so it can be a program name with args.
4548 set dummy cc; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   if test -n "$ac_ct_CC"; then
4555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   for ac_exec_ext in '' $ac_executable_extensions; do
4563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564     ac_cv_prog_ac_ct_CC="cc"
4565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566     break 2
4567   fi
4568 done
4569 done
4570
4571 fi
4572 fi
4573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4574 if test -n "$ac_ct_CC"; then
4575   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4576 echo "${ECHO_T}$ac_ct_CC" >&6
4577 else
4578   echo "$as_me:$LINENO: result: no" >&5
4579 echo "${ECHO_T}no" >&6
4580 fi
4581
4582   CC=$ac_ct_CC
4583 else
4584   CC="$ac_cv_prog_CC"
4585 fi
4586
4587 fi
4588 if test -z "$CC"; then
4589   # Extract the first word of "cc", so it can be a program name with args.
4590 set dummy cc; ac_word=$2
4591 echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_CC+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test -n "$CC"; then
4597   ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599   ac_prog_rejected=no
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608        ac_prog_rejected=yes
4609        continue
4610      fi
4611     ac_cv_prog_CC="cc"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618 if test $ac_prog_rejected = yes; then
4619   # We found a bogon in the path, so make sure we never use it.
4620   set dummy $ac_cv_prog_CC
4621   shift
4622   if test $# != 0; then
4623     # We chose a different compiler from the bogus one.
4624     # However, it has the same basename, so the bogon will be chosen
4625     # first if we set CC to just the basename; use the full file name.
4626     shift
4627     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4628   fi
4629 fi
4630 fi
4631 fi
4632 CC=$ac_cv_prog_CC
4633 if test -n "$CC"; then
4634   echo "$as_me:$LINENO: result: $CC" >&5
4635 echo "${ECHO_T}$CC" >&6
4636 else
4637   echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639 fi
4640
4641 fi
4642 if test -z "$CC"; then
4643   if test -n "$ac_tool_prefix"; then
4644   for ac_prog in cl
4645   do
4646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648 echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_CC+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   if test -n "$CC"; then
4654   ac_cv_prog_CC="$CC" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669
4670 fi
4671 fi
4672 CC=$ac_cv_prog_CC
4673 if test -n "$CC"; then
4674   echo "$as_me:$LINENO: result: $CC" >&5
4675 echo "${ECHO_T}$CC" >&6
4676 else
4677   echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4679 fi
4680
4681     test -n "$CC" && break
4682   done
4683 fi
4684 if test -z "$CC"; then
4685   ac_ct_CC=$CC
4686   for ac_prog in cl
4687 do
4688   # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy $ac_prog; ac_word=$2
4690 echo "$as_me:$LINENO: checking for $ac_word" >&5
4691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4693   echo $ECHO_N "(cached) $ECHO_C" >&6
4694 else
4695   if test -n "$ac_ct_CC"; then
4696   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697 else
4698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705     ac_cv_prog_ac_ct_CC="$ac_prog"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711
4712 fi
4713 fi
4714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715 if test -n "$ac_ct_CC"; then
4716   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4717 echo "${ECHO_T}$ac_ct_CC" >&6
4718 else
4719   echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6
4721 fi
4722
4723   test -n "$ac_ct_CC" && break
4724 done
4725
4726   CC=$ac_ct_CC
4727 fi
4728
4729 fi
4730
4731
4732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733 See \`config.log' for more details." >&5
4734 echo "$as_me: error: no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." >&2;}
4736    { (exit 1); exit 1; }; }
4737
4738 # Provide some information about the compiler.
4739 echo "$as_me:$LINENO:" \
4740      "checking for C compiler version" >&5
4741 ac_compiler=`set X $ac_compile; echo $2`
4742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4743   (eval $ac_compiler --version </dev/null >&5) 2>&5
4744   ac_status=$?
4745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746   (exit $ac_status); }
4747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4748   (eval $ac_compiler -v </dev/null >&5) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }
4752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4753   (eval $ac_compiler -V </dev/null >&5) 2>&5
4754   ac_status=$?
4755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756   (exit $ac_status); }
4757
4758 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4760 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769
4770 int
4771 main ()
4772 {
4773 #ifndef __GNUC__
4774        choke me
4775 #endif
4776
4777   ;
4778   return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783   (eval $ac_compile) 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } &&
4790          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792   (eval $ac_try) 2>&5
4793   ac_status=$?
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); }; } &&
4796          { ac_try='test -s conftest.$ac_objext'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; }; then
4802   ac_compiler_gnu=yes
4803 else
4804   echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 ac_compiler_gnu=no
4808 fi
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4811
4812 fi
4813 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4814 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4815 GCC=`test $ac_compiler_gnu = yes && echo yes`
4816 ac_test_CFLAGS=${CFLAGS+set}
4817 ac_save_CFLAGS=$CFLAGS
4818 CFLAGS="-g"
4819 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4820 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4821 if test "${ac_cv_prog_cc_g+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h.  */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h.  */
4830
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 rm -f conftest.$ac_objext
4840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841   (eval $ac_compile) 2>conftest.er1
4842   ac_status=$?
4843   grep -v '^ *+' conftest.er1 >conftest.err
4844   rm -f conftest.er1
4845   cat conftest.err >&5
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); } &&
4848          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; } &&
4854          { ac_try='test -s conftest.$ac_objext'
4855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856   (eval $ac_try) 2>&5
4857   ac_status=$?
4858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); }; }; then
4860   ac_cv_prog_cc_g=yes
4861 else
4862   echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 ac_cv_prog_cc_g=no
4866 fi
4867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4868 fi
4869 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4870 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4871 if test "$ac_test_CFLAGS" = set; then
4872   CFLAGS=$ac_save_CFLAGS
4873 elif test $ac_cv_prog_cc_g = yes; then
4874   if test "$GCC" = yes; then
4875     CFLAGS="-g -O2"
4876   else
4877     CFLAGS="-g"
4878   fi
4879 else
4880   if test "$GCC" = yes; then
4881     CFLAGS="-O2"
4882   else
4883     CFLAGS=
4884   fi
4885 fi
4886 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4887 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4888 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   ac_cv_prog_cc_stdc=no
4892 ac_save_CC=$CC
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899 #include <stdarg.h>
4900 #include <stdio.h>
4901 #include <sys/types.h>
4902 #include <sys/stat.h>
4903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4904 struct buf { int x; };
4905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4906 static char *e (p, i)
4907      char **p;
4908      int i;
4909 {
4910   return p[i];
4911 }
4912 static char *f (char * (*g) (char **, int), char **p, ...)
4913 {
4914   char *s;
4915   va_list v;
4916   va_start (v,p);
4917   s = g (p, va_arg (v,int));
4918   va_end (v);
4919   return s;
4920 }
4921
4922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4923    function prototypes and stuff, but not '\xHH' hex character constants.
4924    These don't provoke an error unfortunately, instead are silently treated
4925    as 'x'.  The following induces an error, until -std1 is added to get
4926    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4927    array size at least.  It's necessary to write '\x00'==0 to get something
4928    that's true only with -std1.  */
4929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4930
4931 int test (int i, double x);
4932 struct s1 {int (*f) (int a);};
4933 struct s2 {int (*f) (double a);};
4934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4935 int argc;
4936 char **argv;
4937 int
4938 main ()
4939 {
4940 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4941   ;
4942   return 0;
4943 }
4944 _ACEOF
4945 # Don't try gcc -ansi; that turns off useful extensions and
4946 # breaks some systems' header files.
4947 # AIX                   -qlanglvl=ansi
4948 # Ultrix and OSF/1      -std1
4949 # HP-UX 10.20 and later -Ae
4950 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4951 # SVR4                  -Xc -D__EXTENSIONS__
4952 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4953 do
4954   CC="$ac_save_CC $ac_arg"
4955   rm -f conftest.$ac_objext
4956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957   (eval $ac_compile) 2>conftest.er1
4958   ac_status=$?
4959   grep -v '^ *+' conftest.er1 >conftest.err
4960   rm -f conftest.er1
4961   cat conftest.err >&5
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } &&
4964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; } &&
4970          { ac_try='test -s conftest.$ac_objext'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; }; then
4976   ac_cv_prog_cc_stdc=$ac_arg
4977 break
4978 else
4979   echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982 fi
4983 rm -f conftest.err conftest.$ac_objext
4984 done
4985 rm -f conftest.$ac_ext conftest.$ac_objext
4986 CC=$ac_save_CC
4987
4988 fi
4989
4990 case "x$ac_cv_prog_cc_stdc" in
4991   x|xno)
4992     echo "$as_me:$LINENO: result: none needed" >&5
4993 echo "${ECHO_T}none needed" >&6 ;;
4994   *)
4995     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4996 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4997     CC="$CC $ac_cv_prog_cc_stdc" ;;
4998 esac
4999
5000 # Some people use a C++ compiler to compile C.  Since we use `exit',
5001 # in C++ we need to declare it.  In case someone uses the same compiler
5002 # for both compiling C and C++ we need to have the C++ compiler decide
5003 # the declaration of exit, since it's the most demanding environment.
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #ifndef __cplusplus
5006   choke me
5007 #endif
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011   (eval $ac_compile) 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } &&
5018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020   (eval $ac_try) 2>&5
5021   ac_status=$?
5022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023   (exit $ac_status); }; } &&
5024          { ac_try='test -s conftest.$ac_objext'
5025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026   (eval $ac_try) 2>&5
5027   ac_status=$?
5028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029   (exit $ac_status); }; }; then
5030   for ac_declaration in \
5031    '' \
5032    'extern "C" void std::exit (int) throw (); using std::exit;' \
5033    'extern "C" void std::exit (int); using std::exit;' \
5034    'extern "C" void exit (int) throw ();' \
5035    'extern "C" void exit (int);' \
5036    'void exit (int);'
5037 do
5038   cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 $ac_declaration
5045 #include <stdlib.h>
5046 int
5047 main ()
5048 {
5049 exit (42);
5050   ;
5051   return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056   (eval $ac_compile) 2>conftest.er1
5057   ac_status=$?
5058   grep -v '^ *+' conftest.er1 >conftest.err
5059   rm -f conftest.er1
5060   cat conftest.err >&5
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); } &&
5063          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065   (eval $ac_try) 2>&5
5066   ac_status=$?
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); }; } &&
5069          { ac_try='test -s conftest.$ac_objext'
5070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071   (eval $ac_try) 2>&5
5072   ac_status=$?
5073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074   (exit $ac_status); }; }; then
5075   :
5076 else
5077   echo "$as_me: failed program was:" >&5
5078 sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 continue
5081 fi
5082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083   cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h.  */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h.  */
5089 $ac_declaration
5090 int
5091 main ()
5092 {
5093 exit (42);
5094   ;
5095   return 0;
5096 }
5097 _ACEOF
5098 rm -f conftest.$ac_objext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100   (eval $ac_compile) 2>conftest.er1
5101   ac_status=$?
5102   grep -v '^ *+' conftest.er1 >conftest.err
5103   rm -f conftest.er1
5104   cat conftest.err >&5
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } &&
5107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; } &&
5113          { ac_try='test -s conftest.$ac_objext'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; }; then
5119   break
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 fi
5125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126 done
5127 rm -f conftest*
5128 if test -n "$ac_declaration"; then
5129   echo '#ifdef __cplusplus' >>confdefs.h
5130   echo $ac_declaration      >>confdefs.h
5131   echo '#endif'             >>confdefs.h
5132 fi
5133
5134 else
5135   echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5137
5138 fi
5139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147 cat >>confdefs.h <<\_ACEOF
5148 #define _GNU_SOURCE 1
5149 _ACEOF
5150
5151
5152
5153 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5154 if test -n "$ac_tool_prefix"; then
5155   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5156 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5157 echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159 if test "${ac_cv_prog_RANLIB+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   if test -n "$RANLIB"; then
5163   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170   for ac_exec_ext in '' $ac_executable_extensions; do
5171   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177 done
5178
5179 fi
5180 fi
5181 RANLIB=$ac_cv_prog_RANLIB
5182 if test -n "$RANLIB"; then
5183   echo "$as_me:$LINENO: result: $RANLIB" >&5
5184 echo "${ECHO_T}$RANLIB" >&6
5185 else
5186   echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5188 fi
5189
5190 fi
5191 if test -z "$ac_cv_prog_RANLIB"; then
5192   ac_ct_RANLIB=$RANLIB
5193   # Extract the first word of "ranlib", so it can be a program name with args.
5194 set dummy ranlib; ac_word=$2
5195 echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   if test -n "$ac_ct_RANLIB"; then
5201   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5202 else
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206   IFS=$as_save_IFS
5207   test -z "$as_dir" && as_dir=.
5208   for ac_exec_ext in '' $ac_executable_extensions; do
5209   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210     ac_cv_prog_ac_ct_RANLIB="ranlib"
5211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212     break 2
5213   fi
5214 done
5215 done
5216
5217   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5218 fi
5219 fi
5220 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5221 if test -n "$ac_ct_RANLIB"; then
5222   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5223 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5224 else
5225   echo "$as_me:$LINENO: result: no" >&5
5226 echo "${ECHO_T}no" >&6
5227 fi
5228
5229   RANLIB=$ac_ct_RANLIB
5230 else
5231   RANLIB="$ac_cv_prog_RANLIB"
5232 fi
5233
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5240 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5241 # On Suns, sometimes $CPP names a directory.
5242 if test -n "$CPP" && test -d "$CPP"; then
5243   CPP=
5244 fi
5245 if test -z "$CPP"; then
5246   if test "${ac_cv_prog_CPP+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249       # Double quotes because CPP needs to be expanded
5250     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5251     do
5252       ac_preproc_ok=false
5253 for ac_c_preproc_warn_flag in '' yes
5254 do
5255   # Use a header file that comes with gcc, so configuring glibc
5256   # with a fresh cross-compiler works.
5257   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258   # <limits.h> exists even on freestanding compilers.
5259   # On the NeXT, cc -E runs the code through the compiler's parser,
5260   # not just through cpp. "Syntax error" is here to catch this case.
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #ifdef __STDC__
5268 # include <limits.h>
5269 #else
5270 # include <assert.h>
5271 #endif
5272                      Syntax error
5273 _ACEOF
5274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5275   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } >/dev/null; then
5282   if test -s conftest.err; then
5283     ac_cpp_err=$ac_c_preproc_warn_flag
5284     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285   else
5286     ac_cpp_err=
5287   fi
5288 else
5289   ac_cpp_err=yes
5290 fi
5291 if test -z "$ac_cpp_err"; then
5292   :
5293 else
5294   echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297   # Broken: fails on valid input.
5298 continue
5299 fi
5300 rm -f conftest.err conftest.$ac_ext
5301
5302   # OK, works on sane cases.  Now check whether non-existent headers
5303   # can be detected and how.
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 #include <ac_nonexistent.h>
5311 _ACEOF
5312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5314   ac_status=$?
5315   grep -v '^ *+' conftest.er1 >conftest.err
5316   rm -f conftest.er1
5317   cat conftest.err >&5
5318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319   (exit $ac_status); } >/dev/null; then
5320   if test -s conftest.err; then
5321     ac_cpp_err=$ac_c_preproc_warn_flag
5322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323   else
5324     ac_cpp_err=
5325   fi
5326 else
5327   ac_cpp_err=yes
5328 fi
5329 if test -z "$ac_cpp_err"; then
5330   # Broken: success on invalid input.
5331 continue
5332 else
5333   echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336   # Passes both tests.
5337 ac_preproc_ok=:
5338 break
5339 fi
5340 rm -f conftest.err conftest.$ac_ext
5341
5342 done
5343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344 rm -f conftest.err conftest.$ac_ext
5345 if $ac_preproc_ok; then
5346   break
5347 fi
5348
5349     done
5350     ac_cv_prog_CPP=$CPP
5351
5352 fi
5353   CPP=$ac_cv_prog_CPP
5354 else
5355   ac_cv_prog_CPP=$CPP
5356 fi
5357 echo "$as_me:$LINENO: result: $CPP" >&5
5358 echo "${ECHO_T}$CPP" >&6
5359 ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362   # Use a header file that comes with gcc, so configuring glibc
5363   # with a fresh cross-compiler works.
5364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365   # <limits.h> exists even on freestanding compilers.
5366   # On the NeXT, cc -E runs the code through the compiler's parser,
5367   # not just through cpp. "Syntax error" is here to catch this case.
5368   cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #ifdef __STDC__
5375 # include <limits.h>
5376 #else
5377 # include <assert.h>
5378 #endif
5379                      Syntax error
5380 _ACEOF
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } >/dev/null; then
5389   if test -s conftest.err; then
5390     ac_cpp_err=$ac_c_preproc_warn_flag
5391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392   else
5393     ac_cpp_err=
5394   fi
5395 else
5396   ac_cpp_err=yes
5397 fi
5398 if test -z "$ac_cpp_err"; then
5399   :
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404   # Broken: fails on valid input.
5405 continue
5406 fi
5407 rm -f conftest.err conftest.$ac_ext
5408
5409   # OK, works on sane cases.  Now check whether non-existent headers
5410   # can be detected and how.
5411   cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h.  */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h.  */
5417 #include <ac_nonexistent.h>
5418 _ACEOF
5419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421   ac_status=$?
5422   grep -v '^ *+' conftest.er1 >conftest.err
5423   rm -f conftest.er1
5424   cat conftest.err >&5
5425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426   (exit $ac_status); } >/dev/null; then
5427   if test -s conftest.err; then
5428     ac_cpp_err=$ac_c_preproc_warn_flag
5429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430   else
5431     ac_cpp_err=
5432   fi
5433 else
5434   ac_cpp_err=yes
5435 fi
5436 if test -z "$ac_cpp_err"; then
5437   # Broken: success on invalid input.
5438 continue
5439 else
5440   echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5442
5443   # Passes both tests.
5444 ac_preproc_ok=:
5445 break
5446 fi
5447 rm -f conftest.err conftest.$ac_ext
5448
5449 done
5450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5451 rm -f conftest.err conftest.$ac_ext
5452 if $ac_preproc_ok; then
5453   :
5454 else
5455   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details." >&5
5457 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5458 See \`config.log' for more details." >&2;}
5459    { (exit 1); exit 1; }; }
5460 fi
5461
5462 ac_ext=c
5463 ac_cpp='$CPP $CPPFLAGS'
5464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469 echo "$as_me:$LINENO: checking for egrep" >&5
5470 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5471 if test "${ac_cv_prog_egrep+set}" = set; then
5472   echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5475     then ac_cv_prog_egrep='grep -E'
5476     else ac_cv_prog_egrep='egrep'
5477     fi
5478 fi
5479 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5480 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5481  EGREP=$ac_cv_prog_egrep
5482
5483
5484 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5485 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5486 if test "${ac_cv_header_stdc+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 #include <stdlib.h>
5496 #include <stdarg.h>
5497 #include <string.h>
5498 #include <float.h>
5499
5500 int
5501 main ()
5502 {
5503
5504   ;
5505   return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510   (eval $ac_compile) 2>conftest.er1
5511   ac_status=$?
5512   grep -v '^ *+' conftest.er1 >conftest.err
5513   rm -f conftest.er1
5514   cat conftest.err >&5
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); } &&
5517          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519   (eval $ac_try) 2>&5
5520   ac_status=$?
5521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522   (exit $ac_status); }; } &&
5523          { ac_try='test -s conftest.$ac_objext'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   ac_cv_header_stdc=yes
5530 else
5531   echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534 ac_cv_header_stdc=no
5535 fi
5536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5537
5538 if test $ac_cv_header_stdc = yes; then
5539   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #include <string.h>
5547
5548 _ACEOF
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550   $EGREP "memchr" >/dev/null 2>&1; then
5551   :
5552 else
5553   ac_cv_header_stdc=no
5554 fi
5555 rm -f conftest*
5556
5557 fi
5558
5559 if test $ac_cv_header_stdc = yes; then
5560   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5561   cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h.  */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h.  */
5567 #include <stdlib.h>
5568
5569 _ACEOF
5570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5571   $EGREP "free" >/dev/null 2>&1; then
5572   :
5573 else
5574   ac_cv_header_stdc=no
5575 fi
5576 rm -f conftest*
5577
5578 fi
5579
5580 if test $ac_cv_header_stdc = yes; then
5581   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5582   if test "$cross_compiling" = yes; then
5583   :
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 #include <ctype.h>
5592 #if ((' ' & 0x0FF) == 0x020)
5593 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5594 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5595 #else
5596 # define ISLOWER(c) \
5597                    (('a' <= (c) && (c) <= 'i') \
5598                      || ('j' <= (c) && (c) <= 'r') \
5599                      || ('s' <= (c) && (c) <= 'z'))
5600 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5601 #endif
5602
5603 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5604 int
5605 main ()
5606 {
5607   int i;
5608   for (i = 0; i < 256; i++)
5609     if (XOR (islower (i), ISLOWER (i))
5610         || toupper (i) != TOUPPER (i))
5611       exit(2);
5612   exit (0);
5613 }
5614 _ACEOF
5615 rm -f conftest$ac_exeext
5616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617   (eval $ac_link) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622   (eval $ac_try) 2>&5
5623   ac_status=$?
5624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625   (exit $ac_status); }; }; then
5626   :
5627 else
5628   echo "$as_me: program exited with status $ac_status" >&5
5629 echo "$as_me: failed program was:" >&5
5630 sed 's/^/| /' conftest.$ac_ext >&5
5631
5632 ( exit $ac_status )
5633 ac_cv_header_stdc=no
5634 fi
5635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5636 fi
5637 fi
5638 fi
5639 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5640 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5641 if test $ac_cv_header_stdc = yes; then
5642
5643 cat >>confdefs.h <<\_ACEOF
5644 #define STDC_HEADERS 1
5645 _ACEOF
5646
5647 fi
5648
5649 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5650 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5651 if test "${ac_cv_c_const+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654   cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660
5661 int
5662 main ()
5663 {
5664 /* FIXME: Include the comments suggested by Paul. */
5665 #ifndef __cplusplus
5666   /* Ultrix mips cc rejects this.  */
5667   typedef int charset[2];
5668   const charset x;
5669   /* SunOS 4.1.1 cc rejects this.  */
5670   char const *const *ccp;
5671   char **p;
5672   /* NEC SVR4.0.2 mips cc rejects this.  */
5673   struct point {int x, y;};
5674   static struct point const zero = {0,0};
5675   /* AIX XL C 1.02.0.0 rejects this.
5676      It does not let you subtract one const X* pointer from another in
5677      an arm of an if-expression whose if-part is not a constant
5678      expression */
5679   const char *g = "string";
5680   ccp = &g + (g ? g-g : 0);
5681   /* HPUX 7.0 cc rejects these. */
5682   ++ccp;
5683   p = (char**) ccp;
5684   ccp = (char const *const *) p;
5685   { /* SCO 3.2v4 cc rejects this.  */
5686     char *t;
5687     char const *s = 0 ? (char *) 0 : (char const *) 0;
5688
5689     *t++ = 0;
5690   }
5691   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5692     int x[] = {25, 17};
5693     const int *foo = &x[0];
5694     ++foo;
5695   }
5696   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5697     typedef const int *iptr;
5698     iptr p = 0;
5699     ++p;
5700   }
5701   { /* AIX XL C 1.02.0.0 rejects this saying
5702        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5703     struct s { int j; const int *ap[3]; };
5704     struct s *b; b->j = 5;
5705   }
5706   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5707     const int foo = 10;
5708   }
5709 #endif
5710
5711   ;
5712   return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717   (eval $ac_compile) 2>conftest.er1
5718   ac_status=$?
5719   grep -v '^ *+' conftest.er1 >conftest.err
5720   rm -f conftest.er1
5721   cat conftest.err >&5
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } &&
5724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest.$ac_objext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_cv_c_const=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_cv_c_const=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5746 echo "${ECHO_T}$ac_cv_c_const" >&6
5747 if test $ac_cv_c_const = no; then
5748
5749 cat >>confdefs.h <<\_ACEOF
5750 #define const
5751 _ACEOF
5752
5753 fi
5754
5755 echo "$as_me:$LINENO: checking for inline" >&5
5756 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5757 if test "${ac_cv_c_inline+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   ac_cv_c_inline=no
5761 for ac_kw in inline __inline__ __inline; do
5762   cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 #ifndef __cplusplus
5769 typedef int foo_t;
5770 static $ac_kw foo_t static_foo () {return 0; }
5771 $ac_kw foo_t foo () {return 0; }
5772 #endif
5773
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777   (eval $ac_compile) 2>conftest.er1
5778   ac_status=$?
5779   grep -v '^ *+' conftest.er1 >conftest.err
5780   rm -f conftest.er1
5781   cat conftest.err >&5
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } &&
5784          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786   (eval $ac_try) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); }; } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_cv_c_inline=$ac_kw; break
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 fi
5802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5803 done
5804
5805 fi
5806 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5807 echo "${ECHO_T}$ac_cv_c_inline" >&6
5808
5809
5810 case $ac_cv_c_inline in
5811   inline | yes) ;;
5812   *)
5813     case $ac_cv_c_inline in
5814       no) ac_val=;;
5815       *) ac_val=$ac_cv_c_inline;;
5816     esac
5817     cat >>confdefs.h <<_ACEOF
5818 #ifndef __cplusplus
5819 #define inline $ac_val
5820 #endif
5821 _ACEOF
5822     ;;
5823 esac
5824
5825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5836                   inttypes.h stdint.h unistd.h
5837 do
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h.  */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h.  */
5850 $ac_includes_default
5851
5852 #include <$ac_header>
5853 _ACEOF
5854 rm -f conftest.$ac_objext
5855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856   (eval $ac_compile) 2>conftest.er1
5857   ac_status=$?
5858   grep -v '^ *+' conftest.er1 >conftest.err
5859   rm -f conftest.er1
5860   cat conftest.err >&5
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); } &&
5863          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; } &&
5869          { ac_try='test -s conftest.$ac_objext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   eval "$as_ac_Header=yes"
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 eval "$as_ac_Header=no"
5881 fi
5882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887   cat >>confdefs.h <<_ACEOF
5888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5889 _ACEOF
5890
5891 fi
5892
5893 done
5894
5895
5896 echo "$as_me:$LINENO: checking for off_t" >&5
5897 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5898 if test "${ac_cv_type_off_t+set}" = set; then
5899   echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901   cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907 $ac_includes_default
5908 int
5909 main ()
5910 {
5911 if ((off_t *) 0)
5912   return 0;
5913 if (sizeof (off_t))
5914   return 0;
5915   ;
5916   return 0;
5917 }
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921   (eval $ac_compile) 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } &&
5928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930   (eval $ac_try) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); }; } &&
5934          { ac_try='test -s conftest.$ac_objext'
5935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936   (eval $ac_try) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; }; then
5940   ac_cv_type_off_t=yes
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_type_off_t=no
5946 fi
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948 fi
5949 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951 if test $ac_cv_type_off_t = yes; then
5952   :
5953 else
5954
5955 cat >>confdefs.h <<_ACEOF
5956 #define off_t long
5957 _ACEOF
5958
5959 fi
5960
5961 echo "$as_me:$LINENO: checking for size_t" >&5
5962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5963 if test "${ac_cv_type_size_t+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 $ac_includes_default
5973 int
5974 main ()
5975 {
5976 if ((size_t *) 0)
5977   return 0;
5978 if (sizeof (size_t))
5979   return 0;
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986   (eval $ac_compile) 2>conftest.er1
5987   ac_status=$?
5988   grep -v '^ *+' conftest.er1 >conftest.err
5989   rm -f conftest.er1
5990   cat conftest.err >&5
5991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992   (exit $ac_status); } &&
5993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995   (eval $ac_try) 2>&5
5996   ac_status=$?
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); }; } &&
5999          { ac_try='test -s conftest.$ac_objext'
6000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001   (eval $ac_try) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); }; }; then
6005   ac_cv_type_size_t=yes
6006 else
6007   echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_cv_type_size_t=no
6011 fi
6012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013 fi
6014 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6015 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6016 if test $ac_cv_type_size_t = yes; then
6017   :
6018 else
6019
6020 cat >>confdefs.h <<_ACEOF
6021 #define size_t unsigned
6022 _ACEOF
6023
6024 fi
6025
6026 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027 # for constant arguments.  Useless!
6028 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6030 if test "${ac_cv_working_alloca_h+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h.  */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h.  */
6039 #include <alloca.h>
6040 int
6041 main ()
6042 {
6043 char *p = (char *) alloca (2 * sizeof (int));
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; } &&
6063          { ac_try='test -s conftest$ac_exeext'
6064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065   (eval $ac_try) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); }; }; then
6069   ac_cv_working_alloca_h=yes
6070 else
6071   echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ac_cv_working_alloca_h=no
6075 fi
6076 rm -f conftest.err conftest.$ac_objext \
6077       conftest$ac_exeext conftest.$ac_ext
6078 fi
6079 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6080 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6081 if test $ac_cv_working_alloca_h = yes; then
6082
6083 cat >>confdefs.h <<\_ACEOF
6084 #define HAVE_ALLOCA_H 1
6085 _ACEOF
6086
6087 fi
6088
6089 echo "$as_me:$LINENO: checking for alloca" >&5
6090 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6091 if test "${ac_cv_func_alloca_works+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   cat >conftest.$ac_ext <<_ACEOF
6095 /* confdefs.h.  */
6096 _ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h.  */
6100 #ifdef __GNUC__
6101 # define alloca __builtin_alloca
6102 #else
6103 # ifdef _MSC_VER
6104 #  include <malloc.h>
6105 #  define alloca _alloca
6106 # else
6107 #  if HAVE_ALLOCA_H
6108 #   include <alloca.h>
6109 #  else
6110 #   ifdef _AIX
6111  #pragma alloca
6112 #   else
6113 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6114 char *alloca ();
6115 #    endif
6116 #   endif
6117 #  endif
6118 # endif
6119 #endif
6120
6121 int
6122 main ()
6123 {
6124 char *p = (char *) alloca (1);
6125   ;
6126   return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131   (eval $ac_link) 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140   (eval $ac_try) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; } &&
6144          { ac_try='test -s conftest$ac_exeext'
6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; }; then
6150   ac_cv_func_alloca_works=yes
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_cv_func_alloca_works=no
6156 fi
6157 rm -f conftest.err conftest.$ac_objext \
6158       conftest$ac_exeext conftest.$ac_ext
6159 fi
6160 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6161 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6162
6163 if test $ac_cv_func_alloca_works = yes; then
6164
6165 cat >>confdefs.h <<\_ACEOF
6166 #define HAVE_ALLOCA 1
6167 _ACEOF
6168
6169 else
6170   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6171 # that cause trouble.  Some versions do not even contain alloca or
6172 # contain a buggy version.  If you still want to use their alloca,
6173 # use ar to extract alloca.o from them instead of compiling alloca.c.
6174
6175 ALLOCA=alloca.$ac_objext
6176
6177 cat >>confdefs.h <<\_ACEOF
6178 #define C_ALLOCA 1
6179 _ACEOF
6180
6181
6182 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6183 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6184 if test "${ac_cv_os_cray+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193 #if defined(CRAY) && ! defined(CRAY2)
6194 webecray
6195 #else
6196 wenotbecray
6197 #endif
6198
6199 _ACEOF
6200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6201   $EGREP "webecray" >/dev/null 2>&1; then
6202   ac_cv_os_cray=yes
6203 else
6204   ac_cv_os_cray=no
6205 fi
6206 rm -f conftest*
6207
6208 fi
6209 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6210 echo "${ECHO_T}$ac_cv_os_cray" >&6
6211 if test $ac_cv_os_cray = yes; then
6212   for ac_func in _getb67 GETB67 getb67; do
6213     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 echo "$as_me:$LINENO: checking for $ac_func" >&5
6215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_var+set}\" = set"; then
6217   echo $ECHO_N "(cached) $ECHO_C" >&6
6218 else
6219   cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6226    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6227 #define $ac_func innocuous_$ac_func
6228
6229 /* System header to define __stub macros and hopefully few prototypes,
6230     which can conflict with char $ac_func (); below.
6231     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232     <limits.h> exists even on freestanding compilers.  */
6233
6234 #ifdef __STDC__
6235 # include <limits.h>
6236 #else
6237 # include <assert.h>
6238 #endif
6239
6240 #undef $ac_func
6241
6242 /* Override any gcc2 internal prototype to avoid an error.  */
6243 #ifdef __cplusplus
6244 extern "C"
6245 {
6246 #endif
6247 /* We use char because int might match the return type of a gcc2
6248    builtin and then its argument prototype would still apply.  */
6249 char $ac_func ();
6250 /* The GNU C library defines this for functions which it implements
6251     to always fail with ENOSYS.  Some functions are actually named
6252     something starting with __ and the normal name is an alias.  */
6253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6254 choke me
6255 #else
6256 char (*f) () = $ac_func;
6257 #endif
6258 #ifdef __cplusplus
6259 }
6260 #endif
6261
6262 int
6263 main ()
6264 {
6265 return f != $ac_func;
6266   ;
6267   return 0;
6268 }
6269 _ACEOF
6270 rm -f conftest.$ac_objext conftest$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272   (eval $ac_link) 2>conftest.er1
6273   ac_status=$?
6274   grep -v '^ *+' conftest.er1 >conftest.err
6275   rm -f conftest.er1
6276   cat conftest.err >&5
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); } &&
6279          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281   (eval $ac_try) 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); }; } &&
6285          { ac_try='test -s conftest$ac_exeext'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291   eval "$as_ac_var=yes"
6292 else
6293   echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 eval "$as_ac_var=no"
6297 fi
6298 rm -f conftest.err conftest.$ac_objext \
6299       conftest$ac_exeext conftest.$ac_ext
6300 fi
6301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6303 if test `eval echo '${'$as_ac_var'}'` = yes; then
6304
6305 cat >>confdefs.h <<_ACEOF
6306 #define CRAY_STACKSEG_END $ac_func
6307 _ACEOF
6308
6309     break
6310 fi
6311
6312   done
6313 fi
6314
6315 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6316 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6317 if test "${ac_cv_c_stack_direction+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   if test "$cross_compiling" = yes; then
6321   ac_cv_c_stack_direction=0
6322 else
6323   cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 int
6330 find_stack_direction ()
6331 {
6332   static char *addr = 0;
6333   auto char dummy;
6334   if (addr == 0)
6335     {
6336       addr = &dummy;
6337       return find_stack_direction ();
6338     }
6339   else
6340     return (&dummy > addr) ? 1 : -1;
6341 }
6342
6343 int
6344 main ()
6345 {
6346   exit (find_stack_direction () < 0);
6347 }
6348 _ACEOF
6349 rm -f conftest$ac_exeext
6350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351   (eval $ac_link) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_cv_c_stack_direction=1
6361 else
6362   echo "$as_me: program exited with status $ac_status" >&5
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ( exit $ac_status )
6367 ac_cv_c_stack_direction=-1
6368 fi
6369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6370 fi
6371 fi
6372 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6373 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6374
6375 cat >>confdefs.h <<_ACEOF
6376 #define STACK_DIRECTION $ac_cv_c_stack_direction
6377 _ACEOF
6378
6379
6380 fi
6381
6382
6383
6384 for ac_header in stdlib.h unistd.h
6385 do
6386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388   echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 fi
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395 else
6396   # Is the header compilable?
6397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h.  */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h.  */
6405 $ac_includes_default
6406 #include <$ac_header>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419   (eval $ac_try) 2>&5
6420   ac_status=$?
6421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422   (exit $ac_status); }; } &&
6423          { ac_try='test -s conftest.$ac_objext'
6424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425   (eval $ac_try) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); }; }; then
6429   ac_header_compiler=yes
6430 else
6431   echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_header_compiler=no
6435 fi
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6438 echo "${ECHO_T}$ac_header_compiler" >&6
6439
6440 # Is the header present?
6441 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6442 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6443 cat >conftest.$ac_ext <<_ACEOF
6444 /* confdefs.h.  */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h.  */
6449 #include <$ac_header>
6450 _ACEOF
6451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6452   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } >/dev/null; then
6459   if test -s conftest.err; then
6460     ac_cpp_err=$ac_c_preproc_warn_flag
6461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6462   else
6463     ac_cpp_err=
6464   fi
6465 else
6466   ac_cpp_err=yes
6467 fi
6468 if test -z "$ac_cpp_err"; then
6469   ac_header_preproc=yes
6470 else
6471   echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6473
6474   ac_header_preproc=no
6475 fi
6476 rm -f conftest.err conftest.$ac_ext
6477 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6478 echo "${ECHO_T}$ac_header_preproc" >&6
6479
6480 # So?  What about this header?
6481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6482   yes:no: )
6483     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6487     ac_header_preproc=yes
6488     ;;
6489   no:yes:* )
6490     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6492     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6493 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6494     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6496     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6497 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6500     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6502     (
6503       cat <<\_ASBOX
6504 ## ------------------------------------------ ##
6505 ## Report this to the AC_PACKAGE_NAME lists.  ##
6506 ## ------------------------------------------ ##
6507 _ASBOX
6508     ) |
6509       sed "s/^/$as_me: WARNING:     /" >&2
6510     ;;
6511 esac
6512 echo "$as_me:$LINENO: checking for $ac_header" >&5
6513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515   echo $ECHO_N "(cached) $ECHO_C" >&6
6516 else
6517   eval "$as_ac_Header=\$ac_header_preproc"
6518 fi
6519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521
6522 fi
6523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6524   cat >>confdefs.h <<_ACEOF
6525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6526 _ACEOF
6527
6528 fi
6529
6530 done
6531
6532
6533 for ac_func in getpagesize
6534 do
6535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6536 echo "$as_me:$LINENO: checking for $ac_func" >&5
6537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6538 if eval "test \"\${$as_ac_var+set}\" = set"; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6549 #define $ac_func innocuous_$ac_func
6550
6551 /* System header to define __stub macros and hopefully few prototypes,
6552     which can conflict with char $ac_func (); below.
6553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6554     <limits.h> exists even on freestanding compilers.  */
6555
6556 #ifdef __STDC__
6557 # include <limits.h>
6558 #else
6559 # include <assert.h>
6560 #endif
6561
6562 #undef $ac_func
6563
6564 /* Override any gcc2 internal prototype to avoid an error.  */
6565 #ifdef __cplusplus
6566 extern "C"
6567 {
6568 #endif
6569 /* We use char because int might match the return type of a gcc2
6570    builtin and then its argument prototype would still apply.  */
6571 char $ac_func ();
6572 /* The GNU C library defines this for functions which it implements
6573     to always fail with ENOSYS.  Some functions are actually named
6574     something starting with __ and the normal name is an alias.  */
6575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6576 choke me
6577 #else
6578 char (*f) () = $ac_func;
6579 #endif
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583
6584 int
6585 main ()
6586 {
6587 return f != $ac_func;
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext conftest$ac_exeext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594   (eval $ac_link) 2>conftest.er1
6595   ac_status=$?
6596   grep -v '^ *+' conftest.er1 >conftest.err
6597   rm -f conftest.er1
6598   cat conftest.err >&5
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest$ac_exeext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   eval "$as_ac_var=yes"
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 eval "$as_ac_var=no"
6619 fi
6620 rm -f conftest.err conftest.$ac_objext \
6621       conftest$ac_exeext conftest.$ac_ext
6622 fi
6623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6625 if test `eval echo '${'$as_ac_var'}'` = yes; then
6626   cat >>confdefs.h <<_ACEOF
6627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6628 _ACEOF
6629
6630 fi
6631 done
6632
6633 echo "$as_me:$LINENO: checking for working mmap" >&5
6634 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6635 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6636   echo $ECHO_N "(cached) $ECHO_C" >&6
6637 else
6638   if test "$cross_compiling" = yes; then
6639   ac_cv_func_mmap_fixed_mapped=no
6640 else
6641   cat >conftest.$ac_ext <<_ACEOF
6642 /* confdefs.h.  */
6643 _ACEOF
6644 cat confdefs.h >>conftest.$ac_ext
6645 cat >>conftest.$ac_ext <<_ACEOF
6646 /* end confdefs.h.  */
6647 $ac_includes_default
6648 /* malloc might have been renamed as rpl_malloc. */
6649 #undef malloc
6650
6651 /* Thanks to Mike Haertel and Jim Avera for this test.
6652    Here is a matrix of mmap possibilities:
6653         mmap private not fixed
6654         mmap private fixed at somewhere currently unmapped
6655         mmap private fixed at somewhere already mapped
6656         mmap shared not fixed
6657         mmap shared fixed at somewhere currently unmapped
6658         mmap shared fixed at somewhere already mapped
6659    For private mappings, we should verify that changes cannot be read()
6660    back from the file, nor mmap's back from the file at a different
6661    address.  (There have been systems where private was not correctly
6662    implemented like the infamous i386 svr4.0, and systems where the
6663    VM page cache was not coherent with the file system buffer cache
6664    like early versions of FreeBSD and possibly contemporary NetBSD.)
6665    For shared mappings, we should conversely verify that changes get
6666    propagated back to all the places they're supposed to be.
6667
6668    Grep wants private fixed already mapped.
6669    The main things grep needs to know about mmap are:
6670    * does it exist and is it safe to write into the mmap'd area
6671    * how to use it (BSD variants)  */
6672
6673 #include <fcntl.h>
6674 #include <sys/mman.h>
6675
6676 #if !STDC_HEADERS && !HAVE_STDLIB_H
6677 char *malloc ();
6678 #endif
6679
6680 /* This mess was copied from the GNU getpagesize.h.  */
6681 #if !HAVE_GETPAGESIZE
6682 /* Assume that all systems that can run configure have sys/param.h.  */
6683 # if !HAVE_SYS_PARAM_H
6684 #  define HAVE_SYS_PARAM_H 1
6685 # endif
6686
6687 # ifdef _SC_PAGESIZE
6688 #  define getpagesize() sysconf(_SC_PAGESIZE)
6689 # else /* no _SC_PAGESIZE */
6690 #  if HAVE_SYS_PARAM_H
6691 #   include <sys/param.h>
6692 #   ifdef EXEC_PAGESIZE
6693 #    define getpagesize() EXEC_PAGESIZE
6694 #   else /* no EXEC_PAGESIZE */
6695 #    ifdef NBPG
6696 #     define getpagesize() NBPG * CLSIZE
6697 #     ifndef CLSIZE
6698 #      define CLSIZE 1
6699 #     endif /* no CLSIZE */
6700 #    else /* no NBPG */
6701 #     ifdef NBPC
6702 #      define getpagesize() NBPC
6703 #     else /* no NBPC */
6704 #      ifdef PAGESIZE
6705 #       define getpagesize() PAGESIZE
6706 #      endif /* PAGESIZE */
6707 #     endif /* no NBPC */
6708 #    endif /* no NBPG */
6709 #   endif /* no EXEC_PAGESIZE */
6710 #  else /* no HAVE_SYS_PARAM_H */
6711 #   define getpagesize() 8192   /* punt totally */
6712 #  endif /* no HAVE_SYS_PARAM_H */
6713 # endif /* no _SC_PAGESIZE */
6714
6715 #endif /* no HAVE_GETPAGESIZE */
6716
6717 int
6718 main ()
6719 {
6720   char *data, *data2, *data3;
6721   int i, pagesize;
6722   int fd;
6723
6724   pagesize = getpagesize ();
6725
6726   /* First, make a file with some known garbage in it. */
6727   data = (char *) malloc (pagesize);
6728   if (!data)
6729     exit (1);
6730   for (i = 0; i < pagesize; ++i)
6731     *(data + i) = rand ();
6732   umask (0);
6733   fd = creat ("conftest.mmap", 0600);
6734   if (fd < 0)
6735     exit (1);
6736   if (write (fd, data, pagesize) != pagesize)
6737     exit (1);
6738   close (fd);
6739
6740   /* Next, try to mmap the file at a fixed address which already has
6741      something else allocated at it.  If we can, also make sure that
6742      we see the same garbage.  */
6743   fd = open ("conftest.mmap", O_RDWR);
6744   if (fd < 0)
6745     exit (1);
6746   data2 = (char *) malloc (2 * pagesize);
6747   if (!data2)
6748     exit (1);
6749   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6750   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6751                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6752     exit (1);
6753   for (i = 0; i < pagesize; ++i)
6754     if (*(data + i) != *(data2 + i))
6755       exit (1);
6756
6757   /* Finally, make sure that changes to the mapped area do not
6758      percolate back to the file as seen by read().  (This is a bug on
6759      some variants of i386 svr4.0.)  */
6760   for (i = 0; i < pagesize; ++i)
6761     *(data2 + i) = *(data2 + i) + 1;
6762   data3 = (char *) malloc (pagesize);
6763   if (!data3)
6764     exit (1);
6765   if (read (fd, data3, pagesize) != pagesize)
6766     exit (1);
6767   for (i = 0; i < pagesize; ++i)
6768     if (*(data + i) != *(data3 + i))
6769       exit (1);
6770   close (fd);
6771   exit (0);
6772 }
6773 _ACEOF
6774 rm -f conftest$ac_exeext
6775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776   (eval $ac_link) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; }; then
6785   ac_cv_func_mmap_fixed_mapped=yes
6786 else
6787   echo "$as_me: program exited with status $ac_status" >&5
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 ( exit $ac_status )
6792 ac_cv_func_mmap_fixed_mapped=no
6793 fi
6794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6795 fi
6796 fi
6797 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6798 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6799 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6800
6801 cat >>confdefs.h <<\_ACEOF
6802 #define HAVE_MMAP 1
6803 _ACEOF
6804
6805 fi
6806 rm -f conftest.mmap
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6819 unistd.h values.h sys/param.h
6820 do
6821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823   echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 fi
6828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6830 else
6831   # Is the header compilable?
6832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 $ac_includes_default
6841 #include <$ac_header>
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845   (eval $ac_compile) 2>conftest.er1
6846   ac_status=$?
6847   grep -v '^ *+' conftest.er1 >conftest.err
6848   rm -f conftest.er1
6849   cat conftest.err >&5
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); } &&
6852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6858          { ac_try='test -s conftest.$ac_objext'
6859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860   (eval $ac_try) 2>&5
6861   ac_status=$?
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); }; }; then
6864   ac_header_compiler=yes
6865 else
6866   echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6868
6869 ac_header_compiler=no
6870 fi
6871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6873 echo "${ECHO_T}$ac_header_compiler" >&6
6874
6875 # Is the header present?
6876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h.  */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h.  */
6884 #include <$ac_header>
6885 _ACEOF
6886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888   ac_status=$?
6889   grep -v '^ *+' conftest.er1 >conftest.err
6890   rm -f conftest.er1
6891   cat conftest.err >&5
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } >/dev/null; then
6894   if test -s conftest.err; then
6895     ac_cpp_err=$ac_c_preproc_warn_flag
6896     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897   else
6898     ac_cpp_err=
6899   fi
6900 else
6901   ac_cpp_err=yes
6902 fi
6903 if test -z "$ac_cpp_err"; then
6904   ac_header_preproc=yes
6905 else
6906   echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6908
6909   ac_header_preproc=no
6910 fi
6911 rm -f conftest.err conftest.$ac_ext
6912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6913 echo "${ECHO_T}$ac_header_preproc" >&6
6914
6915 # So?  What about this header?
6916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6917   yes:no: )
6918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6922     ac_header_preproc=yes
6923     ;;
6924   no:yes:* )
6925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6937     (
6938       cat <<\_ASBOX
6939 ## ------------------------------------------ ##
6940 ## Report this to the AC_PACKAGE_NAME lists.  ##
6941 ## ------------------------------------------ ##
6942 _ASBOX
6943     ) |
6944       sed "s/^/$as_me: WARNING:     /" >&2
6945     ;;
6946 esac
6947 echo "$as_me:$LINENO: checking for $ac_header" >&5
6948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   eval "$as_ac_Header=\$ac_header_preproc"
6953 fi
6954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6956
6957 fi
6958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959   cat >>confdefs.h <<_ACEOF
6960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961 _ACEOF
6962
6963 fi
6964
6965 done
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6978 __argz_count __argz_stringify __argz_next
6979 do
6980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6981 echo "$as_me:$LINENO: checking for $ac_func" >&5
6982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6983 if eval "test \"\${$as_ac_var+set}\" = set"; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   cat >conftest.$ac_ext <<_ACEOF
6987 /* confdefs.h.  */
6988 _ACEOF
6989 cat confdefs.h >>conftest.$ac_ext
6990 cat >>conftest.$ac_ext <<_ACEOF
6991 /* end confdefs.h.  */
6992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6994 #define $ac_func innocuous_$ac_func
6995
6996 /* System header to define __stub macros and hopefully few prototypes,
6997     which can conflict with char $ac_func (); below.
6998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999     <limits.h> exists even on freestanding compilers.  */
7000
7001 #ifdef __STDC__
7002 # include <limits.h>
7003 #else
7004 # include <assert.h>
7005 #endif
7006
7007 #undef $ac_func
7008
7009 /* Override any gcc2 internal prototype to avoid an error.  */
7010 #ifdef __cplusplus
7011 extern "C"
7012 {
7013 #endif
7014 /* We use char because int might match the return type of a gcc2
7015    builtin and then its argument prototype would still apply.  */
7016 char $ac_func ();
7017 /* The GNU C library defines this for functions which it implements
7018     to always fail with ENOSYS.  Some functions are actually named
7019     something starting with __ and the normal name is an alias.  */
7020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021 choke me
7022 #else
7023 char (*f) () = $ac_func;
7024 #endif
7025 #ifdef __cplusplus
7026 }
7027 #endif
7028
7029 int
7030 main ()
7031 {
7032 return f != $ac_func;
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 rm -f conftest.$ac_objext conftest$ac_exeext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039   (eval $ac_link) 2>conftest.er1
7040   ac_status=$?
7041   grep -v '^ *+' conftest.er1 >conftest.err
7042   rm -f conftest.er1
7043   cat conftest.err >&5
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } &&
7046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048   (eval $ac_try) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); }; } &&
7052          { ac_try='test -s conftest$ac_exeext'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; }; then
7058   eval "$as_ac_var=yes"
7059 else
7060   echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 eval "$as_ac_var=no"
7064 fi
7065 rm -f conftest.err conftest.$ac_objext \
7066       conftest$ac_exeext conftest.$ac_ext
7067 fi
7068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7070 if test `eval echo '${'$as_ac_var'}'` = yes; then
7071   cat >>confdefs.h <<_ACEOF
7072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7073 _ACEOF
7074
7075 fi
7076 done
7077
7078
7079    if test "${ac_cv_func_stpcpy+set}" != "set"; then
7080
7081 for ac_func in stpcpy
7082 do
7083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7084 echo "$as_me:$LINENO: checking for $ac_func" >&5
7085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7086 if eval "test \"\${$as_ac_var+set}\" = set"; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7097 #define $ac_func innocuous_$ac_func
7098
7099 /* System header to define __stub macros and hopefully few prototypes,
7100     which can conflict with char $ac_func (); below.
7101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7102     <limits.h> exists even on freestanding compilers.  */
7103
7104 #ifdef __STDC__
7105 # include <limits.h>
7106 #else
7107 # include <assert.h>
7108 #endif
7109
7110 #undef $ac_func
7111
7112 /* Override any gcc2 internal prototype to avoid an error.  */
7113 #ifdef __cplusplus
7114 extern "C"
7115 {
7116 #endif
7117 /* We use char because int might match the return type of a gcc2
7118    builtin and then its argument prototype would still apply.  */
7119 char $ac_func ();
7120 /* The GNU C library defines this for functions which it implements
7121     to always fail with ENOSYS.  Some functions are actually named
7122     something starting with __ and the normal name is an alias.  */
7123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7124 choke me
7125 #else
7126 char (*f) () = $ac_func;
7127 #endif
7128 #ifdef __cplusplus
7129 }
7130 #endif
7131
7132 int
7133 main ()
7134 {
7135 return f != $ac_func;
7136   ;
7137   return 0;
7138 }
7139 _ACEOF
7140 rm -f conftest.$ac_objext conftest$ac_exeext
7141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142   (eval $ac_link) 2>conftest.er1
7143   ac_status=$?
7144   grep -v '^ *+' conftest.er1 >conftest.err
7145   rm -f conftest.er1
7146   cat conftest.err >&5
7147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148   (exit $ac_status); } &&
7149          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151   (eval $ac_try) 2>&5
7152   ac_status=$?
7153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154   (exit $ac_status); }; } &&
7155          { ac_try='test -s conftest$ac_exeext'
7156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157   (eval $ac_try) 2>&5
7158   ac_status=$?
7159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160   (exit $ac_status); }; }; then
7161   eval "$as_ac_var=yes"
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 eval "$as_ac_var=no"
7167 fi
7168 rm -f conftest.err conftest.$ac_objext \
7169       conftest$ac_exeext conftest.$ac_ext
7170 fi
7171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7173 if test `eval echo '${'$as_ac_var'}'` = yes; then
7174   cat >>confdefs.h <<_ACEOF
7175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7176 _ACEOF
7177
7178 fi
7179 done
7180
7181    fi
7182    if test "${ac_cv_func_stpcpy}" = "yes"; then
7183
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_STPCPY 1
7186 _ACEOF
7187
7188    fi
7189
7190    if test $ac_cv_header_locale_h = yes; then
7191     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7192 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7193 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h.  */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h.  */
7202 #include <locale.h>
7203 int
7204 main ()
7205 {
7206 return LC_MESSAGES
7207   ;
7208   return 0;
7209 }
7210 _ACEOF
7211 rm -f conftest.$ac_objext conftest$ac_exeext
7212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213   (eval $ac_link) 2>conftest.er1
7214   ac_status=$?
7215   grep -v '^ *+' conftest.er1 >conftest.err
7216   rm -f conftest.er1
7217   cat conftest.err >&5
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); } &&
7220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222   (eval $ac_try) 2>&5
7223   ac_status=$?
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); }; } &&
7226          { ac_try='test -s conftest$ac_exeext'
7227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228   (eval $ac_try) 2>&5
7229   ac_status=$?
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); }; }; then
7232   am_cv_val_LC_MESSAGES=yes
7233 else
7234   echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 am_cv_val_LC_MESSAGES=no
7238 fi
7239 rm -f conftest.err conftest.$ac_objext \
7240       conftest$ac_exeext conftest.$ac_ext
7241 fi
7242 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7243 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7244     if test $am_cv_val_LC_MESSAGES = yes; then
7245
7246 cat >>confdefs.h <<\_ACEOF
7247 #define HAVE_LC_MESSAGES 1
7248 _ACEOF
7249
7250     fi
7251   fi
7252    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7253 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7254         # Check whether --enable-nls or --disable-nls was given.
7255 if test "${enable_nls+set}" = set; then
7256   enableval="$enable_nls"
7257   USE_NLS=$enableval
7258 else
7259   USE_NLS=yes
7260 fi;
7261     echo "$as_me:$LINENO: result: $USE_NLS" >&5
7262 echo "${ECHO_T}$USE_NLS" >&6
7263
7264
7265     USE_INCLUDED_LIBINTL=no
7266
7267         if test "$USE_NLS" = "yes"; then
7268       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7269 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7270
7271 # Check whether --with-included-gettext or --without-included-gettext was given.
7272 if test "${with_included_gettext+set}" = set; then
7273   withval="$with_included_gettext"
7274   nls_cv_force_use_gnu_gettext=$withval
7275 else
7276   nls_cv_force_use_gnu_gettext=no
7277 fi;
7278       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7279 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7280
7281       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7282       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7283                                         nls_cv_header_intl=
7284         nls_cv_header_libgt=
7285         CATOBJEXT=
7286
7287         if test "${ac_cv_header_libintl_h+set}" = set; then
7288   echo "$as_me:$LINENO: checking for libintl.h" >&5
7289 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7290 if test "${ac_cv_header_libintl_h+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7294 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7295 else
7296   # Is the header compilable?
7297 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7298 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305 $ac_includes_default
7306 #include <libintl.h>
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310   (eval $ac_compile) 2>conftest.er1
7311   ac_status=$?
7312   grep -v '^ *+' conftest.er1 >conftest.err
7313   rm -f conftest.er1
7314   cat conftest.err >&5
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } &&
7317          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; } &&
7323          { ac_try='test -s conftest.$ac_objext'
7324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325   (eval $ac_try) 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; }; then
7329   ac_header_compiler=yes
7330 else
7331   echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7333
7334 ac_header_compiler=no
7335 fi
7336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6
7339
7340 # Is the header present?
7341 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7342 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h.  */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h.  */
7349 #include <libintl.h>
7350 _ACEOF
7351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } >/dev/null; then
7359   if test -s conftest.err; then
7360     ac_cpp_err=$ac_c_preproc_warn_flag
7361     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7362   else
7363     ac_cpp_err=
7364   fi
7365 else
7366   ac_cpp_err=yes
7367 fi
7368 if test -z "$ac_cpp_err"; then
7369   ac_header_preproc=yes
7370 else
7371   echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374   ac_header_preproc=no
7375 fi
7376 rm -f conftest.err conftest.$ac_ext
7377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 echo "${ECHO_T}$ac_header_preproc" >&6
7379
7380 # So?  What about this header?
7381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382   yes:no: )
7383     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7384 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7386 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7387     ac_header_preproc=yes
7388     ;;
7389   no:yes:* )
7390     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7391 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7392     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7393 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7394     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7395 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7396     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7397 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7398     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7400     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7401 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7402     (
7403       cat <<\_ASBOX
7404 ## ------------------------------------------ ##
7405 ## Report this to the AC_PACKAGE_NAME lists.  ##
7406 ## ------------------------------------------ ##
7407 _ASBOX
7408     ) |
7409       sed "s/^/$as_me: WARNING:     /" >&2
7410     ;;
7411 esac
7412 echo "$as_me:$LINENO: checking for libintl.h" >&5
7413 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7414 if test "${ac_cv_header_libintl_h+set}" = set; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417   ac_cv_header_libintl_h=$ac_header_preproc
7418 fi
7419 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7420 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7421
7422 fi
7423 if test $ac_cv_header_libintl_h = yes; then
7424   echo "$as_me:$LINENO: checking for gettext in libc" >&5
7425 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7426 if test "${gt_cv_func_gettext_libc+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h.  */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h.  */
7435 #include <libintl.h>
7436 int
7437 main ()
7438 {
7439 return (int) gettext ("")
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446   (eval $ac_link) 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; } &&
7459          { ac_try='test -s conftest$ac_exeext'
7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461   (eval $ac_try) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); }; }; then
7465   gt_cv_func_gettext_libc=yes
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 gt_cv_func_gettext_libc=no
7471 fi
7472 rm -f conftest.err conftest.$ac_objext \
7473       conftest$ac_exeext conftest.$ac_ext
7474 fi
7475 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7476 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7477
7478            if test "$gt_cv_func_gettext_libc" != "yes"; then
7479              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7480 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7481 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   ac_check_lib_save_LIBS=$LIBS
7485 LIBS="-lintl  $LIBS"
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h.  */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h.  */
7492
7493 /* Override any gcc2 internal prototype to avoid an error.  */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 /* We use char because int might match the return type of a gcc2
7498    builtin and then its argument prototype would still apply.  */
7499 char bindtextdomain ();
7500 int
7501 main ()
7502 {
7503 bindtextdomain ();
7504   ;
7505   return 0;
7506 }
7507 _ACEOF
7508 rm -f conftest.$ac_objext conftest$ac_exeext
7509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510   (eval $ac_link) 2>conftest.er1
7511   ac_status=$?
7512   grep -v '^ *+' conftest.er1 >conftest.err
7513   rm -f conftest.er1
7514   cat conftest.err >&5
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -z "$ac_c_werror_flag"                   || 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"                   || test ! -s conftest.err'
7573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574   (eval $ac_try) 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; } &&
7578          { ac_try='test -s conftest$ac_exeext'
7579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580   (eval $ac_try) 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); }; }; then
7584   gt_cv_func_gettext_libintl=yes
7585 else
7586   echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 gt_cv_func_gettext_libintl=no
7590 fi
7591 rm -f conftest.err conftest.$ac_objext \
7592       conftest$ac_exeext conftest.$ac_ext
7593 fi
7594 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7595 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7596 fi
7597
7598            fi
7599
7600            if test "$gt_cv_func_gettext_libc" = "yes" \
7601               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_GETTEXT 1
7605 _ACEOF
7606
7607               # Extract the first word of "msgfmt", so it can be a program name with args.
7608 set dummy msgfmt; ac_word=$2
7609 echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7611 if test "${ac_cv_path_MSGFMT+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614   case "$MSGFMT" in
7615   /*)
7616   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7617   ;;
7618   *)
7619   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7620   for ac_dir in $PATH; do
7621     test -z "$ac_dir" && ac_dir=.
7622     if test -f $ac_dir/$ac_word; then
7623       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7624         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7625         break
7626       fi
7627     fi
7628   done
7629   IFS="$ac_save_ifs"
7630   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7631   ;;
7632 esac
7633 fi
7634 MSGFMT="$ac_cv_path_MSGFMT"
7635 if test -n "$MSGFMT"; then
7636   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7637 echo "${ECHO_T}$MSGFMT" >&6
7638 else
7639   echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7641 fi
7642               if test "$MSGFMT" != "no"; then
7643
7644 for ac_func in dcgettext
7645 do
7646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647 echo "$as_me:$LINENO: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7649 if eval "test \"\${$as_ac_var+set}\" = set"; then
7650   echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652   cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7660 #define $ac_func innocuous_$ac_func
7661
7662 /* System header to define __stub macros and hopefully few prototypes,
7663     which can conflict with char $ac_func (); below.
7664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665     <limits.h> exists even on freestanding compilers.  */
7666
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7672
7673 #undef $ac_func
7674
7675 /* Override any gcc2 internal prototype to avoid an error.  */
7676 #ifdef __cplusplus
7677 extern "C"
7678 {
7679 #endif
7680 /* We use char because int might match the return type of a gcc2
7681    builtin and then its argument prototype would still apply.  */
7682 char $ac_func ();
7683 /* The GNU C library defines this for functions which it implements
7684     to always fail with ENOSYS.  Some functions are actually named
7685     something starting with __ and the normal name is an alias.  */
7686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7687 choke me
7688 #else
7689 char (*f) () = $ac_func;
7690 #endif
7691 #ifdef __cplusplus
7692 }
7693 #endif
7694
7695 int
7696 main ()
7697 {
7698 return f != $ac_func;
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 rm -f conftest.$ac_objext conftest$ac_exeext
7704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705   (eval $ac_link) 2>conftest.er1
7706   ac_status=$?
7707   grep -v '^ *+' conftest.er1 >conftest.err
7708   rm -f conftest.er1
7709   cat conftest.err >&5
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); } &&
7712          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714   (eval $ac_try) 2>&5
7715   ac_status=$?
7716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717   (exit $ac_status); }; } &&
7718          { ac_try='test -s conftest$ac_exeext'
7719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720   (eval $ac_try) 2>&5
7721   ac_status=$?
7722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723   (exit $ac_status); }; }; then
7724   eval "$as_ac_var=yes"
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729 eval "$as_ac_var=no"
7730 fi
7731 rm -f conftest.err conftest.$ac_objext \
7732       conftest$ac_exeext conftest.$ac_ext
7733 fi
7734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7736 if test `eval echo '${'$as_ac_var'}'` = yes; then
7737   cat >>confdefs.h <<_ACEOF
7738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7739 _ACEOF
7740
7741 fi
7742 done
7743
7744                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7745 set dummy gmsgfmt; ac_word=$2
7746 echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   case $GMSGFMT in
7752   [\\/]* | ?:[\\/]*)
7753   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7754   ;;
7755   *)
7756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759   IFS=$as_save_IFS
7760   test -z "$as_dir" && as_dir=.
7761   for ac_exec_ext in '' $ac_executable_extensions; do
7762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765     break 2
7766   fi
7767 done
7768 done
7769
7770   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7771   ;;
7772 esac
7773 fi
7774 GMSGFMT=$ac_cv_path_GMSGFMT
7775
7776 if test -n "$GMSGFMT"; then
7777   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7778 echo "${ECHO_T}$GMSGFMT" >&6
7779 else
7780   echo "$as_me:$LINENO: result: no" >&5
7781 echo "${ECHO_T}no" >&6
7782 fi
7783
7784                 # Extract the first word of "xgettext", so it can be a program name with args.
7785 set dummy xgettext; ac_word=$2
7786 echo "$as_me:$LINENO: checking for $ac_word" >&5
7787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7789   echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791   case "$XGETTEXT" in
7792   /*)
7793   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7794   ;;
7795   *)
7796   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7797   for ac_dir in $PATH; do
7798     test -z "$ac_dir" && ac_dir=.
7799     if test -f $ac_dir/$ac_word; then
7800       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7801         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7802         break
7803       fi
7804     fi
7805   done
7806   IFS="$ac_save_ifs"
7807   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7808   ;;
7809 esac
7810 fi
7811 XGETTEXT="$ac_cv_path_XGETTEXT"
7812 if test -n "$XGETTEXT"; then
7813   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7814 echo "${ECHO_T}$XGETTEXT" >&6
7815 else
7816   echo "$as_me:$LINENO: result: no" >&5
7817 echo "${ECHO_T}no" >&6
7818 fi
7819
7820                 cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h.  */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h.  */
7826
7827 int
7828 main ()
7829 {
7830 extern int _nl_msg_cat_cntr;
7831                                return _nl_msg_cat_cntr
7832   ;
7833   return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838   (eval $ac_link) 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } &&
7845          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847   (eval $ac_try) 2>&5
7848   ac_status=$?
7849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850   (exit $ac_status); }; } &&
7851          { ac_try='test -s conftest$ac_exeext'
7852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853   (eval $ac_try) 2>&5
7854   ac_status=$?
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); }; }; then
7857   CATOBJEXT=.gmo
7858                    DATADIRNAME=share
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863 CATOBJEXT=.mo
7864                    DATADIRNAME=lib
7865 fi
7866 rm -f conftest.err conftest.$ac_objext \
7867       conftest$ac_exeext conftest.$ac_ext
7868                 INSTOBJEXT=.mo
7869               fi
7870             fi
7871
7872 fi
7873
7874
7875
7876
7877         if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7878           # Neither gettext nor catgets in included in the C library.
7879           # Fall back on GNU gettext library (assuming it is present).
7880           nls_cv_use_gnu_gettext=yes
7881         fi
7882       fi
7883
7884       if test "$nls_cv_use_gnu_gettext" = "yes"; then
7885                 INTLOBJS="\$(GETTOBJS)"
7886         # Extract the first word of "msgfmt", so it can be a program name with args.
7887 set dummy msgfmt; ac_word=$2
7888 echo "$as_me:$LINENO: checking for $ac_word" >&5
7889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890 if test "${ac_cv_path_MSGFMT+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   case "$MSGFMT" in
7894   /*)
7895   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7896   ;;
7897   *)
7898   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7899   for ac_dir in $PATH; do
7900     test -z "$ac_dir" && ac_dir=.
7901     if test -f $ac_dir/$ac_word; then
7902       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7903         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7904         break
7905       fi
7906     fi
7907   done
7908   IFS="$ac_save_ifs"
7909   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7910   ;;
7911 esac
7912 fi
7913 MSGFMT="$ac_cv_path_MSGFMT"
7914 if test -n "$MSGFMT"; then
7915   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7916 echo "${ECHO_T}$MSGFMT" >&6
7917 else
7918   echo "$as_me:$LINENO: result: no" >&5
7919 echo "${ECHO_T}no" >&6
7920 fi
7921
7922         # Extract the first word of "gmsgfmt", so it can be a program name with args.
7923 set dummy gmsgfmt; ac_word=$2
7924 echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   case $GMSGFMT in
7930   [\\/]* | ?:[\\/]*)
7931   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7932   ;;
7933   *)
7934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937   IFS=$as_save_IFS
7938   test -z "$as_dir" && as_dir=.
7939   for ac_exec_ext in '' $ac_executable_extensions; do
7940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943     break 2
7944   fi
7945 done
7946 done
7947
7948   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7949   ;;
7950 esac
7951 fi
7952 GMSGFMT=$ac_cv_path_GMSGFMT
7953
7954 if test -n "$GMSGFMT"; then
7955   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7956 echo "${ECHO_T}$GMSGFMT" >&6
7957 else
7958   echo "$as_me:$LINENO: result: no" >&5
7959 echo "${ECHO_T}no" >&6
7960 fi
7961
7962         # Extract the first word of "xgettext", so it can be a program name with args.
7963 set dummy xgettext; ac_word=$2
7964 echo "$as_me:$LINENO: checking for $ac_word" >&5
7965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7966 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7967   echo $ECHO_N "(cached) $ECHO_C" >&6
7968 else
7969   case "$XGETTEXT" in
7970   /*)
7971   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7972   ;;
7973   *)
7974   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7975   for ac_dir in $PATH; do
7976     test -z "$ac_dir" && ac_dir=.
7977     if test -f $ac_dir/$ac_word; then
7978       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7979         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7980         break
7981       fi
7982     fi
7983   done
7984   IFS="$ac_save_ifs"
7985   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7986   ;;
7987 esac
7988 fi
7989 XGETTEXT="$ac_cv_path_XGETTEXT"
7990 if test -n "$XGETTEXT"; then
7991   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7992 echo "${ECHO_T}$XGETTEXT" >&6
7993 else
7994   echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6
7996 fi
7997
7998
7999         USE_INCLUDED_LIBINTL=yes
8000         CATOBJEXT=.gmo
8001         INSTOBJEXT=.mo
8002         DATADIRNAME=share
8003         INTLDEPS='$(top_builddir)/../intl/libintl.a'
8004         INTLLIBS=$INTLDEPS
8005         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8006         nls_cv_header_intl=libintl.h
8007         nls_cv_header_libgt=libgettext.h
8008       fi
8009
8010             if test "$XGETTEXT" != ":"; then
8011                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8012           : ;
8013         else
8014           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8015 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8016           XGETTEXT=":"
8017         fi
8018       fi
8019
8020       # We need to process the po/ directory.
8021       POSUB=po
8022     else
8023       DATADIRNAME=share
8024       nls_cv_header_intl=libintl.h
8025       nls_cv_header_libgt=libgettext.h
8026     fi
8027
8028     # If this is used in GNU gettext we have to set USE_NLS to `yes'
8029     # because some of the sources are only built for this goal.
8030     if test "$PACKAGE" = gettext; then
8031       USE_NLS=yes
8032       USE_INCLUDED_LIBINTL=yes
8033     fi
8034
8035                 for lang in $ALL_LINGUAS; do
8036       GMOFILES="$GMOFILES $lang.gmo"
8037       POFILES="$POFILES $lang.po"
8038     done
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051     if test "x$CATOBJEXT" != "x"; then
8052
8053 cat >>confdefs.h <<\_ACEOF
8054 #define ENABLE_NLS 1
8055 _ACEOF
8056
8057     fi
8058
8059
8060    if test "x$CATOBJEXT" != "x"; then
8061      if test "x$ALL_LINGUAS" = "x"; then
8062        LINGUAS=
8063      else
8064        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8065 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8066        NEW_LINGUAS=
8067        for lang in ${LINGUAS=$ALL_LINGUAS}; do
8068          case "$ALL_LINGUAS" in
8069           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8070          esac
8071        done
8072        LINGUAS=$NEW_LINGUAS
8073        echo "$as_me:$LINENO: result: $LINGUAS" >&5
8074 echo "${ECHO_T}$LINGUAS" >&6
8075      fi
8076
8077           if test -n "$LINGUAS"; then
8078        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8079      fi
8080    fi
8081
8082             if test $ac_cv_header_locale_h = yes; then
8083      INCLUDE_LOCALE_H="#include <locale.h>"
8084    else
8085      INCLUDE_LOCALE_H="\
8086 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
8087    fi
8088
8089
8090             if test -f $srcdir/po2tbl.sed.in; then
8091       if test "$CATOBJEXT" = ".cat"; then
8092          if test "${ac_cv_header_linux_version_h+set}" = set; then
8093   echo "$as_me:$LINENO: checking for linux/version.h" >&5
8094 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8095 if test "${ac_cv_header_linux_version_h+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 fi
8098 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8099 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8100 else
8101   # Is the header compilable?
8102 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8103 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8104 cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 $ac_includes_default
8111 #include <linux/version.h>
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115   (eval $ac_compile) 2>conftest.er1
8116   ac_status=$?
8117   grep -v '^ *+' conftest.er1 >conftest.err
8118   rm -f conftest.er1
8119   cat conftest.err >&5
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } &&
8122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124   (eval $ac_try) 2>&5
8125   ac_status=$?
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); }; } &&
8128          { ac_try='test -s conftest.$ac_objext'
8129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130   (eval $ac_try) 2>&5
8131   ac_status=$?
8132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133   (exit $ac_status); }; }; then
8134   ac_header_compiler=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_header_compiler=no
8140 fi
8141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8143 echo "${ECHO_T}$ac_header_compiler" >&6
8144
8145 # Is the header present?
8146 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8147 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8148 cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h.  */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h.  */
8154 #include <linux/version.h>
8155 _ACEOF
8156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158   ac_status=$?
8159   grep -v '^ *+' conftest.er1 >conftest.err
8160   rm -f conftest.er1
8161   cat conftest.err >&5
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } >/dev/null; then
8164   if test -s conftest.err; then
8165     ac_cpp_err=$ac_c_preproc_warn_flag
8166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8167   else
8168     ac_cpp_err=
8169   fi
8170 else
8171   ac_cpp_err=yes
8172 fi
8173 if test -z "$ac_cpp_err"; then
8174   ac_header_preproc=yes
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179   ac_header_preproc=no
8180 fi
8181 rm -f conftest.err conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183 echo "${ECHO_T}$ac_header_preproc" >&6
8184
8185 # So?  What about this header?
8186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8187   yes:no: )
8188     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8189 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8191 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8192     ac_header_preproc=yes
8193     ;;
8194   no:yes:* )
8195     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8197     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
8199     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8200 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8201     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
8202 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8203     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8204 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8205     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8206 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8207     (
8208       cat <<\_ASBOX
8209 ## ------------------------------------------ ##
8210 ## Report this to the AC_PACKAGE_NAME lists.  ##
8211 ## ------------------------------------------ ##
8212 _ASBOX
8213     ) |
8214       sed "s/^/$as_me: WARNING:     /" >&2
8215     ;;
8216 esac
8217 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8218 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8219 if test "${ac_cv_header_linux_version_h+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   ac_cv_header_linux_version_h=$ac_header_preproc
8223 fi
8224 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8225 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8226
8227 fi
8228 if test $ac_cv_header_linux_version_h = yes; then
8229   msgformat=linux
8230 else
8231   msgformat=xopen
8232 fi
8233
8234
8235
8236                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8237       fi
8238             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8239          $srcdir/po2tbl.sed.in > po2tbl.sed
8240    fi
8241
8242             if test "$PACKAGE" = "gettext"; then
8243      GT_NO="#NO#"
8244      GT_YES=
8245    else
8246      GT_NO=
8247      GT_YES="#YES#"
8248    fi
8249
8250
8251
8252    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8253
8254
8255       l=
8256
8257
8258             if test -f $srcdir/po/POTFILES.in; then
8259       test -d po || mkdir po
8260       if test "x$srcdir" != "x."; then
8261          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8262             posrcprefix="$srcdir/"
8263          else
8264             posrcprefix="../$srcdir/"
8265          fi
8266       else
8267          posrcprefix="../"
8268       fi
8269       rm -f po/POTFILES
8270       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8271          < $srcdir/po/POTFILES.in > po/POTFILES
8272    fi
8273
8274
8275 # Permit host specific settings.
8276 . ${srcdir}/configure.host
8277
8278
8279 # Find a good install program.  We prefer a C program (faster),
8280 # so one script is as good as another.  But avoid the broken or
8281 # incompatible versions:
8282 # SysV /etc/install, /usr/sbin/install
8283 # SunOS /usr/etc/install
8284 # IRIX /sbin/install
8285 # AIX /bin/install
8286 # AmigaOS /C/install, which installs bootblocks on floppy discs
8287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8290 # OS/2's system install, which has a completely different semantic
8291 # ./install, which can be erroneously created by make from ./install.sh.
8292 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8294 if test -z "$INSTALL"; then
8295 if test "${ac_cv_path_install+set}" = set; then
8296   echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8300 do
8301   IFS=$as_save_IFS
8302   test -z "$as_dir" && as_dir=.
8303   # Account for people who put trailing slashes in PATH elements.
8304 case $as_dir/ in
8305   ./ | .// | /cC/* | \
8306   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8307   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8308   /usr/ucb/* ) ;;
8309   *)
8310     # OSF1 and SCO ODT 3.0 have their own names for install.
8311     # Don't use installbsd from OSF since it installs stuff as root
8312     # by default.
8313     for ac_prog in ginstall scoinst install; do
8314       for ac_exec_ext in '' $ac_executable_extensions; do
8315         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8316           if test $ac_prog = install &&
8317             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8318             # AIX install.  It has an incompatible calling convention.
8319             :
8320           elif test $ac_prog = install &&
8321             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8322             # program-specific install script used by HP pwplus--don't use.
8323             :
8324           else
8325             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8326             break 3
8327           fi
8328         fi
8329       done
8330     done
8331     ;;
8332 esac
8333 done
8334
8335
8336 fi
8337   if test "${ac_cv_path_install+set}" = set; then
8338     INSTALL=$ac_cv_path_install
8339   else
8340     # As a last resort, use the slow shell script.  We don't cache a
8341     # path for INSTALL within a source directory, because that will
8342     # break other packages using the cache if that directory is
8343     # removed, or if the path is relative.
8344     INSTALL=$ac_install_sh
8345   fi
8346 fi
8347 echo "$as_me:$LINENO: result: $INSTALL" >&5
8348 echo "${ECHO_T}$INSTALL" >&6
8349
8350 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8351 # It thinks the first close brace ends the variable substitution.
8352 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8353
8354 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8355
8356 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8357
8358
8359 BFD_HOST_64BIT_LONG=0
8360 BFD_HOST_LONG_LONG=0
8361 BFD_HOST_64_BIT_DEFINED=0
8362 BFD_HOST_64_BIT=
8363 BFD_HOST_U_64_BIT=
8364
8365 echo "$as_me:$LINENO: checking for long long" >&5
8366 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8367 if test "${bfd_cv_has_long_long+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376
8377 int
8378 main ()
8379 {
8380 unsigned long long ll = 18446744073709551615ULL;
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387   (eval $ac_compile) 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396   (eval $ac_try) 2>&5
8397   ac_status=$?
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); }; } &&
8400          { ac_try='test -s conftest.$ac_objext'
8401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402   (eval $ac_try) 2>&5
8403   ac_status=$?
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); }; }; then
8406   bfd_cv_has_long_long=yes
8407 else
8408   echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 bfd_cv_has_long_long=no
8412 fi
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 fi
8415
8416 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8417 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8418 if test $bfd_cv_has_long_long = yes; then
8419   BFD_HOST_LONG_LONG=1
8420   echo "$as_me:$LINENO: checking for long long" >&5
8421 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8422 if test "${ac_cv_type_long_long+set}" = set; then
8423   echo $ECHO_N "(cached) $ECHO_C" >&6
8424 else
8425   cat >conftest.$ac_ext <<_ACEOF
8426 /* confdefs.h.  */
8427 _ACEOF
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h.  */
8431 $ac_includes_default
8432 int
8433 main ()
8434 {
8435 if ((long long *) 0)
8436   return 0;
8437 if (sizeof (long long))
8438   return 0;
8439   ;
8440   return 0;
8441 }
8442 _ACEOF
8443 rm -f conftest.$ac_objext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445   (eval $ac_compile) 2>conftest.er1
8446   ac_status=$?
8447   grep -v '^ *+' conftest.er1 >conftest.err
8448   rm -f conftest.er1
8449   cat conftest.err >&5
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); } &&
8452          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454   (eval $ac_try) 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; } &&
8458          { ac_try='test -s conftest.$ac_objext'
8459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460   (eval $ac_try) 2>&5
8461   ac_status=$?
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); }; }; then
8464   ac_cv_type_long_long=yes
8465 else
8466   echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_cv_type_long_long=no
8470 fi
8471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8472 fi
8473 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8474 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8475
8476 echo "$as_me:$LINENO: checking size of long long" >&5
8477 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8478 if test "${ac_cv_sizeof_long_long+set}" = set; then
8479   echo $ECHO_N "(cached) $ECHO_C" >&6
8480 else
8481   if test "$ac_cv_type_long_long" = yes; then
8482   # The cast to unsigned long works around a bug in the HP C Compiler
8483   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8484   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8485   # This bug is HP SR number 8606223364.
8486   if test "$cross_compiling" = yes; then
8487   # Depending upon the size, compute the lo and hi bounds.
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494 $ac_includes_default
8495 int
8496 main ()
8497 {
8498 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8499 test_array [0] = 0
8500
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507   (eval $ac_compile) 2>conftest.er1
8508   ac_status=$?
8509   grep -v '^ *+' conftest.er1 >conftest.err
8510   rm -f conftest.er1
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); } &&
8514          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516   (eval $ac_try) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; } &&
8520          { ac_try='test -s conftest.$ac_objext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_lo=0 ac_mid=0
8527   while :; do
8528     cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534 $ac_includes_default
8535 int
8536 main ()
8537 {
8538 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8539 test_array [0] = 0
8540
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547   (eval $ac_compile) 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; } &&
8560          { ac_try='test -s conftest.$ac_objext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_hi=$ac_mid; break
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_lo=`expr $ac_mid + 1`
8572                     if test $ac_lo -le $ac_mid; then
8573                       ac_lo= ac_hi=
8574                       break
8575                     fi
8576                     ac_mid=`expr 2 '*' $ac_mid + 1`
8577 fi
8578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8579   done
8580 else
8581   echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8583
8584 cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590 $ac_includes_default
8591 int
8592 main ()
8593 {
8594 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8595 test_array [0] = 0
8596
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603   (eval $ac_compile) 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; } &&
8616          { ac_try='test -s conftest.$ac_objext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   ac_hi=-1 ac_mid=-1
8623   while :; do
8624     cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8630 $ac_includes_default
8631 int
8632 main ()
8633 {
8634 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8635 test_array [0] = 0
8636
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8643   (eval $ac_compile) 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } &&
8650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652   (eval $ac_try) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); }; } &&
8656          { ac_try='test -s conftest.$ac_objext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_lo=$ac_mid; break
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667 ac_hi=`expr '(' $ac_mid ')' - 1`
8668                        if test $ac_mid -le $ac_hi; then
8669                          ac_lo= ac_hi=
8670                          break
8671                        fi
8672                        ac_mid=`expr 2 '*' $ac_mid`
8673 fi
8674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675   done
8676 else
8677   echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 ac_lo= ac_hi=
8681 fi
8682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8683 fi
8684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685 # Binary search between lo and hi bounds.
8686 while test "x$ac_lo" != "x$ac_hi"; do
8687   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8688   cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694 $ac_includes_default
8695 int
8696 main ()
8697 {
8698 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8699 test_array [0] = 0
8700
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707   (eval $ac_compile) 2>conftest.er1
8708   ac_status=$?
8709   grep -v '^ *+' conftest.er1 >conftest.err
8710   rm -f conftest.er1
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } &&
8714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; } &&
8720          { ac_try='test -s conftest.$ac_objext'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; }; then
8726   ac_hi=$ac_mid
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_lo=`expr '(' $ac_mid ')' + 1`
8732 fi
8733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8734 done
8735 case $ac_lo in
8736 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8737 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8738 See \`config.log' for more details." >&5
8739 echo "$as_me: error: cannot compute sizeof (long long), 77
8740 See \`config.log' for more details." >&2;}
8741    { (exit 1); exit 1; }; } ;;
8742 esac
8743 else
8744   if test "$cross_compiling" = yes; then
8745   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8746 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8747    { (exit 1); exit 1; }; }
8748 else
8749   cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8755 $ac_includes_default
8756 long longval () { return (long) (sizeof (long long)); }
8757 unsigned long ulongval () { return (long) (sizeof (long long)); }
8758 #include <stdio.h>
8759 #include <stdlib.h>
8760 int
8761 main ()
8762 {
8763
8764   FILE *f = fopen ("conftest.val", "w");
8765   if (! f)
8766     exit (1);
8767   if (((long) (sizeof (long long))) < 0)
8768     {
8769       long i = longval ();
8770       if (i != ((long) (sizeof (long long))))
8771         exit (1);
8772       fprintf (f, "%ld\n", i);
8773     }
8774   else
8775     {
8776       unsigned long i = ulongval ();
8777       if (i != ((long) (sizeof (long long))))
8778         exit (1);
8779       fprintf (f, "%lu\n", i);
8780     }
8781   exit (ferror (f) || fclose (f) != 0);
8782
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 rm -f conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789   (eval $ac_link) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; }; then
8798   ac_cv_sizeof_long_long=`cat conftest.val`
8799 else
8800   echo "$as_me: program exited with status $ac_status" >&5
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ( exit $ac_status )
8805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8806 See \`config.log' for more details." >&5
8807 echo "$as_me: error: cannot compute sizeof (long long), 77
8808 See \`config.log' for more details." >&2;}
8809    { (exit 1); exit 1; }; }
8810 fi
8811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8812 fi
8813 fi
8814 rm -f conftest.val
8815 else
8816   ac_cv_sizeof_long_long=0
8817 fi
8818 fi
8819 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8820 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8821 cat >>confdefs.h <<_ACEOF
8822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8823 _ACEOF
8824
8825
8826 fi
8827
8828 echo "$as_me:$LINENO: checking for long" >&5
8829 echo $ECHO_N "checking for long... $ECHO_C" >&6
8830 if test "${ac_cv_type_long+set}" = set; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   cat >conftest.$ac_ext <<_ACEOF
8834 /* confdefs.h.  */
8835 _ACEOF
8836 cat confdefs.h >>conftest.$ac_ext
8837 cat >>conftest.$ac_ext <<_ACEOF
8838 /* end confdefs.h.  */
8839 $ac_includes_default
8840 int
8841 main ()
8842 {
8843 if ((long *) 0)
8844   return 0;
8845 if (sizeof (long))
8846   return 0;
8847   ;
8848   return 0;
8849 }
8850 _ACEOF
8851 rm -f conftest.$ac_objext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853   (eval $ac_compile) 2>conftest.er1
8854   ac_status=$?
8855   grep -v '^ *+' conftest.er1 >conftest.err
8856   rm -f conftest.er1
8857   cat conftest.err >&5
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); } &&
8860          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862   (eval $ac_try) 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868   (eval $ac_try) 2>&5
8869   ac_status=$?
8870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871   (exit $ac_status); }; }; then
8872   ac_cv_type_long=yes
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877 ac_cv_type_long=no
8878 fi
8879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8882 echo "${ECHO_T}$ac_cv_type_long" >&6
8883
8884 echo "$as_me:$LINENO: checking size of long" >&5
8885 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8886 if test "${ac_cv_sizeof_long+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   if test "$ac_cv_type_long" = yes; then
8890   # The cast to unsigned long works around a bug in the HP C Compiler
8891   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8892   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8893   # This bug is HP SR number 8606223364.
8894   if test "$cross_compiling" = yes; then
8895   # Depending upon the size, compute the lo and hi bounds.
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902 $ac_includes_default
8903 int
8904 main ()
8905 {
8906 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8907 test_array [0] = 0
8908
8909   ;
8910   return 0;
8911 }
8912 _ACEOF
8913 rm -f conftest.$ac_objext
8914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915   (eval $ac_compile) 2>conftest.er1
8916   ac_status=$?
8917   grep -v '^ *+' conftest.er1 >conftest.err
8918   rm -f conftest.er1
8919   cat conftest.err >&5
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } &&
8922          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924   (eval $ac_try) 2>&5
8925   ac_status=$?
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); }; } &&
8928          { ac_try='test -s conftest.$ac_objext'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; }; then
8934   ac_lo=0 ac_mid=0
8935   while :; do
8936     cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h.  */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h.  */
8942 $ac_includes_default
8943 int
8944 main ()
8945 {
8946 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8947 test_array [0] = 0
8948
8949   ;
8950   return 0;
8951 }
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955   (eval $ac_compile) 2>conftest.er1
8956   ac_status=$?
8957   grep -v '^ *+' conftest.er1 >conftest.err
8958   rm -f conftest.er1
8959   cat conftest.err >&5
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; } &&
8968          { ac_try='test -s conftest.$ac_objext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_hi=$ac_mid; break
8975 else
8976   echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 ac_lo=`expr $ac_mid + 1`
8980                     if test $ac_lo -le $ac_mid; then
8981                       ac_lo= ac_hi=
8982                       break
8983                     fi
8984                     ac_mid=`expr 2 '*' $ac_mid + 1`
8985 fi
8986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987   done
8988 else
8989   echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 cat >conftest.$ac_ext <<_ACEOF
8993 /* confdefs.h.  */
8994 _ACEOF
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h.  */
8998 $ac_includes_default
8999 int
9000 main ()
9001 {
9002 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9003 test_array [0] = 0
9004
9005   ;
9006   return 0;
9007 }
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011   (eval $ac_compile) 2>conftest.er1
9012   ac_status=$?
9013   grep -v '^ *+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020   (eval $ac_try) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; } &&
9024          { ac_try='test -s conftest.$ac_objext'
9025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026   (eval $ac_try) 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; }; then
9030   ac_hi=-1 ac_mid=-1
9031   while :; do
9032     cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h.  */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h.  */
9038 $ac_includes_default
9039 int
9040 main ()
9041 {
9042 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9043 test_array [0] = 0
9044
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 rm -f conftest.$ac_objext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051   (eval $ac_compile) 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; } &&
9064          { ac_try='test -s conftest.$ac_objext'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_lo=$ac_mid; break
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_hi=`expr '(' $ac_mid ')' - 1`
9076                        if test $ac_mid -le $ac_hi; then
9077                          ac_lo= ac_hi=
9078                          break
9079                        fi
9080                        ac_mid=`expr 2 '*' $ac_mid`
9081 fi
9082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083   done
9084 else
9085   echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_lo= ac_hi=
9089 fi
9090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9091 fi
9092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093 # Binary search between lo and hi bounds.
9094 while test "x$ac_lo" != "x$ac_hi"; do
9095   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9096   cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h.  */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h.  */
9102 $ac_includes_default
9103 int
9104 main ()
9105 {
9106 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9107 test_array [0] = 0
9108
9109   ;
9110   return 0;
9111 }
9112 _ACEOF
9113 rm -f conftest.$ac_objext
9114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115   (eval $ac_compile) 2>conftest.er1
9116   ac_status=$?
9117   grep -v '^ *+' conftest.er1 >conftest.err
9118   rm -f conftest.er1
9119   cat conftest.err >&5
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); } &&
9122          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124   (eval $ac_try) 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; } &&
9128          { ac_try='test -s conftest.$ac_objext'
9129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130   (eval $ac_try) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); }; }; then
9134   ac_hi=$ac_mid
9135 else
9136   echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9138
9139 ac_lo=`expr '(' $ac_mid ')' + 1`
9140 fi
9141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9142 done
9143 case $ac_lo in
9144 ?*) ac_cv_sizeof_long=$ac_lo;;
9145 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9146 See \`config.log' for more details." >&5
9147 echo "$as_me: error: cannot compute sizeof (long), 77
9148 See \`config.log' for more details." >&2;}
9149    { (exit 1); exit 1; }; } ;;
9150 esac
9151 else
9152   if test "$cross_compiling" = yes; then
9153   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9154 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9155    { (exit 1); exit 1; }; }
9156 else
9157   cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h.  */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h.  */
9163 $ac_includes_default
9164 long longval () { return (long) (sizeof (long)); }
9165 unsigned long ulongval () { return (long) (sizeof (long)); }
9166 #include <stdio.h>
9167 #include <stdlib.h>
9168 int
9169 main ()
9170 {
9171
9172   FILE *f = fopen ("conftest.val", "w");
9173   if (! f)
9174     exit (1);
9175   if (((long) (sizeof (long))) < 0)
9176     {
9177       long i = longval ();
9178       if (i != ((long) (sizeof (long))))
9179         exit (1);
9180       fprintf (f, "%ld\n", i);
9181     }
9182   else
9183     {
9184       unsigned long i = ulongval ();
9185       if (i != ((long) (sizeof (long))))
9186         exit (1);
9187       fprintf (f, "%lu\n", i);
9188     }
9189   exit (ferror (f) || fclose (f) != 0);
9190
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197   (eval $ac_link) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202   (eval $ac_try) 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   ac_cv_sizeof_long=`cat conftest.val`
9207 else
9208   echo "$as_me: program exited with status $ac_status" >&5
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 ( exit $ac_status )
9213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9214 See \`config.log' for more details." >&5
9215 echo "$as_me: error: cannot compute sizeof (long), 77
9216 See \`config.log' for more details." >&2;}
9217    { (exit 1); exit 1; }; }
9218 fi
9219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9220 fi
9221 fi
9222 rm -f conftest.val
9223 else
9224   ac_cv_sizeof_long=0
9225 fi
9226 fi
9227 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9228 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9229 cat >>confdefs.h <<_ACEOF
9230 #define SIZEOF_LONG $ac_cv_sizeof_long
9231 _ACEOF
9232
9233
9234 if test "x${ac_cv_sizeof_long}" = "x8"; then
9235   host64=true
9236   BFD_HOST_64BIT_LONG=1
9237   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9238   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9239 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9240   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9241   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9242 fi
9243
9244 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9245   BFD_HOST_64_BIT_DEFINED=1
9246   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9247   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9248 fi
9249
9250
9251
9252
9253
9254
9255
9256 # Put a plausible default for CC_FOR_BUILD in Makefile.
9257 if test -z "$CC_FOR_BUILD"; then
9258   if test "x$cross_compiling" = "xno"; then
9259     CC_FOR_BUILD='$(CC)'
9260   else
9261     CC_FOR_BUILD=gcc
9262   fi
9263 fi
9264
9265 # Also set EXEEXT_FOR_BUILD.
9266 if test "x$cross_compiling" = "xno"; then
9267   EXEEXT_FOR_BUILD='$(EXEEXT)'
9268 else
9269   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9270 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9271 if test "${bfd_cv_build_exeext+set}" = set; then
9272   echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274   rm -f conftest*
9275      echo 'int main () { return 0; }' > conftest.c
9276      bfd_cv_build_exeext=
9277      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9278      for file in conftest.*; do
9279        case $file in
9280        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9281        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9282        esac
9283      done
9284      rm -f conftest*
9285      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9286 fi
9287 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9288 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9289   EXEEXT_FOR_BUILD=""
9290   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9291 fi
9292
9293
9294
9295
9296
9297
9298
9299
9300 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9301 do
9302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9304   echo "$as_me:$LINENO: checking for $ac_header" >&5
9305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9307   echo $ECHO_N "(cached) $ECHO_C" >&6
9308 fi
9309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9311 else
9312   # Is the header compilable?
9313 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321 $ac_includes_default
9322 #include <$ac_header>
9323 _ACEOF
9324 rm -f conftest.$ac_objext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9326   (eval $ac_compile) 2>conftest.er1
9327   ac_status=$?
9328   grep -v '^ *+' conftest.er1 >conftest.err
9329   rm -f conftest.er1
9330   cat conftest.err >&5
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); } &&
9333          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335   (eval $ac_try) 2>&5
9336   ac_status=$?
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); }; } &&
9339          { ac_try='test -s conftest.$ac_objext'
9340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341   (eval $ac_try) 2>&5
9342   ac_status=$?
9343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344   (exit $ac_status); }; }; then
9345   ac_header_compiler=yes
9346 else
9347   echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_header_compiler=no
9351 fi
9352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9354 echo "${ECHO_T}$ac_header_compiler" >&6
9355
9356 # Is the header present?
9357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365 #include <$ac_header>
9366 _ACEOF
9367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9369   ac_status=$?
9370   grep -v '^ *+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } >/dev/null; then
9375   if test -s conftest.err; then
9376     ac_cpp_err=$ac_c_preproc_warn_flag
9377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9378   else
9379     ac_cpp_err=
9380   fi
9381 else
9382   ac_cpp_err=yes
9383 fi
9384 if test -z "$ac_cpp_err"; then
9385   ac_header_preproc=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390   ac_header_preproc=no
9391 fi
9392 rm -f conftest.err conftest.$ac_ext
9393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9394 echo "${ECHO_T}$ac_header_preproc" >&6
9395
9396 # So?  What about this header?
9397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9398   yes:no: )
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9403     ac_header_preproc=yes
9404     ;;
9405   no:yes:* )
9406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9418     (
9419       cat <<\_ASBOX
9420 ## ------------------------------------------ ##
9421 ## Report this to the AC_PACKAGE_NAME lists.  ##
9422 ## ------------------------------------------ ##
9423 _ASBOX
9424     ) |
9425       sed "s/^/$as_me: WARNING:     /" >&2
9426     ;;
9427 esac
9428 echo "$as_me:$LINENO: checking for $ac_header" >&5
9429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   eval "$as_ac_Header=\$ac_header_preproc"
9434 fi
9435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9437
9438 fi
9439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440   cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442 _ACEOF
9443
9444 fi
9445
9446 done
9447
9448
9449
9450
9451 for ac_header in fcntl.h sys/file.h sys/time.h
9452 do
9453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455   echo "$as_me:$LINENO: checking for $ac_header" >&5
9456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458   echo $ECHO_N "(cached) $ECHO_C" >&6
9459 fi
9460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462 else
9463   # Is the header compilable?
9464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472 $ac_includes_default
9473 #include <$ac_header>
9474 _ACEOF
9475 rm -f conftest.$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477   (eval $ac_compile) 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } &&
9484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; } &&
9490          { ac_try='test -s conftest.$ac_objext'
9491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492   (eval $ac_try) 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_header_compiler=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ac_header_compiler=no
9502 fi
9503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9505 echo "${ECHO_T}$ac_header_compiler" >&6
9506
9507 # Is the header present?
9508 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 #include <$ac_header>
9517 _ACEOF
9518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9519   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9520   ac_status=$?
9521   grep -v '^ *+' conftest.er1 >conftest.err
9522   rm -f conftest.er1
9523   cat conftest.err >&5
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); } >/dev/null; then
9526   if test -s conftest.err; then
9527     ac_cpp_err=$ac_c_preproc_warn_flag
9528     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9529   else
9530     ac_cpp_err=
9531   fi
9532 else
9533   ac_cpp_err=yes
9534 fi
9535 if test -z "$ac_cpp_err"; then
9536   ac_header_preproc=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541   ac_header_preproc=no
9542 fi
9543 rm -f conftest.err conftest.$ac_ext
9544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9545 echo "${ECHO_T}$ac_header_preproc" >&6
9546
9547 # So?  What about this header?
9548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9549   yes:no: )
9550     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9554     ac_header_preproc=yes
9555     ;;
9556   no:yes:* )
9557     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9559     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9560 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9561     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9563     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9564 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9567     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9569     (
9570       cat <<\_ASBOX
9571 ## ------------------------------------------ ##
9572 ## Report this to the AC_PACKAGE_NAME lists.  ##
9573 ## ------------------------------------------ ##
9574 _ASBOX
9575     ) |
9576       sed "s/^/$as_me: WARNING:     /" >&2
9577     ;;
9578 esac
9579 echo "$as_me:$LINENO: checking for $ac_header" >&5
9580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9582   echo $ECHO_N "(cached) $ECHO_C" >&6
9583 else
9584   eval "$as_ac_Header=\$ac_header_preproc"
9585 fi
9586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9587 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9588
9589 fi
9590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9591   cat >>confdefs.h <<_ACEOF
9592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9593 _ACEOF
9594
9595 fi
9596
9597 done
9598
9599 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9600 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9601 if test "${ac_cv_header_time+set}" = set; then
9602   echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604   cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <sys/types.h>
9611 #include <sys/time.h>
9612 #include <time.h>
9613
9614 int
9615 main ()
9616 {
9617 if ((struct tm *) 0)
9618 return 0;
9619   ;
9620   return 0;
9621 }
9622 _ACEOF
9623 rm -f conftest.$ac_objext
9624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625   (eval $ac_compile) 2>conftest.er1
9626   ac_status=$?
9627   grep -v '^ *+' conftest.er1 >conftest.err
9628   rm -f conftest.er1
9629   cat conftest.err >&5
9630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631   (exit $ac_status); } &&
9632          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634   (eval $ac_try) 2>&5
9635   ac_status=$?
9636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637   (exit $ac_status); }; } &&
9638          { ac_try='test -s conftest.$ac_objext'
9639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640   (eval $ac_try) 2>&5
9641   ac_status=$?
9642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643   (exit $ac_status); }; }; then
9644   ac_cv_header_time=yes
9645 else
9646   echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_cv_header_time=no
9650 fi
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652 fi
9653 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9654 echo "${ECHO_T}$ac_cv_header_time" >&6
9655 if test $ac_cv_header_time = yes; then
9656
9657 cat >>confdefs.h <<\_ACEOF
9658 #define TIME_WITH_SYS_TIME 1
9659 _ACEOF
9660
9661 fi
9662
9663
9664
9665
9666
9667
9668 ac_header_dirent=no
9669 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9670   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9671 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9672 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676   cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h.  */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h.  */
9682 #include <sys/types.h>
9683 #include <$ac_hdr>
9684
9685 int
9686 main ()
9687 {
9688 if ((DIR *) 0)
9689 return 0;
9690   ;
9691   return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696   (eval $ac_compile) 2>conftest.er1
9697   ac_status=$?
9698   grep -v '^ *+' conftest.er1 >conftest.err
9699   rm -f conftest.er1
9700   cat conftest.err >&5
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); } &&
9703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705   (eval $ac_try) 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; } &&
9709          { ac_try='test -s conftest.$ac_objext'
9710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711   (eval $ac_try) 2>&5
9712   ac_status=$?
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); }; }; then
9715   eval "$as_ac_Header=yes"
9716 else
9717   echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9719
9720 eval "$as_ac_Header=no"
9721 fi
9722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9723 fi
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9727   cat >>confdefs.h <<_ACEOF
9728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9729 _ACEOF
9730
9731 ac_header_dirent=$ac_hdr; break
9732 fi
9733
9734 done
9735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9736 if test $ac_header_dirent = dirent.h; then
9737   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9739 if test "${ac_cv_search_opendir+set}" = set; then
9740   echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742   ac_func_search_save_LIBS=$LIBS
9743 ac_cv_search_opendir=no
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750
9751 /* Override any gcc2 internal prototype to avoid an error.  */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756    builtin and then its argument prototype would still apply.  */
9757 char opendir ();
9758 int
9759 main ()
9760 {
9761 opendir ();
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768   (eval $ac_link) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777   (eval $ac_try) 2>&5
9778   ac_status=$?
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); }; } &&
9781          { ac_try='test -s conftest$ac_exeext'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; }; then
9787   ac_cv_search_opendir="none required"
9788 else
9789   echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 fi
9793 rm -f conftest.err conftest.$ac_objext \
9794       conftest$ac_exeext conftest.$ac_ext
9795 if test "$ac_cv_search_opendir" = no; then
9796   for ac_lib in dir; do
9797     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9798     cat >conftest.$ac_ext <<_ACEOF
9799 /* confdefs.h.  */
9800 _ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h.  */
9804
9805 /* Override any gcc2 internal prototype to avoid an error.  */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 /* We use char because int might match the return type of a gcc2
9810    builtin and then its argument prototype would still apply.  */
9811 char opendir ();
9812 int
9813 main ()
9814 {
9815 opendir ();
9816   ;
9817   return 0;
9818 }
9819 _ACEOF
9820 rm -f conftest.$ac_objext conftest$ac_exeext
9821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822   (eval $ac_link) 2>conftest.er1
9823   ac_status=$?
9824   grep -v '^ *+' conftest.er1 >conftest.err
9825   rm -f conftest.er1
9826   cat conftest.err >&5
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); } &&
9829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831   (eval $ac_try) 2>&5
9832   ac_status=$?
9833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834   (exit $ac_status); }; } &&
9835          { ac_try='test -s conftest$ac_exeext'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_search_opendir="-l$ac_lib"
9842 break
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 fi
9848 rm -f conftest.err conftest.$ac_objext \
9849       conftest$ac_exeext conftest.$ac_ext
9850   done
9851 fi
9852 LIBS=$ac_func_search_save_LIBS
9853 fi
9854 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9855 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9856 if test "$ac_cv_search_opendir" != no; then
9857   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9858
9859 fi
9860
9861 else
9862   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9863 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9864 if test "${ac_cv_search_opendir+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   ac_func_search_save_LIBS=$LIBS
9868 ac_cv_search_opendir=no
9869 cat >conftest.$ac_ext <<_ACEOF
9870 /* confdefs.h.  */
9871 _ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h.  */
9875
9876 /* Override any gcc2 internal prototype to avoid an error.  */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 /* We use char because int might match the return type of a gcc2
9881    builtin and then its argument prototype would still apply.  */
9882 char opendir ();
9883 int
9884 main ()
9885 {
9886 opendir ();
9887   ;
9888   return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893   (eval $ac_link) 2>conftest.er1
9894   ac_status=$?
9895   grep -v '^ *+' conftest.er1 >conftest.err
9896   rm -f conftest.er1
9897   cat conftest.err >&5
9898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899   (exit $ac_status); } &&
9900          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902   (eval $ac_try) 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; } &&
9906          { ac_try='test -s conftest$ac_exeext'
9907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908   (eval $ac_try) 2>&5
9909   ac_status=$?
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); }; }; then
9912   ac_cv_search_opendir="none required"
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917 fi
9918 rm -f conftest.err conftest.$ac_objext \
9919       conftest$ac_exeext conftest.$ac_ext
9920 if test "$ac_cv_search_opendir" = no; then
9921   for ac_lib in x; do
9922     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9923     cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929
9930 /* Override any gcc2 internal prototype to avoid an error.  */
9931 #ifdef __cplusplus
9932 extern "C"
9933 #endif
9934 /* We use char because int might match the return type of a gcc2
9935    builtin and then its argument prototype would still apply.  */
9936 char opendir ();
9937 int
9938 main ()
9939 {
9940 opendir ();
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956   (eval $ac_try) 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; } &&
9960          { ac_try='test -s conftest$ac_exeext'
9961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962   (eval $ac_try) 2>&5
9963   ac_status=$?
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); }; }; then
9966   ac_cv_search_opendir="-l$ac_lib"
9967 break
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 fi
9973 rm -f conftest.err conftest.$ac_objext \
9974       conftest$ac_exeext conftest.$ac_ext
9975   done
9976 fi
9977 LIBS=$ac_func_search_save_LIBS
9978 fi
9979 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9980 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9981 if test "$ac_cv_search_opendir" != no; then
9982   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9983
9984 fi
9985
9986 fi
9987
9988 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9989 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9990 if test "${gcc_cv_header_string+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 #include <string.h>
10000 #include <strings.h>
10001 int
10002 main ()
10003 {
10004
10005   ;
10006   return 0;
10007 }
10008 _ACEOF
10009 rm -f conftest.$ac_objext
10010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011   (eval $ac_compile) 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } &&
10018          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020   (eval $ac_try) 2>&5
10021   ac_status=$?
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); }; } &&
10024          { ac_try='test -s conftest.$ac_objext'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; }; then
10030   gcc_cv_header_string=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 gcc_cv_header_string=no
10036 fi
10037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10038 fi
10039 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10040 echo "${ECHO_T}$gcc_cv_header_string" >&6
10041 if test $gcc_cv_header_string = yes; then
10042
10043 cat >>confdefs.h <<\_ACEOF
10044 #define STRING_WITH_STRINGS 1
10045 _ACEOF
10046
10047 fi
10048
10049
10050
10051
10052
10053
10054
10055
10056 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10057 do
10058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059 echo "$as_me:$LINENO: checking for $ac_func" >&5
10060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10061 if eval "test \"\${$as_ac_var+set}\" = set"; then
10062   echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064   cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10072 #define $ac_func innocuous_$ac_func
10073
10074 /* System header to define __stub macros and hopefully few prototypes,
10075     which can conflict with char $ac_func (); below.
10076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077     <limits.h> exists even on freestanding compilers.  */
10078
10079 #ifdef __STDC__
10080 # include <limits.h>
10081 #else
10082 # include <assert.h>
10083 #endif
10084
10085 #undef $ac_func
10086
10087 /* Override any gcc2 internal prototype to avoid an error.  */
10088 #ifdef __cplusplus
10089 extern "C"
10090 {
10091 #endif
10092 /* We use char because int might match the return type of a gcc2
10093    builtin and then its argument prototype would still apply.  */
10094 char $ac_func ();
10095 /* The GNU C library defines this for functions which it implements
10096     to always fail with ENOSYS.  Some functions are actually named
10097     something starting with __ and the normal name is an alias.  */
10098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099 choke me
10100 #else
10101 char (*f) () = $ac_func;
10102 #endif
10103 #ifdef __cplusplus
10104 }
10105 #endif
10106
10107 int
10108 main ()
10109 {
10110 return f != $ac_func;
10111   ;
10112   return 0;
10113 }
10114 _ACEOF
10115 rm -f conftest.$ac_objext conftest$ac_exeext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117   (eval $ac_link) 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } &&
10124          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126   (eval $ac_try) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }; } &&
10130          { ac_try='test -s conftest$ac_exeext'
10131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132   (eval $ac_try) 2>&5
10133   ac_status=$?
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); }; }; then
10136   eval "$as_ac_var=yes"
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141 eval "$as_ac_var=no"
10142 fi
10143 rm -f conftest.err conftest.$ac_objext \
10144       conftest$ac_exeext conftest.$ac_ext
10145 fi
10146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10148 if test `eval echo '${'$as_ac_var'}'` = yes; then
10149   cat >>confdefs.h <<_ACEOF
10150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10151 _ACEOF
10152
10153 fi
10154 done
10155
10156
10157 for ac_func in strtoull
10158 do
10159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10160 echo "$as_me:$LINENO: checking for $ac_func" >&5
10161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10162 if eval "test \"\${$as_ac_var+set}\" = set"; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h.  */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h.  */
10171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10173 #define $ac_func innocuous_$ac_func
10174
10175 /* System header to define __stub macros and hopefully few prototypes,
10176     which can conflict with char $ac_func (); below.
10177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10178     <limits.h> exists even on freestanding compilers.  */
10179
10180 #ifdef __STDC__
10181 # include <limits.h>
10182 #else
10183 # include <assert.h>
10184 #endif
10185
10186 #undef $ac_func
10187
10188 /* Override any gcc2 internal prototype to avoid an error.  */
10189 #ifdef __cplusplus
10190 extern "C"
10191 {
10192 #endif
10193 /* We use char because int might match the return type of a gcc2
10194    builtin and then its argument prototype would still apply.  */
10195 char $ac_func ();
10196 /* The GNU C library defines this for functions which it implements
10197     to always fail with ENOSYS.  Some functions are actually named
10198     something starting with __ and the normal name is an alias.  */
10199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10200 choke me
10201 #else
10202 char (*f) () = $ac_func;
10203 #endif
10204 #ifdef __cplusplus
10205 }
10206 #endif
10207
10208 int
10209 main ()
10210 {
10211 return f != $ac_func;
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218   (eval $ac_link) 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } &&
10225          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227   (eval $ac_try) 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; } &&
10231          { ac_try='test -s conftest$ac_exeext'
10232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233   (eval $ac_try) 2>&5
10234   ac_status=$?
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); }; }; then
10237   eval "$as_ac_var=yes"
10238 else
10239   echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10241
10242 eval "$as_ac_var=no"
10243 fi
10244 rm -f conftest.err conftest.$ac_objext \
10245       conftest$ac_exeext conftest.$ac_ext
10246 fi
10247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10249 if test `eval echo '${'$as_ac_var'}'` = yes; then
10250   cat >>confdefs.h <<_ACEOF
10251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10252 _ACEOF
10253
10254 fi
10255 done
10256
10257
10258 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10259 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10260 if test "${ac_cv_have_decl_basename+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269 $ac_includes_default
10270 int
10271 main ()
10272 {
10273 #ifndef basename
10274   char *p = (char *) basename;
10275 #endif
10276
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283   (eval $ac_compile) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; } &&
10296          { ac_try='test -s conftest.$ac_objext'
10297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298   (eval $ac_try) 2>&5
10299   ac_status=$?
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); }; }; then
10302   ac_cv_have_decl_basename=yes
10303 else
10304   echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307 ac_cv_have_decl_basename=no
10308 fi
10309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10310 fi
10311 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10312 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10313 if test $ac_cv_have_decl_basename = yes; then
10314
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_DECL_BASENAME 1
10317 _ACEOF
10318
10319
10320 else
10321   cat >>confdefs.h <<_ACEOF
10322 #define HAVE_DECL_BASENAME 0
10323 _ACEOF
10324
10325
10326 fi
10327
10328
10329 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10330 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10331 if test "${ac_cv_have_decl_ftello+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 $ac_includes_default
10341 int
10342 main ()
10343 {
10344 #ifndef ftello
10345   char *p = (char *) ftello;
10346 #endif
10347
10348   ;
10349   return 0;
10350 }
10351 _ACEOF
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354   (eval $ac_compile) 2>conftest.er1
10355   ac_status=$?
10356   grep -v '^ *+' conftest.er1 >conftest.err
10357   rm -f conftest.er1
10358   cat conftest.err >&5
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369   (eval $ac_try) 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   ac_cv_have_decl_ftello=yes
10374 else
10375   echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.$ac_ext >&5
10377
10378 ac_cv_have_decl_ftello=no
10379 fi
10380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381 fi
10382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10383 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10384 if test $ac_cv_have_decl_ftello = yes; then
10385
10386 cat >>confdefs.h <<_ACEOF
10387 #define HAVE_DECL_FTELLO 1
10388 _ACEOF
10389
10390
10391 else
10392   cat >>confdefs.h <<_ACEOF
10393 #define HAVE_DECL_FTELLO 0
10394 _ACEOF
10395
10396
10397 fi
10398
10399
10400 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10401 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10402 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405   cat >conftest.$ac_ext <<_ACEOF
10406 /* confdefs.h.  */
10407 _ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h.  */
10411 $ac_includes_default
10412 int
10413 main ()
10414 {
10415 #ifndef ftello64
10416   char *p = (char *) ftello64;
10417 #endif
10418
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425   (eval $ac_compile) 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } &&
10432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   ac_cv_have_decl_ftello64=yes
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 ac_cv_have_decl_ftello64=no
10450 fi
10451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10452 fi
10453 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10454 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10455 if test $ac_cv_have_decl_ftello64 = yes; then
10456
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_DECL_FTELLO64 1
10459 _ACEOF
10460
10461
10462 else
10463   cat >>confdefs.h <<_ACEOF
10464 #define HAVE_DECL_FTELLO64 0
10465 _ACEOF
10466
10467
10468 fi
10469
10470
10471 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10472 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10473 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10474   echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476   cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h.  */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h.  */
10482 $ac_includes_default
10483 int
10484 main ()
10485 {
10486 #ifndef fseeko
10487   char *p = (char *) fseeko;
10488 #endif
10489
10490   ;
10491   return 0;
10492 }
10493 _ACEOF
10494 rm -f conftest.$ac_objext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496   (eval $ac_compile) 2>conftest.er1
10497   ac_status=$?
10498   grep -v '^ *+' conftest.er1 >conftest.err
10499   rm -f conftest.er1
10500   cat conftest.err >&5
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); } &&
10503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505   (eval $ac_try) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); }; } &&
10509          { ac_try='test -s conftest.$ac_objext'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }; then
10515   ac_cv_have_decl_fseeko=yes
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_have_decl_fseeko=no
10521 fi
10522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10525 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10526 if test $ac_cv_have_decl_fseeko = yes; then
10527
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_DECL_FSEEKO 1
10530 _ACEOF
10531
10532
10533 else
10534   cat >>confdefs.h <<_ACEOF
10535 #define HAVE_DECL_FSEEKO 0
10536 _ACEOF
10537
10538
10539 fi
10540
10541
10542 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10543 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10544 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547   cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h.  */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h.  */
10553 $ac_includes_default
10554 int
10555 main ()
10556 {
10557 #ifndef fseeko64
10558   char *p = (char *) fseeko64;
10559 #endif
10560
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567   (eval $ac_compile) 2>conftest.er1
10568   ac_status=$?
10569   grep -v '^ *+' conftest.er1 >conftest.err
10570   rm -f conftest.er1
10571   cat conftest.err >&5
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } &&
10574          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576   (eval $ac_try) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; } &&
10580          { ac_try='test -s conftest.$ac_objext'
10581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582   (eval $ac_try) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); }; }; then
10586   ac_cv_have_decl_fseeko64=yes
10587 else
10588   echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10590
10591 ac_cv_have_decl_fseeko64=no
10592 fi
10593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594 fi
10595 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10596 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10597 if test $ac_cv_have_decl_fseeko64 = yes; then
10598
10599 cat >>confdefs.h <<_ACEOF
10600 #define HAVE_DECL_FSEEKO64 1
10601 _ACEOF
10602
10603
10604 else
10605   cat >>confdefs.h <<_ACEOF
10606 #define HAVE_DECL_FSEEKO64 0
10607 _ACEOF
10608
10609
10610 fi
10611
10612
10613
10614
10615 case "${host}" in
10616 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10617
10618 cat >>confdefs.h <<\_ACEOF
10619 #define USE_BINARY_FOPEN 1
10620 _ACEOF
10621  ;;
10622 esac
10623
10624 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10625 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10626 if test "${ac_cv_have_decl_ffs+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   cat >conftest.$ac_ext <<_ACEOF
10630 /* confdefs.h.  */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h.  */
10635 $ac_includes_default
10636 int
10637 main ()
10638 {
10639 #ifndef ffs
10640   char *p = (char *) ffs;
10641 #endif
10642
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649   (eval $ac_compile) 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } &&
10656          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; } &&
10662          { ac_try='test -s conftest.$ac_objext'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668   ac_cv_have_decl_ffs=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_cv_have_decl_ffs=no
10674 fi
10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10676 fi
10677 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10678 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10679 if test $ac_cv_have_decl_ffs = yes; then
10680
10681 cat >>confdefs.h <<_ACEOF
10682 #define HAVE_DECL_FFS 1
10683 _ACEOF
10684
10685
10686 else
10687   cat >>confdefs.h <<_ACEOF
10688 #define HAVE_DECL_FFS 0
10689 _ACEOF
10690
10691
10692 fi
10693
10694
10695 echo "$as_me:$LINENO: checking whether free is declared" >&5
10696 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10697 if test "${ac_cv_have_decl_free+set}" = set; then
10698   echo $ECHO_N "(cached) $ECHO_C" >&6
10699 else
10700   cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 $ac_includes_default
10707 int
10708 main ()
10709 {
10710 #ifndef free
10711   char *p = (char *) free;
10712 #endif
10713
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext
10719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720   (eval $ac_compile) 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } &&
10727          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729   (eval $ac_try) 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); }; } &&
10733          { ac_try='test -s conftest.$ac_objext'
10734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735   (eval $ac_try) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }; }; then
10739   ac_cv_have_decl_free=yes
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 ac_cv_have_decl_free=no
10745 fi
10746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10747 fi
10748 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10749 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10750 if test $ac_cv_have_decl_free = yes; then
10751
10752 cat >>confdefs.h <<_ACEOF
10753 #define HAVE_DECL_FREE 1
10754 _ACEOF
10755
10756
10757 else
10758   cat >>confdefs.h <<_ACEOF
10759 #define HAVE_DECL_FREE 0
10760 _ACEOF
10761
10762
10763 fi
10764
10765
10766 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10767 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10768 if test "${ac_cv_have_decl_getenv+set}" = set; then
10769   echo $ECHO_N "(cached) $ECHO_C" >&6
10770 else
10771   cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h.  */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h.  */
10777 $ac_includes_default
10778 int
10779 main ()
10780 {
10781 #ifndef getenv
10782   char *p = (char *) getenv;
10783 #endif
10784
10785   ;
10786   return 0;
10787 }
10788 _ACEOF
10789 rm -f conftest.$ac_objext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10791   (eval $ac_compile) 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } &&
10798          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; } &&
10804          { ac_try='test -s conftest.$ac_objext'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   ac_cv_have_decl_getenv=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815 ac_cv_have_decl_getenv=no
10816 fi
10817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10818 fi
10819 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10820 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10821 if test $ac_cv_have_decl_getenv = yes; then
10822
10823 cat >>confdefs.h <<_ACEOF
10824 #define HAVE_DECL_GETENV 1
10825 _ACEOF
10826
10827
10828 else
10829   cat >>confdefs.h <<_ACEOF
10830 #define HAVE_DECL_GETENV 0
10831 _ACEOF
10832
10833
10834 fi
10835
10836
10837 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10838 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10839 if test "${ac_cv_have_decl_malloc+set}" = set; then
10840   echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842   cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h.  */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h.  */
10848 $ac_includes_default
10849 int
10850 main ()
10851 {
10852 #ifndef malloc
10853   char *p = (char *) malloc;
10854 #endif
10855
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862   (eval $ac_compile) 2>conftest.er1
10863   ac_status=$?
10864   grep -v '^ *+' conftest.er1 >conftest.err
10865   rm -f conftest.er1
10866   cat conftest.err >&5
10867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868   (exit $ac_status); } &&
10869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871   (eval $ac_try) 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; } &&
10875          { ac_try='test -s conftest.$ac_objext'
10876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877   (eval $ac_try) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; }; then
10881   ac_cv_have_decl_malloc=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_cv_have_decl_malloc=no
10887 fi
10888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10891 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10892 if test $ac_cv_have_decl_malloc = yes; then
10893
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_DECL_MALLOC 1
10896 _ACEOF
10897
10898
10899 else
10900   cat >>confdefs.h <<_ACEOF
10901 #define HAVE_DECL_MALLOC 0
10902 _ACEOF
10903
10904
10905 fi
10906
10907
10908 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10909 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10910 if test "${ac_cv_have_decl_realloc+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913   cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 $ac_includes_default
10920 int
10921 main ()
10922 {
10923 #ifndef realloc
10924   char *p = (char *) realloc;
10925 #endif
10926
10927   ;
10928   return 0;
10929 }
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933   (eval $ac_compile) 2>conftest.er1
10934   ac_status=$?
10935   grep -v '^ *+' conftest.er1 >conftest.err
10936   rm -f conftest.er1
10937   cat conftest.err >&5
10938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939   (exit $ac_status); } &&
10940          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942   (eval $ac_try) 2>&5
10943   ac_status=$?
10944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945   (exit $ac_status); }; } &&
10946          { ac_try='test -s conftest.$ac_objext'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   ac_cv_have_decl_realloc=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957 ac_cv_have_decl_realloc=no
10958 fi
10959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10960 fi
10961 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10962 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10963 if test $ac_cv_have_decl_realloc = yes; then
10964
10965 cat >>confdefs.h <<_ACEOF
10966 #define HAVE_DECL_REALLOC 1
10967 _ACEOF
10968
10969
10970 else
10971   cat >>confdefs.h <<_ACEOF
10972 #define HAVE_DECL_REALLOC 0
10973 _ACEOF
10974
10975
10976 fi
10977
10978
10979 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10980 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10981 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 $ac_includes_default
10991 int
10992 main ()
10993 {
10994 #ifndef stpcpy
10995   char *p = (char *) stpcpy;
10996 #endif
10997
10998   ;
10999   return 0;
11000 }
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004   (eval $ac_compile) 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } &&
11011          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013   (eval $ac_try) 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; } &&
11017          { ac_try='test -s conftest.$ac_objext'
11018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019   (eval $ac_try) 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; }; then
11023   ac_cv_have_decl_stpcpy=yes
11024 else
11025   echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11027
11028 ac_cv_have_decl_stpcpy=no
11029 fi
11030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11031 fi
11032 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11033 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11034 if test $ac_cv_have_decl_stpcpy = yes; then
11035
11036 cat >>confdefs.h <<_ACEOF
11037 #define HAVE_DECL_STPCPY 1
11038 _ACEOF
11039
11040
11041 else
11042   cat >>confdefs.h <<_ACEOF
11043 #define HAVE_DECL_STPCPY 0
11044 _ACEOF
11045
11046
11047 fi
11048
11049
11050 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11051 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11052 if test "${ac_cv_have_decl_strstr+set}" = set; then
11053   echo $ECHO_N "(cached) $ECHO_C" >&6
11054 else
11055   cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 $ac_includes_default
11062 int
11063 main ()
11064 {
11065 #ifndef strstr
11066   char *p = (char *) strstr;
11067 #endif
11068
11069   ;
11070   return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075   (eval $ac_compile) 2>conftest.er1
11076   ac_status=$?
11077   grep -v '^ *+' conftest.er1 >conftest.err
11078   rm -f conftest.er1
11079   cat conftest.err >&5
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); } &&
11082          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084   (eval $ac_try) 2>&5
11085   ac_status=$?
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); }; } &&
11088          { ac_try='test -s conftest.$ac_objext'
11089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090   (eval $ac_try) 2>&5
11091   ac_status=$?
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); }; }; then
11094   ac_cv_have_decl_strstr=yes
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099 ac_cv_have_decl_strstr=no
11100 fi
11101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102 fi
11103 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11104 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11105 if test $ac_cv_have_decl_strstr = yes; then
11106
11107 cat >>confdefs.h <<_ACEOF
11108 #define HAVE_DECL_STRSTR 1
11109 _ACEOF
11110
11111
11112 else
11113   cat >>confdefs.h <<_ACEOF
11114 #define HAVE_DECL_STRSTR 0
11115 _ACEOF
11116
11117
11118 fi
11119
11120
11121 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11122 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11123 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 $ac_includes_default
11133 int
11134 main ()
11135 {
11136 #ifndef snprintf
11137   char *p = (char *) snprintf;
11138 #endif
11139
11140   ;
11141   return 0;
11142 }
11143 _ACEOF
11144 rm -f conftest.$ac_objext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146   (eval $ac_compile) 2>conftest.er1
11147   ac_status=$?
11148   grep -v '^ *+' conftest.er1 >conftest.err
11149   rm -f conftest.er1
11150   cat conftest.err >&5
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); } &&
11153          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155   (eval $ac_try) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; } &&
11159          { ac_try='test -s conftest.$ac_objext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   ac_cv_have_decl_snprintf=yes
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 ac_cv_have_decl_snprintf=no
11171 fi
11172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11173 fi
11174 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11175 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11176 if test $ac_cv_have_decl_snprintf = yes; then
11177
11178 cat >>confdefs.h <<_ACEOF
11179 #define HAVE_DECL_SNPRINTF 1
11180 _ACEOF
11181
11182
11183 else
11184   cat >>confdefs.h <<_ACEOF
11185 #define HAVE_DECL_SNPRINTF 0
11186 _ACEOF
11187
11188
11189 fi
11190
11191
11192 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11193 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11194 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11195   echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197   cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h.  */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h.  */
11203 $ac_includes_default
11204 int
11205 main ()
11206 {
11207 #ifndef vsnprintf
11208   char *p = (char *) vsnprintf;
11209 #endif
11210
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 rm -f conftest.$ac_objext
11216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217   (eval $ac_compile) 2>conftest.er1
11218   ac_status=$?
11219   grep -v '^ *+' conftest.er1 >conftest.err
11220   rm -f conftest.er1
11221   cat conftest.err >&5
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } &&
11224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226   (eval $ac_try) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; } &&
11230          { ac_try='test -s conftest.$ac_objext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   ac_cv_have_decl_vsnprintf=yes
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_cv_have_decl_vsnprintf=no
11242 fi
11243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11246 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11247 if test $ac_cv_have_decl_vsnprintf = yes; then
11248
11249 cat >>confdefs.h <<_ACEOF
11250 #define HAVE_DECL_VSNPRINTF 1
11251 _ACEOF
11252
11253
11254 else
11255   cat >>confdefs.h <<_ACEOF
11256 #define HAVE_DECL_VSNPRINTF 0
11257 _ACEOF
11258
11259
11260 fi
11261
11262
11263
11264 # If we are configured native, pick a core file support file.
11265 COREFILE=
11266 COREFLAG=
11267 TRAD_HEADER=
11268 if test "${target}" = "${host}"; then
11269   case "${host}" in
11270   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11271         COREFILE=''
11272         ;;
11273   alpha*-*-linux-*)
11274         COREFILE=trad-core.lo
11275         TRAD_HEADER='"hosts/alphalinux.h"'
11276         ;;
11277   alpha*-*-netbsd* | alpha*-*-openbsd*)
11278         COREFILE=netbsd-core.lo
11279         ;;
11280   alpha*-*-*)           COREFILE=osf-core.lo ;;
11281   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11282                         COREFILE='' ;;
11283   arm-*-netbsd*)        COREFILE=netbsd-core.lo ;;
11284   arm-*-riscix)         COREFILE=trad-core.lo ;;
11285   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
11286   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
11287   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
11288   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
11289                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11290   hppa*-*-netbsd* | hppa*-*-openbsd*)
11291         COREFILE=netbsd-core.lo
11292         ;;
11293
11294   i370-*-*)
11295         COREFILE=trad-core.lo
11296         TRAD_HEADER='"hosts/i370linux.h"'
11297         ;;
11298
11299   i[3-7]86-sequent-bsd*)
11300         COREFILE=trad-core.lo
11301         TRAD_HEADER='"hosts/symmetry.h"'
11302         ;;
11303   i[3-7]86-sequent-sysv4*) ;;
11304   i[3-7]86-sequent-sysv*)
11305         COREFILE=trad-core.lo
11306         TRAD_HEADER='"hosts/symmetry.h"'
11307         ;;
11308   i[3-7]86-*-bsdi)
11309         COREFILE=
11310         ;;
11311   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*)
11312         COREFILE=trad-core.lo
11313         TRAD_HEADER='"hosts/i386bsd.h"'
11314         ;;
11315   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11316         COREFILE=''
11317         TRAD_HEADER='"hosts/i386bsd.h"'
11318         ;;
11319   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11320         COREFILE=netbsd-core.lo
11321         ;;
11322   i[3-7]86-esix-sysv3*)
11323         COREFILE=trad-core.lo
11324         TRAD_HEADER='"hosts/esix.h"'
11325         ;;
11326   i[3-7]86-*-sco3.2v5*)
11327         COREFILE=sco5-core.lo
11328         ;;
11329   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11330         COREFILE=trad-core.lo
11331         TRAD_HEADER='"hosts/i386sco.h"'
11332         ;;
11333   i[3-7]86-*-mach3*)
11334         COREFILE=trad-core.lo
11335         TRAD_HEADER='"hosts/i386mach3.h"'
11336         ;;
11337   i[3-7]86-*-linux-*)
11338         COREFILE=trad-core.lo
11339         TRAD_HEADER='"hosts/i386linux.h"'
11340         ;;
11341   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
11342   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
11343   i860-*-mach3* | i860-*-osf1*)
11344         COREFILE=trad-core.lo
11345         TRAD_HEADER='"hosts/i860mach3.h"'
11346         ;;
11347   mips-*-netbsd* | mips*-*-openbsd*)
11348         COREFILE=netbsd-core.lo
11349         ;;
11350   mips-dec-*)
11351         COREFILE=trad-core.lo
11352         TRAD_HEADER='"hosts/decstation.h"'
11353         ;;
11354   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
11355   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
11356   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
11357   mips-*-sysv4*)        ;;
11358   mips-*-sysv* | mips-*-riscos*)
11359         COREFILE=trad-core.lo
11360         TRAD_HEADER='"hosts/riscos.h"'
11361         ;;
11362   mips-sony-bsd*)
11363         COREFILE=trad-core.lo
11364         TRAD_HEADER='"hosts/news-mips.h"'
11365         ;;
11366   m68*-bull*-sysv*)
11367         COREFILE=trad-core.lo
11368         TRAD_HEADER='"hosts/dpx2.h"'
11369         ;;
11370   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
11371   m68*-hp-bsd*)
11372         COREFILE=trad-core.lo
11373         TRAD_HEADER='"hosts/hp300bsd.h"'
11374         ;;
11375   m68*-*-linux-*)
11376         COREFILE=trad-core.lo
11377         TRAD_HEADER='"hosts/m68klinux.h"'
11378         ;;
11379   m68*-motorola-sysv*)
11380         COREFILE=trad-core.lo
11381         TRAD_HEADER='"hosts/delta68.h"'
11382         ;;
11383   m68*-sony-*)
11384         COREFILE=trad-core.lo
11385         TRAD_HEADER='"hosts/news.h"'
11386         ;;
11387   m68*-*-netbsd* | m68*-*-openbsd*)
11388         COREFILE=netbsd-core.lo
11389         ;;
11390   m68*-apple-aux*)
11391         COREFILE=trad-core.lo
11392         TRAD_HEADER='"hosts/m68kaux.h"'
11393         ;;
11394   m88*-*-sysv4*)
11395         ;;
11396   m88*-motorola-sysv*)
11397         COREFILE=ptrace-core.lo
11398         ;;
11399   m88*-*-mach3*)
11400         COREFILE=trad-core.lo
11401         TRAD_HEADER='"hosts/m88kmach3.h"'
11402         ;;
11403   m88*-*-openbsd*)
11404         COREFILE=netbsd-core.lo
11405         ;;
11406   ns32k-pc532-mach)
11407         COREFILE=trad-core.lo
11408         TRAD_HEADER='"hosts/pc532mach.h"'
11409         ;;
11410   ns32k-*-netbsd* | ns32k-*-openbsd*)
11411         COREFILE=netbsd-core.lo
11412         ;;
11413   rs6000-*-lynx*)
11414         COREFILE=lynx-core.lo
11415         ;;
11416   rs6000-*-aix5.* | powerpc-*-aix5.*)
11417         COREFILE=rs6000-core.lo
11418         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11419         ;;
11420   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11421         COREFILE=rs6000-core.lo
11422         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11423         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11424         # have c_impl as a member of struct core_dumpx
11425         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11426 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11427         cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <core.h>
11434 int
11435 main ()
11436 {
11437 struct core_dumpx c; c.c_impl = 0;
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11444   (eval $ac_compile) 2>conftest.er1
11445   ac_status=$?
11446   grep -v '^ *+' conftest.er1 >conftest.err
11447   rm -f conftest.er1
11448   cat conftest.err >&5
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); } &&
11451          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453   (eval $ac_try) 2>&5
11454   ac_status=$?
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); }; } &&
11457          { ac_try='test -s conftest.$ac_objext'
11458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459   (eval $ac_try) 2>&5
11460   ac_status=$?
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); }; }; then
11463
11464 cat >>confdefs.h <<\_ACEOF
11465 #define HAVE_ST_C_IMPL 1
11466 _ACEOF
11467
11468           echo "$as_me:$LINENO: result: yes" >&5
11469 echo "${ECHO_T}yes" >&6
11470 else
11471   echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11473
11474 echo "$as_me:$LINENO: result: no" >&5
11475 echo "${ECHO_T}no" >&6
11476 fi
11477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11478         ;;
11479   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
11480   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
11481   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
11482   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
11483   powerpc-*-beos*)      ;;
11484   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11485                         COREFILE='' ;;
11486   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
11487   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
11488   s390*-*-*)            COREFILE=trad-core.lo ;;
11489   sh*-*-netbsd*)        COREFILE=netbsd-core.lo ;;
11490   sparc-*-netbsd* | sparc*-*-openbsd*)
11491         COREFILE=netbsd-core.lo
11492         ;;
11493   tahoe-*-*)
11494         COREFILE=trad-core.lo
11495         TRAD_HEADER='"hosts/tahoe.h"'
11496         ;;
11497   vax-*-netbsd* | vax-*-openbsd*)
11498         COREFILE=netbsd-core.lo
11499         ;;
11500   vax-*-ultrix2*)
11501         COREFILE=trad-core.lo
11502         TRAD_HEADER='"hosts/vaxult2.h"'
11503         ;;
11504   vax-*-ultrix*)
11505         COREFILE=trad-core.lo
11506         TRAD_HEADER='"hosts/vaxult2.h"'
11507         ;;
11508   vax-*-linux-*)
11509         COREFILE=trad-core.lo
11510         TRAD_HEADER='"hosts/vaxlinux.h"'
11511         ;;
11512   vax-*-*)
11513         COREFILE=trad-core.lo
11514         TRAD_HEADER='"hosts/vaxbsd.h"'
11515         ;;
11516   x86_64-*-netbsd* | x86_64-*-openbsd*)
11517         COREFILE=netbsd-core.lo
11518         ;;
11519   esac
11520
11521   case "$COREFILE" in
11522   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
11523   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
11524   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
11525   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
11526   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
11527   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
11528   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
11529   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
11530   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
11531   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11532   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11533   esac
11534
11535   # ELF corefile support has several flavors, but all of
11536   # them use something called <sys/procfs.h>
11537
11538 for ac_header in sys/procfs.h
11539 do
11540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11542   echo "$as_me:$LINENO: checking for $ac_header" >&5
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 fi
11547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11549 else
11550   # Is the header compilable?
11551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h.  */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h.  */
11559 $ac_includes_default
11560 #include <$ac_header>
11561 _ACEOF
11562 rm -f conftest.$ac_objext
11563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564   (eval $ac_compile) 2>conftest.er1
11565   ac_status=$?
11566   grep -v '^ *+' conftest.er1 >conftest.err
11567   rm -f conftest.er1
11568   cat conftest.err >&5
11569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570   (exit $ac_status); } &&
11571          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573   (eval $ac_try) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; } &&
11577          { ac_try='test -s conftest.$ac_objext'
11578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579   (eval $ac_try) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   ac_header_compiler=yes
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 ac_header_compiler=no
11589 fi
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592 echo "${ECHO_T}$ac_header_compiler" >&6
11593
11594 # Is the header present?
11595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 /* confdefs.h.  */
11599 _ACEOF
11600 cat confdefs.h >>conftest.$ac_ext
11601 cat >>conftest.$ac_ext <<_ACEOF
11602 /* end confdefs.h.  */
11603 #include <$ac_header>
11604 _ACEOF
11605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11606   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11607   ac_status=$?
11608   grep -v '^ *+' conftest.er1 >conftest.err
11609   rm -f conftest.er1
11610   cat conftest.err >&5
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } >/dev/null; then
11613   if test -s conftest.err; then
11614     ac_cpp_err=$ac_c_preproc_warn_flag
11615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11616   else
11617     ac_cpp_err=
11618   fi
11619 else
11620   ac_cpp_err=yes
11621 fi
11622 if test -z "$ac_cpp_err"; then
11623   ac_header_preproc=yes
11624 else
11625   echo "$as_me: failed program was:" >&5
11626 sed 's/^/| /' conftest.$ac_ext >&5
11627
11628   ac_header_preproc=no
11629 fi
11630 rm -f conftest.err conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6
11633
11634 # So?  What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636   yes:no: )
11637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641     ac_header_preproc=yes
11642     ;;
11643   no:yes:* )
11644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656     (
11657       cat <<\_ASBOX
11658 ## ------------------------------------------ ##
11659 ## Report this to the AC_PACKAGE_NAME lists.  ##
11660 ## ------------------------------------------ ##
11661 _ASBOX
11662     ) |
11663       sed "s/^/$as_me: WARNING:     /" >&2
11664     ;;
11665 esac
11666 echo "$as_me:$LINENO: checking for $ac_header" >&5
11667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   eval "$as_ac_Header=\$ac_header_preproc"
11672 fi
11673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11675
11676 fi
11677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11678   cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11680 _ACEOF
11681
11682 fi
11683
11684 done
11685
11686   if test "$ac_cv_header_sys_procfs_h" = yes; then
11687     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11688 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11689  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   cat >conftest.$ac_ext <<_ACEOF
11693 /* confdefs.h.  */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h.  */
11698
11699 #define _SYSCALL32
11700 #include <sys/procfs.h>
11701 int
11702 main ()
11703 {
11704 prstatus_t avar
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext
11710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711   (eval $ac_compile) 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } &&
11718          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720   (eval $ac_try) 2>&5
11721   ac_status=$?
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); }; } &&
11724          { ac_try='test -s conftest.$ac_objext'
11725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726   (eval $ac_try) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); }; }; then
11730   bfd_cv_have_sys_procfs_type_prstatus_t=yes
11731 else
11732   echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11734
11735 bfd_cv_have_sys_procfs_type_prstatus_t=no
11736
11737 fi
11738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11739 fi
11740
11741  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11742
11743 cat >>confdefs.h <<\_ACEOF
11744 #define HAVE_PRSTATUS_T 1
11745 _ACEOF
11746
11747  fi
11748  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11749 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11750
11751     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11752 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11753  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 #define _SYSCALL32
11764 #include <sys/procfs.h>
11765 int
11766 main ()
11767 {
11768 prstatus32_t avar
11769   ;
11770   return 0;
11771 }
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775   (eval $ac_compile) 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } &&
11782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784   (eval $ac_try) 2>&5
11785   ac_status=$?
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); }; } &&
11788          { ac_try='test -s conftest.$ac_objext'
11789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790   (eval $ac_try) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); }; }; then
11794   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799 bfd_cv_have_sys_procfs_type_prstatus32_t=no
11800
11801 fi
11802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11803 fi
11804
11805  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
11806
11807 cat >>confdefs.h <<\_ACEOF
11808 #define HAVE_PRSTATUS32_T 1
11809 _ACEOF
11810
11811  fi
11812  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
11813 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
11814
11815     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
11816 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11817  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
11818   echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820   cat >conftest.$ac_ext <<_ACEOF
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826
11827 #define _SYSCALL32
11828 #include <sys/procfs.h>
11829 int
11830 main ()
11831 {
11832 prstatus_t avar; void* aref = (void*) &avar.pr_who
11833   ;
11834   return 0;
11835 }
11836 _ACEOF
11837 rm -f conftest.$ac_objext
11838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839   (eval $ac_compile) 2>conftest.er1
11840   ac_status=$?
11841   grep -v '^ *+' conftest.er1 >conftest.err
11842   rm -f conftest.er1
11843   cat conftest.err >&5
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } &&
11846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; } &&
11852          { ac_try='test -s conftest.$ac_objext'
11853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11864
11865 fi
11866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867 fi
11868
11869  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_PRSTATUS_T_PR_WHO 1
11873 _ACEOF
11874
11875  fi
11876  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11877 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
11878
11879     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11880 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11881  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890
11891 #define _SYSCALL32
11892 #include <sys/procfs.h>
11893 int
11894 main ()
11895 {
11896 prstatus32_t avar; void* aref = (void*) &avar.pr_who
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903   (eval $ac_compile) 2>conftest.er1
11904   ac_status=$?
11905   grep -v '^ *+' conftest.er1 >conftest.err
11906   rm -f conftest.er1
11907   cat conftest.err >&5
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } &&
11910          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest.$ac_objext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11928
11929 fi
11930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11931 fi
11932
11933  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
11934
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_PRSTATUS32_T_PR_WHO 1
11937 _ACEOF
11938
11939  fi
11940  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11941 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
11942
11943     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11944 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11945  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954
11955 #define _SYSCALL32
11956 #include <sys/procfs.h>
11957 int
11958 main ()
11959 {
11960 pstatus_t avar
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967   (eval $ac_compile) 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest.$ac_objext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   bfd_cv_have_sys_procfs_type_pstatus_t=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 bfd_cv_have_sys_procfs_type_pstatus_t=no
11992
11993 fi
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 fi
11996
11997  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11998
11999 cat >>confdefs.h <<\_ACEOF
12000 #define HAVE_PSTATUS_T 1
12001 _ACEOF
12002
12003  fi
12004  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12005 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12006
12007     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12008 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12009  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h.  */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h.  */
12018
12019 #define _SYSCALL32
12020 #include <sys/procfs.h>
12021 int
12022 main ()
12023 {
12024 pxstatus_t avar
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031   (eval $ac_compile) 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040   (eval $ac_try) 2>&5
12041   ac_status=$?
12042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043   (exit $ac_status); }; } &&
12044          { ac_try='test -s conftest.$ac_objext'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; }; then
12050   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12051 else
12052   echo "$as_me: failed program was:" >&5
12053 sed 's/^/| /' conftest.$ac_ext >&5
12054
12055 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12056
12057 fi
12058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12059 fi
12060
12061  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12062
12063 cat >>confdefs.h <<\_ACEOF
12064 #define HAVE_PXSTATUS_T 1
12065 _ACEOF
12066
12067  fi
12068  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12069 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12070
12071     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12072 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12073  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076   cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082
12083 #define _SYSCALL32
12084 #include <sys/procfs.h>
12085 int
12086 main ()
12087 {
12088 pstatus32_t avar
12089   ;
12090   return 0;
12091 }
12092 _ACEOF
12093 rm -f conftest.$ac_objext
12094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095   (eval $ac_compile) 2>conftest.er1
12096   ac_status=$?
12097   grep -v '^ *+' conftest.er1 >conftest.err
12098   rm -f conftest.er1
12099   cat conftest.err >&5
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); } &&
12102          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; } &&
12108          { ac_try='test -s conftest.$ac_objext'
12109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110   (eval $ac_try) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); }; }; then
12114   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12115 else
12116   echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12118
12119 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12120
12121 fi
12122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12123 fi
12124
12125  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12126
12127 cat >>confdefs.h <<\_ACEOF
12128 #define HAVE_PSTATUS32_T 1
12129 _ACEOF
12130
12131  fi
12132  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12133 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12134
12135     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12136 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12137  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146
12147 #define _SYSCALL32
12148 #include <sys/procfs.h>
12149 int
12150 main ()
12151 {
12152 prpsinfo_t avar
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext
12158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159   (eval $ac_compile) 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } &&
12166          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168   (eval $ac_try) 2>&5
12169   ac_status=$?
12170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171   (exit $ac_status); }; } &&
12172          { ac_try='test -s conftest.$ac_objext'
12173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174   (eval $ac_try) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); }; }; then
12178   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12179 else
12180   echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12184
12185 fi
12186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12187 fi
12188
12189  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12190
12191 cat >>confdefs.h <<\_ACEOF
12192 #define HAVE_PRPSINFO_T 1
12193 _ACEOF
12194
12195  fi
12196  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12198
12199     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12200 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12201  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12202   echo $ECHO_N "(cached) $ECHO_C" >&6
12203 else
12204   cat >conftest.$ac_ext <<_ACEOF
12205 /* confdefs.h.  */
12206 _ACEOF
12207 cat confdefs.h >>conftest.$ac_ext
12208 cat >>conftest.$ac_ext <<_ACEOF
12209 /* end confdefs.h.  */
12210
12211 #define _SYSCALL32
12212 #include <sys/procfs.h>
12213 int
12214 main ()
12215 {
12216 prpsinfo32_t avar
12217   ;
12218   return 0;
12219 }
12220 _ACEOF
12221 rm -f conftest.$ac_objext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223   (eval $ac_compile) 2>conftest.er1
12224   ac_status=$?
12225   grep -v '^ *+' conftest.er1 >conftest.err
12226   rm -f conftest.er1
12227   cat conftest.err >&5
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); } &&
12230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest.$ac_objext'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12248
12249 fi
12250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12251 fi
12252
12253  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12254
12255 cat >>confdefs.h <<\_ACEOF
12256 #define HAVE_PRPSINFO32_T 1
12257 _ACEOF
12258
12259  fi
12260  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12261 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12262
12263     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12264 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12265  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h.  */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h.  */
12274
12275 #define _SYSCALL32
12276 #include <sys/procfs.h>
12277 int
12278 main ()
12279 {
12280 psinfo_t avar
12281   ;
12282   return 0;
12283 }
12284 _ACEOF
12285 rm -f conftest.$ac_objext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287   (eval $ac_compile) 2>conftest.er1
12288   ac_status=$?
12289   grep -v '^ *+' conftest.er1 >conftest.err
12290   rm -f conftest.er1
12291   cat conftest.err >&5
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); } &&
12294          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296   (eval $ac_try) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; } &&
12300          { ac_try='test -s conftest.$ac_objext'
12301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302   (eval $ac_try) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; }; then
12306   bfd_cv_have_sys_procfs_type_psinfo_t=yes
12307 else
12308   echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 bfd_cv_have_sys_procfs_type_psinfo_t=no
12312
12313 fi
12314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12315 fi
12316
12317  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12318
12319 cat >>confdefs.h <<\_ACEOF
12320 #define HAVE_PSINFO_T 1
12321 _ACEOF
12322
12323  fi
12324  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12325 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12326
12327     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12328 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12329  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12330   echo $ECHO_N "(cached) $ECHO_C" >&6
12331 else
12332   cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h.  */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h.  */
12338
12339 #define _SYSCALL32
12340 #include <sys/procfs.h>
12341 int
12342 main ()
12343 {
12344 psinfo32_t avar
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351   (eval $ac_compile) 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; } &&
12364          { ac_try='test -s conftest.$ac_objext'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; }; then
12370   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12371 else
12372   echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12374
12375 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12376
12377 fi
12378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 fi
12380
12381  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12382
12383 cat >>confdefs.h <<\_ACEOF
12384 #define HAVE_PSINFO32_T 1
12385 _ACEOF
12386
12387  fi
12388  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12389 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12390
12391     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12392 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12393  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   cat >conftest.$ac_ext <<_ACEOF
12397 /* confdefs.h.  */
12398 _ACEOF
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h.  */
12402
12403 #define _SYSCALL32
12404 #include <sys/procfs.h>
12405 int
12406 main ()
12407 {
12408 lwpstatus_t avar
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415   (eval $ac_compile) 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424   (eval $ac_try) 2>&5
12425   ac_status=$?
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); }; } &&
12428          { ac_try='test -s conftest.$ac_objext'
12429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430   (eval $ac_try) 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; }; then
12434   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12440
12441 fi
12442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12443 fi
12444
12445  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12446
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_LWPSTATUS_T 1
12449 _ACEOF
12450
12451  fi
12452  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12453 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12454
12455     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12456 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12457  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466
12467 #define _SYSCALL32
12468 #include <sys/procfs.h>
12469 int
12470 main ()
12471 {
12472 lwpxstatus_t avar
12473   ;
12474   return 0;
12475 }
12476 _ACEOF
12477 rm -f conftest.$ac_objext
12478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479   (eval $ac_compile) 2>conftest.er1
12480   ac_status=$?
12481   grep -v '^ *+' conftest.er1 >conftest.err
12482   rm -f conftest.er1
12483   cat conftest.err >&5
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); } &&
12486          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488   (eval $ac_try) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; } &&
12492          { ac_try='test -s conftest.$ac_objext'
12493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494   (eval $ac_try) 2>&5
12495   ac_status=$?
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); }; }; then
12498   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12499 else
12500   echo "$as_me: failed program was:" >&5
12501 sed 's/^/| /' conftest.$ac_ext >&5
12502
12503 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12504
12505 fi
12506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12507 fi
12508
12509  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12510
12511 cat >>confdefs.h <<\_ACEOF
12512 #define HAVE_LWPXSTATUS_T 1
12513 _ACEOF
12514
12515  fi
12516  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12517 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12518
12519     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12520 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12521  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
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
12531 #define _SYSCALL32
12532 #include <sys/procfs.h>
12533 int
12534 main ()
12535 {
12536 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543   (eval $ac_compile) 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest.$ac_objext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12568
12569 fi
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12571 fi
12572
12573  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12574
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12577 _ACEOF
12578
12579  fi
12580  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12581 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12582
12583     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12584 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12585  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594
12595 #define _SYSCALL32
12596 #include <sys/procfs.h>
12597 int
12598 main ()
12599 {
12600 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607   (eval $ac_compile) 2>conftest.er1
12608   ac_status=$?
12609   grep -v '^ *+' conftest.er1 >conftest.err
12610   rm -f conftest.er1
12611   cat conftest.err >&5
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616   (eval $ac_try) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); }; } &&
12620          { ac_try='test -s conftest.$ac_objext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12632
12633 fi
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 fi
12636
12637  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12638
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_LWPSTATUS_T_PR_REG 1
12641 _ACEOF
12642
12643  fi
12644  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12645 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12646
12647     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12648 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12649  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652   cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h.  */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h.  */
12658
12659 #define _SYSCALL32
12660 #include <sys/procfs.h>
12661 int
12662 main ()
12663 {
12664 win32_pstatus_t avar
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680   (eval $ac_try) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); }; } &&
12684          { ac_try='test -s conftest.$ac_objext'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12696
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 fi
12700
12701  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12702
12703 cat >>confdefs.h <<\_ACEOF
12704 #define HAVE_WIN32_PSTATUS_T 1
12705 _ACEOF
12706
12707  fi
12708  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12709 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12710
12711   fi
12712 fi
12713
12714
12715 if test -n "$TRAD_HEADER"; then
12716
12717 cat >>confdefs.h <<_ACEOF
12718 #define TRAD_HEADER $TRAD_HEADER
12719 _ACEOF
12720
12721 fi
12722
12723 # Horrible hacks to build DLLs on Windows.
12724 WIN32LDFLAGS=
12725 WIN32LIBADD=
12726 case "${host}" in
12727 *-*-cygwin*)
12728   if test "$enable_shared" = "yes"; then
12729     WIN32LDFLAGS="-no-undefined"
12730     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12731   fi
12732   ;;
12733 *-*-linux*)
12734   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12735   # libiberty.a.
12736   case "${host}" in
12737   mips*-*-linux*)
12738     # Linux/MIPS uses PIC by default.
12739     if test "$enable_shared" = "yes"; then
12740       WIN32LIBADD="-L../libiberty -liberty"
12741     fi
12742     ;;
12743   *)
12744     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12745     if test -n "$x"; then
12746       WIN32LIBADD="-L../libiberty/pic -liberty"
12747     fi
12748   ;;
12749   esac
12750   ;;
12751 esac
12752
12753
12754
12755 # target stuff:
12756
12757 # Canonicalize the secondary target names.
12758 if test -n "$enable_targets" ; then
12759     for targ in `echo $enable_targets | sed 's/,/ /g'`
12760     do
12761         result=`$ac_config_sub $targ 2>/dev/null`
12762         if test -n "$result" ; then
12763             canon_targets="$canon_targets $result"
12764         else
12765             # Allow targets that config.sub doesn't recognize, like "all".
12766             canon_targets="$canon_targets $targ"
12767         fi
12768     done
12769 fi
12770
12771 all_targets=false
12772 defvec=
12773 selvecs=
12774 assocvecs=
12775 selarchs=
12776 TDEFINES=
12777 for targ in $target $canon_targets
12778 do
12779     if test "x$targ" = "xall"; then
12780         all_targets=true
12781         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
12782     else
12783         . $srcdir/config.bfd
12784         if test "x$targ" = "x$target"; then
12785             defvec=$targ_defvec
12786         fi
12787         selvecs="$selvecs $targ_defvec $targ_selvecs"
12788         selarchs="$selarchs $targ_archs"
12789         TDEFINES="$TDEFINES $targ_cflags"
12790     fi
12791 done
12792
12793
12794 # This processing still needs to be done if we're to decide properly whether
12795 # 64-bit support needs to be compiled in.  Currently, it will be included if
12796 # the default or any other explicitly requested target requires it; it
12797 # will not be included on a 32-bit host if no 64-bit target is requested, and
12798 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
12799 # used.
12800
12801 # uniq the default and selected vectors in all the configured targets.
12802 f=""
12803 for i in $selvecs ; do
12804     case " $f " in
12805     *" $i "*) ;;
12806     *) f="$f $i" ;;
12807     esac
12808 done
12809 selvecs="$f"
12810
12811
12812 # uniq the associated vectors in all the configured targets.
12813 f=""
12814 for i in $assocvecs ; do
12815     case " $f " in
12816     *" $i "*) ;;
12817     *) f="$f $i" ;;
12818     esac
12819 done
12820 assocvecs="$f"
12821
12822
12823 # uniq the architectures in all the configured targets.
12824 f=""
12825 for i in $selarchs ; do
12826     case " $f " in
12827     *" $i "*) ;;
12828     *) f="$f $i" ;;
12829     esac
12830 done
12831 selarchs="$f"
12832
12833 # Target backend .o files.
12834 tb=
12835
12836 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
12837
12838 for vec in $selvecs
12839 do
12840     target_size=32
12841     case "$vec" in
12842     # This list is alphabetized to make it easy to compare
12843     # with the two vector lists in targets.c.  For the same reason,
12844     # use one entry per line, even though this leads to long lines.
12845     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
12846     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
12847     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
12848     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
12849     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
12850     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
12851     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12852     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12853     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12854     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12855     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
12856     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
12857     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
12858     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12859     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12860     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12861     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12862     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
12863     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
12864     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
12865     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
12866     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
12867     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
12868     bfd_elf32_bfin_vec)         tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
12869     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12870     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12871     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12872     bfd_elf32_bigarm_symbian_vec)
12873                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12874     bfd_elf32_bigarm_vxworks_vec)
12875                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12876     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12877     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
12878     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12879     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
12880     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12881     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
12882     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
12883     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
12884     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12885     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
12886     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
12887     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12888     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12889     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
12890     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
12891     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12892     bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12893     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12894     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12895     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
12896     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
12897     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
12898     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
12899     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
12900     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
12901     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
12902     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
12903     bfd_elf32_littlearm_symbian_vec)
12904                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12905     bfd_elf32_littlearm_vxworks_vec)
12906                                 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12907     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo $elf" ;;
12908     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12909     bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
12910     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12911     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12912     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12913     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12914     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12915     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12916     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12917     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12918     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12919     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12920     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12921     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
12922     bfd_elf32_ms1_vec)          tb="$tb elf32-ms1.lo elf32.lo $elf" ;;
12923     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
12924     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12925     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12926     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12927     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12928     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
12929     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
12930     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
12931     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
12932     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
12933     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
12934     bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
12935     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
12936     # FIXME: We include cofflink.lo not because it's needed for
12937     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12938     # which needs it but does not list it.  Should be fixed in right place.
12939     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12940     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12941     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12942     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12943     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12944     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12945     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12946     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12947     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12948     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
12949     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12950     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12951     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12952     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
12953     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12954     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12955     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
12956     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
12957     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
12958     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
12959     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12960     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12961     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12962     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12963     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12964     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12965     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12966     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12967     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12968     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12969     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12970     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12971     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12972     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
12973     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12974     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12975     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
12976     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12977     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12978     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12979     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12980     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12981     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12982     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
12983     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12984     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12985     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
12986     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
12987     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12988     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12989     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12990     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12991     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
12992     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
12993     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12994     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12995     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12996     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
12997     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
12998     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
12999     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
13000     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
13001     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
13002     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
13003     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
13004     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
13005     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
13006     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
13007     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
13008     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
13009     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
13010     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13011     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13012     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
13013     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
13014     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
13015     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
13016     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13017     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13018     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
13019     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
13020     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
13021     ieee_vec)                   tb="$tb ieee.lo" ;;
13022     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13023     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13024     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
13025     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13026     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
13027     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
13028     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
13029     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
13030     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
13031     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
13032     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
13033     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
13034     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
13035     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
13036     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13037     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13038     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13039     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13040     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13041     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13042     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
13043     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13044     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13045     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13046     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13047     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
13048     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13049     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13050     pef_vec)                    tb="$tb pef.lo" ;;
13051     pef_xlib_vec)               tb="$tb pef.lo" ;;
13052     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
13053     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13054     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
13055     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
13056     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13057     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13058     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
13059     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
13060     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
13061     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
13062     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13063     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13064     som_vec)                    tb="$tb som.lo" ;;
13065     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
13066     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
13067     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
13068     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13069     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13070     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
13071     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
13072     sym_vec)                    tb="$tb xsym.lo" ;;
13073     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
13074     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
13075     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
13076     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
13077     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
13078     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
13079     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
13080     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
13081     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
13082     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
13083     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
13084     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
13085     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
13086     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
13087     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
13088     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
13089     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
13090     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
13091     versados_vec)               tb="$tb versados.lo" ;;
13092     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13093     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13094     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
13095     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
13096     z80coff_vec)                tb="$tb coff-z80.lo reloc16.lo" ;;
13097     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13098
13099     # These appear out of order in targets.c
13100     srec_vec)                   tb="$tb srec.lo" ;;
13101     symbolsrec_vec)             tb="$tb srec.lo" ;;
13102     tekhex_vec)                 tb="$tb tekhex.lo" ;;
13103     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
13104     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
13105
13106     "")                 ;;
13107     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13108 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13109    { (exit 1); exit 1; }; } ;;
13110     esac
13111
13112     if test ${target_size} = 64; then
13113         target64=true
13114     fi
13115     if test x"${vec}" = x"${defvec}"; then
13116         bfd_default_target_size=${target_size}
13117     fi
13118 done
13119
13120 # Target architecture .o files.
13121 # A couple of CPUs use shorter file names to avoid problems on DOS
13122 # filesystems.
13123 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13124
13125 # Weed out duplicate .o files.
13126 f=""
13127 for i in $tb ; do
13128     case " $f " in
13129     *" $i "*) ;;
13130     *) f="$f $i" ;;
13131     esac
13132 done
13133 tb="$f"
13134
13135 f=""
13136 for i in $ta ; do
13137     case " $f " in
13138     *" $i "*) ;;
13139     *) f="$f $i" ;;
13140     esac
13141 done
13142 ta="$f"
13143
13144 bfd_backends="$tb"
13145 bfd_machines="$ta"
13146
13147 if test x${all_targets} = xtrue ; then
13148   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13149   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13150   selvecs=
13151   havevecs=
13152   selarchs=
13153   test -n "$assocvecs" &&
13154     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13155 else    # all_targets is true
13156   # Only set these if they will be nonempty, for the clever echo.
13157   havevecs=
13158   assocvecs=
13159   test -n "$selvecs" &&
13160     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13161   test -n "$selvecs" &&
13162     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13163   test -n "$selarchs" &&
13164     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13165 fi      # all_targets is true
13166
13167 case ${host64}-${target64}-${want64} in
13168   *true*)
13169     wordsize=64
13170     bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13171     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13172     if test $BFD_HOST_64_BIT_DEFINED = 0; then
13173       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13174 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13175       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13176 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13177     fi
13178     if test -n "$GCC" ; then
13179        bad_64bit_gcc=no;
13180        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13181 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13182        # Add more tests for gcc versions with non-working 64-bit support here.
13183        cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 :__GNUC__:__GNUC_MINOR__:__i386__:
13190 _ACEOF
13191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13192   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13193   bad_64bit_gcc=yes;
13194                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13195 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13196 else
13197   echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6
13199 fi
13200 rm -f conftest*
13201
13202        if test $bad_64bit_gcc = yes ; then
13203          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13204 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13205    { (exit 1); exit 1; }; }
13206        fi
13207     fi
13208     ;;
13209   false-false-false)
13210     wordsize=32
13211     bfd_libs='$(BFD32_LIBS)'
13212     all_backends='$(BFD32_BACKENDS)'
13213     ;;
13214 esac
13215
13216
13217
13218
13219
13220
13221
13222
13223 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
13224 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13225 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
13226 # Hopefully a reasonable assumption since fseeko et.al. should be
13227 # upward compatible.
13228
13229
13230
13231
13232
13233 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13234 do
13235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13236 echo "$as_me:$LINENO: checking for $ac_func" >&5
13237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13238 if eval "test \"\${$as_ac_var+set}\" = set"; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13249 #define $ac_func innocuous_$ac_func
13250
13251 /* System header to define __stub macros and hopefully few prototypes,
13252     which can conflict with char $ac_func (); below.
13253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254     <limits.h> exists even on freestanding compilers.  */
13255
13256 #ifdef __STDC__
13257 # include <limits.h>
13258 #else
13259 # include <assert.h>
13260 #endif
13261
13262 #undef $ac_func
13263
13264 /* Override any gcc2 internal prototype to avoid an error.  */
13265 #ifdef __cplusplus
13266 extern "C"
13267 {
13268 #endif
13269 /* We use char because int might match the return type of a gcc2
13270    builtin and then its argument prototype would still apply.  */
13271 char $ac_func ();
13272 /* The GNU C library defines this for functions which it implements
13273     to always fail with ENOSYS.  Some functions are actually named
13274     something starting with __ and the normal name is an alias.  */
13275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13276 choke me
13277 #else
13278 char (*f) () = $ac_func;
13279 #endif
13280 #ifdef __cplusplus
13281 }
13282 #endif
13283
13284 int
13285 main ()
13286 {
13287 return f != $ac_func;
13288   ;
13289   return 0;
13290 }
13291 _ACEOF
13292 rm -f conftest.$ac_objext conftest$ac_exeext
13293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294   (eval $ac_link) 2>conftest.er1
13295   ac_status=$?
13296   grep -v '^ *+' conftest.er1 >conftest.err
13297   rm -f conftest.er1
13298   cat conftest.err >&5
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; } &&
13307          { ac_try='test -s conftest$ac_exeext'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; }; then
13313   eval "$as_ac_var=yes"
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318 eval "$as_ac_var=no"
13319 fi
13320 rm -f conftest.err conftest.$ac_objext \
13321       conftest$ac_exeext conftest.$ac_ext
13322 fi
13323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13325 if test `eval echo '${'$as_ac_var'}'` = yes; then
13326   cat >>confdefs.h <<_ACEOF
13327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13328 _ACEOF
13329
13330 fi
13331 done
13332
13333 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13334     echo "$as_me:$LINENO: checking for off_t" >&5
13335 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13336 if test "${ac_cv_type_off_t+set}" = set; then
13337   echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339   cat >conftest.$ac_ext <<_ACEOF
13340 /* confdefs.h.  */
13341 _ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h.  */
13345 $ac_includes_default
13346 int
13347 main ()
13348 {
13349 if ((off_t *) 0)
13350   return 0;
13351 if (sizeof (off_t))
13352   return 0;
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 rm -f conftest.$ac_objext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13359   (eval $ac_compile) 2>conftest.er1
13360   ac_status=$?
13361   grep -v '^ *+' conftest.er1 >conftest.err
13362   rm -f conftest.er1
13363   cat conftest.err >&5
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } &&
13366          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; } &&
13372          { ac_try='test -s conftest.$ac_objext'
13373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374   (eval $ac_try) 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   ac_cv_type_off_t=yes
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383 ac_cv_type_off_t=no
13384 fi
13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386 fi
13387 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13388 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13389
13390 echo "$as_me:$LINENO: checking size of off_t" >&5
13391 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13392 if test "${ac_cv_sizeof_off_t+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   if test "$ac_cv_type_off_t" = yes; then
13396   # The cast to unsigned long works around a bug in the HP C Compiler
13397   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13398   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13399   # This bug is HP SR number 8606223364.
13400   if test "$cross_compiling" = yes; then
13401   # Depending upon the size, compute the lo and hi bounds.
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h.  */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h.  */
13408 $ac_includes_default
13409 int
13410 main ()
13411 {
13412 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13413 test_array [0] = 0
13414
13415   ;
13416   return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13421   (eval $ac_compile) 2>conftest.er1
13422   ac_status=$?
13423   grep -v '^ *+' conftest.er1 >conftest.err
13424   rm -f conftest.er1
13425   cat conftest.err >&5
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); } &&
13428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; } &&
13434          { ac_try='test -s conftest.$ac_objext'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   ac_lo=0 ac_mid=0
13441   while :; do
13442     cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448 $ac_includes_default
13449 int
13450 main ()
13451 {
13452 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13453 test_array [0] = 0
13454
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461   (eval $ac_compile) 2>conftest.er1
13462   ac_status=$?
13463   grep -v '^ *+' conftest.er1 >conftest.err
13464   rm -f conftest.er1
13465   cat conftest.err >&5
13466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467   (exit $ac_status); } &&
13468          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470   (eval $ac_try) 2>&5
13471   ac_status=$?
13472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473   (exit $ac_status); }; } &&
13474          { ac_try='test -s conftest.$ac_objext'
13475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476   (eval $ac_try) 2>&5
13477   ac_status=$?
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); }; }; then
13480   ac_hi=$ac_mid; break
13481 else
13482   echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.$ac_ext >&5
13484
13485 ac_lo=`expr $ac_mid + 1`
13486                     if test $ac_lo -le $ac_mid; then
13487                       ac_lo= ac_hi=
13488                       break
13489                     fi
13490                     ac_mid=`expr 2 '*' $ac_mid + 1`
13491 fi
13492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13493   done
13494 else
13495   echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 $ac_includes_default
13505 int
13506 main ()
13507 {
13508 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13509 test_array [0] = 0
13510
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13517   (eval $ac_compile) 2>conftest.er1
13518   ac_status=$?
13519   grep -v '^ *+' conftest.er1 >conftest.err
13520   rm -f conftest.er1
13521   cat conftest.err >&5
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); } &&
13524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; } &&
13530          { ac_try='test -s conftest.$ac_objext'
13531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13532   (eval $ac_try) 2>&5
13533   ac_status=$?
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); }; }; then
13536   ac_hi=-1 ac_mid=-1
13537   while :; do
13538     cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 $ac_includes_default
13545 int
13546 main ()
13547 {
13548 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13549 test_array [0] = 0
13550
13551   ;
13552   return 0;
13553 }
13554 _ACEOF
13555 rm -f conftest.$ac_objext
13556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13557   (eval $ac_compile) 2>conftest.er1
13558   ac_status=$?
13559   grep -v '^ *+' conftest.er1 >conftest.err
13560   rm -f conftest.er1
13561   cat conftest.err >&5
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); } &&
13564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; } &&
13570          { ac_try='test -s conftest.$ac_objext'
13571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13572   (eval $ac_try) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); }; }; then
13576   ac_lo=$ac_mid; break
13577 else
13578   echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 ac_hi=`expr '(' $ac_mid ')' - 1`
13582                        if test $ac_mid -le $ac_hi; then
13583                          ac_lo= ac_hi=
13584                          break
13585                        fi
13586                        ac_mid=`expr 2 '*' $ac_mid`
13587 fi
13588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589   done
13590 else
13591   echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594 ac_lo= ac_hi=
13595 fi
13596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13597 fi
13598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599 # Binary search between lo and hi bounds.
13600 while test "x$ac_lo" != "x$ac_hi"; do
13601   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13602   cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608 $ac_includes_default
13609 int
13610 main ()
13611 {
13612 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13613 test_array [0] = 0
13614
13615   ;
13616   return 0;
13617 }
13618 _ACEOF
13619 rm -f conftest.$ac_objext
13620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13621   (eval $ac_compile) 2>conftest.er1
13622   ac_status=$?
13623   grep -v '^ *+' conftest.er1 >conftest.err
13624   rm -f conftest.er1
13625   cat conftest.err >&5
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; } &&
13634          { ac_try='test -s conftest.$ac_objext'
13635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636   (eval $ac_try) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); }; }; then
13640   ac_hi=$ac_mid
13641 else
13642   echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_lo=`expr '(' $ac_mid ')' + 1`
13646 fi
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648 done
13649 case $ac_lo in
13650 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13651 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13652 See \`config.log' for more details." >&5
13653 echo "$as_me: error: cannot compute sizeof (off_t), 77
13654 See \`config.log' for more details." >&2;}
13655    { (exit 1); exit 1; }; } ;;
13656 esac
13657 else
13658   if test "$cross_compiling" = yes; then
13659   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13660 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13661    { (exit 1); exit 1; }; }
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 $ac_includes_default
13670 long longval () { return (long) (sizeof (off_t)); }
13671 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13672 #include <stdio.h>
13673 #include <stdlib.h>
13674 int
13675 main ()
13676 {
13677
13678   FILE *f = fopen ("conftest.val", "w");
13679   if (! f)
13680     exit (1);
13681   if (((long) (sizeof (off_t))) < 0)
13682     {
13683       long i = longval ();
13684       if (i != ((long) (sizeof (off_t))))
13685         exit (1);
13686       fprintf (f, "%ld\n", i);
13687     }
13688   else
13689     {
13690       unsigned long i = ulongval ();
13691       if (i != ((long) (sizeof (off_t))))
13692         exit (1);
13693       fprintf (f, "%lu\n", i);
13694     }
13695   exit (ferror (f) || fclose (f) != 0);
13696
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 rm -f conftest$ac_exeext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703   (eval $ac_link) 2>&5
13704   ac_status=$?
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708   (eval $ac_try) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); }; }; then
13712   ac_cv_sizeof_off_t=`cat conftest.val`
13713 else
13714   echo "$as_me: program exited with status $ac_status" >&5
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718 ( exit $ac_status )
13719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13720 See \`config.log' for more details." >&5
13721 echo "$as_me: error: cannot compute sizeof (off_t), 77
13722 See \`config.log' for more details." >&2;}
13723    { (exit 1); exit 1; }; }
13724 fi
13725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13726 fi
13727 fi
13728 rm -f conftest.val
13729 else
13730   ac_cv_sizeof_off_t=0
13731 fi
13732 fi
13733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13734 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13735 cat >>confdefs.h <<_ACEOF
13736 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13737 _ACEOF
13738
13739
13740 fi
13741 echo "$as_me:$LINENO: checking file_ptr type" >&5
13742 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13743 bfd_file_ptr="long"
13744 bfd_ufile_ptr="unsigned long"
13745 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13746         -o x"${ac_cv_sizeof_off_t}" = x8; then
13747     bfd_file_ptr=BFD_HOST_64_BIT
13748     bfd_ufile_ptr=BFD_HOST_U_64_BIT
13749 fi
13750 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13751 echo "${ECHO_T}$bfd_file_ptr" >&6
13752
13753
13754
13755
13756 tdefaults=""
13757 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13758 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13759 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
13760 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13761 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13762
13763
13764
13765
13766 for ac_header in stdlib.h unistd.h
13767 do
13768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770   echo "$as_me:$LINENO: checking for $ac_header" >&5
13771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13773   echo $ECHO_N "(cached) $ECHO_C" >&6
13774 fi
13775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13777 else
13778   # Is the header compilable?
13779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13781 cat >conftest.$ac_ext <<_ACEOF
13782 /* confdefs.h.  */
13783 _ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h.  */
13787 $ac_includes_default
13788 #include <$ac_header>
13789 _ACEOF
13790 rm -f conftest.$ac_objext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13792   (eval $ac_compile) 2>conftest.er1
13793   ac_status=$?
13794   grep -v '^ *+' conftest.er1 >conftest.err
13795   rm -f conftest.er1
13796   cat conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   (exit $ac_status); } &&
13799          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; } &&
13805          { ac_try='test -s conftest.$ac_objext'
13806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807   (eval $ac_try) 2>&5
13808   ac_status=$?
13809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810   (exit $ac_status); }; }; then
13811   ac_header_compiler=yes
13812 else
13813   echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_header_compiler=no
13817 fi
13818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13820 echo "${ECHO_T}$ac_header_compiler" >&6
13821
13822 # Is the header present?
13823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13831 #include <$ac_header>
13832 _ACEOF
13833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13835   ac_status=$?
13836   grep -v '^ *+' conftest.er1 >conftest.err
13837   rm -f conftest.er1
13838   cat conftest.err >&5
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); } >/dev/null; then
13841   if test -s conftest.err; then
13842     ac_cpp_err=$ac_c_preproc_warn_flag
13843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13844   else
13845     ac_cpp_err=
13846   fi
13847 else
13848   ac_cpp_err=yes
13849 fi
13850 if test -z "$ac_cpp_err"; then
13851   ac_header_preproc=yes
13852 else
13853   echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856   ac_header_preproc=no
13857 fi
13858 rm -f conftest.err conftest.$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13860 echo "${ECHO_T}$ac_header_preproc" >&6
13861
13862 # So?  What about this header?
13863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864   yes:no: )
13865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13869     ac_header_preproc=yes
13870     ;;
13871   no:yes:* )
13872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13884     (
13885       cat <<\_ASBOX
13886 ## ------------------------------------------ ##
13887 ## Report this to the AC_PACKAGE_NAME lists.  ##
13888 ## ------------------------------------------ ##
13889 _ASBOX
13890     ) |
13891       sed "s/^/$as_me: WARNING:     /" >&2
13892     ;;
13893 esac
13894 echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897   echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899   eval "$as_ac_Header=\$ac_header_preproc"
13900 fi
13901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903
13904 fi
13905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13906   cat >>confdefs.h <<_ACEOF
13907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13908 _ACEOF
13909
13910 fi
13911
13912 done
13913
13914
13915 for ac_func in getpagesize
13916 do
13917 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13918 echo "$as_me:$LINENO: checking for $ac_func" >&5
13919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13920 if eval "test \"\${$as_ac_var+set}\" = set"; then
13921   echo $ECHO_N "(cached) $ECHO_C" >&6
13922 else
13923   cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13930    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13931 #define $ac_func innocuous_$ac_func
13932
13933 /* System header to define __stub macros and hopefully few prototypes,
13934     which can conflict with char $ac_func (); below.
13935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13936     <limits.h> exists even on freestanding compilers.  */
13937
13938 #ifdef __STDC__
13939 # include <limits.h>
13940 #else
13941 # include <assert.h>
13942 #endif
13943
13944 #undef $ac_func
13945
13946 /* Override any gcc2 internal prototype to avoid an error.  */
13947 #ifdef __cplusplus
13948 extern "C"
13949 {
13950 #endif
13951 /* We use char because int might match the return type of a gcc2
13952    builtin and then its argument prototype would still apply.  */
13953 char $ac_func ();
13954 /* The GNU C library defines this for functions which it implements
13955     to always fail with ENOSYS.  Some functions are actually named
13956     something starting with __ and the normal name is an alias.  */
13957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13958 choke me
13959 #else
13960 char (*f) () = $ac_func;
13961 #endif
13962 #ifdef __cplusplus
13963 }
13964 #endif
13965
13966 int
13967 main ()
13968 {
13969 return f != $ac_func;
13970   ;
13971   return 0;
13972 }
13973 _ACEOF
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976   (eval $ac_link) 2>conftest.er1
13977   ac_status=$?
13978   grep -v '^ *+' conftest.er1 >conftest.err
13979   rm -f conftest.er1
13980   cat conftest.err >&5
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } &&
13983          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985   (eval $ac_try) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }; } &&
13989          { ac_try='test -s conftest$ac_exeext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   eval "$as_ac_var=yes"
13996 else
13997   echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
13999
14000 eval "$as_ac_var=no"
14001 fi
14002 rm -f conftest.err conftest.$ac_objext \
14003       conftest$ac_exeext conftest.$ac_ext
14004 fi
14005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14006 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14007 if test `eval echo '${'$as_ac_var'}'` = yes; then
14008   cat >>confdefs.h <<_ACEOF
14009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14010 _ACEOF
14011
14012 fi
14013 done
14014
14015 echo "$as_me:$LINENO: checking for working mmap" >&5
14016 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14017 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   if test "$cross_compiling" = yes; then
14021   ac_cv_func_mmap_fixed_mapped=no
14022 else
14023   cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029 $ac_includes_default
14030 /* malloc might have been renamed as rpl_malloc. */
14031 #undef malloc
14032
14033 /* Thanks to Mike Haertel and Jim Avera for this test.
14034    Here is a matrix of mmap possibilities:
14035         mmap private not fixed
14036         mmap private fixed at somewhere currently unmapped
14037         mmap private fixed at somewhere already mapped
14038         mmap shared not fixed
14039         mmap shared fixed at somewhere currently unmapped
14040         mmap shared fixed at somewhere already mapped
14041    For private mappings, we should verify that changes cannot be read()
14042    back from the file, nor mmap's back from the file at a different
14043    address.  (There have been systems where private was not correctly
14044    implemented like the infamous i386 svr4.0, and systems where the
14045    VM page cache was not coherent with the file system buffer cache
14046    like early versions of FreeBSD and possibly contemporary NetBSD.)
14047    For shared mappings, we should conversely verify that changes get
14048    propagated back to all the places they're supposed to be.
14049
14050    Grep wants private fixed already mapped.
14051    The main things grep needs to know about mmap are:
14052    * does it exist and is it safe to write into the mmap'd area
14053    * how to use it (BSD variants)  */
14054
14055 #include <fcntl.h>
14056 #include <sys/mman.h>
14057
14058 #if !STDC_HEADERS && !HAVE_STDLIB_H
14059 char *malloc ();
14060 #endif
14061
14062 /* This mess was copied from the GNU getpagesize.h.  */
14063 #if !HAVE_GETPAGESIZE
14064 /* Assume that all systems that can run configure have sys/param.h.  */
14065 # if !HAVE_SYS_PARAM_H
14066 #  define HAVE_SYS_PARAM_H 1
14067 # endif
14068
14069 # ifdef _SC_PAGESIZE
14070 #  define getpagesize() sysconf(_SC_PAGESIZE)
14071 # else /* no _SC_PAGESIZE */
14072 #  if HAVE_SYS_PARAM_H
14073 #   include <sys/param.h>
14074 #   ifdef EXEC_PAGESIZE
14075 #    define getpagesize() EXEC_PAGESIZE
14076 #   else /* no EXEC_PAGESIZE */
14077 #    ifdef NBPG
14078 #     define getpagesize() NBPG * CLSIZE
14079 #     ifndef CLSIZE
14080 #      define CLSIZE 1
14081 #     endif /* no CLSIZE */
14082 #    else /* no NBPG */
14083 #     ifdef NBPC
14084 #      define getpagesize() NBPC
14085 #     else /* no NBPC */
14086 #      ifdef PAGESIZE
14087 #       define getpagesize() PAGESIZE
14088 #      endif /* PAGESIZE */
14089 #     endif /* no NBPC */
14090 #    endif /* no NBPG */
14091 #   endif /* no EXEC_PAGESIZE */
14092 #  else /* no HAVE_SYS_PARAM_H */
14093 #   define getpagesize() 8192   /* punt totally */
14094 #  endif /* no HAVE_SYS_PARAM_H */
14095 # endif /* no _SC_PAGESIZE */
14096
14097 #endif /* no HAVE_GETPAGESIZE */
14098
14099 int
14100 main ()
14101 {
14102   char *data, *data2, *data3;
14103   int i, pagesize;
14104   int fd;
14105
14106   pagesize = getpagesize ();
14107
14108   /* First, make a file with some known garbage in it. */
14109   data = (char *) malloc (pagesize);
14110   if (!data)
14111     exit (1);
14112   for (i = 0; i < pagesize; ++i)
14113     *(data + i) = rand ();
14114   umask (0);
14115   fd = creat ("conftest.mmap", 0600);
14116   if (fd < 0)
14117     exit (1);
14118   if (write (fd, data, pagesize) != pagesize)
14119     exit (1);
14120   close (fd);
14121
14122   /* Next, try to mmap the file at a fixed address which already has
14123      something else allocated at it.  If we can, also make sure that
14124      we see the same garbage.  */
14125   fd = open ("conftest.mmap", O_RDWR);
14126   if (fd < 0)
14127     exit (1);
14128   data2 = (char *) malloc (2 * pagesize);
14129   if (!data2)
14130     exit (1);
14131   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14132   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14133                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14134     exit (1);
14135   for (i = 0; i < pagesize; ++i)
14136     if (*(data + i) != *(data2 + i))
14137       exit (1);
14138
14139   /* Finally, make sure that changes to the mapped area do not
14140      percolate back to the file as seen by read().  (This is a bug on
14141      some variants of i386 svr4.0.)  */
14142   for (i = 0; i < pagesize; ++i)
14143     *(data2 + i) = *(data2 + i) + 1;
14144   data3 = (char *) malloc (pagesize);
14145   if (!data3)
14146     exit (1);
14147   if (read (fd, data3, pagesize) != pagesize)
14148     exit (1);
14149   for (i = 0; i < pagesize; ++i)
14150     if (*(data + i) != *(data3 + i))
14151       exit (1);
14152   close (fd);
14153   exit (0);
14154 }
14155 _ACEOF
14156 rm -f conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158   (eval $ac_link) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_cv_func_mmap_fixed_mapped=yes
14168 else
14169   echo "$as_me: program exited with status $ac_status" >&5
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 ( exit $ac_status )
14174 ac_cv_func_mmap_fixed_mapped=no
14175 fi
14176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 fi
14179 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14180 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14181 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14182
14183 cat >>confdefs.h <<\_ACEOF
14184 #define HAVE_MMAP 1
14185 _ACEOF
14186
14187 fi
14188 rm -f conftest.mmap
14189
14190
14191
14192 for ac_func in madvise mprotect
14193 do
14194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14195 echo "$as_me:$LINENO: checking for $ac_func" >&5
14196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14197 if eval "test \"\${$as_ac_var+set}\" = set"; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h.  */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h.  */
14206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14208 #define $ac_func innocuous_$ac_func
14209
14210 /* System header to define __stub macros and hopefully few prototypes,
14211     which can conflict with char $ac_func (); below.
14212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14213     <limits.h> exists even on freestanding compilers.  */
14214
14215 #ifdef __STDC__
14216 # include <limits.h>
14217 #else
14218 # include <assert.h>
14219 #endif
14220
14221 #undef $ac_func
14222
14223 /* Override any gcc2 internal prototype to avoid an error.  */
14224 #ifdef __cplusplus
14225 extern "C"
14226 {
14227 #endif
14228 /* We use char because int might match the return type of a gcc2
14229    builtin and then its argument prototype would still apply.  */
14230 char $ac_func ();
14231 /* The GNU C library defines this for functions which it implements
14232     to always fail with ENOSYS.  Some functions are actually named
14233     something starting with __ and the normal name is an alias.  */
14234 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14235 choke me
14236 #else
14237 char (*f) () = $ac_func;
14238 #endif
14239 #ifdef __cplusplus
14240 }
14241 #endif
14242
14243 int
14244 main ()
14245 {
14246 return f != $ac_func;
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14253   (eval $ac_link) 2>conftest.er1
14254   ac_status=$?
14255   grep -v '^ *+' conftest.er1 >conftest.err
14256   rm -f conftest.er1
14257   cat conftest.err >&5
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; } &&
14266          { ac_try='test -s conftest$ac_exeext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   eval "$as_ac_var=yes"
14273 else
14274   echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 eval "$as_ac_var=no"
14278 fi
14279 rm -f conftest.err conftest.$ac_objext \
14280       conftest$ac_exeext conftest.$ac_ext
14281 fi
14282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14284 if test `eval echo '${'$as_ac_var'}'` = yes; then
14285   cat >>confdefs.h <<_ACEOF
14286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14287 _ACEOF
14288
14289 fi
14290 done
14291
14292 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14293   true+yes )
14294 cat >>confdefs.h <<\_ACEOF
14295 #define USE_MMAP 1
14296 _ACEOF
14297  ;;
14298 esac
14299
14300 rm -f doc/config.status
14301                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14302
14303           ac_config_commands="$ac_config_commands default"
14304
14305 cat >confcache <<\_ACEOF
14306 # This file is a shell script that caches the results of configure
14307 # tests run on this system so they can be shared between configure
14308 # scripts and configure runs, see configure's option --config-cache.
14309 # It is not useful on other systems.  If it contains results you don't
14310 # want to keep, you may remove or edit it.
14311 #
14312 # config.status only pays attention to the cache file if you give it
14313 # the --recheck option to rerun configure.
14314 #
14315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14317 # following values.
14318
14319 _ACEOF
14320
14321 # The following way of writing the cache mishandles newlines in values,
14322 # but we know of no workaround that is simple, portable, and efficient.
14323 # So, don't put newlines in cache variables' values.
14324 # Ultrix sh set writes to stderr and can't be redirected directly,
14325 # and sets the high bit in the cache file unless we assign to the vars.
14326 {
14327   (set) 2>&1 |
14328     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14329     *ac_space=\ *)
14330       # `set' does not quote correctly, so add quotes (double-quote
14331       # substitution turns \\\\ into \\, and sed turns \\ into \).
14332       sed -n \
14333         "s/'/'\\\\''/g;
14334           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14335       ;;
14336     *)
14337       # `set' quotes correctly as required by POSIX, so do not add quotes.
14338       sed -n \
14339         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14340       ;;
14341     esac;
14342 } |
14343   sed '
14344      t clear
14345      : clear
14346      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14347      t end
14348      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14349      : end' >>confcache
14350 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14351   if test -w $cache_file; then
14352     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14353     cat confcache >$cache_file
14354   else
14355     echo "not updating unwritable cache $cache_file"
14356   fi
14357 fi
14358 rm -f confcache
14359
14360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14361 # Let make expand exec_prefix.
14362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14363
14364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14366 # trailing colons and then remove the whole line if VPATH becomes empty
14367 # (actually we leave an empty line to preserve line numbers).
14368 if test "x$srcdir" = x.; then
14369   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14370 s/:*\$(srcdir):*/:/;
14371 s/:*\${srcdir}:*/:/;
14372 s/:*@srcdir@:*/:/;
14373 s/^\([^=]*=[     ]*\):*/\1/;
14374 s/:*$//;
14375 s/^[^=]*=[       ]*$//;
14376 }'
14377 fi
14378
14379 DEFS=-DHAVE_CONFIG_H
14380
14381 ac_libobjs=
14382 ac_ltlibobjs=
14383 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14384   # 1. Remove the extension, and $U if already installed.
14385   ac_i=`echo "$ac_i" |
14386          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14387   # 2. Add them.
14388   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14389   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14390 done
14391 LIBOBJS=$ac_libobjs
14392
14393 LTLIBOBJS=$ac_ltlibobjs
14394
14395
14396 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14397   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14398 Usually this means the macro was only invoked conditionally." >&5
14399 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14400 Usually this means the macro was only invoked conditionally." >&2;}
14401    { (exit 1); exit 1; }; }
14402 fi
14403 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14404   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14405 Usually this means the macro was only invoked conditionally." >&5
14406 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14407 Usually this means the macro was only invoked conditionally." >&2;}
14408    { (exit 1); exit 1; }; }
14409 fi
14410 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14411   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14412 Usually this means the macro was only invoked conditionally." >&5
14413 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14414 Usually this means the macro was only invoked conditionally." >&2;}
14415    { (exit 1); exit 1; }; }
14416 fi
14417 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14418   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14419 Usually this means the macro was only invoked conditionally." >&5
14420 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14421 Usually this means the macro was only invoked conditionally." >&2;}
14422    { (exit 1); exit 1; }; }
14423 fi
14424
14425 : ${CONFIG_STATUS=./config.status}
14426 ac_clean_files_save=$ac_clean_files
14427 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14428 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14429 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14430 cat >$CONFIG_STATUS <<_ACEOF
14431 #! $SHELL
14432 # Generated by $as_me.
14433 # Run this file to recreate the current configuration.
14434 # Compiler output produced by configure, useful for debugging
14435 # configure, is in config.log if it exists.
14436
14437 debug=false
14438 ac_cs_recheck=false
14439 ac_cs_silent=false
14440 SHELL=\${CONFIG_SHELL-$SHELL}
14441 _ACEOF
14442
14443 cat >>$CONFIG_STATUS <<\_ACEOF
14444 ## --------------------- ##
14445 ## M4sh Initialization.  ##
14446 ## --------------------- ##
14447
14448 # Be Bourne compatible
14449 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14450   emulate sh
14451   NULLCMD=:
14452   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14453   # is contrary to our usage.  Disable this feature.
14454   alias -g '${1+"$@"}'='"$@"'
14455 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14456   set -o posix
14457 fi
14458 DUALCASE=1; export DUALCASE # for MKS sh
14459
14460 # Support unset when possible.
14461 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14462   as_unset=unset
14463 else
14464   as_unset=false
14465 fi
14466
14467
14468 # Work around bugs in pre-3.0 UWIN ksh.
14469 $as_unset ENV MAIL MAILPATH
14470 PS1='$ '
14471 PS2='> '
14472 PS4='+ '
14473
14474 # NLS nuisances.
14475 for as_var in \
14476   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14477   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14478   LC_TELEPHONE LC_TIME
14479 do
14480   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14481     eval $as_var=C; export $as_var
14482   else
14483     $as_unset $as_var
14484   fi
14485 done
14486
14487 # Required to use basename.
14488 if expr a : '\(a\)' >/dev/null 2>&1; then
14489   as_expr=expr
14490 else
14491   as_expr=false
14492 fi
14493
14494 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14495   as_basename=basename
14496 else
14497   as_basename=false
14498 fi
14499
14500
14501 # Name of the executable.
14502 as_me=`$as_basename "$0" ||
14503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14504          X"$0" : 'X\(//\)$' \| \
14505          X"$0" : 'X\(/\)$' \| \
14506          .     : '\(.\)' 2>/dev/null ||
14507 echo X/"$0" |
14508     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14509           /^X\/\(\/\/\)$/{ s//\1/; q; }
14510           /^X\/\(\/\).*/{ s//\1/; q; }
14511           s/.*/./; q'`
14512
14513
14514 # PATH needs CR, and LINENO needs CR and PATH.
14515 # Avoid depending upon Character Ranges.
14516 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14517 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14518 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14519 as_cr_digits='0123456789'
14520 as_cr_alnum=$as_cr_Letters$as_cr_digits
14521
14522 # The user is always right.
14523 if test "${PATH_SEPARATOR+set}" != set; then
14524   echo "#! /bin/sh" >conf$$.sh
14525   echo  "exit 0"   >>conf$$.sh
14526   chmod +x conf$$.sh
14527   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14528     PATH_SEPARATOR=';'
14529   else
14530     PATH_SEPARATOR=:
14531   fi
14532   rm -f conf$$.sh
14533 fi
14534
14535
14536   as_lineno_1=$LINENO
14537   as_lineno_2=$LINENO
14538   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14539   test "x$as_lineno_1" != "x$as_lineno_2" &&
14540   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14541   # Find who we are.  Look in the path if we contain no path at all
14542   # relative or not.
14543   case $0 in
14544     *[\\/]* ) as_myself=$0 ;;
14545     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14546 for as_dir in $PATH
14547 do
14548   IFS=$as_save_IFS
14549   test -z "$as_dir" && as_dir=.
14550   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14551 done
14552
14553        ;;
14554   esac
14555   # We did not find ourselves, most probably we were run as `sh COMMAND'
14556   # in which case we are not to be found in the path.
14557   if test "x$as_myself" = x; then
14558     as_myself=$0
14559   fi
14560   if test ! -f "$as_myself"; then
14561     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14562 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14563    { (exit 1); exit 1; }; }
14564   fi
14565   case $CONFIG_SHELL in
14566   '')
14567     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14568 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14569 do
14570   IFS=$as_save_IFS
14571   test -z "$as_dir" && as_dir=.
14572   for as_base in sh bash ksh sh5; do
14573          case $as_dir in
14574          /*)
14575            if ("$as_dir/$as_base" -c '
14576   as_lineno_1=$LINENO
14577   as_lineno_2=$LINENO
14578   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14579   test "x$as_lineno_1" != "x$as_lineno_2" &&
14580   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14581              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14582              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14583              CONFIG_SHELL=$as_dir/$as_base
14584              export CONFIG_SHELL
14585              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14586            fi;;
14587          esac
14588        done
14589 done
14590 ;;
14591   esac
14592
14593   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14594   # uniformly replaced by the line number.  The first 'sed' inserts a
14595   # line-number line before each line; the second 'sed' does the real
14596   # work.  The second script uses 'N' to pair each line-number line
14597   # with the numbered line, and appends trailing '-' during
14598   # substitution so that $LINENO is not a special case at line end.
14599   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14600   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14601   sed '=' <$as_myself |
14602     sed '
14603       N
14604       s,$,-,
14605       : loop
14606       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14607       t loop
14608       s,-$,,
14609       s,^['$as_cr_digits']*\n,,
14610     ' >$as_me.lineno &&
14611   chmod +x $as_me.lineno ||
14612     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14613 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14614    { (exit 1); exit 1; }; }
14615
14616   # Don't try to exec as it changes $[0], causing all sort of problems
14617   # (the dirname of $[0] is not the place where we might find the
14618   # original and so on.  Autoconf is especially sensible to this).
14619   . ./$as_me.lineno
14620   # Exit status is that of the last command.
14621   exit
14622 }
14623
14624
14625 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14626   *c*,-n*) ECHO_N= ECHO_C='
14627 ' ECHO_T='      ' ;;
14628   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14629   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14630 esac
14631
14632 if expr a : '\(a\)' >/dev/null 2>&1; then
14633   as_expr=expr
14634 else
14635   as_expr=false
14636 fi
14637
14638 rm -f conf$$ conf$$.exe conf$$.file
14639 echo >conf$$.file
14640 if ln -s conf$$.file conf$$ 2>/dev/null; then
14641   # We could just check for DJGPP; but this test a) works b) is more generic
14642   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14643   if test -f conf$$.exe; then
14644     # Don't use ln at all; we don't have any links
14645     as_ln_s='cp -p'
14646   else
14647     as_ln_s='ln -s'
14648   fi
14649 elif ln conf$$.file conf$$ 2>/dev/null; then
14650   as_ln_s=ln
14651 else
14652   as_ln_s='cp -p'
14653 fi
14654 rm -f conf$$ conf$$.exe conf$$.file
14655
14656 if mkdir -p . 2>/dev/null; then
14657   as_mkdir_p=:
14658 else
14659   test -d ./-p && rmdir ./-p
14660   as_mkdir_p=false
14661 fi
14662
14663 as_executable_p="test -f"
14664
14665 # Sed expression to map a string onto a valid CPP name.
14666 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14667
14668 # Sed expression to map a string onto a valid variable name.
14669 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14670
14671
14672 # IFS
14673 # We need space, tab and new line, in precisely that order.
14674 as_nl='
14675 '
14676 IFS="   $as_nl"
14677
14678 # CDPATH.
14679 $as_unset CDPATH
14680
14681 exec 6>&1
14682
14683 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14684 # report actual input values of CONFIG_FILES etc. instead of their
14685 # values after options handling.  Logging --version etc. is OK.
14686 exec 5>>config.log
14687 {
14688   echo
14689   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14690 ## Running $as_me. ##
14691 _ASBOX
14692 } >&5
14693 cat >&5 <<_CSEOF
14694
14695 This file was extended by $as_me, which was
14696 generated by GNU Autoconf 2.59.  Invocation command line was
14697
14698   CONFIG_FILES    = $CONFIG_FILES
14699   CONFIG_HEADERS  = $CONFIG_HEADERS
14700   CONFIG_LINKS    = $CONFIG_LINKS
14701   CONFIG_COMMANDS = $CONFIG_COMMANDS
14702   $ $0 $@
14703
14704 _CSEOF
14705 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14706 echo >&5
14707 _ACEOF
14708
14709 # Files that config.status was made for.
14710 if test -n "$ac_config_files"; then
14711   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14712 fi
14713
14714 if test -n "$ac_config_headers"; then
14715   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14716 fi
14717
14718 if test -n "$ac_config_links"; then
14719   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14720 fi
14721
14722 if test -n "$ac_config_commands"; then
14723   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14724 fi
14725
14726 cat >>$CONFIG_STATUS <<\_ACEOF
14727
14728 ac_cs_usage="\
14729 \`$as_me' instantiates files from templates according to the
14730 current configuration.
14731
14732 Usage: $0 [OPTIONS] [FILE]...
14733
14734   -h, --help       print this help, then exit
14735   -V, --version    print version number, then exit
14736   -q, --quiet      do not print progress messages
14737   -d, --debug      don't remove temporary files
14738       --recheck    update $as_me by reconfiguring in the same conditions
14739   --file=FILE[:TEMPLATE]
14740                    instantiate the configuration file FILE
14741   --header=FILE[:TEMPLATE]
14742                    instantiate the configuration header FILE
14743
14744 Configuration files:
14745 $config_files
14746
14747 Configuration headers:
14748 $config_headers
14749
14750 Configuration commands:
14751 $config_commands
14752
14753 Report bugs to <bug-autoconf@gnu.org>."
14754 _ACEOF
14755
14756 cat >>$CONFIG_STATUS <<_ACEOF
14757 ac_cs_version="\\
14758 config.status
14759 configured by $0, generated by GNU Autoconf 2.59,
14760   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14761
14762 Copyright (C) 2003 Free Software Foundation, Inc.
14763 This config.status script is free software; the Free Software Foundation
14764 gives unlimited permission to copy, distribute and modify it."
14765 srcdir=$srcdir
14766 INSTALL="$INSTALL"
14767 _ACEOF
14768
14769 cat >>$CONFIG_STATUS <<\_ACEOF
14770 # If no file are specified by the user, then we need to provide default
14771 # value.  By we need to know if files were specified by the user.
14772 ac_need_defaults=:
14773 while test $# != 0
14774 do
14775   case $1 in
14776   --*=*)
14777     ac_option=`expr "x$1" : 'x\([^=]*\)='`
14778     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14779     ac_shift=:
14780     ;;
14781   -*)
14782     ac_option=$1
14783     ac_optarg=$2
14784     ac_shift=shift
14785     ;;
14786   *) # This is not an option, so the user has probably given explicit
14787      # arguments.
14788      ac_option=$1
14789      ac_need_defaults=false;;
14790   esac
14791
14792   case $ac_option in
14793   # Handling of the options.
14794 _ACEOF
14795 cat >>$CONFIG_STATUS <<\_ACEOF
14796   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14797     ac_cs_recheck=: ;;
14798   --version | --vers* | -V )
14799     echo "$ac_cs_version"; exit 0 ;;
14800   --he | --h)
14801     # Conflict between --help and --header
14802     { { echo "$as_me:$LINENO: error: ambiguous option: $1
14803 Try \`$0 --help' for more information." >&5
14804 echo "$as_me: error: ambiguous option: $1
14805 Try \`$0 --help' for more information." >&2;}
14806    { (exit 1); exit 1; }; };;
14807   --help | --hel | -h )
14808     echo "$ac_cs_usage"; exit 0 ;;
14809   --debug | --d* | -d )
14810     debug=: ;;
14811   --file | --fil | --fi | --f )
14812     $ac_shift
14813     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14814     ac_need_defaults=false;;
14815   --header | --heade | --head | --hea )
14816     $ac_shift
14817     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14818     ac_need_defaults=false;;
14819   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14820   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14821     ac_cs_silent=: ;;
14822
14823   # This is an error.
14824   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14825 Try \`$0 --help' for more information." >&5
14826 echo "$as_me: error: unrecognized option: $1
14827 Try \`$0 --help' for more information." >&2;}
14828    { (exit 1); exit 1; }; } ;;
14829
14830   *) ac_config_targets="$ac_config_targets $1" ;;
14831
14832   esac
14833   shift
14834 done
14835
14836 ac_configure_extra_args=
14837
14838 if $ac_cs_silent; then
14839   exec 6>/dev/null
14840   ac_configure_extra_args="$ac_configure_extra_args --silent"
14841 fi
14842
14843 _ACEOF
14844 cat >>$CONFIG_STATUS <<_ACEOF
14845 if \$ac_cs_recheck; then
14846   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14847   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14848 fi
14849
14850 _ACEOF
14851
14852 cat >>$CONFIG_STATUS <<_ACEOF
14853 #
14854 # INIT-COMMANDS section.
14855 #
14856
14857 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14858
14859
14860 _ACEOF
14861
14862
14863
14864 cat >>$CONFIG_STATUS <<\_ACEOF
14865 for ac_config_target in $ac_config_targets
14866 do
14867   case "$ac_config_target" in
14868   # Handling of arguments.
14869   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14870   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14871   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
14872   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14873   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14874   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14875   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14876   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14877 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14878    { (exit 1); exit 1; }; };;
14879   esac
14880 done
14881
14882 # If the user did not use the arguments to specify the items to instantiate,
14883 # then the envvar interface is used.  Set only those that are not.
14884 # We use the long form for the default assignment because of an extremely
14885 # bizarre bug on SunOS 4.1.3.
14886 if $ac_need_defaults; then
14887   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14888   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14889   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14890 fi
14891
14892 # Have a temporary directory for convenience.  Make it in the build tree
14893 # simply because there is no reason to put it here, and in addition,
14894 # creating and moving files from /tmp can sometimes cause problems.
14895 # Create a temporary directory, and hook for its removal unless debugging.
14896 $debug ||
14897 {
14898   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14899   trap '{ (exit 1); exit 1; }' 1 2 13 15
14900 }
14901
14902 # Create a (secure) tmp directory for tmp files.
14903
14904 {
14905   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14906   test -n "$tmp" && test -d "$tmp"
14907 }  ||
14908 {
14909   tmp=./confstat$$-$RANDOM
14910   (umask 077 && mkdir $tmp)
14911 } ||
14912 {
14913    echo "$me: cannot create a temporary directory in ." >&2
14914    { (exit 1); exit 1; }
14915 }
14916
14917 _ACEOF
14918
14919 cat >>$CONFIG_STATUS <<_ACEOF
14920
14921 #
14922 # CONFIG_FILES section.
14923 #
14924
14925 # No need to generate the scripts if there are no CONFIG_FILES.
14926 # This happens for instance when ./config.status config.h
14927 if test -n "\$CONFIG_FILES"; then
14928   # Protect against being on the right side of a sed subst in config.status.
14929   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14930    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14931 s,@SHELL@,$SHELL,;t t
14932 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14933 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14934 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14935 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14936 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14937 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14938 s,@exec_prefix@,$exec_prefix,;t t
14939 s,@prefix@,$prefix,;t t
14940 s,@program_transform_name@,$program_transform_name,;t t
14941 s,@bindir@,$bindir,;t t
14942 s,@sbindir@,$sbindir,;t t
14943 s,@libexecdir@,$libexecdir,;t t
14944 s,@datadir@,$datadir,;t t
14945 s,@sysconfdir@,$sysconfdir,;t t
14946 s,@sharedstatedir@,$sharedstatedir,;t t
14947 s,@localstatedir@,$localstatedir,;t t
14948 s,@libdir@,$libdir,;t t
14949 s,@includedir@,$includedir,;t t
14950 s,@oldincludedir@,$oldincludedir,;t t
14951 s,@infodir@,$infodir,;t t
14952 s,@mandir@,$mandir,;t t
14953 s,@build_alias@,$build_alias,;t t
14954 s,@host_alias@,$host_alias,;t t
14955 s,@target_alias@,$target_alias,;t t
14956 s,@DEFS@,$DEFS,;t t
14957 s,@ECHO_C@,$ECHO_C,;t t
14958 s,@ECHO_N@,$ECHO_N,;t t
14959 s,@ECHO_T@,$ECHO_T,;t t
14960 s,@LIBS@,$LIBS,;t t
14961 s,@build@,$build,;t t
14962 s,@build_cpu@,$build_cpu,;t t
14963 s,@build_vendor@,$build_vendor,;t t
14964 s,@build_os@,$build_os,;t t
14965 s,@host@,$host,;t t
14966 s,@host_cpu@,$host_cpu,;t t
14967 s,@host_vendor@,$host_vendor,;t t
14968 s,@host_os@,$host_os,;t t
14969 s,@target@,$target,;t t
14970 s,@target_cpu@,$target_cpu,;t t
14971 s,@target_vendor@,$target_vendor,;t t
14972 s,@target_os@,$target_os,;t t
14973 s,@CC@,$CC,;t t
14974 s,@CFLAGS@,$CFLAGS,;t t
14975 s,@LDFLAGS@,$LDFLAGS,;t t
14976 s,@CPPFLAGS@,$CPPFLAGS,;t t
14977 s,@ac_ct_CC@,$ac_ct_CC,;t t
14978 s,@EXEEXT@,$EXEEXT,;t t
14979 s,@OBJEXT@,$OBJEXT,;t t
14980 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14981 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14982 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14983 s,@CYGPATH_W@,$CYGPATH_W,;t t
14984 s,@PACKAGE@,$PACKAGE,;t t
14985 s,@VERSION@,$VERSION,;t t
14986 s,@ACLOCAL@,$ACLOCAL,;t t
14987 s,@AUTOCONF@,$AUTOCONF,;t t
14988 s,@AUTOMAKE@,$AUTOMAKE,;t t
14989 s,@AUTOHEADER@,$AUTOHEADER,;t t
14990 s,@MAKEINFO@,$MAKEINFO,;t t
14991 s,@install_sh@,$install_sh,;t t
14992 s,@STRIP@,$STRIP,;t t
14993 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14994 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14995 s,@mkdir_p@,$mkdir_p,;t t
14996 s,@AWK@,$AWK,;t t
14997 s,@SET_MAKE@,$SET_MAKE,;t t
14998 s,@am__leading_dot@,$am__leading_dot,;t t
14999 s,@AMTAR@,$AMTAR,;t t
15000 s,@am__tar@,$am__tar,;t t
15001 s,@am__untar@,$am__untar,;t t
15002 s,@DEPDIR@,$DEPDIR,;t t
15003 s,@am__include@,$am__include,;t t
15004 s,@am__quote@,$am__quote,;t t
15005 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15006 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15007 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15008 s,@CCDEPMODE@,$CCDEPMODE,;t t
15009 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15010 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15011 s,@AR@,$AR,;t t
15012 s,@ac_ct_AR@,$ac_ct_AR,;t t
15013 s,@RANLIB@,$RANLIB,;t t
15014 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15015 s,@LN_S@,$LN_S,;t t
15016 s,@LIBTOOL@,$LIBTOOL,;t t
15017 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15018 s,@NO_WERROR@,$NO_WERROR,;t t
15019 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15020 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15021 s,@MAINT@,$MAINT,;t t
15022 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15023 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15024 s,@host_noncanonical@,$host_noncanonical,;t t
15025 s,@target_noncanonical@,$target_noncanonical,;t t
15026 s,@bfdlibdir@,$bfdlibdir,;t t
15027 s,@bfdincludedir@,$bfdincludedir,;t t
15028 s,@CPP@,$CPP,;t t
15029 s,@EGREP@,$EGREP,;t t
15030 s,@ALLOCA@,$ALLOCA,;t t
15031 s,@USE_NLS@,$USE_NLS,;t t
15032 s,@MSGFMT@,$MSGFMT,;t t
15033 s,@GMSGFMT@,$GMSGFMT,;t t
15034 s,@XGETTEXT@,$XGETTEXT,;t t
15035 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15036 s,@CATALOGS@,$CATALOGS,;t t
15037 s,@CATOBJEXT@,$CATOBJEXT,;t t
15038 s,@DATADIRNAME@,$DATADIRNAME,;t t
15039 s,@GMOFILES@,$GMOFILES,;t t
15040 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15041 s,@INTLDEPS@,$INTLDEPS,;t t
15042 s,@INTLLIBS@,$INTLLIBS,;t t
15043 s,@INTLOBJS@,$INTLOBJS,;t t
15044 s,@POFILES@,$POFILES,;t t
15045 s,@POSUB@,$POSUB,;t t
15046 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15047 s,@GT_NO@,$GT_NO,;t t
15048 s,@GT_YES@,$GT_YES,;t t
15049 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15050 s,@l@,$l,;t t
15051 s,@HDEFINES@,$HDEFINES,;t t
15052 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15053 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15054 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15055 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15056 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15057 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15058 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15059 s,@COREFILE@,$COREFILE,;t t
15060 s,@COREFLAG@,$COREFLAG,;t t
15061 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15062 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15063 s,@TDEFINES@,$TDEFINES,;t t
15064 s,@wordsize@,$wordsize,;t t
15065 s,@bfd_libs@,$bfd_libs,;t t
15066 s,@all_backends@,$all_backends,;t t
15067 s,@bfd_backends@,$bfd_backends,;t t
15068 s,@bfd_machines@,$bfd_machines,;t t
15069 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15070 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15071 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15072 s,@tdefaults@,$tdefaults,;t t
15073 s,@LIBOBJS@,$LIBOBJS,;t t
15074 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15075 CEOF
15076
15077 _ACEOF
15078
15079   cat >>$CONFIG_STATUS <<\_ACEOF
15080   # Split the substitutions into bite-sized pieces for seds with
15081   # small command number limits, like on Digital OSF/1 and HP-UX.
15082   ac_max_sed_lines=48
15083   ac_sed_frag=1 # Number of current file.
15084   ac_beg=1 # First line for current file.
15085   ac_end=$ac_max_sed_lines # Line after last line for current file.
15086   ac_more_lines=:
15087   ac_sed_cmds=
15088   while $ac_more_lines; do
15089     if test $ac_beg -gt 1; then
15090       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15091     else
15092       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15093     fi
15094     if test ! -s $tmp/subs.frag; then
15095       ac_more_lines=false
15096     else
15097       # The purpose of the label and of the branching condition is to
15098       # speed up the sed processing (if there are no `@' at all, there
15099       # is no need to browse any of the substitutions).
15100       # These are the two extra sed commands mentioned above.
15101       (echo ':t
15102   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15103       if test -z "$ac_sed_cmds"; then
15104         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15105       else
15106         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15107       fi
15108       ac_sed_frag=`expr $ac_sed_frag + 1`
15109       ac_beg=$ac_end
15110       ac_end=`expr $ac_end + $ac_max_sed_lines`
15111     fi
15112   done
15113   if test -z "$ac_sed_cmds"; then
15114     ac_sed_cmds=cat
15115   fi
15116 fi # test -n "$CONFIG_FILES"
15117
15118 _ACEOF
15119 cat >>$CONFIG_STATUS <<\_ACEOF
15120 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15121   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15122   case $ac_file in
15123   - | *:- | *:-:* ) # input from stdin
15124         cat >$tmp/stdin
15125         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15127   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15128         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15129   * )   ac_file_in=$ac_file.in ;;
15130   esac
15131
15132   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15133   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15135          X"$ac_file" : 'X\(//\)[^/]' \| \
15136          X"$ac_file" : 'X\(//\)$' \| \
15137          X"$ac_file" : 'X\(/\)' \| \
15138          .     : '\(.\)' 2>/dev/null ||
15139 echo X"$ac_file" |
15140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15142           /^X\(\/\/\)$/{ s//\1/; q; }
15143           /^X\(\/\).*/{ s//\1/; q; }
15144           s/.*/./; q'`
15145   { if $as_mkdir_p; then
15146     mkdir -p "$ac_dir"
15147   else
15148     as_dir="$ac_dir"
15149     as_dirs=
15150     while test ! -d "$as_dir"; do
15151       as_dirs="$as_dir $as_dirs"
15152       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15154          X"$as_dir" : 'X\(//\)[^/]' \| \
15155          X"$as_dir" : 'X\(//\)$' \| \
15156          X"$as_dir" : 'X\(/\)' \| \
15157          .     : '\(.\)' 2>/dev/null ||
15158 echo X"$as_dir" |
15159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15160           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15161           /^X\(\/\/\)$/{ s//\1/; q; }
15162           /^X\(\/\).*/{ s//\1/; q; }
15163           s/.*/./; q'`
15164     done
15165     test ! -n "$as_dirs" || mkdir $as_dirs
15166   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15167 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15168    { (exit 1); exit 1; }; }; }
15169
15170   ac_builddir=.
15171
15172 if test "$ac_dir" != .; then
15173   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15174   # A "../" for each directory in $ac_dir_suffix.
15175   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15176 else
15177   ac_dir_suffix= ac_top_builddir=
15178 fi
15179
15180 case $srcdir in
15181   .)  # No --srcdir option.  We are building in place.
15182     ac_srcdir=.
15183     if test -z "$ac_top_builddir"; then
15184        ac_top_srcdir=.
15185     else
15186        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15187     fi ;;
15188   [\\/]* | ?:[\\/]* )  # Absolute path.
15189     ac_srcdir=$srcdir$ac_dir_suffix;
15190     ac_top_srcdir=$srcdir ;;
15191   *) # Relative path.
15192     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15193     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15194 esac
15195
15196 # Do not use `cd foo && pwd` to compute absolute paths, because
15197 # the directories may not exist.
15198 case `pwd` in
15199 .) ac_abs_builddir="$ac_dir";;
15200 *)
15201   case "$ac_dir" in
15202   .) ac_abs_builddir=`pwd`;;
15203   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15204   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15205   esac;;
15206 esac
15207 case $ac_abs_builddir in
15208 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15209 *)
15210   case ${ac_top_builddir}. in
15211   .) ac_abs_top_builddir=$ac_abs_builddir;;
15212   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15213   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15214   esac;;
15215 esac
15216 case $ac_abs_builddir in
15217 .) ac_abs_srcdir=$ac_srcdir;;
15218 *)
15219   case $ac_srcdir in
15220   .) ac_abs_srcdir=$ac_abs_builddir;;
15221   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15222   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15223   esac;;
15224 esac
15225 case $ac_abs_builddir in
15226 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15227 *)
15228   case $ac_top_srcdir in
15229   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15230   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15231   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15232   esac;;
15233 esac
15234
15235
15236   case $INSTALL in
15237   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15238   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15239   esac
15240
15241   # Let's still pretend it is `configure' which instantiates (i.e., don't
15242   # use $as_me), people would be surprised to read:
15243   #    /* config.h.  Generated by config.status.  */
15244   if test x"$ac_file" = x-; then
15245     configure_input=
15246   else
15247     configure_input="$ac_file.  "
15248   fi
15249   configure_input=$configure_input"Generated from `echo $ac_file_in |
15250                                      sed 's,.*/,,'` by configure."
15251
15252   # First look for the input files in the build tree, otherwise in the
15253   # src tree.
15254   ac_file_inputs=`IFS=:
15255     for f in $ac_file_in; do
15256       case $f in
15257       -) echo $tmp/stdin ;;
15258       [\\/$]*)
15259          # Absolute (can't be DOS-style, as IFS=:)
15260          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15261 echo "$as_me: error: cannot find input file: $f" >&2;}
15262    { (exit 1); exit 1; }; }
15263          echo "$f";;
15264       *) # Relative
15265          if test -f "$f"; then
15266            # Build tree
15267            echo "$f"
15268          elif test -f "$srcdir/$f"; then
15269            # Source tree
15270            echo "$srcdir/$f"
15271          else
15272            # /dev/null tree
15273            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15274 echo "$as_me: error: cannot find input file: $f" >&2;}
15275    { (exit 1); exit 1; }; }
15276          fi;;
15277       esac
15278     done` || { (exit 1); exit 1; }
15279
15280   if test x"$ac_file" != x-; then
15281     { echo "$as_me:$LINENO: creating $ac_file" >&5
15282 echo "$as_me: creating $ac_file" >&6;}
15283     rm -f "$ac_file"
15284   fi
15285 _ACEOF
15286 cat >>$CONFIG_STATUS <<_ACEOF
15287   sed "$ac_vpsub
15288 $extrasub
15289 _ACEOF
15290 cat >>$CONFIG_STATUS <<\_ACEOF
15291 :t
15292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15293 s,@configure_input@,$configure_input,;t t
15294 s,@srcdir@,$ac_srcdir,;t t
15295 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15296 s,@top_srcdir@,$ac_top_srcdir,;t t
15297 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15298 s,@builddir@,$ac_builddir,;t t
15299 s,@abs_builddir@,$ac_abs_builddir,;t t
15300 s,@top_builddir@,$ac_top_builddir,;t t
15301 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15302 s,@INSTALL@,$ac_INSTALL,;t t
15303 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15304   rm -f $tmp/stdin
15305   if test x"$ac_file" != x-; then
15306     mv $tmp/out $ac_file
15307   else
15308     cat $tmp/out
15309     rm -f $tmp/out
15310   fi
15311
15312 done
15313 _ACEOF
15314 cat >>$CONFIG_STATUS <<\_ACEOF
15315
15316 #
15317 # CONFIG_HEADER section.
15318 #
15319
15320 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15321 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15322 #
15323 # ac_d sets the value in "#define NAME VALUE" lines.
15324 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15325 ac_dB='[         ].*$,\1#\2'
15326 ac_dC=' '
15327 ac_dD=',;t'
15328 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15329 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15330 ac_uB='$,\1#\2define\3'
15331 ac_uC=' '
15332 ac_uD=',;t'
15333
15334 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15335   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15336   case $ac_file in
15337   - | *:- | *:-:* ) # input from stdin
15338         cat >$tmp/stdin
15339         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15340         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15341   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15342         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15343   * )   ac_file_in=$ac_file.in ;;
15344   esac
15345
15346   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15347 echo "$as_me: creating $ac_file" >&6;}
15348
15349   # First look for the input files in the build tree, otherwise in the
15350   # src tree.
15351   ac_file_inputs=`IFS=:
15352     for f in $ac_file_in; do
15353       case $f in
15354       -) echo $tmp/stdin ;;
15355       [\\/$]*)
15356          # Absolute (can't be DOS-style, as IFS=:)
15357          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15358 echo "$as_me: error: cannot find input file: $f" >&2;}
15359    { (exit 1); exit 1; }; }
15360          # Do quote $f, to prevent DOS paths from being IFS'd.
15361          echo "$f";;
15362       *) # Relative
15363          if test -f "$f"; then
15364            # Build tree
15365            echo "$f"
15366          elif test -f "$srcdir/$f"; then
15367            # Source tree
15368            echo "$srcdir/$f"
15369          else
15370            # /dev/null tree
15371            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15372 echo "$as_me: error: cannot find input file: $f" >&2;}
15373    { (exit 1); exit 1; }; }
15374          fi;;
15375       esac
15376     done` || { (exit 1); exit 1; }
15377   # Remove the trailing spaces.
15378   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15379
15380 _ACEOF
15381
15382 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15383 # `conftest.undefs', that substitutes the proper values into
15384 # config.h.in to produce config.h.  The first handles `#define'
15385 # templates, and the second `#undef' templates.
15386 # And first: Protect against being on the right side of a sed subst in
15387 # config.status.  Protect against being in an unquoted here document
15388 # in config.status.
15389 rm -f conftest.defines conftest.undefs
15390 # Using a here document instead of a string reduces the quoting nightmare.
15391 # Putting comments in sed scripts is not portable.
15392 #
15393 # `end' is used to avoid that the second main sed command (meant for
15394 # 0-ary CPP macros) applies to n-ary macro definitions.
15395 # See the Autoconf documentation for `clear'.
15396 cat >confdef2sed.sed <<\_ACEOF
15397 s/[\\&,]/\\&/g
15398 s,[\\$`],\\&,g
15399 t clear
15400 : clear
15401 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15402 t end
15403 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15404 : end
15405 _ACEOF
15406 # If some macros were called several times there might be several times
15407 # the same #defines, which is useless.  Nevertheless, we may not want to
15408 # sort them, since we want the *last* AC-DEFINE to be honored.
15409 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15410 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15411 rm -f confdef2sed.sed
15412
15413 # This sed command replaces #undef with comments.  This is necessary, for
15414 # example, in the case of _POSIX_SOURCE, which is predefined and required
15415 # on some systems where configure will not decide to define it.
15416 cat >>conftest.undefs <<\_ACEOF
15417 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15418 _ACEOF
15419
15420 # Break up conftest.defines because some shells have a limit on the size
15421 # of here documents, and old seds have small limits too (100 cmds).
15422 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15423 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15424 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15425 echo '  :' >>$CONFIG_STATUS
15426 rm -f conftest.tail
15427 while grep . conftest.defines >/dev/null
15428 do
15429   # Write a limited-size here document to $tmp/defines.sed.
15430   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15431   # Speed up: don't consider the non `#define' lines.
15432   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
15433   # Work around the forget-to-reset-the-flag bug.
15434   echo 't clr' >>$CONFIG_STATUS
15435   echo ': clr' >>$CONFIG_STATUS
15436   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15437   echo 'CEOF
15438   sed -f $tmp/defines.sed $tmp/in >$tmp/out
15439   rm -f $tmp/in
15440   mv $tmp/out $tmp/in
15441 ' >>$CONFIG_STATUS
15442   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15443   rm -f conftest.defines
15444   mv conftest.tail conftest.defines
15445 done
15446 rm -f conftest.defines
15447 echo '  fi # grep' >>$CONFIG_STATUS
15448 echo >>$CONFIG_STATUS
15449
15450 # Break up conftest.undefs because some shells have a limit on the size
15451 # of here documents, and old seds have small limits too (100 cmds).
15452 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15453 rm -f conftest.tail
15454 while grep . conftest.undefs >/dev/null
15455 do
15456   # Write a limited-size here document to $tmp/undefs.sed.
15457   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15458   # Speed up: don't consider the non `#undef'
15459   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
15460   # Work around the forget-to-reset-the-flag bug.
15461   echo 't clr' >>$CONFIG_STATUS
15462   echo ': clr' >>$CONFIG_STATUS
15463   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15464   echo 'CEOF
15465   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15466   rm -f $tmp/in
15467   mv $tmp/out $tmp/in
15468 ' >>$CONFIG_STATUS
15469   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15470   rm -f conftest.undefs
15471   mv conftest.tail conftest.undefs
15472 done
15473 rm -f conftest.undefs
15474
15475 cat >>$CONFIG_STATUS <<\_ACEOF
15476   # Let's still pretend it is `configure' which instantiates (i.e., don't
15477   # use $as_me), people would be surprised to read:
15478   #    /* config.h.  Generated by config.status.  */
15479   if test x"$ac_file" = x-; then
15480     echo "/* Generated by configure.  */" >$tmp/config.h
15481   else
15482     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15483   fi
15484   cat $tmp/in >>$tmp/config.h
15485   rm -f $tmp/in
15486   if test x"$ac_file" != x-; then
15487     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15488       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15489 echo "$as_me: $ac_file is unchanged" >&6;}
15490     else
15491       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15492 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15493          X"$ac_file" : 'X\(//\)[^/]' \| \
15494          X"$ac_file" : 'X\(//\)$' \| \
15495          X"$ac_file" : 'X\(/\)' \| \
15496          .     : '\(.\)' 2>/dev/null ||
15497 echo X"$ac_file" |
15498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15499           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15500           /^X\(\/\/\)$/{ s//\1/; q; }
15501           /^X\(\/\).*/{ s//\1/; q; }
15502           s/.*/./; q'`
15503       { if $as_mkdir_p; then
15504     mkdir -p "$ac_dir"
15505   else
15506     as_dir="$ac_dir"
15507     as_dirs=
15508     while test ! -d "$as_dir"; do
15509       as_dirs="$as_dir $as_dirs"
15510       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15512          X"$as_dir" : 'X\(//\)[^/]' \| \
15513          X"$as_dir" : 'X\(//\)$' \| \
15514          X"$as_dir" : 'X\(/\)' \| \
15515          .     : '\(.\)' 2>/dev/null ||
15516 echo X"$as_dir" |
15517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15518           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15519           /^X\(\/\/\)$/{ s//\1/; q; }
15520           /^X\(\/\).*/{ s//\1/; q; }
15521           s/.*/./; q'`
15522     done
15523     test ! -n "$as_dirs" || mkdir $as_dirs
15524   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15525 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15526    { (exit 1); exit 1; }; }; }
15527
15528       rm -f $ac_file
15529       mv $tmp/config.h $ac_file
15530     fi
15531   else
15532     cat $tmp/config.h
15533     rm -f $tmp/config.h
15534   fi
15535 # Compute $ac_file's index in $config_headers.
15536 _am_stamp_count=1
15537 for _am_header in $config_headers :; do
15538   case $_am_header in
15539     $ac_file | $ac_file:* )
15540       break ;;
15541     * )
15542       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15543   esac
15544 done
15545 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15546 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15547          X$ac_file : 'X\(//\)[^/]' \| \
15548          X$ac_file : 'X\(//\)$' \| \
15549          X$ac_file : 'X\(/\)' \| \
15550          .     : '\(.\)' 2>/dev/null ||
15551 echo X$ac_file |
15552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15553           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15554           /^X\(\/\/\)$/{ s//\1/; q; }
15555           /^X\(\/\).*/{ s//\1/; q; }
15556           s/.*/./; q'`/stamp-h$_am_stamp_count
15557 done
15558 _ACEOF
15559 cat >>$CONFIG_STATUS <<\_ACEOF
15560
15561 #
15562 # CONFIG_COMMANDS section.
15563 #
15564 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15565   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15566   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15567   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15568 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15569          X"$ac_dest" : 'X\(//\)[^/]' \| \
15570          X"$ac_dest" : 'X\(//\)$' \| \
15571          X"$ac_dest" : 'X\(/\)' \| \
15572          .     : '\(.\)' 2>/dev/null ||
15573 echo X"$ac_dest" |
15574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15576           /^X\(\/\/\)$/{ s//\1/; q; }
15577           /^X\(\/\).*/{ s//\1/; q; }
15578           s/.*/./; q'`
15579   { if $as_mkdir_p; then
15580     mkdir -p "$ac_dir"
15581   else
15582     as_dir="$ac_dir"
15583     as_dirs=
15584     while test ! -d "$as_dir"; do
15585       as_dirs="$as_dir $as_dirs"
15586       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15588          X"$as_dir" : 'X\(//\)[^/]' \| \
15589          X"$as_dir" : 'X\(//\)$' \| \
15590          X"$as_dir" : 'X\(/\)' \| \
15591          .     : '\(.\)' 2>/dev/null ||
15592 echo X"$as_dir" |
15593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15595           /^X\(\/\/\)$/{ s//\1/; q; }
15596           /^X\(\/\).*/{ s//\1/; q; }
15597           s/.*/./; q'`
15598     done
15599     test ! -n "$as_dirs" || mkdir $as_dirs
15600   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15602    { (exit 1); exit 1; }; }; }
15603
15604   ac_builddir=.
15605
15606 if test "$ac_dir" != .; then
15607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15608   # A "../" for each directory in $ac_dir_suffix.
15609   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15610 else
15611   ac_dir_suffix= ac_top_builddir=
15612 fi
15613
15614 case $srcdir in
15615   .)  # No --srcdir option.  We are building in place.
15616     ac_srcdir=.
15617     if test -z "$ac_top_builddir"; then
15618        ac_top_srcdir=.
15619     else
15620        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15621     fi ;;
15622   [\\/]* | ?:[\\/]* )  # Absolute path.
15623     ac_srcdir=$srcdir$ac_dir_suffix;
15624     ac_top_srcdir=$srcdir ;;
15625   *) # Relative path.
15626     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15627     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15628 esac
15629
15630 # Do not use `cd foo && pwd` to compute absolute paths, because
15631 # the directories may not exist.
15632 case `pwd` in
15633 .) ac_abs_builddir="$ac_dir";;
15634 *)
15635   case "$ac_dir" in
15636   .) ac_abs_builddir=`pwd`;;
15637   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15638   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15639   esac;;
15640 esac
15641 case $ac_abs_builddir in
15642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15643 *)
15644   case ${ac_top_builddir}. in
15645   .) ac_abs_top_builddir=$ac_abs_builddir;;
15646   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15647   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15648   esac;;
15649 esac
15650 case $ac_abs_builddir in
15651 .) ac_abs_srcdir=$ac_srcdir;;
15652 *)
15653   case $ac_srcdir in
15654   .) ac_abs_srcdir=$ac_abs_builddir;;
15655   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15656   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15657   esac;;
15658 esac
15659 case $ac_abs_builddir in
15660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15661 *)
15662   case $ac_top_srcdir in
15663   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15664   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15665   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15666   esac;;
15667 esac
15668
15669
15670   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15671 echo "$as_me: executing $ac_dest commands" >&6;}
15672   case $ac_dest in
15673     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15674   # Strip MF so we end up with the name of the file.
15675   mf=`echo "$mf" | sed -e 's/:.*$//'`
15676   # Check whether this is an Automake generated Makefile or not.
15677   # We used to match only the files named `Makefile.in', but
15678   # some people rename them; so instead we look at the file content.
15679   # Grep'ing the first line is not enough: some people post-process
15680   # each Makefile.in and add a new line on top of each file to say so.
15681   # So let's grep whole file.
15682   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15683     dirpart=`(dirname "$mf") 2>/dev/null ||
15684 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15685          X"$mf" : 'X\(//\)[^/]' \| \
15686          X"$mf" : 'X\(//\)$' \| \
15687          X"$mf" : 'X\(/\)' \| \
15688          .     : '\(.\)' 2>/dev/null ||
15689 echo X"$mf" |
15690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15691           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15692           /^X\(\/\/\)$/{ s//\1/; q; }
15693           /^X\(\/\).*/{ s//\1/; q; }
15694           s/.*/./; q'`
15695   else
15696     continue
15697   fi
15698   # Extract the definition of DEPDIR, am__include, and am__quote
15699   # from the Makefile without running `make'.
15700   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15701   test -z "$DEPDIR" && continue
15702   am__include=`sed -n 's/^am__include = //p' < "$mf"`
15703   test -z "am__include" && continue
15704   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15705   # When using ansi2knr, U may be empty or an underscore; expand it
15706   U=`sed -n 's/^U = //p' < "$mf"`
15707   # Find all dependency output files, they are included files with
15708   # $(DEPDIR) in their names.  We invoke sed twice because it is the
15709   # simplest approach to changing $(DEPDIR) to its actual value in the
15710   # expansion.
15711   for file in `sed -n "
15712     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15713        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15714     # Make sure the directory exists.
15715     test -f "$dirpart/$file" && continue
15716     fdir=`(dirname "$file") 2>/dev/null ||
15717 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15718          X"$file" : 'X\(//\)[^/]' \| \
15719          X"$file" : 'X\(//\)$' \| \
15720          X"$file" : 'X\(/\)' \| \
15721          .     : '\(.\)' 2>/dev/null ||
15722 echo X"$file" |
15723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15724           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15725           /^X\(\/\/\)$/{ s//\1/; q; }
15726           /^X\(\/\).*/{ s//\1/; q; }
15727           s/.*/./; q'`
15728     { if $as_mkdir_p; then
15729     mkdir -p $dirpart/$fdir
15730   else
15731     as_dir=$dirpart/$fdir
15732     as_dirs=
15733     while test ! -d "$as_dir"; do
15734       as_dirs="$as_dir $as_dirs"
15735       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15737          X"$as_dir" : 'X\(//\)[^/]' \| \
15738          X"$as_dir" : 'X\(//\)$' \| \
15739          X"$as_dir" : 'X\(/\)' \| \
15740          .     : '\(.\)' 2>/dev/null ||
15741 echo X"$as_dir" |
15742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15743           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15744           /^X\(\/\/\)$/{ s//\1/; q; }
15745           /^X\(\/\).*/{ s//\1/; q; }
15746           s/.*/./; q'`
15747     done
15748     test ! -n "$as_dirs" || mkdir $as_dirs
15749   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15750 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15751    { (exit 1); exit 1; }; }; }
15752
15753     # echo "creating $dirpart/$file"
15754     echo '# dummy' > "$dirpart/$file"
15755   done
15756 done
15757  ;;
15758     default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15759   esac
15760 done
15761 _ACEOF
15762
15763 cat >>$CONFIG_STATUS <<\_ACEOF
15764
15765 { (exit 0); exit 0; }
15766 _ACEOF
15767 chmod +x $CONFIG_STATUS
15768 ac_clean_files=$ac_clean_files_save
15769
15770
15771 # configure is writing to config.log, and then calls config.status.
15772 # config.status does its own redirection, appending to config.log.
15773 # Unfortunately, on DOS this fails, as config.log is still kept open
15774 # by configure, so config.status won't be able to write to it; its
15775 # output is simply discarded.  So we exec the FD to /dev/null,
15776 # effectively closing config.log, so it can be properly (re)opened and
15777 # appended to by config.status.  When coming back to configure, we
15778 # need to make the FD available again.
15779 if test "$no_create" != yes; then
15780   ac_cs_success=:
15781   ac_config_status_args=
15782   test "$silent" = yes &&
15783     ac_config_status_args="$ac_config_status_args --quiet"
15784   exec 5>/dev/null
15785   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15786   exec 5>>config.log
15787   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15788   # would make configure fail if this is the last instruction.
15789   $ac_cs_success || { (exit 1); exit 1; }
15790 fi
15791
15792