2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
[platform/upstream/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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l 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   --enable-shared=PKGS  build shared libraries default=no
854   --enable-static=PKGS  build static libraries default=yes
855   --enable-fast-install=PKGS  optimize for fast installation default=yes
856   --disable-libtool-lock  avoid locking (might break parallel builds)
857   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
858   --enable-targets        alternative target configurations
859   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
860   --enable-build-warnings Enable build-time compiler warnings if gcc is used
861   --enable-maintainer-mode enable make rules and dependencies not useful
862                           (and sometimes confusing) to the casual installer
863   --enable-install-libbfd controls installation of libbfd and related headers
864   --disable-nls           do not use Native Language Support
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-pic              try to use only PIC/non-PIC objects default=use both
871   --with-mmap             try using mmap for BFD input files if available
872   --with-included-gettext use the GNU gettext library included here
873
874 Some influential environment variables:
875   CC          C compiler command
876   CFLAGS      C compiler flags
877   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
878               nonstandard directory <lib dir>
879   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
880               headers in a nonstandard directory <include dir>
881   CPP         C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890   # If there are subdirs, report their specific --help.
891   ac_popdir=`pwd`
892   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893     test -d $ac_dir || continue
894     ac_builddir=.
895
896 if test "$ac_dir" != .; then
897   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898   # A "../" for each directory in $ac_dir_suffix.
899   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901   ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905   .)  # No --srcdir option.  We are building in place.
906     ac_srcdir=.
907     if test -z "$ac_top_builddir"; then
908        ac_top_srcdir=.
909     else
910        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911     fi ;;
912   [\\/]* | ?:[\\/]* )  # Absolute path.
913     ac_srcdir=$srcdir$ac_dir_suffix;
914     ac_top_srcdir=$srcdir ;;
915   *) # Relative path.
916     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917     ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919
920 # Do not use `cd foo && pwd` to compute absolute paths, because
921 # the directories may not exist.
922 case `pwd` in
923 .) ac_abs_builddir="$ac_dir";;
924 *)
925   case "$ac_dir" in
926   .) ac_abs_builddir=`pwd`;;
927   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928   *) ac_abs_builddir=`pwd`/"$ac_dir";;
929   esac;;
930 esac
931 case $ac_abs_builddir in
932 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 *)
934   case ${ac_top_builddir}. in
935   .) ac_abs_top_builddir=$ac_abs_builddir;;
936   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938   esac;;
939 esac
940 case $ac_abs_builddir in
941 .) ac_abs_srcdir=$ac_srcdir;;
942 *)
943   case $ac_srcdir in
944   .) ac_abs_srcdir=$ac_abs_builddir;;
945   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947   esac;;
948 esac
949 case $ac_abs_builddir in
950 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 *)
952   case $ac_top_srcdir in
953   .) ac_abs_top_srcdir=$ac_abs_builddir;;
954   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956   esac;;
957 esac
958
959     cd $ac_dir
960     # Check for guested configure; otherwise get Cygnus style configure.
961     if test -f $ac_srcdir/configure.gnu; then
962       echo
963       $SHELL $ac_srcdir/configure.gnu  --help=recursive
964     elif test -f $ac_srcdir/configure; then
965       echo
966       $SHELL $ac_srcdir/configure  --help=recursive
967     elif test -f $ac_srcdir/configure.ac ||
968            test -f $ac_srcdir/configure.in; then
969       echo
970       $ac_configure --help
971     else
972       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973     fi
974     cd "$ac_popdir"
975   done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980   cat <<\_ACEOF
981
982 Copyright (C) 2003 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.59.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056   for ac_arg
1057   do
1058     case $ac_arg in
1059     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061     | -silent | --silent | --silen | --sile | --sil)
1062       continue ;;
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065     esac
1066     case $ac_pass in
1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068     2)
1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070       if test $ac_must_keep_next = true; then
1071         ac_must_keep_next=false # Got value, back to normal.
1072       else
1073         case $ac_arg in
1074           *=* | --config-cache | -C | -disable-* | --disable-* \
1075           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077           | -with-* | --with-* | -without-* | --without-* | --x)
1078             case "$ac_configure_args0 " in
1079               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080             esac
1081             ;;
1082           -* ) ac_must_keep_next=true ;;
1083         esac
1084       fi
1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086       # Get rid of the leading space.
1087       ac_sep=" "
1088       ;;
1089     esac
1090   done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log.  We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101   # Save into config.log some information that might help in debugging.
1102   {
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110     echo
1111     # The following way of writing the cache mishandles newlines in values,
1112 {
1113   (set) 2>&1 |
1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115     *ac_space=\ *)
1116       sed -n \
1117         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119       ;;
1120     *)
1121       sed -n \
1122         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123       ;;
1124     esac;
1125 }
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133     echo
1134     for ac_var in $ac_subst_vars
1135     do
1136       eval ac_val=$`echo $ac_var`
1137       echo "$ac_var='"'"'$ac_val'"'"'"
1138     done | sort
1139     echo
1140
1141     if test -n "$ac_subst_files"; then
1142       cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147       echo
1148       for ac_var in $ac_subst_files
1149       do
1150         eval ac_val=$`echo $ac_var`
1151         echo "$ac_var='"'"'$ac_val'"'"'"
1152       done | sort
1153       echo
1154     fi
1155
1156     if test -s confdefs.h; then
1157       cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162       echo
1163       sed "/^$/d" confdefs.h | sort
1164       echo
1165     fi
1166     test "$ac_signal" != 0 &&
1167       echo "$as_me: caught signal $ac_signal"
1168     echo "$as_me: exit $exit_status"
1169   } >&5
1170   rm -f core *.core &&
1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172     exit $exit_status
1173      ' 0
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214   if test "x$prefix" != xNONE; then
1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216   else
1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218   fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221   if test -r "$ac_site_file"; then
1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230   # Some versions of bash will fail to source /dev/null (special
1231   # files actually), so we avoid doing that.
1232   if test -f "$cache_file"; then
1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252   eval ac_new_set=\$ac_env_${ac_var}_set
1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254   eval ac_new_val="\$ac_env_${ac_var}_value"
1255   case $ac_old_set,$ac_new_set in
1256     set,)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,set)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,);;
1265     *)
1266       if test "x$ac_old_val" != "x$ac_new_val"; then
1267         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$as_me:   current value: $ac_new_val" >&2;}
1273         ac_cache_corrupted=:
1274       fi;;
1275   esac
1276   # Pass precious variables to config.status.
1277   if test "$ac_new_set" = set; then
1278     case $ac_new_val in
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     *) ac_arg=$ac_var=$ac_new_val ;;
1282     esac
1283     case " $ac_configure_args " in
1284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286     esac
1287   fi
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323 ac_aux_dir=
1324 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325   if test -f $ac_dir/install-sh; then
1326     ac_aux_dir=$ac_dir
1327     ac_install_sh="$ac_aux_dir/install-sh -c"
1328     break
1329   elif 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/shtool; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/shtool install -c"
1336     break
1337   fi
1338 done
1339 if test -z "$ac_aux_dir"; then
1340   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342    { (exit 1); exit 1; }; }
1343 fi
1344 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348 # Make sure we can run config.sub.
1349 $ac_config_sub sun4 >/dev/null 2>&1 ||
1350   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352    { (exit 1); exit 1; }; }
1353
1354 echo "$as_me:$LINENO: checking build system type" >&5
1355 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356 if test "${ac_cv_build+set}" = set; then
1357   echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359   ac_cv_build_alias=$build_alias
1360 test -z "$ac_cv_build_alias" &&
1361   ac_cv_build_alias=`$ac_config_guess`
1362 test -z "$ac_cv_build_alias" &&
1363   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365    { (exit 1); exit 1; }; }
1366 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369    { (exit 1); exit 1; }; }
1370
1371 fi
1372 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373 echo "${ECHO_T}$ac_cv_build" >&6
1374 build=$ac_cv_build
1375 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380 echo "$as_me:$LINENO: checking host system type" >&5
1381 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382 if test "${ac_cv_host+set}" = set; then
1383   echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385   ac_cv_host_alias=$host_alias
1386 test -z "$ac_cv_host_alias" &&
1387   ac_cv_host_alias=$ac_cv_build_alias
1388 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391    { (exit 1); exit 1; }; }
1392
1393 fi
1394 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395 echo "${ECHO_T}$ac_cv_host" >&6
1396 host=$ac_cv_host
1397 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402 echo "$as_me:$LINENO: checking target system type" >&5
1403 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404 if test "${ac_cv_target+set}" = set; then
1405   echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407   ac_cv_target_alias=$target_alias
1408 test "x$ac_cv_target_alias" = "x" &&
1409   ac_cv_target_alias=$ac_cv_host_alias
1410 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413    { (exit 1); exit 1; }; }
1414
1415 fi
1416 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417 echo "${ECHO_T}$ac_cv_target" >&6
1418 target=$ac_cv_target
1419 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424 # The aliases save the names the user supplied, while $host etc.
1425 # will get canonicalized.
1426 test -n "$target_alias" &&
1427   test "$program_prefix$program_suffix$program_transform_name" = \
1428     NONENONEs,x,x, &&
1429   program_prefix=${target_alias}-
1430 ac_ext=c
1431 ac_cpp='$CPP $CPPFLAGS'
1432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435 if test -n "$ac_tool_prefix"; then
1436   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_prog_CC+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   if test -n "$CC"; then
1444   ac_cv_prog_CC="$CC" # Let the user override the test.
1445 else
1446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460 fi
1461 fi
1462 CC=$ac_cv_prog_CC
1463 if test -n "$CC"; then
1464   echo "$as_me:$LINENO: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471 fi
1472 if test -z "$ac_cv_prog_CC"; then
1473   ac_ct_CC=$CC
1474   # Extract the first word of "gcc", so it can be a program name with args.
1475 set dummy gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$ac_ct_CC"; then
1482   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_ac_ct_CC="gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501 if test -n "$ac_ct_CC"; then
1502   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503 echo "${ECHO_T}$ac_ct_CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509   CC=$ac_ct_CC
1510 else
1511   CC="$ac_cv_prog_CC"
1512 fi
1513
1514 if test -z "$CC"; then
1515   if test -n "$ac_tool_prefix"; then
1516   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}cc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$CC"; then
1524   ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_CC="${ac_tool_prefix}cc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544   echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551 fi
1552 if test -z "$ac_cv_prog_CC"; then
1553   ac_ct_CC=$CC
1554   # Extract the first word of "cc", so it can be a program name with args.
1555 set dummy cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$ac_ct_CC"; then
1562   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_ac_ct_CC="cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589   CC=$ac_ct_CC
1590 else
1591   CC="$ac_cv_prog_CC"
1592 fi
1593
1594 fi
1595 if test -z "$CC"; then
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$CC"; then
1604   ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606   ac_prog_rejected=no
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 for as_dir in $PATH
1609 do
1610   IFS=$as_save_IFS
1611   test -z "$as_dir" && as_dir=.
1612   for ac_exec_ext in '' $ac_executable_extensions; do
1613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615        ac_prog_rejected=yes
1616        continue
1617      fi
1618     ac_cv_prog_CC="cc"
1619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620     break 2
1621   fi
1622 done
1623 done
1624
1625 if test $ac_prog_rejected = yes; then
1626   # We found a bogon in the path, so make sure we never use it.
1627   set dummy $ac_cv_prog_CC
1628   shift
1629   if test $# != 0; then
1630     # We chose a different compiler from the bogus one.
1631     # However, it has the same basename, so the bogon will be chosen
1632     # first if we set CC to just the basename; use the full file name.
1633     shift
1634     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635   fi
1636 fi
1637 fi
1638 fi
1639 CC=$ac_cv_prog_CC
1640 if test -n "$CC"; then
1641   echo "$as_me:$LINENO: result: $CC" >&5
1642 echo "${ECHO_T}$CC" >&6
1643 else
1644   echo "$as_me:$LINENO: result: no" >&5
1645 echo "${ECHO_T}no" >&6
1646 fi
1647
1648 fi
1649 if test -z "$CC"; then
1650   if test -n "$ac_tool_prefix"; then
1651   for ac_prog in cl
1652   do
1653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655 echo "$as_me:$LINENO: checking for $ac_word" >&5
1656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657 if test "${ac_cv_prog_CC+set}" = set; then
1658   echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660   if test -n "$CC"; then
1661   ac_cv_prog_CC="$CC" # Let the user override the test.
1662 else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664 for as_dir in $PATH
1665 do
1666   IFS=$as_save_IFS
1667   test -z "$as_dir" && as_dir=.
1668   for ac_exec_ext in '' $ac_executable_extensions; do
1669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 fi
1678 fi
1679 CC=$ac_cv_prog_CC
1680 if test -n "$CC"; then
1681   echo "$as_me:$LINENO: result: $CC" >&5
1682 echo "${ECHO_T}$CC" >&6
1683 else
1684   echo "$as_me:$LINENO: result: no" >&5
1685 echo "${ECHO_T}no" >&6
1686 fi
1687
1688     test -n "$CC" && break
1689   done
1690 fi
1691 if test -z "$CC"; then
1692   ac_ct_CC=$CC
1693   for ac_prog in cl
1694 do
1695   # Extract the first word of "$ac_prog", so it can be a program name with args.
1696 set dummy $ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$ac_ct_CC"; then
1703   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_ac_ct_CC="$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722 if test -n "$ac_ct_CC"; then
1723   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724 echo "${ECHO_T}$ac_ct_CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730   test -n "$ac_ct_CC" && break
1731 done
1732
1733   CC=$ac_ct_CC
1734 fi
1735
1736 fi
1737
1738
1739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&2;}
1743    { (exit 1); exit 1; }; }
1744
1745 # Provide some information about the compiler.
1746 echo "$as_me:$LINENO:" \
1747      "checking for C compiler version" >&5
1748 ac_compiler=`set X $ac_compile; echo $2`
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750   (eval $ac_compiler --version </dev/null >&5) 2>&5
1751   ac_status=$?
1752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753   (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755   (eval $ac_compiler -v </dev/null >&5) 2>&5
1756   ac_status=$?
1757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758   (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760   (eval $ac_compiler -V </dev/null >&5) 2>&5
1761   ac_status=$?
1762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763   (exit $ac_status); }
1764
1765 cat >conftest.$ac_ext <<_ACEOF
1766 /* confdefs.h.  */
1767 _ACEOF
1768 cat confdefs.h >>conftest.$ac_ext
1769 cat >>conftest.$ac_ext <<_ACEOF
1770 /* end confdefs.h.  */
1771
1772 int
1773 main ()
1774 {
1775
1776   ;
1777   return 0;
1778 }
1779 _ACEOF
1780 ac_clean_files_save=$ac_clean_files
1781 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782 # Try to create an executable without -o first, disregard a.out.
1783 # It will help us diagnose broken compilers, and finding out an intuition
1784 # of exeext.
1785 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789   (eval $ac_link_default) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }; then
1793   # Find the output, starting from the most likely.  This scheme is
1794 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795 # resort.
1796
1797 # Be careful to initialize this variable, since it used to be cached.
1798 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799 ac_cv_exeext=
1800 # b.out is created by i960 compilers.
1801 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802 do
1803   test -f "$ac_file" || continue
1804   case $ac_file in
1805     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806         ;;
1807     conftest.$ac_ext )
1808         # This is the source file.
1809         ;;
1810     [ab].out )
1811         # We found the default executable, but exeext='' is most
1812         # certainly right.
1813         break;;
1814     *.* )
1815         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816         # FIXME: I believe we export ac_cv_exeext for Libtool,
1817         # but it would be cool to find out if it's true.  Does anybody
1818         # maintain Libtool? --akim.
1819         export ac_cv_exeext
1820         break;;
1821     * )
1822         break;;
1823   esac
1824 done
1825 else
1826   echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&2;}
1833    { (exit 77); exit 77; }; }
1834 fi
1835
1836 ac_exeext=$ac_cv_exeext
1837 echo "$as_me:$LINENO: result: $ac_file" >&5
1838 echo "${ECHO_T}$ac_file" >&6
1839
1840 # Check the compiler produces executables we can run.  If not, either
1841 # the compiler is broken, or we cross compile.
1842 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845 # If not cross compiling, check that we can run a simple program.
1846 if test "$cross_compiling" != yes; then
1847   if { ac_try='./$ac_file'
1848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849   (eval $ac_try) 2>&5
1850   ac_status=$?
1851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852   (exit $ac_status); }; }; then
1853     cross_compiling=no
1854   else
1855     if test "$cross_compiling" = maybe; then
1856         cross_compiling=yes
1857     else
1858         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859 If you meant to cross compile, use \`--host'.
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: cannot run C compiled programs.
1862 If you meant to cross compile, use \`--host'.
1863 See \`config.log' for more details." >&2;}
1864    { (exit 1); exit 1; }; }
1865     fi
1866   fi
1867 fi
1868 echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870
1871 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872 ac_clean_files=$ac_clean_files_save
1873 # Check the compiler produces executables we can run.  If not, either
1874 # the compiler is broken, or we cross compile.
1875 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878 echo "${ECHO_T}$cross_compiling" >&6
1879
1880 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883   (eval $ac_link) 2>&5
1884   ac_status=$?
1885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886   (exit $ac_status); }; then
1887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1889 # work properly (i.e., refer to `conftest.exe'), while it won't with
1890 # `rm'.
1891 for ac_file in conftest.exe conftest conftest.*; do
1892   test -f "$ac_file" || continue
1893   case $ac_file in
1894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896           export ac_cv_exeext
1897           break;;
1898     * ) break;;
1899   esac
1900 done
1901 else
1902   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&2;}
1906    { (exit 1); exit 1; }; }
1907 fi
1908
1909 rm -f conftest$ac_cv_exeext
1910 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911 echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913 rm -f conftest.$ac_ext
1914 EXEEXT=$ac_cv_exeext
1915 ac_exeext=$EXEEXT
1916 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918 if test "${ac_cv_objext+set}" = set; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.$ac_ext <<_ACEOF
1922 /* confdefs.h.  */
1923 _ACEOF
1924 cat confdefs.h >>conftest.$ac_ext
1925 cat >>conftest.$ac_ext <<_ACEOF
1926 /* end confdefs.h.  */
1927
1928 int
1929 main ()
1930 {
1931
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 rm -f conftest.o conftest.obj
1937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938   (eval $ac_compile) 2>&5
1939   ac_status=$?
1940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941   (exit $ac_status); }; then
1942   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943   case $ac_file in
1944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946        break;;
1947   esac
1948 done
1949 else
1950   echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954 See \`config.log' for more details." >&5
1955 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&2;}
1957    { (exit 1); exit 1; }; }
1958 fi
1959
1960 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963 echo "${ECHO_T}$ac_cv_objext" >&6
1964 OBJEXT=$ac_cv_objext
1965 ac_objext=$OBJEXT
1966 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969   echo $ECHO_N "(cached) $ECHO_C" >&6
1970 else
1971   cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h.  */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h.  */
1977
1978 int
1979 main ()
1980 {
1981 #ifndef __GNUC__
1982        choke me
1983 #endif
1984
1985   ;
1986   return 0;
1987 }
1988 _ACEOF
1989 rm -f conftest.$ac_objext
1990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991   (eval $ac_compile) 2>conftest.er1
1992   ac_status=$?
1993   grep -v '^ *+' conftest.er1 >conftest.err
1994   rm -f conftest.er1
1995   cat conftest.err >&5
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); } &&
1998          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000   (eval $ac_try) 2>&5
2001   ac_status=$?
2002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003   (exit $ac_status); }; } &&
2004          { ac_try='test -s conftest.$ac_objext'
2005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006   (eval $ac_try) 2>&5
2007   ac_status=$?
2008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009   (exit $ac_status); }; }; then
2010   ac_compiler_gnu=yes
2011 else
2012   echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_compiler_gnu=no
2016 fi
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020 fi
2021 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023 GCC=`test $ac_compiler_gnu = yes && echo yes`
2024 ac_test_CFLAGS=${CFLAGS+set}
2025 ac_save_CFLAGS=$CFLAGS
2026 CFLAGS="-g"
2027 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029 if test "${ac_cv_prog_cc_g+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>conftest.er1
2050   ac_status=$?
2051   grep -v '^ *+' conftest.er1 >conftest.err
2052   rm -f conftest.er1
2053   cat conftest.err >&5
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); } &&
2056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; } &&
2062          { ac_try='test -s conftest.$ac_objext'
2063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064   (eval $ac_try) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; }; then
2068   ac_cv_prog_cc_g=yes
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 ac_cv_prog_cc_g=no
2074 fi
2075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2079 if test "$ac_test_CFLAGS" = set; then
2080   CFLAGS=$ac_save_CFLAGS
2081 elif test $ac_cv_prog_cc_g = yes; then
2082   if test "$GCC" = yes; then
2083     CFLAGS="-g -O2"
2084   else
2085     CFLAGS="-g"
2086   fi
2087 else
2088   if test "$GCC" = yes; then
2089     CFLAGS="-O2"
2090   else
2091     CFLAGS=
2092   fi
2093 fi
2094 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2095 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2096 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   ac_cv_prog_cc_stdc=no
2100 ac_save_CC=$CC
2101 cat >conftest.$ac_ext <<_ACEOF
2102 /* confdefs.h.  */
2103 _ACEOF
2104 cat confdefs.h >>conftest.$ac_ext
2105 cat >>conftest.$ac_ext <<_ACEOF
2106 /* end confdefs.h.  */
2107 #include <stdarg.h>
2108 #include <stdio.h>
2109 #include <sys/types.h>
2110 #include <sys/stat.h>
2111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2112 struct buf { int x; };
2113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (p, i)
2115      char **p;
2116      int i;
2117 {
2118   return p[i];
2119 }
2120 static char *f (char * (*g) (char **, int), char **p, ...)
2121 {
2122   char *s;
2123   va_list v;
2124   va_start (v,p);
2125   s = g (p, va_arg (v,int));
2126   va_end (v);
2127   return s;
2128 }
2129
2130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2131    function prototypes and stuff, but not '\xHH' hex character constants.
2132    These don't provoke an error unfortunately, instead are silently treated
2133    as 'x'.  The following induces an error, until -std1 is added to get
2134    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2135    array size at least.  It's necessary to write '\x00'==0 to get something
2136    that's true only with -std1.  */
2137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2138
2139 int test (int i, double x);
2140 struct s1 {int (*f) (int a);};
2141 struct s2 {int (*f) (double a);};
2142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2143 int argc;
2144 char **argv;
2145 int
2146 main ()
2147 {
2148 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 # Don't try gcc -ansi; that turns off useful extensions and
2154 # breaks some systems' header files.
2155 # AIX                   -qlanglvl=ansi
2156 # Ultrix and OSF/1      -std1
2157 # HP-UX 10.20 and later -Ae
2158 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2159 # SVR4                  -Xc -D__EXTENSIONS__
2160 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2161 do
2162   CC="$ac_save_CC $ac_arg"
2163   rm -f conftest.$ac_objext
2164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2165   (eval $ac_compile) 2>conftest.er1
2166   ac_status=$?
2167   grep -v '^ *+' conftest.er1 >conftest.err
2168   rm -f conftest.er1
2169   cat conftest.err >&5
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); } &&
2172          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174   (eval $ac_try) 2>&5
2175   ac_status=$?
2176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177   (exit $ac_status); }; } &&
2178          { ac_try='test -s conftest.$ac_objext'
2179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180   (eval $ac_try) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }; }; then
2184   ac_cv_prog_cc_stdc=$ac_arg
2185 break
2186 else
2187   echo "$as_me: failed program was:" >&5
2188 sed 's/^/| /' conftest.$ac_ext >&5
2189
2190 fi
2191 rm -f conftest.err conftest.$ac_objext
2192 done
2193 rm -f conftest.$ac_ext conftest.$ac_objext
2194 CC=$ac_save_CC
2195
2196 fi
2197
2198 case "x$ac_cv_prog_cc_stdc" in
2199   x|xno)
2200     echo "$as_me:$LINENO: result: none needed" >&5
2201 echo "${ECHO_T}none needed" >&6 ;;
2202   *)
2203     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2204 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2205     CC="$CC $ac_cv_prog_cc_stdc" ;;
2206 esac
2207
2208 # Some people use a C++ compiler to compile C.  Since we use `exit',
2209 # in C++ we need to declare it.  In case someone uses the same compiler
2210 # for both compiling C and C++ we need to have the C++ compiler decide
2211 # the declaration of exit, since it's the most demanding environment.
2212 cat >conftest.$ac_ext <<_ACEOF
2213 #ifndef __cplusplus
2214   choke me
2215 #endif
2216 _ACEOF
2217 rm -f conftest.$ac_objext
2218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219   (eval $ac_compile) 2>conftest.er1
2220   ac_status=$?
2221   grep -v '^ *+' conftest.er1 >conftest.err
2222   rm -f conftest.er1
2223   cat conftest.err >&5
2224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225   (exit $ac_status); } &&
2226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228   (eval $ac_try) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; } &&
2232          { ac_try='test -s conftest.$ac_objext'
2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; }; then
2238   for ac_declaration in \
2239    '' \
2240    'extern "C" void std::exit (int) throw (); using std::exit;' \
2241    'extern "C" void std::exit (int); using std::exit;' \
2242    'extern "C" void exit (int) throw ();' \
2243    'extern "C" void exit (int);' \
2244    'void exit (int);'
2245 do
2246   cat >conftest.$ac_ext <<_ACEOF
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252 $ac_declaration
2253 #include <stdlib.h>
2254 int
2255 main ()
2256 {
2257 exit (42);
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>conftest.er1
2265   ac_status=$?
2266   grep -v '^ *+' conftest.er1 >conftest.err
2267   rm -f conftest.er1
2268   cat conftest.err >&5
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; } &&
2277          { ac_try='test -s conftest.$ac_objext'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; }; then
2283   :
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 continue
2289 fi
2290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2291   cat >conftest.$ac_ext <<_ACEOF
2292 /* confdefs.h.  */
2293 _ACEOF
2294 cat confdefs.h >>conftest.$ac_ext
2295 cat >>conftest.$ac_ext <<_ACEOF
2296 /* end confdefs.h.  */
2297 $ac_declaration
2298 int
2299 main ()
2300 {
2301 exit (42);
2302   ;
2303   return 0;
2304 }
2305 _ACEOF
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308   (eval $ac_compile) 2>conftest.er1
2309   ac_status=$?
2310   grep -v '^ *+' conftest.er1 >conftest.err
2311   rm -f conftest.er1
2312   cat conftest.err >&5
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; } &&
2321          { ac_try='test -s conftest.$ac_objext'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; }; then
2327   break
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 done
2335 rm -f conftest*
2336 if test -n "$ac_declaration"; then
2337   echo '#ifdef __cplusplus' >>confdefs.h
2338   echo $ac_declaration      >>confdefs.h
2339   echo '#endif'             >>confdefs.h
2340 fi
2341
2342 else
2343   echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346 fi
2347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2348 ac_ext=c
2349 ac_cpp='$CPP $CPPFLAGS'
2350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353
2354
2355
2356         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2357 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2358 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   ac_check_lib_save_LIBS=$LIBS
2362 LIBS="-lcposix  $LIBS"
2363 cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 /* Override any gcc2 internal prototype to avoid an error.  */
2371 #ifdef __cplusplus
2372 extern "C"
2373 #endif
2374 /* We use char because int might match the return type of a gcc2
2375    builtin and then its argument prototype would still apply.  */
2376 char strerror ();
2377 int
2378 main ()
2379 {
2380 strerror ();
2381   ;
2382   return 0;
2383 }
2384 _ACEOF
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2387   (eval $ac_link) 2>conftest.er1
2388   ac_status=$?
2389   grep -v '^ *+' conftest.er1 >conftest.err
2390   rm -f conftest.er1
2391   cat conftest.err >&5
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); } &&
2394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396   (eval $ac_try) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; } &&
2400          { ac_try='test -s conftest$ac_exeext'
2401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402   (eval $ac_try) 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; }; then
2406   ac_cv_lib_cposix_strerror=yes
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 ac_cv_lib_cposix_strerror=no
2412 fi
2413 rm -f conftest.err conftest.$ac_objext \
2414       conftest$ac_exeext conftest.$ac_ext
2415 LIBS=$ac_check_lib_save_LIBS
2416 fi
2417 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2418 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2419 if test $ac_cv_lib_cposix_strerror = yes; then
2420   LIBS="$LIBS -lcposix"
2421 fi
2422
2423
2424
2425
2426 am__api_version="1.4"
2427 # Find a good install program.  We prefer a C program (faster),
2428 # so one script is as good as another.  But avoid the broken or
2429 # incompatible versions:
2430 # SysV /etc/install, /usr/sbin/install
2431 # SunOS /usr/etc/install
2432 # IRIX /sbin/install
2433 # AIX /bin/install
2434 # AmigaOS /C/install, which installs bootblocks on floppy discs
2435 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2436 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2437 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2438 # OS/2's system install, which has a completely different semantic
2439 # ./install, which can be erroneously created by make from ./install.sh.
2440 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2441 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2442 if test -z "$INSTALL"; then
2443 if test "${ac_cv_path_install+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 for as_dir in $PATH
2448 do
2449   IFS=$as_save_IFS
2450   test -z "$as_dir" && as_dir=.
2451   # Account for people who put trailing slashes in PATH elements.
2452 case $as_dir/ in
2453   ./ | .// | /cC/* | \
2454   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2455   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2456   /usr/ucb/* ) ;;
2457   *)
2458     # OSF1 and SCO ODT 3.0 have their own names for install.
2459     # Don't use installbsd from OSF since it installs stuff as root
2460     # by default.
2461     for ac_prog in ginstall scoinst install; do
2462       for ac_exec_ext in '' $ac_executable_extensions; do
2463         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2464           if test $ac_prog = install &&
2465             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2466             # AIX install.  It has an incompatible calling convention.
2467             :
2468           elif test $ac_prog = install &&
2469             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2470             # program-specific install script used by HP pwplus--don't use.
2471             :
2472           else
2473             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2474             break 3
2475           fi
2476         fi
2477       done
2478     done
2479     ;;
2480 esac
2481 done
2482
2483
2484 fi
2485   if test "${ac_cv_path_install+set}" = set; then
2486     INSTALL=$ac_cv_path_install
2487   else
2488     # As a last resort, use the slow shell script.  We don't cache a
2489     # path for INSTALL within a source directory, because that will
2490     # break other packages using the cache if that directory is
2491     # removed, or if the path is relative.
2492     INSTALL=$ac_install_sh
2493   fi
2494 fi
2495 echo "$as_me:$LINENO: result: $INSTALL" >&5
2496 echo "${ECHO_T}$INSTALL" >&6
2497
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2507 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2508 # Just in case
2509 sleep 1
2510 echo timestamp > conftestfile
2511 # Do `set' in a subshell so we don't clobber the current shell's
2512 # arguments.  Must try -L first in case configure is actually a
2513 # symlink; some systems play weird games with the mod time of symlinks
2514 # (eg FreeBSD returns the mod time of the symlink's containing
2515 # directory).
2516 if (
2517    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2518    if test "$*" = "X"; then
2519       # -L didn't work.
2520       set X `ls -t $srcdir/configure conftestfile`
2521    fi
2522    if test "$*" != "X $srcdir/configure conftestfile" \
2523       && test "$*" != "X conftestfile $srcdir/configure"; then
2524
2525       # If neither matched, then we have a broken ls.  This can happen
2526       # if, for instance, CONFIG_SHELL is bash and it inherits a
2527       # broken ls alias from the environment.  This has actually
2528       # happened.  Such a system could not be considered "sane".
2529       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2530 alias in your environment" >&5
2531 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2532 alias in your environment" >&2;}
2533    { (exit 1); exit 1; }; }
2534    fi
2535
2536    test "$2" = conftestfile
2537    )
2538 then
2539    # Ok.
2540    :
2541 else
2542    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2543 Check your system clock" >&5
2544 echo "$as_me: error: newly created file is older than distributed files!
2545 Check your system clock" >&2;}
2546    { (exit 1); exit 1; }; }
2547 fi
2548 rm -f conftest*
2549 echo "$as_me:$LINENO: result: yes" >&5
2550 echo "${ECHO_T}yes" >&6
2551 test "$program_prefix" != NONE &&
2552   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2553 # Use a double $ so make ignores it.
2554 test "$program_suffix" != NONE &&
2555   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2556 # Double any \ or $.  echo might interpret backslashes.
2557 # By default was `s,x,x', remove it if useless.
2558 cat <<\_ACEOF >conftest.sed
2559 s/[\\$]/&&/g;s/;s,x,x,$//
2560 _ACEOF
2561 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2562 rm conftest.sed
2563
2564 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2565 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2566 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2567 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   cat >conftest.make <<\_ACEOF
2571 all:
2572         @echo 'ac_maketemp="$(MAKE)"'
2573 _ACEOF
2574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2575 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2576 if test -n "$ac_maketemp"; then
2577   eval ac_cv_prog_make_${ac_make}_set=yes
2578 else
2579   eval ac_cv_prog_make_${ac_make}_set=no
2580 fi
2581 rm -f conftest.make
2582 fi
2583 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2584   echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2586   SET_MAKE=
2587 else
2588   echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6
2590   SET_MAKE="MAKE=${MAKE-make}"
2591 fi
2592
2593
2594 PACKAGE=bfd
2595
2596 VERSION=2.15.91
2597
2598 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2599   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2600 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2601    { (exit 1); exit 1; }; }
2602 fi
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE "$PACKAGE"
2606 _ACEOF
2607
2608
2609 cat >>confdefs.h <<_ACEOF
2610 #define VERSION "$VERSION"
2611 _ACEOF
2612
2613
2614
2615 missing_dir=`cd $ac_aux_dir && pwd`
2616 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2617 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
2618 # Run test in a subshell; some versions of sh will print an error if
2619 # an executable is not found, even if stderr is redirected.
2620 # Redirect stdin to placate older versions of autoconf.  Sigh.
2621 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2622    ACLOCAL=aclocal-${am__api_version}
2623    echo "$as_me:$LINENO: result: found" >&5
2624 echo "${ECHO_T}found" >&6
2625 else
2626    ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
2627    echo "$as_me:$LINENO: result: missing" >&5
2628 echo "${ECHO_T}missing" >&6
2629 fi
2630
2631 echo "$as_me:$LINENO: checking for working autoconf" >&5
2632 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
2633 # Run test in a subshell; some versions of sh will print an error if
2634 # an executable is not found, even if stderr is redirected.
2635 # Redirect stdin to placate older versions of autoconf.  Sigh.
2636 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2637    AUTOCONF=autoconf
2638    echo "$as_me:$LINENO: result: found" >&5
2639 echo "${ECHO_T}found" >&6
2640 else
2641    AUTOCONF="$missing_dir/missing autoconf"
2642    echo "$as_me:$LINENO: result: missing" >&5
2643 echo "${ECHO_T}missing" >&6
2644 fi
2645
2646 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2647 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
2648 # Run test in a subshell; some versions of sh will print an error if
2649 # an executable is not found, even if stderr is redirected.
2650 # Redirect stdin to placate older versions of autoconf.  Sigh.
2651 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2652    AUTOMAKE=automake-${am__api_version}
2653    echo "$as_me:$LINENO: result: found" >&5
2654 echo "${ECHO_T}found" >&6
2655 else
2656    AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
2657    echo "$as_me:$LINENO: result: missing" >&5
2658 echo "${ECHO_T}missing" >&6
2659 fi
2660
2661 echo "$as_me:$LINENO: checking for working autoheader" >&5
2662 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
2663 # Run test in a subshell; some versions of sh will print an error if
2664 # an executable is not found, even if stderr is redirected.
2665 # Redirect stdin to placate older versions of autoconf.  Sigh.
2666 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2667    AUTOHEADER=autoheader
2668    echo "$as_me:$LINENO: result: found" >&5
2669 echo "${ECHO_T}found" >&6
2670 else
2671    AUTOHEADER="$missing_dir/missing autoheader"
2672    echo "$as_me:$LINENO: result: missing" >&5
2673 echo "${ECHO_T}missing" >&6
2674 fi
2675
2676 echo "$as_me:$LINENO: checking for working makeinfo" >&5
2677 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2678 # Run test in a subshell; some versions of sh will print an error if
2679 # an executable is not found, even if stderr is redirected.
2680 # Redirect stdin to placate older versions of autoconf.  Sigh.
2681 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2682    MAKEINFO=makeinfo
2683    echo "$as_me:$LINENO: result: found" >&5
2684 echo "${ECHO_T}found" >&6
2685 else
2686    MAKEINFO="$missing_dir/missing makeinfo"
2687    echo "$as_me:$LINENO: result: missing" >&5
2688 echo "${ECHO_T}missing" >&6
2689 fi
2690
2691
2692
2693 if test -n "$ac_tool_prefix"; then
2694   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}ar; ac_word=$2
2696 echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2698 if test "${ac_cv_prog_AR+set}" = set; then
2699   echo $ECHO_N "(cached) $ECHO_C" >&6
2700 else
2701   if test -n "$AR"; then
2702   ac_cv_prog_AR="$AR" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707   IFS=$as_save_IFS
2708   test -z "$as_dir" && as_dir=.
2709   for ac_exec_ext in '' $ac_executable_extensions; do
2710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711     ac_cv_prog_AR="${ac_tool_prefix}ar"
2712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2713     break 2
2714   fi
2715 done
2716 done
2717
2718 fi
2719 fi
2720 AR=$ac_cv_prog_AR
2721 if test -n "$AR"; then
2722   echo "$as_me:$LINENO: result: $AR" >&5
2723 echo "${ECHO_T}$AR" >&6
2724 else
2725   echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2727 fi
2728
2729 fi
2730 if test -z "$ac_cv_prog_AR"; then
2731   ac_ct_AR=$AR
2732   # Extract the first word of "ar", so it can be a program name with args.
2733 set dummy ar; ac_word=$2
2734 echo "$as_me:$LINENO: checking for $ac_word" >&5
2735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2737   echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739   if test -n "$ac_ct_AR"; then
2740   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745   IFS=$as_save_IFS
2746   test -z "$as_dir" && as_dir=.
2747   for ac_exec_ext in '' $ac_executable_extensions; do
2748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749     ac_cv_prog_ac_ct_AR="ar"
2750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751     break 2
2752   fi
2753 done
2754 done
2755
2756 fi
2757 fi
2758 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2759 if test -n "$ac_ct_AR"; then
2760   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2761 echo "${ECHO_T}$ac_ct_AR" >&6
2762 else
2763   echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2765 fi
2766
2767   AR=$ac_ct_AR
2768 else
2769   AR="$ac_cv_prog_AR"
2770 fi
2771
2772 if test -n "$ac_tool_prefix"; then
2773   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2775 echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2777 if test "${ac_cv_prog_RANLIB+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   if test -n "$RANLIB"; then
2781   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796
2797 fi
2798 fi
2799 RANLIB=$ac_cv_prog_RANLIB
2800 if test -n "$RANLIB"; then
2801   echo "$as_me:$LINENO: result: $RANLIB" >&5
2802 echo "${ECHO_T}$RANLIB" >&6
2803 else
2804   echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 fi
2807
2808 fi
2809 if test -z "$ac_cv_prog_RANLIB"; then
2810   ac_ct_RANLIB=$RANLIB
2811   # Extract the first word of "ranlib", so it can be a program name with args.
2812 set dummy ranlib; ac_word=$2
2813 echo "$as_me:$LINENO: checking for $ac_word" >&5
2814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2815 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   if test -n "$ac_ct_RANLIB"; then
2819   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826   for ac_exec_ext in '' $ac_executable_extensions; do
2827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_ac_ct_RANLIB="ranlib"
2829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833 done
2834
2835   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2836 fi
2837 fi
2838 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2839 if test -n "$ac_ct_RANLIB"; then
2840   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2841 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2842 else
2843   echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845 fi
2846
2847   RANLIB=$ac_ct_RANLIB
2848 else
2849   RANLIB="$ac_cv_prog_RANLIB"
2850 fi
2851
2852
2853 # Check whether --enable-shared or --disable-shared was given.
2854 if test "${enable_shared+set}" = set; then
2855   enableval="$enable_shared"
2856   p=${PACKAGE-default}
2857 case $enableval in
2858 yes) enable_shared=yes ;;
2859 no) enable_shared=no ;;
2860 *)
2861   enable_shared=no
2862   # Look at the argument we got.  We use all the common list separators.
2863   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2864   for pkg in $enableval; do
2865     if test "X$pkg" = "X$p"; then
2866       enable_shared=yes
2867     fi
2868   done
2869   IFS="$ac_save_ifs"
2870   ;;
2871 esac
2872 else
2873   enable_shared=no
2874 fi;
2875
2876 # Check whether --enable-static or --disable-static was given.
2877 if test "${enable_static+set}" = set; then
2878   enableval="$enable_static"
2879   p=${PACKAGE-default}
2880 case $enableval in
2881 yes) enable_static=yes ;;
2882 no) enable_static=no ;;
2883 *)
2884   enable_static=no
2885   # Look at the argument we got.  We use all the common list separators.
2886   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2887   for pkg in $enableval; do
2888     if test "X$pkg" = "X$p"; then
2889       enable_static=yes
2890     fi
2891   done
2892   IFS="$ac_save_ifs"
2893   ;;
2894 esac
2895 else
2896   enable_static=yes
2897 fi;
2898 # Check whether --enable-fast-install or --disable-fast-install was given.
2899 if test "${enable_fast_install+set}" = set; then
2900   enableval="$enable_fast_install"
2901   p=${PACKAGE-default}
2902 case $enableval in
2903 yes) enable_fast_install=yes ;;
2904 no) enable_fast_install=no ;;
2905 *)
2906   enable_fast_install=no
2907   # Look at the argument we got.  We use all the common list separators.
2908   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2909   for pkg in $enableval; do
2910     if test "X$pkg" = "X$p"; then
2911       enable_fast_install=yes
2912     fi
2913   done
2914   IFS="$ac_save_ifs"
2915   ;;
2916 esac
2917 else
2918   enable_fast_install=yes
2919 fi;
2920
2921 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2922 if test "${with_gnu_ld+set}" = set; then
2923   withval="$with_gnu_ld"
2924   test "$withval" = no || with_gnu_ld=yes
2925 else
2926   with_gnu_ld=no
2927 fi;
2928 ac_prog=ld
2929 if test "$GCC" = yes; then
2930   # Check if gcc -print-prog-name=ld gives a path.
2931   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2932 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2933   case $host in
2934   *-*-mingw*)
2935     # gcc leaves a trailing carriage return which upsets mingw
2936     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2937   *)
2938     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2939   esac
2940   case $ac_prog in
2941     # Accept absolute paths.
2942     [\\/]* | [A-Za-z]:[\\/]*)
2943       re_direlt='/[^/][^/]*/\.\./'
2944       # Canonicalize the path of ld
2945       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2946       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2947         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2948       done
2949       test -z "$LD" && LD="$ac_prog"
2950       ;;
2951   "")
2952     # If it fails, then pretend we aren't using GCC.
2953     ac_prog=ld
2954     ;;
2955   *)
2956     # If it is relative, then search for the first ld in PATH.
2957     with_gnu_ld=unknown
2958     ;;
2959   esac
2960 elif test "$with_gnu_ld" = yes; then
2961   echo "$as_me:$LINENO: checking for GNU ld" >&5
2962 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2963 else
2964   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2965 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2966 fi
2967 if test "${lt_cv_path_LD+set}" = set; then
2968   echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970   if test -z "$LD"; then
2971   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2972   for ac_dir in $PATH; do
2973     test -z "$ac_dir" && ac_dir=.
2974     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2975       lt_cv_path_LD="$ac_dir/$ac_prog"
2976       # Check to see if the program is GNU ld.  I'd rather use --version,
2977       # but apparently some GNU ld's only accept -v.
2978       # Break only if it was the GNU/non-GNU ld that we prefer.
2979       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2980         test "$with_gnu_ld" != no && break
2981       else
2982         test "$with_gnu_ld" != yes && break
2983       fi
2984     fi
2985   done
2986   IFS="$ac_save_ifs"
2987 else
2988   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2989 fi
2990 fi
2991
2992 LD="$lt_cv_path_LD"
2993 if test -n "$LD"; then
2994   echo "$as_me:$LINENO: result: $LD" >&5
2995 echo "${ECHO_T}$LD" >&6
2996 else
2997   echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6
2999 fi
3000 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3001 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3002    { (exit 1); exit 1; }; }
3003 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3004 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3005 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3009 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3010   lt_cv_prog_gnu_ld=yes
3011 else
3012   lt_cv_prog_gnu_ld=no
3013 fi
3014 fi
3015 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3016 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3017 with_gnu_ld=$lt_cv_prog_gnu_ld
3018
3019
3020 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3021 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3022 if test "${lt_cv_ld_reload_flag+set}" = set; then
3023   echo $ECHO_N "(cached) $ECHO_C" >&6
3024 else
3025   lt_cv_ld_reload_flag='-r'
3026 fi
3027 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3028 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3029 reload_flag=$lt_cv_ld_reload_flag
3030 test -n "$reload_flag" && reload_flag=" $reload_flag"
3031
3032 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3033 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3034 if test "${lt_cv_path_NM+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if test -n "$NM"; then
3038   # Let the user override the test.
3039   lt_cv_path_NM="$NM"
3040 else
3041   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3042   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3043     test -z "$ac_dir" && ac_dir=.
3044     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3045     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3046       # Check to see if the nm accepts a BSD-compat flag.
3047       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3048       #   nm: unknown option "B" ignored
3049       # Tru64's nm complains that /dev/null is an invalid object file
3050       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3051         lt_cv_path_NM="$tmp_nm -B"
3052         break
3053       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3054         lt_cv_path_NM="$tmp_nm -p"
3055         break
3056       else
3057         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3058         continue # so that we can try to find one that supports BSD flags
3059       fi
3060     fi
3061   done
3062   IFS="$ac_save_ifs"
3063   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3064 fi
3065 fi
3066
3067 NM="$lt_cv_path_NM"
3068 echo "$as_me:$LINENO: result: $NM" >&5
3069 echo "${ECHO_T}$NM" >&6
3070
3071 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3072 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3073 LN_S=$as_ln_s
3074 if test "$LN_S" = "ln -s"; then
3075   echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 else
3078   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3079 echo "${ECHO_T}no, using $LN_S" >&6
3080 fi
3081
3082 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3083 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3084 if test "${lt_cv_deplibs_check_method+set}" = set; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   lt_cv_file_magic_cmd='$MAGIC_CMD'
3088 lt_cv_file_magic_test_file=
3089 lt_cv_deplibs_check_method='unknown'
3090 # Need to set the preceding variable on all platforms that support
3091 # interlibrary dependencies.
3092 # 'none' -- dependencies not supported.
3093 # `unknown' -- same as none, but documents that we really don't know.
3094 # 'pass_all' -- all dependencies passed with no checks.
3095 # 'test_compile' -- check by making test program.
3096 # 'file_magic [regex]' -- check by looking for files in library path
3097 # which responds to the $file_magic_cmd with a given egrep regex.
3098 # If you have `file' or equivalent on your system and you're not sure
3099 # whether `pass_all' will *always* work, you probably want this one.
3100
3101 case $host_os in
3102 aix*)
3103   lt_cv_deplibs_check_method=pass_all
3104   ;;
3105
3106 beos*)
3107   lt_cv_deplibs_check_method=pass_all
3108   ;;
3109
3110 bsdi4*)
3111   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3112   lt_cv_file_magic_cmd='/usr/bin/file -L'
3113   lt_cv_file_magic_test_file=/shlib/libc.so
3114   ;;
3115
3116 cygwin* | mingw* |pw32*)
3117   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3118   lt_cv_file_magic_cmd='$OBJDUMP -f'
3119   ;;
3120
3121 darwin* | rhapsody*)
3122   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3123   lt_cv_file_magic_cmd='/usr/bin/file -L'
3124   case "$host_os" in
3125   rhapsody* | darwin1.012)
3126     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3127     ;;
3128   *) # Darwin 1.3 on
3129     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3130     ;;
3131   esac
3132   ;;
3133
3134 freebsd* | kfreebsd*-gnu)
3135   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3136     case $host_cpu in
3137     i*86 )
3138       # Not sure whether the presence of OpenBSD here was a mistake.
3139       # Let's accept both of them until this is cleared up.
3140       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3141       lt_cv_file_magic_cmd=/usr/bin/file
3142       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3143       ;;
3144     esac
3145   else
3146     lt_cv_deplibs_check_method=pass_all
3147   fi
3148   ;;
3149
3150 gnu*)
3151   lt_cv_deplibs_check_method=pass_all
3152   ;;
3153
3154 hpux10.20*|hpux11*)
3155   case $host_cpu in
3156   hppa*)
3157     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3158     lt_cv_file_magic_cmd=/usr/bin/file
3159     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3160     ;;
3161   ia64*)
3162     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3163     lt_cv_file_magic_cmd=/usr/bin/file
3164     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3165     ;;
3166   esac
3167   ;;
3168
3169 irix5* | irix6*)
3170   case $host_os in
3171   irix5*)
3172     # this will be overridden with pass_all, but let us keep it just in case
3173     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3174     ;;
3175   *)
3176     case $LD in
3177     *-32|*"-32 ") libmagic=32-bit;;
3178     *-n32|*"-n32 ") libmagic=N32;;
3179     *-64|*"-64 ") libmagic=64-bit;;
3180     *) libmagic=never-match;;
3181     esac
3182     # this will be overridden with pass_all, but let us keep it just in case
3183     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3184     ;;
3185   esac
3186   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3187   lt_cv_deplibs_check_method=pass_all
3188   ;;
3189
3190 # This must be Linux ELF.
3191 linux-gnu*)
3192   case $host_cpu in
3193   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3194     lt_cv_deplibs_check_method=pass_all ;;
3195   *)
3196     # glibc up to 2.1.1 does not perform some relocations on ARM
3197     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3198   esac
3199   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3200   ;;
3201
3202 netbsd* | knetbsd*-gnu)
3203   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3204     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3205   else
3206     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3207   fi
3208   ;;
3209
3210 newsos6)
3211   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3212   lt_cv_file_magic_cmd=/usr/bin/file
3213   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3214   ;;
3215
3216 osf3* | osf4* | osf5*)
3217   # this will be overridden with pass_all, but let us keep it just in case
3218   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3219   lt_cv_file_magic_test_file=/shlib/libc.so
3220   lt_cv_deplibs_check_method=pass_all
3221   ;;
3222
3223 sco3.2v5*)
3224   lt_cv_deplibs_check_method=pass_all
3225   ;;
3226
3227 solaris*)
3228   lt_cv_deplibs_check_method=pass_all
3229   lt_cv_file_magic_test_file=/lib/libc.so
3230   ;;
3231
3232 sysv5uw[78]* | sysv4*uw2*)
3233   lt_cv_deplibs_check_method=pass_all
3234   ;;
3235
3236 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3237   case $host_vendor in
3238   ncr)
3239     lt_cv_deplibs_check_method=pass_all
3240     ;;
3241   motorola)
3242     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]'
3243     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3244     ;;
3245   esac
3246   ;;
3247 esac
3248
3249 fi
3250 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3251 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3252 file_magic_cmd=$lt_cv_file_magic_cmd
3253 deplibs_check_method=$lt_cv_deplibs_check_method
3254
3255
3256
3257
3258 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3259
3260 # Only perform the check for file, if the check method requires it
3261 case $deplibs_check_method in
3262 file_magic*)
3263   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3264     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3265 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3266 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3267   echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269   case $MAGIC_CMD in
3270   /*)
3271   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3272   ;;
3273   ?:/*)
3274   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3275   ;;
3276   *)
3277   ac_save_MAGIC_CMD="$MAGIC_CMD"
3278   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3279   ac_dummy="/usr/bin:$PATH"
3280   for ac_dir in $ac_dummy; do
3281     test -z "$ac_dir" && ac_dir=.
3282     if test -f $ac_dir/${ac_tool_prefix}file; then
3283       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3284       if test -n "$file_magic_test_file"; then
3285         case $deplibs_check_method in
3286         "file_magic "*)
3287           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3288           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3289           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3290             egrep "$file_magic_regex" > /dev/null; then
3291             :
3292           else
3293             cat <<EOF 1>&2
3294
3295 *** Warning: the command libtool uses to detect shared libraries,
3296 *** $file_magic_cmd, produces output that libtool cannot recognize.
3297 *** The result is that libtool may fail to recognize shared libraries
3298 *** as such.  This will affect the creation of libtool libraries that
3299 *** depend on shared libraries, but programs linked with such libtool
3300 *** libraries will work regardless of this problem.  Nevertheless, you
3301 *** may want to report the problem to your system manager and/or to
3302 *** bug-libtool@gnu.org
3303
3304 EOF
3305           fi ;;
3306         esac
3307       fi
3308       break
3309     fi
3310   done
3311   IFS="$ac_save_ifs"
3312   MAGIC_CMD="$ac_save_MAGIC_CMD"
3313   ;;
3314 esac
3315 fi
3316
3317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3318 if test -n "$MAGIC_CMD"; then
3319   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3320 echo "${ECHO_T}$MAGIC_CMD" >&6
3321 else
3322   echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6
3324 fi
3325
3326 if test -z "$lt_cv_path_MAGIC_CMD"; then
3327   if test -n "$ac_tool_prefix"; then
3328     echo "$as_me:$LINENO: checking for file" >&5
3329 echo $ECHO_N "checking for file... $ECHO_C" >&6
3330 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3331   echo $ECHO_N "(cached) $ECHO_C" >&6
3332 else
3333   case $MAGIC_CMD in
3334   /*)
3335   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3336   ;;
3337   ?:/*)
3338   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3339   ;;
3340   *)
3341   ac_save_MAGIC_CMD="$MAGIC_CMD"
3342   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3343   ac_dummy="/usr/bin:$PATH"
3344   for ac_dir in $ac_dummy; do
3345     test -z "$ac_dir" && ac_dir=.
3346     if test -f $ac_dir/file; then
3347       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3348       if test -n "$file_magic_test_file"; then
3349         case $deplibs_check_method in
3350         "file_magic "*)
3351           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3354             egrep "$file_magic_regex" > /dev/null; then
3355             :
3356           else
3357             cat <<EOF 1>&2
3358
3359 *** Warning: the command libtool uses to detect shared libraries,
3360 *** $file_magic_cmd, produces output that libtool cannot recognize.
3361 *** The result is that libtool may fail to recognize shared libraries
3362 *** as such.  This will affect the creation of libtool libraries that
3363 *** depend on shared libraries, but programs linked with such libtool
3364 *** libraries will work regardless of this problem.  Nevertheless, you
3365 *** may want to report the problem to your system manager and/or to
3366 *** bug-libtool@gnu.org
3367
3368 EOF
3369           fi ;;
3370         esac
3371       fi
3372       break
3373     fi
3374   done
3375   IFS="$ac_save_ifs"
3376   MAGIC_CMD="$ac_save_MAGIC_CMD"
3377   ;;
3378 esac
3379 fi
3380
3381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3382 if test -n "$MAGIC_CMD"; then
3383   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3384 echo "${ECHO_T}$MAGIC_CMD" >&6
3385 else
3386   echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3388 fi
3389
3390   else
3391     MAGIC_CMD=:
3392   fi
3393 fi
3394
3395   fi
3396   ;;
3397 esac
3398
3399 if test -n "$ac_tool_prefix"; then
3400   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3402 echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3404 if test "${ac_cv_prog_RANLIB+set}" = set; then
3405   echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407   if test -n "$RANLIB"; then
3408   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415   for ac_exec_ext in '' $ac_executable_extensions; do
3416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419     break 2
3420   fi
3421 done
3422 done
3423
3424 fi
3425 fi
3426 RANLIB=$ac_cv_prog_RANLIB
3427 if test -n "$RANLIB"; then
3428   echo "$as_me:$LINENO: result: $RANLIB" >&5
3429 echo "${ECHO_T}$RANLIB" >&6
3430 else
3431   echo "$as_me:$LINENO: result: no" >&5
3432 echo "${ECHO_T}no" >&6
3433 fi
3434
3435 fi
3436 if test -z "$ac_cv_prog_RANLIB"; then
3437   ac_ct_RANLIB=$RANLIB
3438   # Extract the first word of "ranlib", so it can be a program name with args.
3439 set dummy ranlib; ac_word=$2
3440 echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3442 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   if test -n "$ac_ct_RANLIB"; then
3446   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451   IFS=$as_save_IFS
3452   test -z "$as_dir" && as_dir=.
3453   for ac_exec_ext in '' $ac_executable_extensions; do
3454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455     ac_cv_prog_ac_ct_RANLIB="ranlib"
3456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457     break 2
3458   fi
3459 done
3460 done
3461
3462   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3463 fi
3464 fi
3465 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3466 if test -n "$ac_ct_RANLIB"; then
3467   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3468 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3469 else
3470   echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3472 fi
3473
3474   RANLIB=$ac_ct_RANLIB
3475 else
3476   RANLIB="$ac_cv_prog_RANLIB"
3477 fi
3478
3479 if test -n "$ac_tool_prefix"; then
3480   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3481 set dummy ${ac_tool_prefix}strip; ac_word=$2
3482 echo "$as_me:$LINENO: checking for $ac_word" >&5
3483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3484 if test "${ac_cv_prog_STRIP+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   if test -n "$STRIP"; then
3488   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493   IFS=$as_save_IFS
3494   test -z "$as_dir" && as_dir=.
3495   for ac_exec_ext in '' $ac_executable_extensions; do
3496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3497     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3499     break 2
3500   fi
3501 done
3502 done
3503
3504 fi
3505 fi
3506 STRIP=$ac_cv_prog_STRIP
3507 if test -n "$STRIP"; then
3508   echo "$as_me:$LINENO: result: $STRIP" >&5
3509 echo "${ECHO_T}$STRIP" >&6
3510 else
3511   echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6
3513 fi
3514
3515 fi
3516 if test -z "$ac_cv_prog_STRIP"; then
3517   ac_ct_STRIP=$STRIP
3518   # Extract the first word of "strip", so it can be a program name with args.
3519 set dummy strip; ac_word=$2
3520 echo "$as_me:$LINENO: checking for $ac_word" >&5
3521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3522 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3523   echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525   if test -n "$ac_ct_STRIP"; then
3526   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533   for ac_exec_ext in '' $ac_executable_extensions; do
3534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535     ac_cv_prog_ac_ct_STRIP="strip"
3536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540 done
3541
3542   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3543 fi
3544 fi
3545 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3546 if test -n "$ac_ct_STRIP"; then
3547   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3548 echo "${ECHO_T}$ac_ct_STRIP" >&6
3549 else
3550   echo "$as_me:$LINENO: result: no" >&5
3551 echo "${ECHO_T}no" >&6
3552 fi
3553
3554   STRIP=$ac_ct_STRIP
3555 else
3556   STRIP="$ac_cv_prog_STRIP"
3557 fi
3558
3559
3560 # Check for any special flags to pass to ltconfig.
3561 libtool_flags="--cache-file=$cache_file"
3562 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3563 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3564 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3565 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3566 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3567
3568
3569 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3570 if test "${enable_libtool_lock+set}" = set; then
3571   enableval="$enable_libtool_lock"
3572
3573 fi;
3574 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3575 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3576
3577
3578 # Check whether --with-pic or --without-pic was given.
3579 if test "${with_pic+set}" = set; then
3580   withval="$with_pic"
3581   pic_mode="$withval"
3582 else
3583   pic_mode=default
3584 fi;
3585 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3586 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3587
3588 # Some flags need to be propagated to the compiler or linker for good
3589 # libtool support.
3590 case $host in
3591 *-*-irix6*)
3592   # Find out which ABI we are using.
3593   echo '#line 3593 "configure"' > conftest.$ac_ext
3594   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3595   (eval $ac_compile) 2>&5
3596   ac_status=$?
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); }; then
3599    if test "$lt_cv_prog_gnu_ld" = yes; then
3600     case `/usr/bin/file conftest.$ac_objext` in
3601     *32-bit*)
3602       LD="${LD-ld} -melf32bsmip"
3603       ;;
3604     *N32*)
3605       LD="${LD-ld} -melf32bmipn32"
3606       ;;
3607     *64-bit*)
3608       LD="${LD-ld} -melf64bmip"
3609       ;;
3610     esac
3611    else
3612     case `/usr/bin/file conftest.$ac_objext` in
3613     *32-bit*)
3614       LD="${LD-ld} -32"
3615       ;;
3616     *N32*)
3617       LD="${LD-ld} -n32"
3618       ;;
3619     *64-bit*)
3620       LD="${LD-ld} -64"
3621       ;;
3622     esac
3623    fi
3624   fi
3625   rm -rf conftest*
3626   ;;
3627
3628 ia64-*-hpux*)
3629   # Find out which ABI we are using.
3630   echo 'int i;' > conftest.$ac_ext
3631   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632   (eval $ac_compile) 2>&5
3633   ac_status=$?
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); }; then
3636     case "`/usr/bin/file conftest.o`" in
3637     *ELF-32*)
3638       HPUX_IA64_MODE="32"
3639       ;;
3640     *ELF-64*)
3641       HPUX_IA64_MODE="64"
3642       ;;
3643     esac
3644   fi
3645   rm -rf conftest*
3646   ;;
3647
3648 *-*-sco3.2v5*)
3649   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3650   SAVE_CFLAGS="$CFLAGS"
3651   CFLAGS="$CFLAGS -belf"
3652   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3653 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3654 if test "${lt_cv_cc_needs_belf+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657
3658
3659      ac_ext=c
3660 ac_cpp='$CPP $CPPFLAGS'
3661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
3665      cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h.  */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h.  */
3671
3672 int
3673 main ()
3674 {
3675
3676   ;
3677   return 0;
3678 }
3679 _ACEOF
3680 rm -f conftest.$ac_objext conftest$ac_exeext
3681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682   (eval $ac_link) 2>conftest.er1
3683   ac_status=$?
3684   grep -v '^ *+' conftest.er1 >conftest.err
3685   rm -f conftest.er1
3686   cat conftest.err >&5
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } &&
3689          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691   (eval $ac_try) 2>&5
3692   ac_status=$?
3693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694   (exit $ac_status); }; } &&
3695          { ac_try='test -s conftest$ac_exeext'
3696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697   (eval $ac_try) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; }; then
3701   lt_cv_cc_needs_belf=yes
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 lt_cv_cc_needs_belf=no
3707 fi
3708 rm -f conftest.err conftest.$ac_objext \
3709       conftest$ac_exeext conftest.$ac_ext
3710      ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715
3716 fi
3717 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3718 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3719   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3720     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3721     CFLAGS="$SAVE_CFLAGS"
3722   fi
3723   ;;
3724
3725
3726 esac
3727
3728
3729 # Save cache, so that ltconfig can load it
3730 cat >confcache <<\_ACEOF
3731 # This file is a shell script that caches the results of configure
3732 # tests run on this system so they can be shared between configure
3733 # scripts and configure runs, see configure's option --config-cache.
3734 # It is not useful on other systems.  If it contains results you don't
3735 # want to keep, you may remove or edit it.
3736 #
3737 # config.status only pays attention to the cache file if you give it
3738 # the --recheck option to rerun configure.
3739 #
3740 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3741 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3742 # following values.
3743
3744 _ACEOF
3745
3746 # The following way of writing the cache mishandles newlines in values,
3747 # but we know of no workaround that is simple, portable, and efficient.
3748 # So, don't put newlines in cache variables' values.
3749 # Ultrix sh set writes to stderr and can't be redirected directly,
3750 # and sets the high bit in the cache file unless we assign to the vars.
3751 {
3752   (set) 2>&1 |
3753     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3754     *ac_space=\ *)
3755       # `set' does not quote correctly, so add quotes (double-quote
3756       # substitution turns \\\\ into \\, and sed turns \\ into \).
3757       sed -n \
3758         "s/'/'\\\\''/g;
3759           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3760       ;;
3761     *)
3762       # `set' quotes correctly as required by POSIX, so do not add quotes.
3763       sed -n \
3764         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3765       ;;
3766     esac;
3767 } |
3768   sed '
3769      t clear
3770      : clear
3771      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3772      t end
3773      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3774      : end' >>confcache
3775 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3776   if test -w $cache_file; then
3777     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3778     cat confcache >$cache_file
3779   else
3780     echo "not updating unwritable cache $cache_file"
3781   fi
3782 fi
3783 rm -f confcache
3784
3785 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
3786 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3787 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3788 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3789 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3790 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3791 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3792 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3793 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3794 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3795 echo "$as_me: error: libtool configure failed" >&2;}
3796    { (exit 1); exit 1; }; }
3797
3798 # Reload cache, that may have been modified by ltconfig
3799 if test -r "$cache_file"; then
3800   # Some versions of bash will fail to source /dev/null (special
3801   # files actually), so we avoid doing that.
3802   if test -f "$cache_file"; then
3803     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3804 echo "$as_me: loading cache $cache_file" >&6;}
3805     case $cache_file in
3806       [\\/]* | ?:[\\/]* ) . $cache_file;;
3807       *)                      . ./$cache_file;;
3808     esac
3809   fi
3810 else
3811   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3812 echo "$as_me: creating cache $cache_file" >&6;}
3813   >$cache_file
3814 fi
3815
3816
3817 # This can be used to rebuild libtool when needed
3818 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3819
3820 # Always use our own libtool.
3821 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3822
3823 # Redirect the config.log output again, so that the ltconfig log is not
3824 # clobbered by the next message.
3825 exec 5>>./config.log
3826
3827
3828
3829
3830
3831
3832
3833 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3834 if test "${enable_64_bit_bfd+set}" = set; then
3835   enableval="$enable_64_bit_bfd"
3836   case "${enableval}" in
3837   yes)  want64=true  ;;
3838   no)   want64=false ;;
3839   *)    { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
3840 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3841    { (exit 1); exit 1; }; } ;;
3842 esac
3843 else
3844   want64=false
3845 fi; # Check whether --enable-targets or --disable-targets was given.
3846 if test "${enable_targets+set}" = set; then
3847   enableval="$enable_targets"
3848   case "${enableval}" in
3849   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3850 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3851    { (exit 1); exit 1; }; }
3852             ;;
3853   no)       enable_targets= ;;
3854   *)        enable_targets=$enableval ;;
3855 esac
3856 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3857 if test "${enable_commonbfdlib+set}" = set; then
3858   enableval="$enable_commonbfdlib"
3859   case "${enableval}" in
3860   yes) commonbfdlib=true ;;
3861   no)  commonbfdlib=false ;;
3862   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3863 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3864    { (exit 1); exit 1; }; } ;;
3865 esac
3866 fi;
3867 # Check whether --with-mmap or --without-mmap was given.
3868 if test "${with_mmap+set}" = set; then
3869   withval="$with_mmap"
3870   case "${withval}" in
3871   yes)  want_mmap=true ;;
3872   no)   want_mmap=false ;;
3873   *)    { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
3874 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3875    { (exit 1); exit 1; }; } ;;
3876 esac
3877 else
3878   want_mmap=false
3879 fi;
3880 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
3881 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3882 if test "${enable_build_warnings+set}" = set; then
3883   enableval="$enable_build_warnings"
3884   case "${enableval}" in
3885   yes)  ;;
3886   no)   build_warnings="-w";;
3887   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3888         build_warnings="${build_warnings} ${t}";;
3889   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
3890         build_warnings="${t} ${build_warnings}";;
3891   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3892 esac
3893 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3894   echo "Setting warning flags = $build_warnings" 6>&1
3895 fi
3896 fi; WARN_CFLAGS=""
3897 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
3898     WARN_CFLAGS="${build_warnings}"
3899 fi
3900
3901
3902
3903           ac_config_headers="$ac_config_headers config.h:config.in"
3904
3905           ac_config_commands="$ac_config_commands default-1"
3906
3907
3908 if test -z "$target" ; then
3909     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3910 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3911    { (exit 1); exit 1; }; }
3912 fi
3913
3914 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3915 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3916     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3917 if test "${enable_maintainer_mode+set}" = set; then
3918   enableval="$enable_maintainer_mode"
3919   USE_MAINTAINER_MODE=$enableval
3920 else
3921   USE_MAINTAINER_MODE=no
3922 fi;
3923   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3924 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3925
3926
3927 if test $USE_MAINTAINER_MODE = yes; then
3928   MAINTAINER_MODE_TRUE=
3929   MAINTAINER_MODE_FALSE='#'
3930 else
3931   MAINTAINER_MODE_TRUE='#'
3932   MAINTAINER_MODE_FALSE=
3933 fi
3934   MAINT=$MAINTAINER_MODE_TRUE
3935
3936
3937 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
3938 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
3939   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
3940 if test "${enable_install_libbfd+set}" = set; then
3941   enableval="$enable_install_libbfd"
3942   install_libbfd_p=$enableval
3943 else
3944   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
3945         install_libbfd_p=yes
3946       else
3947         install_libbfd_p=no
3948       fi
3949 fi;
3950   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
3951 echo "${ECHO_T}$install_libbfd_p" >&6
3952
3953
3954 if test $install_libbfd_p = yes; then
3955   INSTALL_LIBBFD_TRUE=
3956   INSTALL_LIBBFD_FALSE='#'
3957 else
3958   INSTALL_LIBBFD_TRUE='#'
3959   INSTALL_LIBBFD_FALSE=
3960 fi
3961   # Need _noncanonical variables for this.
3962   ACX_HOST_NONCANONICAL
3963   ACX_TARGET_NONCANONICAL
3964   # libbfd.a is a host library containing target dependent code
3965   bfdlibdir='$(libdir)'
3966   bfdincludedir='$(includedir)'
3967   if test "${host}" != "${target}"; then
3968     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
3969     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
3970   fi
3971
3972
3973
3974
3975
3976
3977 host64=false
3978 target64=false
3979 bfd_default_target_size=32
3980
3981 # host stuff:
3982
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 if test -n "$ac_tool_prefix"; then
3989   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_prog_CC+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   if test -n "$CC"; then
3997   ac_cv_prog_CC="$CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012
4013 fi
4014 fi
4015 CC=$ac_cv_prog_CC
4016 if test -n "$CC"; then
4017   echo "$as_me:$LINENO: result: $CC" >&5
4018 echo "${ECHO_T}$CC" >&6
4019 else
4020   echo "$as_me:$LINENO: result: no" >&5
4021 echo "${ECHO_T}no" >&6
4022 fi
4023
4024 fi
4025 if test -z "$ac_cv_prog_CC"; then
4026   ac_ct_CC=$CC
4027   # Extract the first word of "gcc", so it can be a program name with args.
4028 set dummy gcc; ac_word=$2
4029 echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4032   echo $ECHO_N "(cached) $ECHO_C" >&6
4033 else
4034   if test -n "$ac_ct_CC"; then
4035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042   for ac_exec_ext in '' $ac_executable_extensions; do
4043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044     ac_cv_prog_ac_ct_CC="gcc"
4045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4046     break 2
4047   fi
4048 done
4049 done
4050
4051 fi
4052 fi
4053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4054 if test -n "$ac_ct_CC"; then
4055   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4056 echo "${ECHO_T}$ac_ct_CC" >&6
4057 else
4058   echo "$as_me:$LINENO: result: no" >&5
4059 echo "${ECHO_T}no" >&6
4060 fi
4061
4062   CC=$ac_ct_CC
4063 else
4064   CC="$ac_cv_prog_CC"
4065 fi
4066
4067 if test -z "$CC"; then
4068   if test -n "$ac_tool_prefix"; then
4069   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4070 set dummy ${ac_tool_prefix}cc; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_prog_CC+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   if test -n "$CC"; then
4077   ac_cv_prog_CC="$CC" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084   for ac_exec_ext in '' $ac_executable_extensions; do
4085   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4086     ac_cv_prog_CC="${ac_tool_prefix}cc"
4087     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4088     break 2
4089   fi
4090 done
4091 done
4092
4093 fi
4094 fi
4095 CC=$ac_cv_prog_CC
4096 if test -n "$CC"; then
4097   echo "$as_me:$LINENO: result: $CC" >&5
4098 echo "${ECHO_T}$CC" >&6
4099 else
4100   echo "$as_me:$LINENO: result: no" >&5
4101 echo "${ECHO_T}no" >&6
4102 fi
4103
4104 fi
4105 if test -z "$ac_cv_prog_CC"; then
4106   ac_ct_CC=$CC
4107   # Extract the first word of "cc", so it can be a program name with args.
4108 set dummy cc; ac_word=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   if test -n "$ac_ct_CC"; then
4115   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4116 else
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH
4119 do
4120   IFS=$as_save_IFS
4121   test -z "$as_dir" && as_dir=.
4122   for ac_exec_ext in '' $ac_executable_extensions; do
4123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124     ac_cv_prog_ac_ct_CC="cc"
4125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4126     break 2
4127   fi
4128 done
4129 done
4130
4131 fi
4132 fi
4133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4134 if test -n "$ac_ct_CC"; then
4135   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4136 echo "${ECHO_T}$ac_ct_CC" >&6
4137 else
4138   echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6
4140 fi
4141
4142   CC=$ac_ct_CC
4143 else
4144   CC="$ac_cv_prog_CC"
4145 fi
4146
4147 fi
4148 if test -z "$CC"; then
4149   # Extract the first word of "cc", so it can be a program name with args.
4150 set dummy cc; ac_word=$2
4151 echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_prog_CC+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   if test -n "$CC"; then
4157   ac_cv_prog_CC="$CC" # Let the user override the test.
4158 else
4159   ac_prog_rejected=no
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_exec_ext in '' $ac_executable_extensions; do
4166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4168        ac_prog_rejected=yes
4169        continue
4170      fi
4171     ac_cv_prog_CC="cc"
4172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177
4178 if test $ac_prog_rejected = yes; then
4179   # We found a bogon in the path, so make sure we never use it.
4180   set dummy $ac_cv_prog_CC
4181   shift
4182   if test $# != 0; then
4183     # We chose a different compiler from the bogus one.
4184     # However, it has the same basename, so the bogon will be chosen
4185     # first if we set CC to just the basename; use the full file name.
4186     shift
4187     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4188   fi
4189 fi
4190 fi
4191 fi
4192 CC=$ac_cv_prog_CC
4193 if test -n "$CC"; then
4194   echo "$as_me:$LINENO: result: $CC" >&5
4195 echo "${ECHO_T}$CC" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201 fi
4202 if test -z "$CC"; then
4203   if test -n "$ac_tool_prefix"; then
4204   for ac_prog in cl
4205   do
4206     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4208 echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210 if test "${ac_cv_prog_CC+set}" = set; then
4211   echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213   if test -n "$CC"; then
4214   ac_cv_prog_CC="$CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221   for ac_exec_ext in '' $ac_executable_extensions; do
4222   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228 done
4229
4230 fi
4231 fi
4232 CC=$ac_cv_prog_CC
4233 if test -n "$CC"; then
4234   echo "$as_me:$LINENO: result: $CC" >&5
4235 echo "${ECHO_T}$CC" >&6
4236 else
4237   echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6
4239 fi
4240
4241     test -n "$CC" && break
4242   done
4243 fi
4244 if test -z "$CC"; then
4245   ac_ct_CC=$CC
4246   for ac_prog in cl
4247 do
4248   # Extract the first word of "$ac_prog", so it can be a program name with args.
4249 set dummy $ac_prog; ac_word=$2
4250 echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test -n "$ac_ct_CC"; then
4256   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265     ac_cv_prog_ac_ct_CC="$ac_prog"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271
4272 fi
4273 fi
4274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4275 if test -n "$ac_ct_CC"; then
4276   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4277 echo "${ECHO_T}$ac_ct_CC" >&6
4278 else
4279   echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4281 fi
4282
4283   test -n "$ac_ct_CC" && break
4284 done
4285
4286   CC=$ac_ct_CC
4287 fi
4288
4289 fi
4290
4291
4292 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4293 See \`config.log' for more details." >&5
4294 echo "$as_me: error: no acceptable C compiler found in \$PATH
4295 See \`config.log' for more details." >&2;}
4296    { (exit 1); exit 1; }; }
4297
4298 # Provide some information about the compiler.
4299 echo "$as_me:$LINENO:" \
4300      "checking for C compiler version" >&5
4301 ac_compiler=`set X $ac_compile; echo $2`
4302 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4303   (eval $ac_compiler --version </dev/null >&5) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }
4307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4308   (eval $ac_compiler -v </dev/null >&5) 2>&5
4309   ac_status=$?
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); }
4312 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4313   (eval $ac_compiler -V </dev/null >&5) 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); }
4317
4318 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4319 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4320 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329
4330 int
4331 main ()
4332 {
4333 #ifndef __GNUC__
4334        choke me
4335 #endif
4336
4337   ;
4338   return 0;
4339 }
4340 _ACEOF
4341 rm -f conftest.$ac_objext
4342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4343   (eval $ac_compile) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } &&
4350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352   (eval $ac_try) 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); }; } &&
4356          { ac_try='test -s conftest.$ac_objext'
4357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358   (eval $ac_try) 2>&5
4359   ac_status=$?
4360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361   (exit $ac_status); }; }; then
4362   ac_compiler_gnu=yes
4363 else
4364   echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 ac_compiler_gnu=no
4368 fi
4369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4371
4372 fi
4373 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4374 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4375 GCC=`test $ac_compiler_gnu = yes && echo yes`
4376 ac_test_CFLAGS=${CFLAGS+set}
4377 ac_save_CFLAGS=$CFLAGS
4378 CFLAGS="-g"
4379 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4381 if test "${ac_cv_prog_cc_g+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h.  */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h.  */
4390
4391 int
4392 main ()
4393 {
4394
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext
4400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4401   (eval $ac_compile) 2>conftest.er1
4402   ac_status=$?
4403   grep -v '^ *+' conftest.er1 >conftest.err
4404   rm -f conftest.er1
4405   cat conftest.err >&5
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); } &&
4408          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; } &&
4414          { ac_try='test -s conftest.$ac_objext'
4415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416   (eval $ac_try) 2>&5
4417   ac_status=$?
4418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419   (exit $ac_status); }; }; then
4420   ac_cv_prog_cc_g=yes
4421 else
4422   echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 ac_cv_prog_cc_g=no
4426 fi
4427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428 fi
4429 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4430 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4431 if test "$ac_test_CFLAGS" = set; then
4432   CFLAGS=$ac_save_CFLAGS
4433 elif test $ac_cv_prog_cc_g = yes; then
4434   if test "$GCC" = yes; then
4435     CFLAGS="-g -O2"
4436   else
4437     CFLAGS="-g"
4438   fi
4439 else
4440   if test "$GCC" = yes; then
4441     CFLAGS="-O2"
4442   else
4443     CFLAGS=
4444   fi
4445 fi
4446 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4447 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4448 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4449   echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451   ac_cv_prog_cc_stdc=no
4452 ac_save_CC=$CC
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459 #include <stdarg.h>
4460 #include <stdio.h>
4461 #include <sys/types.h>
4462 #include <sys/stat.h>
4463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4464 struct buf { int x; };
4465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4466 static char *e (p, i)
4467      char **p;
4468      int i;
4469 {
4470   return p[i];
4471 }
4472 static char *f (char * (*g) (char **, int), char **p, ...)
4473 {
4474   char *s;
4475   va_list v;
4476   va_start (v,p);
4477   s = g (p, va_arg (v,int));
4478   va_end (v);
4479   return s;
4480 }
4481
4482 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4483    function prototypes and stuff, but not '\xHH' hex character constants.
4484    These don't provoke an error unfortunately, instead are silently treated
4485    as 'x'.  The following induces an error, until -std1 is added to get
4486    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4487    array size at least.  It's necessary to write '\x00'==0 to get something
4488    that's true only with -std1.  */
4489 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4490
4491 int test (int i, double x);
4492 struct s1 {int (*f) (int a);};
4493 struct s2 {int (*f) (double a);};
4494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4495 int argc;
4496 char **argv;
4497 int
4498 main ()
4499 {
4500 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4501   ;
4502   return 0;
4503 }
4504 _ACEOF
4505 # Don't try gcc -ansi; that turns off useful extensions and
4506 # breaks some systems' header files.
4507 # AIX                   -qlanglvl=ansi
4508 # Ultrix and OSF/1      -std1
4509 # HP-UX 10.20 and later -Ae
4510 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4511 # SVR4                  -Xc -D__EXTENSIONS__
4512 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4513 do
4514   CC="$ac_save_CC $ac_arg"
4515   rm -f conftest.$ac_objext
4516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517   (eval $ac_compile) 2>conftest.er1
4518   ac_status=$?
4519   grep -v '^ *+' conftest.er1 >conftest.err
4520   rm -f conftest.er1
4521   cat conftest.err >&5
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); } &&
4524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526   (eval $ac_try) 2>&5
4527   ac_status=$?
4528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529   (exit $ac_status); }; } &&
4530          { ac_try='test -s conftest.$ac_objext'
4531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532   (eval $ac_try) 2>&5
4533   ac_status=$?
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); }; }; then
4536   ac_cv_prog_cc_stdc=$ac_arg
4537 break
4538 else
4539   echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4541
4542 fi
4543 rm -f conftest.err conftest.$ac_objext
4544 done
4545 rm -f conftest.$ac_ext conftest.$ac_objext
4546 CC=$ac_save_CC
4547
4548 fi
4549
4550 case "x$ac_cv_prog_cc_stdc" in
4551   x|xno)
4552     echo "$as_me:$LINENO: result: none needed" >&5
4553 echo "${ECHO_T}none needed" >&6 ;;
4554   *)
4555     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4556 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4557     CC="$CC $ac_cv_prog_cc_stdc" ;;
4558 esac
4559
4560 # Some people use a C++ compiler to compile C.  Since we use `exit',
4561 # in C++ we need to declare it.  In case someone uses the same compiler
4562 # for both compiling C and C++ we need to have the C++ compiler decide
4563 # the declaration of exit, since it's the most demanding environment.
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #ifndef __cplusplus
4566   choke me
4567 #endif
4568 _ACEOF
4569 rm -f conftest.$ac_objext
4570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4571   (eval $ac_compile) 2>conftest.er1
4572   ac_status=$?
4573   grep -v '^ *+' conftest.er1 >conftest.err
4574   rm -f conftest.er1
4575   cat conftest.err >&5
4576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577   (exit $ac_status); } &&
4578          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580   (eval $ac_try) 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); }; } &&
4584          { ac_try='test -s conftest.$ac_objext'
4585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586   (eval $ac_try) 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; }; then
4590   for ac_declaration in \
4591    '' \
4592    'extern "C" void std::exit (int) throw (); using std::exit;' \
4593    'extern "C" void std::exit (int); using std::exit;' \
4594    'extern "C" void exit (int) throw ();' \
4595    'extern "C" void exit (int);' \
4596    'void exit (int);'
4597 do
4598   cat >conftest.$ac_ext <<_ACEOF
4599 /* confdefs.h.  */
4600 _ACEOF
4601 cat confdefs.h >>conftest.$ac_ext
4602 cat >>conftest.$ac_ext <<_ACEOF
4603 /* end confdefs.h.  */
4604 $ac_declaration
4605 #include <stdlib.h>
4606 int
4607 main ()
4608 {
4609 exit (42);
4610   ;
4611   return 0;
4612 }
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616   (eval $ac_compile) 2>conftest.er1
4617   ac_status=$?
4618   grep -v '^ *+' conftest.er1 >conftest.err
4619   rm -f conftest.er1
4620   cat conftest.err >&5
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } &&
4623          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4625   (eval $ac_try) 2>&5
4626   ac_status=$?
4627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628   (exit $ac_status); }; } &&
4629          { ac_try='test -s conftest.$ac_objext'
4630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4631   (eval $ac_try) 2>&5
4632   ac_status=$?
4633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); }; }; then
4635   :
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 continue
4641 fi
4642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4643   cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h.  */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h.  */
4649 $ac_declaration
4650 int
4651 main ()
4652 {
4653 exit (42);
4654   ;
4655   return 0;
4656 }
4657 _ACEOF
4658 rm -f conftest.$ac_objext
4659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4660   (eval $ac_compile) 2>conftest.er1
4661   ac_status=$?
4662   grep -v '^ *+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } &&
4667          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669   (eval $ac_try) 2>&5
4670   ac_status=$?
4671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672   (exit $ac_status); }; } &&
4673          { ac_try='test -s conftest.$ac_objext'
4674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675   (eval $ac_try) 2>&5
4676   ac_status=$?
4677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); }; }; then
4679   break
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 fi
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 done
4687 rm -f conftest*
4688 if test -n "$ac_declaration"; then
4689   echo '#ifdef __cplusplus' >>confdefs.h
4690   echo $ac_declaration      >>confdefs.h
4691   echo '#endif'             >>confdefs.h
4692 fi
4693
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698 fi
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 ac_ext=c
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705
4706
4707 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
4708 if test -n "$ac_tool_prefix"; then
4709   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_prog_RANLIB+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   if test -n "$RANLIB"; then
4717   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724   for ac_exec_ext in '' $ac_executable_extensions; do
4725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731 done
4732
4733 fi
4734 fi
4735 RANLIB=$ac_cv_prog_RANLIB
4736 if test -n "$RANLIB"; then
4737   echo "$as_me:$LINENO: result: $RANLIB" >&5
4738 echo "${ECHO_T}$RANLIB" >&6
4739 else
4740   echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4742 fi
4743
4744 fi
4745 if test -z "$ac_cv_prog_RANLIB"; then
4746   ac_ct_RANLIB=$RANLIB
4747   # Extract the first word of "ranlib", so it can be a program name with args.
4748 set dummy ranlib; ac_word=$2
4749 echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   if test -n "$ac_ct_RANLIB"; then
4755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_prog_ac_ct_RANLIB="ranlib"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770
4771   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4772 fi
4773 fi
4774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4775 if test -n "$ac_ct_RANLIB"; then
4776   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4778 else
4779   echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4781 fi
4782
4783   RANLIB=$ac_ct_RANLIB
4784 else
4785   RANLIB="$ac_cv_prog_RANLIB"
4786 fi
4787
4788 ac_ext=c
4789 ac_cpp='$CPP $CPPFLAGS'
4790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4794 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4795 # On Suns, sometimes $CPP names a directory.
4796 if test -n "$CPP" && test -d "$CPP"; then
4797   CPP=
4798 fi
4799 if test -z "$CPP"; then
4800   if test "${ac_cv_prog_CPP+set}" = set; then
4801   echo $ECHO_N "(cached) $ECHO_C" >&6
4802 else
4803       # Double quotes because CPP needs to be expanded
4804     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4805     do
4806       ac_preproc_ok=false
4807 for ac_c_preproc_warn_flag in '' yes
4808 do
4809   # Use a header file that comes with gcc, so configuring glibc
4810   # with a fresh cross-compiler works.
4811   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4812   # <limits.h> exists even on freestanding compilers.
4813   # On the NeXT, cc -E runs the code through the compiler's parser,
4814   # not just through cpp. "Syntax error" is here to catch this case.
4815   cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h.  */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h.  */
4821 #ifdef __STDC__
4822 # include <limits.h>
4823 #else
4824 # include <assert.h>
4825 #endif
4826                      Syntax error
4827 _ACEOF
4828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4829   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4830   ac_status=$?
4831   grep -v '^ *+' conftest.er1 >conftest.err
4832   rm -f conftest.er1
4833   cat conftest.err >&5
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); } >/dev/null; then
4836   if test -s conftest.err; then
4837     ac_cpp_err=$ac_c_preproc_warn_flag
4838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4839   else
4840     ac_cpp_err=
4841   fi
4842 else
4843   ac_cpp_err=yes
4844 fi
4845 if test -z "$ac_cpp_err"; then
4846   :
4847 else
4848   echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4850
4851   # Broken: fails on valid input.
4852 continue
4853 fi
4854 rm -f conftest.err conftest.$ac_ext
4855
4856   # OK, works on sane cases.  Now check whether non-existent headers
4857   # can be detected and how.
4858   cat >conftest.$ac_ext <<_ACEOF
4859 /* confdefs.h.  */
4860 _ACEOF
4861 cat confdefs.h >>conftest.$ac_ext
4862 cat >>conftest.$ac_ext <<_ACEOF
4863 /* end confdefs.h.  */
4864 #include <ac_nonexistent.h>
4865 _ACEOF
4866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } >/dev/null; then
4874   if test -s conftest.err; then
4875     ac_cpp_err=$ac_c_preproc_warn_flag
4876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4877   else
4878     ac_cpp_err=
4879   fi
4880 else
4881   ac_cpp_err=yes
4882 fi
4883 if test -z "$ac_cpp_err"; then
4884   # Broken: success on invalid input.
4885 continue
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890   # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4893 fi
4894 rm -f conftest.err conftest.$ac_ext
4895
4896 done
4897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898 rm -f conftest.err conftest.$ac_ext
4899 if $ac_preproc_ok; then
4900   break
4901 fi
4902
4903     done
4904     ac_cv_prog_CPP=$CPP
4905
4906 fi
4907   CPP=$ac_cv_prog_CPP
4908 else
4909   ac_cv_prog_CPP=$CPP
4910 fi
4911 echo "$as_me:$LINENO: result: $CPP" >&5
4912 echo "${ECHO_T}$CPP" >&6
4913 ac_preproc_ok=false
4914 for ac_c_preproc_warn_flag in '' yes
4915 do
4916   # Use a header file that comes with gcc, so configuring glibc
4917   # with a fresh cross-compiler works.
4918   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919   # <limits.h> exists even on freestanding compilers.
4920   # On the NeXT, cc -E runs the code through the compiler's parser,
4921   # not just through cpp. "Syntax error" is here to catch this case.
4922   cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928 #ifdef __STDC__
4929 # include <limits.h>
4930 #else
4931 # include <assert.h>
4932 #endif
4933                      Syntax error
4934 _ACEOF
4935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4937   ac_status=$?
4938   grep -v '^ *+' conftest.er1 >conftest.err
4939   rm -f conftest.er1
4940   cat conftest.err >&5
4941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942   (exit $ac_status); } >/dev/null; then
4943   if test -s conftest.err; then
4944     ac_cpp_err=$ac_c_preproc_warn_flag
4945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4946   else
4947     ac_cpp_err=
4948   fi
4949 else
4950   ac_cpp_err=yes
4951 fi
4952 if test -z "$ac_cpp_err"; then
4953   :
4954 else
4955   echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958   # Broken: fails on valid input.
4959 continue
4960 fi
4961 rm -f conftest.err conftest.$ac_ext
4962
4963   # OK, works on sane cases.  Now check whether non-existent headers
4964   # can be detected and how.
4965   cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 #include <ac_nonexistent.h>
4972 _ACEOF
4973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } >/dev/null; then
4981   if test -s conftest.err; then
4982     ac_cpp_err=$ac_c_preproc_warn_flag
4983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4984   else
4985     ac_cpp_err=
4986   fi
4987 else
4988   ac_cpp_err=yes
4989 fi
4990 if test -z "$ac_cpp_err"; then
4991   # Broken: success on invalid input.
4992 continue
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997   # Passes both tests.
4998 ac_preproc_ok=:
4999 break
5000 fi
5001 rm -f conftest.err conftest.$ac_ext
5002
5003 done
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then
5007   :
5008 else
5009   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." >&5
5011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5012 See \`config.log' for more details." >&2;}
5013    { (exit 1); exit 1; }; }
5014 fi
5015
5016 ac_ext=c
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021
5022
5023 echo "$as_me:$LINENO: checking for egrep" >&5
5024 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5025 if test "${ac_cv_prog_egrep+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5029     then ac_cv_prog_egrep='grep -E'
5030     else ac_cv_prog_egrep='egrep'
5031     fi
5032 fi
5033 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5034 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5035  EGREP=$ac_cv_prog_egrep
5036
5037
5038 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5040 if test "${ac_cv_header_stdc+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #include <stdlib.h>
5050 #include <stdarg.h>
5051 #include <string.h>
5052 #include <float.h>
5053
5054 int
5055 main ()
5056 {
5057
5058   ;
5059   return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064   (eval $ac_compile) 2>conftest.er1
5065   ac_status=$?
5066   grep -v '^ *+' conftest.er1 >conftest.err
5067   rm -f conftest.er1
5068   cat conftest.err >&5
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); } &&
5071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073   (eval $ac_try) 2>&5
5074   ac_status=$?
5075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076   (exit $ac_status); }; } &&
5077          { ac_try='test -s conftest.$ac_objext'
5078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079   (eval $ac_try) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; }; then
5083   ac_cv_header_stdc=yes
5084 else
5085   echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
5088 ac_cv_header_stdc=no
5089 fi
5090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5091
5092 if test $ac_cv_header_stdc = yes; then
5093   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5094   cat >conftest.$ac_ext <<_ACEOF
5095 /* confdefs.h.  */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h.  */
5100 #include <string.h>
5101
5102 _ACEOF
5103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5104   $EGREP "memchr" >/dev/null 2>&1; then
5105   :
5106 else
5107   ac_cv_header_stdc=no
5108 fi
5109 rm -f conftest*
5110
5111 fi
5112
5113 if test $ac_cv_header_stdc = yes; then
5114   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5115   cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h.  */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h.  */
5121 #include <stdlib.h>
5122
5123 _ACEOF
5124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5125   $EGREP "free" >/dev/null 2>&1; then
5126   :
5127 else
5128   ac_cv_header_stdc=no
5129 fi
5130 rm -f conftest*
5131
5132 fi
5133
5134 if test $ac_cv_header_stdc = yes; then
5135   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5136   if test "$cross_compiling" = yes; then
5137   :
5138 else
5139   cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 #include <ctype.h>
5146 #if ((' ' & 0x0FF) == 0x020)
5147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5149 #else
5150 # define ISLOWER(c) \
5151                    (('a' <= (c) && (c) <= 'i') \
5152                      || ('j' <= (c) && (c) <= 'r') \
5153                      || ('s' <= (c) && (c) <= 'z'))
5154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155 #endif
5156
5157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158 int
5159 main ()
5160 {
5161   int i;
5162   for (i = 0; i < 256; i++)
5163     if (XOR (islower (i), ISLOWER (i))
5164         || toupper (i) != TOUPPER (i))
5165       exit(2);
5166   exit (0);
5167 }
5168 _ACEOF
5169 rm -f conftest$ac_exeext
5170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5171   (eval $ac_link) 2>&5
5172   ac_status=$?
5173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176   (eval $ac_try) 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; }; then
5180   :
5181 else
5182   echo "$as_me: program exited with status $ac_status" >&5
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5185
5186 ( exit $ac_status )
5187 ac_cv_header_stdc=no
5188 fi
5189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5190 fi
5191 fi
5192 fi
5193 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5194 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5195 if test $ac_cv_header_stdc = yes; then
5196
5197 cat >>confdefs.h <<\_ACEOF
5198 #define STDC_HEADERS 1
5199 _ACEOF
5200
5201 fi
5202
5203 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5204 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5205 if test "${ac_cv_c_const+set}" = set; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214
5215 int
5216 main ()
5217 {
5218 /* FIXME: Include the comments suggested by Paul. */
5219 #ifndef __cplusplus
5220   /* Ultrix mips cc rejects this.  */
5221   typedef int charset[2];
5222   const charset x;
5223   /* SunOS 4.1.1 cc rejects this.  */
5224   char const *const *ccp;
5225   char **p;
5226   /* NEC SVR4.0.2 mips cc rejects this.  */
5227   struct point {int x, y;};
5228   static struct point const zero = {0,0};
5229   /* AIX XL C 1.02.0.0 rejects this.
5230      It does not let you subtract one const X* pointer from another in
5231      an arm of an if-expression whose if-part is not a constant
5232      expression */
5233   const char *g = "string";
5234   ccp = &g + (g ? g-g : 0);
5235   /* HPUX 7.0 cc rejects these. */
5236   ++ccp;
5237   p = (char**) ccp;
5238   ccp = (char const *const *) p;
5239   { /* SCO 3.2v4 cc rejects this.  */
5240     char *t;
5241     char const *s = 0 ? (char *) 0 : (char const *) 0;
5242
5243     *t++ = 0;
5244   }
5245   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5246     int x[] = {25, 17};
5247     const int *foo = &x[0];
5248     ++foo;
5249   }
5250   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5251     typedef const int *iptr;
5252     iptr p = 0;
5253     ++p;
5254   }
5255   { /* AIX XL C 1.02.0.0 rejects this saying
5256        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5257     struct s { int j; const int *ap[3]; };
5258     struct s *b; b->j = 5;
5259   }
5260   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5261     const int foo = 10;
5262   }
5263 #endif
5264
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5271   (eval $ac_compile) 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } &&
5278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280   (eval $ac_try) 2>&5
5281   ac_status=$?
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); }; } &&
5284          { ac_try='test -s conftest.$ac_objext'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; }; then
5290   ac_cv_c_const=yes
5291 else
5292   echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295 ac_cv_c_const=no
5296 fi
5297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5298 fi
5299 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5300 echo "${ECHO_T}$ac_cv_c_const" >&6
5301 if test $ac_cv_c_const = no; then
5302
5303 cat >>confdefs.h <<\_ACEOF
5304 #define const
5305 _ACEOF
5306
5307 fi
5308
5309 echo "$as_me:$LINENO: checking for inline" >&5
5310 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5311 if test "${ac_cv_c_inline+set}" = set; then
5312   echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314   ac_cv_c_inline=no
5315 for ac_kw in inline __inline__ __inline; do
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 #ifndef __cplusplus
5323 typedef int foo_t;
5324 static $ac_kw foo_t static_foo () {return 0; }
5325 $ac_kw foo_t foo () {return 0; }
5326 #endif
5327
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331   (eval $ac_compile) 2>conftest.er1
5332   ac_status=$?
5333   grep -v '^ *+' conftest.er1 >conftest.err
5334   rm -f conftest.er1
5335   cat conftest.err >&5
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; } &&
5344          { ac_try='test -s conftest.$ac_objext'
5345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346   (eval $ac_try) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }; }; then
5350   ac_cv_c_inline=$ac_kw; break
5351 else
5352   echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 done
5358
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5361 echo "${ECHO_T}$ac_cv_c_inline" >&6
5362
5363
5364 case $ac_cv_c_inline in
5365   inline | yes) ;;
5366   *)
5367     case $ac_cv_c_inline in
5368       no) ac_val=;;
5369       *) ac_val=$ac_cv_c_inline;;
5370     esac
5371     cat >>confdefs.h <<_ACEOF
5372 #ifndef __cplusplus
5373 #define inline $ac_val
5374 #endif
5375 _ACEOF
5376     ;;
5377 esac
5378
5379 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5390                   inttypes.h stdint.h unistd.h
5391 do
5392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5393 echo "$as_me:$LINENO: checking for $ac_header" >&5
5394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5396   echo $ECHO_N "(cached) $ECHO_C" >&6
5397 else
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 $ac_includes_default
5405
5406 #include <$ac_header>
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410   (eval $ac_compile) 2>conftest.er1
5411   ac_status=$?
5412   grep -v '^ *+' conftest.er1 >conftest.err
5413   rm -f conftest.er1
5414   cat conftest.err >&5
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; } &&
5423          { ac_try='test -s conftest.$ac_objext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   eval "$as_ac_Header=yes"
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 eval "$as_ac_Header=no"
5435 fi
5436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5437 fi
5438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5441   cat >>confdefs.h <<_ACEOF
5442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5443 _ACEOF
5444
5445 fi
5446
5447 done
5448
5449
5450 echo "$as_me:$LINENO: checking for off_t" >&5
5451 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5452 if test "${ac_cv_type_off_t+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 $ac_includes_default
5462 int
5463 main ()
5464 {
5465 if ((off_t *) 0)
5466   return 0;
5467 if (sizeof (off_t))
5468   return 0;
5469   ;
5470   return 0;
5471 }
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5475   (eval $ac_compile) 2>conftest.er1
5476   ac_status=$?
5477   grep -v '^ *+' conftest.er1 >conftest.err
5478   rm -f conftest.er1
5479   cat conftest.err >&5
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } &&
5482          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; } &&
5488          { ac_try='test -s conftest.$ac_objext'
5489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5490   (eval $ac_try) 2>&5
5491   ac_status=$?
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); }; }; then
5494   ac_cv_type_off_t=yes
5495 else
5496   echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5498
5499 ac_cv_type_off_t=no
5500 fi
5501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5502 fi
5503 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5504 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5505 if test $ac_cv_type_off_t = yes; then
5506   :
5507 else
5508
5509 cat >>confdefs.h <<_ACEOF
5510 #define off_t long
5511 _ACEOF
5512
5513 fi
5514
5515 echo "$as_me:$LINENO: checking for size_t" >&5
5516 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5517 if test "${ac_cv_type_size_t+set}" = set; then
5518   echo $ECHO_N "(cached) $ECHO_C" >&6
5519 else
5520   cat >conftest.$ac_ext <<_ACEOF
5521 /* confdefs.h.  */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h.  */
5526 $ac_includes_default
5527 int
5528 main ()
5529 {
5530 if ((size_t *) 0)
5531   return 0;
5532 if (sizeof (size_t))
5533   return 0;
5534   ;
5535   return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540   (eval $ac_compile) 2>conftest.er1
5541   ac_status=$?
5542   grep -v '^ *+' conftest.er1 >conftest.err
5543   rm -f conftest.er1
5544   cat conftest.err >&5
5545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546   (exit $ac_status); } &&
5547          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549   (eval $ac_try) 2>&5
5550   ac_status=$?
5551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552   (exit $ac_status); }; } &&
5553          { ac_try='test -s conftest.$ac_objext'
5554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555   (eval $ac_try) 2>&5
5556   ac_status=$?
5557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558   (exit $ac_status); }; }; then
5559   ac_cv_type_size_t=yes
5560 else
5561   echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 ac_cv_type_size_t=no
5565 fi
5566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5569 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5570 if test $ac_cv_type_size_t = yes; then
5571   :
5572 else
5573
5574 cat >>confdefs.h <<_ACEOF
5575 #define size_t unsigned
5576 _ACEOF
5577
5578 fi
5579
5580 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5581 # for constant arguments.  Useless!
5582 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5583 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5584 if test "${ac_cv_working_alloca_h+set}" = set; then
5585   echo $ECHO_N "(cached) $ECHO_C" >&6
5586 else
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 #include <alloca.h>
5594 int
5595 main ()
5596 {
5597 char *p = (char *) alloca (2 * sizeof (int));
5598   ;
5599   return 0;
5600 }
5601 _ACEOF
5602 rm -f conftest.$ac_objext conftest$ac_exeext
5603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5604   (eval $ac_link) 2>conftest.er1
5605   ac_status=$?
5606   grep -v '^ *+' conftest.er1 >conftest.err
5607   rm -f conftest.er1
5608   cat conftest.err >&5
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } &&
5611          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; } &&
5617          { ac_try='test -s conftest$ac_exeext'
5618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619   (eval $ac_try) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); }; }; then
5623   ac_cv_working_alloca_h=yes
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 ac_cv_working_alloca_h=no
5629 fi
5630 rm -f conftest.err conftest.$ac_objext \
5631       conftest$ac_exeext conftest.$ac_ext
5632 fi
5633 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5634 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5635 if test $ac_cv_working_alloca_h = yes; then
5636
5637 cat >>confdefs.h <<\_ACEOF
5638 #define HAVE_ALLOCA_H 1
5639 _ACEOF
5640
5641 fi
5642
5643 echo "$as_me:$LINENO: checking for alloca" >&5
5644 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5645 if test "${ac_cv_func_alloca_works+set}" = set; then
5646   echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648   cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 #ifdef __GNUC__
5655 # define alloca __builtin_alloca
5656 #else
5657 # ifdef _MSC_VER
5658 #  include <malloc.h>
5659 #  define alloca _alloca
5660 # else
5661 #  if HAVE_ALLOCA_H
5662 #   include <alloca.h>
5663 #  else
5664 #   ifdef _AIX
5665  #pragma alloca
5666 #   else
5667 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5668 char *alloca ();
5669 #    endif
5670 #   endif
5671 #  endif
5672 # endif
5673 #endif
5674
5675 int
5676 main ()
5677 {
5678 char *p = (char *) alloca (1);
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5694   (eval $ac_try) 2>&5
5695   ac_status=$?
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); }; } &&
5698          { ac_try='test -s conftest$ac_exeext'
5699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5700   (eval $ac_try) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); }; }; then
5704   ac_cv_func_alloca_works=yes
5705 else
5706   echo "$as_me: failed program was:" >&5
5707 sed 's/^/| /' conftest.$ac_ext >&5
5708
5709 ac_cv_func_alloca_works=no
5710 fi
5711 rm -f conftest.err conftest.$ac_objext \
5712       conftest$ac_exeext conftest.$ac_ext
5713 fi
5714 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5715 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5716
5717 if test $ac_cv_func_alloca_works = yes; then
5718
5719 cat >>confdefs.h <<\_ACEOF
5720 #define HAVE_ALLOCA 1
5721 _ACEOF
5722
5723 else
5724   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5725 # that cause trouble.  Some versions do not even contain alloca or
5726 # contain a buggy version.  If you still want to use their alloca,
5727 # use ar to extract alloca.o from them instead of compiling alloca.c.
5728
5729 ALLOCA=alloca.$ac_objext
5730
5731 cat >>confdefs.h <<\_ACEOF
5732 #define C_ALLOCA 1
5733 _ACEOF
5734
5735
5736 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5737 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5738 if test "${ac_cv_os_cray+set}" = set; then
5739   echo $ECHO_N "(cached) $ECHO_C" >&6
5740 else
5741   cat >conftest.$ac_ext <<_ACEOF
5742 /* confdefs.h.  */
5743 _ACEOF
5744 cat confdefs.h >>conftest.$ac_ext
5745 cat >>conftest.$ac_ext <<_ACEOF
5746 /* end confdefs.h.  */
5747 #if defined(CRAY) && ! defined(CRAY2)
5748 webecray
5749 #else
5750 wenotbecray
5751 #endif
5752
5753 _ACEOF
5754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5755   $EGREP "webecray" >/dev/null 2>&1; then
5756   ac_cv_os_cray=yes
5757 else
5758   ac_cv_os_cray=no
5759 fi
5760 rm -f conftest*
5761
5762 fi
5763 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5764 echo "${ECHO_T}$ac_cv_os_cray" >&6
5765 if test $ac_cv_os_cray = yes; then
5766   for ac_func in _getb67 GETB67 getb67; do
5767     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5768 echo "$as_me:$LINENO: checking for $ac_func" >&5
5769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5770 if eval "test \"\${$as_ac_var+set}\" = set"; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h.  */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h.  */
5779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5781 #define $ac_func innocuous_$ac_func
5782
5783 /* System header to define __stub macros and hopefully few prototypes,
5784     which can conflict with char $ac_func (); below.
5785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786     <limits.h> exists even on freestanding compilers.  */
5787
5788 #ifdef __STDC__
5789 # include <limits.h>
5790 #else
5791 # include <assert.h>
5792 #endif
5793
5794 #undef $ac_func
5795
5796 /* Override any gcc2 internal prototype to avoid an error.  */
5797 #ifdef __cplusplus
5798 extern "C"
5799 {
5800 #endif
5801 /* We use char because int might match the return type of a gcc2
5802    builtin and then its argument prototype would still apply.  */
5803 char $ac_func ();
5804 /* The GNU C library defines this for functions which it implements
5805     to always fail with ENOSYS.  Some functions are actually named
5806     something starting with __ and the normal name is an alias.  */
5807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5808 choke me
5809 #else
5810 char (*f) () = $ac_func;
5811 #endif
5812 #ifdef __cplusplus
5813 }
5814 #endif
5815
5816 int
5817 main ()
5818 {
5819 return f != $ac_func;
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext conftest$ac_exeext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5826   (eval $ac_link) 2>conftest.er1
5827   ac_status=$?
5828   grep -v '^ *+' conftest.er1 >conftest.err
5829   rm -f conftest.er1
5830   cat conftest.err >&5
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); } &&
5833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; } &&
5839          { ac_try='test -s conftest$ac_exeext'
5840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841   (eval $ac_try) 2>&5
5842   ac_status=$?
5843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844   (exit $ac_status); }; }; then
5845   eval "$as_ac_var=yes"
5846 else
5847   echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 eval "$as_ac_var=no"
5851 fi
5852 rm -f conftest.err conftest.$ac_objext \
5853       conftest$ac_exeext conftest.$ac_ext
5854 fi
5855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5857 if test `eval echo '${'$as_ac_var'}'` = yes; then
5858
5859 cat >>confdefs.h <<_ACEOF
5860 #define CRAY_STACKSEG_END $ac_func
5861 _ACEOF
5862
5863     break
5864 fi
5865
5866   done
5867 fi
5868
5869 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5870 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5871 if test "${ac_cv_c_stack_direction+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874   if test "$cross_compiling" = yes; then
5875   ac_cv_c_stack_direction=0
5876 else
5877   cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h.  */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h.  */
5883 int
5884 find_stack_direction ()
5885 {
5886   static char *addr = 0;
5887   auto char dummy;
5888   if (addr == 0)
5889     {
5890       addr = &dummy;
5891       return find_stack_direction ();
5892     }
5893   else
5894     return (&dummy > addr) ? 1 : -1;
5895 }
5896
5897 int
5898 main ()
5899 {
5900   exit (find_stack_direction () < 0);
5901 }
5902 _ACEOF
5903 rm -f conftest$ac_exeext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905   (eval $ac_link) 2>&5
5906   ac_status=$?
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910   (eval $ac_try) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; }; then
5914   ac_cv_c_stack_direction=1
5915 else
5916   echo "$as_me: program exited with status $ac_status" >&5
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 ( exit $ac_status )
5921 ac_cv_c_stack_direction=-1
5922 fi
5923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5924 fi
5925 fi
5926 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5927 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5928
5929 cat >>confdefs.h <<_ACEOF
5930 #define STACK_DIRECTION $ac_cv_c_stack_direction
5931 _ACEOF
5932
5933
5934 fi
5935
5936
5937
5938 for ac_header in stdlib.h unistd.h
5939 do
5940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5942   echo "$as_me:$LINENO: checking for $ac_header" >&5
5943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5945   echo $ECHO_N "(cached) $ECHO_C" >&6
5946 fi
5947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949 else
5950   # Is the header compilable?
5951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959 $ac_includes_default
5960 #include <$ac_header>
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964   (eval $ac_compile) 2>conftest.er1
5965   ac_status=$?
5966   grep -v '^ *+' conftest.er1 >conftest.err
5967   rm -f conftest.er1
5968   cat conftest.err >&5
5969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970   (exit $ac_status); } &&
5971          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973   (eval $ac_try) 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }; } &&
5977          { ac_try='test -s conftest.$ac_objext'
5978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979   (eval $ac_try) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); }; }; then
5983   ac_header_compiler=yes
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 ac_header_compiler=no
5989 fi
5990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5992 echo "${ECHO_T}$ac_header_compiler" >&6
5993
5994 # Is the header present?
5995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5997 cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h.  */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h.  */
6003 #include <$ac_header>
6004 _ACEOF
6005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } >/dev/null; then
6013   if test -s conftest.err; then
6014     ac_cpp_err=$ac_c_preproc_warn_flag
6015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6016   else
6017     ac_cpp_err=
6018   fi
6019 else
6020   ac_cpp_err=yes
6021 fi
6022 if test -z "$ac_cpp_err"; then
6023   ac_header_preproc=yes
6024 else
6025   echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6027
6028   ac_header_preproc=no
6029 fi
6030 rm -f conftest.err conftest.$ac_ext
6031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6032 echo "${ECHO_T}$ac_header_preproc" >&6
6033
6034 # So?  What about this header?
6035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6036   yes:no: )
6037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6041     ac_header_preproc=yes
6042     ;;
6043   no:yes:* )
6044     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6046     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6047 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6048     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6050     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6051 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6054     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6056     (
6057       cat <<\_ASBOX
6058 ## ------------------------------------------ ##
6059 ## Report this to the AC_PACKAGE_NAME lists.  ##
6060 ## ------------------------------------------ ##
6061 _ASBOX
6062     ) |
6063       sed "s/^/$as_me: WARNING:     /" >&2
6064     ;;
6065 esac
6066 echo "$as_me:$LINENO: checking for $ac_header" >&5
6067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   eval "$as_ac_Header=\$ac_header_preproc"
6072 fi
6073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075
6076 fi
6077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6078   cat >>confdefs.h <<_ACEOF
6079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080 _ACEOF
6081
6082 fi
6083
6084 done
6085
6086
6087 for ac_func in getpagesize
6088 do
6089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6090 echo "$as_me:$LINENO: checking for $ac_func" >&5
6091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6092 if eval "test \"\${$as_ac_var+set}\" = set"; then
6093   echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095   cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h.  */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h.  */
6101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6103 #define $ac_func innocuous_$ac_func
6104
6105 /* System header to define __stub macros and hopefully few prototypes,
6106     which can conflict with char $ac_func (); below.
6107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6108     <limits.h> exists even on freestanding compilers.  */
6109
6110 #ifdef __STDC__
6111 # include <limits.h>
6112 #else
6113 # include <assert.h>
6114 #endif
6115
6116 #undef $ac_func
6117
6118 /* Override any gcc2 internal prototype to avoid an error.  */
6119 #ifdef __cplusplus
6120 extern "C"
6121 {
6122 #endif
6123 /* We use char because int might match the return type of a gcc2
6124    builtin and then its argument prototype would still apply.  */
6125 char $ac_func ();
6126 /* The GNU C library defines this for functions which it implements
6127     to always fail with ENOSYS.  Some functions are actually named
6128     something starting with __ and the normal name is an alias.  */
6129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6130 choke me
6131 #else
6132 char (*f) () = $ac_func;
6133 #endif
6134 #ifdef __cplusplus
6135 }
6136 #endif
6137
6138 int
6139 main ()
6140 {
6141 return f != $ac_func;
6142   ;
6143   return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6148   (eval $ac_link) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } &&
6155          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157   (eval $ac_try) 2>&5
6158   ac_status=$?
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); }; } &&
6161          { ac_try='test -s conftest$ac_exeext'
6162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6163   (eval $ac_try) 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }; }; then
6167   eval "$as_ac_var=yes"
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172 eval "$as_ac_var=no"
6173 fi
6174 rm -f conftest.err conftest.$ac_objext \
6175       conftest$ac_exeext conftest.$ac_ext
6176 fi
6177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6179 if test `eval echo '${'$as_ac_var'}'` = yes; then
6180   cat >>confdefs.h <<_ACEOF
6181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6182 _ACEOF
6183
6184 fi
6185 done
6186
6187 echo "$as_me:$LINENO: checking for working mmap" >&5
6188 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6189 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if test "$cross_compiling" = yes; then
6193   ac_cv_func_mmap_fixed_mapped=no
6194 else
6195   cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h.  */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h.  */
6201 $ac_includes_default
6202 /* malloc might have been renamed as rpl_malloc. */
6203 #undef malloc
6204
6205 /* Thanks to Mike Haertel and Jim Avera for this test.
6206    Here is a matrix of mmap possibilities:
6207         mmap private not fixed
6208         mmap private fixed at somewhere currently unmapped
6209         mmap private fixed at somewhere already mapped
6210         mmap shared not fixed
6211         mmap shared fixed at somewhere currently unmapped
6212         mmap shared fixed at somewhere already mapped
6213    For private mappings, we should verify that changes cannot be read()
6214    back from the file, nor mmap's back from the file at a different
6215    address.  (There have been systems where private was not correctly
6216    implemented like the infamous i386 svr4.0, and systems where the
6217    VM page cache was not coherent with the file system buffer cache
6218    like early versions of FreeBSD and possibly contemporary NetBSD.)
6219    For shared mappings, we should conversely verify that changes get
6220    propagated back to all the places they're supposed to be.
6221
6222    Grep wants private fixed already mapped.
6223    The main things grep needs to know about mmap are:
6224    * does it exist and is it safe to write into the mmap'd area
6225    * how to use it (BSD variants)  */
6226
6227 #include <fcntl.h>
6228 #include <sys/mman.h>
6229
6230 #if !STDC_HEADERS && !HAVE_STDLIB_H
6231 char *malloc ();
6232 #endif
6233
6234 /* This mess was copied from the GNU getpagesize.h.  */
6235 #if !HAVE_GETPAGESIZE
6236 /* Assume that all systems that can run configure have sys/param.h.  */
6237 # if !HAVE_SYS_PARAM_H
6238 #  define HAVE_SYS_PARAM_H 1
6239 # endif
6240
6241 # ifdef _SC_PAGESIZE
6242 #  define getpagesize() sysconf(_SC_PAGESIZE)
6243 # else /* no _SC_PAGESIZE */
6244 #  if HAVE_SYS_PARAM_H
6245 #   include <sys/param.h>
6246 #   ifdef EXEC_PAGESIZE
6247 #    define getpagesize() EXEC_PAGESIZE
6248 #   else /* no EXEC_PAGESIZE */
6249 #    ifdef NBPG
6250 #     define getpagesize() NBPG * CLSIZE
6251 #     ifndef CLSIZE
6252 #      define CLSIZE 1
6253 #     endif /* no CLSIZE */
6254 #    else /* no NBPG */
6255 #     ifdef NBPC
6256 #      define getpagesize() NBPC
6257 #     else /* no NBPC */
6258 #      ifdef PAGESIZE
6259 #       define getpagesize() PAGESIZE
6260 #      endif /* PAGESIZE */
6261 #     endif /* no NBPC */
6262 #    endif /* no NBPG */
6263 #   endif /* no EXEC_PAGESIZE */
6264 #  else /* no HAVE_SYS_PARAM_H */
6265 #   define getpagesize() 8192   /* punt totally */
6266 #  endif /* no HAVE_SYS_PARAM_H */
6267 # endif /* no _SC_PAGESIZE */
6268
6269 #endif /* no HAVE_GETPAGESIZE */
6270
6271 int
6272 main ()
6273 {
6274   char *data, *data2, *data3;
6275   int i, pagesize;
6276   int fd;
6277
6278   pagesize = getpagesize ();
6279
6280   /* First, make a file with some known garbage in it. */
6281   data = (char *) malloc (pagesize);
6282   if (!data)
6283     exit (1);
6284   for (i = 0; i < pagesize; ++i)
6285     *(data + i) = rand ();
6286   umask (0);
6287   fd = creat ("conftest.mmap", 0600);
6288   if (fd < 0)
6289     exit (1);
6290   if (write (fd, data, pagesize) != pagesize)
6291     exit (1);
6292   close (fd);
6293
6294   /* Next, try to mmap the file at a fixed address which already has
6295      something else allocated at it.  If we can, also make sure that
6296      we see the same garbage.  */
6297   fd = open ("conftest.mmap", O_RDWR);
6298   if (fd < 0)
6299     exit (1);
6300   data2 = (char *) malloc (2 * pagesize);
6301   if (!data2)
6302     exit (1);
6303   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6304   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6305                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6306     exit (1);
6307   for (i = 0; i < pagesize; ++i)
6308     if (*(data + i) != *(data2 + i))
6309       exit (1);
6310
6311   /* Finally, make sure that changes to the mapped area do not
6312      percolate back to the file as seen by read().  (This is a bug on
6313      some variants of i386 svr4.0.)  */
6314   for (i = 0; i < pagesize; ++i)
6315     *(data2 + i) = *(data2 + i) + 1;
6316   data3 = (char *) malloc (pagesize);
6317   if (!data3)
6318     exit (1);
6319   if (read (fd, data3, pagesize) != pagesize)
6320     exit (1);
6321   for (i = 0; i < pagesize; ++i)
6322     if (*(data + i) != *(data3 + i))
6323       exit (1);
6324   close (fd);
6325   exit (0);
6326 }
6327 _ACEOF
6328 rm -f conftest$ac_exeext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6330   (eval $ac_link) 2>&5
6331   ac_status=$?
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6335   (eval $ac_try) 2>&5
6336   ac_status=$?
6337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338   (exit $ac_status); }; }; then
6339   ac_cv_func_mmap_fixed_mapped=yes
6340 else
6341   echo "$as_me: program exited with status $ac_status" >&5
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6344
6345 ( exit $ac_status )
6346 ac_cv_func_mmap_fixed_mapped=no
6347 fi
6348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6349 fi
6350 fi
6351 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6352 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6353 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define HAVE_MMAP 1
6357 _ACEOF
6358
6359 fi
6360 rm -f conftest.mmap
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6373 unistd.h values.h sys/param.h
6374 do
6375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377   echo "$as_me:$LINENO: checking for $ac_header" >&5
6378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 fi
6382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384 else
6385   # Is the header compilable?
6386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6388 cat >conftest.$ac_ext <<_ACEOF
6389 /* confdefs.h.  */
6390 _ACEOF
6391 cat confdefs.h >>conftest.$ac_ext
6392 cat >>conftest.$ac_ext <<_ACEOF
6393 /* end confdefs.h.  */
6394 $ac_includes_default
6395 #include <$ac_header>
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399   (eval $ac_compile) 2>conftest.er1
6400   ac_status=$?
6401   grep -v '^ *+' conftest.er1 >conftest.err
6402   rm -f conftest.er1
6403   cat conftest.err >&5
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } &&
6406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; } &&
6412          { ac_try='test -s conftest.$ac_objext'
6413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414   (eval $ac_try) 2>&5
6415   ac_status=$?
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); }; }; then
6418   ac_header_compiler=yes
6419 else
6420   echo "$as_me: failed program was:" >&5
6421 sed 's/^/| /' conftest.$ac_ext >&5
6422
6423 ac_header_compiler=no
6424 fi
6425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6427 echo "${ECHO_T}$ac_header_compiler" >&6
6428
6429 # Is the header present?
6430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438 #include <$ac_header>
6439 _ACEOF
6440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6442   ac_status=$?
6443   grep -v '^ *+' conftest.er1 >conftest.err
6444   rm -f conftest.er1
6445   cat conftest.err >&5
6446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447   (exit $ac_status); } >/dev/null; then
6448   if test -s conftest.err; then
6449     ac_cpp_err=$ac_c_preproc_warn_flag
6450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6451   else
6452     ac_cpp_err=
6453   fi
6454 else
6455   ac_cpp_err=yes
6456 fi
6457 if test -z "$ac_cpp_err"; then
6458   ac_header_preproc=yes
6459 else
6460   echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6462
6463   ac_header_preproc=no
6464 fi
6465 rm -f conftest.err conftest.$ac_ext
6466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6467 echo "${ECHO_T}$ac_header_preproc" >&6
6468
6469 # So?  What about this header?
6470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6471   yes:no: )
6472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6476     ac_header_preproc=yes
6477     ;;
6478   no:yes:* )
6479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6491     (
6492       cat <<\_ASBOX
6493 ## ------------------------------------------ ##
6494 ## Report this to the AC_PACKAGE_NAME lists.  ##
6495 ## ------------------------------------------ ##
6496 _ASBOX
6497     ) |
6498       sed "s/^/$as_me: WARNING:     /" >&2
6499     ;;
6500 esac
6501 echo "$as_me:$LINENO: checking for $ac_header" >&5
6502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   eval "$as_ac_Header=\$ac_header_preproc"
6507 fi
6508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6510
6511 fi
6512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6513   cat >>confdefs.h <<_ACEOF
6514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 _ACEOF
6516
6517 fi
6518
6519 done
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6532 __argz_count __argz_stringify __argz_next
6533 do
6534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6535 echo "$as_me:$LINENO: checking for $ac_func" >&5
6536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_var+set}\" = set"; then
6538   echo $ECHO_N "(cached) $ECHO_C" >&6
6539 else
6540   cat >conftest.$ac_ext <<_ACEOF
6541 /* confdefs.h.  */
6542 _ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h.  */
6546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6548 #define $ac_func innocuous_$ac_func
6549
6550 /* System header to define __stub macros and hopefully few prototypes,
6551     which can conflict with char $ac_func (); below.
6552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6553     <limits.h> exists even on freestanding compilers.  */
6554
6555 #ifdef __STDC__
6556 # include <limits.h>
6557 #else
6558 # include <assert.h>
6559 #endif
6560
6561 #undef $ac_func
6562
6563 /* Override any gcc2 internal prototype to avoid an error.  */
6564 #ifdef __cplusplus
6565 extern "C"
6566 {
6567 #endif
6568 /* We use char because int might match the return type of a gcc2
6569    builtin and then its argument prototype would still apply.  */
6570 char $ac_func ();
6571 /* The GNU C library defines this for functions which it implements
6572     to always fail with ENOSYS.  Some functions are actually named
6573     something starting with __ and the normal name is an alias.  */
6574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6575 choke me
6576 #else
6577 char (*f) () = $ac_func;
6578 #endif
6579 #ifdef __cplusplus
6580 }
6581 #endif
6582
6583 int
6584 main ()
6585 {
6586 return f != $ac_func;
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext conftest$ac_exeext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593   (eval $ac_link) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602   (eval $ac_try) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); }; } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612   eval "$as_ac_var=yes"
6613 else
6614   echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6616
6617 eval "$as_ac_var=no"
6618 fi
6619 rm -f conftest.err conftest.$ac_objext \
6620       conftest$ac_exeext conftest.$ac_ext
6621 fi
6622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6624 if test `eval echo '${'$as_ac_var'}'` = yes; then
6625   cat >>confdefs.h <<_ACEOF
6626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6627 _ACEOF
6628
6629 fi
6630 done
6631
6632
6633    if test "${ac_cv_func_stpcpy+set}" != "set"; then
6634
6635 for ac_func in stpcpy
6636 do
6637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6638 echo "$as_me:$LINENO: checking for $ac_func" >&5
6639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6640 if eval "test \"\${$as_ac_var+set}\" = set"; then
6641   echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643   cat >conftest.$ac_ext <<_ACEOF
6644 /* confdefs.h.  */
6645 _ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h.  */
6649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6651 #define $ac_func innocuous_$ac_func
6652
6653 /* System header to define __stub macros and hopefully few prototypes,
6654     which can conflict with char $ac_func (); below.
6655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6656     <limits.h> exists even on freestanding compilers.  */
6657
6658 #ifdef __STDC__
6659 # include <limits.h>
6660 #else
6661 # include <assert.h>
6662 #endif
6663
6664 #undef $ac_func
6665
6666 /* Override any gcc2 internal prototype to avoid an error.  */
6667 #ifdef __cplusplus
6668 extern "C"
6669 {
6670 #endif
6671 /* We use char because int might match the return type of a gcc2
6672    builtin and then its argument prototype would still apply.  */
6673 char $ac_func ();
6674 /* The GNU C library defines this for functions which it implements
6675     to always fail with ENOSYS.  Some functions are actually named
6676     something starting with __ and the normal name is an alias.  */
6677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6678 choke me
6679 #else
6680 char (*f) () = $ac_func;
6681 #endif
6682 #ifdef __cplusplus
6683 }
6684 #endif
6685
6686 int
6687 main ()
6688 {
6689 return f != $ac_func;
6690   ;
6691   return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696   (eval $ac_link) 2>conftest.er1
6697   ac_status=$?
6698   grep -v '^ *+' conftest.er1 >conftest.err
6699   rm -f conftest.er1
6700   cat conftest.err >&5
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); } &&
6703          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; } &&
6709          { ac_try='test -s conftest$ac_exeext'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715   eval "$as_ac_var=yes"
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720 eval "$as_ac_var=no"
6721 fi
6722 rm -f conftest.err conftest.$ac_objext \
6723       conftest$ac_exeext conftest.$ac_ext
6724 fi
6725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6727 if test `eval echo '${'$as_ac_var'}'` = yes; then
6728   cat >>confdefs.h <<_ACEOF
6729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6730 _ACEOF
6731
6732 fi
6733 done
6734
6735    fi
6736    if test "${ac_cv_func_stpcpy}" = "yes"; then
6737
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_STPCPY 1
6740 _ACEOF
6741
6742    fi
6743
6744    if test $ac_cv_header_locale_h = yes; then
6745     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6746 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6747 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6748   echo $ECHO_N "(cached) $ECHO_C" >&6
6749 else
6750   cat >conftest.$ac_ext <<_ACEOF
6751 /* confdefs.h.  */
6752 _ACEOF
6753 cat confdefs.h >>conftest.$ac_ext
6754 cat >>conftest.$ac_ext <<_ACEOF
6755 /* end confdefs.h.  */
6756 #include <locale.h>
6757 int
6758 main ()
6759 {
6760 return LC_MESSAGES
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767   (eval $ac_link) 2>conftest.er1
6768   ac_status=$?
6769   grep -v '^ *+' conftest.er1 >conftest.err
6770   rm -f conftest.er1
6771   cat conftest.err >&5
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); } &&
6774          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776   (eval $ac_try) 2>&5
6777   ac_status=$?
6778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779   (exit $ac_status); }; } &&
6780          { ac_try='test -s conftest$ac_exeext'
6781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6782   (eval $ac_try) 2>&5
6783   ac_status=$?
6784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785   (exit $ac_status); }; }; then
6786   am_cv_val_LC_MESSAGES=yes
6787 else
6788   echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6790
6791 am_cv_val_LC_MESSAGES=no
6792 fi
6793 rm -f conftest.err conftest.$ac_objext \
6794       conftest$ac_exeext conftest.$ac_ext
6795 fi
6796 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6797 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6798     if test $am_cv_val_LC_MESSAGES = yes; then
6799
6800 cat >>confdefs.h <<\_ACEOF
6801 #define HAVE_LC_MESSAGES 1
6802 _ACEOF
6803
6804     fi
6805   fi
6806    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6807 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6808         # Check whether --enable-nls or --disable-nls was given.
6809 if test "${enable_nls+set}" = set; then
6810   enableval="$enable_nls"
6811   USE_NLS=$enableval
6812 else
6813   USE_NLS=yes
6814 fi;
6815     echo "$as_me:$LINENO: result: $USE_NLS" >&5
6816 echo "${ECHO_T}$USE_NLS" >&6
6817
6818
6819     USE_INCLUDED_LIBINTL=no
6820
6821         if test "$USE_NLS" = "yes"; then
6822
6823 cat >>confdefs.h <<\_ACEOF
6824 #define ENABLE_NLS 1
6825 _ACEOF
6826
6827       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6828 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6829
6830 # Check whether --with-included-gettext or --without-included-gettext was given.
6831 if test "${with_included_gettext+set}" = set; then
6832   withval="$with_included_gettext"
6833   nls_cv_force_use_gnu_gettext=$withval
6834 else
6835   nls_cv_force_use_gnu_gettext=no
6836 fi;
6837       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6838 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6839
6840       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6841       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6842                                         nls_cv_header_intl=
6843         nls_cv_header_libgt=
6844         CATOBJEXT=NONE
6845
6846         if test "${ac_cv_header_libintl_h+set}" = set; then
6847   echo "$as_me:$LINENO: checking for libintl.h" >&5
6848 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6849 if test "${ac_cv_header_libintl_h+set}" = set; then
6850   echo $ECHO_N "(cached) $ECHO_C" >&6
6851 fi
6852 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6853 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6854 else
6855   # Is the header compilable?
6856 echo "$as_me:$LINENO: checking libintl.h usability" >&5
6857 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6858 cat >conftest.$ac_ext <<_ACEOF
6859 /* confdefs.h.  */
6860 _ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h.  */
6864 $ac_includes_default
6865 #include <libintl.h>
6866 _ACEOF
6867 rm -f conftest.$ac_objext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6869   (eval $ac_compile) 2>conftest.er1
6870   ac_status=$?
6871   grep -v '^ *+' conftest.er1 >conftest.err
6872   rm -f conftest.er1
6873   cat conftest.err >&5
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); } &&
6876          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878   (eval $ac_try) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; } &&
6882          { ac_try='test -s conftest.$ac_objext'
6883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884   (eval $ac_try) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); }; }; then
6888   ac_header_compiler=yes
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 ac_header_compiler=no
6894 fi
6895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6897 echo "${ECHO_T}$ac_header_compiler" >&6
6898
6899 # Is the header present?
6900 echo "$as_me:$LINENO: checking libintl.h presence" >&5
6901 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h.  */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h.  */
6908 #include <libintl.h>
6909 _ACEOF
6910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } >/dev/null; then
6918   if test -s conftest.err; then
6919     ac_cpp_err=$ac_c_preproc_warn_flag
6920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6921   else
6922     ac_cpp_err=
6923   fi
6924 else
6925   ac_cpp_err=yes
6926 fi
6927 if test -z "$ac_cpp_err"; then
6928   ac_header_preproc=yes
6929 else
6930   echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933   ac_header_preproc=no
6934 fi
6935 rm -f conftest.err conftest.$ac_ext
6936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6937 echo "${ECHO_T}$ac_header_preproc" >&6
6938
6939 # So?  What about this header?
6940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6941   yes:no: )
6942     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6943 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6944     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6945 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6946     ac_header_preproc=yes
6947     ;;
6948   no:yes:* )
6949     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6950 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6951     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
6952 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
6953     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6954 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6955     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
6956 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6957     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6958 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6959     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6960 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6961     (
6962       cat <<\_ASBOX
6963 ## ------------------------------------------ ##
6964 ## Report this to the AC_PACKAGE_NAME lists.  ##
6965 ## ------------------------------------------ ##
6966 _ASBOX
6967     ) |
6968       sed "s/^/$as_me: WARNING:     /" >&2
6969     ;;
6970 esac
6971 echo "$as_me:$LINENO: checking for libintl.h" >&5
6972 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6973 if test "${ac_cv_header_libintl_h+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   ac_cv_header_libintl_h=$ac_header_preproc
6977 fi
6978 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6979 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6980
6981 fi
6982 if test $ac_cv_header_libintl_h = yes; then
6983   echo "$as_me:$LINENO: checking for gettext in libc" >&5
6984 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
6985 if test "${gt_cv_func_gettext_libc+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 else
6988   cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 #include <libintl.h>
6995 int
6996 main ()
6997 {
6998 return (int) gettext ("")
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005   (eval $ac_link) 2>conftest.er1
7006   ac_status=$?
7007   grep -v '^ *+' conftest.er1 >conftest.err
7008   rm -f conftest.er1
7009   cat conftest.err >&5
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } &&
7012          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   gt_cv_func_gettext_libc=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 gt_cv_func_gettext_libc=no
7030 fi
7031 rm -f conftest.err conftest.$ac_objext \
7032       conftest$ac_exeext conftest.$ac_ext
7033 fi
7034 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7035 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7036
7037            if test "$gt_cv_func_gettext_libc" != "yes"; then
7038              echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7039 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7040 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   ac_check_lib_save_LIBS=$LIBS
7044 LIBS="-lintl  $LIBS"
7045 cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051
7052 /* Override any gcc2 internal prototype to avoid an error.  */
7053 #ifdef __cplusplus
7054 extern "C"
7055 #endif
7056 /* We use char because int might match the return type of a gcc2
7057    builtin and then its argument prototype would still apply.  */
7058 char bindtextdomain ();
7059 int
7060 main ()
7061 {
7062 bindtextdomain ();
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>conftest.er1
7070   ac_status=$?
7071   grep -v '^ *+' conftest.er1 >conftest.err
7072   rm -f conftest.er1
7073   cat conftest.err >&5
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } &&
7076          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078   (eval $ac_try) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; } &&
7082          { ac_try='test -s conftest$ac_exeext'
7083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084   (eval $ac_try) 2>&5
7085   ac_status=$?
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); }; }; then
7088   ac_cv_lib_intl_bindtextdomain=yes
7089 else
7090   echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_lib_intl_bindtextdomain=no
7094 fi
7095 rm -f conftest.err conftest.$ac_objext \
7096       conftest$ac_exeext conftest.$ac_ext
7097 LIBS=$ac_check_lib_save_LIBS
7098 fi
7099 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7100 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7101 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7102   echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7103 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7104 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7105   echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107   cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h.  */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h.  */
7113
7114 int
7115 main ()
7116 {
7117 return (int) gettext ("")
7118   ;
7119   return 0;
7120 }
7121 _ACEOF
7122 rm -f conftest.$ac_objext conftest$ac_exeext
7123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7124   (eval $ac_link) 2>conftest.er1
7125   ac_status=$?
7126   grep -v '^ *+' conftest.er1 >conftest.err
7127   rm -f conftest.er1
7128   cat conftest.err >&5
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); } &&
7131          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133   (eval $ac_try) 2>&5
7134   ac_status=$?
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); }; } &&
7137          { ac_try='test -s conftest$ac_exeext'
7138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139   (eval $ac_try) 2>&5
7140   ac_status=$?
7141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); }; }; then
7143   gt_cv_func_gettext_libintl=yes
7144 else
7145   echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148 gt_cv_func_gettext_libintl=no
7149 fi
7150 rm -f conftest.err conftest.$ac_objext \
7151       conftest$ac_exeext conftest.$ac_ext
7152 fi
7153 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7154 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7155 fi
7156
7157            fi
7158
7159            if test "$gt_cv_func_gettext_libc" = "yes" \
7160               || test "$gt_cv_func_gettext_libintl" = "yes"; then
7161
7162 cat >>confdefs.h <<\_ACEOF
7163 #define HAVE_GETTEXT 1
7164 _ACEOF
7165
7166               # Extract the first word of "msgfmt", so it can be a program name with args.
7167 set dummy msgfmt; ac_word=$2
7168 echo "$as_me:$LINENO: checking for $ac_word" >&5
7169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170 if test "${ac_cv_path_MSGFMT+set}" = set; then
7171   echo $ECHO_N "(cached) $ECHO_C" >&6
7172 else
7173   case "$MSGFMT" in
7174   /*)
7175   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7176   ;;
7177   *)
7178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7179   for ac_dir in $PATH; do
7180     test -z "$ac_dir" && ac_dir=.
7181     if test -f $ac_dir/$ac_word; then
7182       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7183         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7184         break
7185       fi
7186     fi
7187   done
7188   IFS="$ac_save_ifs"
7189   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7190   ;;
7191 esac
7192 fi
7193 MSGFMT="$ac_cv_path_MSGFMT"
7194 if test -n "$MSGFMT"; then
7195   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7196 echo "${ECHO_T}$MSGFMT" >&6
7197 else
7198   echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7200 fi
7201               if test "$MSGFMT" != "no"; then
7202
7203 for ac_func in dcgettext
7204 do
7205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7206 echo "$as_me:$LINENO: checking for $ac_func" >&5
7207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7208 if eval "test \"\${$as_ac_var+set}\" = set"; then
7209   echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211   cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h.  */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h.  */
7217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7219 #define $ac_func innocuous_$ac_func
7220
7221 /* System header to define __stub macros and hopefully few prototypes,
7222     which can conflict with char $ac_func (); below.
7223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224     <limits.h> exists even on freestanding compilers.  */
7225
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231
7232 #undef $ac_func
7233
7234 /* Override any gcc2 internal prototype to avoid an error.  */
7235 #ifdef __cplusplus
7236 extern "C"
7237 {
7238 #endif
7239 /* We use char because int might match the return type of a gcc2
7240    builtin and then its argument prototype would still apply.  */
7241 char $ac_func ();
7242 /* The GNU C library defines this for functions which it implements
7243     to always fail with ENOSYS.  Some functions are actually named
7244     something starting with __ and the normal name is an alias.  */
7245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7246 choke me
7247 #else
7248 char (*f) () = $ac_func;
7249 #endif
7250 #ifdef __cplusplus
7251 }
7252 #endif
7253
7254 int
7255 main ()
7256 {
7257 return f != $ac_func;
7258   ;
7259   return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7264   (eval $ac_link) 2>conftest.er1
7265   ac_status=$?
7266   grep -v '^ *+' conftest.er1 >conftest.err
7267   rm -f conftest.er1
7268   cat conftest.err >&5
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } &&
7271          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; } &&
7277          { ac_try='test -s conftest$ac_exeext'
7278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7279   (eval $ac_try) 2>&5
7280   ac_status=$?
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); }; }; then
7283   eval "$as_ac_var=yes"
7284 else
7285   echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288 eval "$as_ac_var=no"
7289 fi
7290 rm -f conftest.err conftest.$ac_objext \
7291       conftest$ac_exeext conftest.$ac_ext
7292 fi
7293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7295 if test `eval echo '${'$as_ac_var'}'` = yes; then
7296   cat >>confdefs.h <<_ACEOF
7297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7298 _ACEOF
7299
7300 fi
7301 done
7302
7303                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7304 set dummy gmsgfmt; ac_word=$2
7305 echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7307 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   case $GMSGFMT in
7311   [\\/]* | ?:[\\/]*)
7312   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7313   ;;
7314   *)
7315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320   for ac_exec_ext in '' $ac_executable_extensions; do
7321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327 done
7328
7329   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7330   ;;
7331 esac
7332 fi
7333 GMSGFMT=$ac_cv_path_GMSGFMT
7334
7335 if test -n "$GMSGFMT"; then
7336   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7337 echo "${ECHO_T}$GMSGFMT" >&6
7338 else
7339   echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7341 fi
7342
7343                 # Extract the first word of "xgettext", so it can be a program name with args.
7344 set dummy xgettext; ac_word=$2
7345 echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7347 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case "$XGETTEXT" in
7351   /*)
7352   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7356   for ac_dir in $PATH; do
7357     test -z "$ac_dir" && ac_dir=.
7358     if test -f $ac_dir/$ac_word; then
7359       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7360         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7361         break
7362       fi
7363     fi
7364   done
7365   IFS="$ac_save_ifs"
7366   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7367   ;;
7368 esac
7369 fi
7370 XGETTEXT="$ac_cv_path_XGETTEXT"
7371 if test -n "$XGETTEXT"; then
7372   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7373 echo "${ECHO_T}$XGETTEXT" >&6
7374 else
7375   echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377 fi
7378
7379                 cat >conftest.$ac_ext <<_ACEOF
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385
7386 int
7387 main ()
7388 {
7389 extern int _nl_msg_cat_cntr;
7390                                return _nl_msg_cat_cntr
7391   ;
7392   return 0;
7393 }
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397   (eval $ac_link) 2>conftest.er1
7398   ac_status=$?
7399   grep -v '^ *+' conftest.er1 >conftest.err
7400   rm -f conftest.er1
7401   cat conftest.err >&5
7402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403   (exit $ac_status); } &&
7404          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406   (eval $ac_try) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); }; } &&
7410          { ac_try='test -s conftest$ac_exeext'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; }; then
7416   CATOBJEXT=.gmo
7417                    DATADIRNAME=share
7418 else
7419   echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 CATOBJEXT=.mo
7423                    DATADIRNAME=lib
7424 fi
7425 rm -f conftest.err conftest.$ac_objext \
7426       conftest$ac_exeext conftest.$ac_ext
7427                 INSTOBJEXT=.mo
7428               fi
7429             fi
7430
7431 fi
7432
7433
7434
7435
7436         if test "$CATOBJEXT" = "NONE"; then
7437                           nls_cv_use_gnu_gettext=yes
7438         fi
7439       fi
7440
7441       if test "$nls_cv_use_gnu_gettext" = "yes"; then
7442                 INTLOBJS="\$(GETTOBJS)"
7443         # Extract the first word of "msgfmt", so it can be a program name with args.
7444 set dummy msgfmt; ac_word=$2
7445 echo "$as_me:$LINENO: checking for $ac_word" >&5
7446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447 if test "${ac_cv_path_MSGFMT+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case "$MSGFMT" in
7451   /*)
7452   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7453   ;;
7454   *)
7455   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7456   for ac_dir in $PATH; do
7457     test -z "$ac_dir" && ac_dir=.
7458     if test -f $ac_dir/$ac_word; then
7459       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7460         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7461         break
7462       fi
7463     fi
7464   done
7465   IFS="$ac_save_ifs"
7466   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7467   ;;
7468 esac
7469 fi
7470 MSGFMT="$ac_cv_path_MSGFMT"
7471 if test -n "$MSGFMT"; then
7472   echo "$as_me:$LINENO: result: $MSGFMT" >&5
7473 echo "${ECHO_T}$MSGFMT" >&6
7474 else
7475   echo "$as_me:$LINENO: result: no" >&5
7476 echo "${ECHO_T}no" >&6
7477 fi
7478
7479         # Extract the first word of "gmsgfmt", so it can be a program name with args.
7480 set dummy gmsgfmt; ac_word=$2
7481 echo "$as_me:$LINENO: checking for $ac_word" >&5
7482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7483 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   case $GMSGFMT in
7487   [\\/]* | ?:[\\/]*)
7488   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7489   ;;
7490   *)
7491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494   IFS=$as_save_IFS
7495   test -z "$as_dir" && as_dir=.
7496   for ac_exec_ext in '' $ac_executable_extensions; do
7497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500     break 2
7501   fi
7502 done
7503 done
7504
7505   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7506   ;;
7507 esac
7508 fi
7509 GMSGFMT=$ac_cv_path_GMSGFMT
7510
7511 if test -n "$GMSGFMT"; then
7512   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7513 echo "${ECHO_T}$GMSGFMT" >&6
7514 else
7515   echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7517 fi
7518
7519         # Extract the first word of "xgettext", so it can be a program name with args.
7520 set dummy xgettext; ac_word=$2
7521 echo "$as_me:$LINENO: checking for $ac_word" >&5
7522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   case "$XGETTEXT" in
7527   /*)
7528   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7529   ;;
7530   *)
7531   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7532   for ac_dir in $PATH; do
7533     test -z "$ac_dir" && ac_dir=.
7534     if test -f $ac_dir/$ac_word; then
7535       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7536         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7537         break
7538       fi
7539     fi
7540   done
7541   IFS="$ac_save_ifs"
7542   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7543   ;;
7544 esac
7545 fi
7546 XGETTEXT="$ac_cv_path_XGETTEXT"
7547 if test -n "$XGETTEXT"; then
7548   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7549 echo "${ECHO_T}$XGETTEXT" >&6
7550 else
7551   echo "$as_me:$LINENO: result: no" >&5
7552 echo "${ECHO_T}no" >&6
7553 fi
7554
7555
7556         USE_INCLUDED_LIBINTL=yes
7557         CATOBJEXT=.gmo
7558         INSTOBJEXT=.mo
7559         DATADIRNAME=share
7560         INTLDEPS='$(top_builddir)/../intl/libintl.a'
7561         INTLLIBS=$INTLDEPS
7562         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7563         nls_cv_header_intl=libintl.h
7564         nls_cv_header_libgt=libgettext.h
7565       fi
7566
7567             if test "$XGETTEXT" != ":"; then
7568                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7569           : ;
7570         else
7571           echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7572 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7573           XGETTEXT=":"
7574         fi
7575       fi
7576
7577       # We need to process the po/ directory.
7578       POSUB=po
7579     else
7580       DATADIRNAME=share
7581       nls_cv_header_intl=libintl.h
7582       nls_cv_header_libgt=libgettext.h
7583     fi
7584
7585     # If this is used in GNU gettext we have to set USE_NLS to `yes'
7586     # because some of the sources are only built for this goal.
7587     if test "$PACKAGE" = gettext; then
7588       USE_NLS=yes
7589       USE_INCLUDED_LIBINTL=yes
7590     fi
7591
7592                 for lang in $ALL_LINGUAS; do
7593       GMOFILES="$GMOFILES $lang.gmo"
7594       POFILES="$POFILES $lang.po"
7595     done
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610    if test "x$CATOBJEXT" != "x"; then
7611      if test "x$ALL_LINGUAS" = "x"; then
7612        LINGUAS=
7613      else
7614        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7615 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
7616        NEW_LINGUAS=
7617        for lang in ${LINGUAS=$ALL_LINGUAS}; do
7618          case "$ALL_LINGUAS" in
7619           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7620          esac
7621        done
7622        LINGUAS=$NEW_LINGUAS
7623        echo "$as_me:$LINENO: result: $LINGUAS" >&5
7624 echo "${ECHO_T}$LINGUAS" >&6
7625      fi
7626
7627           if test -n "$LINGUAS"; then
7628        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7629      fi
7630    fi
7631
7632             if test $ac_cv_header_locale_h = yes; then
7633      INCLUDE_LOCALE_H="#include <locale.h>"
7634    else
7635      INCLUDE_LOCALE_H="\
7636 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
7637    fi
7638
7639
7640             if test -f $srcdir/po2tbl.sed.in; then
7641       if test "$CATOBJEXT" = ".cat"; then
7642          if test "${ac_cv_header_linux_version_h+set}" = set; then
7643   echo "$as_me:$LINENO: checking for linux/version.h" >&5
7644 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7645 if test "${ac_cv_header_linux_version_h+set}" = set; then
7646   echo $ECHO_N "(cached) $ECHO_C" >&6
7647 fi
7648 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7649 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7650 else
7651   # Is the header compilable?
7652 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7653 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h.  */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h.  */
7660 $ac_includes_default
7661 #include <linux/version.h>
7662 _ACEOF
7663 rm -f conftest.$ac_objext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665   (eval $ac_compile) 2>conftest.er1
7666   ac_status=$?
7667   grep -v '^ *+' conftest.er1 >conftest.err
7668   rm -f conftest.er1
7669   cat conftest.err >&5
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); } &&
7672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; } &&
7678          { ac_try='test -s conftest.$ac_objext'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_header_compiler=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689 ac_header_compiler=no
7690 fi
7691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7693 echo "${ECHO_T}$ac_header_compiler" >&6
7694
7695 # Is the header present?
7696 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7697 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704 #include <linux/version.h>
7705 _ACEOF
7706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7708   ac_status=$?
7709   grep -v '^ *+' conftest.er1 >conftest.err
7710   rm -f conftest.er1
7711   cat conftest.err >&5
7712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713   (exit $ac_status); } >/dev/null; then
7714   if test -s conftest.err; then
7715     ac_cpp_err=$ac_c_preproc_warn_flag
7716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7717   else
7718     ac_cpp_err=
7719   fi
7720 else
7721   ac_cpp_err=yes
7722 fi
7723 if test -z "$ac_cpp_err"; then
7724   ac_header_preproc=yes
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729   ac_header_preproc=no
7730 fi
7731 rm -f conftest.err conftest.$ac_ext
7732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7733 echo "${ECHO_T}$ac_header_preproc" >&6
7734
7735 # So?  What about this header?
7736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7737   yes:no: )
7738     { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7739 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7740     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7741 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7742     ac_header_preproc=yes
7743     ;;
7744   no:yes:* )
7745     { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7746 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7747     { echo "$as_me:$LINENO: WARNING: linux/version.h:     check for missing prerequisite headers?" >&5
7748 echo "$as_me: WARNING: linux/version.h:     check for missing prerequisite headers?" >&2;}
7749     { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7750 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7751     { echo "$as_me:$LINENO: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&5
7752 echo "$as_me: WARNING: linux/version.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7753     { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7754 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7755     { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7756 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7757     (
7758       cat <<\_ASBOX
7759 ## ------------------------------------------ ##
7760 ## Report this to the AC_PACKAGE_NAME lists.  ##
7761 ## ------------------------------------------ ##
7762 _ASBOX
7763     ) |
7764       sed "s/^/$as_me: WARNING:     /" >&2
7765     ;;
7766 esac
7767 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7768 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7769 if test "${ac_cv_header_linux_version_h+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   ac_cv_header_linux_version_h=$ac_header_preproc
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7775 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7776
7777 fi
7778 if test $ac_cv_header_linux_version_h = yes; then
7779   msgformat=linux
7780 else
7781   msgformat=xopen
7782 fi
7783
7784
7785
7786                          sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7787       fi
7788             sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7789          $srcdir/po2tbl.sed.in > po2tbl.sed
7790    fi
7791
7792             if test "$PACKAGE" = "gettext"; then
7793      GT_NO="#NO#"
7794      GT_YES=
7795    else
7796      GT_NO=
7797      GT_YES="#YES#"
7798    fi
7799
7800
7801
7802    MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
7803
7804
7805       l=
7806
7807
7808             if test -f $srcdir/po/POTFILES.in; then
7809       test -d po || mkdir po
7810       if test "x$srcdir" != "x."; then
7811          if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7812             posrcprefix="$srcdir/"
7813          else
7814             posrcprefix="../$srcdir/"
7815          fi
7816       else
7817          posrcprefix="../"
7818       fi
7819       rm -f po/POTFILES
7820       sed -e "/^#/d" -e "/^\$/d" -e "s,.*,      $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7821          < $srcdir/po/POTFILES.in > po/POTFILES
7822    fi
7823
7824
7825 # Permit host specific settings.
7826 . ${srcdir}/configure.host
7827
7828
7829 # Find a good install program.  We prefer a C program (faster),
7830 # so one script is as good as another.  But avoid the broken or
7831 # incompatible versions:
7832 # SysV /etc/install, /usr/sbin/install
7833 # SunOS /usr/etc/install
7834 # IRIX /sbin/install
7835 # AIX /bin/install
7836 # AmigaOS /C/install, which installs bootblocks on floppy discs
7837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7840 # OS/2's system install, which has a completely different semantic
7841 # ./install, which can be erroneously created by make from ./install.sh.
7842 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7843 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7844 if test -z "$INSTALL"; then
7845 if test "${ac_cv_path_install+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853   # Account for people who put trailing slashes in PATH elements.
7854 case $as_dir/ in
7855   ./ | .// | /cC/* | \
7856   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7857   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7858   /usr/ucb/* ) ;;
7859   *)
7860     # OSF1 and SCO ODT 3.0 have their own names for install.
7861     # Don't use installbsd from OSF since it installs stuff as root
7862     # by default.
7863     for ac_prog in ginstall scoinst install; do
7864       for ac_exec_ext in '' $ac_executable_extensions; do
7865         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7866           if test $ac_prog = install &&
7867             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7868             # AIX install.  It has an incompatible calling convention.
7869             :
7870           elif test $ac_prog = install &&
7871             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7872             # program-specific install script used by HP pwplus--don't use.
7873             :
7874           else
7875             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7876             break 3
7877           fi
7878         fi
7879       done
7880     done
7881     ;;
7882 esac
7883 done
7884
7885
7886 fi
7887   if test "${ac_cv_path_install+set}" = set; then
7888     INSTALL=$ac_cv_path_install
7889   else
7890     # As a last resort, use the slow shell script.  We don't cache a
7891     # path for INSTALL within a source directory, because that will
7892     # break other packages using the cache if that directory is
7893     # removed, or if the path is relative.
7894     INSTALL=$ac_install_sh
7895   fi
7896 fi
7897 echo "$as_me:$LINENO: result: $INSTALL" >&5
7898 echo "${ECHO_T}$INSTALL" >&6
7899
7900 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7901 # It thinks the first close brace ends the variable substitution.
7902 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7903
7904 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7905
7906 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7907
7908
7909 BFD_HOST_64BIT_LONG=0
7910 BFD_HOST_LONG_LONG=0
7911 BFD_HOST_64_BIT_DEFINED=0
7912 BFD_HOST_64_BIT=
7913 BFD_HOST_U_64_BIT=
7914
7915 echo "$as_me:$LINENO: checking for long long" >&5
7916 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7917 if test "${bfd_cv_has_long_long+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926
7927 int
7928 main ()
7929 {
7930 unsigned long long ll = 18446744073709551615ULL;
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937   (eval $ac_compile) 2>conftest.er1
7938   ac_status=$?
7939   grep -v '^ *+' conftest.er1 >conftest.err
7940   rm -f conftest.er1
7941   cat conftest.err >&5
7942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943   (exit $ac_status); } &&
7944          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7946   (eval $ac_try) 2>&5
7947   ac_status=$?
7948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949   (exit $ac_status); }; } &&
7950          { ac_try='test -s conftest.$ac_objext'
7951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7952   (eval $ac_try) 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); }; }; then
7956   bfd_cv_has_long_long=yes
7957 else
7958   echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961 bfd_cv_has_long_long=no
7962 fi
7963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7964 fi
7965
7966 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
7967 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
7968 if test $bfd_cv_has_long_long = yes; then
7969   BFD_HOST_LONG_LONG=1
7970   echo "$as_me:$LINENO: checking size of long long" >&5
7971 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7972 if test "${ac_cv_sizeof_long_long+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
7976   cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 #include "confdefs.h"
7983 #include <sys/types.h>
7984
7985
7986 int
7987 main ()
7988 {
7989 switch (0) case 0: case (sizeof (long long) == $ac_size):;
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996   (eval $ac_compile) 2>conftest.er1
7997   ac_status=$?
7998   grep -v '^ *+' conftest.er1 >conftest.err
7999   rm -f conftest.er1
8000   cat conftest.err >&5
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); } &&
8003          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8005   (eval $ac_try) 2>&5
8006   ac_status=$?
8007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008   (exit $ac_status); }; } &&
8009          { ac_try='test -s conftest.$ac_objext'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; }; then
8015   ac_cv_sizeof_long_long=$ac_size
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 fi
8021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8022   if test x$ac_cv_sizeof_long_long != x ; then break; fi
8023 done
8024
8025 fi
8026
8027 if test x$ac_cv_sizeof_long_long = x ; then
8028   { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8029 echo "$as_me: error: cannot determine a size for long long" >&2;}
8030    { (exit 1); exit 1; }; }
8031 fi
8032 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8033 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8034
8035 cat >>confdefs.h <<_ACEOF
8036 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8037 _ACEOF
8038
8039
8040 fi
8041
8042 echo "$as_me:$LINENO: checking size of long" >&5
8043 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8044 if test "${ac_cv_sizeof_long+set}" = set; then
8045   echo $ECHO_N "(cached) $ECHO_C" >&6
8046 else
8047   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
8048   cat >conftest.$ac_ext <<_ACEOF
8049 /* confdefs.h.  */
8050 _ACEOF
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h.  */
8054 #include "confdefs.h"
8055 #include <sys/types.h>
8056
8057
8058 int
8059 main ()
8060 {
8061 switch (0) case 0: case (sizeof (long) == $ac_size):;
8062   ;
8063   return 0;
8064 }
8065 _ACEOF
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068   (eval $ac_compile) 2>conftest.er1
8069   ac_status=$?
8070   grep -v '^ *+' conftest.er1 >conftest.err
8071   rm -f conftest.er1
8072   cat conftest.err >&5
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); } &&
8075          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8077   (eval $ac_try) 2>&5
8078   ac_status=$?
8079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080   (exit $ac_status); }; } &&
8081          { ac_try='test -s conftest.$ac_objext'
8082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083   (eval $ac_try) 2>&5
8084   ac_status=$?
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); }; }; then
8087   ac_cv_sizeof_long=$ac_size
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 fi
8093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8094   if test x$ac_cv_sizeof_long != x ; then break; fi
8095 done
8096
8097 fi
8098
8099 if test x$ac_cv_sizeof_long = x ; then
8100   { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8101 echo "$as_me: error: cannot determine a size for long" >&2;}
8102    { (exit 1); exit 1; }; }
8103 fi
8104 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8105 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8106
8107 cat >>confdefs.h <<_ACEOF
8108 #define SIZEOF_LONG $ac_cv_sizeof_long
8109 _ACEOF
8110
8111
8112 if test "x${ac_cv_sizeof_long}" = "x8"; then
8113   host64=true
8114   BFD_HOST_64BIT_LONG=1
8115   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8116   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8117 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8118   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8119   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8120 fi
8121
8122 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8123   BFD_HOST_64_BIT_DEFINED=1
8124   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8125   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8126 fi
8127
8128
8129
8130
8131
8132
8133
8134 # Put a plausible default for CC_FOR_BUILD in Makefile.
8135 if test -z "$CC_FOR_BUILD"; then
8136   if test "x$cross_compiling" = "xno"; then
8137     CC_FOR_BUILD='$(CC)'
8138   else
8139     CC_FOR_BUILD=gcc
8140   fi
8141 fi
8142
8143 # Also set EXEEXT_FOR_BUILD.
8144 if test "x$cross_compiling" = "xno"; then
8145   EXEEXT_FOR_BUILD='$(EXEEXT)'
8146 else
8147   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8148 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8149 if test "${bfd_cv_build_exeext+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   rm -f conftest*
8153      echo 'int main () { return 0; }' > conftest.c
8154      bfd_cv_build_exeext=
8155      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8156      for file in conftest.*; do
8157        case $file in
8158        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8159        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8160        esac
8161      done
8162      rm -f conftest*
8163      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8164 fi
8165 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8166 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8167   EXEEXT_FOR_BUILD=""
8168   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8169 fi
8170
8171
8172
8173
8174
8175
8176
8177
8178 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8179 do
8180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8182   echo "$as_me:$LINENO: checking for $ac_header" >&5
8183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 fi
8187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8189 else
8190   # Is the header compilable?
8191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199 $ac_includes_default
8200 #include <$ac_header>
8201 _ACEOF
8202 rm -f conftest.$ac_objext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8204   (eval $ac_compile) 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } &&
8211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest.$ac_objext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_header_compiler=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_header_compiler=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8232 echo "${ECHO_T}$ac_header_compiler" >&6
8233
8234 # Is the header present?
8235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 #include <$ac_header>
8244 _ACEOF
8245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8247   ac_status=$?
8248   grep -v '^ *+' conftest.er1 >conftest.err
8249   rm -f conftest.er1
8250   cat conftest.err >&5
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); } >/dev/null; then
8253   if test -s conftest.err; then
8254     ac_cpp_err=$ac_c_preproc_warn_flag
8255     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8256   else
8257     ac_cpp_err=
8258   fi
8259 else
8260   ac_cpp_err=yes
8261 fi
8262 if test -z "$ac_cpp_err"; then
8263   ac_header_preproc=yes
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268   ac_header_preproc=no
8269 fi
8270 rm -f conftest.err conftest.$ac_ext
8271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8272 echo "${ECHO_T}$ac_header_preproc" >&6
8273
8274 # So?  What about this header?
8275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8276   yes:no: )
8277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8281     ac_header_preproc=yes
8282     ;;
8283   no:yes:* )
8284     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8285 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8286     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8287 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8288     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8289 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8290     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8291 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8294     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8295 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8296     (
8297       cat <<\_ASBOX
8298 ## ------------------------------------------ ##
8299 ## Report this to the AC_PACKAGE_NAME lists.  ##
8300 ## ------------------------------------------ ##
8301 _ASBOX
8302     ) |
8303       sed "s/^/$as_me: WARNING:     /" >&2
8304     ;;
8305 esac
8306 echo "$as_me:$LINENO: checking for $ac_header" >&5
8307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   eval "$as_ac_Header=\$ac_header_preproc"
8312 fi
8313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8315
8316 fi
8317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8318   cat >>confdefs.h <<_ACEOF
8319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8320 _ACEOF
8321
8322 fi
8323
8324 done
8325
8326
8327
8328
8329 for ac_header in fcntl.h sys/file.h sys/time.h
8330 do
8331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8333   echo "$as_me:$LINENO: checking for $ac_header" >&5
8334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 fi
8338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340 else
8341   # Is the header compilable?
8342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 $ac_includes_default
8351 #include <$ac_header>
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8355   (eval $ac_compile) 2>conftest.er1
8356   ac_status=$?
8357   grep -v '^ *+' conftest.er1 >conftest.err
8358   rm -f conftest.er1
8359   cat conftest.err >&5
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); } &&
8362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364   (eval $ac_try) 2>&5
8365   ac_status=$?
8366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367   (exit $ac_status); }; } &&
8368          { ac_try='test -s conftest.$ac_objext'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; }; then
8374   ac_header_compiler=yes
8375 else
8376   echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_header_compiler=no
8380 fi
8381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8383 echo "${ECHO_T}$ac_header_compiler" >&6
8384
8385 # Is the header present?
8386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8388 cat >conftest.$ac_ext <<_ACEOF
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394 #include <$ac_header>
8395 _ACEOF
8396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8398   ac_status=$?
8399   grep -v '^ *+' conftest.er1 >conftest.err
8400   rm -f conftest.er1
8401   cat conftest.err >&5
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); } >/dev/null; then
8404   if test -s conftest.err; then
8405     ac_cpp_err=$ac_c_preproc_warn_flag
8406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8407   else
8408     ac_cpp_err=
8409   fi
8410 else
8411   ac_cpp_err=yes
8412 fi
8413 if test -z "$ac_cpp_err"; then
8414   ac_header_preproc=yes
8415 else
8416   echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8418
8419   ac_header_preproc=no
8420 fi
8421 rm -f conftest.err conftest.$ac_ext
8422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8423 echo "${ECHO_T}$ac_header_preproc" >&6
8424
8425 # So?  What about this header?
8426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8427   yes:no: )
8428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8432     ac_header_preproc=yes
8433     ;;
8434   no:yes:* )
8435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8447     (
8448       cat <<\_ASBOX
8449 ## ------------------------------------------ ##
8450 ## Report this to the AC_PACKAGE_NAME lists.  ##
8451 ## ------------------------------------------ ##
8452 _ASBOX
8453     ) |
8454       sed "s/^/$as_me: WARNING:     /" >&2
8455     ;;
8456 esac
8457 echo "$as_me:$LINENO: checking for $ac_header" >&5
8458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   eval "$as_ac_Header=\$ac_header_preproc"
8463 fi
8464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8466
8467 fi
8468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8469   cat >>confdefs.h <<_ACEOF
8470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8471 _ACEOF
8472
8473 fi
8474
8475 done
8476
8477 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8478 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8479 if test "${ac_cv_header_time+set}" = set; then
8480   echo $ECHO_N "(cached) $ECHO_C" >&6
8481 else
8482   cat >conftest.$ac_ext <<_ACEOF
8483 /* confdefs.h.  */
8484 _ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h.  */
8488 #include <sys/types.h>
8489 #include <sys/time.h>
8490 #include <time.h>
8491
8492 int
8493 main ()
8494 {
8495 if ((struct tm *) 0)
8496 return 0;
8497   ;
8498   return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503   (eval $ac_compile) 2>conftest.er1
8504   ac_status=$?
8505   grep -v '^ *+' conftest.er1 >conftest.err
8506   rm -f conftest.er1
8507   cat conftest.err >&5
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); } &&
8510          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; } &&
8516          { ac_try='test -s conftest.$ac_objext'
8517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518   (eval $ac_try) 2>&5
8519   ac_status=$?
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); }; }; then
8522   ac_cv_header_time=yes
8523 else
8524   echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8526
8527 ac_cv_header_time=no
8528 fi
8529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8532 echo "${ECHO_T}$ac_cv_header_time" >&6
8533 if test $ac_cv_header_time = yes; then
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define TIME_WITH_SYS_TIME 1
8537 _ACEOF
8538
8539 fi
8540
8541
8542
8543
8544
8545
8546 ac_header_dirent=no
8547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8548   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8549 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8550 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8560 #include <sys/types.h>
8561 #include <$ac_hdr>
8562
8563 int
8564 main ()
8565 {
8566 if ((DIR *) 0)
8567 return 0;
8568   ;
8569   return 0;
8570 }
8571 _ACEOF
8572 rm -f conftest.$ac_objext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574   (eval $ac_compile) 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } &&
8581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583   (eval $ac_try) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); }; } &&
8587          { ac_try='test -s conftest.$ac_objext'
8588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589   (eval $ac_try) 2>&5
8590   ac_status=$?
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); }; }; then
8593   eval "$as_ac_Header=yes"
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8597
8598 eval "$as_ac_Header=no"
8599 fi
8600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8601 fi
8602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605   cat >>confdefs.h <<_ACEOF
8606 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8607 _ACEOF
8608
8609 ac_header_dirent=$ac_hdr; break
8610 fi
8611
8612 done
8613 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8614 if test $ac_header_dirent = dirent.h; then
8615   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8616 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8617 if test "${ac_cv_search_opendir+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   ac_func_search_save_LIBS=$LIBS
8621 ac_cv_search_opendir=no
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628
8629 /* Override any gcc2 internal prototype to avoid an error.  */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 /* We use char because int might match the return type of a gcc2
8634    builtin and then its argument prototype would still apply.  */
8635 char opendir ();
8636 int
8637 main ()
8638 {
8639 opendir ();
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646   (eval $ac_link) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; } &&
8659          { ac_try='test -s conftest$ac_exeext'
8660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661   (eval $ac_try) 2>&5
8662   ac_status=$?
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); }; }; then
8665   ac_cv_search_opendir="none required"
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8669
8670 fi
8671 rm -f conftest.err conftest.$ac_objext \
8672       conftest$ac_exeext conftest.$ac_ext
8673 if test "$ac_cv_search_opendir" = no; then
8674   for ac_lib in dir; do
8675     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8676     cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h.  */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h.  */
8682
8683 /* Override any gcc2 internal prototype to avoid an error.  */
8684 #ifdef __cplusplus
8685 extern "C"
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char opendir ();
8690 int
8691 main ()
8692 {
8693 opendir ();
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8700   (eval $ac_link) 2>conftest.er1
8701   ac_status=$?
8702   grep -v '^ *+' conftest.er1 >conftest.err
8703   rm -f conftest.er1
8704   cat conftest.err >&5
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); } &&
8707          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8709   (eval $ac_try) 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; } &&
8713          { ac_try='test -s conftest$ac_exeext'
8714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8715   (eval $ac_try) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); }; }; then
8719   ac_cv_search_opendir="-l$ac_lib"
8720 break
8721 else
8722   echo "$as_me: failed program was:" >&5
8723 sed 's/^/| /' conftest.$ac_ext >&5
8724
8725 fi
8726 rm -f conftest.err conftest.$ac_objext \
8727       conftest$ac_exeext conftest.$ac_ext
8728   done
8729 fi
8730 LIBS=$ac_func_search_save_LIBS
8731 fi
8732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8734 if test "$ac_cv_search_opendir" != no; then
8735   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8736
8737 fi
8738
8739 else
8740   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8742 if test "${ac_cv_search_opendir+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   ac_func_search_save_LIBS=$LIBS
8746 ac_cv_search_opendir=no
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753
8754 /* Override any gcc2 internal prototype to avoid an error.  */
8755 #ifdef __cplusplus
8756 extern "C"
8757 #endif
8758 /* We use char because int might match the return type of a gcc2
8759    builtin and then its argument prototype would still apply.  */
8760 char opendir ();
8761 int
8762 main ()
8763 {
8764 opendir ();
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771   (eval $ac_link) 2>conftest.er1
8772   ac_status=$?
8773   grep -v '^ *+' conftest.er1 >conftest.err
8774   rm -f conftest.er1
8775   cat conftest.err >&5
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; } &&
8784          { ac_try='test -s conftest$ac_exeext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_cv_search_opendir="none required"
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 fi
8796 rm -f conftest.err conftest.$ac_objext \
8797       conftest$ac_exeext conftest.$ac_ext
8798 if test "$ac_cv_search_opendir" = no; then
8799   for ac_lib in x; do
8800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8801     cat >conftest.$ac_ext <<_ACEOF
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807
8808 /* Override any gcc2 internal prototype to avoid an error.  */
8809 #ifdef __cplusplus
8810 extern "C"
8811 #endif
8812 /* We use char because int might match the return type of a gcc2
8813    builtin and then its argument prototype would still apply.  */
8814 char opendir ();
8815 int
8816 main ()
8817 {
8818 opendir ();
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825   (eval $ac_link) 2>conftest.er1
8826   ac_status=$?
8827   grep -v '^ *+' conftest.er1 >conftest.err
8828   rm -f conftest.er1
8829   cat conftest.err >&5
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); } &&
8832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834   (eval $ac_try) 2>&5
8835   ac_status=$?
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); }; } &&
8838          { ac_try='test -s conftest$ac_exeext'
8839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840   (eval $ac_try) 2>&5
8841   ac_status=$?
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); }; }; then
8844   ac_cv_search_opendir="-l$ac_lib"
8845 break
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850 fi
8851 rm -f conftest.err conftest.$ac_objext \
8852       conftest$ac_exeext conftest.$ac_ext
8853   done
8854 fi
8855 LIBS=$ac_func_search_save_LIBS
8856 fi
8857 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8858 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8859 if test "$ac_cv_search_opendir" != no; then
8860   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8861
8862 fi
8863
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872
8873 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
8874 do
8875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8876 echo "$as_me:$LINENO: checking for $ac_func" >&5
8877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8878 if eval "test \"\${$as_ac_var+set}\" = set"; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881   cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8889 #define $ac_func innocuous_$ac_func
8890
8891 /* System header to define __stub macros and hopefully few prototypes,
8892     which can conflict with char $ac_func (); below.
8893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894     <limits.h> exists even on freestanding compilers.  */
8895
8896 #ifdef __STDC__
8897 # include <limits.h>
8898 #else
8899 # include <assert.h>
8900 #endif
8901
8902 #undef $ac_func
8903
8904 /* Override any gcc2 internal prototype to avoid an error.  */
8905 #ifdef __cplusplus
8906 extern "C"
8907 {
8908 #endif
8909 /* We use char because int might match the return type of a gcc2
8910    builtin and then its argument prototype would still apply.  */
8911 char $ac_func ();
8912 /* The GNU C library defines this for functions which it implements
8913     to always fail with ENOSYS.  Some functions are actually named
8914     something starting with __ and the normal name is an alias.  */
8915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8916 choke me
8917 #else
8918 char (*f) () = $ac_func;
8919 #endif
8920 #ifdef __cplusplus
8921 }
8922 #endif
8923
8924 int
8925 main ()
8926 {
8927 return f != $ac_func;
8928   ;
8929   return 0;
8930 }
8931 _ACEOF
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934   (eval $ac_link) 2>conftest.er1
8935   ac_status=$?
8936   grep -v '^ *+' conftest.er1 >conftest.err
8937   rm -f conftest.er1
8938   cat conftest.err >&5
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); } &&
8941          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943   (eval $ac_try) 2>&5
8944   ac_status=$?
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); }; } &&
8947          { ac_try='test -s conftest$ac_exeext'
8948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949   (eval $ac_try) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   eval "$as_ac_var=yes"
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958 eval "$as_ac_var=no"
8959 fi
8960 rm -f conftest.err conftest.$ac_objext \
8961       conftest$ac_exeext conftest.$ac_ext
8962 fi
8963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8965 if test `eval echo '${'$as_ac_var'}'` = yes; then
8966   cat >>confdefs.h <<_ACEOF
8967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8968 _ACEOF
8969
8970 fi
8971 done
8972
8973
8974 for ac_func in strtoull
8975 do
8976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8977 echo "$as_me:$LINENO: checking for $ac_func" >&5
8978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8979 if eval "test \"\${$as_ac_var+set}\" = set"; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8990 #define $ac_func innocuous_$ac_func
8991
8992 /* System header to define __stub macros and hopefully few prototypes,
8993     which can conflict with char $ac_func (); below.
8994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995     <limits.h> exists even on freestanding compilers.  */
8996
8997 #ifdef __STDC__
8998 # include <limits.h>
8999 #else
9000 # include <assert.h>
9001 #endif
9002
9003 #undef $ac_func
9004
9005 /* Override any gcc2 internal prototype to avoid an error.  */
9006 #ifdef __cplusplus
9007 extern "C"
9008 {
9009 #endif
9010 /* We use char because int might match the return type of a gcc2
9011    builtin and then its argument prototype would still apply.  */
9012 char $ac_func ();
9013 /* The GNU C library defines this for functions which it implements
9014     to always fail with ENOSYS.  Some functions are actually named
9015     something starting with __ and the normal name is an alias.  */
9016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9017 choke me
9018 #else
9019 char (*f) () = $ac_func;
9020 #endif
9021 #ifdef __cplusplus
9022 }
9023 #endif
9024
9025 int
9026 main ()
9027 {
9028 return f != $ac_func;
9029   ;
9030   return 0;
9031 }
9032 _ACEOF
9033 rm -f conftest.$ac_objext conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035   (eval $ac_link) 2>conftest.er1
9036   ac_status=$?
9037   grep -v '^ *+' conftest.er1 >conftest.err
9038   rm -f conftest.er1
9039   cat conftest.err >&5
9040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); } &&
9042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044   (eval $ac_try) 2>&5
9045   ac_status=$?
9046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047   (exit $ac_status); }; } &&
9048          { ac_try='test -s conftest$ac_exeext'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; }; then
9054   eval "$as_ac_var=yes"
9055 else
9056   echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9058
9059 eval "$as_ac_var=no"
9060 fi
9061 rm -f conftest.err conftest.$ac_objext \
9062       conftest$ac_exeext conftest.$ac_ext
9063 fi
9064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9066 if test `eval echo '${'$as_ac_var'}'` = yes; then
9067   cat >>confdefs.h <<_ACEOF
9068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9069 _ACEOF
9070
9071 fi
9072 done
9073
9074
9075
9076 case "${host}" in
9077 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define USE_BINARY_FOPEN 1
9081 _ACEOF
9082  ;;
9083 esac
9084
9085 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9086 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9087 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096
9097 #include <stdio.h>
9098 #ifdef HAVE_STRING_H
9099 #include <string.h>
9100 #else
9101 #ifdef HAVE_STRINGS_H
9102 #include <strings.h>
9103 #endif
9104 #endif
9105 #ifdef HAVE_STDLIB_H
9106 #include <stdlib.h>
9107 #endif
9108 #ifdef HAVE_UNISTD_H
9109 #include <unistd.h>
9110 #endif
9111 int
9112 main ()
9113 {
9114 char *(*pfn) = (char *(*)) strstr
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121   (eval $ac_compile) 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
9134          { ac_try='test -s conftest.$ac_objext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   bfd_cv_decl_needed_strstr=no
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 bfd_cv_decl_needed_strstr=yes
9146 fi
9147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9148 fi
9149
9150 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9151 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9152 if test $bfd_cv_decl_needed_strstr = yes; then
9153
9154 cat >>confdefs.h <<\_ACEOF
9155 #define NEED_DECLARATION_STRSTR 1
9156 _ACEOF
9157
9158 fi
9159
9160 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9161 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9162 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h.  */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h.  */
9171
9172 #include <stdio.h>
9173 #ifdef HAVE_STRING_H
9174 #include <string.h>
9175 #else
9176 #ifdef HAVE_STRINGS_H
9177 #include <strings.h>
9178 #endif
9179 #endif
9180 #ifdef HAVE_STDLIB_H
9181 #include <stdlib.h>
9182 #endif
9183 #ifdef HAVE_UNISTD_H
9184 #include <unistd.h>
9185 #endif
9186 int
9187 main ()
9188 {
9189 char *(*pfn) = (char *(*)) malloc
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9196   (eval $ac_compile) 2>conftest.er1
9197   ac_status=$?
9198   grep -v '^ *+' conftest.er1 >conftest.err
9199   rm -f conftest.er1
9200   cat conftest.err >&5
9201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202   (exit $ac_status); } &&
9203          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205   (eval $ac_try) 2>&5
9206   ac_status=$?
9207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208   (exit $ac_status); }; } &&
9209          { ac_try='test -s conftest.$ac_objext'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; }; then
9215   bfd_cv_decl_needed_malloc=no
9216 else
9217   echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 bfd_cv_decl_needed_malloc=yes
9221 fi
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9223 fi
9224
9225 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9226 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9227 if test $bfd_cv_decl_needed_malloc = yes; then
9228
9229 cat >>confdefs.h <<\_ACEOF
9230 #define NEED_DECLARATION_MALLOC 1
9231 _ACEOF
9232
9233 fi
9234
9235 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9236 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9237 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9238   echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240   cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h.  */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h.  */
9246
9247 #include <stdio.h>
9248 #ifdef HAVE_STRING_H
9249 #include <string.h>
9250 #else
9251 #ifdef HAVE_STRINGS_H
9252 #include <strings.h>
9253 #endif
9254 #endif
9255 #ifdef HAVE_STDLIB_H
9256 #include <stdlib.h>
9257 #endif
9258 #ifdef HAVE_UNISTD_H
9259 #include <unistd.h>
9260 #endif
9261 int
9262 main ()
9263 {
9264 char *(*pfn) = (char *(*)) realloc
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9271   (eval $ac_compile) 2>conftest.er1
9272   ac_status=$?
9273   grep -v '^ *+' conftest.er1 >conftest.err
9274   rm -f conftest.er1
9275   cat conftest.err >&5
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); } &&
9278          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest.$ac_objext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   bfd_cv_decl_needed_realloc=no
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 bfd_cv_decl_needed_realloc=yes
9296 fi
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 fi
9299
9300 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9301 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9302 if test $bfd_cv_decl_needed_realloc = yes; then
9303
9304 cat >>confdefs.h <<\_ACEOF
9305 #define NEED_DECLARATION_REALLOC 1
9306 _ACEOF
9307
9308 fi
9309
9310 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9311 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9312 if test "${bfd_cv_decl_needed_free+set}" = set; then
9313   echo $ECHO_N "(cached) $ECHO_C" >&6
9314 else
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
9322 #include <stdio.h>
9323 #ifdef HAVE_STRING_H
9324 #include <string.h>
9325 #else
9326 #ifdef HAVE_STRINGS_H
9327 #include <strings.h>
9328 #endif
9329 #endif
9330 #ifdef HAVE_STDLIB_H
9331 #include <stdlib.h>
9332 #endif
9333 #ifdef HAVE_UNISTD_H
9334 #include <unistd.h>
9335 #endif
9336 int
9337 main ()
9338 {
9339 char *(*pfn) = (char *(*)) free
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346   (eval $ac_compile) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355   (eval $ac_try) 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; } &&
9359          { ac_try='test -s conftest.$ac_objext'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; }; then
9365   bfd_cv_decl_needed_free=no
9366 else
9367   echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9369
9370 bfd_cv_decl_needed_free=yes
9371 fi
9372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9373 fi
9374
9375 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9376 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9377 if test $bfd_cv_decl_needed_free = yes; then
9378
9379 cat >>confdefs.h <<\_ACEOF
9380 #define NEED_DECLARATION_FREE 1
9381 _ACEOF
9382
9383 fi
9384
9385 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9386 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9387 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 #include <stdio.h>
9398 #ifdef HAVE_STRING_H
9399 #include <string.h>
9400 #else
9401 #ifdef HAVE_STRINGS_H
9402 #include <strings.h>
9403 #endif
9404 #endif
9405 #ifdef HAVE_STDLIB_H
9406 #include <stdlib.h>
9407 #endif
9408 #ifdef HAVE_UNISTD_H
9409 #include <unistd.h>
9410 #endif
9411 int
9412 main ()
9413 {
9414 char *(*pfn) = (char *(*)) getenv
9415   ;
9416   return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421   (eval $ac_compile) 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } &&
9428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430   (eval $ac_try) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); }; } &&
9434          { ac_try='test -s conftest.$ac_objext'
9435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436   (eval $ac_try) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); }; }; then
9440   bfd_cv_decl_needed_getenv=no
9441 else
9442   echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 bfd_cv_decl_needed_getenv=yes
9446 fi
9447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449
9450 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9451 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9452 if test $bfd_cv_decl_needed_getenv = yes; then
9453
9454 cat >>confdefs.h <<\_ACEOF
9455 #define NEED_DECLARATION_GETENV 1
9456 _ACEOF
9457
9458 fi
9459
9460
9461 # If we are configured native, pick a core file support file.
9462 COREFILE=
9463 COREFLAG=
9464 TRAD_HEADER=
9465 if test "${target}" = "${host}"; then
9466   case "${host}" in
9467   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9468         COREFILE=''
9469         ;;
9470   alpha*-*-linux-gnu*)
9471         COREFILE=trad-core.lo
9472         TRAD_HEADER='"hosts/alphalinux.h"'
9473         ;;
9474   alpha*-*-netbsd* | alpha*-*-openbsd*)
9475         COREFILE=netbsd-core.lo
9476         ;;
9477   alpha*-*-*)           COREFILE=osf-core.lo ;;
9478   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9479                         COREFILE='' ;;
9480   arm-*-netbsd*)        COREFILE=netbsd-core.lo ;;
9481   arm-*-riscix)         COREFILE=trad-core.lo ;;
9482   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
9483   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
9484   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
9485   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
9486                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9487   hppa*-*-netbsd* | hppa*-*-openbsd*)
9488         COREFILE=netbsd-core.lo
9489         ;;
9490
9491   i370-*-*)
9492         COREFILE=trad-core.lo
9493         TRAD_HEADER='"hosts/i370linux.h"'
9494         ;;
9495
9496   i[3-7]86-sequent-bsd*)
9497         COREFILE=trad-core.lo
9498         TRAD_HEADER='"hosts/symmetry.h"'
9499         ;;
9500   i[3-7]86-sequent-sysv4*) ;;
9501   i[3-7]86-sequent-sysv*)
9502         COREFILE=trad-core.lo
9503         TRAD_HEADER='"hosts/symmetry.h"'
9504         ;;
9505   i[3-7]86-*-bsdi)
9506         COREFILE=
9507         ;;
9508   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*)
9509         COREFILE=trad-core.lo
9510         TRAD_HEADER='"hosts/i386bsd.h"'
9511         ;;
9512   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9513         COREFILE=''
9514         TRAD_HEADER='"hosts/i386bsd.h"'
9515         ;;
9516   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9517         COREFILE=netbsd-core.lo
9518         ;;
9519   i[3-7]86-esix-sysv3*)
9520         COREFILE=trad-core.lo
9521         TRAD_HEADER='"hosts/esix.h"'
9522         ;;
9523   i[3-7]86-*-sco3.2v5*)
9524         COREFILE=sco5-core.lo
9525         ;;
9526   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9527         COREFILE=trad-core.lo
9528         TRAD_HEADER='"hosts/i386sco.h"'
9529         ;;
9530   i[3-7]86-*-mach3*)
9531         COREFILE=trad-core.lo
9532         TRAD_HEADER='"hosts/i386mach3.h"'
9533         ;;
9534   i[3-7]86-*-linux-gnu*)
9535         COREFILE=trad-core.lo
9536         TRAD_HEADER='"hosts/i386linux.h"'
9537         ;;
9538   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
9539   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
9540   i860-*-mach3* | i860-*-osf1*)
9541         COREFILE=trad-core.lo
9542         TRAD_HEADER='"hosts/i860mach3.h"'
9543         ;;
9544   mips-*-netbsd* | mips*-*-openbsd*)
9545         COREFILE=netbsd-core.lo
9546         ;;
9547   mips-dec-*)
9548         COREFILE=trad-core.lo
9549         TRAD_HEADER='"hosts/decstation.h"'
9550         ;;
9551   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
9552   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
9553   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
9554   mips-*-sysv4*)        ;;
9555   mips-*-sysv* | mips-*-riscos*)
9556         COREFILE=trad-core.lo
9557         TRAD_HEADER='"hosts/riscos.h"'
9558         ;;
9559   mips-sony-bsd*)
9560         COREFILE=trad-core.lo
9561         TRAD_HEADER='"hosts/news-mips.h"'
9562         ;;
9563   m68*-bull*-sysv*)
9564         COREFILE=trad-core.lo
9565         TRAD_HEADER='"hosts/dpx2.h"'
9566         ;;
9567   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
9568   m68*-hp-bsd*)
9569         COREFILE=trad-core.lo
9570         TRAD_HEADER='"hosts/hp300bsd.h"'
9571         ;;
9572   m68*-*-linux-gnu*)
9573         COREFILE=trad-core.lo
9574         TRAD_HEADER='"hosts/m68klinux.h"'
9575         ;;
9576   m68*-motorola-sysv*)
9577         COREFILE=trad-core.lo
9578         TRAD_HEADER='"hosts/delta68.h"'
9579         ;;
9580   m68*-sony-*)
9581         COREFILE=trad-core.lo
9582         TRAD_HEADER='"hosts/news.h"'
9583         ;;
9584   m68*-*-netbsd* | m68*-*-openbsd*)
9585         COREFILE=netbsd-core.lo
9586         ;;
9587   m68*-apple-aux*)
9588         COREFILE=trad-core.lo
9589         TRAD_HEADER='"hosts/m68kaux.h"'
9590         ;;
9591   m88*-*-sysv4*)
9592         ;;
9593   m88*-motorola-sysv*)
9594         COREFILE=ptrace-core.lo
9595         ;;
9596   m88*-*-mach3*)
9597         COREFILE=trad-core.lo
9598         TRAD_HEADER='"hosts/m88kmach3.h"'
9599         ;;
9600   m88*-*-openbsd*)
9601         COREFILE=netbsd-core.lo
9602         ;;
9603   ns32k-pc532-mach)
9604         COREFILE=trad-core.lo
9605         TRAD_HEADER='"hosts/pc532mach.h"'
9606         ;;
9607   ns32k-*-netbsd* | ns32k-*-openbsd*)
9608         COREFILE=netbsd-core.lo
9609         ;;
9610   rs6000-*-lynx*)
9611         COREFILE=lynx-core.lo
9612         ;;
9613   rs6000-*-aix5.* | powerpc-*-aix5.*)
9614         COREFILE=rs6000-core.lo
9615         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9616         ;;
9617   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
9618         COREFILE=rs6000-core.lo
9619         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
9620         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9621         # have c_impl as a member of struct core_dumpx
9622         echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9623 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9624         cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630 #include <core.h>
9631 int
9632 main ()
9633 {
9634 struct core_dumpx c; c.c_impl = 0;
9635   ;
9636   return 0;
9637 }
9638 _ACEOF
9639 rm -f conftest.$ac_objext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641   (eval $ac_compile) 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } &&
9648          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650   (eval $ac_try) 2>&5
9651   ac_status=$?
9652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653   (exit $ac_status); }; } &&
9654          { ac_try='test -s conftest.$ac_objext'
9655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656   (eval $ac_try) 2>&5
9657   ac_status=$?
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); }; }; then
9660
9661 cat >>confdefs.h <<\_ACEOF
9662 #define HAVE_ST_C_IMPL 1
9663 _ACEOF
9664
9665           echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9673 fi
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675         ;;
9676   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
9677   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
9678   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
9679   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
9680   powerpc-*-beos*)      ;;
9681   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9682                         COREFILE='' ;;
9683   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
9684   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
9685   s390*-*-*)            COREFILE=trad-core.lo ;;
9686   sh*-*-netbsd*)        COREFILE=netbsd-core.lo ;;
9687   sparc-*-netbsd* | sparc*-*-openbsd*)
9688         COREFILE=netbsd-core.lo
9689         ;;
9690   tahoe-*-*)
9691         COREFILE=trad-core.lo
9692         TRAD_HEADER='"hosts/tahoe.h"'
9693         ;;
9694   vax-*-netbsd* | vax-*-openbsd*)
9695         COREFILE=netbsd-core.lo
9696         ;;
9697   vax-*-ultrix2*)
9698         COREFILE=trad-core.lo
9699         TRAD_HEADER='"hosts/vaxult2.h"'
9700         ;;
9701   vax-*-ultrix*)
9702         COREFILE=trad-core.lo
9703         TRAD_HEADER='"hosts/vaxult2.h"'
9704         ;;
9705   vax-*-linux-gnu*)
9706         COREFILE=trad-core.lo
9707         TRAD_HEADER='"hosts/vaxlinux.h"'
9708         ;;
9709   vax-*-*)
9710         COREFILE=trad-core.lo
9711         TRAD_HEADER='"hosts/vaxbsd.h"'
9712         ;;
9713   x86_64-*-netbsd* | x86_64-*-openbsd*)
9714         COREFILE=netbsd-core.lo
9715         ;;
9716   esac
9717
9718   case "$COREFILE" in
9719   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
9720   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
9721   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
9722   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
9723   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
9724   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
9725   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
9726   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
9727   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
9728   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9729   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9730   esac
9731
9732   # ELF corefile support has several flavors, but all of
9733   # them use something called <sys/procfs.h>
9734
9735 for ac_header in sys/procfs.h
9736 do
9737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9739   echo "$as_me:$LINENO: checking for $ac_header" >&5
9740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 fi
9744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9746 else
9747   # Is the header compilable?
9748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h.  */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h.  */
9756 $ac_includes_default
9757 #include <$ac_header>
9758 _ACEOF
9759 rm -f conftest.$ac_objext
9760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9761   (eval $ac_compile) 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } &&
9768          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770   (eval $ac_try) 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; } &&
9774          { ac_try='test -s conftest.$ac_objext'
9775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776   (eval $ac_try) 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }; then
9780   ac_header_compiler=yes
9781 else
9782   echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ac_header_compiler=no
9786 fi
9787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6
9790
9791 # Is the header present?
9792 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h.  */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h.  */
9800 #include <$ac_header>
9801 _ACEOF
9802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9804   ac_status=$?
9805   grep -v '^ *+' conftest.er1 >conftest.err
9806   rm -f conftest.er1
9807   cat conftest.err >&5
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); } >/dev/null; then
9810   if test -s conftest.err; then
9811     ac_cpp_err=$ac_c_preproc_warn_flag
9812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9813   else
9814     ac_cpp_err=
9815   fi
9816 else
9817   ac_cpp_err=yes
9818 fi
9819 if test -z "$ac_cpp_err"; then
9820   ac_header_preproc=yes
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825   ac_header_preproc=no
9826 fi
9827 rm -f conftest.err conftest.$ac_ext
9828 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9829 echo "${ECHO_T}$ac_header_preproc" >&6
9830
9831 # So?  What about this header?
9832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9833   yes:no: )
9834     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9838     ac_header_preproc=yes
9839     ;;
9840   no:yes:* )
9841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9843     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9844 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9845     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9847     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9848 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9851     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9853     (
9854       cat <<\_ASBOX
9855 ## ------------------------------------------ ##
9856 ## Report this to the AC_PACKAGE_NAME lists.  ##
9857 ## ------------------------------------------ ##
9858 _ASBOX
9859     ) |
9860       sed "s/^/$as_me: WARNING:     /" >&2
9861     ;;
9862 esac
9863 echo "$as_me:$LINENO: checking for $ac_header" >&5
9864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9866   echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868   eval "$as_ac_Header=\$ac_header_preproc"
9869 fi
9870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9872
9873 fi
9874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9875   cat >>confdefs.h <<_ACEOF
9876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9877 _ACEOF
9878
9879 fi
9880
9881 done
9882
9883   if test "$ac_cv_header_sys_procfs_h" = yes; then
9884     echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9885 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9886  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895
9896 #define _SYSCALL32
9897 #include <sys/procfs.h>
9898 int
9899 main ()
9900 {
9901 prstatus_t avar
9902   ;
9903   return 0;
9904 }
9905 _ACEOF
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908   (eval $ac_compile) 2>conftest.er1
9909   ac_status=$?
9910   grep -v '^ *+' conftest.er1 >conftest.err
9911   rm -f conftest.er1
9912   cat conftest.err >&5
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); } &&
9915          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   bfd_cv_have_sys_procfs_type_prstatus_t=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 bfd_cv_have_sys_procfs_type_prstatus_t=no
9933
9934 fi
9935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9936 fi
9937
9938  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
9939
9940 cat >>confdefs.h <<\_ACEOF
9941 #define HAVE_PRSTATUS_T 1
9942 _ACEOF
9943
9944  fi
9945  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9946 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
9947
9948     echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9949 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9950  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9951   echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959
9960 #define _SYSCALL32
9961 #include <sys/procfs.h>
9962 int
9963 main ()
9964 {
9965 prstatus32_t avar
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972   (eval $ac_compile) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981   (eval $ac_try) 2>&5
9982   ac_status=$?
9983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984   (exit $ac_status); }; } &&
9985          { ac_try='test -s conftest.$ac_objext'
9986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987   (eval $ac_try) 2>&5
9988   ac_status=$?
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); }; }; then
9991   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9992 else
9993   echo "$as_me: failed program was:" >&5
9994 sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 bfd_cv_have_sys_procfs_type_prstatus32_t=no
9997
9998 fi
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 fi
10001
10002  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10003
10004 cat >>confdefs.h <<\_ACEOF
10005 #define HAVE_PRSTATUS32_T 1
10006 _ACEOF
10007
10008  fi
10009  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10010 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10011
10012     echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10013 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10014  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10015   echo $ECHO_N "(cached) $ECHO_C" >&6
10016 else
10017   cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h.  */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h.  */
10023
10024 #define _SYSCALL32
10025 #include <sys/procfs.h>
10026 int
10027 main ()
10028 {
10029 prstatus_t avar; void* aref = (void*) &avar.pr_who
10030   ;
10031   return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036   (eval $ac_compile) 2>conftest.er1
10037   ac_status=$?
10038   grep -v '^ *+' conftest.er1 >conftest.err
10039   rm -f conftest.er1
10040   cat conftest.err >&5
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); } &&
10043          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045   (eval $ac_try) 2>&5
10046   ac_status=$?
10047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048   (exit $ac_status); }; } &&
10049          { ac_try='test -s conftest.$ac_objext'
10050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051   (eval $ac_try) 2>&5
10052   ac_status=$?
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); }; }; then
10055   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10061
10062 fi
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064 fi
10065
10066  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10067
10068 cat >>confdefs.h <<\_ACEOF
10069 #define HAVE_PRSTATUS_T_PR_WHO 1
10070 _ACEOF
10071
10072  fi
10073  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10074 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10075
10076     echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10077 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10078  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10079   echo $ECHO_N "(cached) $ECHO_C" >&6
10080 else
10081   cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087
10088 #define _SYSCALL32
10089 #include <sys/procfs.h>
10090 int
10091 main ()
10092 {
10093 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10094   ;
10095   return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100   (eval $ac_compile) 2>conftest.er1
10101   ac_status=$?
10102   grep -v '^ *+' conftest.er1 >conftest.err
10103   rm -f conftest.er1
10104   cat conftest.err >&5
10105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106   (exit $ac_status); } &&
10107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109   (eval $ac_try) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); }; } &&
10113          { ac_try='test -s conftest.$ac_objext'
10114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10115   (eval $ac_try) 2>&5
10116   ac_status=$?
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); }; }; then
10119   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10125
10126 fi
10127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10128 fi
10129
10130  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10131
10132 cat >>confdefs.h <<\_ACEOF
10133 #define HAVE_PRSTATUS32_T_PR_WHO 1
10134 _ACEOF
10135
10136  fi
10137  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10138 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10139
10140     echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10141 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10142  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10143   echo $ECHO_N "(cached) $ECHO_C" >&6
10144 else
10145   cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151
10152 #define _SYSCALL32
10153 #include <sys/procfs.h>
10154 int
10155 main ()
10156 {
10157 pstatus_t avar
10158   ;
10159   return 0;
10160 }
10161 _ACEOF
10162 rm -f conftest.$ac_objext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10164   (eval $ac_compile) 2>conftest.er1
10165   ac_status=$?
10166   grep -v '^ *+' conftest.er1 >conftest.err
10167   rm -f conftest.er1
10168   cat conftest.err >&5
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); } &&
10171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173   (eval $ac_try) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; } &&
10177          { ac_try='test -s conftest.$ac_objext'
10178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179   (eval $ac_try) 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   bfd_cv_have_sys_procfs_type_pstatus_t=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 bfd_cv_have_sys_procfs_type_pstatus_t=no
10189
10190 fi
10191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10192 fi
10193
10194  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10195
10196 cat >>confdefs.h <<\_ACEOF
10197 #define HAVE_PSTATUS_T 1
10198 _ACEOF
10199
10200  fi
10201  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10202 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10203
10204     echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10205 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10206  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10207   echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209   cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h.  */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h.  */
10215
10216 #define _SYSCALL32
10217 #include <sys/procfs.h>
10218 int
10219 main ()
10220 {
10221 pxstatus_t avar
10222   ;
10223   return 0;
10224 }
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228   (eval $ac_compile) 2>conftest.er1
10229   ac_status=$?
10230   grep -v '^ *+' conftest.er1 >conftest.err
10231   rm -f conftest.er1
10232   cat conftest.err >&5
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; } &&
10241          { ac_try='test -s conftest.$ac_objext'
10242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243   (eval $ac_try) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); }; }; then
10247   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10248 else
10249   echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10251
10252 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10253
10254 fi
10255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10256 fi
10257
10258  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_PXSTATUS_T 1
10262 _ACEOF
10263
10264  fi
10265  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10266 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10267
10268     echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10269 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10270  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   cat >conftest.$ac_ext <<_ACEOF
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279
10280 #define _SYSCALL32
10281 #include <sys/procfs.h>
10282 int
10283 main ()
10284 {
10285 pstatus32_t avar
10286   ;
10287   return 0;
10288 }
10289 _ACEOF
10290 rm -f conftest.$ac_objext
10291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10292   (eval $ac_compile) 2>conftest.er1
10293   ac_status=$?
10294   grep -v '^ *+' conftest.er1 >conftest.err
10295   rm -f conftest.er1
10296   cat conftest.err >&5
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } &&
10299          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301   (eval $ac_try) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; } &&
10305          { ac_try='test -s conftest.$ac_objext'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10317
10318 fi
10319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320 fi
10321
10322  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10323
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_PSTATUS32_T 1
10326 _ACEOF
10327
10328  fi
10329  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10330 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10331
10332     echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10333 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10334  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h.  */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h.  */
10343
10344 #define _SYSCALL32
10345 #include <sys/procfs.h>
10346 int
10347 main ()
10348 {
10349 prpsinfo_t avar
10350   ;
10351   return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext
10355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10356   (eval $ac_compile) 2>conftest.er1
10357   ac_status=$?
10358   grep -v '^ *+' conftest.er1 >conftest.err
10359   rm -f conftest.er1
10360   cat conftest.err >&5
10361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362   (exit $ac_status); } &&
10363          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365   (eval $ac_try) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; } &&
10369          { ac_try='test -s conftest.$ac_objext'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10381
10382 fi
10383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10384 fi
10385
10386  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10387
10388 cat >>confdefs.h <<\_ACEOF
10389 #define HAVE_PRPSINFO_T 1
10390 _ACEOF
10391
10392  fi
10393  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10394 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10395
10396     echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10397 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10398  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10399   echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401   cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h.  */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h.  */
10407
10408 #define _SYSCALL32
10409 #include <sys/procfs.h>
10410 int
10411 main ()
10412 {
10413 prpsinfo32_t avar
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext
10419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10420   (eval $ac_compile) 2>conftest.er1
10421   ac_status=$?
10422   grep -v '^ *+' conftest.er1 >conftest.err
10423   rm -f conftest.er1
10424   cat conftest.err >&5
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); } &&
10427          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; } &&
10433          { ac_try='test -s conftest.$ac_objext'
10434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435   (eval $ac_try) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); }; }; then
10439   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10440 else
10441   echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10445
10446 fi
10447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10448 fi
10449
10450  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10451
10452 cat >>confdefs.h <<\_ACEOF
10453 #define HAVE_PRPSINFO32_T 1
10454 _ACEOF
10455
10456  fi
10457  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10458 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10459
10460     echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10461 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10462  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h.  */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h.  */
10471
10472 #define _SYSCALL32
10473 #include <sys/procfs.h>
10474 int
10475 main ()
10476 {
10477 psinfo_t avar
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 rm -f conftest.$ac_objext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10484   (eval $ac_compile) 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } &&
10491          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493   (eval $ac_try) 2>&5
10494   ac_status=$?
10495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496   (exit $ac_status); }; } &&
10497          { ac_try='test -s conftest.$ac_objext'
10498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499   (eval $ac_try) 2>&5
10500   ac_status=$?
10501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502   (exit $ac_status); }; }; then
10503   bfd_cv_have_sys_procfs_type_psinfo_t=yes
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 bfd_cv_have_sys_procfs_type_psinfo_t=no
10509
10510 fi
10511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10512 fi
10513
10514  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10515
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_PSINFO_T 1
10518 _ACEOF
10519
10520  fi
10521  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10522 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10523
10524     echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10525 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10526  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h.  */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h.  */
10535
10536 #define _SYSCALL32
10537 #include <sys/procfs.h>
10538 int
10539 main ()
10540 {
10541 psinfo32_t avar
10542   ;
10543   return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10548   (eval $ac_compile) 2>conftest.er1
10549   ac_status=$?
10550   grep -v '^ *+' conftest.er1 >conftest.err
10551   rm -f conftest.er1
10552   cat conftest.err >&5
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; } &&
10561          { ac_try='test -s conftest.$ac_objext'
10562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563   (eval $ac_try) 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; }; then
10567   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10573
10574 fi
10575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576 fi
10577
10578  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10579
10580 cat >>confdefs.h <<\_ACEOF
10581 #define HAVE_PSINFO32_T 1
10582 _ACEOF
10583
10584  fi
10585  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10586 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10587
10588     echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10589 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10590  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10591   echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593   cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599
10600 #define _SYSCALL32
10601 #include <sys/procfs.h>
10602 int
10603 main ()
10604 {
10605 lwpstatus_t avar
10606   ;
10607   return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext
10611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10612   (eval $ac_compile) 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621   (eval $ac_try) 2>&5
10622   ac_status=$?
10623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624   (exit $ac_status); }; } &&
10625          { ac_try='test -s conftest.$ac_objext'
10626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627   (eval $ac_try) 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10637
10638 fi
10639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10640 fi
10641
10642  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
10643
10644 cat >>confdefs.h <<\_ACEOF
10645 #define HAVE_LWPSTATUS_T 1
10646 _ACEOF
10647
10648  fi
10649  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10650 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
10651
10652     echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10653 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10654  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663
10664 #define _SYSCALL32
10665 #include <sys/procfs.h>
10666 int
10667 main ()
10668 {
10669 lwpxstatus_t avar
10670   ;
10671   return 0;
10672 }
10673 _ACEOF
10674 rm -f conftest.$ac_objext
10675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10676   (eval $ac_compile) 2>conftest.er1
10677   ac_status=$?
10678   grep -v '^ *+' conftest.er1 >conftest.err
10679   rm -f conftest.er1
10680   cat conftest.err >&5
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } &&
10683          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685   (eval $ac_try) 2>&5
10686   ac_status=$?
10687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688   (exit $ac_status); }; } &&
10689          { ac_try='test -s conftest.$ac_objext'
10690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691   (eval $ac_try) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); }; }; then
10695   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10696 else
10697   echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10701
10702 fi
10703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10704 fi
10705
10706  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
10707
10708 cat >>confdefs.h <<\_ACEOF
10709 #define HAVE_LWPXSTATUS_T 1
10710 _ACEOF
10711
10712  fi
10713  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10714 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
10715
10716     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10717 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10718  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10719   echo $ECHO_N "(cached) $ECHO_C" >&6
10720 else
10721   cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727
10728 #define _SYSCALL32
10729 #include <sys/procfs.h>
10730 int
10731 main ()
10732 {
10733 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 rm -f conftest.$ac_objext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10740   (eval $ac_compile) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } &&
10747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749   (eval $ac_try) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; } &&
10753          { ac_try='test -s conftest.$ac_objext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10765
10766 fi
10767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10768 fi
10769
10770  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
10771
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
10774 _ACEOF
10775
10776  fi
10777  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10778 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
10779
10780     echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10781 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10782  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10783   echo $ECHO_N "(cached) $ECHO_C" >&6
10784 else
10785   cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791
10792 #define _SYSCALL32
10793 #include <sys/procfs.h>
10794 int
10795 main ()
10796 {
10797 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
10798   ;
10799   return 0;
10800 }
10801 _ACEOF
10802 rm -f conftest.$ac_objext
10803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10804   (eval $ac_compile) 2>conftest.er1
10805   ac_status=$?
10806   grep -v '^ *+' conftest.er1 >conftest.err
10807   rm -f conftest.er1
10808   cat conftest.err >&5
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); } &&
10811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813   (eval $ac_try) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; } &&
10817          { ac_try='test -s conftest.$ac_objext'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; }; then
10823   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10824 else
10825   echo "$as_me: failed program was:" >&5
10826 sed 's/^/| /' conftest.$ac_ext >&5
10827
10828 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10829
10830 fi
10831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10832 fi
10833
10834  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
10835
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_LWPSTATUS_T_PR_REG 1
10838 _ACEOF
10839
10840  fi
10841  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10842 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
10843
10844     echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10845 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10846  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10847   echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849   cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855
10856 #define _SYSCALL32
10857 #include <sys/procfs.h>
10858 int
10859 main ()
10860 {
10861 win32_pstatus_t avar
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10868   (eval $ac_compile) 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } &&
10875          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
10881          { ac_try='test -s conftest.$ac_objext'
10882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883   (eval $ac_try) 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10893
10894 fi
10895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10896 fi
10897
10898  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
10899
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_WIN32_PSTATUS_T 1
10902 _ACEOF
10903
10904  fi
10905  echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10906 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
10907
10908   fi
10909 fi
10910
10911
10912 if test -n "$TRAD_HEADER"; then
10913
10914 cat >>confdefs.h <<_ACEOF
10915 #define TRAD_HEADER $TRAD_HEADER
10916 _ACEOF
10917
10918 fi
10919
10920 # Horrible hacks to build DLLs on Windows.
10921 WIN32LDFLAGS=
10922 WIN32LIBADD=
10923 case "${host}" in
10924 *-*-cygwin*)
10925   if test "$enable_shared" = "yes"; then
10926     WIN32LDFLAGS="-no-undefined"
10927     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10928   fi
10929   ;;
10930 *-*-linux*)
10931   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10932   # libiberty.a.
10933   case "${host}" in
10934   mips*-*-linux*)
10935     # Linux/MIPS uses PIC by default.
10936     if test "$enable_shared" = "yes"; then
10937       WIN32LIBADD="-L../libiberty -liberty"
10938     fi
10939     ;;
10940   *)
10941     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
10942     if test -n "$x"; then
10943       WIN32LIBADD="-L../libiberty/pic -liberty"
10944     fi
10945   ;;
10946   esac
10947   ;;
10948 esac
10949
10950
10951
10952 # target stuff:
10953
10954 # Canonicalize the secondary target names.
10955 if test -n "$enable_targets" ; then
10956     for targ in `echo $enable_targets | sed 's/,/ /g'`
10957     do
10958         result=`$ac_config_sub $targ 2>/dev/null`
10959         if test -n "$result" ; then
10960             canon_targets="$canon_targets $result"
10961         else
10962             # Allow targets that config.sub doesn't recognize, like "all".
10963             canon_targets="$canon_targets $targ"
10964         fi
10965     done
10966 fi
10967
10968 all_targets=false
10969 defvec=
10970 selvecs=
10971 assocvecs=
10972 selarchs=
10973 TDEFINES=
10974 for targ in $target $canon_targets
10975 do
10976     if test "x$targ" = "xall"; then
10977         all_targets=true
10978         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
10979     else
10980         . $srcdir/config.bfd
10981         if test "x$targ" = "x$target"; then
10982             defvec=$targ_defvec
10983         fi
10984         selvecs="$selvecs $targ_defvec $targ_selvecs"
10985         selarchs="$selarchs $targ_archs"
10986         TDEFINES="$TDEFINES $targ_cflags"
10987     fi
10988 done
10989
10990
10991 # This processing still needs to be done if we're to decide properly whether
10992 # 64-bit support needs to be compiled in.  Currently, it will be included if
10993 # the default or any other explicitly requested target requires it; it
10994 # will not be included on a 32-bit host if no 64-bit target is requested, and
10995 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
10996 # used.
10997
10998 # uniq the default and selected vectors in all the configured targets.
10999 f=""
11000 for i in $selvecs ; do
11001     case " $f " in
11002     *" $i "*) ;;
11003     *) f="$f $i" ;;
11004     esac
11005 done
11006 selvecs="$f"
11007
11008
11009 # uniq the associated vectors in all the configured targets.
11010 f=""
11011 for i in $assocvecs ; do
11012     case " $f " in
11013     *" $i "*) ;;
11014     *) f="$f $i" ;;
11015     esac
11016 done
11017 assocvecs="$f"
11018
11019
11020 # uniq the architectures in all the configured targets.
11021 f=""
11022 for i in $selarchs ; do
11023     case " $f " in
11024     *" $i "*) ;;
11025     *) f="$f $i" ;;
11026     esac
11027 done
11028 selarchs="$f"
11029
11030 # Target backend .o files.
11031 tb=
11032
11033 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11034
11035 for vec in $selvecs
11036 do
11037     target_size=32
11038     case "$vec" in
11039     # This list is alphabetized to make it easy to compare
11040     # with the two vector lists in targets.c.  For the same reason,
11041     # use one entry per line, even though this leads to long lines.
11042     a29kcoff_big_vec)           tb="$tb coff-a29k.lo cofflink.lo" ;;
11043     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
11044     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11045     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
11046     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
11047     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
11048     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
11049     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11050     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11051     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11052     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11053     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
11054     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
11055     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
11056     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11057     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11058     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11059     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11060     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
11061     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
11062     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11063     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11064     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11065     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11066     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11067     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11068     bfd_elf32_bigarm_oabi_vec)  tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
11069     bfd_elf32_bigarm_vec)       tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11070     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11071     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11072     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11073     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11074     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11075     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11076     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11077     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11078     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11079     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11080     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11081     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11082     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11083     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11084     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11085     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11086     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11087     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11088     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11089     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11090     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11091     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11092     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11093     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11094     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11095     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11096     bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
11097     bfd_elf32_littlearm_vec)    tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
11098     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11099     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11100     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11101     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11102     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11103     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11104     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11105     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11106     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11107     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11108     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11109     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11110     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11111     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11112     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11113     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11114     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11115     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11116     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11117     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11118     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
11119     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
11120     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11121     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11122     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11123     # FIXME: We include cofflink.lo not because it's needed for
11124     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11125     # which needs it but does not list it.  Should be fixed in right place.
11126     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11127     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11128     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11129     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11130     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11131     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11132     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11133     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11134     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11135     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11136     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11137     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11138     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11139     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11140     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11141     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11142     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11143     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11144     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11145     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11146     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11147     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11148     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11149     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11150     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11151     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11152     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11153     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11154     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11155     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11156     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11157     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11158     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11159     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11160     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11161     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11162     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11163     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11164     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11165     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11166     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11167     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11168     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11169     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11170     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11171     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11172     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11173     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
11174     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11175     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11176     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11177     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11178     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
11179     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11180     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11181     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11182     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11183     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11184     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
11185     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
11186     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
11187     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
11188     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
11189     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
11190     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
11191     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
11192     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
11193     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
11194     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
11195     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
11196     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
11197     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11198     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11199     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
11200     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
11201     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
11202     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
11203     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11204     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11205     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
11206     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
11207     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
11208     ieee_vec)                   tb="$tb ieee.lo" ;;
11209     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11210     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11211     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
11212     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11213     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
11214     m68klynx_aout_vec)          tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11215     m68klynx_coff_vec)          tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11216     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
11217     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
11218     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
11219     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
11220     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
11221     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
11222     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
11223     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
11224     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11225     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11226     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11227     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11228     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11229     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11230     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
11231     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11232     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11233     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11234     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11235     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
11236     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11237     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11238     pef_vec)                    tb="$tb pef.lo" ;;
11239     pef_xlib_vec)               tb="$tb pef.lo" ;;
11240     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
11241     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11242     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
11243     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
11244     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11245     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11246     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
11247     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
11248     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
11249     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
11250     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11251     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11252     som_vec)                    tb="$tb som.lo" ;;
11253     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
11254     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
11255     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
11256     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11257     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11258     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
11259     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
11260     sym_vec)                    tb="$tb xsym.lo" ;;
11261     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
11262     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
11263     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
11264     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11265     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
11266     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11267     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
11268     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
11269     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11270     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
11271     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11272     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
11273     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
11274     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
11275     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
11276     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
11277     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
11278     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
11279     versados_vec)               tb="$tb versados.lo" ;;
11280     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11281     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11282     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
11283     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
11284     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo" ;;
11285
11286     # These appear out of order in targets.c
11287     srec_vec)                   tb="$tb srec.lo" ;;
11288     symbolsrec_vec)             tb="$tb srec.lo" ;;
11289     tekhex_vec)                 tb="$tb tekhex.lo" ;;
11290     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
11291     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
11292
11293     "")                 ;;
11294     *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11295 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11296    { (exit 1); exit 1; }; } ;;
11297     esac
11298
11299     if test ${target_size} = 64; then
11300         target64=true
11301     fi
11302     if test x"${vec}" = x"${defvec}"; then
11303         bfd_default_target_size=${target_size}
11304     fi
11305 done
11306
11307 # Target architecture .o files.
11308 # A couple of CPUs use shorter file names to avoid problems on DOS
11309 # filesystems.
11310 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11311
11312 # Weed out duplicate .o files.
11313 f=""
11314 for i in $tb ; do
11315     case " $f " in
11316     *" $i "*) ;;
11317     *) f="$f $i" ;;
11318     esac
11319 done
11320 tb="$f"
11321
11322 f=""
11323 for i in $ta ; do
11324     case " $f " in
11325     *" $i "*) ;;
11326     *) f="$f $i" ;;
11327     esac
11328 done
11329 ta="$f"
11330
11331 bfd_backends="$tb"
11332 bfd_machines="$ta"
11333
11334 if test x${all_targets} = xtrue ; then
11335   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11336   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11337   selvecs=
11338   havevecs=
11339   selarchs=
11340   test -n "$assocvecs" &&
11341     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11342 else    # all_targets is true
11343   # Only set these if they will be nonempty, for the clever echo.
11344   havevecs=
11345   assocvecs=
11346   test -n "$selvecs" &&
11347     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11348   test -n "$selvecs" &&
11349     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11350   test -n "$selarchs" &&
11351     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11352 fi      # all_targets is true
11353
11354 case ${host64}-${target64}-${want64} in
11355   *true*)
11356     wordsize=64
11357     bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11358     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11359     if test $BFD_HOST_64_BIT_DEFINED = 0; then
11360       { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11361 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11362       { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11363 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11364     fi
11365     if test -n "$GCC" ; then
11366        bad_64bit_gcc=no;
11367        echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11368 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11369        # Add more tests for gcc versions with non-working 64-bit support here.
11370        cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 :__GNUC__:__GNUC_MINOR__:__i386__:
11377 _ACEOF
11378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11379   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11380   bad_64bit_gcc=yes;
11381                     echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11382 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11383 else
11384   echo "$as_me:$LINENO: result: no" >&5
11385 echo "${ECHO_T}no" >&6
11386 fi
11387 rm -f conftest*
11388
11389        if test $bad_64bit_gcc = yes ; then
11390          { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11391 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11392    { (exit 1); exit 1; }; }
11393        fi
11394     fi
11395     ;;
11396   false-false-false)
11397     wordsize=32
11398     bfd_libs='$(BFD32_LIBS)'
11399     all_backends='$(BFD32_BACKENDS)'
11400     ;;
11401 esac
11402
11403
11404
11405
11406
11407
11408
11409
11410 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
11411 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11412 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
11413 # Hopefully a reasonable assumption since fseeko et.al. should be
11414 # upward compatible.
11415
11416
11417
11418
11419 for ac_func in ftello ftello64 fseeko fseeko64
11420 do
11421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11422 echo "$as_me:$LINENO: checking for $ac_func" >&5
11423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11424 if eval "test \"\${$as_ac_var+set}\" = set"; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11435 #define $ac_func innocuous_$ac_func
11436
11437 /* System header to define __stub macros and hopefully few prototypes,
11438     which can conflict with char $ac_func (); below.
11439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11440     <limits.h> exists even on freestanding compilers.  */
11441
11442 #ifdef __STDC__
11443 # include <limits.h>
11444 #else
11445 # include <assert.h>
11446 #endif
11447
11448 #undef $ac_func
11449
11450 /* Override any gcc2 internal prototype to avoid an error.  */
11451 #ifdef __cplusplus
11452 extern "C"
11453 {
11454 #endif
11455 /* We use char because int might match the return type of a gcc2
11456    builtin and then its argument prototype would still apply.  */
11457 char $ac_func ();
11458 /* The GNU C library defines this for functions which it implements
11459     to always fail with ENOSYS.  Some functions are actually named
11460     something starting with __ and the normal name is an alias.  */
11461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11462 choke me
11463 #else
11464 char (*f) () = $ac_func;
11465 #endif
11466 #ifdef __cplusplus
11467 }
11468 #endif
11469
11470 int
11471 main ()
11472 {
11473 return f != $ac_func;
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480   (eval $ac_link) 2>conftest.er1
11481   ac_status=$?
11482   grep -v '^ *+' conftest.er1 >conftest.err
11483   rm -f conftest.er1
11484   cat conftest.err >&5
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); } &&
11487          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489   (eval $ac_try) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; } &&
11493          { ac_try='test -s conftest$ac_exeext'
11494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495   (eval $ac_try) 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; }; then
11499   eval "$as_ac_var=yes"
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 eval "$as_ac_var=no"
11505 fi
11506 rm -f conftest.err conftest.$ac_objext \
11507       conftest$ac_exeext conftest.$ac_ext
11508 fi
11509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11511 if test `eval echo '${'$as_ac_var'}'` = yes; then
11512   cat >>confdefs.h <<_ACEOF
11513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11514 _ACEOF
11515
11516 fi
11517 done
11518
11519 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11520     echo "$as_me:$LINENO: checking size of off_t" >&5
11521 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11522 if test "${ac_cv_sizeof_off_t+set}" = set; then
11523   echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
11526   cat >conftest.$ac_ext <<_ACEOF
11527 /* confdefs.h.  */
11528 _ACEOF
11529 cat confdefs.h >>conftest.$ac_ext
11530 cat >>conftest.$ac_ext <<_ACEOF
11531 /* end confdefs.h.  */
11532 #include "confdefs.h"
11533 #include <sys/types.h>
11534
11535
11536 int
11537 main ()
11538 {
11539 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
11540   ;
11541   return 0;
11542 }
11543 _ACEOF
11544 rm -f conftest.$ac_objext
11545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11546   (eval $ac_compile) 2>conftest.er1
11547   ac_status=$?
11548   grep -v '^ *+' conftest.er1 >conftest.err
11549   rm -f conftest.er1
11550   cat conftest.err >&5
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } &&
11553          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555   (eval $ac_try) 2>&5
11556   ac_status=$?
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); }; } &&
11559          { ac_try='test -s conftest.$ac_objext'
11560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561   (eval $ac_try) 2>&5
11562   ac_status=$?
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); }; }; then
11565   ac_cv_sizeof_off_t=$ac_size
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570 fi
11571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11572   if test x$ac_cv_sizeof_off_t != x ; then break; fi
11573 done
11574
11575 fi
11576
11577 if test x$ac_cv_sizeof_off_t = x ; then
11578   { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11579 echo "$as_me: error: cannot determine a size for off_t" >&2;}
11580    { (exit 1); exit 1; }; }
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11583 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11584
11585 cat >>confdefs.h <<_ACEOF
11586 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11587 _ACEOF
11588
11589
11590 fi
11591 echo "$as_me:$LINENO: checking file_ptr type" >&5
11592 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11593 bfd_file_ptr="long"
11594 bfd_ufile_ptr="unsigned long"
11595 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11596         -o x"${ac_cv_sizeof_off_t}" = x8; then
11597     bfd_file_ptr=BFD_HOST_64_BIT
11598     bfd_ufile_ptr=BFD_HOST_U_64_BIT
11599 fi
11600 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11601 echo "${ECHO_T}$bfd_file_ptr" >&6
11602
11603
11604
11605
11606 tdefaults=""
11607 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11608 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
11609 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
11610 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11611 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11612
11613
11614
11615
11616 for ac_header in stdlib.h unistd.h
11617 do
11618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11620   echo "$as_me:$LINENO: checking for $ac_header" >&5
11621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 fi
11625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11627 else
11628   # Is the header compilable?
11629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h.  */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h.  */
11637 $ac_includes_default
11638 #include <$ac_header>
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642   (eval $ac_compile) 2>conftest.er1
11643   ac_status=$?
11644   grep -v '^ *+' conftest.er1 >conftest.err
11645   rm -f conftest.er1
11646   cat conftest.err >&5
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } &&
11649          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651   (eval $ac_try) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; } &&
11655          { ac_try='test -s conftest.$ac_objext'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; }; then
11661   ac_header_compiler=yes
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11665
11666 ac_header_compiler=no
11667 fi
11668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11670 echo "${ECHO_T}$ac_header_compiler" >&6
11671
11672 # Is the header present?
11673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681 #include <$ac_header>
11682 _ACEOF
11683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } >/dev/null; then
11691   if test -s conftest.err; then
11692     ac_cpp_err=$ac_c_preproc_warn_flag
11693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11694   else
11695     ac_cpp_err=
11696   fi
11697 else
11698   ac_cpp_err=yes
11699 fi
11700 if test -z "$ac_cpp_err"; then
11701   ac_header_preproc=yes
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706   ac_header_preproc=no
11707 fi
11708 rm -f conftest.err conftest.$ac_ext
11709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11710 echo "${ECHO_T}$ac_header_preproc" >&6
11711
11712 # So?  What about this header?
11713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11714   yes:no: )
11715     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11717     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11719     ac_header_preproc=yes
11720     ;;
11721   no:yes:* )
11722     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11724     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11725 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11726     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11728     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11729 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11732     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11734     (
11735       cat <<\_ASBOX
11736 ## ------------------------------------------ ##
11737 ## Report this to the AC_PACKAGE_NAME lists.  ##
11738 ## ------------------------------------------ ##
11739 _ASBOX
11740     ) |
11741       sed "s/^/$as_me: WARNING:     /" >&2
11742     ;;
11743 esac
11744 echo "$as_me:$LINENO: checking for $ac_header" >&5
11745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   eval "$as_ac_Header=\$ac_header_preproc"
11750 fi
11751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11753
11754 fi
11755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11756   cat >>confdefs.h <<_ACEOF
11757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11758 _ACEOF
11759
11760 fi
11761
11762 done
11763
11764
11765 for ac_func in getpagesize
11766 do
11767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11768 echo "$as_me:$LINENO: checking for $ac_func" >&5
11769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11770 if eval "test \"\${$as_ac_var+set}\" = set"; then
11771   echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773   cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11781 #define $ac_func innocuous_$ac_func
11782
11783 /* System header to define __stub macros and hopefully few prototypes,
11784     which can conflict with char $ac_func (); below.
11785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11786     <limits.h> exists even on freestanding compilers.  */
11787
11788 #ifdef __STDC__
11789 # include <limits.h>
11790 #else
11791 # include <assert.h>
11792 #endif
11793
11794 #undef $ac_func
11795
11796 /* Override any gcc2 internal prototype to avoid an error.  */
11797 #ifdef __cplusplus
11798 extern "C"
11799 {
11800 #endif
11801 /* We use char because int might match the return type of a gcc2
11802    builtin and then its argument prototype would still apply.  */
11803 char $ac_func ();
11804 /* The GNU C library defines this for functions which it implements
11805     to always fail with ENOSYS.  Some functions are actually named
11806     something starting with __ and the normal name is an alias.  */
11807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11808 choke me
11809 #else
11810 char (*f) () = $ac_func;
11811 #endif
11812 #ifdef __cplusplus
11813 }
11814 #endif
11815
11816 int
11817 main ()
11818 {
11819 return f != $ac_func;
11820   ;
11821   return 0;
11822 }
11823 _ACEOF
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11826   (eval $ac_link) 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; } &&
11839          { ac_try='test -s conftest$ac_exeext'
11840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841   (eval $ac_try) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; }; then
11845   eval "$as_ac_var=yes"
11846 else
11847   echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 eval "$as_ac_var=no"
11851 fi
11852 rm -f conftest.err conftest.$ac_objext \
11853       conftest$ac_exeext conftest.$ac_ext
11854 fi
11855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11857 if test `eval echo '${'$as_ac_var'}'` = yes; then
11858   cat >>confdefs.h <<_ACEOF
11859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11860 _ACEOF
11861
11862 fi
11863 done
11864
11865 echo "$as_me:$LINENO: checking for working mmap" >&5
11866 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11867 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   if test "$cross_compiling" = yes; then
11871   ac_cv_func_mmap_fixed_mapped=no
11872 else
11873   cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879 $ac_includes_default
11880 /* malloc might have been renamed as rpl_malloc. */
11881 #undef malloc
11882
11883 /* Thanks to Mike Haertel and Jim Avera for this test.
11884    Here is a matrix of mmap possibilities:
11885         mmap private not fixed
11886         mmap private fixed at somewhere currently unmapped
11887         mmap private fixed at somewhere already mapped
11888         mmap shared not fixed
11889         mmap shared fixed at somewhere currently unmapped
11890         mmap shared fixed at somewhere already mapped
11891    For private mappings, we should verify that changes cannot be read()
11892    back from the file, nor mmap's back from the file at a different
11893    address.  (There have been systems where private was not correctly
11894    implemented like the infamous i386 svr4.0, and systems where the
11895    VM page cache was not coherent with the file system buffer cache
11896    like early versions of FreeBSD and possibly contemporary NetBSD.)
11897    For shared mappings, we should conversely verify that changes get
11898    propagated back to all the places they're supposed to be.
11899
11900    Grep wants private fixed already mapped.
11901    The main things grep needs to know about mmap are:
11902    * does it exist and is it safe to write into the mmap'd area
11903    * how to use it (BSD variants)  */
11904
11905 #include <fcntl.h>
11906 #include <sys/mman.h>
11907
11908 #if !STDC_HEADERS && !HAVE_STDLIB_H
11909 char *malloc ();
11910 #endif
11911
11912 /* This mess was copied from the GNU getpagesize.h.  */
11913 #if !HAVE_GETPAGESIZE
11914 /* Assume that all systems that can run configure have sys/param.h.  */
11915 # if !HAVE_SYS_PARAM_H
11916 #  define HAVE_SYS_PARAM_H 1
11917 # endif
11918
11919 # ifdef _SC_PAGESIZE
11920 #  define getpagesize() sysconf(_SC_PAGESIZE)
11921 # else /* no _SC_PAGESIZE */
11922 #  if HAVE_SYS_PARAM_H
11923 #   include <sys/param.h>
11924 #   ifdef EXEC_PAGESIZE
11925 #    define getpagesize() EXEC_PAGESIZE
11926 #   else /* no EXEC_PAGESIZE */
11927 #    ifdef NBPG
11928 #     define getpagesize() NBPG * CLSIZE
11929 #     ifndef CLSIZE
11930 #      define CLSIZE 1
11931 #     endif /* no CLSIZE */
11932 #    else /* no NBPG */
11933 #     ifdef NBPC
11934 #      define getpagesize() NBPC
11935 #     else /* no NBPC */
11936 #      ifdef PAGESIZE
11937 #       define getpagesize() PAGESIZE
11938 #      endif /* PAGESIZE */
11939 #     endif /* no NBPC */
11940 #    endif /* no NBPG */
11941 #   endif /* no EXEC_PAGESIZE */
11942 #  else /* no HAVE_SYS_PARAM_H */
11943 #   define getpagesize() 8192   /* punt totally */
11944 #  endif /* no HAVE_SYS_PARAM_H */
11945 # endif /* no _SC_PAGESIZE */
11946
11947 #endif /* no HAVE_GETPAGESIZE */
11948
11949 int
11950 main ()
11951 {
11952   char *data, *data2, *data3;
11953   int i, pagesize;
11954   int fd;
11955
11956   pagesize = getpagesize ();
11957
11958   /* First, make a file with some known garbage in it. */
11959   data = (char *) malloc (pagesize);
11960   if (!data)
11961     exit (1);
11962   for (i = 0; i < pagesize; ++i)
11963     *(data + i) = rand ();
11964   umask (0);
11965   fd = creat ("conftest.mmap", 0600);
11966   if (fd < 0)
11967     exit (1);
11968   if (write (fd, data, pagesize) != pagesize)
11969     exit (1);
11970   close (fd);
11971
11972   /* Next, try to mmap the file at a fixed address which already has
11973      something else allocated at it.  If we can, also make sure that
11974      we see the same garbage.  */
11975   fd = open ("conftest.mmap", O_RDWR);
11976   if (fd < 0)
11977     exit (1);
11978   data2 = (char *) malloc (2 * pagesize);
11979   if (!data2)
11980     exit (1);
11981   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
11982   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11983                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11984     exit (1);
11985   for (i = 0; i < pagesize; ++i)
11986     if (*(data + i) != *(data2 + i))
11987       exit (1);
11988
11989   /* Finally, make sure that changes to the mapped area do not
11990      percolate back to the file as seen by read().  (This is a bug on
11991      some variants of i386 svr4.0.)  */
11992   for (i = 0; i < pagesize; ++i)
11993     *(data2 + i) = *(data2 + i) + 1;
11994   data3 = (char *) malloc (pagesize);
11995   if (!data3)
11996     exit (1);
11997   if (read (fd, data3, pagesize) != pagesize)
11998     exit (1);
11999   for (i = 0; i < pagesize; ++i)
12000     if (*(data + i) != *(data3 + i))
12001       exit (1);
12002   close (fd);
12003   exit (0);
12004 }
12005 _ACEOF
12006 rm -f conftest$ac_exeext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12008   (eval $ac_link) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013   (eval $ac_try) 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; }; then
12017   ac_cv_func_mmap_fixed_mapped=yes
12018 else
12019   echo "$as_me: program exited with status $ac_status" >&5
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ( exit $ac_status )
12024 ac_cv_func_mmap_fixed_mapped=no
12025 fi
12026 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12027 fi
12028 fi
12029 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12030 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12031 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12032
12033 cat >>confdefs.h <<\_ACEOF
12034 #define HAVE_MMAP 1
12035 _ACEOF
12036
12037 fi
12038 rm -f conftest.mmap
12039
12040
12041
12042 for ac_func in madvise mprotect
12043 do
12044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12045 echo "$as_me:$LINENO: checking for $ac_func" >&5
12046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12047 if eval "test \"\${$as_ac_var+set}\" = set"; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12058 #define $ac_func innocuous_$ac_func
12059
12060 /* System header to define __stub macros and hopefully few prototypes,
12061     which can conflict with char $ac_func (); below.
12062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063     <limits.h> exists even on freestanding compilers.  */
12064
12065 #ifdef __STDC__
12066 # include <limits.h>
12067 #else
12068 # include <assert.h>
12069 #endif
12070
12071 #undef $ac_func
12072
12073 /* Override any gcc2 internal prototype to avoid an error.  */
12074 #ifdef __cplusplus
12075 extern "C"
12076 {
12077 #endif
12078 /* We use char because int might match the return type of a gcc2
12079    builtin and then its argument prototype would still apply.  */
12080 char $ac_func ();
12081 /* The GNU C library defines this for functions which it implements
12082     to always fail with ENOSYS.  Some functions are actually named
12083     something starting with __ and the normal name is an alias.  */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085 choke me
12086 #else
12087 char (*f) () = $ac_func;
12088 #endif
12089 #ifdef __cplusplus
12090 }
12091 #endif
12092
12093 int
12094 main ()
12095 {
12096 return f != $ac_func;
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103   (eval $ac_link) 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; } &&
12116          { ac_try='test -s conftest$ac_exeext'
12117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118   (eval $ac_try) 2>&5
12119   ac_status=$?
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); }; }; then
12122   eval "$as_ac_var=yes"
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 eval "$as_ac_var=no"
12128 fi
12129 rm -f conftest.err conftest.$ac_objext \
12130       conftest$ac_exeext conftest.$ac_ext
12131 fi
12132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12134 if test `eval echo '${'$as_ac_var'}'` = yes; then
12135   cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12137 _ACEOF
12138
12139 fi
12140 done
12141
12142 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12143   true+yes )
12144 cat >>confdefs.h <<\_ACEOF
12145 #define USE_MMAP 1
12146 _ACEOF
12147  ;;
12148 esac
12149
12150 rm -f doc/config.status
12151                                         ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12152
12153           ac_config_commands="$ac_config_commands default"
12154
12155 cat >confcache <<\_ACEOF
12156 # This file is a shell script that caches the results of configure
12157 # tests run on this system so they can be shared between configure
12158 # scripts and configure runs, see configure's option --config-cache.
12159 # It is not useful on other systems.  If it contains results you don't
12160 # want to keep, you may remove or edit it.
12161 #
12162 # config.status only pays attention to the cache file if you give it
12163 # the --recheck option to rerun configure.
12164 #
12165 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12166 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12167 # following values.
12168
12169 _ACEOF
12170
12171 # The following way of writing the cache mishandles newlines in values,
12172 # but we know of no workaround that is simple, portable, and efficient.
12173 # So, don't put newlines in cache variables' values.
12174 # Ultrix sh set writes to stderr and can't be redirected directly,
12175 # and sets the high bit in the cache file unless we assign to the vars.
12176 {
12177   (set) 2>&1 |
12178     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12179     *ac_space=\ *)
12180       # `set' does not quote correctly, so add quotes (double-quote
12181       # substitution turns \\\\ into \\, and sed turns \\ into \).
12182       sed -n \
12183         "s/'/'\\\\''/g;
12184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12185       ;;
12186     *)
12187       # `set' quotes correctly as required by POSIX, so do not add quotes.
12188       sed -n \
12189         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12190       ;;
12191     esac;
12192 } |
12193   sed '
12194      t clear
12195      : clear
12196      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12197      t end
12198      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12199      : end' >>confcache
12200 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12201   if test -w $cache_file; then
12202     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12203     cat confcache >$cache_file
12204   else
12205     echo "not updating unwritable cache $cache_file"
12206   fi
12207 fi
12208 rm -f confcache
12209
12210 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12211 # Let make expand exec_prefix.
12212 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12213
12214 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12215 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12216 # trailing colons and then remove the whole line if VPATH becomes empty
12217 # (actually we leave an empty line to preserve line numbers).
12218 if test "x$srcdir" = x.; then
12219   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12220 s/:*\$(srcdir):*/:/;
12221 s/:*\${srcdir}:*/:/;
12222 s/:*@srcdir@:*/:/;
12223 s/^\([^=]*=[     ]*\):*/\1/;
12224 s/:*$//;
12225 s/^[^=]*=[       ]*$//;
12226 }'
12227 fi
12228
12229 DEFS=-DHAVE_CONFIG_H
12230
12231 ac_libobjs=
12232 ac_ltlibobjs=
12233 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12234   # 1. Remove the extension, and $U if already installed.
12235   ac_i=`echo "$ac_i" |
12236          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12237   # 2. Add them.
12238   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12239   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12240 done
12241 LIBOBJS=$ac_libobjs
12242
12243 LTLIBOBJS=$ac_ltlibobjs
12244
12245
12246
12247 : ${CONFIG_STATUS=./config.status}
12248 ac_clean_files_save=$ac_clean_files
12249 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12250 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12251 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12252 cat >$CONFIG_STATUS <<_ACEOF
12253 #! $SHELL
12254 # Generated by $as_me.
12255 # Run this file to recreate the current configuration.
12256 # Compiler output produced by configure, useful for debugging
12257 # configure, is in config.log if it exists.
12258
12259 debug=false
12260 ac_cs_recheck=false
12261 ac_cs_silent=false
12262 SHELL=\${CONFIG_SHELL-$SHELL}
12263 _ACEOF
12264
12265 cat >>$CONFIG_STATUS <<\_ACEOF
12266 ## --------------------- ##
12267 ## M4sh Initialization.  ##
12268 ## --------------------- ##
12269
12270 # Be Bourne compatible
12271 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12272   emulate sh
12273   NULLCMD=:
12274   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12275   # is contrary to our usage.  Disable this feature.
12276   alias -g '${1+"$@"}'='"$@"'
12277 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12278   set -o posix
12279 fi
12280 DUALCASE=1; export DUALCASE # for MKS sh
12281
12282 # Support unset when possible.
12283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12284   as_unset=unset
12285 else
12286   as_unset=false
12287 fi
12288
12289
12290 # Work around bugs in pre-3.0 UWIN ksh.
12291 $as_unset ENV MAIL MAILPATH
12292 PS1='$ '
12293 PS2='> '
12294 PS4='+ '
12295
12296 # NLS nuisances.
12297 for as_var in \
12298   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12299   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12300   LC_TELEPHONE LC_TIME
12301 do
12302   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12303     eval $as_var=C; export $as_var
12304   else
12305     $as_unset $as_var
12306   fi
12307 done
12308
12309 # Required to use basename.
12310 if expr a : '\(a\)' >/dev/null 2>&1; then
12311   as_expr=expr
12312 else
12313   as_expr=false
12314 fi
12315
12316 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12317   as_basename=basename
12318 else
12319   as_basename=false
12320 fi
12321
12322
12323 # Name of the executable.
12324 as_me=`$as_basename "$0" ||
12325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12326          X"$0" : 'X\(//\)$' \| \
12327          X"$0" : 'X\(/\)$' \| \
12328          .     : '\(.\)' 2>/dev/null ||
12329 echo X/"$0" |
12330     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12331           /^X\/\(\/\/\)$/{ s//\1/; q; }
12332           /^X\/\(\/\).*/{ s//\1/; q; }
12333           s/.*/./; q'`
12334
12335
12336 # PATH needs CR, and LINENO needs CR and PATH.
12337 # Avoid depending upon Character Ranges.
12338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12341 as_cr_digits='0123456789'
12342 as_cr_alnum=$as_cr_Letters$as_cr_digits
12343
12344 # The user is always right.
12345 if test "${PATH_SEPARATOR+set}" != set; then
12346   echo "#! /bin/sh" >conf$$.sh
12347   echo  "exit 0"   >>conf$$.sh
12348   chmod +x conf$$.sh
12349   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12350     PATH_SEPARATOR=';'
12351   else
12352     PATH_SEPARATOR=:
12353   fi
12354   rm -f conf$$.sh
12355 fi
12356
12357
12358   as_lineno_1=$LINENO
12359   as_lineno_2=$LINENO
12360   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12361   test "x$as_lineno_1" != "x$as_lineno_2" &&
12362   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
12363   # Find who we are.  Look in the path if we contain no path at all
12364   # relative or not.
12365   case $0 in
12366     *[\\/]* ) as_myself=$0 ;;
12367     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368 for as_dir in $PATH
12369 do
12370   IFS=$as_save_IFS
12371   test -z "$as_dir" && as_dir=.
12372   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12373 done
12374
12375        ;;
12376   esac
12377   # We did not find ourselves, most probably we were run as `sh COMMAND'
12378   # in which case we are not to be found in the path.
12379   if test "x$as_myself" = x; then
12380     as_myself=$0
12381   fi
12382   if test ! -f "$as_myself"; then
12383     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12384 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12385    { (exit 1); exit 1; }; }
12386   fi
12387   case $CONFIG_SHELL in
12388   '')
12389     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12390 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12391 do
12392   IFS=$as_save_IFS
12393   test -z "$as_dir" && as_dir=.
12394   for as_base in sh bash ksh sh5; do
12395          case $as_dir in
12396          /*)
12397            if ("$as_dir/$as_base" -c '
12398   as_lineno_1=$LINENO
12399   as_lineno_2=$LINENO
12400   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12401   test "x$as_lineno_1" != "x$as_lineno_2" &&
12402   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
12403              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12404              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12405              CONFIG_SHELL=$as_dir/$as_base
12406              export CONFIG_SHELL
12407              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12408            fi;;
12409          esac
12410        done
12411 done
12412 ;;
12413   esac
12414
12415   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12416   # uniformly replaced by the line number.  The first 'sed' inserts a
12417   # line-number line before each line; the second 'sed' does the real
12418   # work.  The second script uses 'N' to pair each line-number line
12419   # with the numbered line, and appends trailing '-' during
12420   # substitution so that $LINENO is not a special case at line end.
12421   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12422   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
12423   sed '=' <$as_myself |
12424     sed '
12425       N
12426       s,$,-,
12427       : loop
12428       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12429       t loop
12430       s,-$,,
12431       s,^['$as_cr_digits']*\n,,
12432     ' >$as_me.lineno &&
12433   chmod +x $as_me.lineno ||
12434     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12435 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12436    { (exit 1); exit 1; }; }
12437
12438   # Don't try to exec as it changes $[0], causing all sort of problems
12439   # (the dirname of $[0] is not the place where we might find the
12440   # original and so on.  Autoconf is especially sensible to this).
12441   . ./$as_me.lineno
12442   # Exit status is that of the last command.
12443   exit
12444 }
12445
12446
12447 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12448   *c*,-n*) ECHO_N= ECHO_C='
12449 ' ECHO_T='      ' ;;
12450   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12451   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
12452 esac
12453
12454 if expr a : '\(a\)' >/dev/null 2>&1; then
12455   as_expr=expr
12456 else
12457   as_expr=false
12458 fi
12459
12460 rm -f conf$$ conf$$.exe conf$$.file
12461 echo >conf$$.file
12462 if ln -s conf$$.file conf$$ 2>/dev/null; then
12463   # We could just check for DJGPP; but this test a) works b) is more generic
12464   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12465   if test -f conf$$.exe; then
12466     # Don't use ln at all; we don't have any links
12467     as_ln_s='cp -p'
12468   else
12469     as_ln_s='ln -s'
12470   fi
12471 elif ln conf$$.file conf$$ 2>/dev/null; then
12472   as_ln_s=ln
12473 else
12474   as_ln_s='cp -p'
12475 fi
12476 rm -f conf$$ conf$$.exe conf$$.file
12477
12478 if mkdir -p . 2>/dev/null; then
12479   as_mkdir_p=:
12480 else
12481   test -d ./-p && rmdir ./-p
12482   as_mkdir_p=false
12483 fi
12484
12485 as_executable_p="test -f"
12486
12487 # Sed expression to map a string onto a valid CPP name.
12488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12489
12490 # Sed expression to map a string onto a valid variable name.
12491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12492
12493
12494 # IFS
12495 # We need space, tab and new line, in precisely that order.
12496 as_nl='
12497 '
12498 IFS="   $as_nl"
12499
12500 # CDPATH.
12501 $as_unset CDPATH
12502
12503 exec 6>&1
12504
12505 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12506 # report actual input values of CONFIG_FILES etc. instead of their
12507 # values after options handling.  Logging --version etc. is OK.
12508 exec 5>>config.log
12509 {
12510   echo
12511   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12512 ## Running $as_me. ##
12513 _ASBOX
12514 } >&5
12515 cat >&5 <<_CSEOF
12516
12517 This file was extended by $as_me, which was
12518 generated by GNU Autoconf 2.59.  Invocation command line was
12519
12520   CONFIG_FILES    = $CONFIG_FILES
12521   CONFIG_HEADERS  = $CONFIG_HEADERS
12522   CONFIG_LINKS    = $CONFIG_LINKS
12523   CONFIG_COMMANDS = $CONFIG_COMMANDS
12524   $ $0 $@
12525
12526 _CSEOF
12527 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12528 echo >&5
12529 _ACEOF
12530
12531 # Files that config.status was made for.
12532 if test -n "$ac_config_files"; then
12533   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12534 fi
12535
12536 if test -n "$ac_config_headers"; then
12537   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12538 fi
12539
12540 if test -n "$ac_config_links"; then
12541   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12542 fi
12543
12544 if test -n "$ac_config_commands"; then
12545   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12546 fi
12547
12548 cat >>$CONFIG_STATUS <<\_ACEOF
12549
12550 ac_cs_usage="\
12551 \`$as_me' instantiates files from templates according to the
12552 current configuration.
12553
12554 Usage: $0 [OPTIONS] [FILE]...
12555
12556   -h, --help       print this help, then exit
12557   -V, --version    print version number, then exit
12558   -q, --quiet      do not print progress messages
12559   -d, --debug      don't remove temporary files
12560       --recheck    update $as_me by reconfiguring in the same conditions
12561   --file=FILE[:TEMPLATE]
12562                    instantiate the configuration file FILE
12563   --header=FILE[:TEMPLATE]
12564                    instantiate the configuration header FILE
12565
12566 Configuration files:
12567 $config_files
12568
12569 Configuration headers:
12570 $config_headers
12571
12572 Configuration commands:
12573 $config_commands
12574
12575 Report bugs to <bug-autoconf@gnu.org>."
12576 _ACEOF
12577
12578 cat >>$CONFIG_STATUS <<_ACEOF
12579 ac_cs_version="\\
12580 config.status
12581 configured by $0, generated by GNU Autoconf 2.59,
12582   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12583
12584 Copyright (C) 2003 Free Software Foundation, Inc.
12585 This config.status script is free software; the Free Software Foundation
12586 gives unlimited permission to copy, distribute and modify it."
12587 srcdir=$srcdir
12588 INSTALL="$INSTALL"
12589 _ACEOF
12590
12591 cat >>$CONFIG_STATUS <<\_ACEOF
12592 # If no file are specified by the user, then we need to provide default
12593 # value.  By we need to know if files were specified by the user.
12594 ac_need_defaults=:
12595 while test $# != 0
12596 do
12597   case $1 in
12598   --*=*)
12599     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12600     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12601     ac_shift=:
12602     ;;
12603   -*)
12604     ac_option=$1
12605     ac_optarg=$2
12606     ac_shift=shift
12607     ;;
12608   *) # This is not an option, so the user has probably given explicit
12609      # arguments.
12610      ac_option=$1
12611      ac_need_defaults=false;;
12612   esac
12613
12614   case $ac_option in
12615   # Handling of the options.
12616 _ACEOF
12617 cat >>$CONFIG_STATUS <<\_ACEOF
12618   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12619     ac_cs_recheck=: ;;
12620   --version | --vers* | -V )
12621     echo "$ac_cs_version"; exit 0 ;;
12622   --he | --h)
12623     # Conflict between --help and --header
12624     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12625 Try \`$0 --help' for more information." >&5
12626 echo "$as_me: error: ambiguous option: $1
12627 Try \`$0 --help' for more information." >&2;}
12628    { (exit 1); exit 1; }; };;
12629   --help | --hel | -h )
12630     echo "$ac_cs_usage"; exit 0 ;;
12631   --debug | --d* | -d )
12632     debug=: ;;
12633   --file | --fil | --fi | --f )
12634     $ac_shift
12635     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12636     ac_need_defaults=false;;
12637   --header | --heade | --head | --hea )
12638     $ac_shift
12639     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12640     ac_need_defaults=false;;
12641   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12642   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12643     ac_cs_silent=: ;;
12644
12645   # This is an error.
12646   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12647 Try \`$0 --help' for more information." >&5
12648 echo "$as_me: error: unrecognized option: $1
12649 Try \`$0 --help' for more information." >&2;}
12650    { (exit 1); exit 1; }; } ;;
12651
12652   *) ac_config_targets="$ac_config_targets $1" ;;
12653
12654   esac
12655   shift
12656 done
12657
12658 ac_configure_extra_args=
12659
12660 if $ac_cs_silent; then
12661   exec 6>/dev/null
12662   ac_configure_extra_args="$ac_configure_extra_args --silent"
12663 fi
12664
12665 _ACEOF
12666 cat >>$CONFIG_STATUS <<_ACEOF
12667 if \$ac_cs_recheck; then
12668   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12669   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12670 fi
12671
12672 _ACEOF
12673
12674 cat >>$CONFIG_STATUS <<_ACEOF
12675 #
12676 # INIT-COMMANDS section.
12677 #
12678
12679
12680
12681
12682 _ACEOF
12683
12684
12685
12686 cat >>$CONFIG_STATUS <<\_ACEOF
12687 for ac_config_target in $ac_config_targets
12688 do
12689   case "$ac_config_target" in
12690   # Handling of arguments.
12691   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12692   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12693   "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12694   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12695   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12696   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12697   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12698   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12699 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12700    { (exit 1); exit 1; }; };;
12701   esac
12702 done
12703
12704 # If the user did not use the arguments to specify the items to instantiate,
12705 # then the envvar interface is used.  Set only those that are not.
12706 # We use the long form for the default assignment because of an extremely
12707 # bizarre bug on SunOS 4.1.3.
12708 if $ac_need_defaults; then
12709   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12710   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12711   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12712 fi
12713
12714 # Have a temporary directory for convenience.  Make it in the build tree
12715 # simply because there is no reason to put it here, and in addition,
12716 # creating and moving files from /tmp can sometimes cause problems.
12717 # Create a temporary directory, and hook for its removal unless debugging.
12718 $debug ||
12719 {
12720   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12721   trap '{ (exit 1); exit 1; }' 1 2 13 15
12722 }
12723
12724 # Create a (secure) tmp directory for tmp files.
12725
12726 {
12727   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12728   test -n "$tmp" && test -d "$tmp"
12729 }  ||
12730 {
12731   tmp=./confstat$$-$RANDOM
12732   (umask 077 && mkdir $tmp)
12733 } ||
12734 {
12735    echo "$me: cannot create a temporary directory in ." >&2
12736    { (exit 1); exit 1; }
12737 }
12738
12739 _ACEOF
12740
12741 cat >>$CONFIG_STATUS <<_ACEOF
12742
12743 #
12744 # CONFIG_FILES section.
12745 #
12746
12747 # No need to generate the scripts if there are no CONFIG_FILES.
12748 # This happens for instance when ./config.status config.h
12749 if test -n "\$CONFIG_FILES"; then
12750   # Protect against being on the right side of a sed subst in config.status.
12751   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12752    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12753 s,@SHELL@,$SHELL,;t t
12754 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12755 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12756 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12757 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12758 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12759 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12760 s,@exec_prefix@,$exec_prefix,;t t
12761 s,@prefix@,$prefix,;t t
12762 s,@program_transform_name@,$program_transform_name,;t t
12763 s,@bindir@,$bindir,;t t
12764 s,@sbindir@,$sbindir,;t t
12765 s,@libexecdir@,$libexecdir,;t t
12766 s,@datadir@,$datadir,;t t
12767 s,@sysconfdir@,$sysconfdir,;t t
12768 s,@sharedstatedir@,$sharedstatedir,;t t
12769 s,@localstatedir@,$localstatedir,;t t
12770 s,@libdir@,$libdir,;t t
12771 s,@includedir@,$includedir,;t t
12772 s,@oldincludedir@,$oldincludedir,;t t
12773 s,@infodir@,$infodir,;t t
12774 s,@mandir@,$mandir,;t t
12775 s,@build_alias@,$build_alias,;t t
12776 s,@host_alias@,$host_alias,;t t
12777 s,@target_alias@,$target_alias,;t t
12778 s,@DEFS@,$DEFS,;t t
12779 s,@ECHO_C@,$ECHO_C,;t t
12780 s,@ECHO_N@,$ECHO_N,;t t
12781 s,@ECHO_T@,$ECHO_T,;t t
12782 s,@LIBS@,$LIBS,;t t
12783 s,@build@,$build,;t t
12784 s,@build_cpu@,$build_cpu,;t t
12785 s,@build_vendor@,$build_vendor,;t t
12786 s,@build_os@,$build_os,;t t
12787 s,@host@,$host,;t t
12788 s,@host_cpu@,$host_cpu,;t t
12789 s,@host_vendor@,$host_vendor,;t t
12790 s,@host_os@,$host_os,;t t
12791 s,@target@,$target,;t t
12792 s,@target_cpu@,$target_cpu,;t t
12793 s,@target_vendor@,$target_vendor,;t t
12794 s,@target_os@,$target_os,;t t
12795 s,@CC@,$CC,;t t
12796 s,@CFLAGS@,$CFLAGS,;t t
12797 s,@LDFLAGS@,$LDFLAGS,;t t
12798 s,@CPPFLAGS@,$CPPFLAGS,;t t
12799 s,@ac_ct_CC@,$ac_ct_CC,;t t
12800 s,@EXEEXT@,$EXEEXT,;t t
12801 s,@OBJEXT@,$OBJEXT,;t t
12802 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12803 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12804 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12805 s,@PACKAGE@,$PACKAGE,;t t
12806 s,@VERSION@,$VERSION,;t t
12807 s,@ACLOCAL@,$ACLOCAL,;t t
12808 s,@AUTOCONF@,$AUTOCONF,;t t
12809 s,@AUTOMAKE@,$AUTOMAKE,;t t
12810 s,@AUTOHEADER@,$AUTOHEADER,;t t
12811 s,@MAKEINFO@,$MAKEINFO,;t t
12812 s,@SET_MAKE@,$SET_MAKE,;t t
12813 s,@AR@,$AR,;t t
12814 s,@ac_ct_AR@,$ac_ct_AR,;t t
12815 s,@RANLIB@,$RANLIB,;t t
12816 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12817 s,@LN_S@,$LN_S,;t t
12818 s,@STRIP@,$STRIP,;t t
12819 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12820 s,@LIBTOOL@,$LIBTOOL,;t t
12821 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12822 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12823 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12824 s,@MAINT@,$MAINT,;t t
12825 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12826 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12827 s,@bfdlibdir@,$bfdlibdir,;t t
12828 s,@bfdincludedir@,$bfdincludedir,;t t
12829 s,@CPP@,$CPP,;t t
12830 s,@EGREP@,$EGREP,;t t
12831 s,@ALLOCA@,$ALLOCA,;t t
12832 s,@USE_NLS@,$USE_NLS,;t t
12833 s,@MSGFMT@,$MSGFMT,;t t
12834 s,@GMSGFMT@,$GMSGFMT,;t t
12835 s,@XGETTEXT@,$XGETTEXT,;t t
12836 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12837 s,@CATALOGS@,$CATALOGS,;t t
12838 s,@CATOBJEXT@,$CATOBJEXT,;t t
12839 s,@DATADIRNAME@,$DATADIRNAME,;t t
12840 s,@GMOFILES@,$GMOFILES,;t t
12841 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12842 s,@INTLDEPS@,$INTLDEPS,;t t
12843 s,@INTLLIBS@,$INTLLIBS,;t t
12844 s,@INTLOBJS@,$INTLOBJS,;t t
12845 s,@POFILES@,$POFILES,;t t
12846 s,@POSUB@,$POSUB,;t t
12847 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
12848 s,@GT_NO@,$GT_NO,;t t
12849 s,@GT_YES@,$GT_YES,;t t
12850 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12851 s,@l@,$l,;t t
12852 s,@HDEFINES@,$HDEFINES,;t t
12853 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
12854 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
12855 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
12856 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
12857 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
12858 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12859 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12860 s,@COREFILE@,$COREFILE,;t t
12861 s,@COREFLAG@,$COREFLAG,;t t
12862 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12863 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12864 s,@TDEFINES@,$TDEFINES,;t t
12865 s,@wordsize@,$wordsize,;t t
12866 s,@bfd_libs@,$bfd_libs,;t t
12867 s,@all_backends@,$all_backends,;t t
12868 s,@bfd_backends@,$bfd_backends,;t t
12869 s,@bfd_machines@,$bfd_machines,;t t
12870 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
12871 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
12872 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
12873 s,@tdefaults@,$tdefaults,;t t
12874 s,@LIBOBJS@,$LIBOBJS,;t t
12875 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12876 CEOF
12877
12878 _ACEOF
12879
12880   cat >>$CONFIG_STATUS <<\_ACEOF
12881   # Split the substitutions into bite-sized pieces for seds with
12882   # small command number limits, like on Digital OSF/1 and HP-UX.
12883   ac_max_sed_lines=48
12884   ac_sed_frag=1 # Number of current file.
12885   ac_beg=1 # First line for current file.
12886   ac_end=$ac_max_sed_lines # Line after last line for current file.
12887   ac_more_lines=:
12888   ac_sed_cmds=
12889   while $ac_more_lines; do
12890     if test $ac_beg -gt 1; then
12891       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12892     else
12893       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12894     fi
12895     if test ! -s $tmp/subs.frag; then
12896       ac_more_lines=false
12897     else
12898       # The purpose of the label and of the branching condition is to
12899       # speed up the sed processing (if there are no `@' at all, there
12900       # is no need to browse any of the substitutions).
12901       # These are the two extra sed commands mentioned above.
12902       (echo ':t
12903   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12904       if test -z "$ac_sed_cmds"; then
12905         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12906       else
12907         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12908       fi
12909       ac_sed_frag=`expr $ac_sed_frag + 1`
12910       ac_beg=$ac_end
12911       ac_end=`expr $ac_end + $ac_max_sed_lines`
12912     fi
12913   done
12914   if test -z "$ac_sed_cmds"; then
12915     ac_sed_cmds=cat
12916   fi
12917 fi # test -n "$CONFIG_FILES"
12918
12919 _ACEOF
12920 cat >>$CONFIG_STATUS <<\_ACEOF
12921 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12922   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12923   case $ac_file in
12924   - | *:- | *:-:* ) # input from stdin
12925         cat >$tmp/stdin
12926         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12927         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12928   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12929         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12930   * )   ac_file_in=$ac_file.in ;;
12931   esac
12932
12933   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12934   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12935 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12936          X"$ac_file" : 'X\(//\)[^/]' \| \
12937          X"$ac_file" : 'X\(//\)$' \| \
12938          X"$ac_file" : 'X\(/\)' \| \
12939          .     : '\(.\)' 2>/dev/null ||
12940 echo X"$ac_file" |
12941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12942           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12943           /^X\(\/\/\)$/{ s//\1/; q; }
12944           /^X\(\/\).*/{ s//\1/; q; }
12945           s/.*/./; q'`
12946   { if $as_mkdir_p; then
12947     mkdir -p "$ac_dir"
12948   else
12949     as_dir="$ac_dir"
12950     as_dirs=
12951     while test ! -d "$as_dir"; do
12952       as_dirs="$as_dir $as_dirs"
12953       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955          X"$as_dir" : 'X\(//\)[^/]' \| \
12956          X"$as_dir" : 'X\(//\)$' \| \
12957          X"$as_dir" : 'X\(/\)' \| \
12958          .     : '\(.\)' 2>/dev/null ||
12959 echo X"$as_dir" |
12960     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12961           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12962           /^X\(\/\/\)$/{ s//\1/; q; }
12963           /^X\(\/\).*/{ s//\1/; q; }
12964           s/.*/./; q'`
12965     done
12966     test ! -n "$as_dirs" || mkdir $as_dirs
12967   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12968 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12969    { (exit 1); exit 1; }; }; }
12970
12971   ac_builddir=.
12972
12973 if test "$ac_dir" != .; then
12974   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12975   # A "../" for each directory in $ac_dir_suffix.
12976   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12977 else
12978   ac_dir_suffix= ac_top_builddir=
12979 fi
12980
12981 case $srcdir in
12982   .)  # No --srcdir option.  We are building in place.
12983     ac_srcdir=.
12984     if test -z "$ac_top_builddir"; then
12985        ac_top_srcdir=.
12986     else
12987        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12988     fi ;;
12989   [\\/]* | ?:[\\/]* )  # Absolute path.
12990     ac_srcdir=$srcdir$ac_dir_suffix;
12991     ac_top_srcdir=$srcdir ;;
12992   *) # Relative path.
12993     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12994     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12995 esac
12996
12997 # Do not use `cd foo && pwd` to compute absolute paths, because
12998 # the directories may not exist.
12999 case `pwd` in
13000 .) ac_abs_builddir="$ac_dir";;
13001 *)
13002   case "$ac_dir" in
13003   .) ac_abs_builddir=`pwd`;;
13004   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13005   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13006   esac;;
13007 esac
13008 case $ac_abs_builddir in
13009 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13010 *)
13011   case ${ac_top_builddir}. in
13012   .) ac_abs_top_builddir=$ac_abs_builddir;;
13013   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13014   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13015   esac;;
13016 esac
13017 case $ac_abs_builddir in
13018 .) ac_abs_srcdir=$ac_srcdir;;
13019 *)
13020   case $ac_srcdir in
13021   .) ac_abs_srcdir=$ac_abs_builddir;;
13022   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13023   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13024   esac;;
13025 esac
13026 case $ac_abs_builddir in
13027 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13028 *)
13029   case $ac_top_srcdir in
13030   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13031   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13032   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13033   esac;;
13034 esac
13035
13036
13037   case $INSTALL in
13038   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13039   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13040   esac
13041
13042   # Let's still pretend it is `configure' which instantiates (i.e., don't
13043   # use $as_me), people would be surprised to read:
13044   #    /* config.h.  Generated by config.status.  */
13045   if test x"$ac_file" = x-; then
13046     configure_input=
13047   else
13048     configure_input="$ac_file.  "
13049   fi
13050   configure_input=$configure_input"Generated from `echo $ac_file_in |
13051                                      sed 's,.*/,,'` by configure."
13052
13053   # First look for the input files in the build tree, otherwise in the
13054   # src tree.
13055   ac_file_inputs=`IFS=:
13056     for f in $ac_file_in; do
13057       case $f in
13058       -) echo $tmp/stdin ;;
13059       [\\/$]*)
13060          # Absolute (can't be DOS-style, as IFS=:)
13061          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13062 echo "$as_me: error: cannot find input file: $f" >&2;}
13063    { (exit 1); exit 1; }; }
13064          echo "$f";;
13065       *) # Relative
13066          if test -f "$f"; then
13067            # Build tree
13068            echo "$f"
13069          elif test -f "$srcdir/$f"; then
13070            # Source tree
13071            echo "$srcdir/$f"
13072          else
13073            # /dev/null tree
13074            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13075 echo "$as_me: error: cannot find input file: $f" >&2;}
13076    { (exit 1); exit 1; }; }
13077          fi;;
13078       esac
13079     done` || { (exit 1); exit 1; }
13080
13081   if test x"$ac_file" != x-; then
13082     { echo "$as_me:$LINENO: creating $ac_file" >&5
13083 echo "$as_me: creating $ac_file" >&6;}
13084     rm -f "$ac_file"
13085   fi
13086 _ACEOF
13087 cat >>$CONFIG_STATUS <<_ACEOF
13088   sed "$ac_vpsub
13089 $extrasub
13090 _ACEOF
13091 cat >>$CONFIG_STATUS <<\_ACEOF
13092 :t
13093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13094 s,@configure_input@,$configure_input,;t t
13095 s,@srcdir@,$ac_srcdir,;t t
13096 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13097 s,@top_srcdir@,$ac_top_srcdir,;t t
13098 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13099 s,@builddir@,$ac_builddir,;t t
13100 s,@abs_builddir@,$ac_abs_builddir,;t t
13101 s,@top_builddir@,$ac_top_builddir,;t t
13102 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13103 s,@INSTALL@,$ac_INSTALL,;t t
13104 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13105   rm -f $tmp/stdin
13106   if test x"$ac_file" != x-; then
13107     mv $tmp/out $ac_file
13108   else
13109     cat $tmp/out
13110     rm -f $tmp/out
13111   fi
13112
13113 done
13114 _ACEOF
13115 cat >>$CONFIG_STATUS <<\_ACEOF
13116
13117 #
13118 # CONFIG_HEADER section.
13119 #
13120
13121 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13122 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13123 #
13124 # ac_d sets the value in "#define NAME VALUE" lines.
13125 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
13126 ac_dB='[         ].*$,\1#\2'
13127 ac_dC=' '
13128 ac_dD=',;t'
13129 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13130 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
13131 ac_uB='$,\1#\2define\3'
13132 ac_uC=' '
13133 ac_uD=',;t'
13134
13135 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13136   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13137   case $ac_file in
13138   - | *:- | *:-:* ) # input from stdin
13139         cat >$tmp/stdin
13140         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13141         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13142   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13143         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13144   * )   ac_file_in=$ac_file.in ;;
13145   esac
13146
13147   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13148 echo "$as_me: creating $ac_file" >&6;}
13149
13150   # First look for the input files in the build tree, otherwise in the
13151   # src tree.
13152   ac_file_inputs=`IFS=:
13153     for f in $ac_file_in; do
13154       case $f in
13155       -) echo $tmp/stdin ;;
13156       [\\/$]*)
13157          # Absolute (can't be DOS-style, as IFS=:)
13158          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13159 echo "$as_me: error: cannot find input file: $f" >&2;}
13160    { (exit 1); exit 1; }; }
13161          # Do quote $f, to prevent DOS paths from being IFS'd.
13162          echo "$f";;
13163       *) # Relative
13164          if test -f "$f"; then
13165            # Build tree
13166            echo "$f"
13167          elif test -f "$srcdir/$f"; then
13168            # Source tree
13169            echo "$srcdir/$f"
13170          else
13171            # /dev/null tree
13172            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13173 echo "$as_me: error: cannot find input file: $f" >&2;}
13174    { (exit 1); exit 1; }; }
13175          fi;;
13176       esac
13177     done` || { (exit 1); exit 1; }
13178   # Remove the trailing spaces.
13179   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
13180
13181 _ACEOF
13182
13183 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13184 # `conftest.undefs', that substitutes the proper values into
13185 # config.h.in to produce config.h.  The first handles `#define'
13186 # templates, and the second `#undef' templates.
13187 # And first: Protect against being on the right side of a sed subst in
13188 # config.status.  Protect against being in an unquoted here document
13189 # in config.status.
13190 rm -f conftest.defines conftest.undefs
13191 # Using a here document instead of a string reduces the quoting nightmare.
13192 # Putting comments in sed scripts is not portable.
13193 #
13194 # `end' is used to avoid that the second main sed command (meant for
13195 # 0-ary CPP macros) applies to n-ary macro definitions.
13196 # See the Autoconf documentation for `clear'.
13197 cat >confdef2sed.sed <<\_ACEOF
13198 s/[\\&,]/\\&/g
13199 s,[\\$`],\\&,g
13200 t clear
13201 : clear
13202 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13203 t end
13204 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13205 : end
13206 _ACEOF
13207 # If some macros were called several times there might be several times
13208 # the same #defines, which is useless.  Nevertheless, we may not want to
13209 # sort them, since we want the *last* AC-DEFINE to be honored.
13210 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13211 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13212 rm -f confdef2sed.sed
13213
13214 # This sed command replaces #undef with comments.  This is necessary, for
13215 # example, in the case of _POSIX_SOURCE, which is predefined and required
13216 # on some systems where configure will not decide to define it.
13217 cat >>conftest.undefs <<\_ACEOF
13218 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13219 _ACEOF
13220
13221 # Break up conftest.defines because some shells have a limit on the size
13222 # of here documents, and old seds have small limits too (100 cmds).
13223 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13224 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13225 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13226 echo '  :' >>$CONFIG_STATUS
13227 rm -f conftest.tail
13228 while grep . conftest.defines >/dev/null
13229 do
13230   # Write a limited-size here document to $tmp/defines.sed.
13231   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13232   # Speed up: don't consider the non `#define' lines.
13233   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
13234   # Work around the forget-to-reset-the-flag bug.
13235   echo 't clr' >>$CONFIG_STATUS
13236   echo ': clr' >>$CONFIG_STATUS
13237   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13238   echo 'CEOF
13239   sed -f $tmp/defines.sed $tmp/in >$tmp/out
13240   rm -f $tmp/in
13241   mv $tmp/out $tmp/in
13242 ' >>$CONFIG_STATUS
13243   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13244   rm -f conftest.defines
13245   mv conftest.tail conftest.defines
13246 done
13247 rm -f conftest.defines
13248 echo '  fi # grep' >>$CONFIG_STATUS
13249 echo >>$CONFIG_STATUS
13250
13251 # Break up conftest.undefs because some shells have a limit on the size
13252 # of here documents, and old seds have small limits too (100 cmds).
13253 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13254 rm -f conftest.tail
13255 while grep . conftest.undefs >/dev/null
13256 do
13257   # Write a limited-size here document to $tmp/undefs.sed.
13258   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13259   # Speed up: don't consider the non `#undef'
13260   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
13261   # Work around the forget-to-reset-the-flag bug.
13262   echo 't clr' >>$CONFIG_STATUS
13263   echo ': clr' >>$CONFIG_STATUS
13264   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13265   echo 'CEOF
13266   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13267   rm -f $tmp/in
13268   mv $tmp/out $tmp/in
13269 ' >>$CONFIG_STATUS
13270   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13271   rm -f conftest.undefs
13272   mv conftest.tail conftest.undefs
13273 done
13274 rm -f conftest.undefs
13275
13276 cat >>$CONFIG_STATUS <<\_ACEOF
13277   # Let's still pretend it is `configure' which instantiates (i.e., don't
13278   # use $as_me), people would be surprised to read:
13279   #    /* config.h.  Generated by config.status.  */
13280   if test x"$ac_file" = x-; then
13281     echo "/* Generated by configure.  */" >$tmp/config.h
13282   else
13283     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
13284   fi
13285   cat $tmp/in >>$tmp/config.h
13286   rm -f $tmp/in
13287   if test x"$ac_file" != x-; then
13288     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13289       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13290 echo "$as_me: $ac_file is unchanged" >&6;}
13291     else
13292       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13294          X"$ac_file" : 'X\(//\)[^/]' \| \
13295          X"$ac_file" : 'X\(//\)$' \| \
13296          X"$ac_file" : 'X\(/\)' \| \
13297          .     : '\(.\)' 2>/dev/null ||
13298 echo X"$ac_file" |
13299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13300           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13301           /^X\(\/\/\)$/{ s//\1/; q; }
13302           /^X\(\/\).*/{ s//\1/; q; }
13303           s/.*/./; q'`
13304       { if $as_mkdir_p; then
13305     mkdir -p "$ac_dir"
13306   else
13307     as_dir="$ac_dir"
13308     as_dirs=
13309     while test ! -d "$as_dir"; do
13310       as_dirs="$as_dir $as_dirs"
13311       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13313          X"$as_dir" : 'X\(//\)[^/]' \| \
13314          X"$as_dir" : 'X\(//\)$' \| \
13315          X"$as_dir" : 'X\(/\)' \| \
13316          .     : '\(.\)' 2>/dev/null ||
13317 echo X"$as_dir" |
13318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13319           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13320           /^X\(\/\/\)$/{ s//\1/; q; }
13321           /^X\(\/\).*/{ s//\1/; q; }
13322           s/.*/./; q'`
13323     done
13324     test ! -n "$as_dirs" || mkdir $as_dirs
13325   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13326 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13327    { (exit 1); exit 1; }; }; }
13328
13329       rm -f $ac_file
13330       mv $tmp/config.h $ac_file
13331     fi
13332   else
13333     cat $tmp/config.h
13334     rm -f $tmp/config.h
13335   fi
13336 done
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<\_ACEOF
13339
13340 #
13341 # CONFIG_COMMANDS section.
13342 #
13343 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13344   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13345   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13346   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13347 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13348          X"$ac_dest" : 'X\(//\)[^/]' \| \
13349          X"$ac_dest" : 'X\(//\)$' \| \
13350          X"$ac_dest" : 'X\(/\)' \| \
13351          .     : '\(.\)' 2>/dev/null ||
13352 echo X"$ac_dest" |
13353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13354           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13355           /^X\(\/\/\)$/{ s//\1/; q; }
13356           /^X\(\/\).*/{ s//\1/; q; }
13357           s/.*/./; q'`
13358   { if $as_mkdir_p; then
13359     mkdir -p "$ac_dir"
13360   else
13361     as_dir="$ac_dir"
13362     as_dirs=
13363     while test ! -d "$as_dir"; do
13364       as_dirs="$as_dir $as_dirs"
13365       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13367          X"$as_dir" : 'X\(//\)[^/]' \| \
13368          X"$as_dir" : 'X\(//\)$' \| \
13369          X"$as_dir" : 'X\(/\)' \| \
13370          .     : '\(.\)' 2>/dev/null ||
13371 echo X"$as_dir" |
13372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13373           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13374           /^X\(\/\/\)$/{ s//\1/; q; }
13375           /^X\(\/\).*/{ s//\1/; q; }
13376           s/.*/./; q'`
13377     done
13378     test ! -n "$as_dirs" || mkdir $as_dirs
13379   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13380 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13381    { (exit 1); exit 1; }; }; }
13382
13383   ac_builddir=.
13384
13385 if test "$ac_dir" != .; then
13386   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13387   # A "../" for each directory in $ac_dir_suffix.
13388   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13389 else
13390   ac_dir_suffix= ac_top_builddir=
13391 fi
13392
13393 case $srcdir in
13394   .)  # No --srcdir option.  We are building in place.
13395     ac_srcdir=.
13396     if test -z "$ac_top_builddir"; then
13397        ac_top_srcdir=.
13398     else
13399        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13400     fi ;;
13401   [\\/]* | ?:[\\/]* )  # Absolute path.
13402     ac_srcdir=$srcdir$ac_dir_suffix;
13403     ac_top_srcdir=$srcdir ;;
13404   *) # Relative path.
13405     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13406     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13407 esac
13408
13409 # Do not use `cd foo && pwd` to compute absolute paths, because
13410 # the directories may not exist.
13411 case `pwd` in
13412 .) ac_abs_builddir="$ac_dir";;
13413 *)
13414   case "$ac_dir" in
13415   .) ac_abs_builddir=`pwd`;;
13416   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13417   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13418   esac;;
13419 esac
13420 case $ac_abs_builddir in
13421 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13422 *)
13423   case ${ac_top_builddir}. in
13424   .) ac_abs_top_builddir=$ac_abs_builddir;;
13425   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13426   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13427   esac;;
13428 esac
13429 case $ac_abs_builddir in
13430 .) ac_abs_srcdir=$ac_srcdir;;
13431 *)
13432   case $ac_srcdir in
13433   .) ac_abs_srcdir=$ac_abs_builddir;;
13434   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13435   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13436   esac;;
13437 esac
13438 case $ac_abs_builddir in
13439 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13440 *)
13441   case $ac_top_srcdir in
13442   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13443   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13444   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13445   esac;;
13446 esac
13447
13448
13449   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13450 echo "$as_me: executing $ac_dest commands" >&6;}
13451   case $ac_dest in
13452     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13453     default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
13454   esac
13455 done
13456 _ACEOF
13457
13458 cat >>$CONFIG_STATUS <<\_ACEOF
13459
13460 { (exit 0); exit 0; }
13461 _ACEOF
13462 chmod +x $CONFIG_STATUS
13463 ac_clean_files=$ac_clean_files_save
13464
13465
13466 # configure is writing to config.log, and then calls config.status.
13467 # config.status does its own redirection, appending to config.log.
13468 # Unfortunately, on DOS this fails, as config.log is still kept open
13469 # by configure, so config.status won't be able to write to it; its
13470 # output is simply discarded.  So we exec the FD to /dev/null,
13471 # effectively closing config.log, so it can be properly (re)opened and
13472 # appended to by config.status.  When coming back to configure, we
13473 # need to make the FD available again.
13474 if test "$no_create" != yes; then
13475   ac_cs_success=:
13476   ac_config_status_args=
13477   test "$silent" = yes &&
13478     ac_config_status_args="$ac_config_status_args --quiet"
13479   exec 5>/dev/null
13480   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13481   exec 5>>config.log
13482   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13483   # would make configure fail if this is the last instruction.
13484   $ac_cs_success || { (exit 1); exit 1; }
13485 fi
13486
13487