daily update
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
5464f5a1
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
5464f5a1
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="libbfd.c"
275# Factoring default headers for most tests.
276ac_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
9e9b66a9 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
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.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
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
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
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"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
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=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
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 ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
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 \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
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=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
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; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
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" ;;
252b5132
RH
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=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
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=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
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
252b5132 641 *)
5464f5a1
NN
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}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
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; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
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; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
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 ||
715echo 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'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if 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.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
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
804Installation 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]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine 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
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program 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
252b5132 838
5464f5a1
NN
839System 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
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
6ec7057a 862 --enable-secureplt Default to creating read-only plt entries
569acd2c 863 --enable-werror treat compile warnings as errors
9e9b66a9 864 --enable-build-warnings Enable build-time compiler warnings
f5385ebf
AM
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
5464f5a1
NN
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
869
870Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-included-gettext use the GNU gettext library included here
877
878Some influential environment variables:
879 CC C compiler command
880 CFLAGS C compiler flags
881 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
882 nonstandard directory <lib dir>
883 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
884 headers in a nonstandard directory <include dir>
885 CPP C preprocessor
886
887Use these variables to override the choices made by `configure' or to help
888it to find libraries and programs with nonstandard names/locations.
889
890_ACEOF
891fi
892
893if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
899
900if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904else
905 ac_dir_suffix= ac_top_builddir=
906fi
907
908case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
922esac
923
5464f5a1
NN
924# Do not use `cd foo && pwd` to compute absolute paths, because
925# the directories may not exist.
926case `pwd` in
927.) ac_abs_builddir="$ac_dir";;
928*)
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934esac
935case $ac_abs_builddir in
936.) ac_abs_top_builddir=${ac_top_builddir}.;;
937*)
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943esac
944case $ac_abs_builddir in
945.) ac_abs_srcdir=$ac_srcdir;;
946*)
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_srcdir=$ac_top_srcdir;;
955*)
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961esac
6be7c12c 962
5464f5a1
NN
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 fi
6ec7057a 978 cd "$ac_popdir"
5464f5a1 979 done
6be7c12c
AO
980fi
981
5464f5a1
NN
982test -n "$ac_init_help" && exit 0
983if $ac_init_version; then
984 cat <<\_ACEOF
6be7c12c 985
5464f5a1
NN
986Copyright (C) 2003 Free Software Foundation, Inc.
987This configure script is free software; the Free Software Foundation
988gives unlimited permission to copy, distribute and modify it.
989_ACEOF
990 exit 0
991fi
992exec 5>config.log
993cat >&5 <<_ACEOF
994This file contains any messages produced by compilers while
995running configure, to aid debugging if configure makes a mistake.
6be7c12c 996
5464f5a1
NN
997It was created by $as_me, which was
998generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 999
5464f5a1 1000 $ $0 $@
6be7c12c 1001
5464f5a1
NN
1002_ACEOF
1003{
1004cat <<_ASUNAME
1005## --------- ##
1006## Platform. ##
1007## --------- ##
1008
1009hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1010uname -m = `(uname -m) 2>/dev/null || echo unknown`
1011uname -r = `(uname -r) 2>/dev/null || echo unknown`
1012uname -s = `(uname -s) 2>/dev/null || echo unknown`
1013uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014
1015/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1016/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017
1018/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1019/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1020/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1021hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1022/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1023/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1024/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025
1026_ASUNAME
1027
1028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029for as_dir in $PATH
1030do
1031 IFS=$as_save_IFS
1032 test -z "$as_dir" && as_dir=.
1033 echo "PATH: $as_dir"
1034done
6be7c12c 1035
5464f5a1 1036} >&5
66e25bab 1037
5464f5a1 1038cat >&5 <<_ACEOF
b3baf5d0 1039
6be7c12c 1040
5464f5a1
NN
1041## ----------- ##
1042## Core tests. ##
1043## ----------- ##
252b5132 1044
5464f5a1 1045_ACEOF
c5d1701e 1046
6be7c12c 1047
5464f5a1
NN
1048# Keep a trace of the command line.
1049# Strip out --no-create and --no-recursion so they do not pile up.
1050# Strip out --silent because we don't want to record it for future runs.
1051# Also quote any args containing shell meta-characters.
1052# Make two passes to allow for proper duplicate-argument suppression.
1053ac_configure_args=
1054ac_configure_args0=
1055ac_configure_args1=
1056ac_sep=
1057ac_must_keep_next=false
1058for ac_pass in 1 2
1059do
1060 for ac_arg
1061 do
1062 case $ac_arg in
1063 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 continue ;;
1067 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1068 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 esac
1070 case $ac_pass in
1071 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 2)
1073 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1074 if test $ac_must_keep_next = true; then
1075 ac_must_keep_next=false # Got value, back to normal.
1076 else
1077 case $ac_arg in
1078 *=* | --config-cache | -C | -disable-* | --disable-* \
1079 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1080 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1081 | -with-* | --with-* | -without-* | --without-* | --x)
1082 case "$ac_configure_args0 " in
1083 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 esac
1085 ;;
1086 -* ) ac_must_keep_next=true ;;
1087 esac
1088 fi
1089 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1090 # Get rid of the leading space.
1091 ac_sep=" "
1092 ;;
1093 esac
1094 done
1095done
1096$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1097$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098
1099# When interrupted or exit'd, cleanup temporary files, and complete
1100# config.log. We remove comments because anyway the quotes in there
1101# would cause problems or look ugly.
1102# WARNING: Be sure not to use single quotes in there, as some shells,
1103# such as our DU 5.0 friend, will then `close' the trap.
1104trap 'exit_status=$?
1105 # Save into config.log some information that might help in debugging.
1106 {
1107 echo
1108
1109 cat <<\_ASBOX
1110## ---------------- ##
1111## Cache variables. ##
1112## ---------------- ##
1113_ASBOX
1114 echo
1115 # The following way of writing the cache mishandles newlines in values,
1116{
1117 (set) 2>&1 |
1118 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 *ac_space=\ *)
1120 sed -n \
1121 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 ;;
1124 *)
1125 sed -n \
1126 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1127 ;;
1128 esac;
1129}
1130 echo
1131
1132 cat <<\_ASBOX
1133## ----------------- ##
1134## Output variables. ##
1135## ----------------- ##
1136_ASBOX
1137 echo
1138 for ac_var in $ac_subst_vars
1139 do
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1142 done | sort
1143 echo
1144
1145 if test -n "$ac_subst_files"; then
1146 cat <<\_ASBOX
1147## ------------- ##
1148## Output files. ##
1149## ------------- ##
1150_ASBOX
1151 echo
1152 for ac_var in $ac_subst_files
1153 do
1154 eval ac_val=$`echo $ac_var`
1155 echo "$ac_var='"'"'$ac_val'"'"'"
1156 done | sort
1157 echo
1158 fi
1159
1160 if test -s confdefs.h; then
1161 cat <<\_ASBOX
1162## ----------- ##
1163## confdefs.h. ##
1164## ----------- ##
1165_ASBOX
1166 echo
1167 sed "/^$/d" confdefs.h | sort
1168 echo
1169 fi
1170 test "$ac_signal" != 0 &&
1171 echo "$as_me: caught signal $ac_signal"
1172 echo "$as_me: exit $exit_status"
1173 } >&5
1174 rm -f core *.core &&
1175 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 exit $exit_status
1177 ' 0
1178for ac_signal in 1 2 13 15; do
1179 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180done
1181ac_signal=0
1182
1183# confdefs.h avoids OS command line length limits that DEFS can exceed.
1184rm -rf conftest* confdefs.h
1185# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186echo >confdefs.h
1187
1188# Predefined preprocessor variables.
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_NAME "$PACKAGE_NAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_VERSION "$PACKAGE_VERSION"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_STRING "$PACKAGE_STRING"
1207_ACEOF
1208
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212_ACEOF
1213
1214
1215# Let the site file select an alternate cache file if it wants to.
1216# Prefer explicitly selected file to automatically selected ones.
1217if test -z "$CONFIG_SITE"; then
1218 if test "x$prefix" != xNONE; then
1219 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 else
1221 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 fi
1223fi
1224for ac_site_file in $CONFIG_SITE; do
1225 if test -r "$ac_site_file"; then
1226 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1227echo "$as_me: loading site script $ac_site_file" >&6;}
1228 sed 's/^/| /' "$ac_site_file" >&5
1229 . "$ac_site_file"
1230 fi
1231done
1232
1233if test -r "$cache_file"; then
1234 # Some versions of bash will fail to source /dev/null (special
1235 # files actually), so we avoid doing that.
1236 if test -f "$cache_file"; then
1237 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1238echo "$as_me: loading cache $cache_file" >&6;}
1239 case $cache_file in
1240 [\\/]* | ?:[\\/]* ) . $cache_file;;
1241 *) . ./$cache_file;;
1242 esac
1243 fi
1244else
1245 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1246echo "$as_me: creating cache $cache_file" >&6;}
1247 >$cache_file
1248fi
1249
1250# Check that the precious variables saved in the cache have kept the same
1251# value.
1252ac_cache_corrupted=false
1253for ac_var in `(set) 2>&1 |
1254 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1256 eval ac_new_set=\$ac_env_${ac_var}_set
1257 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1258 eval ac_new_val="\$ac_env_${ac_var}_value"
1259 case $ac_old_set,$ac_new_set in
1260 set,)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,set)
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1266echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1268 ,);;
1269 *)
1270 if test "x$ac_old_val" != "x$ac_new_val"; then
1271 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1272echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1273 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1274echo "$as_me: former value: $ac_old_val" >&2;}
1275 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1276echo "$as_me: current value: $ac_new_val" >&2;}
1277 ac_cache_corrupted=:
1278 fi;;
1279 esac
1280 # Pass precious variables to config.status.
1281 if test "$ac_new_set" = set; then
1282 case $ac_new_val in
1283 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1284 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1285 *) ac_arg=$ac_var=$ac_new_val ;;
1286 esac
1287 case " $ac_configure_args " in
1288 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1289 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 esac
1291 fi
1292done
1293if $ac_cache_corrupted; then
1294 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1295echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1296 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1297echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1298 { (exit 1); exit 1; }; }
1299fi
1300
1301ac_ext=c
1302ac_cpp='$CPP $CPPFLAGS'
1303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1305ac_compiler_gnu=$ac_cv_c_compiler_gnu
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327ac_aux_dir=
1328for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1332 break
1333 elif test -f $ac_dir/install.sh; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1336 break
1337 elif test -f $ac_dir/shtool; then
1338 ac_aux_dir=$ac_dir
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1340 break
1341 fi
1342done
1343if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1347fi
1348ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352# Make sure we can run config.sub.
1353$ac_config_sub sun4 >/dev/null 2>&1 ||
1354 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1355echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1356 { (exit 1); exit 1; }; }
1357
1358echo "$as_me:$LINENO: checking build system type" >&5
1359echo $ECHO_N "checking build system type... $ECHO_C" >&6
1360if test "${ac_cv_build+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362else
1363 ac_cv_build_alias=$build_alias
1364test -z "$ac_cv_build_alias" &&
1365 ac_cv_build_alias=`$ac_config_guess`
1366test -z "$ac_cv_build_alias" &&
1367 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1368echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1369 { (exit 1); exit 1; }; }
1370ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1372echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1374
1375fi
1376echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1377echo "${ECHO_T}$ac_cv_build" >&6
1378build=$ac_cv_build
1379build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384echo "$as_me:$LINENO: checking host system type" >&5
1385echo $ECHO_N "checking host system type... $ECHO_C" >&6
1386if test "${ac_cv_host+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 ac_cv_host_alias=$host_alias
1390test -z "$ac_cv_host_alias" &&
1391 ac_cv_host_alias=$ac_cv_build_alias
1392ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1393 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1394echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1395 { (exit 1); exit 1; }; }
1396
1397fi
1398echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1399echo "${ECHO_T}$ac_cv_host" >&6
1400host=$ac_cv_host
1401host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1402host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1403host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404
1405
1406echo "$as_me:$LINENO: checking target system type" >&5
1407echo $ECHO_N "checking target system type... $ECHO_C" >&6
1408if test "${ac_cv_target+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1410else
1411 ac_cv_target_alias=$target_alias
1412test "x$ac_cv_target_alias" = "x" &&
1413 ac_cv_target_alias=$ac_cv_host_alias
1414ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1415 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1416echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1417 { (exit 1); exit 1; }; }
1418
1419fi
1420echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1421echo "${ECHO_T}$ac_cv_target" >&6
1422target=$ac_cv_target
1423target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1424target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1425target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426
1427
1428# The aliases save the names the user supplied, while $host etc.
1429# will get canonicalized.
1430test -n "$target_alias" &&
1431 test "$program_prefix$program_suffix$program_transform_name" = \
1432 NONENONEs,x,x, &&
1433 program_prefix=${target_alias}-
1434ac_ext=c
1435ac_cpp='$CPP $CPPFLAGS'
1436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1438ac_compiler_gnu=$ac_cv_c_compiler_gnu
1439if test -n "$ac_tool_prefix"; then
1440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1441set dummy ${ac_tool_prefix}gcc; ac_word=$2
1442echo "$as_me:$LINENO: checking for $ac_word" >&5
1443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1444if test "${ac_cv_prog_CC+set}" = set; then
1445 echo $ECHO_N "(cached) $ECHO_C" >&6
1446else
1447 if test -n "$CC"; then
1448 ac_cv_prog_CC="$CC" # Let the user override the test.
1449else
1450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1451for as_dir in $PATH
1452do
1453 IFS=$as_save_IFS
1454 test -z "$as_dir" && as_dir=.
1455 for ac_exec_ext in '' $ac_executable_extensions; do
1456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1459 break 2
1460 fi
1461done
1462done
1463
1464fi
1465fi
1466CC=$ac_cv_prog_CC
1467if test -n "$CC"; then
1468 echo "$as_me:$LINENO: result: $CC" >&5
1469echo "${ECHO_T}$CC" >&6
1470else
1471 echo "$as_me:$LINENO: result: no" >&5
1472echo "${ECHO_T}no" >&6
1473fi
1474
1475fi
1476if test -z "$ac_cv_prog_CC"; then
1477 ac_ct_CC=$CC
1478 # Extract the first word of "gcc", so it can be a program name with args.
1479set dummy gcc; ac_word=$2
1480echo "$as_me:$LINENO: checking for $ac_word" >&5
1481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1484else
1485 if test -n "$ac_ct_CC"; then
1486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1487else
1488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489for as_dir in $PATH
1490do
1491 IFS=$as_save_IFS
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_ac_ct_CC="gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497 break 2
1498 fi
1499done
1500done
1501
1502fi
1503fi
1504ac_ct_CC=$ac_cv_prog_ac_ct_CC
1505if test -n "$ac_ct_CC"; then
1506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1507echo "${ECHO_T}$ac_ct_CC" >&6
1508else
1509 echo "$as_me:$LINENO: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513 CC=$ac_ct_CC
1514else
1515 CC="$ac_cv_prog_CC"
1516fi
1517
1518if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1521set dummy ${ac_tool_prefix}cc; ac_word=$2
1522echo "$as_me:$LINENO: checking for $ac_word" >&5
1523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529else
1530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531for as_dir in $PATH
1532do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="${ac_tool_prefix}cc"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541done
1542done
1543
1544fi
1545fi
1546CC=$ac_cv_prog_CC
1547if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549echo "${ECHO_T}$CC" >&6
1550else
1551 echo "$as_me:$LINENO: result: no" >&5
1552echo "${ECHO_T}no" >&6
1553fi
1554
1555fi
1556if test -z "$ac_cv_prog_CC"; then
1557 ac_ct_CC=$CC
1558 # Extract the first word of "cc", so it can be a program name with args.
1559set dummy cc; ac_word=$2
1560echo "$as_me:$LINENO: checking for $ac_word" >&5
1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567else
1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582fi
1583fi
1584ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587echo "${ECHO_T}$ac_ct_CC" >&6
1588else
1589 echo "$as_me:$LINENO: result: no" >&5
1590echo "${ECHO_T}no" >&6
1591fi
1592
1593 CC=$ac_ct_CC
1594else
1595 CC="$ac_cv_prog_CC"
1596fi
1597
1598fi
1599if test -z "$CC"; then
1600 # Extract the first word of "cc", so it can be a program name with args.
1601set dummy cc; ac_word=$2
1602echo "$as_me:$LINENO: checking for $ac_word" >&5
1603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1604if test "${ac_cv_prog_CC+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1606else
1607 if test -n "$CC"; then
1608 ac_cv_prog_CC="$CC" # Let the user override the test.
1609else
1610 ac_prog_rejected=no
1611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612for as_dir in $PATH
1613do
1614 IFS=$as_save_IFS
1615 test -z "$as_dir" && as_dir=.
1616 for ac_exec_ext in '' $ac_executable_extensions; do
1617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1619 ac_prog_rejected=yes
1620 continue
1621 fi
1622 ac_cv_prog_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
1627done
1628
1629if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy $ac_cv_prog_CC
1632 shift
1633 if test $# != 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1637 shift
1638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1639 fi
1640fi
1641fi
1642fi
1643CC=$ac_cv_prog_CC
1644if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646echo "${ECHO_T}$CC" >&6
1647else
1648 echo "$as_me:$LINENO: result: no" >&5
1649echo "${ECHO_T}no" >&6
1650fi
1651
1652fi
1653if test -z "$CC"; then
1654 if test -n "$ac_tool_prefix"; then
1655 for ac_prog in cl
1656 do
1657 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1658set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1659echo "$as_me:$LINENO: checking for $ac_word" >&5
1660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664 if test -n "$CC"; then
1665 ac_cv_prog_CC="$CC" # Let the user override the test.
1666else
1667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
1679done
1680
1681fi
1682fi
1683CC=$ac_cv_prog_CC
1684if test -n "$CC"; then
1685 echo "$as_me:$LINENO: result: $CC" >&5
1686echo "${ECHO_T}$CC" >&6
1687else
1688 echo "$as_me:$LINENO: result: no" >&5
1689echo "${ECHO_T}no" >&6
1690fi
1691
1692 test -n "$CC" && break
1693 done
1694fi
1695if test -z "$CC"; then
1696 ac_ct_CC=$CC
1697 for ac_prog in cl
1698do
1699 # Extract the first word of "$ac_prog", so it can be a program name with args.
1700set dummy $ac_prog; ac_word=$2
1701echo "$as_me:$LINENO: checking for $ac_word" >&5
1702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$ac_ct_CC"; then
1707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1708else
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
1714 for ac_exec_ext in '' $ac_executable_extensions; do
1715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716 ac_cv_prog_ac_ct_CC="$ac_prog"
1717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 break 2
1719 fi
1720done
1721done
1722
1723fi
1724fi
1725ac_ct_CC=$ac_cv_prog_ac_ct_CC
1726if test -n "$ac_ct_CC"; then
1727 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1728echo "${ECHO_T}$ac_ct_CC" >&6
1729else
1730 echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734 test -n "$ac_ct_CC" && break
1735done
1736
1737 CC=$ac_ct_CC
1738fi
1739
1740fi
1741
1742
1743test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&5
1745echo "$as_me: error: no acceptable C compiler found in \$PATH
1746See \`config.log' for more details." >&2;}
1747 { (exit 1); exit 1; }; }
1748
1749# Provide some information about the compiler.
1750echo "$as_me:$LINENO:" \
1751 "checking for C compiler version" >&5
1752ac_compiler=`set X $ac_compile; echo $2`
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1754 (eval $ac_compiler --version </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1759 (eval $ac_compiler -v </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1764 (eval $ac_compiler -V </dev/null >&5) 2>&5
1765 ac_status=$?
1766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767 (exit $ac_status); }
1768
1769cat >conftest.$ac_ext <<_ACEOF
1770/* confdefs.h. */
1771_ACEOF
1772cat confdefs.h >>conftest.$ac_ext
1773cat >>conftest.$ac_ext <<_ACEOF
1774/* end confdefs.h. */
1775
1776int
1777main ()
1778{
1779
1780 ;
1781 return 0;
1782}
1783_ACEOF
1784ac_clean_files_save=$ac_clean_files
1785ac_clean_files="$ac_clean_files a.out a.exe b.out"
1786# Try to create an executable without -o first, disregard a.out.
1787# It will help us diagnose broken compilers, and finding out an intuition
1788# of exeext.
1789echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1790echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1792if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1793 (eval $ac_link_default) 2>&5
1794 ac_status=$?
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }; then
1797 # Find the output, starting from the most likely. This scheme is
1798# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1799# resort.
1800
1801# Be careful to initialize this variable, since it used to be cached.
1802# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1803ac_cv_exeext=
1804# b.out is created by i960 compilers.
1805for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1806do
1807 test -f "$ac_file" || continue
1808 case $ac_file in
1809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1810 ;;
1811 conftest.$ac_ext )
1812 # This is the source file.
1813 ;;
1814 [ab].out )
1815 # We found the default executable, but exeext='' is most
1816 # certainly right.
1817 break;;
1818 *.* )
1819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1820 # FIXME: I believe we export ac_cv_exeext for Libtool,
1821 # but it would be cool to find out if it's true. Does anybody
1822 # maintain Libtool? --akim.
1823 export ac_cv_exeext
1824 break;;
1825 * )
1826 break;;
1827 esac
1828done
1829else
1830 echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1834See \`config.log' for more details." >&5
1835echo "$as_me: error: C compiler cannot create executables
1836See \`config.log' for more details." >&2;}
1837 { (exit 77); exit 77; }; }
1838fi
1839
1840ac_exeext=$ac_cv_exeext
1841echo "$as_me:$LINENO: result: $ac_file" >&5
1842echo "${ECHO_T}$ac_file" >&6
1843
1844# Check the compiler produces executables we can run. If not, either
1845# the compiler is broken, or we cross compile.
1846echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1847echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1848# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1849# If not cross compiling, check that we can run a simple program.
1850if test "$cross_compiling" != yes; then
1851 if { ac_try='./$ac_file'
1852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1853 (eval $ac_try) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; }; then
1857 cross_compiling=no
1858 else
1859 if test "$cross_compiling" = maybe; then
1860 cross_compiling=yes
1861 else
1862 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1863If you meant to cross compile, use \`--host'.
1864See \`config.log' for more details." >&5
1865echo "$as_me: error: cannot run C compiled programs.
1866If you meant to cross compile, use \`--host'.
1867See \`config.log' for more details." >&2;}
1868 { (exit 1); exit 1; }; }
1869 fi
1870 fi
1871fi
1872echo "$as_me:$LINENO: result: yes" >&5
1873echo "${ECHO_T}yes" >&6
1874
1875rm -f a.out a.exe conftest$ac_cv_exeext b.out
1876ac_clean_files=$ac_clean_files_save
1877# Check the compiler produces executables we can run. If not, either
1878# the compiler is broken, or we cross compile.
1879echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1880echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1881echo "$as_me:$LINENO: result: $cross_compiling" >&5
1882echo "${ECHO_T}$cross_compiling" >&6
1883
1884echo "$as_me:$LINENO: checking for suffix of executables" >&5
1885echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1887 (eval $ac_link) 2>&5
1888 ac_status=$?
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; then
1891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1892# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1893# work properly (i.e., refer to `conftest.exe'), while it won't with
1894# `rm'.
1895for ac_file in conftest.exe conftest conftest.*; do
1896 test -f "$ac_file" || continue
1897 case $ac_file in
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1900 export ac_cv_exeext
1901 break;;
1902 * ) break;;
1903 esac
1904done
1905else
1906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1909See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest$ac_cv_exeext
1914echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1915echo "${ECHO_T}$ac_cv_exeext" >&6
1916
1917rm -f conftest.$ac_ext
1918EXEEXT=$ac_cv_exeext
1919ac_exeext=$EXEEXT
1920echo "$as_me:$LINENO: checking for suffix of object files" >&5
1921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1922if test "${ac_cv_objext+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924else
1925 cat >conftest.$ac_ext <<_ACEOF
1926/* confdefs.h. */
1927_ACEOF
1928cat confdefs.h >>conftest.$ac_ext
1929cat >>conftest.$ac_ext <<_ACEOF
1930/* end confdefs.h. */
1931
1932int
1933main ()
1934{
1935
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940rm -f conftest.o conftest.obj
1941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952done
1953else
1954 echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&5
1959echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&2;}
1961 { (exit 1); exit 1; }; }
1962fi
1963
1964rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965fi
1966echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1967echo "${ECHO_T}$ac_cv_objext" >&6
1968OBJEXT=$ac_cv_objext
1969ac_objext=$OBJEXT
1970echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 cat >conftest.$ac_ext <<_ACEOF
1976/* confdefs.h. */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h. */
1981
1982int
1983main ()
1984{
1985#ifndef __GNUC__
1986 choke me
1987#endif
1988
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993rm -f conftest.$ac_objext
1994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>conftest.er1
1996 ac_status=$?
1997 grep -v '^ *+' conftest.er1 >conftest.err
1998 rm -f conftest.er1
1999 cat conftest.err >&5
2000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001 (exit $ac_status); } &&
6ec7057a 2002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015else
2016 echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019ac_compiler_gnu=no
2020fi
2021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024fi
2025echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027GCC=`test $ac_compiler_gnu = yes && echo yes`
2028ac_test_CFLAGS=${CFLAGS+set}
2029ac_save_CFLAGS=$CFLAGS
2030CFLAGS="-g"
2031echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 cat >conftest.$ac_ext <<_ACEOF
2037/* confdefs.h. */
2038_ACEOF
2039cat confdefs.h >>conftest.$ac_ext
2040cat >>conftest.$ac_ext <<_ACEOF
2041/* end confdefs.h. */
2042
2043int
2044main ()
2045{
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051rm -f conftest.$ac_objext
2052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
6ec7057a 2060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073else
2074 echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077ac_cv_prog_cc_g=no
2078fi
2079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2090 fi
2091else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2096 fi
2097fi
2098echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103 ac_cv_prog_cc_stdc=no
2104ac_save_CC=$CC
2105cat >conftest.$ac_ext <<_ACEOF
2106/* confdefs.h. */
2107_ACEOF
2108cat confdefs.h >>conftest.$ac_ext
2109cat >>conftest.$ac_ext <<_ACEOF
2110/* end confdefs.h. */
2111#include <stdarg.h>
2112#include <stdio.h>
2113#include <sys/types.h>
2114#include <sys/stat.h>
2115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116struct buf { int x; };
2117FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118static char *e (p, i)
2119 char **p;
2120 int i;
2121{
2122 return p[i];
2123}
2124static char *f (char * (*g) (char **, int), char **p, ...)
2125{
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2132}
2133
2134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143int test (int i, double x);
2144struct s1 {int (*f) (int a);};
2145struct s2 {int (*f) (double a);};
2146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147int argc;
2148char **argv;
2149int
2150main ()
2151{
2152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157# Don't try gcc -ansi; that turns off useful extensions and
2158# breaks some systems' header files.
2159# AIX -qlanglvl=ansi
2160# Ultrix and OSF/1 -std1
2161# HP-UX 10.20 and later -Ae
2162# HP-UX older versions -Aa -D_HPUX_SOURCE
2163# SVR4 -Xc -D__EXTENSIONS__
2164for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165do
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
6ec7057a 2176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; } &&
2182 { ac_try='test -s conftest.$ac_objext'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 ac_cv_prog_cc_stdc=$ac_arg
2189break
2190else
2191 echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194fi
2195rm -f conftest.err conftest.$ac_objext
2196done
2197rm -f conftest.$ac_ext conftest.$ac_objext
2198CC=$ac_save_CC
2199
2200fi
2201
2202case "x$ac_cv_prog_cc_stdc" in
2203 x|xno)
2204 echo "$as_me:$LINENO: result: none needed" >&5
2205echo "${ECHO_T}none needed" >&6 ;;
2206 *)
2207 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2208echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2209 CC="$CC $ac_cv_prog_cc_stdc" ;;
2210esac
2211
2212# Some people use a C++ compiler to compile C. Since we use `exit',
2213# in C++ we need to declare it. In case someone uses the same compiler
2214# for both compiling C and C++ we need to have the C++ compiler decide
2215# the declaration of exit, since it's the most demanding environment.
2216cat >conftest.$ac_ext <<_ACEOF
2217#ifndef __cplusplus
2218 choke me
2219#endif
2220_ACEOF
2221rm -f conftest.$ac_objext
2222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2223 (eval $ac_compile) 2>conftest.er1
2224 ac_status=$?
2225 grep -v '^ *+' conftest.er1 >conftest.err
2226 rm -f conftest.er1
2227 cat conftest.err >&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); } &&
6ec7057a 2230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249do
2250 cat >conftest.$ac_ext <<_ACEOF
2251/* confdefs.h. */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h. */
2256$ac_declaration
2257#include <stdlib.h>
2258int
2259main ()
2260{
2261exit (42);
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
6ec7057a 2275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 :
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292continue
2293fi
2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
2301$ac_declaration
2302int
2303main ()
2304{
2305exit (42);
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
6ec7057a 2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 break
2332else
2333 echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336fi
2337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2338done
2339rm -f conftest*
2340if test -n "$ac_declaration"; then
2341 echo '#ifdef __cplusplus' >>confdefs.h
2342 echo $ac_declaration >>confdefs.h
2343 echo '#endif' >>confdefs.h
2344fi
2345
2346else
2347 echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350fi
2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
f5385ebf
AM
2359echo "$as_me:$LINENO: checking for library containing strerror" >&5
2360echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2361if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
f5385ebf
AM
2364 ac_func_search_save_LIBS=$LIBS
2365ac_cv_search_strerror=no
5464f5a1
NN
2366cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
2372
2373/* Override any gcc2 internal prototype to avoid an error. */
2374#ifdef __cplusplus
2375extern "C"
2376#endif
2377/* We use char because int might match the return type of a gcc2
2378 builtin and then its argument prototype would still apply. */
2379char strerror ();
2380int
2381main ()
2382{
2383strerror ();
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext conftest$ac_exeext
2389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2390 (eval $ac_link) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
6ec7057a 2397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
f5385ebf 2409 ac_cv_search_strerror="none required"
5464f5a1
NN
2410else
2411 echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
5464f5a1
NN
2414fi
2415rm -f conftest.err conftest.$ac_objext \
2416 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2417if test "$ac_cv_search_strerror" = no; then
2418 for ac_lib in cposix; do
2419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2420 cat >conftest.$ac_ext <<_ACEOF
2421/* confdefs.h. */
2422_ACEOF
2423cat confdefs.h >>conftest.$ac_ext
2424cat >>conftest.$ac_ext <<_ACEOF
2425/* end confdefs.h. */
2426
2427/* Override any gcc2 internal prototype to avoid an error. */
2428#ifdef __cplusplus
2429extern "C"
2430#endif
2431/* We use char because int might match the return type of a gcc2
2432 builtin and then its argument prototype would still apply. */
2433char strerror ();
2434int
2435main ()
2436{
2437strerror ();
2438 ;
2439 return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext conftest$ac_exeext
2443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2444 (eval $ac_link) 2>conftest.er1
2445 ac_status=$?
2446 grep -v '^ *+' conftest.er1 >conftest.err
2447 rm -f conftest.er1
2448 cat conftest.err >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); } &&
6ec7057a 2451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f5385ebf
AM
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; } &&
2457 { ac_try='test -s conftest$ac_exeext'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; }; then
2463 ac_cv_search_strerror="-l$ac_lib"
2464break
2465else
2466 echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
5464f5a1 2469fi
f5385ebf
AM
2470rm -f conftest.err conftest.$ac_objext \
2471 conftest$ac_exeext conftest.$ac_ext
2472 done
5464f5a1 2473fi
f5385ebf
AM
2474LIBS=$ac_func_search_save_LIBS
2475fi
2476echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2477echo "${ECHO_T}$ac_cv_search_strerror" >&6
2478if test "$ac_cv_search_strerror" != no; then
2479 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2480
f5385ebf 2481fi
5464f5a1
NN
2482
2483
f5385ebf 2484am__api_version="1.9"
5464f5a1
NN
2485# Find a good install program. We prefer a C program (faster),
2486# so one script is as good as another. But avoid the broken or
2487# incompatible versions:
2488# SysV /etc/install, /usr/sbin/install
2489# SunOS /usr/etc/install
2490# IRIX /sbin/install
2491# AIX /bin/install
2492# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2493# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2494# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2495# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2496# OS/2's system install, which has a completely different semantic
252b5132 2497# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2498echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2499echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2500if test -z "$INSTALL"; then
5464f5a1
NN
2501if test "${ac_cv_path_install+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2503else
5464f5a1
NN
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 # Account for people who put trailing slashes in PATH elements.
2510case $as_dir/ in
2511 ./ | .// | /cC/* | \
2512 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2514 /usr/ucb/* ) ;;
2515 *)
2516 # OSF1 and SCO ODT 3.0 have their own names for install.
2517 # Don't use installbsd from OSF since it installs stuff as root
2518 # by default.
2519 for ac_prog in ginstall scoinst install; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2522 if test $ac_prog = install &&
5464f5a1 2523 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2524 # AIX install. It has an incompatible calling convention.
2525 :
5464f5a1
NN
2526 elif test $ac_prog = install &&
2527 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528 # program-specific install script used by HP pwplus--don't use.
2529 :
252b5132 2530 else
5464f5a1
NN
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2532 break 3
252b5132
RH
2533 fi
2534 fi
2535 done
5464f5a1
NN
2536 done
2537 ;;
2538esac
2539done
2540
252b5132
RH
2541
2542fi
2543 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2544 INSTALL=$ac_cv_path_install
252b5132
RH
2545 else
2546 # As a last resort, use the slow shell script. We don't cache a
2547 # path for INSTALL within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the path is relative.
5464f5a1 2550 INSTALL=$ac_install_sh
252b5132
RH
2551 fi
2552fi
5464f5a1
NN
2553echo "$as_me:$LINENO: result: $INSTALL" >&5
2554echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2555
2556# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557# It thinks the first close brace ends the variable substitution.
2558test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559
5464f5a1 2560test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2561
2562test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563
5464f5a1
NN
2564echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2565echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2566# Just in case
2567sleep 1
f5385ebf 2568echo timestamp > conftest.file
252b5132
RH
2569# Do `set' in a subshell so we don't clobber the current shell's
2570# arguments. Must try -L first in case configure is actually a
2571# symlink; some systems play weird games with the mod time of symlinks
2572# (eg FreeBSD returns the mod time of the symlink's containing
2573# directory).
2574if (
f5385ebf 2575 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2576 if test "$*" = "X"; then
2577 # -L didn't work.
f5385ebf 2578 set X `ls -t $srcdir/configure conftest.file`
252b5132 2579 fi
f5385ebf
AM
2580 rm -f conftest.file
2581 if test "$*" != "X $srcdir/configure conftest.file" \
2582 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2583
2584 # If neither matched, then we have a broken ls. This can happen
2585 # if, for instance, CONFIG_SHELL is bash and it inherits a
2586 # broken ls alias from the environment. This has actually
2587 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2588 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2589alias in your environment" >&5
2590echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2591alias in your environment" >&2;}
2592 { (exit 1); exit 1; }; }
252b5132
RH
2593 fi
2594
f5385ebf 2595 test "$2" = conftest.file
252b5132
RH
2596 )
2597then
2598 # Ok.
2599 :
2600else
5464f5a1
NN
2601 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2602Check your system clock" >&5
2603echo "$as_me: error: newly created file is older than distributed files!
2604Check your system clock" >&2;}
2605 { (exit 1); exit 1; }; }
252b5132 2606fi
5464f5a1
NN
2607echo "$as_me:$LINENO: result: yes" >&5
2608echo "${ECHO_T}yes" >&6
252b5132 2609test "$program_prefix" != NONE &&
5464f5a1 2610 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2611# Use a double $ so make ignores it.
2612test "$program_suffix" != NONE &&
5464f5a1
NN
2613 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2614# Double any \ or $. echo might interpret backslashes.
2615# By default was `s,x,x', remove it if useless.
2616cat <<\_ACEOF >conftest.sed
2617s/[\\$]/&&/g;s/;s,x,x,$//
2618_ACEOF
2619program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2620rm conftest.sed
2621
f5385ebf
AM
2622# expand $ac_aux_dir to an absolute path
2623am_aux_dir=`cd $ac_aux_dir && pwd`
2624
2625test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2626# Use eval to expand $SHELL
2627if eval "$MISSING --run true"; then
2628 am_missing_run="$MISSING --run "
2629else
2630 am_missing_run=
2631 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2632echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2633fi
2634
2635if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2636 # We used to keeping the `.' as first argument, in order to
2637 # allow $(mkdir_p) to be used without argument. As in
2638 # $(mkdir_p) $(somedir)
2639 # where $(somedir) is conditionally defined. However this is wrong
2640 # for two reasons:
2641 # 1. if the package is installed by a user who cannot write `.'
2642 # make install will fail,
2643 # 2. the above comment should most certainly read
2644 # $(mkdir_p) $(DESTDIR)$(somedir)
2645 # so it does not work when $(somedir) is undefined and
2646 # $(DESTDIR) is not.
2647 # To support the latter case, we have to write
2648 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2649 # so the `.' trick is pointless.
2650 mkdir_p='mkdir -p --'
2651else
2652 # On NextStep and OpenStep, the `mkdir' command does not
2653 # recognize any option. It will interpret all options as
2654 # directories to create, and then abort because `.' already
2655 # exists.
2656 for d in ./-p ./--version;
2657 do
2658 test -d $d && rmdir $d
2659 done
2660 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2661 if test -f "$ac_aux_dir/mkinstalldirs"; then
2662 mkdir_p='$(mkinstalldirs)'
2663 else
2664 mkdir_p='$(install_sh) -d'
2665 fi
2666fi
2667
2668for ac_prog in gawk mawk nawk awk
2669do
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671set dummy $ac_prog; ac_word=$2
2672echo "$as_me:$LINENO: checking for $ac_word" >&5
2673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2674if test "${ac_cv_prog_AWK+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2676else
2677 if test -n "$AWK"; then
2678 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679else
2680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681for as_dir in $PATH
2682do
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2687 ac_cv_prog_AWK="$ac_prog"
2688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2690 fi
2691done
2692done
2693
2694fi
2695fi
2696AWK=$ac_cv_prog_AWK
2697if test -n "$AWK"; then
2698 echo "$as_me:$LINENO: result: $AWK" >&5
2699echo "${ECHO_T}$AWK" >&6
2700else
2701 echo "$as_me:$LINENO: result: no" >&5
2702echo "${ECHO_T}no" >&6
2703fi
2704
2705 test -n "$AWK" && break
2706done
2707
5464f5a1
NN
2708echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2710set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2711if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713else
2714 cat >conftest.make <<\_ACEOF
252b5132 2715all:
5464f5a1
NN
2716 @echo 'ac_maketemp="$(MAKE)"'
2717_ACEOF
252b5132 2718# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2719eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2720if test -n "$ac_maketemp"; then
2721 eval ac_cv_prog_make_${ac_make}_set=yes
2722else
2723 eval ac_cv_prog_make_${ac_make}_set=no
2724fi
5464f5a1 2725rm -f conftest.make
252b5132
RH
2726fi
2727if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2728 echo "$as_me:$LINENO: result: yes" >&5
2729echo "${ECHO_T}yes" >&6
252b5132
RH
2730 SET_MAKE=
2731else
5464f5a1
NN
2732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
252b5132
RH
2734 SET_MAKE="MAKE=${MAKE-make}"
2735fi
2736
f5385ebf
AM
2737rm -rf .tst 2>/dev/null
2738mkdir .tst 2>/dev/null
2739if test -d .tst; then
2740 am__leading_dot=.
2741else
2742 am__leading_dot=_
2743fi
2744rmdir .tst 2>/dev/null
2745
2746DEPDIR="${am__leading_dot}deps"
2747
2748 ac_config_commands="$ac_config_commands depfiles"
2749
2750
2751am_make=${MAKE-make}
2752cat > confinc << 'END'
2753am__doit:
2754 @echo done
2755.PHONY: am__doit
2756END
2757# If we don't find an include directive, just comment out the code.
2758echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2759echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2760am__include="#"
2761am__quote=
2762_am_result=none
2763# First try GNU make style include.
2764echo "include confinc" > confmf
2765# We grep out `Entering directory' and `Leaving directory'
2766# messages which can occur if `w' ends up in MAKEFLAGS.
2767# In particular we don't look at `^make:' because GNU make might
2768# be invoked under some other name (usually "gmake"), in which
2769# case it prints its new name instead of `make'.
2770if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2771 am__include=include
2772 am__quote=
2773 _am_result=GNU
2774fi
2775# Now try BSD make style include.
2776if test "$am__include" = "#"; then
2777 echo '.include "confinc"' > confmf
2778 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2779 am__include=.include
2780 am__quote="\""
2781 _am_result=BSD
2782 fi
2783fi
2784
2785
2786echo "$as_me:$LINENO: result: $_am_result" >&5
2787echo "${ECHO_T}$_am_result" >&6
2788rm -f confinc confmf
2789
2790# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2791if test "${enable_dependency_tracking+set}" = set; then
2792 enableval="$enable_dependency_tracking"
2793
2794fi;
2795if test "x$enable_dependency_tracking" != xno; then
2796 am_depcomp="$ac_aux_dir/depcomp"
2797 AMDEPBACKSLASH='\'
2798fi
2799
2800
2801if test "x$enable_dependency_tracking" != xno; then
2802 AMDEP_TRUE=
2803 AMDEP_FALSE='#'
2804else
2805 AMDEP_TRUE='#'
2806 AMDEP_FALSE=
2807fi
6be7c12c 2808
252b5132 2809
252b5132 2810
f5385ebf
AM
2811# test to see if srcdir already configured
2812if test "`cd $srcdir && pwd`" != "`pwd`" &&
2813 test -f $srcdir/config.status; then
5464f5a1
NN
2814 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2815echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2816 { (exit 1); exit 1; }; }
252b5132 2817fi
5464f5a1 2818
f5385ebf
AM
2819# test whether we have cygpath
2820if test -z "$CYGPATH_W"; then
2821 if (cygpath --version) >/dev/null 2>/dev/null; then
2822 CYGPATH_W='cygpath -w'
2823 else
2824 CYGPATH_W=echo
2825 fi
2826fi
2827
2828
2829# Define the identity of the package.
2830 PACKAGE=bfd
664fe1be 2831 VERSION=2.16.90
f5385ebf
AM
2832
2833
5464f5a1 2834cat >>confdefs.h <<_ACEOF
252b5132 2835#define PACKAGE "$PACKAGE"
5464f5a1 2836_ACEOF
252b5132 2837
5464f5a1
NN
2838
2839cat >>confdefs.h <<_ACEOF
252b5132 2840#define VERSION "$VERSION"
5464f5a1 2841_ACEOF
252b5132 2842
f5385ebf
AM
2843# Some tools Automake needs.
2844
2845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846
2847
2848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849
2850
2851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852
2853
2854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855
2856
2857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2858
f5385ebf 2859install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2860
f5385ebf
AM
2861# Installed binaries are usually stripped using `strip' when the user
2862# run `make install-strip'. However `strip' might not be the right
2863# tool to use in cross-compilation environments, therefore Automake
2864# will honor the `STRIP' environment variable to overrule this program.
2865if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}strip; ac_word=$2
2869echo "$as_me:$LINENO: checking for $ac_word" >&5
2870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2871if test "${ac_cv_prog_STRIP+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2876else
f5385ebf
AM
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889done
2890
2891fi
2892fi
2893STRIP=$ac_cv_prog_STRIP
2894if test -n "$STRIP"; then
2895 echo "$as_me:$LINENO: result: $STRIP" >&5
2896echo "${ECHO_T}$STRIP" >&6
2897else
2898 echo "$as_me:$LINENO: result: no" >&5
2899echo "${ECHO_T}no" >&6
2900fi
2901
252b5132 2902fi
f5385ebf
AM
2903if test -z "$ac_cv_prog_STRIP"; then
2904 ac_ct_STRIP=$STRIP
2905 # Extract the first word of "strip", so it can be a program name with args.
2906set dummy strip; ac_word=$2
2907echo "$as_me:$LINENO: checking for $ac_word" >&5
2908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2909if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911else
2912 if test -n "$ac_ct_STRIP"; then
2913 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_ac_ct_STRIP="strip"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927done
252b5132 2928
f5385ebf
AM
2929 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2930fi
2931fi
2932ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2933if test -n "$ac_ct_STRIP"; then
2934 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2935echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2936else
f5385ebf
AM
2937 echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
252b5132
RH
2939fi
2940
f5385ebf 2941 STRIP=$ac_ct_STRIP
252b5132 2942else
f5385ebf
AM
2943 STRIP="$ac_cv_prog_STRIP"
2944fi
2945
252b5132 2946fi
f5385ebf
AM
2947INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2948
2949# We need awk for the "check" target. The system "awk" is bad on
2950# some platforms.
2951# Always define AMTAR for backward compatibility.
2952
2953AMTAR=${AMTAR-"${am_missing_run}tar"}
2954
2955am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2956
252b5132 2957
f5385ebf
AM
2958
2959
2960depcc="$CC" am_compiler_list=
2961
2962echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2963echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2964if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2966else
f5385ebf
AM
2967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2968 # We make a subdir and do the tests there. Otherwise we can end up
2969 # making bogus files that we don't know about and never remove. For
2970 # instance it was reported that on HP-UX the gcc test will end up
2971 # making a dummy file named `D' -- because `-MD' means `put the output
2972 # in D'.
2973 mkdir conftest.dir
2974 # Copy depcomp to subdir because otherwise we won't find it if we're
2975 # using a relative directory.
2976 cp "$am_depcomp" conftest.dir
2977 cd conftest.dir
2978 # We will build objects and dependencies in a subdirectory because
2979 # it helps to detect inapplicable dependency modes. For instance
2980 # both Tru64's cc and ICC support -MD to output dependencies as a
2981 # side effect of compilation, but ICC will put the dependencies in
2982 # the current directory while Tru64 will put them in the object
2983 # directory.
2984 mkdir sub
2985
2986 am_cv_CC_dependencies_compiler_type=none
2987 if test "$am_compiler_list" = ""; then
2988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2989 fi
2990 for depmode in $am_compiler_list; do
2991 # Setup a source with many dependencies, because some compilers
2992 # like to wrap large dependency lists on column 80 (with \), and
2993 # we should not choose a depcomp mode which is confused by this.
2994 #
2995 # We need to recreate these files for each test, as the compiler may
2996 # overwrite some of them when testing with obscure command lines.
2997 # This happens at least with the AIX C compiler.
2998 : > sub/conftest.c
2999 for i in 1 2 3 4 5 6; do
3000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3002 # Solaris 8's {/usr,}/bin/sh.
3003 touch sub/conftst$i.h
3004 done
3005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3006
3007 case $depmode in
3008 nosideeffect)
3009 # after this tag, mechanisms are not by side-effect, so they'll
3010 # only be used when explicitly requested
3011 if test "x$enable_dependency_tracking" = xyes; then
3012 continue
3013 else
3014 break
3015 fi
3016 ;;
3017 none) break ;;
3018 esac
3019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3020 # mode. It turns out that the SunPro C++ compiler does not properly
3021 # handle `-M -o', and we need to detect this.
3022 if depmode=$depmode \
3023 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3024 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3025 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3026 >/dev/null 2>conftest.err &&
3027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3028 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3030 # icc doesn't choke on unknown options, it will just issue warnings
3031 # or remarks (even with -Werror). So we grep stderr for any message
3032 # that says an option was ignored or not supported.
3033 # When given -MP, icc 7.0 and 7.1 complain thusly:
3034 # icc: Command line warning: ignoring option '-M'; no argument required
3035 # The diagnosis changed in icc 8.0:
3036 # icc: Command line remark: option '-MP' not supported
3037 if (grep 'ignoring option' conftest.err ||
3038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3039 am_cv_CC_dependencies_compiler_type=$depmode
3040 break
3041 fi
3042 fi
3043 done
3044
3045 cd ..
3046 rm -rf conftest.dir
3047else
3048 am_cv_CC_dependencies_compiler_type=none
3049fi
3050
252b5132 3051fi
f5385ebf
AM
3052echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3053echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3054CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3055
f5385ebf
AM
3056
3057
3058if
3059 test "x$enable_dependency_tracking" != xno \
3060 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3061 am__fastdepCC_TRUE=
3062 am__fastdepCC_FALSE='#'
252b5132 3063else
f5385ebf
AM
3064 am__fastdepCC_TRUE='#'
3065 am__fastdepCC_FALSE=
252b5132
RH
3066fi
3067
6be7c12c 3068
e43d48cc 3069
f5385ebf 3070
5464f5a1
NN
3071if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3073set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3074echo "$as_me:$LINENO: checking for $ac_word" >&5
3075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076if test "${ac_cv_prog_AR+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3078else
3079 if test -n "$AR"; then
3080 ac_cv_prog_AR="$AR" # Let the user override the test.
3081else
5464f5a1
NN
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3089 ac_cv_prog_AR="${ac_tool_prefix}ar"
3090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095
252b5132
RH
3096fi
3097fi
5464f5a1 3098AR=$ac_cv_prog_AR
252b5132 3099if test -n "$AR"; then
5464f5a1
NN
3100 echo "$as_me:$LINENO: result: $AR" >&5
3101echo "${ECHO_T}$AR" >&6
252b5132 3102else
5464f5a1
NN
3103 echo "$as_me:$LINENO: result: no" >&5
3104echo "${ECHO_T}no" >&6
3105fi
3106
252b5132 3107fi
5464f5a1
NN
3108if test -z "$ac_cv_prog_AR"; then
3109 ac_ct_AR=$AR
3110 # Extract the first word of "ar", so it can be a program name with args.
3111set dummy ar; ac_word=$2
3112echo "$as_me:$LINENO: checking for $ac_word" >&5
3113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117 if test -n "$ac_ct_AR"; then
3118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_ac_ct_AR="ar"
3128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3130 fi
3131done
3132done
252b5132 3133
5464f5a1
NN
3134fi
3135fi
3136ac_ct_AR=$ac_cv_prog_ac_ct_AR
3137if test -n "$ac_ct_AR"; then
3138 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3139echo "${ECHO_T}$ac_ct_AR" >&6
3140else
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
3143fi
252b5132 3144
5464f5a1
NN
3145 AR=$ac_ct_AR
3146else
3147 AR="$ac_cv_prog_AR"
3148fi
6be7c12c 3149
5464f5a1
NN
3150if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3152set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3153echo "$as_me:$LINENO: checking for $ac_word" >&5
3154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155if test "${ac_cv_prog_RANLIB+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3157else
3158 if test -n "$RANLIB"; then
3159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3160else
5464f5a1
NN
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172done
3173done
3174
252b5132
RH
3175fi
3176fi
5464f5a1 3177RANLIB=$ac_cv_prog_RANLIB
252b5132 3178if test -n "$RANLIB"; then
5464f5a1
NN
3179 echo "$as_me:$LINENO: result: $RANLIB" >&5
3180echo "${ECHO_T}$RANLIB" >&6
252b5132 3181else
5464f5a1
NN
3182 echo "$as_me:$LINENO: result: no" >&5
3183echo "${ECHO_T}no" >&6
252b5132
RH
3184fi
3185
5464f5a1 3186fi
252b5132 3187if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3188 ac_ct_RANLIB=$RANLIB
252b5132
RH
3189 # Extract the first word of "ranlib", so it can be a program name with args.
3190set dummy ranlib; ac_word=$2
5464f5a1
NN
3191echo "$as_me:$LINENO: checking for $ac_word" >&5
3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3195else
5464f5a1
NN
3196 if test -n "$ac_ct_RANLIB"; then
3197 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3198else
5464f5a1
NN
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_ac_ct_RANLIB="ranlib"
3207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3209 fi
3210done
3211done
3212
3213 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3214fi
3215fi
5464f5a1
NN
3216ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3217if test -n "$ac_ct_RANLIB"; then
3218 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3219echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3220else
5464f5a1
NN
3221 echo "$as_me:$LINENO: result: no" >&5
3222echo "${ECHO_T}no" >&6
252b5132
RH
3223fi
3224
5464f5a1 3225 RANLIB=$ac_ct_RANLIB
252b5132 3226else
5464f5a1 3227 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3228fi
3229
252b5132
RH
3230
3231# Check whether --enable-shared or --disable-shared was given.
3232if test "${enable_shared+set}" = set; then
3233 enableval="$enable_shared"
3234 p=${PACKAGE-default}
55c80943 3235case $enableval in
252b5132
RH
3236yes) enable_shared=yes ;;
3237no) enable_shared=no ;;
3238*)
3239 enable_shared=no
3240 # Look at the argument we got. We use all the common list separators.
3241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3242 for pkg in $enableval; do
3243 if test "X$pkg" = "X$p"; then
3244 enable_shared=yes
3245 fi
3246 done
3247 IFS="$ac_save_ifs"
3248 ;;
3249esac
3250else
3251 enable_shared=no
5464f5a1 3252fi;
252b5132
RH
3253
3254# Check whether --enable-static or --disable-static was given.
3255if test "${enable_static+set}" = set; then
3256 enableval="$enable_static"
3257 p=${PACKAGE-default}
55c80943 3258case $enableval in
252b5132
RH
3259yes) enable_static=yes ;;
3260no) enable_static=no ;;
3261*)
3262 enable_static=no
3263 # Look at the argument we got. We use all the common list separators.
3264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3265 for pkg in $enableval; do
3266 if test "X$pkg" = "X$p"; then
3267 enable_static=yes
3268 fi
3269 done
3270 IFS="$ac_save_ifs"
3271 ;;
3272esac
3273else
3274 enable_static=yes
5464f5a1 3275fi;
b2ef150d
ILT
3276# Check whether --enable-fast-install or --disable-fast-install was given.
3277if test "${enable_fast_install+set}" = set; then
3278 enableval="$enable_fast_install"
3279 p=${PACKAGE-default}
55c80943 3280case $enableval in
b2ef150d
ILT
3281yes) enable_fast_install=yes ;;
3282no) enable_fast_install=no ;;
3283*)
3284 enable_fast_install=no
3285 # Look at the argument we got. We use all the common list separators.
3286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3287 for pkg in $enableval; do
3288 if test "X$pkg" = "X$p"; then
3289 enable_fast_install=yes
3290 fi
3291 done
3292 IFS="$ac_save_ifs"
3293 ;;
3294esac
3295else
3296 enable_fast_install=yes
5464f5a1 3297fi;
c5d1701e 3298
252b5132
RH
3299# Check whether --with-gnu-ld or --without-gnu-ld was given.
3300if test "${with_gnu_ld+set}" = set; then
3301 withval="$with_gnu_ld"
3302 test "$withval" = no || with_gnu_ld=yes
3303else
3304 with_gnu_ld=no
5464f5a1 3305fi;
252b5132 3306ac_prog=ld
55c80943 3307if test "$GCC" = yes; then
252b5132 3308 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3309 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3310echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3311 case $host in
3312 *-*-mingw*)
3313 # gcc leaves a trailing carriage return which upsets mingw
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3315 *)
3316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3317 esac
55c80943 3318 case $ac_prog in
b2ef150d 3319 # Accept absolute paths.
a74801ba 3320 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3321 re_direlt='/[^/][^/]*/\.\./'
3322 # Canonicalize the path of ld
3323 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3324 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3325 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3326 done
3327 test -z "$LD" && LD="$ac_prog"
3328 ;;
252b5132
RH
3329 "")
3330 # If it fails, then pretend we aren't using GCC.
3331 ac_prog=ld
3332 ;;
3333 *)
3334 # If it is relative, then search for the first ld in PATH.
3335 with_gnu_ld=unknown
3336 ;;
3337 esac
3338elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3339 echo "$as_me:$LINENO: checking for GNU ld" >&5
3340echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3341else
5464f5a1
NN
3342 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3343echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3344fi
5464f5a1
NN
3345if test "${lt_cv_path_LD+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3347else
3348 if test -z "$LD"; then
a74801ba 3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3350 for ac_dir in $PATH; do
3351 test -z "$ac_dir" && ac_dir=.
a74801ba 3352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3353 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3354 # Check to see if the program is GNU ld. I'd rather use --version,
3355 # but apparently some GNU ld's only accept -v.
3356 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3357 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3358 test "$with_gnu_ld" != no && break
3359 else
b2ef150d 3360 test "$with_gnu_ld" != yes && break
252b5132
RH
3361 fi
3362 fi
3363 done
3364 IFS="$ac_save_ifs"
3365else
55c80943 3366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3367fi
3368fi
3369
55c80943 3370LD="$lt_cv_path_LD"
252b5132 3371if test -n "$LD"; then
5464f5a1
NN
3372 echo "$as_me:$LINENO: result: $LD" >&5
3373echo "${ECHO_T}$LD" >&6
252b5132 3374else
5464f5a1
NN
3375 echo "$as_me:$LINENO: result: no" >&5
3376echo "${ECHO_T}no" >&6
252b5132 3377fi
5464f5a1
NN
3378test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3379echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3380 { (exit 1); exit 1; }; }
3381echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3382echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3383if test "${lt_cv_prog_gnu_ld+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3385else
3386 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3387if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3388 lt_cv_prog_gnu_ld=yes
252b5132 3389else
55c80943 3390 lt_cv_prog_gnu_ld=no
252b5132
RH
3391fi
3392fi
5464f5a1
NN
3393echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3394echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3395with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3396
6be7c12c 3397
5464f5a1
NN
3398echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3399echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3400if test "${lt_cv_ld_reload_flag+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3402else
3403 lt_cv_ld_reload_flag='-r'
3404fi
5464f5a1
NN
3405echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3406echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3407reload_flag=$lt_cv_ld_reload_flag
3408test -n "$reload_flag" && reload_flag=" $reload_flag"
3409
5464f5a1
NN
3410echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3411echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3412if test "${lt_cv_path_NM+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3414else
3415 if test -n "$NM"; then
3416 # Let the user override the test.
55c80943 3417 lt_cv_path_NM="$NM"
252b5132 3418else
a74801ba 3419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3420 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3421 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3422 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3423 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3424 # Check to see if the nm accepts a BSD-compat flag.
3425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426 # nm: unknown option "B" ignored
90f2472a
AO
3427 # Tru64's nm complains that /dev/null is an invalid object file
3428 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3429 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3430 break
ac48eca1 3431 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3432 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3433 break
252b5132 3434 else
55c80943 3435 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3436 continue # so that we can try to find one that supports BSD flags
252b5132 3437 fi
252b5132
RH
3438 fi
3439 done
3440 IFS="$ac_save_ifs"
55c80943 3441 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3442fi
3443fi
3444
55c80943 3445NM="$lt_cv_path_NM"
5464f5a1
NN
3446echo "$as_me:$LINENO: result: $NM" >&5
3447echo "${ECHO_T}$NM" >&6
252b5132 3448
5464f5a1
NN
3449echo "$as_me:$LINENO: checking whether ln -s works" >&5
3450echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3451LN_S=$as_ln_s
3452if test "$LN_S" = "ln -s"; then
3453 echo "$as_me:$LINENO: result: yes" >&5
3454echo "${ECHO_T}yes" >&6
6be7c12c 3455else
5464f5a1
NN
3456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3457echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3458fi
3459
5464f5a1
NN
3460echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3461echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3462if test "${lt_cv_deplibs_check_method+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3464else
d64552c5 3465 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3466lt_cv_file_magic_test_file=
3467lt_cv_deplibs_check_method='unknown'
3468# Need to set the preceding variable on all platforms that support
3469# interlibrary dependencies.
3470# 'none' -- dependencies not supported.
3471# `unknown' -- same as none, but documents that we really don't know.
3472# 'pass_all' -- all dependencies passed with no checks.
3473# 'test_compile' -- check by making test program.
3474# 'file_magic [regex]' -- check by looking for files in library path
3475# which responds to the $file_magic_cmd with a given egrep regex.
3476# If you have `file' or equivalent on your system and you're not sure
3477# whether `pass_all' will *always* work, you probably want this one.
3478
55c80943
NC
3479case $host_os in
3480aix*)
ac48eca1
AO
3481 lt_cv_deplibs_check_method=pass_all
3482 ;;
3483
3484beos*)
3485 lt_cv_deplibs_check_method=pass_all
3486 ;;
3487
3488bsdi4*)
55c80943
NC
3489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3490 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3491 lt_cv_file_magic_test_file=/shlib/libc.so
3492 ;;
3493
d64552c5 3494cygwin* | mingw* |pw32*)
ac48eca1 3495 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3496 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3497 ;;
3498
55c80943
NC
3499darwin* | rhapsody*)
3500 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3501 lt_cv_file_magic_cmd='/usr/bin/file -L'
3502 case "$host_os" in
3503 rhapsody* | darwin1.012)
3504 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3505 ;;
3506 *) # Darwin 1.3 on
3507 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3508 ;;
3509 esac
55c80943
NC
3510 ;;
3511
5464f5a1 3512freebsd* | kfreebsd*-gnu)
ac48eca1 3513 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3514 case $host_cpu in
ac48eca1 3515 i*86 )
90f2472a
AO
3516 # Not sure whether the presence of OpenBSD here was a mistake.
3517 # Let's accept both of them until this is cleared up.
55c80943
NC
3518 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3519 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3521 ;;
3522 esac
3523 else
3524 lt_cv_deplibs_check_method=pass_all
3525 fi
3526 ;;
3527
3528gnu*)
3529 lt_cv_deplibs_check_method=pass_all
3530 ;;
3531
55c80943 3532hpux10.20*|hpux11*)
4867be41
DJ
3533 case $host_cpu in
3534 hppa*)
3535 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3536 lt_cv_file_magic_cmd=/usr/bin/file
3537 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3538 ;;
3539 ia64*)
3540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3541 lt_cv_file_magic_cmd=/usr/bin/file
3542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3543 ;;
3544 esac
ac48eca1
AO
3545 ;;
3546
3547irix5* | irix6*)
55c80943 3548 case $host_os in
ac48eca1
AO
3549 irix5*)
3550 # this will be overridden with pass_all, but let us keep it just in case
3551 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3552 ;;
3553 *)
55c80943 3554 case $LD in
ac48eca1
AO
3555 *-32|*"-32 ") libmagic=32-bit;;
3556 *-n32|*"-n32 ") libmagic=N32;;
3557 *-64|*"-64 ") libmagic=64-bit;;
3558 *) libmagic=never-match;;
3559 esac
3560 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3561 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3562 ;;
ac48eca1
AO
3563 esac
3564 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3565 lt_cv_deplibs_check_method=pass_all
3566 ;;
3567
3568# This must be Linux ELF.
90f2472a 3569linux-gnu*)
55c80943 3570 case $host_cpu in
c5d1701e 3571 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3572 lt_cv_deplibs_check_method=pass_all ;;
3573 *)
3574 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3576 esac
ac48eca1
AO
3577 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3578 ;;
3579
5464f5a1 3580netbsd* | knetbsd*-gnu)
55c80943 3581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3582 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3583 else
b3baf5d0 3584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3585 fi
55c80943
NC
3586 ;;
3587
3588newsos6)
3589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3590 lt_cv_file_magic_cmd=/usr/bin/file
3591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3592 ;;
3593
3594osf3* | osf4* | osf5*)
3595 # this will be overridden with pass_all, but let us keep it just in case
3596 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3597 lt_cv_file_magic_test_file=/shlib/libc.so
3598 lt_cv_deplibs_check_method=pass_all
3599 ;;
3600
3601sco3.2v5*)
3602 lt_cv_deplibs_check_method=pass_all
3603 ;;
3604
3605solaris*)
3606 lt_cv_deplibs_check_method=pass_all
3607 lt_cv_file_magic_test_file=/lib/libc.so
3608 ;;
3609
6be7c12c
AO
3610sysv5uw[78]* | sysv4*uw2*)
3611 lt_cv_deplibs_check_method=pass_all
3612 ;;
3613
ac48eca1 3614sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3615 case $host_vendor in
ac48eca1
AO
3616 ncr)
3617 lt_cv_deplibs_check_method=pass_all
3618 ;;
3619 motorola)
55c80943
NC
3620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3622 ;;
3623 esac
3624 ;;
3625esac
3626
3627fi
5464f5a1
NN
3628echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3629echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3630file_magic_cmd=$lt_cv_file_magic_cmd
3631deplibs_check_method=$lt_cv_deplibs_check_method
3632
6be7c12c
AO
3633
3634
6be7c12c
AO
3635
3636# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3637
3638# Only perform the check for file, if the check method requires it
3639case $deplibs_check_method in
3640file_magic*)
3641 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3642 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3643echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3644if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3646else
3647 case $MAGIC_CMD in
3648 /*)
3649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3650 ;;
3651 ?:/*)
3652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3653 ;;
3654 *)
d64552c5 3655 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3656 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3657 ac_dummy="/usr/bin:$PATH"
3658 for ac_dir in $ac_dummy; do
3659 test -z "$ac_dir" && ac_dir=.
3660 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3661 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3662 if test -n "$file_magic_test_file"; then
55c80943 3663 case $deplibs_check_method in
ac48eca1
AO
3664 "file_magic "*)
3665 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3666 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3667 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3668 egrep "$file_magic_regex" > /dev/null; then
3669 :
3670 else
3671 cat <<EOF 1>&2
3672
3673*** Warning: the command libtool uses to detect shared libraries,
3674*** $file_magic_cmd, produces output that libtool cannot recognize.
3675*** The result is that libtool may fail to recognize shared libraries
3676*** as such. This will affect the creation of libtool libraries that
3677*** depend on shared libraries, but programs linked with such libtool
3678*** libraries will work regardless of this problem. Nevertheless, you
3679*** may want to report the problem to your system manager and/or to
3680*** bug-libtool@gnu.org
3681
3682EOF
3683 fi ;;
3684 esac
3685 fi
3686 break
3687 fi
3688 done
3689 IFS="$ac_save_ifs"
d64552c5 3690 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3691 ;;
3692esac
3693fi
3694
d64552c5
AO
3695MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3696if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3697 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3698echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3699else
5464f5a1
NN
3700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
ac48eca1
AO
3702fi
3703
d64552c5 3704if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3705 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3706 echo "$as_me:$LINENO: checking for file" >&5
3707echo $ECHO_N "checking for file... $ECHO_C" >&6
3708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3710else
55c80943 3711 case $MAGIC_CMD in
ac48eca1 3712 /*)
d64552c5 3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3714 ;;
3715 ?:/*)
d64552c5 3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3717 ;;
3718 *)
d64552c5 3719 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3721 ac_dummy="/usr/bin:$PATH"
3722 for ac_dir in $ac_dummy; do
3723 test -z "$ac_dir" && ac_dir=.
3724 if test -f $ac_dir/file; then
d64552c5 3725 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3726 if test -n "$file_magic_test_file"; then
55c80943 3727 case $deplibs_check_method in
ac48eca1
AO
3728 "file_magic "*)
3729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3732 egrep "$file_magic_regex" > /dev/null; then
3733 :
3734 else
3735 cat <<EOF 1>&2
3736
3737*** Warning: the command libtool uses to detect shared libraries,
3738*** $file_magic_cmd, produces output that libtool cannot recognize.
3739*** The result is that libtool may fail to recognize shared libraries
3740*** as such. This will affect the creation of libtool libraries that
3741*** depend on shared libraries, but programs linked with such libtool
3742*** libraries will work regardless of this problem. Nevertheless, you
3743*** may want to report the problem to your system manager and/or to
3744*** bug-libtool@gnu.org
3745
3746EOF
3747 fi ;;
3748 esac
3749 fi
3750 break
3751 fi
3752 done
3753 IFS="$ac_save_ifs"
d64552c5 3754 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3755 ;;
3756esac
3757fi
3758
d64552c5
AO
3759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3760if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3762echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3763else
5464f5a1
NN
3764 echo "$as_me:$LINENO: result: no" >&5
3765echo "${ECHO_T}no" >&6
ac48eca1
AO
3766fi
3767
3768 else
d64552c5 3769 MAGIC_CMD=:
ac48eca1
AO
3770 fi
3771fi
3772
3773 fi
3774 ;;
3775esac
3776
5464f5a1
NN
3777if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3779set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3780echo "$as_me:$LINENO: checking for $ac_word" >&5
3781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782if test "${ac_cv_prog_RANLIB+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3784else
3785 if test -n "$RANLIB"; then
3786 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3787else
5464f5a1
NN
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3798 fi
3799done
3800done
3801
ac48eca1
AO
3802fi
3803fi
5464f5a1 3804RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3805if test -n "$RANLIB"; then
5464f5a1
NN
3806 echo "$as_me:$LINENO: result: $RANLIB" >&5
3807echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3808else
5464f5a1
NN
3809 echo "$as_me:$LINENO: result: no" >&5
3810echo "${ECHO_T}no" >&6
ac48eca1
AO
3811fi
3812
5464f5a1 3813fi
ac48eca1 3814if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3815 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3816 # Extract the first word of "ranlib", so it can be a program name with args.
3817set dummy ranlib; ac_word=$2
5464f5a1
NN
3818echo "$as_me:$LINENO: checking for $ac_word" >&5
3819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3822else
5464f5a1
NN
3823 if test -n "$ac_ct_RANLIB"; then
3824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3825else
5464f5a1
NN
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
3831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833 ac_cv_prog_ac_ct_RANLIB="ranlib"
3834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 break 2
3836 fi
3837done
3838done
3839
3840 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3841fi
3842fi
5464f5a1
NN
3843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3844if test -n "$ac_ct_RANLIB"; then
3845 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3846echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3847else
5464f5a1
NN
3848 echo "$as_me:$LINENO: result: no" >&5
3849echo "${ECHO_T}no" >&6
ac48eca1
AO
3850fi
3851
5464f5a1 3852 RANLIB=$ac_ct_RANLIB
ac48eca1 3853else
5464f5a1 3854 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3855fi
3856
5464f5a1
NN
3857if test -n "$ac_tool_prefix"; then
3858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3859set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3860echo "$as_me:$LINENO: checking for $ac_word" >&5
3861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862if test "${ac_cv_prog_STRIP+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3864else
3865 if test -n "$STRIP"; then
3866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3867else
5464f5a1
NN
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879done
3880done
3881
ac48eca1
AO
3882fi
3883fi
5464f5a1 3884STRIP=$ac_cv_prog_STRIP
ac48eca1 3885if test -n "$STRIP"; then
5464f5a1
NN
3886 echo "$as_me:$LINENO: result: $STRIP" >&5
3887echo "${ECHO_T}$STRIP" >&6
ac48eca1 3888else
5464f5a1
NN
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
ac48eca1
AO
3891fi
3892
5464f5a1 3893fi
ac48eca1 3894if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3895 ac_ct_STRIP=$STRIP
ac48eca1
AO
3896 # Extract the first word of "strip", so it can be a program name with args.
3897set dummy strip; ac_word=$2
5464f5a1
NN
3898echo "$as_me:$LINENO: checking for $ac_word" >&5
3899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3902else
5464f5a1
NN
3903 if test -n "$ac_ct_STRIP"; then
3904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3905else
5464f5a1
NN
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_prog_ac_ct_STRIP="strip"
3914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917done
3918done
3919
3920 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3921fi
3922fi
5464f5a1
NN
3923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3924if test -n "$ac_ct_STRIP"; then
3925 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3926echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3927else
5464f5a1
NN
3928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
ac48eca1
AO
3930fi
3931
5464f5a1 3932 STRIP=$ac_ct_STRIP
ac48eca1 3933else
5464f5a1 3934 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3935fi
252b5132 3936
6be7c12c 3937
252b5132 3938# Check for any special flags to pass to ltconfig.
b2ef150d 3939libtool_flags="--cache-file=$cache_file"
252b5132
RH
3940test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3941test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3942test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3943test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3944test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3945
6be7c12c 3946
a74801ba
ILT
3947# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3948if test "${enable_libtool_lock+set}" = set; then
3949 enableval="$enable_libtool_lock"
a74801ba 3950
5464f5a1 3951fi;
a74801ba
ILT
3952test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3953test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3954
5464f5a1 3955
ac48eca1
AO
3956# Check whether --with-pic or --without-pic was given.
3957if test "${with_pic+set}" = set; then
3958 withval="$with_pic"
3959 pic_mode="$withval"
3960else
5464f5a1
NN
3961 pic_mode=default
3962fi;
ac48eca1
AO
3963test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3964test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3965
252b5132
RH
3966# Some flags need to be propagated to the compiler or linker for good
3967# libtool support.
55c80943 3968case $host in
252b5132
RH
3969*-*-irix6*)
3970 # Find out which ABI we are using.
6ec7057a 3971 echo '#line 3971 "configure"' > conftest.$ac_ext
5464f5a1
NN
3972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3973 (eval $ac_compile) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; then
6a457e5c
NC
3977 if test "$lt_cv_prog_gnu_ld" = yes; then
3978 case `/usr/bin/file conftest.$ac_objext` in
3979 *32-bit*)
3980 LD="${LD-ld} -melf32bsmip"
3981 ;;
3982 *N32*)
3983 LD="${LD-ld} -melf32bmipn32"
3984 ;;
3985 *64-bit*)
3986 LD="${LD-ld} -melf64bmip"
3987 ;;
3988 esac
3989 else
55c80943 3990 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3991 *32-bit*)
3992 LD="${LD-ld} -32"
3993 ;;
3994 *N32*)
3995 LD="${LD-ld} -n32"
3996 ;;
3997 *64-bit*)
3998 LD="${LD-ld} -64"
3999 ;;
4000 esac
6a457e5c 4001 fi
252b5132
RH
4002 fi
4003 rm -rf conftest*
4004 ;;
4005
4867be41
DJ
4006ia64-*-hpux*)
4007 # Find out which ABI we are using.
4008 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4010 (eval $ac_compile) 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); }; then
4867be41
DJ
4014 case "`/usr/bin/file conftest.o`" in
4015 *ELF-32*)
4016 HPUX_IA64_MODE="32"
4017 ;;
4018 *ELF-64*)
4019 HPUX_IA64_MODE="64"
4020 ;;
4021 esac
4022 fi
4023 rm -rf conftest*
4024 ;;
4025
252b5132
RH
4026*-*-sco3.2v5*)
4027 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4028 SAVE_CFLAGS="$CFLAGS"
252b5132 4029 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4030 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4031echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4032if test "${lt_cv_cc_needs_belf+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4034else
5464f5a1
NN
4035
4036
ac48eca1 4037 ac_ext=c
ac48eca1 4038ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4042
5464f5a1
NN
4043 cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
b2ef150d 4049
5464f5a1
NN
4050int
4051main ()
4052{
b2ef150d 4053
5464f5a1
NN
4054 ;
4055 return 0;
4056}
4057_ACEOF
4058rm -f conftest.$ac_objext conftest$ac_exeext
4059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060 (eval $ac_link) 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } &&
6ec7057a 4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4069 (eval $ac_try) 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest$ac_exeext'
4074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
b2ef150d
ILT
4079 lt_cv_cc_needs_belf=yes
4080else
5464f5a1
NN
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084lt_cv_cc_needs_belf=no
b2ef150d 4085fi
5464f5a1
NN
4086rm -f conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4088 ac_ext=c
ac48eca1 4089ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4093
b2ef150d 4094fi
5464f5a1
NN
4095echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4096echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4097 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4098 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4099 CFLAGS="$SAVE_CFLAGS"
4100 fi
252b5132
RH
4101 ;;
4102
6be7c12c 4103
252b5132
RH
4104esac
4105
6be7c12c 4106
b2ef150d 4107# Save cache, so that ltconfig can load it
5464f5a1 4108cat >confcache <<\_ACEOF
b2ef150d
ILT
4109# This file is a shell script that caches the results of configure
4110# tests run on this system so they can be shared between configure
5464f5a1
NN
4111# scripts and configure runs, see configure's option --config-cache.
4112# It is not useful on other systems. If it contains results you don't
4113# want to keep, you may remove or edit it.
b2ef150d 4114#
5464f5a1
NN
4115# config.status only pays attention to the cache file if you give it
4116# the --recheck option to rerun configure.
b2ef150d 4117#
5464f5a1
NN
4118# `ac_cv_env_foo' variables (set or unset) will be overridden when
4119# loading this file, other *unset* `ac_cv_foo' will be assigned the
4120# following values.
4121
4122_ACEOF
4123
b2ef150d
ILT
4124# The following way of writing the cache mishandles newlines in values,
4125# but we know of no workaround that is simple, portable, and efficient.
4126# So, don't put newlines in cache variables' values.
4127# Ultrix sh set writes to stderr and can't be redirected directly,
4128# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4129{
4130 (set) 2>&1 |
4131 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4132 *ac_space=\ *)
4133 # `set' does not quote correctly, so add quotes (double-quote
4134 # substitution turns \\\\ into \\, and sed turns \\ into \).
4135 sed -n \
4136 "s/'/'\\\\''/g;
4137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4138 ;;
4139 *)
4140 # `set' quotes correctly as required by POSIX, so do not add quotes.
4141 sed -n \
4142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4143 ;;
4144 esac;
4145} |
4146 sed '
4147 t clear
4148 : clear
4149 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4150 t end
4151 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4152 : end' >>confcache
4153if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4154 if test -w $cache_file; then
5464f5a1
NN
4155 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4156 cat confcache >$cache_file
b2ef150d
ILT
4157 else
4158 echo "not updating unwritable cache $cache_file"
4159 fi
4160fi
4161rm -f confcache
4162
252b5132 4163# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4164AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4165MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4166LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4167AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4168objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4169deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4170${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4171$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4172|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4173echo "$as_me: error: libtool configure failed" >&2;}
4174 { (exit 1); exit 1; }; }
252b5132 4175
b2ef150d
ILT
4176# Reload cache, that may have been modified by ltconfig
4177if test -r "$cache_file"; then
5464f5a1
NN
4178 # Some versions of bash will fail to source /dev/null (special
4179 # files actually), so we avoid doing that.
4180 if test -f "$cache_file"; then
4181 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4182echo "$as_me: loading cache $cache_file" >&6;}
4183 case $cache_file in
4184 [\\/]* | ?:[\\/]* ) . $cache_file;;
4185 *) . ./$cache_file;;
4186 esac
4187 fi
b2ef150d 4188else
5464f5a1
NN
4189 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4190echo "$as_me: creating cache $cache_file" >&6;}
4191 >$cache_file
b2ef150d
ILT
4192fi
4193
6be7c12c 4194
b2ef150d 4195# This can be used to rebuild libtool when needed
ac48eca1 4196LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4197
4198# Always use our own libtool.
4199LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4200
252b5132
RH
4201# Redirect the config.log output again, so that the ltconfig log is not
4202# clobbered by the next message.
4203exec 5>>./config.log
4204
6be7c12c 4205
5464f5a1
NN
4206
4207
4208
4209
6be7c12c 4210
252b5132
RH
4211# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4212if test "${enable_64_bit_bfd+set}" = set; then
4213 enableval="$enable_64_bit_bfd"
4214 case "${enableval}" in
4215 yes) want64=true ;;
4216 no) want64=false ;;
5464f5a1
NN
4217 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4218echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4219 { (exit 1); exit 1; }; } ;;
252b5132
RH
4220esac
4221else
4222 want64=false
5464f5a1 4223fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4224if test "${enable_targets+set}" = set; then
4225 enableval="$enable_targets"
4226 case "${enableval}" in
5464f5a1
NN
4227 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4228echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4229 { (exit 1); exit 1; }; }
252b5132
RH
4230 ;;
4231 no) enable_targets= ;;
4232 *) enable_targets=$enableval ;;
4233esac
5464f5a1 4234fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4235if test "${enable_commonbfdlib+set}" = set; then
4236 enableval="$enable_commonbfdlib"
4237 case "${enableval}" in
4238 yes) commonbfdlib=true ;;
4239 no) commonbfdlib=false ;;
5464f5a1
NN
4240 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4241echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4242 { (exit 1); exit 1; }; } ;;
252b5132 4243esac
5464f5a1 4244fi;
252b5132
RH
4245# Check whether --with-mmap or --without-mmap was given.
4246if test "${with_mmap+set}" = set; then
4247 withval="$with_mmap"
4248 case "${withval}" in
4249 yes) want_mmap=true ;;
4250 no) want_mmap=false ;;
5464f5a1
NN
4251 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4252echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4253 { (exit 1); exit 1; }; } ;;
252b5132
RH
4254esac
4255else
4256 want_mmap=false
5464f5a1 4257fi;
6ec7057a
RH
4258# Check whether --enable-secureplt or --disable-secureplt was given.
4259if test "${enable_secureplt+set}" = set; then
4260 enableval="$enable_secureplt"
4261 case "${enableval}" in
4262 yes) use_secureplt=true ;;
4263 no) use_secureplt=false ;;
4264 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4265echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4266 { (exit 1); exit 1; }; } ;;
4267esac
4268else
4269 use_secureplt=false
4270fi; if test $use_secureplt = true; then
4271
4272cat >>confdefs.h <<\_ACEOF
4273#define USE_SECUREPLT 1
4274_ACEOF
4275
4276fi
4277
9e9b66a9
AM
4278
4279WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4280
569acd2c
NC
4281# Check whether --enable-werror or --disable-werror was given.
4282if test "${enable_werror+set}" = set; then
4283 enableval="$enable_werror"
1ad12f97
NC
4284 case "${enableval}" in
4285 yes | y) ERROR_ON_WARNING="yes" ;;
4286 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4287 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4288echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4289 { (exit 1); exit 1; }; } ;;
4290 esac
4291fi;
4292
9e9b66a9
AM
4293# Enable -Werror by default when using gcc
4294if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4295 ERROR_ON_WARNING=yes
4296fi
4297
4298NO_WERROR=
4299if test "${ERROR_ON_WARNING}" = yes ; then
4300 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4301 NO_WERROR="-Wno-error"
1ad12f97
NC
4302fi
4303
a2d91340
AC
4304# Check whether --enable-build-warnings or --disable-build-warnings was given.
4305if test "${enable_build_warnings+set}" = set; then
4306 enableval="$enable_build_warnings"
4307 case "${enableval}" in
4308 yes) ;;
9e9b66a9 4309 no) WARN_CFLAGS="-w";;
a2d91340 4310 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4311 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4312 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4313 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4314 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4315esac
9e9b66a9
AM
4316fi;
4317
4318if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4319 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4320fi
4321
4322
9e9b66a9
AM
4323
4324
4325
5464f5a1 4326 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4327
252b5132
RH
4328
4329if test -z "$target" ; then
5464f5a1
NN
4330 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4331echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4332 { (exit 1); exit 1; }; }
252b5132 4333fi
252b5132 4334
5464f5a1
NN
4335echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4336echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4337 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4338if test "${enable_maintainer_mode+set}" = set; then
4339 enableval="$enable_maintainer_mode"
4340 USE_MAINTAINER_MODE=$enableval
4341else
4342 USE_MAINTAINER_MODE=no
5464f5a1
NN
4343fi;
4344 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4345echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4346
252b5132
RH
4347
4348if test $USE_MAINTAINER_MODE = yes; then
4349 MAINTAINER_MODE_TRUE=
4350 MAINTAINER_MODE_FALSE='#'
4351else
4352 MAINTAINER_MODE_TRUE='#'
4353 MAINTAINER_MODE_FALSE=
4354fi
f5385ebf 4355
252b5132 4356 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4357
5464f5a1 4358
24443139
AS
4359 case ${build_alias} in
4360 "") build_noncanonical=${build} ;;
4361 *) build_noncanonical=${build_alias} ;;
4362esac
4363
4364 case ${host_alias} in
4365 "") host_noncanonical=${build_noncanonical} ;;
4366 *) host_noncanonical=${host_alias} ;;
4367esac
4368
4369 case ${target_alias} in
4370 "") target_noncanonical=${host_noncanonical} ;;
4371 *) target_noncanonical=${target_alias} ;;
4372esac
4373
5464f5a1
NN
4374echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4375echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4376 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4377if test "${enable_install_libbfd+set}" = set; then
4378 enableval="$enable_install_libbfd"
4379 install_libbfd_p=$enableval
4380else
66e25bab 4381 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4382 install_libbfd_p=yes
4383 else
4384 install_libbfd_p=no
4385 fi
5464f5a1
NN
4386fi;
4387 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4388echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4389
a703a6ea
AM
4390
4391if test $install_libbfd_p = yes; then
4392 INSTALL_LIBBFD_TRUE=
4393 INSTALL_LIBBFD_FALSE='#'
4394else
4395 INSTALL_LIBBFD_TRUE='#'
4396 INSTALL_LIBBFD_FALSE=
4397fi
f5385ebf 4398
5464f5a1 4399 # Need _noncanonical variables for this.
24443139
AS
4400
4401
4402
4403
a703a6ea
AM
4404 # libbfd.a is a host library containing target dependent code
4405 bfdlibdir='$(libdir)'
4406 bfdincludedir='$(includedir)'
4407 if test "${host}" != "${target}"; then
5464f5a1
NN
4408 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4409 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4410 fi
a703a6ea
AM
4411
4412
252b5132
RH
4413
4414
5464f5a1
NN
4415
4416
4417host64=false
4418target64=false
4419bfd_default_target_size=32
4420
4421# host stuff:
4422
4423ac_ext=c
4424ac_cpp='$CPP $CPPFLAGS'
4425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4427ac_compiler_gnu=$ac_cv_c_compiler_gnu
4428if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4430set dummy ${ac_tool_prefix}gcc; ac_word=$2
4431echo "$as_me:$LINENO: checking for $ac_word" >&5
4432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433if test "${ac_cv_prog_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4435else
5464f5a1
NN
4436 if test -n "$CC"; then
4437 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4438else
5464f5a1
NN
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
6be7c12c 4449 fi
5464f5a1
NN
4450done
4451done
4452
252b5132 4453fi
b3baf5d0 4454fi
5464f5a1
NN
4455CC=$ac_cv_prog_CC
4456if test -n "$CC"; then
4457 echo "$as_me:$LINENO: result: $CC" >&5
4458echo "${ECHO_T}$CC" >&6
4459else
4460 echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6
4462fi
252b5132 4463
5464f5a1
NN
4464fi
4465if test -z "$ac_cv_prog_CC"; then
4466 ac_ct_CC=$CC
4467 # Extract the first word of "gcc", so it can be a program name with args.
4468set dummy gcc; ac_word=$2
4469echo "$as_me:$LINENO: checking for $ac_word" >&5
4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 if test -n "$ac_ct_CC"; then
4475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484 ac_cv_prog_ac_ct_CC="gcc"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4487 fi
4488done
4489done
252b5132 4490
5464f5a1
NN
4491fi
4492fi
4493ac_ct_CC=$ac_cv_prog_ac_ct_CC
4494if test -n "$ac_ct_CC"; then
4495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4496echo "${ECHO_T}$ac_ct_CC" >&6
4497else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500fi
252b5132 4501
5464f5a1
NN
4502 CC=$ac_ct_CC
4503else
4504 CC="$ac_cv_prog_CC"
4505fi
252b5132 4506
5464f5a1
NN
4507if test -z "$CC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4510set dummy ${ac_tool_prefix}cc; ac_word=$2
4511echo "$as_me:$LINENO: checking for $ac_word" >&5
4512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513if test "${ac_cv_prog_CC+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 if test -n "$CC"; then
4517 ac_cv_prog_CC="$CC" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_CC="${ac_tool_prefix}cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530done
4531done
6be7c12c 4532
5464f5a1
NN
4533fi
4534fi
4535CC=$ac_cv_prog_CC
4536if test -n "$CC"; then
4537 echo "$as_me:$LINENO: result: $CC" >&5
4538echo "${ECHO_T}$CC" >&6
4539else
4540 echo "$as_me:$LINENO: result: no" >&5
4541echo "${ECHO_T}no" >&6
4542fi
4543
4544fi
4545if test -z "$ac_cv_prog_CC"; then
4546 ac_ct_CC=$CC
4547 # Extract the first word of "cc", so it can be a program name with args.
4548set dummy cc; ac_word=$2
4549echo "$as_me:$LINENO: checking for $ac_word" >&5
4550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554 if test -n "$ac_ct_CC"; then
4555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 ac_cv_prog_ac_ct_CC="cc"
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568done
4569done
4570
4571fi
4572fi
4573ac_ct_CC=$ac_cv_prog_ac_ct_CC
4574if test -n "$ac_ct_CC"; then
4575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4576echo "${ECHO_T}$ac_ct_CC" >&6
4577else
4578 echo "$as_me:$LINENO: result: no" >&5
4579echo "${ECHO_T}no" >&6
4580fi
4581
4582 CC=$ac_ct_CC
4583else
4584 CC="$ac_cv_prog_CC"
4585fi
4586
4587fi
4588if test -z "$CC"; then
4589 # Extract the first word of "cc", so it can be a program name with args.
4590set dummy cc; ac_word=$2
4591echo "$as_me:$LINENO: checking for $ac_word" >&5
4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593if test "${ac_cv_prog_CC+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4595else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598else
5464f5a1
NN
4599 ac_prog_rejected=no
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4608 ac_prog_rejected=yes
4609 continue
4610 fi
4611 ac_cv_prog_CC="cc"
4612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615done
4616done
4617
4618if test $ac_prog_rejected = yes; then
4619 # We found a bogon in the path, so make sure we never use it.
4620 set dummy $ac_cv_prog_CC
4621 shift
4622 if test $# != 0; then
4623 # We chose a different compiler from the bogus one.
4624 # However, it has the same basename, so the bogon will be chosen
4625 # first if we set CC to just the basename; use the full file name.
4626 shift
4627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4628 fi
4629fi
4630fi
4631fi
4632CC=$ac_cv_prog_CC
4633if test -n "$CC"; then
4634 echo "$as_me:$LINENO: result: $CC" >&5
4635echo "${ECHO_T}$CC" >&6
4636else
4637 echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
4639fi
4640
4641fi
4642if test -z "$CC"; then
4643 if test -n "$ac_tool_prefix"; then
4644 for ac_prog in cl
4645 do
4646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4647set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4648echo "$as_me:$LINENO: checking for $ac_word" >&5
4649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650if test "${ac_cv_prog_CC+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652else
4653 if test -n "$CC"; then
4654 ac_cv_prog_CC="$CC" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668done
4669
4670fi
4671fi
4672CC=$ac_cv_prog_CC
4673if test -n "$CC"; then
4674 echo "$as_me:$LINENO: result: $CC" >&5
4675echo "${ECHO_T}$CC" >&6
4676else
4677 echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6
4679fi
4680
4681 test -n "$CC" && break
6be7c12c 4682 done
252b5132 4683fi
5464f5a1
NN
4684if test -z "$CC"; then
4685 ac_ct_CC=$CC
4686 for ac_prog in cl
4687do
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689set dummy $ac_prog; ac_word=$2
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_ac_ct_CC="$ac_prog"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711
4712fi
4713fi
4714ac_ct_CC=$ac_cv_prog_ac_ct_CC
4715if test -n "$ac_ct_CC"; then
4716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4717echo "${ECHO_T}$ac_ct_CC" >&6
4718else
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
4721fi
4722
4723 test -n "$ac_ct_CC" && break
4724done
4725
4726 CC=$ac_ct_CC
4727fi
4728
4729fi
4730
4731
4732test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4733See \`config.log' for more details." >&5
4734echo "$as_me: error: no acceptable C compiler found in \$PATH
4735See \`config.log' for more details." >&2;}
4736 { (exit 1); exit 1; }; }
4737
4738# Provide some information about the compiler.
4739echo "$as_me:$LINENO:" \
4740 "checking for C compiler version" >&5
4741ac_compiler=`set X $ac_compile; echo $2`
4742{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4743 (eval $ac_compiler --version </dev/null >&5) 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }
4747{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4748 (eval $ac_compiler -v </dev/null >&5) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }
4752{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4753 (eval $ac_compiler -V </dev/null >&5) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4757
4758echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4759echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4760if test "${ac_cv_c_compiler_gnu+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 cat >conftest.$ac_ext <<_ACEOF
4764/* confdefs.h. */
4765_ACEOF
4766cat confdefs.h >>conftest.$ac_ext
4767cat >>conftest.$ac_ext <<_ACEOF
4768/* end confdefs.h. */
4769
4770int
4771main ()
4772{
4773#ifndef __GNUC__
4774 choke me
4775#endif
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
4781rm -f conftest.$ac_objext
4782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4783 (eval $ac_compile) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
6ec7057a 4790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; } &&
4796 { ac_try='test -s conftest.$ac_objext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4802 ac_compiler_gnu=yes
4803else
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
4807ac_compiler_gnu=no
4808fi
4809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810ac_cv_c_compiler_gnu=$ac_compiler_gnu
4811
4812fi
4813echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4814echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4815GCC=`test $ac_compiler_gnu = yes && echo yes`
4816ac_test_CFLAGS=${CFLAGS+set}
4817ac_save_CFLAGS=$CFLAGS
4818CFLAGS="-g"
4819echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4820echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4821if test "${ac_cv_prog_cc_g+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 cat >conftest.$ac_ext <<_ACEOF
4825/* confdefs.h. */
4826_ACEOF
4827cat confdefs.h >>conftest.$ac_ext
4828cat >>conftest.$ac_ext <<_ACEOF
4829/* end confdefs.h. */
4830
4831int
4832main ()
4833{
4834
4835 ;
4836 return 0;
4837}
4838_ACEOF
4839rm -f conftest.$ac_objext
4840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4841 (eval $ac_compile) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } &&
6ec7057a 4848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_prog_cc_g=yes
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865ac_cv_prog_cc_g=no
4866fi
4867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4868fi
4869echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4870echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4871if test "$ac_test_CFLAGS" = set; then
4872 CFLAGS=$ac_save_CFLAGS
4873elif test $ac_cv_prog_cc_g = yes; then
4874 if test "$GCC" = yes; then
4875 CFLAGS="-g -O2"
4876 else
4877 CFLAGS="-g"
4878 fi
4879else
4880 if test "$GCC" = yes; then
4881 CFLAGS="-O2"
4882 else
4883 CFLAGS=
4884 fi
4885fi
4886echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4887echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4888if test "${ac_cv_prog_cc_stdc+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891 ac_cv_prog_cc_stdc=no
4892ac_save_CC=$CC
4893cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h. */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h. */
4899#include <stdarg.h>
4900#include <stdio.h>
4901#include <sys/types.h>
4902#include <sys/stat.h>
4903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4904struct buf { int x; };
4905FILE * (*rcsopen) (struct buf *, struct stat *, int);
4906static char *e (p, i)
4907 char **p;
4908 int i;
4909{
4910 return p[i];
4911}
4912static char *f (char * (*g) (char **, int), char **p, ...)
4913{
4914 char *s;
4915 va_list v;
4916 va_start (v,p);
4917 s = g (p, va_arg (v,int));
4918 va_end (v);
4919 return s;
4920}
4921
4922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4923 function prototypes and stuff, but not '\xHH' hex character constants.
4924 These don't provoke an error unfortunately, instead are silently treated
4925 as 'x'. The following induces an error, until -std1 is added to get
4926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4927 array size at least. It's necessary to write '\x00'==0 to get something
4928 that's true only with -std1. */
4929int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4930
4931int test (int i, double x);
4932struct s1 {int (*f) (int a);};
4933struct s2 {int (*f) (double a);};
4934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4935int argc;
4936char **argv;
4937int
4938main ()
4939{
4940return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4941 ;
4942 return 0;
4943}
4944_ACEOF
4945# Don't try gcc -ansi; that turns off useful extensions and
4946# breaks some systems' header files.
4947# AIX -qlanglvl=ansi
4948# Ultrix and OSF/1 -std1
4949# HP-UX 10.20 and later -Ae
4950# HP-UX older versions -Aa -D_HPUX_SOURCE
4951# SVR4 -Xc -D__EXTENSIONS__
4952for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4953do
4954 CC="$ac_save_CC $ac_arg"
4955 rm -f conftest.$ac_objext
4956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4957 (eval $ac_compile) 2>conftest.er1
4958 ac_status=$?
4959 grep -v '^ *+' conftest.er1 >conftest.err
4960 rm -f conftest.er1
4961 cat conftest.err >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); } &&
6ec7057a 4964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966 (eval $ac_try) 2>&5
4967 ac_status=$?
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; } &&
4970 { ac_try='test -s conftest.$ac_objext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4976 ac_cv_prog_cc_stdc=$ac_arg
4977break
4978else
4979 echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982fi
4983rm -f conftest.err conftest.$ac_objext
4984done
4985rm -f conftest.$ac_ext conftest.$ac_objext
4986CC=$ac_save_CC
4987
4988fi
4989
4990case "x$ac_cv_prog_cc_stdc" in
4991 x|xno)
4992 echo "$as_me:$LINENO: result: none needed" >&5
4993echo "${ECHO_T}none needed" >&6 ;;
4994 *)
4995 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4996echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4997 CC="$CC $ac_cv_prog_cc_stdc" ;;
4998esac
4999
5000# Some people use a C++ compiler to compile C. Since we use `exit',
5001# in C++ we need to declare it. In case someone uses the same compiler
5002# for both compiling C and C++ we need to have the C++ compiler decide
5003# the declaration of exit, since it's the most demanding environment.
5004cat >conftest.$ac_ext <<_ACEOF
5005#ifndef __cplusplus
5006 choke me
5007#endif
5008_ACEOF
5009rm -f conftest.$ac_objext
5010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } &&
6ec7057a 5018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; } &&
5024 { ac_try='test -s conftest.$ac_objext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026 (eval $ac_try) 2>&5
5027 ac_status=$?
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 for ac_declaration in \
5031 '' \
5032 'extern "C" void std::exit (int) throw (); using std::exit;' \
5033 'extern "C" void std::exit (int); using std::exit;' \
5034 'extern "C" void exit (int) throw ();' \
5035 'extern "C" void exit (int);' \
5036 'void exit (int);'
5037do
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044$ac_declaration
5045#include <stdlib.h>
5046int
5047main ()
5048{
5049exit (42);
5050 ;
5051 return 0;
5052}
5053_ACEOF
5054rm -f conftest.$ac_objext
5055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
6ec7057a 5063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 (eval $ac_try) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; }; then
5075 :
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080continue
5081fi
5082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5083 cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
5089$ac_declaration
5090int
5091main ()
5092{
5093exit (42);
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext
5099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5100 (eval $ac_compile) 2>conftest.er1
5101 ac_status=$?
5102 grep -v '^ *+' conftest.er1 >conftest.err
5103 rm -f conftest.er1
5104 cat conftest.err >&5
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } &&
6ec7057a 5107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 break
5120else
5121 echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124fi
5125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126done
5127rm -f conftest*
5128if test -n "$ac_declaration"; then
5129 echo '#ifdef __cplusplus' >>confdefs.h
5130 echo $ac_declaration >>confdefs.h
5131 echo '#endif' >>confdefs.h
252b5132 5132fi
5464f5a1 5133
b3baf5d0 5134else
5464f5a1
NN
5135 echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
b3baf5d0 5138fi
5464f5a1
NN
5139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5140ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5145
5464f5a1 5146
4a2a2686
HPN
5147cat >>confdefs.h <<\_ACEOF
5148#define _GNU_SOURCE 1
5149_ACEOF
5150
5151
5152
429cc0ae 5153ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw"
5464f5a1
NN
5154if test -n "$ac_tool_prefix"; then
5155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5156set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5157echo "$as_me:$LINENO: checking for $ac_word" >&5
5158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5159if test "${ac_cv_prog_RANLIB+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5161else
5464f5a1
NN
5162 if test -n "$RANLIB"; then
5163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5164else
5464f5a1
NN
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2
252b5132 5175 fi
5464f5a1
NN
5176done
5177done
5178
252b5132
RH
5179fi
5180fi
5464f5a1
NN
5181RANLIB=$ac_cv_prog_RANLIB
5182if test -n "$RANLIB"; then
5183 echo "$as_me:$LINENO: result: $RANLIB" >&5
5184echo "${ECHO_T}$RANLIB" >&6
252b5132 5185else
5464f5a1
NN
5186 echo "$as_me:$LINENO: result: no" >&5
5187echo "${ECHO_T}no" >&6
252b5132
RH
5188fi
5189
5464f5a1
NN
5190fi
5191if test -z "$ac_cv_prog_RANLIB"; then
5192 ac_ct_RANLIB=$RANLIB
5193 # Extract the first word of "ranlib", so it can be a program name with args.
5194set dummy ranlib; ac_word=$2
5195echo "$as_me:$LINENO: checking for $ac_word" >&5
5196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5197if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5199else
5464f5a1
NN
5200 if test -n "$ac_ct_RANLIB"; then
5201 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5202else
5464f5a1
NN
5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_prog_ac_ct_RANLIB="ranlib"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
5217 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5218fi
5219fi
5464f5a1
NN
5220ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5221if test -n "$ac_ct_RANLIB"; then
5222 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5223echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5224else
5464f5a1
NN
5225 echo "$as_me:$LINENO: result: no" >&5
5226echo "${ECHO_T}no" >&6
b3baf5d0 5227fi
252b5132 5228
5464f5a1 5229 RANLIB=$ac_ct_RANLIB
6be7c12c 5230else
5464f5a1 5231 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5232fi
5464f5a1 5233
6be7c12c 5234ac_ext=c
6be7c12c 5235ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238ac_compiler_gnu=$ac_cv_c_compiler_gnu
5239echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5240echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5241# On Suns, sometimes $CPP names a directory.
5242if test -n "$CPP" && test -d "$CPP"; then
5243 CPP=
6be7c12c 5244fi
5464f5a1
NN
5245if test -z "$CPP"; then
5246 if test "${ac_cv_prog_CPP+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5248else
5464f5a1
NN
5249 # Double quotes because CPP needs to be expanded
5250 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5251 do
5252 ac_preproc_ok=false
5253for ac_c_preproc_warn_flag in '' yes
5254do
5255 # Use a header file that comes with gcc, so configuring glibc
5256 # with a fresh cross-compiler works.
5257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258 # <limits.h> exists even on freestanding compilers.
5259 # On the NeXT, cc -E runs the code through the compiler's parser,
5260 # not just through cpp. "Syntax error" is here to catch this case.
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#ifdef __STDC__
5268# include <limits.h>
5269#else
5270# include <assert.h>
252b5132 5271#endif
5464f5a1
NN
5272 Syntax error
5273_ACEOF
5274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5287 fi
6be7c12c 5288else
5464f5a1 5289 ac_cpp_err=yes
6be7c12c 5290fi
5464f5a1
NN
5291if test -z "$ac_cpp_err"; then
5292 :
6be7c12c 5293else
5464f5a1
NN
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 # Broken: fails on valid input.
5298continue
5299fi
5300rm -f conftest.err conftest.$ac_ext
5301
5302 # OK, works on sane cases. Now check whether non-existent headers
5303 # can be detected and how.
5304 cat >conftest.$ac_ext <<_ACEOF
5305/* confdefs.h. */
5306_ACEOF
5307cat confdefs.h >>conftest.$ac_ext
5308cat >>conftest.$ac_ext <<_ACEOF
5309/* end confdefs.h. */
5310#include <ac_nonexistent.h>
5311_ACEOF
5312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } >/dev/null; then
5320 if test -s conftest.err; then
5321 ac_cpp_err=$ac_c_preproc_warn_flag
5322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5323 else
5324 ac_cpp_err=
5325 fi
252b5132 5326else
5464f5a1 5327 ac_cpp_err=yes
252b5132 5328fi
5464f5a1
NN
5329if test -z "$ac_cpp_err"; then
5330 # Broken: success on invalid input.
5331continue
5332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5335
5464f5a1
NN
5336 # Passes both tests.
5337ac_preproc_ok=:
5338break
252b5132 5339fi
5464f5a1 5340rm -f conftest.err conftest.$ac_ext
6be7c12c 5341
5464f5a1
NN
5342done
5343# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5344rm -f conftest.err conftest.$ac_ext
5345if $ac_preproc_ok; then
5346 break
252b5132
RH
5347fi
5348
5464f5a1
NN
5349 done
5350 ac_cv_prog_CPP=$CPP
252b5132 5351
252b5132 5352fi
5464f5a1 5353 CPP=$ac_cv_prog_CPP
6be7c12c 5354else
5464f5a1
NN
5355 ac_cv_prog_CPP=$CPP
5356fi
5357echo "$as_me:$LINENO: result: $CPP" >&5
5358echo "${ECHO_T}$CPP" >&6
5359ac_preproc_ok=false
5360for ac_c_preproc_warn_flag in '' yes
5361do
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
6be7c12c 5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379 Syntax error
5380_ACEOF
5381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 else
5393 ac_cpp_err=
5394 fi
252b5132 5395else
5464f5a1
NN
5396 ac_cpp_err=yes
5397fi
5398if test -z "$ac_cpp_err"; then
6be7c12c 5399 :
252b5132 5400else
5464f5a1
NN
5401 echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 # Broken: fails on valid input.
5405continue
5406fi
5407rm -f conftest.err conftest.$ac_ext
5408
5409 # OK, works on sane cases. Now check whether non-existent headers
5410 # can be detected and how.
5411 cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h. */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h. */
5417#include <ac_nonexistent.h>
5418_ACEOF
5419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5430 else
5431 ac_cpp_err=
5432 fi
b3baf5d0 5433else
5464f5a1 5434 ac_cpp_err=yes
6be7c12c 5435fi
5464f5a1
NN
5436if test -z "$ac_cpp_err"; then
5437 # Broken: success on invalid input.
5438continue
ac48eca1 5439else
5464f5a1
NN
5440 echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
5443 # Passes both tests.
5444ac_preproc_ok=:
5445break
b3baf5d0 5446fi
5464f5a1 5447rm -f conftest.err conftest.$ac_ext
6be7c12c 5448
5464f5a1
NN
5449done
5450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5451rm -f conftest.err conftest.$ac_ext
5452if $ac_preproc_ok; then
5453 :
6be7c12c 5454else
5464f5a1
NN
5455 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5456See \`config.log' for more details." >&5
5457echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5458See \`config.log' for more details." >&2;}
5459 { (exit 1); exit 1; }; }
ac48eca1 5460fi
5464f5a1
NN
5461
5462ac_ext=c
5463ac_cpp='$CPP $CPPFLAGS'
5464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5466ac_compiler_gnu=$ac_cv_c_compiler_gnu
5467
5468
5469echo "$as_me:$LINENO: checking for egrep" >&5
5470echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5471if test "${ac_cv_prog_egrep+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5473else
5464f5a1
NN
5474 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5475 then ac_cv_prog_egrep='grep -E'
5476 else ac_cv_prog_egrep='egrep'
5477 fi
b3baf5d0 5478fi
5464f5a1
NN
5479echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5480echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5481 EGREP=$ac_cv_prog_egrep
5482
ac48eca1 5483
5464f5a1
NN
5484echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5485echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5486if test "${ac_cv_header_stdc+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5488else
5464f5a1
NN
5489 cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h. */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h. */
252b5132
RH
5495#include <stdlib.h>
5496#include <stdarg.h>
5497#include <string.h>
5498#include <float.h>
5464f5a1
NN
5499
5500int
5501main ()
5502{
5503
5504 ;
5505 return 0;
5506}
5507_ACEOF
5508rm -f conftest.$ac_objext
5509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510 (eval $ac_compile) 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
6ec7057a 5517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
252b5132
RH
5529 ac_cv_header_stdc=yes
5530else
5464f5a1
NN
5531 echo "$as_me: failed program was:" >&5
5532sed 's/^/| /' conftest.$ac_ext >&5
5533
5534ac_cv_header_stdc=no
252b5132 5535fi
5464f5a1 5536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5537
5538if test $ac_cv_header_stdc = yes; then
5539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
252b5132 5546#include <string.h>
5464f5a1
NN
5547
5548_ACEOF
252b5132 5549if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5550 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5551 :
5552else
252b5132
RH
5553 ac_cv_header_stdc=no
5554fi
5555rm -f conftest*
5556
5557fi
5558
5559if test $ac_cv_header_stdc = yes; then
5560 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5561 cat >conftest.$ac_ext <<_ACEOF
5562/* confdefs.h. */
5563_ACEOF
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h. */
252b5132 5567#include <stdlib.h>
5464f5a1
NN
5568
5569_ACEOF
252b5132 5570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5571 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5572 :
5573else
252b5132
RH
5574 ac_cv_header_stdc=no
5575fi
5576rm -f conftest*
5577
5578fi
5579
5580if test $ac_cv_header_stdc = yes; then
5581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5582 if test "$cross_compiling" = yes; then
252b5132
RH
5583 :
5584else
5464f5a1
NN
5585 cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h. */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h. */
252b5132 5591#include <ctype.h>
5464f5a1
NN
5592#if ((' ' & 0x0FF) == 0x020)
5593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5595#else
5596# define ISLOWER(c) \
5597 (('a' <= (c) && (c) <= 'i') \
5598 || ('j' <= (c) && (c) <= 'r') \
5599 || ('s' <= (c) && (c) <= 'z'))
5600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5601#endif
6be7c12c 5602
5464f5a1
NN
5603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5604int
5605main ()
5606{
5607 int i;
5608 for (i = 0; i < 256; i++)
5609 if (XOR (islower (i), ISLOWER (i))
5610 || toupper (i) != TOUPPER (i))
5611 exit(2);
5612 exit (0);
5613}
5614_ACEOF
5615rm -f conftest$ac_exeext
5616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5622 (eval $ac_try) 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
252b5132
RH
5626 :
5627else
5464f5a1
NN
5628 echo "$as_me: program exited with status $ac_status" >&5
5629echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632( exit $ac_status )
5633ac_cv_header_stdc=no
252b5132 5634fi
5464f5a1 5635rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5636fi
252b5132
RH
5637fi
5638fi
5464f5a1
NN
5639echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5640echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5641if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5642
5643cat >>confdefs.h <<\_ACEOF
252b5132 5644#define STDC_HEADERS 1
5464f5a1 5645_ACEOF
252b5132
RH
5646
5647fi
5648
5464f5a1
NN
5649echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5650echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5651if test "${ac_cv_c_const+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5653else
5464f5a1
NN
5654 cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
6be7c12c 5660
5464f5a1
NN
5661int
5662main ()
5663{
5664/* FIXME: Include the comments suggested by Paul. */
5665#ifndef __cplusplus
5666 /* Ultrix mips cc rejects this. */
5667 typedef int charset[2];
5668 const charset x;
5669 /* SunOS 4.1.1 cc rejects this. */
5670 char const *const *ccp;
5671 char **p;
5672 /* NEC SVR4.0.2 mips cc rejects this. */
5673 struct point {int x, y;};
5674 static struct point const zero = {0,0};
5675 /* AIX XL C 1.02.0.0 rejects this.
5676 It does not let you subtract one const X* pointer from another in
5677 an arm of an if-expression whose if-part is not a constant
5678 expression */
5679 const char *g = "string";
5680 ccp = &g + (g ? g-g : 0);
5681 /* HPUX 7.0 cc rejects these. */
5682 ++ccp;
5683 p = (char**) ccp;
5684 ccp = (char const *const *) p;
5685 { /* SCO 3.2v4 cc rejects this. */
5686 char *t;
5687 char const *s = 0 ? (char *) 0 : (char const *) 0;
5688
5689 *t++ = 0;
5690 }
5691 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5692 int x[] = {25, 17};
5693 const int *foo = &x[0];
5694 ++foo;
5695 }
5696 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5697 typedef const int *iptr;
5698 iptr p = 0;
5699 ++p;
5700 }
5701 { /* AIX XL C 1.02.0.0 rejects this saying
5702 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5703 struct s { int j; const int *ap[3]; };
5704 struct s *b; b->j = 5;
5705 }
5706 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5707 const int foo = 10;
5708 }
5709#endif
6be7c12c 5710
5464f5a1
NN
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext
5716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5717 (eval $ac_compile) 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } &&
6ec7057a 5724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726 (eval $ac_try) 2>&5
5727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); }; } &&
5730 { ac_try='test -s conftest.$ac_objext'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; }; then
252b5132
RH
5736 ac_cv_c_const=yes
5737else
5464f5a1
NN
5738 echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741ac_cv_c_const=no
252b5132 5742fi
5464f5a1 5743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5744fi
5464f5a1
NN
5745echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5746echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5747if test $ac_cv_c_const = no; then
5464f5a1
NN
5748
5749cat >>confdefs.h <<\_ACEOF
5750#define const
5751_ACEOF
252b5132
RH
5752
5753fi
5754
5464f5a1
NN
5755echo "$as_me:$LINENO: checking for inline" >&5
5756echo $ECHO_N "checking for inline... $ECHO_C" >&6
5757if test "${ac_cv_c_inline+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5759else
5760 ac_cv_c_inline=no
5761for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5762 cat >conftest.$ac_ext <<_ACEOF
5763/* confdefs.h. */
5764_ACEOF
5765cat confdefs.h >>conftest.$ac_ext
5766cat >>conftest.$ac_ext <<_ACEOF
5767/* end confdefs.h. */
5768#ifndef __cplusplus
5769typedef int foo_t;
5770static $ac_kw foo_t static_foo () {return 0; }
5771$ac_kw foo_t foo () {return 0; }
5772#endif
252b5132 5773
5464f5a1
NN
5774_ACEOF
5775rm -f conftest.$ac_objext
5776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777 (eval $ac_compile) 2>conftest.er1
5778 ac_status=$?
5779 grep -v '^ *+' conftest.er1 >conftest.err
5780 rm -f conftest.er1
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } &&
6ec7057a 5784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792 (eval $ac_try) 2>&5
5793 ac_status=$?
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
252b5132
RH
5796 ac_cv_c_inline=$ac_kw; break
5797else
5464f5a1
NN
5798 echo "$as_me: failed program was:" >&5
5799sed 's/^/| /' conftest.$ac_ext >&5
5800
252b5132 5801fi
5464f5a1 5802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5803done
5804
5464f5a1
NN
5805fi
5806echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5807echo "${ECHO_T}$ac_cv_c_inline" >&6
5808
5809
5810case $ac_cv_c_inline in
5811 inline | yes) ;;
5812 *)
5813 case $ac_cv_c_inline in
5814 no) ac_val=;;
5815 *) ac_val=$ac_cv_c_inline;;
5816 esac
5817 cat >>confdefs.h <<_ACEOF
5818#ifndef __cplusplus
5819#define inline $ac_val
5820#endif
5821_ACEOF
5822 ;;
5823esac
5824
5825# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5836 inttypes.h stdint.h unistd.h
5837do
5838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839echo "$as_me:$LINENO: checking for $ac_header" >&5
5840echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5841if eval "test \"\${$as_ac_Header+set}\" = set"; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5843else
5844 cat >conftest.$ac_ext <<_ACEOF
5845/* confdefs.h. */
5846_ACEOF
5847cat confdefs.h >>conftest.$ac_ext
5848cat >>conftest.$ac_ext <<_ACEOF
5849/* end confdefs.h. */
5850$ac_includes_default
5851
5852#include <$ac_header>
5853_ACEOF
5854rm -f conftest.$ac_objext
5855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5856 (eval $ac_compile) 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
6ec7057a 5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; } &&
5869 { ac_try='test -s conftest.$ac_objext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 (eval $ac_try) 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5875 eval "$as_ac_Header=yes"
5876else
5877 echo "$as_me: failed program was:" >&5
5878sed 's/^/| /' conftest.$ac_ext >&5
5879
5880eval "$as_ac_Header=no"
5881fi
5882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5883fi
5884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5886if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887 cat >>confdefs.h <<_ACEOF
5888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5889_ACEOF
5890
252b5132 5891fi
6be7c12c 5892
5464f5a1 5893done
252b5132 5894
5464f5a1
NN
5895
5896echo "$as_me:$LINENO: checking for off_t" >&5
5897echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5898if test "${ac_cv_type_off_t+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5900else
5464f5a1
NN
5901 cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907$ac_includes_default
5908int
5909main ()
5910{
5911if ((off_t *) 0)
5912 return 0;
5913if (sizeof (off_t))
5914 return 0;
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919rm -f conftest.$ac_objext
5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
6ec7057a 5928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); }; } &&
5934 { ac_try='test -s conftest.$ac_objext'
5935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936 (eval $ac_try) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
653f71ca 5940 ac_cv_type_off_t=yes
252b5132 5941else
5464f5a1
NN
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5944
5464f5a1 5945ac_cv_type_off_t=no
6be7c12c 5946fi
5464f5a1
NN
5947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948fi
5949echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5950echo "${ECHO_T}$ac_cv_type_off_t" >&6
5951if test $ac_cv_type_off_t = yes; then
5952 :
5953else
5954
5955cat >>confdefs.h <<_ACEOF
252b5132 5956#define off_t long
5464f5a1 5957_ACEOF
252b5132
RH
5958
5959fi
5960
5464f5a1
NN
5961echo "$as_me:$LINENO: checking for size_t" >&5
5962echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5963if test "${ac_cv_type_size_t+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5965else
5464f5a1
NN
5966 cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972$ac_includes_default
5973int
5974main ()
5975{
5976if ((size_t *) 0)
5977 return 0;
5978if (sizeof (size_t))
5979 return 0;
5980 ;
5981 return 0;
5982}
5983_ACEOF
5984rm -f conftest.$ac_objext
5985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5986 (eval $ac_compile) 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } &&
6ec7057a 5993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
653f71ca 6005 ac_cv_type_size_t=yes
252b5132 6006else
5464f5a1
NN
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 6009
5464f5a1 6010ac_cv_type_size_t=no
6be7c12c 6011fi
5464f5a1
NN
6012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6013fi
6014echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6015echo "${ECHO_T}$ac_cv_type_size_t" >&6
6016if test $ac_cv_type_size_t = yes; then
6017 :
6018else
6019
6020cat >>confdefs.h <<_ACEOF
252b5132 6021#define size_t unsigned
5464f5a1 6022_ACEOF
252b5132
RH
6023
6024fi
6025
6026# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6027# for constant arguments. Useless!
5464f5a1
NN
6028echo "$as_me:$LINENO: checking for working alloca.h" >&5
6029echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6030if test "${ac_cv_working_alloca_h+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
252b5132 6039#include <alloca.h>
5464f5a1
NN
6040int
6041main ()
6042{
6043char *p = (char *) alloca (2 * sizeof (int));
6044 ;
6045 return 0;
6046}
6047_ACEOF
6048rm -f conftest.$ac_objext conftest$ac_exeext
6049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050 (eval $ac_link) 2>conftest.er1
6051 ac_status=$?
6052 grep -v '^ *+' conftest.er1 >conftest.err
6053 rm -f conftest.er1
6054 cat conftest.err >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); } &&
6ec7057a 6057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 (eval $ac_try) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; } &&
6063 { ac_try='test -s conftest$ac_exeext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_working_alloca_h=yes
6070else
6071 echo "$as_me: failed program was:" >&5
6072sed 's/^/| /' conftest.$ac_ext >&5
6073
6074ac_cv_working_alloca_h=no
6075fi
6076rm -f conftest.err conftest.$ac_objext \
6077 conftest$ac_exeext conftest.$ac_ext
6078fi
6079echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6080echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6081if test $ac_cv_working_alloca_h = yes; then
6082
6083cat >>confdefs.h <<\_ACEOF
252b5132 6084#define HAVE_ALLOCA_H 1
5464f5a1 6085_ACEOF
252b5132
RH
6086
6087fi
6088
5464f5a1
NN
6089echo "$as_me:$LINENO: checking for alloca" >&5
6090echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6091if test "${ac_cv_func_alloca_works+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6093else
5464f5a1
NN
6094 cat >conftest.$ac_ext <<_ACEOF
6095/* confdefs.h. */
6096_ACEOF
6097cat confdefs.h >>conftest.$ac_ext
6098cat >>conftest.$ac_ext <<_ACEOF
6099/* end confdefs.h. */
252b5132
RH
6100#ifdef __GNUC__
6101# define alloca __builtin_alloca
6102#else
6103# ifdef _MSC_VER
6104# include <malloc.h>
6105# define alloca _alloca
6106# else
6107# if HAVE_ALLOCA_H
6108# include <alloca.h>
6109# else
6110# ifdef _AIX
6111 #pragma alloca
6112# else
6113# ifndef alloca /* predefined by HP cc +Olibcalls */
6114char *alloca ();
6115# endif
6116# endif
6117# endif
6118# endif
6119#endif
6120
5464f5a1
NN
6121int
6122main ()
6123{
6124char *p = (char *) alloca (1);
6125 ;
6126 return 0;
6127}
6128_ACEOF
6129rm -f conftest.$ac_objext conftest$ac_exeext
6130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6ec7057a 6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 (eval $ac_try) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try='test -s conftest$ac_exeext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
252b5132
RH
6150 ac_cv_func_alloca_works=yes
6151else
5464f5a1
NN
6152 echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155ac_cv_func_alloca_works=no
252b5132 6156fi
5464f5a1
NN
6157rm -f conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
252b5132 6159fi
5464f5a1
NN
6160echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6161echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6162
252b5132 6163if test $ac_cv_func_alloca_works = yes; then
252b5132 6164
5464f5a1
NN
6165cat >>confdefs.h <<\_ACEOF
6166#define HAVE_ALLOCA 1
6167_ACEOF
b3baf5d0 6168
5464f5a1 6169else
6be7c12c 6170 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6171# that cause trouble. Some versions do not even contain alloca or
6172# contain a buggy version. If you still want to use their alloca,
6173# use ar to extract alloca.o from them instead of compiling alloca.c.
6174
6175ALLOCA=alloca.$ac_objext
6176
6177cat >>confdefs.h <<\_ACEOF
252b5132 6178#define C_ALLOCA 1
5464f5a1 6179_ACEOF
252b5132 6180
6be7c12c 6181
5464f5a1
NN
6182echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6183echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6184if test "${ac_cv_os_cray+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6186else
5464f5a1
NN
6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
252b5132
RH
6193#if defined(CRAY) && ! defined(CRAY2)
6194webecray
6195#else
6196wenotbecray
6197#endif
6198
5464f5a1 6199_ACEOF
252b5132 6200if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6201 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6202 ac_cv_os_cray=yes
6203else
252b5132
RH
6204 ac_cv_os_cray=no
6205fi
6206rm -f conftest*
6207
6208fi
5464f5a1
NN
6209echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6210echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6211if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6212 for ac_func in _getb67 GETB67 getb67; do
6213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214echo "$as_me:$LINENO: checking for $ac_func" >&5
6215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216if eval "test \"\${$as_ac_var+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 cat >conftest.$ac_ext <<_ACEOF
6220/* confdefs.h. */
6221_ACEOF
6222cat confdefs.h >>conftest.$ac_ext
6223cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */
6225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6227#define $ac_func innocuous_$ac_func
6228
252b5132 6229/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6230 which can conflict with char $ac_func (); below.
6231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 <limits.h> exists even on freestanding compilers. */
6233
6234#ifdef __STDC__
6235# include <limits.h>
6236#else
6237# include <assert.h>
6238#endif
6be7c12c 6239
5464f5a1 6240#undef $ac_func
252b5132 6241
5464f5a1
NN
6242/* Override any gcc2 internal prototype to avoid an error. */
6243#ifdef __cplusplus
6244extern "C"
6245{
6246#endif
6247/* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6249char $ac_func ();
252b5132
RH
6250/* The GNU C library defines this for functions which it implements
6251 to always fail with ENOSYS. Some functions are actually named
6252 something starting with __ and the normal name is an alias. */
6253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6254choke me
6255#else
5464f5a1
NN
6256char (*f) () = $ac_func;
6257#endif
6258#ifdef __cplusplus
6259}
252b5132
RH
6260#endif
6261
5464f5a1
NN
6262int
6263main ()
6264{
6265return f != $ac_func;
6266 ;
6267 return 0;
6268}
6269_ACEOF
6270rm -f conftest.$ac_objext conftest$ac_exeext
6271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } &&
6ec7057a 6279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 eval "$as_ac_var=yes"
6292else
6293 echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296eval "$as_ac_var=no"
6297fi
6298rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6300fi
6301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6303if test `eval echo '${'$as_ac_var'}'` = yes; then
6304
6305cat >>confdefs.h <<_ACEOF
252b5132 6306#define CRAY_STACKSEG_END $ac_func
5464f5a1 6307_ACEOF
252b5132 6308
5464f5a1 6309 break
252b5132
RH
6310fi
6311
5464f5a1 6312 done
252b5132
RH
6313fi
6314
5464f5a1
NN
6315echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6316echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6317if test "${ac_cv_c_stack_direction+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6319else
6320 if test "$cross_compiling" = yes; then
6321 ac_cv_c_stack_direction=0
6322else
5464f5a1
NN
6323 cat >conftest.$ac_ext <<_ACEOF
6324/* confdefs.h. */
6325_ACEOF
6326cat confdefs.h >>conftest.$ac_ext
6327cat >>conftest.$ac_ext <<_ACEOF
6328/* end confdefs.h. */
6329int
252b5132
RH
6330find_stack_direction ()
6331{
6332 static char *addr = 0;
6333 auto char dummy;
6334 if (addr == 0)
6335 {
6336 addr = &dummy;
6337 return find_stack_direction ();
6338 }
6339 else
6340 return (&dummy > addr) ? 1 : -1;
6341}
5464f5a1
NN
6342
6343int
252b5132
RH
6344main ()
6345{
5464f5a1 6346 exit (find_stack_direction () < 0);
252b5132 6347}
5464f5a1
NN
6348_ACEOF
6349rm -f conftest$ac_exeext
6350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6351 (eval $ac_link) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
252b5132
RH
6360 ac_cv_c_stack_direction=1
6361else
5464f5a1
NN
6362 echo "$as_me: program exited with status $ac_status" >&5
6363echo "$as_me: failed program was:" >&5
6364sed 's/^/| /' conftest.$ac_ext >&5
6365
6366( exit $ac_status )
6367ac_cv_c_stack_direction=-1
252b5132 6368fi
5464f5a1 6369rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6370fi
252b5132 6371fi
5464f5a1
NN
6372echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6373echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6374
5464f5a1 6375cat >>confdefs.h <<_ACEOF
252b5132 6376#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6377_ACEOF
6378
252b5132
RH
6379
6380fi
6381
5464f5a1
NN
6382
6383
6384for ac_header in stdlib.h unistd.h
252b5132 6385do
5464f5a1
NN
6386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6387if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6392fi
6393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395else
6396 # Is the header compilable?
6397echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6399cat >conftest.$ac_ext <<_ACEOF
6400/* confdefs.h. */
6401_ACEOF
6402cat confdefs.h >>conftest.$ac_ext
6403cat >>conftest.$ac_ext <<_ACEOF
6404/* end confdefs.h. */
6405$ac_includes_default
6406#include <$ac_header>
6407_ACEOF
6408rm -f conftest.$ac_objext
6409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6ec7057a 6417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_header_compiler=yes
6430else
6431 echo "$as_me: failed program was:" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5
6433
6434ac_header_compiler=no
6435fi
6436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6438echo "${ECHO_T}$ac_header_compiler" >&6
6439
6440# Is the header present?
6441echo "$as_me:$LINENO: checking $ac_header presence" >&5
6442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6443cat >conftest.$ac_ext <<_ACEOF
6444/* confdefs.h. */
6445_ACEOF
6446cat confdefs.h >>conftest.$ac_ext
6447cat >>conftest.$ac_ext <<_ACEOF
6448/* end confdefs.h. */
6449#include <$ac_header>
6450_ACEOF
6451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } >/dev/null; then
6459 if test -s conftest.err; then
6460 ac_cpp_err=$ac_c_preproc_warn_flag
6461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6462 else
6463 ac_cpp_err=
6464 fi
252b5132 6465else
5464f5a1 6466 ac_cpp_err=yes
252b5132 6467fi
5464f5a1
NN
6468if test -z "$ac_cpp_err"; then
6469 ac_header_preproc=yes
6470else
6471 echo "$as_me: failed program was:" >&5
6472sed 's/^/| /' conftest.$ac_ext >&5
6473
6474 ac_header_preproc=no
252b5132 6475fi
5464f5a1
NN
6476rm -f conftest.err conftest.$ac_ext
6477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6478echo "${ECHO_T}$ac_header_preproc" >&6
6479
6480# So? What about this header?
6481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6482 yes:no: )
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6487 ac_header_preproc=yes
6488 ;;
6489 no:yes:* )
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6502 (
6503 cat <<\_ASBOX
6504## ------------------------------------------ ##
6505## Report this to the AC_PACKAGE_NAME lists. ##
6506## ------------------------------------------ ##
6507_ASBOX
6508 ) |
6509 sed "s/^/$as_me: WARNING: /" >&2
6510 ;;
6511esac
6512echo "$as_me:$LINENO: checking for $ac_header" >&5
6513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6514if eval "test \"\${$as_ac_Header+set}\" = set"; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6516else
5464f5a1
NN
6517 eval "$as_ac_Header=\$ac_header_preproc"
6518fi
6519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521
252b5132 6522fi
5464f5a1
NN
6523if test `eval echo '${'$as_ac_Header'}'` = yes; then
6524 cat >>confdefs.h <<_ACEOF
6525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6526_ACEOF
6527
6528fi
6529
252b5132
RH
6530done
6531
5464f5a1 6532
252b5132
RH
6533for ac_func in getpagesize
6534do
5464f5a1
NN
6535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6536echo "$as_me:$LINENO: checking for $ac_func" >&5
6537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6538if eval "test \"\${$as_ac_var+set}\" = set"; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540else
6541 cat >conftest.$ac_ext <<_ACEOF
6542/* confdefs.h. */
6543_ACEOF
6544cat confdefs.h >>conftest.$ac_ext
6545cat >>conftest.$ac_ext <<_ACEOF
6546/* end confdefs.h. */
6547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6549#define $ac_func innocuous_$ac_func
6550
252b5132 6551/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6552 which can conflict with char $ac_func (); below.
6553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6554 <limits.h> exists even on freestanding compilers. */
6555
6556#ifdef __STDC__
6557# include <limits.h>
6558#else
6559# include <assert.h>
6560#endif
6be7c12c 6561
5464f5a1 6562#undef $ac_func
252b5132 6563
5464f5a1
NN
6564/* Override any gcc2 internal prototype to avoid an error. */
6565#ifdef __cplusplus
6566extern "C"
6567{
6568#endif
6569/* We use char because int might match the return type of a gcc2
6570 builtin and then its argument prototype would still apply. */
6571char $ac_func ();
252b5132
RH
6572/* The GNU C library defines this for functions which it implements
6573 to always fail with ENOSYS. Some functions are actually named
6574 something starting with __ and the normal name is an alias. */
6575#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6576choke me
6577#else
5464f5a1
NN
6578char (*f) () = $ac_func;
6579#endif
6580#ifdef __cplusplus
6581}
252b5132
RH
6582#endif
6583
5464f5a1
NN
6584int
6585main ()
6586{
6587return f != $ac_func;
6588 ;
6589 return 0;
6590}
6591_ACEOF
6592rm -f conftest.$ac_objext conftest$ac_exeext
6593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6594 (eval $ac_link) 2>conftest.er1
6595 ac_status=$?
6596 grep -v '^ *+' conftest.er1 >conftest.err
6597 rm -f conftest.er1
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6ec7057a 6601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 eval "$as_ac_var=yes"
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618eval "$as_ac_var=no"
6619fi
6620rm -f conftest.err conftest.$ac_objext \
6621 conftest$ac_exeext conftest.$ac_ext
6622fi
6623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6625if test `eval echo '${'$as_ac_var'}'` = yes; then
6626 cat >>confdefs.h <<_ACEOF
6627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6628_ACEOF
252b5132 6629
252b5132
RH
6630fi
6631done
6632
5464f5a1
NN
6633echo "$as_me:$LINENO: checking for working mmap" >&5
6634echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6635if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6637else
6638 if test "$cross_compiling" = yes; then
6639 ac_cv_func_mmap_fixed_mapped=no
6640else
5464f5a1
NN
6641 cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h. */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h. */
6647$ac_includes_default
6648/* malloc might have been renamed as rpl_malloc. */
6649#undef malloc
6be7c12c 6650
252b5132
RH
6651/* Thanks to Mike Haertel and Jim Avera for this test.
6652 Here is a matrix of mmap possibilities:
6653 mmap private not fixed
6654 mmap private fixed at somewhere currently unmapped
6655 mmap private fixed at somewhere already mapped
6656 mmap shared not fixed
6657 mmap shared fixed at somewhere currently unmapped
6658 mmap shared fixed at somewhere already mapped
6659 For private mappings, we should verify that changes cannot be read()
6660 back from the file, nor mmap's back from the file at a different
6661 address. (There have been systems where private was not correctly
6662 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6663 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6664 like early versions of FreeBSD and possibly contemporary NetBSD.)
6665 For shared mappings, we should conversely verify that changes get
5464f5a1 6666 propagated back to all the places they're supposed to be.
252b5132
RH
6667
6668 Grep wants private fixed already mapped.
6669 The main things grep needs to know about mmap are:
6670 * does it exist and is it safe to write into the mmap'd area
6671 * how to use it (BSD variants) */
5464f5a1 6672
252b5132
RH
6673#include <fcntl.h>
6674#include <sys/mman.h>
6675
5464f5a1
NN
6676#if !STDC_HEADERS && !HAVE_STDLIB_H
6677char *malloc ();
6678#endif
6be7c12c 6679
5464f5a1
NN
6680/* This mess was copied from the GNU getpagesize.h. */
6681#if !HAVE_GETPAGESIZE
252b5132 6682/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6683# if !HAVE_SYS_PARAM_H
252b5132
RH
6684# define HAVE_SYS_PARAM_H 1
6685# endif
6686
6687# ifdef _SC_PAGESIZE
6688# define getpagesize() sysconf(_SC_PAGESIZE)
6689# else /* no _SC_PAGESIZE */
5464f5a1 6690# if HAVE_SYS_PARAM_H
252b5132
RH
6691# include <sys/param.h>
6692# ifdef EXEC_PAGESIZE
6693# define getpagesize() EXEC_PAGESIZE
6694# else /* no EXEC_PAGESIZE */
6695# ifdef NBPG
6696# define getpagesize() NBPG * CLSIZE
6697# ifndef CLSIZE
6698# define CLSIZE 1
6699# endif /* no CLSIZE */
6700# else /* no NBPG */
6701# ifdef NBPC
6702# define getpagesize() NBPC
6703# else /* no NBPC */
6704# ifdef PAGESIZE
6705# define getpagesize() PAGESIZE
6706# endif /* PAGESIZE */
6707# endif /* no NBPC */
6708# endif /* no NBPG */
6709# endif /* no EXEC_PAGESIZE */
6710# else /* no HAVE_SYS_PARAM_H */
6711# define getpagesize() 8192 /* punt totally */
6712# endif /* no HAVE_SYS_PARAM_H */
6713# endif /* no _SC_PAGESIZE */
6714
6715#endif /* no HAVE_GETPAGESIZE */
6716
252b5132 6717int
5464f5a1 6718main ()
252b5132 6719{
5464f5a1
NN
6720 char *data, *data2, *data3;
6721 int i, pagesize;
6722 int fd;
6723
6724 pagesize = getpagesize ();
6725
6726 /* First, make a file with some known garbage in it. */
6727 data = (char *) malloc (pagesize);
6728 if (!data)
6729 exit (1);
6730 for (i = 0; i < pagesize; ++i)
6731 *(data + i) = rand ();
6732 umask (0);
6733 fd = creat ("conftest.mmap", 0600);
6734 if (fd < 0)
6735 exit (1);
6736 if (write (fd, data, pagesize) != pagesize)
6737 exit (1);
6738 close (fd);
6739
6740 /* Next, try to mmap the file at a fixed address which already has
6741 something else allocated at it. If we can, also make sure that
6742 we see the same garbage. */
6743 fd = open ("conftest.mmap", O_RDWR);
6744 if (fd < 0)
6745 exit (1);
6746 data2 = (char *) malloc (2 * pagesize);
6747 if (!data2)
6748 exit (1);
6749 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6750 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6751 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6752 exit (1);
6753 for (i = 0; i < pagesize; ++i)
6754 if (*(data + i) != *(data2 + i))
6755 exit (1);
6756
6757 /* Finally, make sure that changes to the mapped area do not
6758 percolate back to the file as seen by read(). (This is a bug on
6759 some variants of i386 svr4.0.) */
6760 for (i = 0; i < pagesize; ++i)
6761 *(data2 + i) = *(data2 + i) + 1;
6762 data3 = (char *) malloc (pagesize);
6763 if (!data3)
6764 exit (1);
6765 if (read (fd, data3, pagesize) != pagesize)
6766 exit (1);
6767 for (i = 0; i < pagesize; ++i)
6768 if (*(data + i) != *(data3 + i))
6769 exit (1);
6770 close (fd);
6771 exit (0);
252b5132 6772}
5464f5a1
NN
6773_ACEOF
6774rm -f conftest$ac_exeext
6775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6776 (eval $ac_link) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 (eval $ac_try) 2>&5
6782 ac_status=$?
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
252b5132
RH
6785 ac_cv_func_mmap_fixed_mapped=yes
6786else
5464f5a1
NN
6787 echo "$as_me: program exited with status $ac_status" >&5
6788echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
6790
6791( exit $ac_status )
6792ac_cv_func_mmap_fixed_mapped=no
252b5132 6793fi
5464f5a1 6794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6795fi
252b5132 6796fi
5464f5a1
NN
6797echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6798echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6799if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6800
6801cat >>confdefs.h <<\_ACEOF
252b5132 6802#define HAVE_MMAP 1
5464f5a1 6803_ACEOF
252b5132
RH
6804
6805fi
5464f5a1
NN
6806rm -f conftest.mmap
6807
6808
252b5132 6809
5464f5a1
NN
6810
6811
6812
6813
6814
6815
6816
6817
6818for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6819unistd.h values.h sys/param.h
6820do
5464f5a1
NN
6821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6822if eval "test \"\${$as_ac_Header+set}\" = set"; then
6823 echo "$as_me:$LINENO: checking for $ac_header" >&5
6824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6825if eval "test \"\${$as_ac_Header+set}\" = set"; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827fi
6828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6830else
6831 # Is the header compilable?
6832echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6834cat >conftest.$ac_ext <<_ACEOF
6835/* confdefs.h. */
6836_ACEOF
6837cat confdefs.h >>conftest.$ac_ext
6838cat >>conftest.$ac_ext <<_ACEOF
6839/* end confdefs.h. */
6840$ac_includes_default
6841#include <$ac_header>
6842_ACEOF
6843rm -f conftest.$ac_objext
6844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6845 (eval $ac_compile) 2>conftest.er1
6846 ac_status=$?
6847 grep -v '^ *+' conftest.er1 >conftest.err
6848 rm -f conftest.er1
6849 cat conftest.err >&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } &&
6ec7057a 6852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; } &&
6858 { ac_try='test -s conftest.$ac_objext'
6859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860 (eval $ac_try) 2>&5
6861 ac_status=$?
6862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_header_compiler=yes
6865else
6866 echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869ac_header_compiler=no
6870fi
6871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6873echo "${ECHO_T}$ac_header_compiler" >&6
6874
6875# Is the header present?
6876echo "$as_me:$LINENO: checking $ac_header presence" >&5
6877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6878cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h. */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h. */
6884#include <$ac_header>
6885_ACEOF
6886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null; then
6894 if test -s conftest.err; then
6895 ac_cpp_err=$ac_c_preproc_warn_flag
6896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897 else
6898 ac_cpp_err=
6899 fi
252b5132 6900else
5464f5a1 6901 ac_cpp_err=yes
252b5132 6902fi
5464f5a1
NN
6903if test -z "$ac_cpp_err"; then
6904 ac_header_preproc=yes
6905else
6906 echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
6909 ac_header_preproc=no
252b5132 6910fi
5464f5a1
NN
6911rm -f conftest.err conftest.$ac_ext
6912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6913echo "${ECHO_T}$ac_header_preproc" >&6
6914
6915# So? What about this header?
6916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6917 yes:no: )
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6922 ac_header_preproc=yes
6923 ;;
6924 no:yes:* )
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6937 (
6938 cat <<\_ASBOX
6939## ------------------------------------------ ##
6940## Report this to the AC_PACKAGE_NAME lists. ##
6941## ------------------------------------------ ##
6942_ASBOX
6943 ) |
6944 sed "s/^/$as_me: WARNING: /" >&2
6945 ;;
6946esac
6947echo "$as_me:$LINENO: checking for $ac_header" >&5
6948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6949if eval "test \"\${$as_ac_Header+set}\" = set"; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6951else
5464f5a1
NN
6952 eval "$as_ac_Header=\$ac_header_preproc"
6953fi
6954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6956
6957fi
6958if test `eval echo '${'$as_ac_Header'}'` = yes; then
6959 cat >>confdefs.h <<_ACEOF
6960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6961_ACEOF
6962
252b5132 6963fi
5464f5a1 6964
252b5132
RH
6965done
6966
5464f5a1
NN
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6978__argz_count __argz_stringify __argz_next
6979do
5464f5a1
NN
6980as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6981echo "$as_me:$LINENO: checking for $ac_func" >&5
6982echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6983if eval "test \"\${$as_ac_var+set}\" = set"; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h. */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h. */
6992/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6994#define $ac_func innocuous_$ac_func
6995
252b5132 6996/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6997 which can conflict with char $ac_func (); below.
6998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6999 <limits.h> exists even on freestanding compilers. */
7000
7001#ifdef __STDC__
7002# include <limits.h>
7003#else
7004# include <assert.h>
7005#endif
7006
7007#undef $ac_func
7008
252b5132 7009/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7010#ifdef __cplusplus
7011extern "C"
7012{
7013#endif
252b5132 7014/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7015 builtin and then its argument prototype would still apply. */
7016char $ac_func ();
252b5132
RH
7017/* The GNU C library defines this for functions which it implements
7018 to always fail with ENOSYS. Some functions are actually named
7019 something starting with __ and the normal name is an alias. */
7020#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021choke me
7022#else
5464f5a1
NN
7023char (*f) () = $ac_func;
7024#endif
7025#ifdef __cplusplus
7026}
252b5132
RH
7027#endif
7028
5464f5a1
NN
7029int
7030main ()
7031{
7032return f != $ac_func;
7033 ;
7034 return 0;
7035}
7036_ACEOF
7037rm -f conftest.$ac_objext conftest$ac_exeext
7038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7039 (eval $ac_link) 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
6ec7057a 7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048 (eval $ac_try) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest$ac_exeext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 eval "$as_ac_var=yes"
7059else
7060 echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063eval "$as_ac_var=no"
7064fi
7065rm -f conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7067fi
7068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7069echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7070if test `eval echo '${'$as_ac_var'}'` = yes; then
7071 cat >>confdefs.h <<_ACEOF
7072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7073_ACEOF
252b5132 7074
252b5132
RH
7075fi
7076done
7077
b3baf5d0 7078
6be7c12c 7079 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7080
7081for ac_func in stpcpy
252b5132 7082do
5464f5a1
NN
7083as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7084echo "$as_me:$LINENO: checking for $ac_func" >&5
7085echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7086if eval "test \"\${$as_ac_var+set}\" = set"; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 cat >conftest.$ac_ext <<_ACEOF
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
7095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7097#define $ac_func innocuous_$ac_func
7098
252b5132 7099/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7100 which can conflict with char $ac_func (); below.
7101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7102 <limits.h> exists even on freestanding compilers. */
7103
7104#ifdef __STDC__
7105# include <limits.h>
7106#else
7107# include <assert.h>
7108#endif
6be7c12c 7109
5464f5a1 7110#undef $ac_func
252b5132 7111
5464f5a1
NN
7112/* Override any gcc2 internal prototype to avoid an error. */
7113#ifdef __cplusplus
7114extern "C"
7115{
7116#endif
7117/* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7119char $ac_func ();
252b5132
RH
7120/* The GNU C library defines this for functions which it implements
7121 to always fail with ENOSYS. Some functions are actually named
7122 something starting with __ and the normal name is an alias. */
7123#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7124choke me
7125#else
5464f5a1
NN
7126char (*f) () = $ac_func;
7127#endif
7128#ifdef __cplusplus
7129}
252b5132
RH
7130#endif
7131
5464f5a1
NN
7132int
7133main ()
7134{
7135return f != $ac_func;
7136 ;
7137 return 0;
7138}
7139_ACEOF
7140rm -f conftest.$ac_objext conftest$ac_exeext
7141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7142 (eval $ac_link) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
6ec7057a 7149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 eval "$as_ac_var=yes"
7162else
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166eval "$as_ac_var=no"
7167fi
7168rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
7170fi
7171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7173if test `eval echo '${'$as_ac_var'}'` = yes; then
7174 cat >>confdefs.h <<_ACEOF
7175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7176_ACEOF
252b5132 7177
252b5132
RH
7178fi
7179done
7180
7181 fi
7182 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7183
7184cat >>confdefs.h <<\_ACEOF
252b5132 7185#define HAVE_STPCPY 1
5464f5a1 7186_ACEOF
252b5132
RH
7187
7188 fi
7189
7190 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7191 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7192echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7193if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h. */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h. */
252b5132 7202#include <locale.h>
5464f5a1
NN
7203int
7204main ()
7205{
252b5132 7206return LC_MESSAGES
5464f5a1
NN
7207 ;
7208 return 0;
7209}
7210_ACEOF
7211rm -f conftest.$ac_objext conftest$ac_exeext
7212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7213 (eval $ac_link) 2>conftest.er1
7214 ac_status=$?
7215 grep -v '^ *+' conftest.er1 >conftest.err
7216 rm -f conftest.er1
7217 cat conftest.err >&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); } &&
6ec7057a 7220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest$ac_exeext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
252b5132
RH
7232 am_cv_val_LC_MESSAGES=yes
7233else
5464f5a1
NN
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
7237am_cv_val_LC_MESSAGES=no
252b5132 7238fi
5464f5a1
NN
7239rm -f conftest.err conftest.$ac_objext \
7240 conftest$ac_exeext conftest.$ac_ext
252b5132 7241fi
5464f5a1
NN
7242echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7243echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7244 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7245
7246cat >>confdefs.h <<\_ACEOF
252b5132 7247#define HAVE_LC_MESSAGES 1
5464f5a1 7248_ACEOF
252b5132
RH
7249
7250 fi
7251 fi
5464f5a1
NN
7252 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7253echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7254 # Check whether --enable-nls or --disable-nls was given.
7255if test "${enable_nls+set}" = set; then
7256 enableval="$enable_nls"
7257 USE_NLS=$enableval
7258else
7259 USE_NLS=yes
5464f5a1
NN
7260fi;
7261 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7262echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7263
252b5132
RH
7264
7265 USE_INCLUDED_LIBINTL=no
7266
7267 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7268 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7269echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7270
7271# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7272if test "${with_included_gettext+set}" = set; then
7273 withval="$with_included_gettext"
7274 nls_cv_force_use_gnu_gettext=$withval
7275else
7276 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7277fi;
7278 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7279echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7280
7281 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7282 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7283 nls_cv_header_intl=
7284 nls_cv_header_libgt=
a53bf506 7285 CATOBJEXT=
252b5132 7286
5464f5a1
NN
7287 if test "${ac_cv_header_libintl_h+set}" = set; then
7288 echo "$as_me:$LINENO: checking for libintl.h" >&5
7289echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7290if test "${ac_cv_header_libintl_h+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292fi
7293echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7294echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7295else
7296 # Is the header compilable?
7297echo "$as_me:$LINENO: checking libintl.h usability" >&5
7298echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7299cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h. */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h. */
7305$ac_includes_default
252b5132 7306#include <libintl.h>
5464f5a1
NN
7307_ACEOF
7308rm -f conftest.$ac_objext
7309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
6ec7057a 7317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } &&
7323 { ac_try='test -s conftest.$ac_objext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_header_compiler=yes
7330else
7331 echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
7334ac_header_compiler=no
7335fi
7336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338echo "${ECHO_T}$ac_header_compiler" >&6
7339
7340# Is the header present?
7341echo "$as_me:$LINENO: checking libintl.h presence" >&5
7342echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7343cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h. */
7349#include <libintl.h>
7350_ACEOF
7351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } >/dev/null; then
7359 if test -s conftest.err; then
7360 ac_cpp_err=$ac_c_preproc_warn_flag
7361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7362 else
7363 ac_cpp_err=
7364 fi
252b5132 7365else
5464f5a1 7366 ac_cpp_err=yes
252b5132 7367fi
5464f5a1
NN
7368if test -z "$ac_cpp_err"; then
7369 ac_header_preproc=yes
7370else
7371 echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_header_preproc=no
252b5132 7375fi
5464f5a1
NN
7376rm -f conftest.err conftest.$ac_ext
7377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378echo "${ECHO_T}$ac_header_preproc" >&6
7379
7380# So? What about this header?
7381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 yes:no: )
7383 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7384echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7386echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc=yes
7388 ;;
7389 no:yes:* )
7390 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7391echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7393echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7395echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7397echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7399echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7401echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7402 (
7403 cat <<\_ASBOX
7404## ------------------------------------------ ##
7405## Report this to the AC_PACKAGE_NAME lists. ##
7406## ------------------------------------------ ##
7407_ASBOX
7408 ) |
7409 sed "s/^/$as_me: WARNING: /" >&2
7410 ;;
7411esac
7412echo "$as_me:$LINENO: checking for libintl.h" >&5
7413echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7414if test "${ac_cv_header_libintl_h+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7416else
5464f5a1
NN
7417 ac_cv_header_libintl_h=$ac_header_preproc
7418fi
7419echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7420echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7421
7422fi
7423if test $ac_cv_header_libintl_h = yes; then
7424 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7425echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7426if test "${gt_cv_func_gettext_libc+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 cat >conftest.$ac_ext <<_ACEOF
7430/* confdefs.h. */
7431_ACEOF
7432cat confdefs.h >>conftest.$ac_ext
7433cat >>conftest.$ac_ext <<_ACEOF
7434/* end confdefs.h. */
252b5132 7435#include <libintl.h>
5464f5a1
NN
7436int
7437main ()
7438{
252b5132 7439return (int) gettext ("")
5464f5a1
NN
7440 ;
7441 return 0;
7442}
7443_ACEOF
7444rm -f conftest.$ac_objext conftest$ac_exeext
7445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446 (eval $ac_link) 2>conftest.er1
7447 ac_status=$?
7448 grep -v '^ *+' conftest.er1 >conftest.err
7449 rm -f conftest.er1
7450 cat conftest.err >&5
7451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
6ec7057a 7453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455 (eval $ac_try) 2>&5
7456 ac_status=$?
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461 (eval $ac_try) 2>&5
7462 ac_status=$?
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
252b5132
RH
7465 gt_cv_func_gettext_libc=yes
7466else
5464f5a1
NN
7467 echo "$as_me: failed program was:" >&5
7468sed 's/^/| /' conftest.$ac_ext >&5
7469
7470gt_cv_func_gettext_libc=no
252b5132 7471fi
5464f5a1
NN
7472rm -f conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
252b5132 7474fi
5464f5a1
NN
7475echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7476echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7477
7478 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7479 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7480echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7481if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7483else
5464f5a1 7484 ac_check_lib_save_LIBS=$LIBS
252b5132 7485LIBS="-lintl $LIBS"
5464f5a1
NN
7486cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h. */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h. */
7492
252b5132 7493/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7494#ifdef __cplusplus
7495extern "C"
7496#endif
252b5132 7497/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7498 builtin and then its argument prototype would still apply. */
7499char bindtextdomain ();
7500int
7501main ()
7502{
7503bindtextdomain ();
7504 ;
7505 return 0;
7506}
7507_ACEOF
7508rm -f conftest.$ac_objext conftest$ac_exeext
7509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
6ec7057a 7517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_intl_bindtextdomain=yes
7530else
7531 echo "$as_me: failed program was:" >&5
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534ac_cv_lib_intl_bindtextdomain=no
7535fi
7536rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538LIBS=$ac_check_lib_save_LIBS
7539fi
7540echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7541echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7542if test $ac_cv_lib_intl_bindtextdomain = yes; then
7543 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7544echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7545if test "${gt_cv_func_gettext_libintl+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h. */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h. */
252b5132 7554
5464f5a1
NN
7555int
7556main ()
7557{
252b5132 7558return (int) gettext ("")
5464f5a1
NN
7559 ;
7560 return 0;
7561}
7562_ACEOF
7563rm -f conftest.$ac_objext conftest$ac_exeext
7564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
6ec7057a 7572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; } &&
7578 { ac_try='test -s conftest$ac_exeext'
7579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7580 (eval $ac_try) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); }; }; then
252b5132
RH
7584 gt_cv_func_gettext_libintl=yes
7585else
5464f5a1
NN
7586 echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589gt_cv_func_gettext_libintl=no
252b5132 7590fi
5464f5a1
NN
7591rm -f conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
252b5132 7593fi
5464f5a1
NN
7594echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7595echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7596fi
7597
7598 fi
7599
7600 if test "$gt_cv_func_gettext_libc" = "yes" \
7601 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7602
7603cat >>confdefs.h <<\_ACEOF
252b5132 7604#define HAVE_GETTEXT 1
5464f5a1 7605_ACEOF
252b5132
RH
7606
7607 # Extract the first word of "msgfmt", so it can be a program name with args.
7608set dummy msgfmt; ac_word=$2
5464f5a1
NN
7609echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7611if test "${ac_cv_path_MSGFMT+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7613else
7614 case "$MSGFMT" in
7615 /*)
7616 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7620 for ac_dir in $PATH; do
7621 test -z "$ac_dir" && ac_dir=.
7622 if test -f $ac_dir/$ac_word; then
7623 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7624 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7625 break
7626 fi
7627 fi
7628 done
7629 IFS="$ac_save_ifs"
7630 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7631 ;;
7632esac
7633fi
7634MSGFMT="$ac_cv_path_MSGFMT"
7635if test -n "$MSGFMT"; then
5464f5a1
NN
7636 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7637echo "${ECHO_T}$MSGFMT" >&6
252b5132 7638else
5464f5a1
NN
7639 echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
252b5132
RH
7641fi
7642 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7643
7644for ac_func in dcgettext
252b5132 7645do
5464f5a1
NN
7646as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647echo "$as_me:$LINENO: checking for $ac_func" >&5
7648echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7649if eval "test \"\${$as_ac_var+set}\" = set"; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652 cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
7658/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660#define $ac_func innocuous_$ac_func
7661
252b5132 7662/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7663 which can conflict with char $ac_func (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7666
7667#ifdef __STDC__
7668# include <limits.h>
7669#else
7670# include <assert.h>
7671#endif
6be7c12c 7672
5464f5a1 7673#undef $ac_func
252b5132 7674
5464f5a1
NN
7675/* Override any gcc2 internal prototype to avoid an error. */
7676#ifdef __cplusplus
7677extern "C"
7678{
7679#endif
7680/* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7682char $ac_func ();
252b5132
RH
7683/* The GNU C library defines this for functions which it implements
7684 to always fail with ENOSYS. Some functions are actually named
7685 something starting with __ and the normal name is an alias. */
7686#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7687choke me
7688#else
5464f5a1
NN
7689char (*f) () = $ac_func;
7690#endif
7691#ifdef __cplusplus
7692}
252b5132
RH
7693#endif
7694
5464f5a1
NN
7695int
7696main ()
7697{
7698return f != $ac_func;
7699 ;
7700 return 0;
7701}
7702_ACEOF
7703rm -f conftest.$ac_objext conftest$ac_exeext
7704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7705 (eval $ac_link) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
6ec7057a 7712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; } &&
7718 { ac_try='test -s conftest$ac_exeext'
7719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7720 (eval $ac_try) 2>&5
7721 ac_status=$?
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); }; }; then
7724 eval "$as_ac_var=yes"
7725else
7726 echo "$as_me: failed program was:" >&5
7727sed 's/^/| /' conftest.$ac_ext >&5
7728
7729eval "$as_ac_var=no"
7730fi
7731rm -f conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7733fi
7734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7736if test `eval echo '${'$as_ac_var'}'` = yes; then
7737 cat >>confdefs.h <<_ACEOF
7738#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7739_ACEOF
252b5132 7740
252b5132
RH
7741fi
7742done
7743
7744 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7745set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7746echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7748if test "${ac_cv_path_GMSGFMT+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7750else
5464f5a1
NN
7751 case $GMSGFMT in
7752 [\\/]* | ?:[\\/]*)
252b5132
RH
7753 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7754 ;;
252b5132 7755 *)
5464f5a1
NN
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767done
7768done
7769
252b5132
RH
7770 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7771 ;;
7772esac
7773fi
5464f5a1
NN
7774GMSGFMT=$ac_cv_path_GMSGFMT
7775
252b5132 7776if test -n "$GMSGFMT"; then
5464f5a1
NN
7777 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7778echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7779else
5464f5a1
NN
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
252b5132
RH
7782fi
7783
7784 # Extract the first word of "xgettext", so it can be a program name with args.
7785set dummy xgettext; ac_word=$2
5464f5a1
NN
7786echo "$as_me:$LINENO: checking for $ac_word" >&5
7787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7788if test "${ac_cv_path_XGETTEXT+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7790else
7791 case "$XGETTEXT" in
7792 /*)
7793 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7794 ;;
7795 *)
7796 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7797 for ac_dir in $PATH; do
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f $ac_dir/$ac_word; then
7800 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7801 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7802 break
7803 fi
7804 fi
7805 done
7806 IFS="$ac_save_ifs"
7807 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7808 ;;
7809esac
7810fi
7811XGETTEXT="$ac_cv_path_XGETTEXT"
7812if test -n "$XGETTEXT"; then
5464f5a1
NN
7813 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7814echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7815else
5464f5a1
NN
7816 echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6
252b5132
RH
7818fi
7819
5464f5a1
NN
7820 cat >conftest.$ac_ext <<_ACEOF
7821/* confdefs.h. */
7822_ACEOF
7823cat confdefs.h >>conftest.$ac_ext
7824cat >>conftest.$ac_ext <<_ACEOF
7825/* end confdefs.h. */
252b5132 7826
5464f5a1
NN
7827int
7828main ()
7829{
252b5132
RH
7830extern int _nl_msg_cat_cntr;
7831 return _nl_msg_cat_cntr
5464f5a1
NN
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836rm -f conftest.$ac_objext conftest$ac_exeext
7837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } &&
6ec7057a 7845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 (eval $ac_try) 2>&5
7848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try='test -s conftest$ac_exeext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
252b5132
RH
7857 CATOBJEXT=.gmo
7858 DATADIRNAME=share
7859else
5464f5a1
NN
7860 echo "$as_me: failed program was:" >&5
7861sed 's/^/| /' conftest.$ac_ext >&5
7862
7863CATOBJEXT=.mo
252b5132
RH
7864 DATADIRNAME=lib
7865fi
5464f5a1
NN
7866rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7868 INSTOBJEXT=.mo
7869 fi
7870 fi
5464f5a1 7871
b3baf5d0 7872fi
252b5132 7873
6be7c12c 7874
5464f5a1
NN
7875
7876
a53bf506 7877 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7878 # Neither gettext nor catgets in included in the C library.
7879 # Fall back on GNU gettext library (assuming it is present).
7880 nls_cv_use_gnu_gettext=yes
252b5132
RH
7881 fi
7882 fi
7883
7884 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7885 INTLOBJS="\$(GETTOBJS)"
7886 # Extract the first word of "msgfmt", so it can be a program name with args.
7887set dummy msgfmt; ac_word=$2
5464f5a1
NN
7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890if test "${ac_cv_path_MSGFMT+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7892else
7893 case "$MSGFMT" in
7894 /*)
7895 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7896 ;;
7897 *)
7898 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7899 for ac_dir in $PATH; do
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/$ac_word; then
7902 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7903 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7904 break
7905 fi
7906 fi
7907 done
7908 IFS="$ac_save_ifs"
7909 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7910 ;;
7911esac
7912fi
7913MSGFMT="$ac_cv_path_MSGFMT"
7914if test -n "$MSGFMT"; then
5464f5a1
NN
7915 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7916echo "${ECHO_T}$MSGFMT" >&6
252b5132 7917else
5464f5a1
NN
7918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
252b5132
RH
7920fi
7921
7922 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7923set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7924echo "$as_me:$LINENO: checking for $ac_word" >&5
7925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7926if test "${ac_cv_path_GMSGFMT+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7928else
5464f5a1
NN
7929 case $GMSGFMT in
7930 [\\/]* | ?:[\\/]*)
252b5132
RH
7931 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7932 ;;
252b5132 7933 *)
5464f5a1
NN
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943 break 2
7944 fi
7945done
7946done
7947
252b5132
RH
7948 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7949 ;;
7950esac
7951fi
5464f5a1
NN
7952GMSGFMT=$ac_cv_path_GMSGFMT
7953
252b5132 7954if test -n "$GMSGFMT"; then
5464f5a1
NN
7955 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7956echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7957else
5464f5a1
NN
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
252b5132
RH
7960fi
7961
7962 # Extract the first word of "xgettext", so it can be a program name with args.
7963set dummy xgettext; ac_word=$2
5464f5a1
NN
7964echo "$as_me:$LINENO: checking for $ac_word" >&5
7965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7966if test "${ac_cv_path_XGETTEXT+set}" = set; then
7967 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7968else
7969 case "$XGETTEXT" in
7970 /*)
7971 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7972 ;;
7973 *)
7974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7975 for ac_dir in $PATH; do
7976 test -z "$ac_dir" && ac_dir=.
7977 if test -f $ac_dir/$ac_word; then
7978 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7979 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7980 break
7981 fi
7982 fi
7983 done
7984 IFS="$ac_save_ifs"
7985 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7986 ;;
7987esac
7988fi
7989XGETTEXT="$ac_cv_path_XGETTEXT"
7990if test -n "$XGETTEXT"; then
5464f5a1
NN
7991 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7992echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7993else
5464f5a1
NN
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
252b5132
RH
7996fi
7997
5464f5a1 7998
252b5132
RH
7999 USE_INCLUDED_LIBINTL=yes
8000 CATOBJEXT=.gmo
8001 INSTOBJEXT=.mo
8002 DATADIRNAME=share
8003 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8004 INTLLIBS=$INTLDEPS
8005 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8006 nls_cv_header_intl=libintl.h
8007 nls_cv_header_libgt=libgettext.h
8008 fi
8009
8010 if test "$XGETTEXT" != ":"; then
8011 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8012 : ;
8013 else
5464f5a1
NN
8014 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8015echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8016 XGETTEXT=":"
8017 fi
8018 fi
8019
8020 # We need to process the po/ directory.
8021 POSUB=po
8022 else
8023 DATADIRNAME=share
8024 nls_cv_header_intl=libintl.h
8025 nls_cv_header_libgt=libgettext.h
8026 fi
8027
8028 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8029 # because some of the sources are only built for this goal.
8030 if test "$PACKAGE" = gettext; then
8031 USE_NLS=yes
8032 USE_INCLUDED_LIBINTL=yes
8033 fi
8034
8035 for lang in $ALL_LINGUAS; do
8036 GMOFILES="$GMOFILES $lang.gmo"
8037 POFILES="$POFILES $lang.po"
8038 done
8039
5464f5a1
NN
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
c46f8c51
AC
8051 if test "x$CATOBJEXT" != "x"; then
8052
8053cat >>confdefs.h <<\_ACEOF
8054#define ENABLE_NLS 1
8055_ACEOF
8056
8057 fi
5464f5a1 8058
6be7c12c 8059
252b5132
RH
8060 if test "x$CATOBJEXT" != "x"; then
8061 if test "x$ALL_LINGUAS" = "x"; then
8062 LINGUAS=
8063 else
5464f5a1
NN
8064 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8065echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8066 NEW_LINGUAS=
8067 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8068 case "$ALL_LINGUAS" in
8069 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8070 esac
8071 done
8072 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8073 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8074echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8075 fi
8076
8077 if test -n "$LINGUAS"; then
8078 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8079 fi
8080 fi
8081
8082 if test $ac_cv_header_locale_h = yes; then
8083 INCLUDE_LOCALE_H="#include <locale.h>"
8084 else
8085 INCLUDE_LOCALE_H="\
8086/* The system does not provide the header <locale.h>. Take care yourself. */"
8087 fi
5464f5a1 8088
252b5132
RH
8089
8090 if test -f $srcdir/po2tbl.sed.in; then
8091 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8092 if test "${ac_cv_header_linux_version_h+set}" = set; then
8093 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8094echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8095if test "${ac_cv_header_linux_version_h+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8097fi
8098echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8099echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8100else
8101 # Is the header compilable?
8102echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8103echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8104cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
8110$ac_includes_default
252b5132 8111#include <linux/version.h>
5464f5a1
NN
8112_ACEOF
8113rm -f conftest.$ac_objext
8114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8115 (eval $ac_compile) 2>conftest.er1
8116 ac_status=$?
8117 grep -v '^ *+' conftest.er1 >conftest.err
8118 rm -f conftest.er1
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
6ec7057a 8122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest.$ac_objext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_header_compiler=yes
8135else
8136 echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139ac_header_compiler=no
8140fi
8141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8143echo "${ECHO_T}$ac_header_compiler" >&6
8144
8145# Is the header present?
8146echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8147echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8148cat >conftest.$ac_ext <<_ACEOF
8149/* confdefs.h. */
8150_ACEOF
8151cat confdefs.h >>conftest.$ac_ext
8152cat >>conftest.$ac_ext <<_ACEOF
8153/* end confdefs.h. */
8154#include <linux/version.h>
8155_ACEOF
8156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8158 ac_status=$?
8159 grep -v '^ *+' conftest.er1 >conftest.err
8160 rm -f conftest.er1
8161 cat conftest.err >&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } >/dev/null; then
8164 if test -s conftest.err; then
8165 ac_cpp_err=$ac_c_preproc_warn_flag
8166 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8167 else
8168 ac_cpp_err=
8169 fi
252b5132 8170else
5464f5a1 8171 ac_cpp_err=yes
252b5132 8172fi
5464f5a1
NN
8173if test -z "$ac_cpp_err"; then
8174 ac_header_preproc=yes
8175else
8176 echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 ac_header_preproc=no
8180fi
8181rm -f conftest.err conftest.$ac_ext
8182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8183echo "${ECHO_T}$ac_header_preproc" >&6
8184
8185# So? What about this header?
8186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8187 yes:no: )
8188 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8189echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8190 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8191echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8192 ac_header_preproc=yes
8193 ;;
8194 no:yes:* )
8195 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8196echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8198echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8200echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8202echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8204echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8206echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8207 (
8208 cat <<\_ASBOX
8209## ------------------------------------------ ##
8210## Report this to the AC_PACKAGE_NAME lists. ##
8211## ------------------------------------------ ##
8212_ASBOX
8213 ) |
8214 sed "s/^/$as_me: WARNING: /" >&2
8215 ;;
8216esac
8217echo "$as_me:$LINENO: checking for linux/version.h" >&5
8218echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8219if test "${ac_cv_header_linux_version_h+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 ac_cv_header_linux_version_h=$ac_header_preproc
8223fi
8224echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8225echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8226
252b5132 8227fi
5464f5a1 8228if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8229 msgformat=linux
8230else
5464f5a1 8231 msgformat=xopen
252b5132
RH
8232fi
8233
6be7c12c 8234
5464f5a1 8235
252b5132
RH
8236 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8237 fi
8238 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8239 $srcdir/po2tbl.sed.in > po2tbl.sed
8240 fi
8241
8242 if test "$PACKAGE" = "gettext"; then
8243 GT_NO="#NO#"
8244 GT_YES=
8245 else
8246 GT_NO=
8247 GT_YES="#YES#"
8248 fi
5464f5a1
NN
8249
8250
252b5132
RH
8251
8252 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8253
252b5132
RH
8254
8255 l=
5464f5a1 8256
252b5132 8257
3c3bdf30 8258 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8259 test -d po || mkdir po
8260 if test "x$srcdir" != "x."; then
8261 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8262 posrcprefix="$srcdir/"
8263 else
8264 posrcprefix="../$srcdir/"
8265 fi
8266 else
8267 posrcprefix="../"
8268 fi
8269 rm -f po/POTFILES
8270 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8271 < $srcdir/po/POTFILES.in > po/POTFILES
8272 fi
5464f5a1 8273
252b5132
RH
8274
8275# Permit host specific settings.
8276. ${srcdir}/configure.host
8277
6be7c12c 8278
252b5132
RH
8279# Find a good install program. We prefer a C program (faster),
8280# so one script is as good as another. But avoid the broken or
8281# incompatible versions:
8282# SysV /etc/install, /usr/sbin/install
8283# SunOS /usr/etc/install
8284# IRIX /sbin/install
8285# AIX /bin/install
5464f5a1 8286# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8287# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8288# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8289# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8290# OS/2's system install, which has a completely different semantic
252b5132 8291# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8292echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8293echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8294if test -z "$INSTALL"; then
5464f5a1
NN
8295if test "${ac_cv_path_install+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8297else
5464f5a1
NN
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299for as_dir in $PATH
8300do
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 # Account for people who put trailing slashes in PATH elements.
8304case $as_dir/ in
8305 ./ | .// | /cC/* | \
8306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8308 /usr/ucb/* ) ;;
8309 *)
8310 # OSF1 and SCO ODT 3.0 have their own names for install.
8311 # Don't use installbsd from OSF since it installs stuff as root
8312 # by default.
8313 for ac_prog in ginstall scoinst install; do
8314 for ac_exec_ext in '' $ac_executable_extensions; do
8315 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8316 if test $ac_prog = install &&
5464f5a1 8317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8318 # AIX install. It has an incompatible calling convention.
8319 :
5464f5a1
NN
8320 elif test $ac_prog = install &&
8321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8322 # program-specific install script used by HP pwplus--don't use.
8323 :
252b5132 8324 else
5464f5a1
NN
8325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8326 break 3
252b5132
RH
8327 fi
8328 fi
8329 done
5464f5a1
NN
8330 done
8331 ;;
8332esac
8333done
8334
252b5132
RH
8335
8336fi
8337 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8338 INSTALL=$ac_cv_path_install
252b5132
RH
8339 else
8340 # As a last resort, use the slow shell script. We don't cache a
8341 # path for INSTALL within a source directory, because that will
8342 # break other packages using the cache if that directory is
8343 # removed, or if the path is relative.
5464f5a1 8344 INSTALL=$ac_install_sh
252b5132
RH
8345 fi
8346fi
5464f5a1
NN
8347echo "$as_me:$LINENO: result: $INSTALL" >&5
8348echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8349
8350# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8351# It thinks the first close brace ends the variable substitution.
8352test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8353
5464f5a1 8354test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8355
8356test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8357
6be7c12c 8358
252b5132 8359BFD_HOST_64BIT_LONG=0
ec317fb1 8360BFD_HOST_LONG_LONG=0
252b5132
RH
8361BFD_HOST_64_BIT_DEFINED=0
8362BFD_HOST_64_BIT=
8363BFD_HOST_U_64_BIT=
252b5132 8364
5464f5a1
NN
8365echo "$as_me:$LINENO: checking for long long" >&5
8366echo $ECHO_N "checking for long long... $ECHO_C" >&6
8367if test "${bfd_cv_has_long_long+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8369else
5464f5a1
NN
8370 cat >conftest.$ac_ext <<_ACEOF
8371/* confdefs.h. */
8372_ACEOF
8373cat confdefs.h >>conftest.$ac_ext
8374cat >>conftest.$ac_ext <<_ACEOF
8375/* end confdefs.h. */
ec317fb1 8376
5464f5a1
NN
8377int
8378main ()
8379{
ec317fb1 8380unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8381 ;
8382 return 0;
8383}
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
6ec7057a 8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest.$ac_objext'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 (eval $ac_try) 2>&5
8403 ac_status=$?
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; }; then
ec317fb1
ILT
8406 bfd_cv_has_long_long=yes
8407else
5464f5a1
NN
8408 echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411bfd_cv_has_long_long=no
ec317fb1 8412fi
5464f5a1 8413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8414fi
8415
5464f5a1
NN
8416echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8417echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8418if test $bfd_cv_has_long_long = yes; then
8419 BFD_HOST_LONG_LONG=1
2ba49b59
KC
8420 echo "$as_me:$LINENO: checking for long long" >&5
8421echo $ECHO_N "checking for long long... $ECHO_C" >&6
8422if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 8423 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 8424else
5464f5a1
NN
8425 cat >conftest.$ac_ext <<_ACEOF
8426/* confdefs.h. */
8427_ACEOF
8428cat confdefs.h >>conftest.$ac_ext
8429cat >>conftest.$ac_ext <<_ACEOF
8430/* end confdefs.h. */
2ba49b59 8431$ac_includes_default
5464f5a1
NN
8432int
8433main ()
8434{
2ba49b59
KC
8435if ((long long *) 0)
8436 return 0;
8437if (sizeof (long long))
8438 return 0;
5464f5a1
NN
8439 ;
8440 return 0;
8441}
8442_ACEOF
8443rm -f conftest.$ac_objext
8444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8445 (eval $ac_compile) 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
6ec7057a 8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest.$ac_objext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
2ba49b59 8464 ac_cv_type_long_long=yes
6726e1ea 8465else
5464f5a1
NN
8466 echo "$as_me: failed program was:" >&5
8467sed 's/^/| /' conftest.$ac_ext >&5
8468
2ba49b59 8469ac_cv_type_long_long=no
6726e1ea 8470fi
5464f5a1 8471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 8472fi
2ba49b59
KC
8473echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8474echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 8475
2ba49b59
KC
8476echo "$as_me:$LINENO: checking size of long long" >&5
8477echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8478if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 8479 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 8480else
2ba49b59
KC
8481 if test "$ac_cv_type_long_long" = yes; then
8482 # The cast to unsigned long works around a bug in the HP C Compiler
8483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8485 # This bug is HP SR number 8606223364.
8486 if test "$cross_compiling" = yes; then
8487 # Depending upon the size, compute the lo and hi bounds.
8488cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
2ba49b59
KC
8494$ac_includes_default
8495int
8496main ()
8497{
8498static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8499test_array [0] = 0
6726e1ea 8500
2ba49b59
KC
8501 ;
8502 return 0;
8503}
8504_ACEOF
8505rm -f conftest.$ac_objext
8506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507 (eval $ac_compile) 2>conftest.er1
8508 ac_status=$?
8509 grep -v '^ *+' conftest.er1 >conftest.err
8510 rm -f conftest.er1
8511 cat conftest.err >&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); } &&
6ec7057a 8514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
8515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 (eval $ac_try) 2>&5
8517 ac_status=$?
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); }; } &&
8520 { ac_try='test -s conftest.$ac_objext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522 (eval $ac_try) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_lo=0 ac_mid=0
8527 while :; do
8528 cat >conftest.$ac_ext <<_ACEOF
8529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
8534$ac_includes_default
5464f5a1
NN
8535int
8536main ()
8537{
2ba49b59
KC
8538static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8539test_array [0] = 0
8540
5464f5a1
NN
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545rm -f conftest.$ac_objext
8546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
6ec7057a 8554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
2ba49b59 8566 ac_hi=$ac_mid; break
6726e1ea 8567else
5464f5a1
NN
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
2ba49b59
KC
8571ac_lo=`expr $ac_mid + 1`
8572 if test $ac_lo -le $ac_mid; then
8573 ac_lo= ac_hi=
8574 break
8575 fi
8576 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 8577fi
5464f5a1 8578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 8579 done
252b5132 8580else
2ba49b59
KC
8581 echo "$as_me: failed program was:" >&5
8582sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 8583
5464f5a1
NN
8584cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
8590$ac_includes_default
2ba49b59
KC
8591int
8592main ()
8593{
8594static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8595test_array [0] = 0
8596
8597 ;
8598 return 0;
8599}
5464f5a1
NN
8600_ACEOF
8601rm -f conftest.$ac_objext
8602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603 (eval $ac_compile) 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } &&
6ec7057a 8610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest.$ac_objext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
2ba49b59
KC
8622 ac_hi=-1 ac_mid=-1
8623 while :; do
8624 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8625/* confdefs.h. */
8626_ACEOF
8627cat confdefs.h >>conftest.$ac_ext
8628cat >>conftest.$ac_ext <<_ACEOF
8629/* end confdefs.h. */
2ba49b59
KC
8630$ac_includes_default
8631int
8632main ()
8633{
8634static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8635test_array [0] = 0
8636
8637 ;
8638 return 0;
8639}
5464f5a1 8640_ACEOF
2ba49b59
KC
8641rm -f conftest.$ac_objext
8642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8643 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 8649 (exit $ac_status); } &&
6ec7057a 8650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
8651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 (eval $ac_try) 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; } &&
8656 { ac_try='test -s conftest.$ac_objext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 (eval $ac_try) 2>&5
8659 ac_status=$?
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_lo=$ac_mid; break
252b5132 8663else
2ba49b59
KC
8664 echo "$as_me: failed program was:" >&5
8665sed 's/^/| /' conftest.$ac_ext >&5
8666
8667ac_hi=`expr '(' $ac_mid ')' - 1`
8668 if test $ac_mid -le $ac_hi; then
8669 ac_lo= ac_hi=
8670 break
8671 fi
8672 ac_mid=`expr 2 '*' $ac_mid`
252b5132 8673fi
2ba49b59
KC
8674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8675 done
5464f5a1
NN
8676else
8677 echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
2ba49b59 8680ac_lo= ac_hi=
252b5132 8681fi
2ba49b59
KC
8682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8683fi
8684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685# Binary search between lo and hi bounds.
8686while test "x$ac_lo" != "x$ac_hi"; do
8687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8688 cat >conftest.$ac_ext <<_ACEOF
8689/* confdefs.h. */
8690_ACEOF
8691cat confdefs.h >>conftest.$ac_ext
8692cat >>conftest.$ac_ext <<_ACEOF
8693/* end confdefs.h. */
8694$ac_includes_default
8695int
8696main ()
8697{
8698static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8699test_array [0] = 0
5464f5a1 8700
2ba49b59
KC
8701 ;
8702 return 0;
8703}
5464f5a1
NN
8704_ACEOF
8705rm -f conftest.$ac_objext
8706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707 (eval $ac_compile) 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
6ec7057a 8714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716 (eval $ac_try) 2>&5
8717 ac_status=$?
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest.$ac_objext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
2ba49b59 8726 ac_hi=$ac_mid
5464f5a1
NN
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
2ba49b59 8731ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
8732fi
8733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
8734done
8735case $ac_lo in
8736?*) ac_cv_sizeof_long_long=$ac_lo;;
8737'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8738See \`config.log' for more details." >&5
8739echo "$as_me: error: cannot compute sizeof (long long), 77
8740See \`config.log' for more details." >&2;}
8741 { (exit 1); exit 1; }; } ;;
8742esac
8743else
8744 if test "$cross_compiling" = yes; then
6ec7057a
RH
8745 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8746echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2ba49b59
KC
8747 { (exit 1); exit 1; }; }
8748else
8749 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
2ba49b59
KC
8755$ac_includes_default
8756long longval () { return (long) (sizeof (long long)); }
8757unsigned long ulongval () { return (long) (sizeof (long long)); }
8758#include <stdio.h>
8759#include <stdlib.h>
8760int
8761main ()
8762{
8763
8764 FILE *f = fopen ("conftest.val", "w");
8765 if (! f)
8766 exit (1);
8767 if (((long) (sizeof (long long))) < 0)
8768 {
8769 long i = longval ();
8770 if (i != ((long) (sizeof (long long))))
8771 exit (1);
8772 fprintf (f, "%ld\n", i);
8773 }
8774 else
8775 {
8776 unsigned long i = ulongval ();
8777 if (i != ((long) (sizeof (long long))))
8778 exit (1);
8779 fprintf (f, "%lu\n", i);
8780 }
8781 exit (ferror (f) || fclose (f) != 0);
8782
8783 ;
8784 return 0;
8785}
5464f5a1 8786_ACEOF
2ba49b59
KC
8787rm -f conftest$ac_exeext
8788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>&5
5464f5a1 8790 ac_status=$?
5464f5a1 8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
8792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 8799else
2ba49b59
KC
8800 echo "$as_me: program exited with status $ac_status" >&5
8801echo "$as_me: failed program was:" >&5
5464f5a1
NN
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
2ba49b59
KC
8804( exit $ac_status )
8805{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8806See \`config.log' for more details." >&5
8807echo "$as_me: error: cannot compute sizeof (long long), 77
8808See \`config.log' for more details." >&2;}
8809 { (exit 1); exit 1; }; }
252b5132 8810fi
2ba49b59
KC
8811rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8812fi
8813fi
8814rm -f conftest.val
6be7c12c 8815else
2ba49b59 8816 ac_cv_sizeof_long_long=0
5464f5a1 8817fi
5464f5a1 8818fi
2ba49b59
KC
8819echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8820echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8821cat >>confdefs.h <<_ACEOF
8822#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
8823_ACEOF
8824
5464f5a1 8825
2ba49b59 8826fi
252b5132 8827
2ba49b59
KC
8828echo "$as_me:$LINENO: checking for long" >&5
8829echo $ECHO_N "checking for long... $ECHO_C" >&6
8830if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832else
8833 cat >conftest.$ac_ext <<_ACEOF
8834/* confdefs.h. */
8835_ACEOF
8836cat confdefs.h >>conftest.$ac_ext
8837cat >>conftest.$ac_ext <<_ACEOF
8838/* end confdefs.h. */
2ba49b59 8839$ac_includes_default
5464f5a1
NN
8840int
8841main ()
8842{
2ba49b59
KC
8843if ((long *) 0)
8844 return 0;
8845if (sizeof (long))
8846 return 0;
5464f5a1
NN
8847 ;
8848 return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext
8852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853 (eval $ac_compile) 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
6ec7057a 8860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
2ba49b59 8872 ac_cv_type_long=yes
252b5132 8873else
5464f5a1
NN
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
2ba49b59 8877ac_cv_type_long=no
252b5132 8878fi
5464f5a1 8879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8880fi
2ba49b59
KC
8881echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8882echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 8883
2ba49b59
KC
8884echo "$as_me:$LINENO: checking size of long" >&5
8885echo $ECHO_N "checking size of long... $ECHO_C" >&6
8886if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888else
2ba49b59
KC
8889 if test "$ac_cv_type_long" = yes; then
8890 # The cast to unsigned long works around a bug in the HP C Compiler
8891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8893 # This bug is HP SR number 8606223364.
8894 if test "$cross_compiling" = yes; then
8895 # Depending upon the size, compute the lo and hi bounds.
8896cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8897/* confdefs.h. */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
8901/* end confdefs.h. */
2ba49b59 8902$ac_includes_default
5464f5a1
NN
8903int
8904main ()
8905{
2ba49b59
KC
8906static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8907test_array [0] = 0
8908
5464f5a1
NN
8909 ;
8910 return 0;
8911}
8912_ACEOF
8913rm -f conftest.$ac_objext
8914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>conftest.er1
8916 ac_status=$?
8917 grep -v '^ *+' conftest.er1 >conftest.err
8918 rm -f conftest.er1
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
6ec7057a 8922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
2ba49b59
KC
8934 ac_lo=0 ac_mid=0
8935 while :; do
8936 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
2ba49b59 8942$ac_includes_default
5464f5a1
NN
8943int
8944main ()
8945{
2ba49b59
KC
8946static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8947test_array [0] = 0
8948
5464f5a1
NN
8949 ;
8950 return 0;
8951}
8952_ACEOF
2ba49b59
KC
8953rm -f conftest.$ac_objext
8954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
6ec7057a 8962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
8963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 (eval $ac_try) 2>&5
8965 ac_status=$?
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); }; } &&
2ba49b59 8968 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
2ba49b59 8974 ac_hi=$ac_mid; break
5464f5a1
NN
8975else
8976 echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
2ba49b59
KC
8979ac_lo=`expr $ac_mid + 1`
8980 if test $ac_lo -le $ac_mid; then
8981 ac_lo= ac_hi=
8982 break
8983 fi
8984 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 8985fi
2ba49b59
KC
8986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8987 done
8988else
8989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
8993/* confdefs.h. */
8994_ACEOF
8995cat confdefs.h >>conftest.$ac_ext
8996cat >>conftest.$ac_ext <<_ACEOF
8997/* end confdefs.h. */
2ba49b59 8998$ac_includes_default
5464f5a1
NN
8999int
9000main ()
9001{
2ba49b59
KC
9002static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9003test_array [0] = 0
9004
5464f5a1
NN
9005 ;
9006 return 0;
9007}
9008_ACEOF
2ba49b59
KC
9009rm -f conftest.$ac_objext
9010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
6ec7057a 9018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
2ba49b59 9024 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
2ba49b59
KC
9030 ac_hi=-1 ac_mid=-1
9031 while :; do
9032 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9033/* confdefs.h. */
9034_ACEOF
9035cat confdefs.h >>conftest.$ac_ext
9036cat >>conftest.$ac_ext <<_ACEOF
9037/* end confdefs.h. */
2ba49b59 9038$ac_includes_default
5464f5a1
NN
9039int
9040main ()
9041{
2ba49b59
KC
9042static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9043test_array [0] = 0
9044
5464f5a1
NN
9045 ;
9046 return 0;
9047}
9048_ACEOF
2ba49b59
KC
9049rm -f conftest.$ac_objext
9050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
6ec7057a 9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
2ba49b59 9064 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
2ba49b59 9070 ac_lo=$ac_mid; break
5464f5a1
NN
9071else
9072 echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
2ba49b59
KC
9075ac_hi=`expr '(' $ac_mid ')' - 1`
9076 if test $ac_mid -le $ac_hi; then
9077 ac_lo= ac_hi=
9078 break
9079 fi
9080 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 9081fi
2ba49b59
KC
9082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083 done
9084else
9085 echo "$as_me: failed program was:" >&5
9086sed 's/^/| /' conftest.$ac_ext >&5
9087
9088ac_lo= ac_hi=
9089fi
9090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9091fi
9092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9093# Binary search between lo and hi bounds.
9094while test "x$ac_lo" != "x$ac_hi"; do
9095 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9096 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
9097/* confdefs.h. */
9098_ACEOF
9099cat confdefs.h >>conftest.$ac_ext
9100cat >>conftest.$ac_ext <<_ACEOF
9101/* end confdefs.h. */
2ba49b59 9102$ac_includes_default
5464f5a1
NN
9103int
9104main ()
9105{
2ba49b59
KC
9106static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9107test_array [0] = 0
9108
5464f5a1
NN
9109 ;
9110 return 0;
9111}
9112_ACEOF
2ba49b59
KC
9113rm -f conftest.$ac_objext
9114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9115 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } &&
6ec7057a 9122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
9123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9124 (eval $ac_try) 2>&5
9125 ac_status=$?
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; } &&
2ba49b59 9128 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
9129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130 (eval $ac_try) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); }; }; then
2ba49b59 9134 ac_hi=$ac_mid
5464f5a1
NN
9135else
9136 echo "$as_me: failed program was:" >&5
9137sed 's/^/| /' conftest.$ac_ext >&5
9138
2ba49b59 9139ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 9140fi
2ba49b59
KC
9141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9142done
9143case $ac_lo in
9144?*) ac_cv_sizeof_long=$ac_lo;;
9145'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9146See \`config.log' for more details." >&5
9147echo "$as_me: error: cannot compute sizeof (long), 77
9148See \`config.log' for more details." >&2;}
9149 { (exit 1); exit 1; }; } ;;
9150esac
9151else
9152 if test "$cross_compiling" = yes; then
6ec7057a
RH
9153 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9154echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2ba49b59 9155 { (exit 1); exit 1; }; }
2e0fbf77
JW
9156else
9157 cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h. */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h. */
2ba49b59
KC
9163$ac_includes_default
9164long longval () { return (long) (sizeof (long)); }
9165unsigned long ulongval () { return (long) (sizeof (long)); }
9166#include <stdio.h>
9167#include <stdlib.h>
2e0fbf77
JW
9168int
9169main ()
9170{
9171
2ba49b59
KC
9172 FILE *f = fopen ("conftest.val", "w");
9173 if (! f)
9174 exit (1);
9175 if (((long) (sizeof (long))) < 0)
9176 {
9177 long i = longval ();
9178 if (i != ((long) (sizeof (long))))
9179 exit (1);
9180 fprintf (f, "%ld\n", i);
9181 }
9182 else
9183 {
9184 unsigned long i = ulongval ();
9185 if (i != ((long) (sizeof (long))))
9186 exit (1);
9187 fprintf (f, "%lu\n", i);
9188 }
9189 exit (ferror (f) || fclose (f) != 0);
9190
2e0fbf77
JW
9191 ;
9192 return 0;
9193}
9194_ACEOF
2ba49b59
KC
9195rm -f conftest$ac_exeext
9196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197 (eval $ac_link) 2>&5
2e0fbf77
JW
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 9200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
9201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202 (eval $ac_try) 2>&5
9203 ac_status=$?
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
2ba49b59 9206 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 9207else
2ba49b59
KC
9208 echo "$as_me: program exited with status $ac_status" >&5
9209echo "$as_me: failed program was:" >&5
2e0fbf77
JW
9210sed 's/^/| /' conftest.$ac_ext >&5
9211
2ba49b59
KC
9212( exit $ac_status )
9213{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9214See \`config.log' for more details." >&5
9215echo "$as_me: error: cannot compute sizeof (long), 77
9216See \`config.log' for more details." >&2;}
9217 { (exit 1); exit 1; }; }
2e0fbf77 9218fi
2ba49b59 9219rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 9220fi
2ba49b59
KC
9221fi
9222rm -f conftest.val
9223else
9224 ac_cv_sizeof_long=0
9225fi
9226fi
9227echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9228echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9229cat >>confdefs.h <<_ACEOF
9230#define SIZEOF_LONG $ac_cv_sizeof_long
9231_ACEOF
9232
9233
9234if test "x${ac_cv_sizeof_long}" = "x8"; then
9235 host64=true
9236 BFD_HOST_64BIT_LONG=1
9237 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9238 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9239elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9240 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9241 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9242fi
9243
9244if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9245 BFD_HOST_64_BIT_DEFINED=1
9246 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9247 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9248fi
9249
9250
9251
9252
9253
9254
9255
9256# Put a plausible default for CC_FOR_BUILD in Makefile.
9257if test -z "$CC_FOR_BUILD"; then
9258 if test "x$cross_compiling" = "xno"; then
9259 CC_FOR_BUILD='$(CC)'
9260 else
9261 CC_FOR_BUILD=gcc
9262 fi
9263fi
9264
9265# Also set EXEEXT_FOR_BUILD.
9266if test "x$cross_compiling" = "xno"; then
9267 EXEEXT_FOR_BUILD='$(EXEEXT)'
9268else
9269 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9270echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9271if test "${bfd_cv_build_exeext+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274 rm -f conftest*
9275 echo 'int main () { return 0; }' > conftest.c
9276 bfd_cv_build_exeext=
9277 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9278 for file in conftest.*; do
9279 case $file in
9280 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9281 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9282 esac
9283 done
9284 rm -f conftest*
9285 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9286fi
9287echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9288echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9289 EXEEXT_FOR_BUILD=""
9290 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9291fi
9292
9293
9294
9295
9296
9297
9298
9299
9300for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9301do
9302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9303if eval "test \"\${$as_ac_Header+set}\" = set"; then
9304 echo "$as_me:$LINENO: checking for $ac_header" >&5
9305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9306if eval "test \"\${$as_ac_Header+set}\" = set"; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9308fi
9309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9311else
9312 # Is the header compilable?
9313echo "$as_me:$LINENO: checking $ac_header usability" >&5
9314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9315cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321$ac_includes_default
9322#include <$ac_header>
9323_ACEOF
9324rm -f conftest.$ac_objext
9325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9326 (eval $ac_compile) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
6ec7057a 9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest.$ac_objext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_header_compiler=yes
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350ac_header_compiler=no
9351fi
9352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9354echo "${ECHO_T}$ac_header_compiler" >&6
9355
9356# Is the header present?
9357echo "$as_me:$LINENO: checking $ac_header presence" >&5
9358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9359cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h. */
9365#include <$ac_header>
9366_ACEOF
9367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } >/dev/null; then
9375 if test -s conftest.err; then
9376 ac_cpp_err=$ac_c_preproc_warn_flag
9377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9378 else
9379 ac_cpp_err=
9380 fi
9381else
9382 ac_cpp_err=yes
9383fi
9384if test -z "$ac_cpp_err"; then
9385 ac_header_preproc=yes
9386else
9387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_header_preproc=no
9391fi
9392rm -f conftest.err conftest.$ac_ext
9393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9394echo "${ECHO_T}$ac_header_preproc" >&6
9395
9396# So? What about this header?
9397case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9398 yes:no: )
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9402echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9403 ac_header_preproc=yes
9404 ;;
9405 no:yes:* )
9406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9411echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9413echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9417echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9418 (
9419 cat <<\_ASBOX
9420## ------------------------------------------ ##
9421## Report this to the AC_PACKAGE_NAME lists. ##
9422## ------------------------------------------ ##
9423_ASBOX
9424 ) |
9425 sed "s/^/$as_me: WARNING: /" >&2
9426 ;;
9427esac
9428echo "$as_me:$LINENO: checking for $ac_header" >&5
9429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9430if eval "test \"\${$as_ac_Header+set}\" = set"; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433 eval "$as_ac_Header=\$ac_header_preproc"
9434fi
9435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9437
9438fi
9439if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442_ACEOF
9443
9444fi
9445
9446done
9447
9448
9449
9450
9451for ac_header in fcntl.h sys/file.h sys/time.h
9452do
9453as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9454if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo "$as_me:$LINENO: checking for $ac_header" >&5
9456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9457if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459fi
9460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462else
9463 # Is the header compilable?
9464echo "$as_me:$LINENO: checking $ac_header usability" >&5
9465echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9466cat >conftest.$ac_ext <<_ACEOF
9467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h. */
9472$ac_includes_default
9473#include <$ac_header>
9474_ACEOF
9475rm -f conftest.$ac_objext
9476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477 (eval $ac_compile) 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
6ec7057a 9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486 (eval $ac_try) 2>&5
9487 ac_status=$?
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest.$ac_objext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492 (eval $ac_try) 2>&5
9493 ac_status=$?
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_header_compiler=yes
9497else
9498 echo "$as_me: failed program was:" >&5
9499sed 's/^/| /' conftest.$ac_ext >&5
9500
9501ac_header_compiler=no
9502fi
9503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9505echo "${ECHO_T}$ac_header_compiler" >&6
9506
9507# Is the header present?
9508echo "$as_me:$LINENO: checking $ac_header presence" >&5
9509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9510cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h. */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h. */
9516#include <$ac_header>
9517_ACEOF
9518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); } >/dev/null; then
9526 if test -s conftest.err; then
9527 ac_cpp_err=$ac_c_preproc_warn_flag
9528 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9529 else
9530 ac_cpp_err=
9531 fi
9532else
9533 ac_cpp_err=yes
9534fi
9535if test -z "$ac_cpp_err"; then
9536 ac_header_preproc=yes
9537else
9538 echo "$as_me: failed program was:" >&5
9539sed 's/^/| /' conftest.$ac_ext >&5
9540
9541 ac_header_preproc=no
9542fi
9543rm -f conftest.err conftest.$ac_ext
9544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9545echo "${ECHO_T}$ac_header_preproc" >&6
9546
9547# So? What about this header?
9548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9549 yes:no: )
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9554 ac_header_preproc=yes
9555 ;;
9556 no:yes:* )
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9560echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9564echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9569 (
9570 cat <<\_ASBOX
9571## ------------------------------------------ ##
9572## Report this to the AC_PACKAGE_NAME lists. ##
9573## ------------------------------------------ ##
9574_ASBOX
9575 ) |
9576 sed "s/^/$as_me: WARNING: /" >&2
9577 ;;
9578esac
9579echo "$as_me:$LINENO: checking for $ac_header" >&5
9580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9581if eval "test \"\${$as_ac_Header+set}\" = set"; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9583else
9584 eval "$as_ac_Header=\$ac_header_preproc"
9585fi
9586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9588
9589fi
9590if test `eval echo '${'$as_ac_Header'}'` = yes; then
9591 cat >>confdefs.h <<_ACEOF
9592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9593_ACEOF
9594
9595fi
9596
9597done
9598
9599echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9600echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9601if test "${ac_cv_header_time+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603else
9604 cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h. */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h. */
9610#include <sys/types.h>
9611#include <sys/time.h>
9612#include <time.h>
9613
9614int
9615main ()
9616{
9617if ((struct tm *) 0)
9618return 0;
9619 ;
9620 return 0;
9621}
9622_ACEOF
9623rm -f conftest.$ac_objext
9624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9625 (eval $ac_compile) 2>conftest.er1
9626 ac_status=$?
9627 grep -v '^ *+' conftest.er1 >conftest.err
9628 rm -f conftest.er1
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } &&
6ec7057a 9632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_cv_header_time=yes
9645else
9646 echo "$as_me: failed program was:" >&5
9647sed 's/^/| /' conftest.$ac_ext >&5
9648
9649ac_cv_header_time=no
9650fi
9651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652fi
9653echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9654echo "${ECHO_T}$ac_cv_header_time" >&6
9655if test $ac_cv_header_time = yes; then
9656
9657cat >>confdefs.h <<\_ACEOF
9658#define TIME_WITH_SYS_TIME 1
9659_ACEOF
9660
9661fi
9662
9663
9664
9665
9666
9667
9668ac_header_dirent=no
9669for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9670 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9671echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9672echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9673if eval "test \"\${$as_ac_Header+set}\" = set"; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
9676 cat >conftest.$ac_ext <<_ACEOF
9677/* confdefs.h. */
9678_ACEOF
9679cat confdefs.h >>conftest.$ac_ext
9680cat >>conftest.$ac_ext <<_ACEOF
9681/* end confdefs.h. */
9682#include <sys/types.h>
9683#include <$ac_hdr>
9684
9685int
9686main ()
9687{
9688if ((DIR *) 0)
9689return 0;
9690 ;
9691 return 0;
9692}
9693_ACEOF
9694rm -f conftest.$ac_objext
9695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>conftest.er1
9697 ac_status=$?
9698 grep -v '^ *+' conftest.er1 >conftest.err
9699 rm -f conftest.er1
9700 cat conftest.err >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
6ec7057a 9703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 eval "$as_ac_Header=yes"
9716else
9717 echo "$as_me: failed program was:" >&5
9718sed 's/^/| /' conftest.$ac_ext >&5
9719
9720eval "$as_ac_Header=no"
9721fi
9722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9723fi
9724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726if test `eval echo '${'$as_ac_Header'}'` = yes; then
9727 cat >>confdefs.h <<_ACEOF
9728#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9729_ACEOF
9730
9731ac_header_dirent=$ac_hdr; break
9732fi
9733
9734done
9735# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9736if test $ac_header_dirent = dirent.h; then
9737 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9738echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9739if test "${ac_cv_search_opendir+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741else
9742 ac_func_search_save_LIBS=$LIBS
9743ac_cv_search_opendir=no
9744cat >conftest.$ac_ext <<_ACEOF
9745/* confdefs.h. */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h. */
9750
9751/* Override any gcc2 internal prototype to avoid an error. */
9752#ifdef __cplusplus
9753extern "C"
9754#endif
9755/* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757char opendir ();
9758int
9759main ()
9760{
9761opendir ();
9762 ;
9763 return 0;
9764}
9765_ACEOF
9766rm -f conftest.$ac_objext conftest$ac_exeext
9767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
6ec7057a 9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 (eval $ac_try) 2>&5
9778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
9782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783 (eval $ac_try) 2>&5
9784 ac_status=$?
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); }; }; then
9787 ac_cv_search_opendir="none required"
9788else
9789 echo "$as_me: failed program was:" >&5
9790sed 's/^/| /' conftest.$ac_ext >&5
9791
9792fi
9793rm -f conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9795if test "$ac_cv_search_opendir" = no; then
9796 for ac_lib in dir; do
9797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
9804
9805/* Override any gcc2 internal prototype to avoid an error. */
9806#ifdef __cplusplus
9807extern "C"
9808#endif
9809/* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9811char opendir ();
9812int
9813main ()
9814{
9815opendir ();
9816 ;
9817 return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
9821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822 (eval $ac_link) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
6ec7057a 9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_search_opendir="-l$ac_lib"
9842break
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847fi
9848rm -f conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 done
9851fi
9852LIBS=$ac_func_search_save_LIBS
9853fi
9854echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9855echo "${ECHO_T}$ac_cv_search_opendir" >&6
9856if test "$ac_cv_search_opendir" != no; then
9857 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9858
9859fi
9860
9861else
9862 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9863echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9864if test "${ac_cv_search_opendir+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867 ac_func_search_save_LIBS=$LIBS
9868ac_cv_search_opendir=no
9869cat >conftest.$ac_ext <<_ACEOF
9870/* confdefs.h. */
9871_ACEOF
9872cat confdefs.h >>conftest.$ac_ext
9873cat >>conftest.$ac_ext <<_ACEOF
9874/* end confdefs.h. */
9875
9876/* Override any gcc2 internal prototype to avoid an error. */
9877#ifdef __cplusplus
9878extern "C"
9879#endif
9880/* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9882char opendir ();
9883int
9884main ()
9885{
9886opendir ();
9887 ;
9888 return 0;
9889}
9890_ACEOF
9891rm -f conftest.$ac_objext conftest$ac_exeext
9892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>conftest.er1
9894 ac_status=$?
9895 grep -v '^ *+' conftest.er1 >conftest.err
9896 rm -f conftest.er1
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
6ec7057a 9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_search_opendir="none required"
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917fi
9918rm -f conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920if test "$ac_cv_search_opendir" = no; then
9921 for ac_lib in x; do
9922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924/* confdefs.h. */
9925_ACEOF
9926cat confdefs.h >>conftest.$ac_ext
9927cat >>conftest.$ac_ext <<_ACEOF
9928/* end confdefs.h. */
9929
9930/* Override any gcc2 internal prototype to avoid an error. */
9931#ifdef __cplusplus
9932extern "C"
9933#endif
9934/* We use char because int might match the return type of a gcc2
9935 builtin and then its argument prototype would still apply. */
9936char opendir ();
9937int
9938main ()
9939{
9940opendir ();
9941 ;
9942 return 0;
9943}
9944_ACEOF
9945rm -f conftest.$ac_objext conftest$ac_exeext
9946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9948 ac_status=$?
9949 grep -v '^ *+' conftest.er1 >conftest.err
9950 rm -f conftest.er1
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
6ec7057a 9954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
9955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 (eval $ac_try) 2>&5
9957 ac_status=$?
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); }; } &&
9960 { ac_try='test -s conftest$ac_exeext'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 (eval $ac_try) 2>&5
9963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_search_opendir="-l$ac_lib"
9967break
9968else
9969 echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
9972fi
9973rm -f conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 done
9976fi
9977LIBS=$ac_func_search_save_LIBS
9978fi
9979echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9980echo "${ECHO_T}$ac_cv_search_opendir" >&6
9981if test "$ac_cv_search_opendir" != no; then
9982 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9983
9984fi
9985
9986fi
9987
9988echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
9989echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
9990if test "${gcc_cv_header_string+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */
9999#include <string.h>
10000#include <strings.h>
10001int
10002main ()
10003{
10004
10005 ;
10006 return 0;
10007}
10008_ACEOF
10009rm -f conftest.$ac_objext
10010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011 (eval $ac_compile) 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
6ec7057a 10018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 gcc_cv_header_string=yes
10031else
10032 echo "$as_me: failed program was:" >&5
10033sed 's/^/| /' conftest.$ac_ext >&5
10034
10035gcc_cv_header_string=no
10036fi
10037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10038fi
10039echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10040echo "${ECHO_T}$gcc_cv_header_string" >&6
10041if test $gcc_cv_header_string = yes; then
10042
10043cat >>confdefs.h <<\_ACEOF
10044#define STRING_WITH_STRINGS 1
10045_ACEOF
10046
2e0fbf77
JW
10047fi
10048
5464f5a1
NN
10049
10050
10051
10052
10053
10054
10055
633fd09f 10056for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 10057do
5464f5a1
NN
10058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059echo "$as_me:$LINENO: checking for $ac_func" >&5
10060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10061if eval "test \"\${$as_ac_var+set}\" = set"; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064 cat >conftest.$ac_ext <<_ACEOF
10065/* confdefs.h. */
10066_ACEOF
10067cat confdefs.h >>conftest.$ac_ext
10068cat >>conftest.$ac_ext <<_ACEOF
10069/* end confdefs.h. */
10070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10072#define $ac_func innocuous_$ac_func
10073
252b5132 10074/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10075 which can conflict with char $ac_func (); below.
10076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 <limits.h> exists even on freestanding compilers. */
10078
10079#ifdef __STDC__
10080# include <limits.h>
10081#else
10082# include <assert.h>
10083#endif
6be7c12c 10084
5464f5a1 10085#undef $ac_func
252b5132 10086
5464f5a1
NN
10087/* Override any gcc2 internal prototype to avoid an error. */
10088#ifdef __cplusplus
10089extern "C"
10090{
10091#endif
10092/* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094char $ac_func ();
252b5132
RH
10095/* The GNU C library defines this for functions which it implements
10096 to always fail with ENOSYS. Some functions are actually named
10097 something starting with __ and the normal name is an alias. */
10098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10099choke me
10100#else
5464f5a1
NN
10101char (*f) () = $ac_func;
10102#endif
10103#ifdef __cplusplus
10104}
252b5132
RH
10105#endif
10106
5464f5a1
NN
10107int
10108main ()
10109{
10110return f != $ac_func;
10111 ;
10112 return 0;
10113}
10114_ACEOF
10115rm -f conftest.$ac_objext conftest$ac_exeext
10116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10117 (eval $ac_link) 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } &&
6ec7057a 10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126 (eval $ac_try) 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; } &&
10130 { ac_try='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 eval "$as_ac_var=yes"
10137else
10138 echo "$as_me: failed program was:" >&5
10139sed 's/^/| /' conftest.$ac_ext >&5
10140
10141eval "$as_ac_var=no"
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145fi
10146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10147echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10148if test `eval echo '${'$as_ac_var'}'` = yes; then
10149 cat >>confdefs.h <<_ACEOF
10150#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10151_ACEOF
252b5132 10152
252b5132
RH
10153fi
10154done
10155
5464f5a1 10156
49c97a80
ILT
10157for ac_func in strtoull
10158do
5464f5a1
NN
10159as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10160echo "$as_me:$LINENO: checking for $ac_func" >&5
10161echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10162if eval "test \"\${$as_ac_var+set}\" = set"; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10164else
10165 cat >conftest.$ac_ext <<_ACEOF
10166/* confdefs.h. */
10167_ACEOF
10168cat confdefs.h >>conftest.$ac_ext
10169cat >>conftest.$ac_ext <<_ACEOF
10170/* end confdefs.h. */
10171/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10173#define $ac_func innocuous_$ac_func
10174
49c97a80 10175/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
10176 which can conflict with char $ac_func (); below.
10177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10178 <limits.h> exists even on freestanding compilers. */
10179
10180#ifdef __STDC__
10181# include <limits.h>
10182#else
10183# include <assert.h>
10184#endif
49c97a80 10185
5464f5a1 10186#undef $ac_func
49c97a80 10187
5464f5a1
NN
10188/* Override any gcc2 internal prototype to avoid an error. */
10189#ifdef __cplusplus
10190extern "C"
10191{
10192#endif
10193/* We use char because int might match the return type of a gcc2
10194 builtin and then its argument prototype would still apply. */
10195char $ac_func ();
49c97a80
ILT
10196/* The GNU C library defines this for functions which it implements
10197 to always fail with ENOSYS. Some functions are actually named
10198 something starting with __ and the normal name is an alias. */
10199#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10200choke me
10201#else
5464f5a1
NN
10202char (*f) () = $ac_func;
10203#endif
10204#ifdef __cplusplus
10205}
49c97a80
ILT
10206#endif
10207
5464f5a1
NN
10208int
10209main ()
10210{
10211return f != $ac_func;
10212 ;
10213 return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext conftest$ac_exeext
10217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10219 ac_status=$?
10220 grep -v '^ *+' conftest.er1 >conftest.err
10221 rm -f conftest.er1
10222 cat conftest.err >&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
6ec7057a 10225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; } &&
10231 { ac_try='test -s conftest$ac_exeext'
10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10233 (eval $ac_try) 2>&5
10234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 eval "$as_ac_var=yes"
10238else
10239 echo "$as_me: failed program was:" >&5
10240sed 's/^/| /' conftest.$ac_ext >&5
10241
10242eval "$as_ac_var=no"
10243fi
10244rm -f conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246fi
10247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10248echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10249if test `eval echo '${'$as_ac_var'}'` = yes; then
10250 cat >>confdefs.h <<_ACEOF
10251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10252_ACEOF
49c97a80 10253
49c97a80
ILT
10254fi
10255done
10256
6be7c12c 10257
2e9ebff5
JG
10258echo "$as_me:$LINENO: checking whether basename is declared" >&5
10259echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10260if test "${ac_cv_have_decl_basename+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262else
10263 cat >conftest.$ac_ext <<_ACEOF
10264/* confdefs.h. */
10265_ACEOF
10266cat confdefs.h >>conftest.$ac_ext
10267cat >>conftest.$ac_ext <<_ACEOF
10268/* end confdefs.h. */
ec7b76fe 10269$ac_includes_default
2e9ebff5
JG
10270int
10271main ()
10272{
10273#ifndef basename
10274 char *p = (char *) basename;
10275#endif
10276
10277 ;
10278 return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext
10282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283 (eval $ac_compile) 2>conftest.er1
10284 ac_status=$?
10285 grep -v '^ *+' conftest.er1 >conftest.err
10286 rm -f conftest.er1
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
6ec7057a 10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2e9ebff5
JG
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; } &&
10296 { ac_try='test -s conftest.$ac_objext'
10297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298 (eval $ac_try) 2>&5
10299 ac_status=$?
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); }; }; then
10302 ac_cv_have_decl_basename=yes
10303else
10304 echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307ac_cv_have_decl_basename=no
10308fi
10309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10310fi
10311echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10312echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10313if test $ac_cv_have_decl_basename = yes; then
10314
10315cat >>confdefs.h <<_ACEOF
10316#define HAVE_DECL_BASENAME 1
10317_ACEOF
10318
10319
10320else
10321 cat >>confdefs.h <<_ACEOF
10322#define HAVE_DECL_BASENAME 0
10323_ACEOF
10324
10325
10326fi
10327
10328
ec7b76fe
JG
10329echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10330echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10331if test "${ac_cv_have_decl_ftello+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334 cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h. */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h. */
10340$ac_includes_default
10341int
10342main ()
10343{
10344#ifndef ftello
10345 char *p = (char *) ftello;
10346#endif
10347
10348 ;
10349 return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext
10353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } &&
6ec7057a 10361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
10373 ac_cv_have_decl_ftello=yes
10374else
10375 echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
10377
10378ac_cv_have_decl_ftello=no
10379fi
10380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381fi
10382echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10383echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10384if test $ac_cv_have_decl_ftello = yes; then
10385
10386cat >>confdefs.h <<_ACEOF
10387#define HAVE_DECL_FTELLO 1
10388_ACEOF
10389
10390
10391else
10392 cat >>confdefs.h <<_ACEOF
10393#define HAVE_DECL_FTELLO 0
10394_ACEOF
10395
10396
10397fi
10398
10399
10400echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10401echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10402if test "${ac_cv_have_decl_ftello64+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 cat >conftest.$ac_ext <<_ACEOF
10406/* confdefs.h. */
10407_ACEOF
10408cat confdefs.h >>conftest.$ac_ext
10409cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */
10411$ac_includes_default
10412int
10413main ()
10414{
10415#ifndef ftello64
10416 char *p = (char *) ftello64;
10417#endif
10418
10419 ;
10420 return 0;
10421}
10422_ACEOF
10423rm -f conftest.$ac_objext
10424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
6ec7057a 10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; } &&
10438 { ac_try='test -s conftest.$ac_objext'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
10444 ac_cv_have_decl_ftello64=yes
10445else
10446 echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449ac_cv_have_decl_ftello64=no
10450fi
10451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10452fi
10453echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10454echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10455if test $ac_cv_have_decl_ftello64 = yes; then
10456
10457cat >>confdefs.h <<_ACEOF
10458#define HAVE_DECL_FTELLO64 1
10459_ACEOF
10460
10461
10462else
10463 cat >>confdefs.h <<_ACEOF
10464#define HAVE_DECL_FTELLO64 0
10465_ACEOF
10466
10467
10468fi
10469
10470
10471echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10472echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10473if test "${ac_cv_have_decl_fseeko+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475else
10476 cat >conftest.$ac_ext <<_ACEOF
10477/* confdefs.h. */
10478_ACEOF
10479cat confdefs.h >>conftest.$ac_ext
10480cat >>conftest.$ac_ext <<_ACEOF
10481/* end confdefs.h. */
10482$ac_includes_default
10483int
10484main ()
10485{
10486#ifndef fseeko
10487 char *p = (char *) fseeko;
10488#endif
10489
10490 ;
10491 return 0;
10492}
10493_ACEOF
10494rm -f conftest.$ac_objext
10495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10496 (eval $ac_compile) 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
6ec7057a 10503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
10504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505 (eval $ac_try) 2>&5
10506 ac_status=$?
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); }; } &&
10509 { ac_try='test -s conftest.$ac_objext'
10510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511 (eval $ac_try) 2>&5
10512 ac_status=$?
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_have_decl_fseeko=yes
10516else
10517 echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520ac_cv_have_decl_fseeko=no
10521fi
10522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10523fi
10524echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10525echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10526if test $ac_cv_have_decl_fseeko = yes; then
10527
10528cat >>confdefs.h <<_ACEOF
10529#define HAVE_DECL_FSEEKO 1
10530_ACEOF
10531
10532
10533else
10534 cat >>confdefs.h <<_ACEOF
10535#define HAVE_DECL_FSEEKO 0
10536_ACEOF
10537
10538
10539fi
10540
10541
10542echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10543echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10544if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546else
10547 cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h. */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h. */
10553$ac_includes_default
10554int
10555main ()
10556{
10557#ifndef fseeko64
10558 char *p = (char *) fseeko64;
10559#endif
10560
10561 ;
10562 return 0;
10563}
10564_ACEOF
10565rm -f conftest.$ac_objext
10566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
6ec7057a 10574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ec7b76fe
JG
10575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10576 (eval $ac_try) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; } &&
10580 { ac_try='test -s conftest.$ac_objext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_have_decl_fseeko64=yes
10587else
10588 echo "$as_me: failed program was:" >&5
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
10591ac_cv_have_decl_fseeko64=no
10592fi
10593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10594fi
10595echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10596echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10597if test $ac_cv_have_decl_fseeko64 = yes; then
10598
10599cat >>confdefs.h <<_ACEOF
10600#define HAVE_DECL_FSEEKO64 1
10601_ACEOF
10602
10603
10604else
10605 cat >>confdefs.h <<_ACEOF
10606#define HAVE_DECL_FSEEKO64 0
10607_ACEOF
10608
10609
10610fi
10611
10612
2e9ebff5 10613
6be7c12c 10614
252b5132 10615case "${host}" in
855b0be7 10616*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
10617
10618cat >>confdefs.h <<\_ACEOF
252b5132 10619#define USE_BINARY_FOPEN 1
5464f5a1 10620_ACEOF
252b5132
RH
10621 ;;
10622esac
10623
d34a2b1d
JG
10624echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10625echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10626if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 10627 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10628else
5464f5a1
NN
10629 cat >conftest.$ac_ext <<_ACEOF
10630/* confdefs.h. */
10631_ACEOF
10632cat confdefs.h >>conftest.$ac_ext
10633cat >>conftest.$ac_ext <<_ACEOF
10634/* end confdefs.h. */
d34a2b1d 10635$ac_includes_default
5464f5a1
NN
10636int
10637main ()
10638{
d34a2b1d
JG
10639#ifndef ffs
10640 char *p = (char *) ffs;
10641#endif
10642
5464f5a1
NN
10643 ;
10644 return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext
10648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
6ec7057a 10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
d34a2b1d 10668 ac_cv_have_decl_ffs=yes
252b5132 10669else
5464f5a1
NN
10670 echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
d34a2b1d 10673ac_cv_have_decl_ffs=no
252b5132 10674fi
5464f5a1 10675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10676fi
d34a2b1d
JG
10677echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10678echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10679if test $ac_cv_have_decl_ffs = yes; then
252b5132 10680
d34a2b1d
JG
10681cat >>confdefs.h <<_ACEOF
10682#define HAVE_DECL_FFS 1
10683_ACEOF
5464f5a1 10684
d34a2b1d
JG
10685
10686else
10687 cat >>confdefs.h <<_ACEOF
10688#define HAVE_DECL_FFS 0
5464f5a1 10689_ACEOF
252b5132 10690
d34a2b1d 10691
252b5132
RH
10692fi
10693
d34a2b1d
JG
10694
10695echo "$as_me:$LINENO: checking whether free is declared" >&5
10696echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10697if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 10698 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10699else
5464f5a1
NN
10700 cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h. */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h. */
d34a2b1d 10706$ac_includes_default
5464f5a1
NN
10707int
10708main ()
10709{
d34a2b1d
JG
10710#ifndef free
10711 char *p = (char *) free;
10712#endif
10713
5464f5a1
NN
10714 ;
10715 return 0;
10716}
10717_ACEOF
10718rm -f conftest.$ac_objext
10719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10720 (eval $ac_compile) 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } &&
6ec7057a 10727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10730 ac_status=$?
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; } &&
10733 { ac_try='test -s conftest.$ac_objext'
10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735 (eval $ac_try) 2>&5
10736 ac_status=$?
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738 (exit $ac_status); }; }; then
d34a2b1d 10739 ac_cv_have_decl_free=yes
252b5132 10740else
5464f5a1
NN
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
d34a2b1d 10744ac_cv_have_decl_free=no
252b5132 10745fi
5464f5a1 10746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10747fi
d34a2b1d
JG
10748echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10749echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10750if test $ac_cv_have_decl_free = yes; then
10751
10752cat >>confdefs.h <<_ACEOF
10753#define HAVE_DECL_FREE 1
10754_ACEOF
252b5132 10755
5464f5a1 10756
d34a2b1d
JG
10757else
10758 cat >>confdefs.h <<_ACEOF
10759#define HAVE_DECL_FREE 0
5464f5a1 10760_ACEOF
252b5132 10761
d34a2b1d 10762
252b5132
RH
10763fi
10764
d34a2b1d
JG
10765
10766echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10767echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10768if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 10769 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10770else
5464f5a1
NN
10771 cat >conftest.$ac_ext <<_ACEOF
10772/* confdefs.h. */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
10776/* end confdefs.h. */
d34a2b1d 10777$ac_includes_default
5464f5a1
NN
10778int
10779main ()
10780{
d34a2b1d
JG
10781#ifndef getenv
10782 char *p = (char *) getenv;
10783#endif
10784
5464f5a1
NN
10785 ;
10786 return 0;
10787}
10788_ACEOF
10789rm -f conftest.$ac_objext
10790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10791 (eval $ac_compile) 2>conftest.er1
10792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
6ec7057a 10798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800 (eval $ac_try) 2>&5
10801 ac_status=$?
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); }; } &&
10804 { ac_try='test -s conftest.$ac_objext'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10807 ac_status=$?
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
d34a2b1d 10810 ac_cv_have_decl_getenv=yes
252b5132 10811else
5464f5a1
NN
10812 echo "$as_me: failed program was:" >&5
10813sed 's/^/| /' conftest.$ac_ext >&5
10814
d34a2b1d 10815ac_cv_have_decl_getenv=no
252b5132 10816fi
5464f5a1 10817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10818fi
d34a2b1d
JG
10819echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10820echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10821if test $ac_cv_have_decl_getenv = yes; then
252b5132 10822
d34a2b1d
JG
10823cat >>confdefs.h <<_ACEOF
10824#define HAVE_DECL_GETENV 1
10825_ACEOF
5464f5a1 10826
d34a2b1d
JG
10827
10828else
10829 cat >>confdefs.h <<_ACEOF
10830#define HAVE_DECL_GETENV 0
5464f5a1 10831_ACEOF
252b5132 10832
d34a2b1d 10833
252b5132
RH
10834fi
10835
d34a2b1d
JG
10836
10837echo "$as_me:$LINENO: checking whether malloc is declared" >&5
10838echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
10839if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 10840 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10841else
5464f5a1
NN
10842 cat >conftest.$ac_ext <<_ACEOF
10843/* confdefs.h. */
10844_ACEOF
10845cat confdefs.h >>conftest.$ac_ext
10846cat >>conftest.$ac_ext <<_ACEOF
10847/* end confdefs.h. */
d34a2b1d 10848$ac_includes_default
5464f5a1
NN
10849int
10850main ()
10851{
d34a2b1d
JG
10852#ifndef malloc
10853 char *p = (char *) malloc;
10854#endif
10855
5464f5a1
NN
10856 ;
10857 return 0;
10858}
10859_ACEOF
10860rm -f conftest.$ac_objext
10861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>conftest.er1
10863 ac_status=$?
10864 grep -v '^ *+' conftest.er1 >conftest.err
10865 rm -f conftest.er1
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
6ec7057a 10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest.$ac_objext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
d34a2b1d 10881 ac_cv_have_decl_malloc=yes
252b5132 10882else
5464f5a1
NN
10883 echo "$as_me: failed program was:" >&5
10884sed 's/^/| /' conftest.$ac_ext >&5
10885
d34a2b1d 10886ac_cv_have_decl_malloc=no
252b5132 10887fi
5464f5a1 10888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10889fi
d34a2b1d
JG
10890echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
10891echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
10892if test $ac_cv_have_decl_malloc = yes; then
252b5132 10893
d34a2b1d
JG
10894cat >>confdefs.h <<_ACEOF
10895#define HAVE_DECL_MALLOC 1
10896_ACEOF
5464f5a1 10897
d34a2b1d
JG
10898
10899else
10900 cat >>confdefs.h <<_ACEOF
10901#define HAVE_DECL_MALLOC 0
5464f5a1 10902_ACEOF
252b5132 10903
d34a2b1d 10904
252b5132
RH
10905fi
10906
d34a2b1d
JG
10907
10908echo "$as_me:$LINENO: checking whether realloc is declared" >&5
10909echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
10910if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 10911 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10912else
5464f5a1
NN
10913 cat >conftest.$ac_ext <<_ACEOF
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
d34a2b1d 10919$ac_includes_default
5464f5a1
NN
10920int
10921main ()
10922{
d34a2b1d
JG
10923#ifndef realloc
10924 char *p = (char *) realloc;
10925#endif
10926
5464f5a1
NN
10927 ;
10928 return 0;
10929}
10930_ACEOF
10931rm -f conftest.$ac_objext
10932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
6ec7057a 10940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
d34a2b1d 10952 ac_cv_have_decl_realloc=yes
252b5132 10953else
5464f5a1
NN
10954 echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
10956
d34a2b1d 10957ac_cv_have_decl_realloc=no
252b5132 10958fi
5464f5a1 10959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10960fi
d34a2b1d
JG
10961echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
10962echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
10963if test $ac_cv_have_decl_realloc = yes; then
10964
10965cat >>confdefs.h <<_ACEOF
10966#define HAVE_DECL_REALLOC 1
10967_ACEOF
252b5132 10968
5464f5a1 10969
d34a2b1d
JG
10970else
10971 cat >>confdefs.h <<_ACEOF
10972#define HAVE_DECL_REALLOC 0
efa9bda4
AL
10973_ACEOF
10974
d34a2b1d 10975
efa9bda4
AL
10976fi
10977
d34a2b1d 10978
be5cacdb
L
10979echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
10980echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
10981if test "${ac_cv_have_decl_stpcpy+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10983else
10984 cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990$ac_includes_default
10991int
10992main ()
10993{
10994#ifndef stpcpy
10995 char *p = (char *) stpcpy;
10996#endif
10997
10998 ;
10999 return 0;
11000}
11001_ACEOF
11002rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
6ec7057a 11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
be5cacdb
L
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_have_decl_stpcpy=yes
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028ac_cv_have_decl_stpcpy=no
11029fi
11030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11031fi
11032echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11033echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11034if test $ac_cv_have_decl_stpcpy = yes; then
11035
11036cat >>confdefs.h <<_ACEOF
11037#define HAVE_DECL_STPCPY 1
11038_ACEOF
11039
11040
11041else
11042 cat >>confdefs.h <<_ACEOF
11043#define HAVE_DECL_STPCPY 0
11044_ACEOF
11045
11046
11047fi
11048
11049
d34a2b1d
JG
11050echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11051echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11052if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11054else
11055 cat >conftest.$ac_ext <<_ACEOF
11056/* confdefs.h. */
11057_ACEOF
11058cat confdefs.h >>conftest.$ac_ext
11059cat >>conftest.$ac_ext <<_ACEOF
11060/* end confdefs.h. */
d34a2b1d 11061$ac_includes_default
efa9bda4
AL
11062int
11063main ()
11064{
d34a2b1d
JG
11065#ifndef strstr
11066 char *p = (char *) strstr;
11067#endif
11068
efa9bda4
AL
11069 ;
11070 return 0;
11071}
11072_ACEOF
11073rm -f conftest.$ac_objext
11074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11075 (eval $ac_compile) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
6ec7057a 11082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efa9bda4
AL
11083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084 (eval $ac_try) 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
d34a2b1d 11094 ac_cv_have_decl_strstr=yes
efa9bda4
AL
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
d34a2b1d 11099ac_cv_have_decl_strstr=no
efa9bda4
AL
11100fi
11101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102fi
d34a2b1d
JG
11103echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11104echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11105if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 11106
d34a2b1d
JG
11107cat >>confdefs.h <<_ACEOF
11108#define HAVE_DECL_STRSTR 1
11109_ACEOF
efa9bda4 11110
d34a2b1d
JG
11111
11112else
11113 cat >>confdefs.h <<_ACEOF
11114#define HAVE_DECL_STRSTR 0
5464f5a1 11115_ACEOF
252b5132 11116
d34a2b1d 11117
252b5132
RH
11118fi
11119
6be7c12c 11120
36527912
AJ
11121echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11122echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11123if test "${ac_cv_have_decl_snprintf+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11125else
11126 cat >conftest.$ac_ext <<_ACEOF
11127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */
11132$ac_includes_default
11133int
11134main ()
11135{
11136#ifndef snprintf
11137 char *p = (char *) snprintf;
11138#endif
11139
11140 ;
11141 return 0;
11142}
11143_ACEOF
11144rm -f conftest.$ac_objext
11145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11146 (eval $ac_compile) 2>conftest.er1
11147 ac_status=$?
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
6ec7057a 11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36527912
AJ
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest.$ac_objext'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 ac_cv_have_decl_snprintf=yes
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170ac_cv_have_decl_snprintf=no
11171fi
11172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11173fi
11174echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11175echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11176if test $ac_cv_have_decl_snprintf = yes; then
11177
11178cat >>confdefs.h <<_ACEOF
11179#define HAVE_DECL_SNPRINTF 1
11180_ACEOF
11181
11182
11183else
11184 cat >>confdefs.h <<_ACEOF
11185#define HAVE_DECL_SNPRINTF 0
11186_ACEOF
11187
11188
11189fi
11190
11191
11192echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11193echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11194if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196else
11197 cat >conftest.$ac_ext <<_ACEOF
11198/* confdefs.h. */
11199_ACEOF
11200cat confdefs.h >>conftest.$ac_ext
11201cat >>conftest.$ac_ext <<_ACEOF
11202/* end confdefs.h. */
11203$ac_includes_default
11204int
11205main ()
11206{
11207#ifndef vsnprintf
11208 char *p = (char *) vsnprintf;
11209#endif
11210
11211 ;
11212 return 0;
11213}
11214_ACEOF
11215rm -f conftest.$ac_objext
11216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11217 (eval $ac_compile) 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } &&
6ec7057a 11224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
36527912
AJ
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest.$ac_objext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_have_decl_vsnprintf=yes
11237else
11238 echo "$as_me: failed program was:" >&5
11239sed 's/^/| /' conftest.$ac_ext >&5
11240
11241ac_cv_have_decl_vsnprintf=no
11242fi
11243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11244fi
11245echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11246echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11247if test $ac_cv_have_decl_vsnprintf = yes; then
11248
11249cat >>confdefs.h <<_ACEOF
11250#define HAVE_DECL_VSNPRINTF 1
11251_ACEOF
11252
11253
11254else
11255 cat >>confdefs.h <<_ACEOF
11256#define HAVE_DECL_VSNPRINTF 0
11257_ACEOF
11258
11259
11260fi
11261
11262
d34a2b1d 11263
252b5132
RH
11264# If we are configured native, pick a core file support file.
11265COREFILE=
11266COREFLAG=
11267TRAD_HEADER=
11268if test "${target}" = "${host}"; then
11269 case "${host}" in
13dfd2d0 11270 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
11271 COREFILE=''
11272 ;;
ed84e695 11273 alpha*-*-linux-*)
252b5132
RH
11274 COREFILE=trad-core.lo
11275 TRAD_HEADER='"hosts/alphalinux.h"'
11276 ;;
690cc98b
NC
11277 alpha*-*-netbsd* | alpha*-*-openbsd*)
11278 COREFILE=netbsd-core.lo
11279 ;;
252b5132 11280 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
11281 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11282 COREFILE='' ;;
61d0bc33 11283 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
11284 arm-*-riscix) COREFILE=trad-core.lo ;;
11285 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11286 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11287 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11288 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11289 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
11290 hppa*-*-netbsd* | hppa*-*-openbsd*)
11291 COREFILE=netbsd-core.lo
11292 ;;
11293
dc810e39 11294 i370-*-*)
5b93d8bb
AM
11295 COREFILE=trad-core.lo
11296 TRAD_HEADER='"hosts/i370linux.h"'
11297 ;;
11298
80c7c40a 11299 i[3-7]86-sequent-bsd*)
5b93d8bb 11300 COREFILE=trad-core.lo
252b5132
RH
11301 TRAD_HEADER='"hosts/symmetry.h"'
11302 ;;
80c7c40a
NC
11303 i[3-7]86-sequent-sysv4*) ;;
11304 i[3-7]86-sequent-sysv*)
252b5132
RH
11305 COREFILE=trad-core.lo
11306 TRAD_HEADER='"hosts/symmetry.h"'
11307 ;;
80c7c40a 11308 i[3-7]86-*-bsdi)
7e3b3466
NC
11309 COREFILE=
11310 ;;
d2bef492 11311 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
252b5132
RH
11312 COREFILE=trad-core.lo
11313 TRAD_HEADER='"hosts/i386bsd.h"'
11314 ;;
13dfd2d0 11315 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
11316 COREFILE=''
11317 TRAD_HEADER='"hosts/i386bsd.h"'
11318 ;;
4615568e 11319 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
11320 COREFILE=netbsd-core.lo
11321 ;;
80c7c40a 11322 i[3-7]86-esix-sysv3*)
252b5132
RH
11323 COREFILE=trad-core.lo
11324 TRAD_HEADER='"hosts/esix.h"'
11325 ;;
80c7c40a 11326 i[3-7]86-*-sco3.2v5*)
252b5132
RH
11327 COREFILE=sco5-core.lo
11328 ;;
80c7c40a 11329 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
11330 COREFILE=trad-core.lo
11331 TRAD_HEADER='"hosts/i386sco.h"'
11332 ;;
80c7c40a 11333 i[3-7]86-*-mach3*)
252b5132
RH
11334 COREFILE=trad-core.lo
11335 TRAD_HEADER='"hosts/i386mach3.h"'
11336 ;;
ed84e695 11337 i[3-7]86-*-linux-*)
252b5132
RH
11338 COREFILE=trad-core.lo
11339 TRAD_HEADER='"hosts/i386linux.h"'
11340 ;;
80c7c40a
NC
11341 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11342 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
11343 i860-*-mach3* | i860-*-osf1*)
11344 COREFILE=trad-core.lo
11345 TRAD_HEADER='"hosts/i860mach3.h"'
11346 ;;
252b5132
RH
11347 mips-*-netbsd* | mips*-*-openbsd*)
11348 COREFILE=netbsd-core.lo
11349 ;;
11350 mips-dec-*)
11351 COREFILE=trad-core.lo
11352 TRAD_HEADER='"hosts/decstation.h"'
11353 ;;
11354 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11355 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11356 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
11357 mips-*-sysv4*) ;;
11358 mips-*-sysv* | mips-*-riscos*)
11359 COREFILE=trad-core.lo
11360 TRAD_HEADER='"hosts/riscos.h"'
11361 ;;
11362 mips-sony-bsd*)
11363 COREFILE=trad-core.lo
11364 TRAD_HEADER='"hosts/news-mips.h"'
11365 ;;
11366 m68*-bull*-sysv*)
11367 COREFILE=trad-core.lo
11368 TRAD_HEADER='"hosts/dpx2.h"'
11369 ;;
11370 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11371 m68*-hp-bsd*)
11372 COREFILE=trad-core.lo
11373 TRAD_HEADER='"hosts/hp300bsd.h"'
11374 ;;
ed84e695 11375 m68*-*-linux-*)
252b5132
RH
11376 COREFILE=trad-core.lo
11377 TRAD_HEADER='"hosts/m68klinux.h"'
11378 ;;
11379 m68*-motorola-sysv*)
11380 COREFILE=trad-core.lo
11381 TRAD_HEADER='"hosts/delta68.h"'
11382 ;;
11383 m68*-sony-*)
11384 COREFILE=trad-core.lo
11385 TRAD_HEADER='"hosts/news.h"'
11386 ;;
11387 m68*-*-netbsd* | m68*-*-openbsd*)
11388 COREFILE=netbsd-core.lo
11389 ;;
11390 m68*-apple-aux*)
11391 COREFILE=trad-core.lo
11392 TRAD_HEADER='"hosts/m68kaux.h"'
11393 ;;
eb1e0e80
NC
11394 m88*-*-sysv4*)
11395 ;;
11396 m88*-motorola-sysv*)
11397 COREFILE=ptrace-core.lo
11398 ;;
252b5132
RH
11399 m88*-*-mach3*)
11400 COREFILE=trad-core.lo
11401 TRAD_HEADER='"hosts/m88kmach3.h"'
11402 ;;
c6f8758f
NC
11403 m88*-*-openbsd*)
11404 COREFILE=netbsd-core.lo
11405 ;;
252b5132
RH
11406 ns32k-pc532-mach)
11407 COREFILE=trad-core.lo
11408 TRAD_HEADER='"hosts/pc532mach.h"'
11409 ;;
11410 ns32k-*-netbsd* | ns32k-*-openbsd*)
11411 COREFILE=netbsd-core.lo
11412 ;;
eb1e0e80
NC
11413 rs6000-*-lynx*)
11414 COREFILE=lynx-core.lo
11415 ;;
11416 rs6000-*-aix5.* | powerpc-*-aix5.*)
11417 COREFILE=rs6000-core.lo
11418 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11419 ;;
83954261 11420 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
11421 COREFILE=rs6000-core.lo
11422 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
11423 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11424 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
11425 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11426echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11427 cat >conftest.$ac_ext <<_ACEOF
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
83954261 11433#include <core.h>
5464f5a1
NN
11434int
11435main ()
11436{
83954261 11437struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
11438 ;
11439 return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext
11443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11444 (eval $ac_compile) 2>conftest.er1
11445 ac_status=$?
11446 grep -v '^ *+' conftest.er1 >conftest.err
11447 rm -f conftest.er1
11448 cat conftest.err >&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
6ec7057a 11451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463
11464cat >>confdefs.h <<\_ACEOF
83954261 11465#define HAVE_ST_C_IMPL 1
5464f5a1 11466_ACEOF
83954261 11467
5464f5a1
NN
11468 echo "$as_me:$LINENO: result: yes" >&5
11469echo "${ECHO_T}yes" >&6
83954261 11470else
5464f5a1
NN
11471 echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
11473
11474echo "$as_me:$LINENO: result: no" >&5
11475echo "${ECHO_T}no" >&6
83954261 11476fi
5464f5a1 11477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 11478 ;;
252b5132
RH
11479 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11480 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
11481 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11482 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11483 powerpc-*-beos*) ;;
13dfd2d0
NC
11484 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11485 COREFILE='' ;;
252b5132 11486 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 11487 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 11488 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 11489 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 11490 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
11491 COREFILE=netbsd-core.lo
11492 ;;
11493 tahoe-*-*)
11494 COREFILE=trad-core.lo
11495 TRAD_HEADER='"hosts/tahoe.h"'
11496 ;;
de6e5e1a
NC
11497 vax-*-netbsd* | vax-*-openbsd*)
11498 COREFILE=netbsd-core.lo
11499 ;;
252b5132
RH
11500 vax-*-ultrix2*)
11501 COREFILE=trad-core.lo
11502 TRAD_HEADER='"hosts/vaxult2.h"'
11503 ;;
11504 vax-*-ultrix*)
11505 COREFILE=trad-core.lo
11506 TRAD_HEADER='"hosts/vaxult2.h"'
11507 ;;
ed84e695 11508 vax-*-linux-*)
f8fc3443
NC
11509 COREFILE=trad-core.lo
11510 TRAD_HEADER='"hosts/vaxlinux.h"'
11511 ;;
252b5132
RH
11512 vax-*-*)
11513 COREFILE=trad-core.lo
11514 TRAD_HEADER='"hosts/vaxbsd.h"'
11515 ;;
85cfd8d3
MK
11516 x86_64-*-netbsd* | x86_64-*-openbsd*)
11517 COREFILE=netbsd-core.lo
11518 ;;
252b5132
RH
11519 esac
11520
11521 case "$COREFILE" in
11522 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11523 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11524 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11525 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11526 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11527 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11528 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11529 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11530 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11531 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11532 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11533 esac
11534
11535 # ELF corefile support has several flavors, but all of
11536 # them use something called <sys/procfs.h>
5464f5a1
NN
11537
11538for ac_header in sys/procfs.h
252b5132 11539do
5464f5a1
NN
11540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11541if eval "test \"\${$as_ac_Header+set}\" = set"; then
11542 echo "$as_me:$LINENO: checking for $ac_header" >&5
11543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11544if eval "test \"\${$as_ac_Header+set}\" = set"; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546fi
11547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11549else
11550 # Is the header compilable?
11551echo "$as_me:$LINENO: checking $ac_header usability" >&5
11552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11553cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559$ac_includes_default
11560#include <$ac_header>
11561_ACEOF
11562rm -f conftest.$ac_objext
11563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11564 (eval $ac_compile) 2>conftest.er1
11565 ac_status=$?
11566 grep -v '^ *+' conftest.er1 >conftest.err
11567 rm -f conftest.er1
11568 cat conftest.err >&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); } &&
6ec7057a 11571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573 (eval $ac_try) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579 (eval $ac_try) 2>&5
11580 ac_status=$?
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); }; }; then
11583 ac_header_compiler=yes
11584else
11585 echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588ac_header_compiler=no
11589fi
11590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592echo "${ECHO_T}$ac_header_compiler" >&6
11593
11594# Is the header present?
11595echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h. */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h. */
11603#include <$ac_header>
11604_ACEOF
11605if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11607 ac_status=$?
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } >/dev/null; then
11613 if test -s conftest.err; then
11614 ac_cpp_err=$ac_c_preproc_warn_flag
11615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11616 else
11617 ac_cpp_err=
11618 fi
252b5132 11619else
5464f5a1 11620 ac_cpp_err=yes
252b5132 11621fi
5464f5a1
NN
11622if test -z "$ac_cpp_err"; then
11623 ac_header_preproc=yes
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628 ac_header_preproc=no
252b5132 11629fi
5464f5a1
NN
11630rm -f conftest.err conftest.$ac_ext
11631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632echo "${ECHO_T}$ac_header_preproc" >&6
11633
11634# So? What about this header?
11635case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11642 ;;
11643 no:yes:* )
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11651echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11656 (
11657 cat <<\_ASBOX
11658## ------------------------------------------ ##
11659## Report this to the AC_PACKAGE_NAME lists. ##
11660## ------------------------------------------ ##
11661_ASBOX
11662 ) |
11663 sed "s/^/$as_me: WARNING: /" >&2
11664 ;;
11665esac
11666echo "$as_me:$LINENO: checking for $ac_header" >&5
11667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11668if eval "test \"\${$as_ac_Header+set}\" = set"; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11670else
5464f5a1
NN
11671 eval "$as_ac_Header=\$ac_header_preproc"
11672fi
11673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11674echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11675
252b5132 11676fi
5464f5a1
NN
11677if test `eval echo '${'$as_ac_Header'}'` = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11680_ACEOF
11681
11682fi
11683
252b5132
RH
11684done
11685
11686 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
11687 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11688echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11689 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11691else
11692 cat >conftest.$ac_ext <<_ACEOF
11693/* confdefs.h. */
11694_ACEOF
11695cat confdefs.h >>conftest.$ac_ext
11696cat >>conftest.$ac_ext <<_ACEOF
11697/* end confdefs.h. */
7ee38065
MS
11698
11699#define _SYSCALL32
252b5132 11700#include <sys/procfs.h>
5464f5a1
NN
11701int
11702main ()
11703{
252b5132 11704prstatus_t avar
5464f5a1
NN
11705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext
11710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11711 (eval $ac_compile) 2>conftest.er1
11712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); } &&
6ec7057a 11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; } &&
11724 { ac_try='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
252b5132
RH
11730 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11731else
5464f5a1
NN
11732 echo "$as_me: failed program was:" >&5
11733sed 's/^/| /' conftest.$ac_ext >&5
11734
11735bfd_cv_have_sys_procfs_type_prstatus_t=no
11736
252b5132 11737fi
5464f5a1 11738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11739fi
11740
11741 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
11742
11743cat >>confdefs.h <<\_ACEOF
252b5132 11744#define HAVE_PRSTATUS_T 1
5464f5a1 11745_ACEOF
252b5132
RH
11746
11747 fi
5464f5a1
NN
11748 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11749echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 11750
5464f5a1
NN
11751 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11752echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11753 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11755else
5464f5a1
NN
11756 cat >conftest.$ac_ext <<_ACEOF
11757/* confdefs.h. */
11758_ACEOF
11759cat confdefs.h >>conftest.$ac_ext
11760cat >>conftest.$ac_ext <<_ACEOF
11761/* end confdefs.h. */
7ee38065
MS
11762
11763#define _SYSCALL32
11764#include <sys/procfs.h>
5464f5a1
NN
11765int
11766main ()
11767{
7ee38065 11768prstatus32_t avar
5464f5a1
NN
11769 ;
11770 return 0;
11771}
11772_ACEOF
11773rm -f conftest.$ac_objext
11774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11775 (eval $ac_compile) 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
6ec7057a 11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784 (eval $ac_try) 2>&5
11785 ac_status=$?
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest.$ac_objext'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11791 ac_status=$?
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; }; then
7ee38065
MS
11794 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
11795else
5464f5a1
NN
11796 echo "$as_me: failed program was:" >&5
11797sed 's/^/| /' conftest.$ac_ext >&5
11798
11799bfd_cv_have_sys_procfs_type_prstatus32_t=no
11800
7ee38065 11801fi
5464f5a1 11802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11803fi
11804
11805 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
11806
11807cat >>confdefs.h <<\_ACEOF
7ee38065 11808#define HAVE_PRSTATUS32_T 1
5464f5a1 11809_ACEOF
7ee38065
MS
11810
11811 fi
5464f5a1
NN
11812 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
11813echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 11814
5464f5a1
NN
11815 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
11816echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11817 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
11818 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11819else
5464f5a1
NN
11820 cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
7ee38065
MS
11826
11827#define _SYSCALL32
252b5132 11828#include <sys/procfs.h>
5464f5a1
NN
11829int
11830main ()
11831{
252b5132 11832prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
11833 ;
11834 return 0;
11835}
11836_ACEOF
11837rm -f conftest.$ac_objext
11838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11839 (eval $ac_compile) 2>conftest.er1
11840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } &&
6ec7057a 11846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848 (eval $ac_try) 2>&5
11849 ac_status=$?
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; } &&
11852 { ac_try='test -s conftest.$ac_objext'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11855 ac_status=$?
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; }; then
252b5132
RH
11858 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
11859else
5464f5a1
NN
11860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
11862
11863bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
11864
252b5132 11865fi
5464f5a1 11866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11867fi
11868
11869 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
11870
11871cat >>confdefs.h <<\_ACEOF
252b5132 11872#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 11873_ACEOF
252b5132
RH
11874
11875 fi
5464f5a1
NN
11876 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
11877echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 11878
5464f5a1
NN
11879 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
11880echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
11881 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11883else
5464f5a1
NN
11884 cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
7ee38065
MS
11890
11891#define _SYSCALL32
11892#include <sys/procfs.h>
5464f5a1
NN
11893int
11894main ()
11895{
7ee38065 11896prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
11897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext
11902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
6ec7057a 11910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
7ee38065
MS
11922 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
11923else
5464f5a1
NN
11924 echo "$as_me: failed program was:" >&5
11925sed 's/^/| /' conftest.$ac_ext >&5
11926
11927bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
11928
7ee38065 11929fi
5464f5a1 11930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11931fi
11932
11933 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
11934
11935cat >>confdefs.h <<\_ACEOF
7ee38065 11936#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 11937_ACEOF
7ee38065
MS
11938
11939 fi
5464f5a1
NN
11940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
11941echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 11942
5464f5a1
NN
11943 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
11944echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
11945 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11947else
5464f5a1
NN
11948 cat >conftest.$ac_ext <<_ACEOF
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
7ee38065
MS
11954
11955#define _SYSCALL32
252b5132 11956#include <sys/procfs.h>
5464f5a1
NN
11957int
11958main ()
11959{
252b5132 11960pstatus_t avar
5464f5a1
NN
11961 ;
11962 return 0;
11963}
11964_ACEOF
11965rm -f conftest.$ac_objext
11966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
6ec7057a 11974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; } &&
11980 { ac_try='test -s conftest.$ac_objext'
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
252b5132
RH
11986 bfd_cv_have_sys_procfs_type_pstatus_t=yes
11987else
5464f5a1
NN
11988 echo "$as_me: failed program was:" >&5
11989sed 's/^/| /' conftest.$ac_ext >&5
11990
11991bfd_cv_have_sys_procfs_type_pstatus_t=no
11992
252b5132 11993fi
5464f5a1 11994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11995fi
11996
11997 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
11998
11999cat >>confdefs.h <<\_ACEOF
252b5132 12000#define HAVE_PSTATUS_T 1
5464f5a1 12001_ACEOF
252b5132
RH
12002
12003 fi
5464f5a1
NN
12004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12005echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 12006
5464f5a1
NN
12007 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12008echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12009 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 12011else
5464f5a1
NN
12012 cat >conftest.$ac_ext <<_ACEOF
12013/* confdefs.h. */
12014_ACEOF
12015cat confdefs.h >>conftest.$ac_ext
12016cat >>conftest.$ac_ext <<_ACEOF
12017/* end confdefs.h. */
f572a39d
AM
12018
12019#define _SYSCALL32
12020#include <sys/procfs.h>
5464f5a1
NN
12021int
12022main ()
12023{
f572a39d 12024pxstatus_t avar
5464f5a1
NN
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029rm -f conftest.$ac_objext
12030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
6ec7057a 12038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; } &&
12044 { ac_try='test -s conftest.$ac_objext'
12045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046 (eval $ac_try) 2>&5
12047 ac_status=$?
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); }; }; then
f572a39d
AM
12050 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12051else
5464f5a1
NN
12052 echo "$as_me: failed program was:" >&5
12053sed 's/^/| /' conftest.$ac_ext >&5
12054
12055bfd_cv_have_sys_procfs_type_pxstatus_t=no
12056
f572a39d 12057fi
5464f5a1 12058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
12059fi
12060
12061 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
12062
12063cat >>confdefs.h <<\_ACEOF
f572a39d 12064#define HAVE_PXSTATUS_T 1
5464f5a1 12065_ACEOF
f572a39d
AM
12066
12067 fi
5464f5a1
NN
12068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12069echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 12070
5464f5a1
NN
12071 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12072echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12073 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12075else
5464f5a1
NN
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
7ee38065
MS
12082
12083#define _SYSCALL32
12084#include <sys/procfs.h>
5464f5a1
NN
12085int
12086main ()
12087{
7ee38065 12088pstatus32_t avar
5464f5a1
NN
12089 ;
12090 return 0;
12091}
12092_ACEOF
12093rm -f conftest.$ac_objext
12094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12095 (eval $ac_compile) 2>conftest.er1
12096 ac_status=$?
12097 grep -v '^ *+' conftest.er1 >conftest.err
12098 rm -f conftest.er1
12099 cat conftest.err >&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); } &&
6ec7057a 12102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; } &&
12108 { ac_try='test -s conftest.$ac_objext'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; }; then
7ee38065
MS
12114 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12115else
5464f5a1
NN
12116 echo "$as_me: failed program was:" >&5
12117sed 's/^/| /' conftest.$ac_ext >&5
12118
12119bfd_cv_have_sys_procfs_type_pstatus32_t=no
12120
7ee38065 12121fi
5464f5a1 12122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12123fi
12124
12125 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
12126
12127cat >>confdefs.h <<\_ACEOF
7ee38065 12128#define HAVE_PSTATUS32_T 1
5464f5a1 12129_ACEOF
7ee38065
MS
12130
12131 fi
5464f5a1
NN
12132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12133echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 12134
5464f5a1
NN
12135 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12136echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12137 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12139else
5464f5a1
NN
12140 cat >conftest.$ac_ext <<_ACEOF
12141/* confdefs.h. */
12142_ACEOF
12143cat confdefs.h >>conftest.$ac_ext
12144cat >>conftest.$ac_ext <<_ACEOF
12145/* end confdefs.h. */
7ee38065
MS
12146
12147#define _SYSCALL32
252b5132 12148#include <sys/procfs.h>
5464f5a1
NN
12149int
12150main ()
12151{
252b5132 12152prpsinfo_t avar
5464f5a1
NN
12153 ;
12154 return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext
12158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12159 (eval $ac_compile) 2>conftest.er1
12160 ac_status=$?
12161 grep -v '^ *+' conftest.er1 >conftest.err
12162 rm -f conftest.er1
12163 cat conftest.err >&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
6ec7057a 12166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest.$ac_objext'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
252b5132
RH
12178 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12179else
5464f5a1
NN
12180 echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12184
252b5132 12185fi
5464f5a1 12186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12187fi
12188
12189 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
12190
12191cat >>confdefs.h <<\_ACEOF
252b5132 12192#define HAVE_PRPSINFO_T 1
5464f5a1 12193_ACEOF
252b5132
RH
12194
12195 fi
5464f5a1
NN
12196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12197echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 12198
5464f5a1
NN
12199 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12200echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12201 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12203else
5464f5a1
NN
12204 cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
7ee38065
MS
12210
12211#define _SYSCALL32
12212#include <sys/procfs.h>
5464f5a1
NN
12213int
12214main ()
12215{
7ee38065 12216prpsinfo32_t avar
5464f5a1
NN
12217 ;
12218 return 0;
12219}
12220_ACEOF
12221rm -f conftest.$ac_objext
12222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12223 (eval $ac_compile) 2>conftest.er1
12224 ac_status=$?
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
6ec7057a 12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; } &&
12236 { ac_try='test -s conftest.$ac_objext'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
7ee38065
MS
12242 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12243else
5464f5a1
NN
12244 echo "$as_me: failed program was:" >&5
12245sed 's/^/| /' conftest.$ac_ext >&5
12246
12247bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12248
7ee38065 12249fi
5464f5a1 12250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12251fi
12252
12253 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
12254
12255cat >>confdefs.h <<\_ACEOF
7ee38065 12256#define HAVE_PRPSINFO32_T 1
5464f5a1 12257_ACEOF
7ee38065
MS
12258
12259 fi
5464f5a1
NN
12260 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12261echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 12262
5464f5a1
NN
12263 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12264echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12265 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12267else
5464f5a1
NN
12268 cat >conftest.$ac_ext <<_ACEOF
12269/* confdefs.h. */
12270_ACEOF
12271cat confdefs.h >>conftest.$ac_ext
12272cat >>conftest.$ac_ext <<_ACEOF
12273/* end confdefs.h. */
7ee38065
MS
12274
12275#define _SYSCALL32
252b5132 12276#include <sys/procfs.h>
5464f5a1
NN
12277int
12278main ()
12279{
252b5132 12280psinfo_t avar
5464f5a1
NN
12281 ;
12282 return 0;
12283}
12284_ACEOF
12285rm -f conftest.$ac_objext
12286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12287 (eval $ac_compile) 2>conftest.er1
12288 ac_status=$?
12289 grep -v '^ *+' conftest.er1 >conftest.err
12290 rm -f conftest.er1
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
6ec7057a 12294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest.$ac_objext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
252b5132
RH
12306 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12307else
5464f5a1
NN
12308 echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
12311bfd_cv_have_sys_procfs_type_psinfo_t=no
12312
252b5132 12313fi
5464f5a1 12314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12315fi
12316
12317 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
12318
12319cat >>confdefs.h <<\_ACEOF
252b5132 12320#define HAVE_PSINFO_T 1
5464f5a1 12321_ACEOF
252b5132
RH
12322
12323 fi
5464f5a1
NN
12324 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12325echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 12326
5464f5a1
NN
12327 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12328echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12329 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 12331else
5464f5a1
NN
12332 cat >conftest.$ac_ext <<_ACEOF
12333/* confdefs.h. */
12334_ACEOF
12335cat confdefs.h >>conftest.$ac_ext
12336cat >>conftest.$ac_ext <<_ACEOF
12337/* end confdefs.h. */
7ee38065
MS
12338
12339#define _SYSCALL32
12340#include <sys/procfs.h>
5464f5a1
NN
12341int
12342main ()
12343{
7ee38065 12344psinfo32_t avar
5464f5a1
NN
12345 ;
12346 return 0;
12347}
12348_ACEOF
12349rm -f conftest.$ac_objext
12350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
6ec7057a 12358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
7ee38065
MS
12370 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12371else
5464f5a1
NN
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375bfd_cv_have_sys_procfs_type_psinfo32_t=no
12376
7ee38065 12377fi
5464f5a1 12378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
12379fi
12380
12381 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
12382
12383cat >>confdefs.h <<\_ACEOF
7ee38065 12384#define HAVE_PSINFO32_T 1
5464f5a1 12385_ACEOF
7ee38065
MS
12386
12387 fi
5464f5a1
NN
12388 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12389echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 12390
5464f5a1
NN
12391 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12392echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12393 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12395else
5464f5a1
NN
12396 cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
7ee38065
MS
12402
12403#define _SYSCALL32
252b5132 12404#include <sys/procfs.h>
5464f5a1
NN
12405int
12406main ()
12407{
252b5132 12408lwpstatus_t avar
5464f5a1
NN
12409 ;
12410 return 0;
12411}
12412_ACEOF
12413rm -f conftest.$ac_objext
12414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12415 (eval $ac_compile) 2>conftest.er1
12416 ac_status=$?
12417 grep -v '^ *+' conftest.er1 >conftest.err
12418 rm -f conftest.er1
12419 cat conftest.err >&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } &&
6ec7057a 12422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest.$ac_objext'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
252b5132
RH
12434 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12435else
5464f5a1
NN
12436 echo "$as_me: failed program was:" >&5
12437sed 's/^/| /' conftest.$ac_ext >&5
12438
12439bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12440
252b5132 12441fi
5464f5a1 12442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12443fi
12444
12445 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
12446
12447cat >>confdefs.h <<\_ACEOF
252b5132 12448#define HAVE_LWPSTATUS_T 1
5464f5a1 12449_ACEOF
252b5132
RH
12450
12451 fi
5464f5a1
NN
12452 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12453echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 12454
5464f5a1
NN
12455 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12456echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12457 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 12459else
5464f5a1
NN
12460 cat >conftest.$ac_ext <<_ACEOF
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
f572a39d
AM
12466
12467#define _SYSCALL32
12468#include <sys/procfs.h>
5464f5a1
NN
12469int
12470main ()
12471{
f572a39d 12472lwpxstatus_t avar
5464f5a1
NN
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12479 (eval $ac_compile) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } &&
6ec7057a 12486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488 (eval $ac_try) 2>&5
12489 ac_status=$?
12490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491 (exit $ac_status); }; } &&
12492 { ac_try='test -s conftest.$ac_objext'
12493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12494 (eval $ac_try) 2>&5
12495 ac_status=$?
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }; }; then
f572a39d
AM
12498 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12499else
5464f5a1
NN
12500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
12503bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12504
f572a39d 12505fi
5464f5a1 12506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
12507fi
12508
12509 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
12510
12511cat >>confdefs.h <<\_ACEOF
f572a39d 12512#define HAVE_LWPXSTATUS_T 1
5464f5a1 12513_ACEOF
f572a39d
AM
12514
12515 fi
5464f5a1
NN
12516 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12517echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 12518
5464f5a1
NN
12519 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12520echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12521 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12523else
5464f5a1
NN
12524 cat >conftest.$ac_ext <<_ACEOF
12525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h. */
7ee38065
MS
12530
12531#define _SYSCALL32
252b5132 12532#include <sys/procfs.h>
5464f5a1
NN
12533int
12534main ()
12535{
252b5132 12536lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541rm -f conftest.$ac_objext
12542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12544 ac_status=$?
12545 grep -v '^ *+' conftest.er1 >conftest.err
12546 rm -f conftest.er1
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
6ec7057a 12550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
252b5132
RH
12562 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12563else
5464f5a1
NN
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12568
252b5132 12569fi
5464f5a1 12570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12571fi
12572
12573 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
12574
12575cat >>confdefs.h <<\_ACEOF
252b5132 12576#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 12577_ACEOF
252b5132
RH
12578
12579 fi
5464f5a1
NN
12580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12581echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 12582
5464f5a1
NN
12583 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12584echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12585 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 12587else
5464f5a1
NN
12588 cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
7ee38065
MS
12594
12595#define _SYSCALL32
252b5132 12596#include <sys/procfs.h>
5464f5a1
NN
12597int
12598main ()
12599{
252b5132 12600lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
12601 ;
12602 return 0;
12603}
12604_ACEOF
12605rm -f conftest.$ac_objext
12606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607 (eval $ac_compile) 2>conftest.er1
12608 ac_status=$?
12609 grep -v '^ *+' conftest.er1 >conftest.err
12610 rm -f conftest.er1
12611 cat conftest.err >&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
6ec7057a 12614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest.$ac_objext'
12621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622 (eval $ac_try) 2>&5
12623 ac_status=$?
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); }; }; then
252b5132
RH
12626 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12627else
5464f5a1
NN
12628 echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
12631bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12632
252b5132 12633fi
5464f5a1 12634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12635fi
12636
12637 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
12638
12639cat >>confdefs.h <<\_ACEOF
252b5132 12640#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 12641_ACEOF
252b5132
RH
12642
12643 fi
5464f5a1
NN
12644 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12645echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 12646
5464f5a1
NN
12647 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12648echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12649 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 12651else
5464f5a1
NN
12652 cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
7ee38065
MS
12658
12659#define _SYSCALL32
e3c976c4 12660#include <sys/procfs.h>
5464f5a1
NN
12661int
12662main ()
12663{
e3c976c4 12664win32_pstatus_t avar
5464f5a1
NN
12665 ;
12666 return 0;
12667}
12668_ACEOF
12669rm -f conftest.$ac_objext
12670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
6ec7057a 12678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
12679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680 (eval $ac_try) 2>&5
12681 ac_status=$?
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest.$ac_objext'
12685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686 (eval $ac_try) 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
e3c976c4
ILT
12690 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12691else
5464f5a1
NN
12692 echo "$as_me: failed program was:" >&5
12693sed 's/^/| /' conftest.$ac_ext >&5
12694
12695bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12696
e3c976c4 12697fi
5464f5a1 12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
12699fi
12700
e3c976c4 12701 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
12702
12703cat >>confdefs.h <<\_ACEOF
e3c976c4 12704#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 12705_ACEOF
16e9c715
NC
12706
12707 fi
5464f5a1
NN
12708 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12709echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
12710
12711 fi
12712fi
16e9c715 12713
b3baf5d0 12714
6be7c12c 12715if test -n "$TRAD_HEADER"; then
5464f5a1
NN
12716
12717cat >>confdefs.h <<_ACEOF
252b5132 12718#define TRAD_HEADER $TRAD_HEADER
5464f5a1 12719_ACEOF
252b5132 12720
3f9b03b5 12721fi
252b5132
RH
12722
12723# Horrible hacks to build DLLs on Windows.
12724WIN32LDFLAGS=
12725WIN32LIBADD=
12726case "${host}" in
12727*-*-cygwin*)
12728 if test "$enable_shared" = "yes"; then
12729 WIN32LDFLAGS="-no-undefined"
12730 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12731 fi
12732 ;;
78be1d6e 12733*-*-linux*)
39691762
L
12734 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12735 # libiberty.a.
ca51bfff
L
12736 case "${host}" in
12737 mips*-*-linux*)
12738 # Linux/MIPS uses PIC by default.
12739 if test "$enable_shared" = "yes"; then
12740 WIN32LIBADD="-L../libiberty -liberty"
12741 fi
12742 ;;
12743 *)
66e25bab 12744 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 12745 if test -n "$x"; then
ca51bfff
L
12746 WIN32LIBADD="-L../libiberty/pic -liberty"
12747 fi
12748 ;;
12749 esac
39691762 12750 ;;
252b5132
RH
12751esac
12752
6be7c12c
AO
12753
12754
252b5132
RH
12755# target stuff:
12756
12757# Canonicalize the secondary target names.
12758if test -n "$enable_targets" ; then
12759 for targ in `echo $enable_targets | sed 's/,/ /g'`
12760 do
6d83c84b 12761 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
12762 if test -n "$result" ; then
12763 canon_targets="$canon_targets $result"
12764 else
12765 # Allow targets that config.sub doesn't recognize, like "all".
12766 canon_targets="$canon_targets $targ"
12767 fi
12768 done
12769fi
12770
12771all_targets=false
12772defvec=
12773selvecs=
08f74004 12774assocvecs=
252b5132
RH
12775selarchs=
12776TDEFINES=
12777for targ in $target $canon_targets
12778do
12779 if test "x$targ" = "xall"; then
12780 all_targets=true
08f74004 12781 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
12782 else
12783 . $srcdir/config.bfd
12784 if test "x$targ" = "x$target"; then
12785 defvec=$targ_defvec
12786 fi
12787 selvecs="$selvecs $targ_defvec $targ_selvecs"
12788 selarchs="$selarchs $targ_archs"
12789 TDEFINES="$TDEFINES $targ_cflags"
12790 fi
12791done
12792
6be7c12c 12793
252b5132
RH
12794# This processing still needs to be done if we're to decide properly whether
12795# 64-bit support needs to be compiled in. Currently, it will be included if
12796# the default or any other explicitly requested target requires it; it
12797# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 12798# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
12799# used.
12800
12801# uniq the default and selected vectors in all the configured targets.
12802f=""
12803for i in $selvecs ; do
12804 case " $f " in
12805 *" $i "*) ;;
12806 *) f="$f $i" ;;
12807 esac
12808done
12809selvecs="$f"
12810
6be7c12c 12811
08f74004
AM
12812# uniq the associated vectors in all the configured targets.
12813f=""
12814for i in $assocvecs ; do
12815 case " $f " in
12816 *" $i "*) ;;
12817 *) f="$f $i" ;;
12818 esac
12819done
12820assocvecs="$f"
12821
12822
252b5132
RH
12823# uniq the architectures in all the configured targets.
12824f=""
12825for i in $selarchs ; do
12826 case " $f " in
12827 *" $i "*) ;;
12828 *) f="$f $i" ;;
12829 esac
12830done
12831selarchs="$f"
12832
12833# Target backend .o files.
12834tb=
12835
65765700 12836elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
12837
12838for vec in $selvecs
12839do
69263e90 12840 target_size=32
252b5132
RH
12841 case "$vec" in
12842 # This list is alphabetized to make it easy to compare
dc810e39
AM
12843 # with the two vector lists in targets.c. For the same reason,
12844 # use one entry per line, even though this leads to long lines.
252b5132
RH
12845 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
12846 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 12847 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
12848 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
12849 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
12850 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 12851 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
12852 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12853 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
12854 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12855 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
12856 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12857 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
12858 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
12859 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12860 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
12861 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
12862 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
12863 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
12864 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 12865 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 12866 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 12867 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 12868 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 12869 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 12870 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 12871 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 12872 bfd_elf32_bigarm_symbian_vec)
7f266840 12873 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12874 bfd_elf32_bigarm_vxworks_vec)
12875 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12876 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 12877 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 12878 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 12879 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
12880 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
12881 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 12882 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 12883 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 12884 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 12885 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 12886 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 12887 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 12888 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 12889 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 12890 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
12891 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12892 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
12893 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 12894 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 12895 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 12896 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 12897 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 12898 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 12899 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 12900 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 12901 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 12902 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 12903 bfd_elf32_littlearm_symbian_vec)
7f266840 12904 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
12905 bfd_elf32_littlearm_vxworks_vec)
12906 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
7f266840 12907 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 12908 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 12909 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
12910 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12911 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
12912 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
12913 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
12914 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
12915 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
12916 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
12917 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12918 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
12919 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
12920 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 12921 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
12922 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12923 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12924 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12925 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 12926 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 12927 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
12928 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
12929 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
12930 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
12931 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 12932 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
12933 # FIXME: We include cofflink.lo not because it's needed for
12934 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
12935 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
12936 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12937 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
12938 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12939 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
12940 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
12941 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
12942 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
12943 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12944 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 12945 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
12946 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12947 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12948 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
22b75d0a 12949 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
12950 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
12951 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 12952 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 12953 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 12954 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 12955 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
12956 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
12957 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 12958 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12959 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
12960 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12961 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
12962 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
12963 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 12964 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 12965 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
12966 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
12967 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 12968 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 12969 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
12970 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
12971 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
12972 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
12973 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12974 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
12975 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12976 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12977 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
12978 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
22b75d0a 12979 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
12980 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
12981 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 12982 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 12983 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
12984 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12985 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
12986 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
12987 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 12988 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 12989 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 12990 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 12991 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
12992 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
12993 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
12994 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
12995 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
12996 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
12997 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
12998 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
12999 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13000 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13001 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13002 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13003 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13004 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13005 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
13006 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13007 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13008 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13009 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 13010 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
13011 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13012 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
13013 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13014 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
13015 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13016 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13017 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13018 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
13019 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13020 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
13021 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13022 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13023 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13024 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
13025 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
13026 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
13027 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13028 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 13029 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 13030 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 13031 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
13032 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13033 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13034 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
13035 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13036 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13037 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13038 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
13039 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13040 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 13041 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 13042 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 13043 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 13044 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 13045 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 13046 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 13047 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 13048 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
13049 pef_vec) tb="$tb pef.lo" ;;
13050 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 13051 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 13052 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 13053 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 13054 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 13055 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 13056 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 13057 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 13058 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 13059 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 13060 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
13061 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13062 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 13063 som_vec) tb="$tb som.lo" ;;
dc810e39 13064 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
13065 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13066 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13067 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13068 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13069 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 13070 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 13071 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
13072 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13073 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
13074 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13075 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13076 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13077 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13078 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13079 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 13080 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13081 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13082 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13083 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 13084 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 13085 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 13086 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 13087 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 13088 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 13089 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 13090 versados_vec) tb="$tb versados.lo" ;;
dc810e39 13091 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
13092 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13093 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13094 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13095 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
13096
341ca622
AM
13097 # These appear out of order in targets.c
13098 srec_vec) tb="$tb srec.lo" ;;
13099 symbolsrec_vec) tb="$tb srec.lo" ;;
13100 tekhex_vec) tb="$tb tekhex.lo" ;;
13101 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13102 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13103
252b5132 13104 "") ;;
5464f5a1
NN
13105 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13106echo "$as_me: error: *** unknown target vector $vec" >&2;}
13107 { (exit 1); exit 1; }; } ;;
252b5132 13108 esac
69263e90
AM
13109
13110 if test ${target_size} = 64; then
13111 target64=true
13112 fi
13113 if test x"${vec}" = x"${defvec}"; then
13114 bfd_default_target_size=${target_size}
13115 fi
252b5132
RH
13116done
13117
13118# Target architecture .o files.
13119# A couple of CPUs use shorter file names to avoid problems on DOS
13120# filesystems.
13121ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13122
13123# Weed out duplicate .o files.
13124f=""
13125for i in $tb ; do
13126 case " $f " in
13127 *" $i "*) ;;
13128 *) f="$f $i" ;;
13129 esac
13130done
13131tb="$f"
13132
13133f=""
13134for i in $ta ; do
13135 case " $f " in
13136 *" $i "*) ;;
13137 *) f="$f $i" ;;
13138 esac
13139done
13140ta="$f"
13141
13142bfd_backends="$tb"
13143bfd_machines="$ta"
13144
13145if test x${all_targets} = xtrue ; then
13146 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13147 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13148 selvecs=
13149 havevecs=
13150 selarchs=
08f74004
AM
13151 test -n "$assocvecs" &&
13152 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
13153else # all_targets is true
13154 # Only set these if they will be nonempty, for the clever echo.
13155 havevecs=
08f74004 13156 assocvecs=
252b5132
RH
13157 test -n "$selvecs" &&
13158 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13159 test -n "$selvecs" &&
13160 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13161 test -n "$selarchs" &&
13162 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13163fi # all_targets is true
13164
13165case ${host64}-${target64}-${want64} in
13166 *true*)
13167 wordsize=64
2858ef35 13168 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 13169 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 13170 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
13171 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13172echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13174echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 13175 fi
966abd70
HPN
13176 if test -n "$GCC" ; then
13177 bad_64bit_gcc=no;
5464f5a1
NN
13178 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13179echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 13180 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
13181 cat >conftest.$ac_ext <<_ACEOF
13182/* confdefs.h. */
13183_ACEOF
13184cat confdefs.h >>conftest.$ac_ext
13185cat >>conftest.$ac_ext <<_ACEOF
13186/* end confdefs.h. */
966abd70 13187:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 13188_ACEOF
966abd70 13189if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 13190 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 13191 bad_64bit_gcc=yes;
5464f5a1
NN
13192 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13193echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 13194else
5464f5a1
NN
13195 echo "$as_me:$LINENO: result: no" >&5
13196echo "${ECHO_T}no" >&6
966abd70
HPN
13197fi
13198rm -f conftest*
13199
13200 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
13201 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13202echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13203 { (exit 1); exit 1; }; }
966abd70
HPN
13204 fi
13205 fi
252b5132
RH
13206 ;;
13207 false-false-false)
13208 wordsize=32
2858ef35 13209 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
13210 all_backends='$(BFD32_BACKENDS)'
13211 ;;
13212esac
13213
6be7c12c
AO
13214
13215
13216
13217
13218
69263e90 13219
2858ef35 13220
1012372a
AC
13221# Determine the host dependant file_ptr a.k.a. off_t type. In order
13222# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13223# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13224# Hopefully a reasonable assumption since fseeko et.al. should be
13225# upward compatible.
5464f5a1
NN
13226
13227
13228
13229
1012372a
AC
13230for ac_func in ftello ftello64 fseeko fseeko64
13231do
5464f5a1
NN
13232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13233echo "$as_me:$LINENO: checking for $ac_func" >&5
13234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13235if eval "test \"\${$as_ac_var+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
2ba49b59
KC
13238 cat >conftest.$ac_ext <<_ACEOF
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h. */
13244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13246#define $ac_func innocuous_$ac_func
13247
13248/* System header to define __stub macros and hopefully few prototypes,
13249 which can conflict with char $ac_func (); below.
13250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13251 <limits.h> exists even on freestanding compilers. */
13252
13253#ifdef __STDC__
13254# include <limits.h>
13255#else
13256# include <assert.h>
13257#endif
13258
13259#undef $ac_func
13260
13261/* Override any gcc2 internal prototype to avoid an error. */
13262#ifdef __cplusplus
13263extern "C"
13264{
13265#endif
13266/* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13268char $ac_func ();
13269/* The GNU C library defines this for functions which it implements
13270 to always fail with ENOSYS. Some functions are actually named
13271 something starting with __ and the normal name is an alias. */
13272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13273choke me
13274#else
13275char (*f) () = $ac_func;
13276#endif
13277#ifdef __cplusplus
13278}
13279#endif
13280
13281int
13282main ()
13283{
13284return f != $ac_func;
13285 ;
13286 return 0;
13287}
13288_ACEOF
13289rm -f conftest.$ac_objext conftest$ac_exeext
13290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
6ec7057a 13298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13310 eval "$as_ac_var=yes"
13311else
13312 echo "$as_me: failed program was:" >&5
13313sed 's/^/| /' conftest.$ac_ext >&5
13314
13315eval "$as_ac_var=no"
13316fi
13317rm -f conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13319fi
13320echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13321echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13322if test `eval echo '${'$as_ac_var'}'` = yes; then
13323 cat >>confdefs.h <<_ACEOF
13324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13325_ACEOF
13326
13327fi
13328done
13329
13330if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13331 echo "$as_me:$LINENO: checking for off_t" >&5
13332echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13333if test "${ac_cv_type_off_t+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336 cat >conftest.$ac_ext <<_ACEOF
13337/* confdefs.h. */
13338_ACEOF
13339cat confdefs.h >>conftest.$ac_ext
13340cat >>conftest.$ac_ext <<_ACEOF
13341/* end confdefs.h. */
13342$ac_includes_default
13343int
13344main ()
13345{
13346if ((off_t *) 0)
13347 return 0;
13348if (sizeof (off_t))
13349 return 0;
13350 ;
13351 return 0;
13352}
13353_ACEOF
13354rm -f conftest.$ac_objext
13355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
6ec7057a 13363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13372 ac_status=$?
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13375 ac_cv_type_off_t=yes
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
13380ac_cv_type_off_t=no
13381fi
13382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13383fi
13384echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13385echo "${ECHO_T}$ac_cv_type_off_t" >&6
13386
13387echo "$as_me:$LINENO: checking size of off_t" >&5
13388echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13389if test "${ac_cv_sizeof_off_t+set}" = set; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13391else
13392 if test "$ac_cv_type_off_t" = yes; then
13393 # The cast to unsigned long works around a bug in the HP C Compiler
13394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13396 # This bug is HP SR number 8606223364.
13397 if test "$cross_compiling" = yes; then
13398 # Depending upon the size, compute the lo and hi bounds.
13399cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
2ba49b59
KC
13405$ac_includes_default
13406int
13407main ()
13408{
13409static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13410test_array [0] = 0
5464f5a1 13411
2ba49b59
KC
13412 ;
13413 return 0;
13414}
13415_ACEOF
13416rm -f conftest.$ac_objext
13417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418 (eval $ac_compile) 2>conftest.er1
13419 ac_status=$?
13420 grep -v '^ *+' conftest.er1 >conftest.err
13421 rm -f conftest.er1
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
6ec7057a 13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest.$ac_objext'
13432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13433 (eval $ac_try) 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_lo=0 ac_mid=0
13438 while :; do
13439 cat >conftest.$ac_ext <<_ACEOF
13440/* confdefs.h. */
13441_ACEOF
13442cat confdefs.h >>conftest.$ac_ext
13443cat >>conftest.$ac_ext <<_ACEOF
13444/* end confdefs.h. */
13445$ac_includes_default
13446int
13447main ()
13448{
13449static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13450test_array [0] = 0
5464f5a1 13451
2ba49b59
KC
13452 ;
13453 return 0;
13454}
13455_ACEOF
13456rm -f conftest.$ac_objext
13457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>conftest.er1
13459 ac_status=$?
13460 grep -v '^ *+' conftest.er1 >conftest.err
13461 rm -f conftest.er1
13462 cat conftest.err >&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
6ec7057a 13465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_hi=$ac_mid; break
13478else
13479 echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13481
2ba49b59
KC
13482ac_lo=`expr $ac_mid + 1`
13483 if test $ac_lo -le $ac_mid; then
13484 ac_lo= ac_hi=
13485 break
13486 fi
13487 ac_mid=`expr 2 '*' $ac_mid + 1`
13488fi
13489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13490 done
13491else
13492 echo "$as_me: failed program was:" >&5
13493sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13494
2ba49b59
KC
13495cat >conftest.$ac_ext <<_ACEOF
13496/* confdefs.h. */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h. */
13501$ac_includes_default
13502int
13503main ()
5464f5a1 13504{
2ba49b59
KC
13505static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13506test_array [0] = 0
1012372a 13507
2ba49b59
KC
13508 ;
13509 return 0;
13510}
13511_ACEOF
13512rm -f conftest.$ac_objext
13513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514 (eval $ac_compile) 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
6ec7057a 13521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2ba49b59
KC
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 ac_hi=-1 ac_mid=-1
13534 while :; do
13535 cat >conftest.$ac_ext <<_ACEOF
13536/* confdefs.h. */
13537_ACEOF
13538cat confdefs.h >>conftest.$ac_ext
13539cat >>conftest.$ac_ext <<_ACEOF
13540/* end confdefs.h. */
13541$ac_includes_default
5464f5a1
NN
13542int
13543main ()
13544{
2ba49b59
KC
13545static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13546test_array [0] = 0
13547
5464f5a1
NN
13548 ;
13549 return 0;
13550}
13551_ACEOF
2ba49b59
KC
13552rm -f conftest.$ac_objext
13553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13554 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
6ec7057a 13561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
2ba49b59 13567 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
2ba49b59 13573 ac_lo=$ac_mid; break
5464f5a1
NN
13574else
13575 echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
2ba49b59
KC
13578ac_hi=`expr '(' $ac_mid ')' - 1`
13579 if test $ac_mid -le $ac_hi; then
13580 ac_lo= ac_hi=
13581 break
13582 fi
13583 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 13584fi
2ba49b59
KC
13585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13586 done
13587else
13588 echo "$as_me: failed program was:" >&5
13589sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13590
2ba49b59 13591ac_lo= ac_hi=
1012372a 13592fi
2ba49b59
KC
13593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13594fi
13595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13596# Binary search between lo and hi bounds.
13597while test "x$ac_lo" != "x$ac_hi"; do
13598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
13599 cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h. */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h. */
2ba49b59 13605$ac_includes_default
5464f5a1
NN
13606int
13607main ()
13608{
2ba49b59
KC
13609static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13610test_array [0] = 0
13611
5464f5a1
NN
13612 ;
13613 return 0;
13614}
13615_ACEOF
13616rm -f conftest.$ac_objext
13617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618 (eval $ac_compile) 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
6ec7057a 13625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13627 (eval $ac_try) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; } &&
13631 { ac_try='test -s conftest.$ac_objext'
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; }; then
2ba49b59 13637 ac_hi=$ac_mid
1012372a 13638else
5464f5a1
NN
13639 echo "$as_me: failed program was:" >&5
13640sed 's/^/| /' conftest.$ac_ext >&5
13641
2ba49b59 13642ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 13643fi
5464f5a1 13644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 13645done
2ba49b59
KC
13646case $ac_lo in
13647?*) ac_cv_sizeof_off_t=$ac_lo;;
13648'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13649See \`config.log' for more details." >&5
13650echo "$as_me: error: cannot compute sizeof (off_t), 77
13651See \`config.log' for more details." >&2;}
13652 { (exit 1); exit 1; }; } ;;
13653esac
13654else
13655 if test "$cross_compiling" = yes; then
6ec7057a
RH
13656 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13657echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
2ba49b59
KC
13658 { (exit 1); exit 1; }; }
13659else
13660 cat >conftest.$ac_ext <<_ACEOF
13661/* confdefs.h. */
13662_ACEOF
13663cat confdefs.h >>conftest.$ac_ext
13664cat >>conftest.$ac_ext <<_ACEOF
13665/* end confdefs.h. */
13666$ac_includes_default
13667long longval () { return (long) (sizeof (off_t)); }
13668unsigned long ulongval () { return (long) (sizeof (off_t)); }
13669#include <stdio.h>
13670#include <stdlib.h>
13671int
13672main ()
13673{
1012372a 13674
2ba49b59
KC
13675 FILE *f = fopen ("conftest.val", "w");
13676 if (! f)
13677 exit (1);
13678 if (((long) (sizeof (off_t))) < 0)
13679 {
13680 long i = longval ();
13681 if (i != ((long) (sizeof (off_t))))
13682 exit (1);
13683 fprintf (f, "%ld\n", i);
13684 }
13685 else
13686 {
13687 unsigned long i = ulongval ();
13688 if (i != ((long) (sizeof (off_t))))
13689 exit (1);
13690 fprintf (f, "%lu\n", i);
13691 }
13692 exit (ferror (f) || fclose (f) != 0);
13693
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest$ac_exeext
13699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700 (eval $ac_link) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_cv_sizeof_off_t=`cat conftest.val`
13710else
13711 echo "$as_me: program exited with status $ac_status" >&5
13712echo "$as_me: failed program was:" >&5
13713sed 's/^/| /' conftest.$ac_ext >&5
1012372a 13714
2ba49b59
KC
13715( exit $ac_status )
13716{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13717See \`config.log' for more details." >&5
13718echo "$as_me: error: cannot compute sizeof (off_t), 77
13719See \`config.log' for more details." >&2;}
5464f5a1 13720 { (exit 1); exit 1; }; }
1012372a 13721fi
2ba49b59
KC
13722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13723fi
13724fi
13725rm -f conftest.val
13726else
13727 ac_cv_sizeof_off_t=0
13728fi
13729fi
5464f5a1
NN
13730echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13731echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 13732cat >>confdefs.h <<_ACEOF
1012372a 13733#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 13734_ACEOF
1012372a
AC
13735
13736
1012372a 13737fi
5464f5a1
NN
13738echo "$as_me:$LINENO: checking file_ptr type" >&5
13739echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
13740bfd_file_ptr="long"
13741bfd_ufile_ptr="unsigned long"
13742if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13743 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
13744 bfd_file_ptr=BFD_HOST_64_BIT
13745 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13746fi
5464f5a1
NN
13747echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13748echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
13749
13750
13751
13752
252b5132
RH
13753tdefaults=""
13754test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13755test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 13756test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
13757test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
13758test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
13759
6be7c12c 13760
5464f5a1
NN
13761
13762
13763for ac_header in stdlib.h unistd.h
252b5132 13764do
5464f5a1
NN
13765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13766if eval "test \"\${$as_ac_Header+set}\" = set"; then
13767 echo "$as_me:$LINENO: checking for $ac_header" >&5
13768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13769if eval "test \"\${$as_ac_Header+set}\" = set"; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771fi
13772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13774else
13775 # Is the header compilable?
13776echo "$as_me:$LINENO: checking $ac_header usability" >&5
13777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13778cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784$ac_includes_default
13785#include <$ac_header>
13786_ACEOF
13787rm -f conftest.$ac_objext
13788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>conftest.er1
13790 ac_status=$?
13791 grep -v '^ *+' conftest.er1 >conftest.err
13792 rm -f conftest.er1
13793 cat conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } &&
6ec7057a 13796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; } &&
13802 { ac_try='test -s conftest.$ac_objext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 ac_header_compiler=yes
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
13813ac_header_compiler=no
13814fi
13815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13817echo "${ECHO_T}$ac_header_compiler" >&6
13818
13819# Is the header present?
13820echo "$as_me:$LINENO: checking $ac_header presence" >&5
13821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13822cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
13828#include <$ac_header>
13829_ACEOF
13830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null; then
13838 if test -s conftest.err; then
13839 ac_cpp_err=$ac_c_preproc_warn_flag
13840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13841 else
13842 ac_cpp_err=
13843 fi
252b5132 13844else
5464f5a1 13845 ac_cpp_err=yes
252b5132 13846fi
5464f5a1
NN
13847if test -z "$ac_cpp_err"; then
13848 ac_header_preproc=yes
13849else
13850 echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 ac_header_preproc=no
252b5132 13854fi
5464f5a1
NN
13855rm -f conftest.err conftest.$ac_ext
13856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13857echo "${ECHO_T}$ac_header_preproc" >&6
13858
13859# So? What about this header?
13860case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13861 yes:no: )
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13863echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13865echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13866 ac_header_preproc=yes
13867 ;;
13868 no:yes:* )
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13870echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13872echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13874echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13876echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13880echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13881 (
13882 cat <<\_ASBOX
13883## ------------------------------------------ ##
13884## Report this to the AC_PACKAGE_NAME lists. ##
13885## ------------------------------------------ ##
13886_ASBOX
13887 ) |
13888 sed "s/^/$as_me: WARNING: /" >&2
13889 ;;
13890esac
13891echo "$as_me:$LINENO: checking for $ac_header" >&5
13892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13893if eval "test \"\${$as_ac_Header+set}\" = set"; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 13895else
5464f5a1
NN
13896 eval "$as_ac_Header=\$ac_header_preproc"
13897fi
13898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13900
13901fi
13902if test `eval echo '${'$as_ac_Header'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13905_ACEOF
13906
252b5132 13907fi
5464f5a1 13908
252b5132
RH
13909done
13910
5464f5a1 13911
252b5132
RH
13912for ac_func in getpagesize
13913do
5464f5a1
NN
13914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13915echo "$as_me:$LINENO: checking for $ac_func" >&5
13916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13917if eval "test \"\${$as_ac_var+set}\" = set"; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920 cat >conftest.$ac_ext <<_ACEOF
13921/* confdefs.h. */
13922_ACEOF
13923cat confdefs.h >>conftest.$ac_ext
13924cat >>conftest.$ac_ext <<_ACEOF
13925/* end confdefs.h. */
13926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13928#define $ac_func innocuous_$ac_func
13929
252b5132 13930/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
13931 which can conflict with char $ac_func (); below.
13932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13933 <limits.h> exists even on freestanding compilers. */
13934
13935#ifdef __STDC__
13936# include <limits.h>
13937#else
13938# include <assert.h>
13939#endif
6be7c12c 13940
5464f5a1 13941#undef $ac_func
252b5132 13942
5464f5a1
NN
13943/* Override any gcc2 internal prototype to avoid an error. */
13944#ifdef __cplusplus
13945extern "C"
13946{
13947#endif
13948/* We use char because int might match the return type of a gcc2
13949 builtin and then its argument prototype would still apply. */
13950char $ac_func ();
252b5132
RH
13951/* The GNU C library defines this for functions which it implements
13952 to always fail with ENOSYS. Some functions are actually named
13953 something starting with __ and the normal name is an alias. */
13954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13955choke me
13956#else
5464f5a1
NN
13957char (*f) () = $ac_func;
13958#endif
13959#ifdef __cplusplus
13960}
252b5132
RH
13961#endif
13962
5464f5a1
NN
13963int
13964main ()
13965{
13966return f != $ac_func;
13967 ;
13968 return 0;
13969}
13970_ACEOF
13971rm -f conftest.$ac_objext conftest$ac_exeext
13972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13973 (eval $ac_link) 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
6ec7057a 13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest$ac_exeext'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 eval "$as_ac_var=yes"
13993else
13994 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
13997eval "$as_ac_var=no"
13998fi
13999rm -f conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
14001fi
14002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14004if test `eval echo '${'$as_ac_var'}'` = yes; then
14005 cat >>confdefs.h <<_ACEOF
14006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007_ACEOF
252b5132 14008
252b5132
RH
14009fi
14010done
14011
5464f5a1
NN
14012echo "$as_me:$LINENO: checking for working mmap" >&5
14013echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14014if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
14016else
14017 if test "$cross_compiling" = yes; then
14018 ac_cv_func_mmap_fixed_mapped=no
14019else
5464f5a1
NN
14020 cat >conftest.$ac_ext <<_ACEOF
14021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
14026$ac_includes_default
14027/* malloc might have been renamed as rpl_malloc. */
14028#undef malloc
6be7c12c 14029
252b5132
RH
14030/* Thanks to Mike Haertel and Jim Avera for this test.
14031 Here is a matrix of mmap possibilities:
14032 mmap private not fixed
14033 mmap private fixed at somewhere currently unmapped
14034 mmap private fixed at somewhere already mapped
14035 mmap shared not fixed
14036 mmap shared fixed at somewhere currently unmapped
14037 mmap shared fixed at somewhere already mapped
14038 For private mappings, we should verify that changes cannot be read()
14039 back from the file, nor mmap's back from the file at a different
14040 address. (There have been systems where private was not correctly
14041 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 14042 VM page cache was not coherent with the file system buffer cache
252b5132
RH
14043 like early versions of FreeBSD and possibly contemporary NetBSD.)
14044 For shared mappings, we should conversely verify that changes get
5464f5a1 14045 propagated back to all the places they're supposed to be.
252b5132
RH
14046
14047 Grep wants private fixed already mapped.
14048 The main things grep needs to know about mmap are:
14049 * does it exist and is it safe to write into the mmap'd area
14050 * how to use it (BSD variants) */
5464f5a1 14051
252b5132
RH
14052#include <fcntl.h>
14053#include <sys/mman.h>
14054
5464f5a1
NN
14055#if !STDC_HEADERS && !HAVE_STDLIB_H
14056char *malloc ();
14057#endif
6be7c12c 14058
5464f5a1
NN
14059/* This mess was copied from the GNU getpagesize.h. */
14060#if !HAVE_GETPAGESIZE
252b5132 14061/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 14062# if !HAVE_SYS_PARAM_H
252b5132
RH
14063# define HAVE_SYS_PARAM_H 1
14064# endif
14065
14066# ifdef _SC_PAGESIZE
14067# define getpagesize() sysconf(_SC_PAGESIZE)
14068# else /* no _SC_PAGESIZE */
5464f5a1 14069# if HAVE_SYS_PARAM_H
252b5132
RH
14070# include <sys/param.h>
14071# ifdef EXEC_PAGESIZE
14072# define getpagesize() EXEC_PAGESIZE
14073# else /* no EXEC_PAGESIZE */
14074# ifdef NBPG
14075# define getpagesize() NBPG * CLSIZE
14076# ifndef CLSIZE
14077# define CLSIZE 1
14078# endif /* no CLSIZE */
14079# else /* no NBPG */
14080# ifdef NBPC
14081# define getpagesize() NBPC
14082# else /* no NBPC */
14083# ifdef PAGESIZE
14084# define getpagesize() PAGESIZE
14085# endif /* PAGESIZE */
14086# endif /* no NBPC */
14087# endif /* no NBPG */
14088# endif /* no EXEC_PAGESIZE */
14089# else /* no HAVE_SYS_PARAM_H */
14090# define getpagesize() 8192 /* punt totally */
14091# endif /* no HAVE_SYS_PARAM_H */
14092# endif /* no _SC_PAGESIZE */
14093
5464f5a1
NN
14094#endif /* no HAVE_GETPAGESIZE */
14095
14096int
14097main ()
14098{
14099 char *data, *data2, *data3;
14100 int i, pagesize;
14101 int fd;
14102
14103 pagesize = getpagesize ();
14104
14105 /* First, make a file with some known garbage in it. */
14106 data = (char *) malloc (pagesize);
14107 if (!data)
14108 exit (1);
14109 for (i = 0; i < pagesize; ++i)
14110 *(data + i) = rand ();
14111 umask (0);
14112 fd = creat ("conftest.mmap", 0600);
14113 if (fd < 0)
14114 exit (1);
14115 if (write (fd, data, pagesize) != pagesize)
14116 exit (1);
14117 close (fd);
14118
14119 /* Next, try to mmap the file at a fixed address which already has
14120 something else allocated at it. If we can, also make sure that
14121 we see the same garbage. */
14122 fd = open ("conftest.mmap", O_RDWR);
14123 if (fd < 0)
14124 exit (1);
14125 data2 = (char *) malloc (2 * pagesize);
14126 if (!data2)
14127 exit (1);
14128 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14129 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14130 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14131 exit (1);
14132 for (i = 0; i < pagesize; ++i)
14133 if (*(data + i) != *(data2 + i))
14134 exit (1);
14135
14136 /* Finally, make sure that changes to the mapped area do not
14137 percolate back to the file as seen by read(). (This is a bug on
14138 some variants of i386 svr4.0.) */
14139 for (i = 0; i < pagesize; ++i)
14140 *(data2 + i) = *(data2 + i) + 1;
14141 data3 = (char *) malloc (pagesize);
14142 if (!data3)
14143 exit (1);
14144 if (read (fd, data3, pagesize) != pagesize)
14145 exit (1);
14146 for (i = 0; i < pagesize; ++i)
14147 if (*(data + i) != *(data3 + i))
14148 exit (1);
14149 close (fd);
14150 exit (0);
14151}
14152_ACEOF
14153rm -f conftest$ac_exeext
14154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14155 (eval $ac_link) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160 (eval $ac_try) 2>&5
14161 ac_status=$?
14162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); }; }; then
14164 ac_cv_func_mmap_fixed_mapped=yes
14165else
14166 echo "$as_me: program exited with status $ac_status" >&5
14167echo "$as_me: failed program was:" >&5
14168sed 's/^/| /' conftest.$ac_ext >&5
14169
14170( exit $ac_status )
14171ac_cv_func_mmap_fixed_mapped=no
14172fi
14173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14174fi
14175fi
14176echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14177echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14178if test $ac_cv_func_mmap_fixed_mapped = yes; then
14179
14180cat >>confdefs.h <<\_ACEOF
14181#define HAVE_MMAP 1
14182_ACEOF
14183
14184fi
14185rm -f conftest.mmap
14186
14187
14188
14189for ac_func in madvise mprotect
14190do
14191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14192echo "$as_me:$LINENO: checking for $ac_func" >&5
14193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14194if eval "test \"\${$as_ac_var+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196else
14197 cat >conftest.$ac_ext <<_ACEOF
14198/* confdefs.h. */
14199_ACEOF
14200cat confdefs.h >>conftest.$ac_ext
14201cat >>conftest.$ac_ext <<_ACEOF
14202/* end confdefs.h. */
14203/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14205#define $ac_func innocuous_$ac_func
14206
14207/* System header to define __stub macros and hopefully few prototypes,
14208 which can conflict with char $ac_func (); below.
14209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14210 <limits.h> exists even on freestanding compilers. */
14211
14212#ifdef __STDC__
14213# include <limits.h>
14214#else
14215# include <assert.h>
14216#endif
14217
14218#undef $ac_func
14219
14220/* Override any gcc2 internal prototype to avoid an error. */
14221#ifdef __cplusplus
14222extern "C"
14223{
14224#endif
14225/* We use char because int might match the return type of a gcc2
14226 builtin and then its argument prototype would still apply. */
14227char $ac_func ();
14228/* The GNU C library defines this for functions which it implements
14229 to always fail with ENOSYS. Some functions are actually named
14230 something starting with __ and the normal name is an alias. */
14231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14232choke me
14233#else
14234char (*f) () = $ac_func;
14235#endif
14236#ifdef __cplusplus
14237}
14238#endif
14239
14240int
14241main ()
14242{
14243return f != $ac_func;
14244 ;
14245 return 0;
14246}
14247_ACEOF
14248rm -f conftest.$ac_objext conftest$ac_exeext
14249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
6ec7057a 14257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464f5a1
NN
14258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14260 ac_status=$?
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); }; } &&
14263 { ac_try='test -s conftest$ac_exeext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 eval "$as_ac_var=yes"
14270else
14271 echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5
14273
14274eval "$as_ac_var=no"
14275fi
14276rm -f conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278fi
14279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14281if test `eval echo '${'$as_ac_var'}'` = yes; then
14282 cat >>confdefs.h <<_ACEOF
14283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14284_ACEOF
14285
14286fi
14287done
14288
14289case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14290 true+yes )
14291cat >>confdefs.h <<\_ACEOF
14292#define USE_MMAP 1
14293_ACEOF
14294 ;;
14295esac
14296
14297rm -f doc/config.status
14298 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14299
14300 ac_config_commands="$ac_config_commands default"
14301
14302cat >confcache <<\_ACEOF
14303# This file is a shell script that caches the results of configure
14304# tests run on this system so they can be shared between configure
14305# scripts and configure runs, see configure's option --config-cache.
14306# It is not useful on other systems. If it contains results you don't
14307# want to keep, you may remove or edit it.
14308#
14309# config.status only pays attention to the cache file if you give it
14310# the --recheck option to rerun configure.
14311#
14312# `ac_cv_env_foo' variables (set or unset) will be overridden when
14313# loading this file, other *unset* `ac_cv_foo' will be assigned the
14314# following values.
14315
14316_ACEOF
14317
14318# The following way of writing the cache mishandles newlines in values,
14319# but we know of no workaround that is simple, portable, and efficient.
14320# So, don't put newlines in cache variables' values.
14321# Ultrix sh set writes to stderr and can't be redirected directly,
14322# and sets the high bit in the cache file unless we assign to the vars.
14323{
14324 (set) 2>&1 |
14325 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14326 *ac_space=\ *)
14327 # `set' does not quote correctly, so add quotes (double-quote
14328 # substitution turns \\\\ into \\, and sed turns \\ into \).
14329 sed -n \
14330 "s/'/'\\\\''/g;
14331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14332 ;;
14333 *)
14334 # `set' quotes correctly as required by POSIX, so do not add quotes.
14335 sed -n \
14336 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14337 ;;
14338 esac;
14339} |
14340 sed '
14341 t clear
14342 : clear
14343 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14344 t end
14345 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14346 : end' >>confcache
14347if diff $cache_file confcache >/dev/null 2>&1; then :; else
14348 if test -w $cache_file; then
14349 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14350 cat confcache >$cache_file
14351 else
14352 echo "not updating unwritable cache $cache_file"
14353 fi
14354fi
14355rm -f confcache
14356
14357test "x$prefix" = xNONE && prefix=$ac_default_prefix
14358# Let make expand exec_prefix.
14359test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14360
14361# VPATH may cause trouble with some makes, so we remove $(srcdir),
14362# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14363# trailing colons and then remove the whole line if VPATH becomes empty
14364# (actually we leave an empty line to preserve line numbers).
14365if test "x$srcdir" = x.; then
14366 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14367s/:*\$(srcdir):*/:/;
14368s/:*\${srcdir}:*/:/;
14369s/:*@srcdir@:*/:/;
14370s/^\([^=]*=[ ]*\):*/\1/;
14371s/:*$//;
14372s/^[^=]*=[ ]*$//;
14373}'
14374fi
14375
14376DEFS=-DHAVE_CONFIG_H
14377
14378ac_libobjs=
14379ac_ltlibobjs=
14380for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14381 # 1. Remove the extension, and $U if already installed.
14382 ac_i=`echo "$ac_i" |
14383 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14384 # 2. Add them.
14385 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14386 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14387done
14388LIBOBJS=$ac_libobjs
14389
14390LTLIBOBJS=$ac_ltlibobjs
14391
14392
f5385ebf
AM
14393if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14394 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14395Usually this means the macro was only invoked conditionally." >&5
14396echo "$as_me: error: conditional \"AMDEP\" was never defined.
14397Usually this means the macro was only invoked conditionally." >&2;}
14398 { (exit 1); exit 1; }; }
14399fi
14400if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14401 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14402Usually this means the macro was only invoked conditionally." >&5
14403echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14404Usually this means the macro was only invoked conditionally." >&2;}
14405 { (exit 1); exit 1; }; }
14406fi
14407if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14408 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14409Usually this means the macro was only invoked conditionally." >&5
14410echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14411Usually this means the macro was only invoked conditionally." >&2;}
14412 { (exit 1); exit 1; }; }
14413fi
14414if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14415 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14416Usually this means the macro was only invoked conditionally." >&5
14417echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14418Usually this means the macro was only invoked conditionally." >&2;}
14419 { (exit 1); exit 1; }; }
14420fi
5464f5a1
NN
14421
14422: ${CONFIG_STATUS=./config.status}
14423ac_clean_files_save=$ac_clean_files
14424ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14425{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14426echo "$as_me: creating $CONFIG_STATUS" >&6;}
14427cat >$CONFIG_STATUS <<_ACEOF
14428#! $SHELL
14429# Generated by $as_me.
14430# Run this file to recreate the current configuration.
14431# Compiler output produced by configure, useful for debugging
14432# configure, is in config.log if it exists.
14433
14434debug=false
14435ac_cs_recheck=false
14436ac_cs_silent=false
14437SHELL=\${CONFIG_SHELL-$SHELL}
14438_ACEOF
14439
14440cat >>$CONFIG_STATUS <<\_ACEOF
14441## --------------------- ##
14442## M4sh Initialization. ##
14443## --------------------- ##
14444
14445# Be Bourne compatible
14446if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14447 emulate sh
14448 NULLCMD=:
14449 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14450 # is contrary to our usage. Disable this feature.
14451 alias -g '${1+"$@"}'='"$@"'
14452elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14453 set -o posix
14454fi
14455DUALCASE=1; export DUALCASE # for MKS sh
14456
14457# Support unset when possible.
14458if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14459 as_unset=unset
14460else
14461 as_unset=false
14462fi
14463
14464
14465# Work around bugs in pre-3.0 UWIN ksh.
14466$as_unset ENV MAIL MAILPATH
14467PS1='$ '
14468PS2='> '
14469PS4='+ '
14470
14471# NLS nuisances.
14472for as_var in \
14473 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14474 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14475 LC_TELEPHONE LC_TIME
14476do
14477 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14478 eval $as_var=C; export $as_var
14479 else
14480 $as_unset $as_var
14481 fi
14482done
14483
14484# Required to use basename.
14485if expr a : '\(a\)' >/dev/null 2>&1; then
14486 as_expr=expr
14487else
14488 as_expr=false
14489fi
14490
14491if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14492 as_basename=basename
14493else
14494 as_basename=false
14495fi
252b5132 14496
6be7c12c 14497
5464f5a1
NN
14498# Name of the executable.
14499as_me=`$as_basename "$0" ||
14500$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14501 X"$0" : 'X\(//\)$' \| \
14502 X"$0" : 'X\(/\)$' \| \
14503 . : '\(.\)' 2>/dev/null ||
14504echo X/"$0" |
14505 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14506 /^X\/\(\/\/\)$/{ s//\1/; q; }
14507 /^X\/\(\/\).*/{ s//\1/; q; }
14508 s/.*/./; q'`
14509
14510
14511# PATH needs CR, and LINENO needs CR and PATH.
14512# Avoid depending upon Character Ranges.
14513as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14514as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14515as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14516as_cr_digits='0123456789'
14517as_cr_alnum=$as_cr_Letters$as_cr_digits
14518
14519# The user is always right.
14520if test "${PATH_SEPARATOR+set}" != set; then
14521 echo "#! /bin/sh" >conf$$.sh
14522 echo "exit 0" >>conf$$.sh
14523 chmod +x conf$$.sh
14524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14525 PATH_SEPARATOR=';'
14526 else
14527 PATH_SEPARATOR=:
14528 fi
14529 rm -f conf$$.sh
14530fi
14531
14532
14533 as_lineno_1=$LINENO
14534 as_lineno_2=$LINENO
14535 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14536 test "x$as_lineno_1" != "x$as_lineno_2" &&
14537 test "x$as_lineno_3" = "x$as_lineno_2" || {
14538 # Find who we are. Look in the path if we contain no path at all
14539 # relative or not.
14540 case $0 in
14541 *[\\/]* ) as_myself=$0 ;;
14542 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543for as_dir in $PATH
14544do
14545 IFS=$as_save_IFS
14546 test -z "$as_dir" && as_dir=.
14547 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14548done
14549
14550 ;;
14551 esac
14552 # We did not find ourselves, most probably we were run as `sh COMMAND'
14553 # in which case we are not to be found in the path.
14554 if test "x$as_myself" = x; then
14555 as_myself=$0
14556 fi
14557 if test ! -f "$as_myself"; then
14558 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14559echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14560 { (exit 1); exit 1; }; }
14561 fi
14562 case $CONFIG_SHELL in
14563 '')
14564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14565for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14566do
14567 IFS=$as_save_IFS
14568 test -z "$as_dir" && as_dir=.
14569 for as_base in sh bash ksh sh5; do
14570 case $as_dir in
14571 /*)
14572 if ("$as_dir/$as_base" -c '
14573 as_lineno_1=$LINENO
14574 as_lineno_2=$LINENO
14575 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14576 test "x$as_lineno_1" != "x$as_lineno_2" &&
14577 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14578 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14579 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14580 CONFIG_SHELL=$as_dir/$as_base
14581 export CONFIG_SHELL
14582 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14583 fi;;
14584 esac
14585 done
14586done
14587;;
14588 esac
14589
14590 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14591 # uniformly replaced by the line number. The first 'sed' inserts a
14592 # line-number line before each line; the second 'sed' does the real
14593 # work. The second script uses 'N' to pair each line-number line
14594 # with the numbered line, and appends trailing '-' during
14595 # substitution so that $LINENO is not a special case at line end.
14596 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14597 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14598 sed '=' <$as_myself |
14599 sed '
14600 N
14601 s,$,-,
14602 : loop
14603 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14604 t loop
14605 s,-$,,
14606 s,^['$as_cr_digits']*\n,,
14607 ' >$as_me.lineno &&
14608 chmod +x $as_me.lineno ||
14609 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14610echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14611 { (exit 1); exit 1; }; }
14612
14613 # Don't try to exec as it changes $[0], causing all sort of problems
14614 # (the dirname of $[0] is not the place where we might find the
14615 # original and so on. Autoconf is especially sensible to this).
14616 . ./$as_me.lineno
14617 # Exit status is that of the last command.
14618 exit
252b5132 14619}
6be7c12c 14620
5464f5a1
NN
14621
14622case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14623 *c*,-n*) ECHO_N= ECHO_C='
14624' ECHO_T=' ' ;;
14625 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14626 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14627esac
14628
14629if expr a : '\(a\)' >/dev/null 2>&1; then
14630 as_expr=expr
252b5132 14631else
5464f5a1 14632 as_expr=false
252b5132 14633fi
5464f5a1
NN
14634
14635rm -f conf$$ conf$$.exe conf$$.file
14636echo >conf$$.file
14637if ln -s conf$$.file conf$$ 2>/dev/null; then
14638 # We could just check for DJGPP; but this test a) works b) is more generic
14639 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14640 if test -f conf$$.exe; then
14641 # Don't use ln at all; we don't have any links
14642 as_ln_s='cp -p'
14643 else
14644 as_ln_s='ln -s'
14645 fi
14646elif ln conf$$.file conf$$ 2>/dev/null; then
14647 as_ln_s=ln
14648else
14649 as_ln_s='cp -p'
252b5132 14650fi
5464f5a1 14651rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 14652
5464f5a1
NN
14653if mkdir -p . 2>/dev/null; then
14654 as_mkdir_p=:
14655else
14656 test -d ./-p && rmdir ./-p
14657 as_mkdir_p=false
252b5132 14658fi
b3baf5d0 14659
5464f5a1 14660as_executable_p="test -f"
252b5132 14661
5464f5a1
NN
14662# Sed expression to map a string onto a valid CPP name.
14663as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 14664
5464f5a1
NN
14665# Sed expression to map a string onto a valid variable name.
14666as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 14667
252b5132 14668
5464f5a1
NN
14669# IFS
14670# We need space, tab and new line, in precisely that order.
14671as_nl='
14672'
14673IFS=" $as_nl"
252b5132 14674
5464f5a1
NN
14675# CDPATH.
14676$as_unset CDPATH
14677
14678exec 6>&1
14679
14680# Open the log real soon, to keep \$[0] and so on meaningful, and to
14681# report actual input values of CONFIG_FILES etc. instead of their
14682# values after options handling. Logging --version etc. is OK.
14683exec 5>>config.log
14684{
14685 echo
14686 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14687## Running $as_me. ##
14688_ASBOX
14689} >&5
14690cat >&5 <<_CSEOF
14691
14692This file was extended by $as_me, which was
14693generated by GNU Autoconf 2.59. Invocation command line was
14694
14695 CONFIG_FILES = $CONFIG_FILES
14696 CONFIG_HEADERS = $CONFIG_HEADERS
14697 CONFIG_LINKS = $CONFIG_LINKS
14698 CONFIG_COMMANDS = $CONFIG_COMMANDS
14699 $ $0 $@
14700
14701_CSEOF
14702echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14703echo >&5
14704_ACEOF
14705
14706# Files that config.status was made for.
14707if test -n "$ac_config_files"; then
14708 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 14709fi
5464f5a1
NN
14710
14711if test -n "$ac_config_headers"; then
14712 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 14713fi
252b5132 14714
5464f5a1
NN
14715if test -n "$ac_config_links"; then
14716 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 14717fi
252b5132 14718
5464f5a1
NN
14719if test -n "$ac_config_commands"; then
14720 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14721fi
252b5132 14722
5464f5a1
NN
14723cat >>$CONFIG_STATUS <<\_ACEOF
14724
14725ac_cs_usage="\
14726\`$as_me' instantiates files from templates according to the
14727current configuration.
14728
14729Usage: $0 [OPTIONS] [FILE]...
14730
14731 -h, --help print this help, then exit
14732 -V, --version print version number, then exit
14733 -q, --quiet do not print progress messages
14734 -d, --debug don't remove temporary files
14735 --recheck update $as_me by reconfiguring in the same conditions
14736 --file=FILE[:TEMPLATE]
14737 instantiate the configuration file FILE
14738 --header=FILE[:TEMPLATE]
14739 instantiate the configuration header FILE
14740
14741Configuration files:
14742$config_files
14743
14744Configuration headers:
14745$config_headers
14746
14747Configuration commands:
14748$config_commands
14749
14750Report bugs to <bug-autoconf@gnu.org>."
14751_ACEOF
14752
14753cat >>$CONFIG_STATUS <<_ACEOF
14754ac_cs_version="\\
14755config.status
14756configured by $0, generated by GNU Autoconf 2.59,
14757 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14758
14759Copyright (C) 2003 Free Software Foundation, Inc.
14760This config.status script is free software; the Free Software Foundation
14761gives unlimited permission to copy, distribute and modify it."
14762srcdir=$srcdir
14763INSTALL="$INSTALL"
14764_ACEOF
14765
14766cat >>$CONFIG_STATUS <<\_ACEOF
14767# If no file are specified by the user, then we need to provide default
14768# value. By we need to know if files were specified by the user.
14769ac_need_defaults=:
14770while test $# != 0
14771do
14772 case $1 in
14773 --*=*)
14774 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14775 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14776 ac_shift=:
6be7c12c 14777 ;;
5464f5a1
NN
14778 -*)
14779 ac_option=$1
14780 ac_optarg=$2
14781 ac_shift=shift
6be7c12c 14782 ;;
5464f5a1
NN
14783 *) # This is not an option, so the user has probably given explicit
14784 # arguments.
14785 ac_option=$1
14786 ac_need_defaults=false;;
14787 esac
252b5132 14788
5464f5a1
NN
14789 case $ac_option in
14790 # Handling of the options.
14791_ACEOF
14792cat >>$CONFIG_STATUS <<\_ACEOF
14793 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14794 ac_cs_recheck=: ;;
14795 --version | --vers* | -V )
14796 echo "$ac_cs_version"; exit 0 ;;
14797 --he | --h)
14798 # Conflict between --help and --header
14799 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14800Try \`$0 --help' for more information." >&5
14801echo "$as_me: error: ambiguous option: $1
14802Try \`$0 --help' for more information." >&2;}
14803 { (exit 1); exit 1; }; };;
14804 --help | --hel | -h )
14805 echo "$ac_cs_usage"; exit 0 ;;
14806 --debug | --d* | -d )
14807 debug=: ;;
14808 --file | --fil | --fi | --f )
14809 $ac_shift
14810 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14811 ac_need_defaults=false;;
14812 --header | --heade | --head | --hea )
14813 $ac_shift
14814 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14815 ac_need_defaults=false;;
14816 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14817 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14818 ac_cs_silent=: ;;
6be7c12c 14819
5464f5a1
NN
14820 # This is an error.
14821 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14822Try \`$0 --help' for more information." >&5
14823echo "$as_me: error: unrecognized option: $1
14824Try \`$0 --help' for more information." >&2;}
14825 { (exit 1); exit 1; }; } ;;
252b5132 14826
5464f5a1 14827 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 14828
5464f5a1
NN
14829 esac
14830 shift
14831done
6be7c12c 14832
5464f5a1 14833ac_configure_extra_args=
252b5132 14834
5464f5a1
NN
14835if $ac_cs_silent; then
14836 exec 6>/dev/null
14837 ac_configure_extra_args="$ac_configure_extra_args --silent"
14838fi
6be7c12c 14839
5464f5a1
NN
14840_ACEOF
14841cat >>$CONFIG_STATUS <<_ACEOF
14842if \$ac_cs_recheck; then
14843 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14844 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14845fi
14846
14847_ACEOF
14848
14849cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 14850#
5464f5a1 14851# INIT-COMMANDS section.
6be7c12c 14852#
b3baf5d0 14853
f5385ebf 14854AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
14855
14856
14857_ACEOF
14858
14859
14860
14861cat >>$CONFIG_STATUS <<\_ACEOF
14862for ac_config_target in $ac_config_targets
252b5132 14863do
5464f5a1
NN
14864 case "$ac_config_target" in
14865 # Handling of arguments.
14866 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14867 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14868 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
14869 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 14870 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
14871 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14872 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14873 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14874echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14875 { (exit 1); exit 1; }; };;
252b5132
RH
14876 esac
14877done
14878
5464f5a1
NN
14879# If the user did not use the arguments to specify the items to instantiate,
14880# then the envvar interface is used. Set only those that are not.
14881# We use the long form for the default assignment because of an extremely
14882# bizarre bug on SunOS 4.1.3.
14883if $ac_need_defaults; then
14884 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14885 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14887fi
14888
14889# Have a temporary directory for convenience. Make it in the build tree
14890# simply because there is no reason to put it here, and in addition,
14891# creating and moving files from /tmp can sometimes cause problems.
14892# Create a temporary directory, and hook for its removal unless debugging.
14893$debug ||
14894{
14895 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14896 trap '{ (exit 1); exit 1; }' 1 2 13 15
14897}
b3baf5d0 14898
5464f5a1 14899# Create a (secure) tmp directory for tmp files.
b3baf5d0 14900
5464f5a1
NN
14901{
14902 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14903 test -n "$tmp" && test -d "$tmp"
14904} ||
14905{
14906 tmp=./confstat$$-$RANDOM
14907 (umask 077 && mkdir $tmp)
14908} ||
14909{
14910 echo "$me: cannot create a temporary directory in ." >&2
14911 { (exit 1); exit 1; }
14912}
14913
14914_ACEOF
14915
14916cat >>$CONFIG_STATUS <<_ACEOF
14917
14918#
14919# CONFIG_FILES section.
14920#
b3baf5d0 14921
5464f5a1
NN
14922# No need to generate the scripts if there are no CONFIG_FILES.
14923# This happens for instance when ./config.status config.h
14924if test -n "\$CONFIG_FILES"; then
14925 # Protect against being on the right side of a sed subst in config.status.
14926 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14927 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14928s,@SHELL@,$SHELL,;t t
14929s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14930s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14931s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14932s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14933s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14934s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14935s,@exec_prefix@,$exec_prefix,;t t
14936s,@prefix@,$prefix,;t t
14937s,@program_transform_name@,$program_transform_name,;t t
14938s,@bindir@,$bindir,;t t
14939s,@sbindir@,$sbindir,;t t
14940s,@libexecdir@,$libexecdir,;t t
14941s,@datadir@,$datadir,;t t
14942s,@sysconfdir@,$sysconfdir,;t t
14943s,@sharedstatedir@,$sharedstatedir,;t t
14944s,@localstatedir@,$localstatedir,;t t
14945s,@libdir@,$libdir,;t t
14946s,@includedir@,$includedir,;t t
14947s,@oldincludedir@,$oldincludedir,;t t
14948s,@infodir@,$infodir,;t t
14949s,@mandir@,$mandir,;t t
14950s,@build_alias@,$build_alias,;t t
14951s,@host_alias@,$host_alias,;t t
14952s,@target_alias@,$target_alias,;t t
14953s,@DEFS@,$DEFS,;t t
14954s,@ECHO_C@,$ECHO_C,;t t
14955s,@ECHO_N@,$ECHO_N,;t t
14956s,@ECHO_T@,$ECHO_T,;t t
14957s,@LIBS@,$LIBS,;t t
14958s,@build@,$build,;t t
14959s,@build_cpu@,$build_cpu,;t t
14960s,@build_vendor@,$build_vendor,;t t
14961s,@build_os@,$build_os,;t t
14962s,@host@,$host,;t t
14963s,@host_cpu@,$host_cpu,;t t
14964s,@host_vendor@,$host_vendor,;t t
14965s,@host_os@,$host_os,;t t
14966s,@target@,$target,;t t
14967s,@target_cpu@,$target_cpu,;t t
14968s,@target_vendor@,$target_vendor,;t t
14969s,@target_os@,$target_os,;t t
14970s,@CC@,$CC,;t t
14971s,@CFLAGS@,$CFLAGS,;t t
14972s,@LDFLAGS@,$LDFLAGS,;t t
14973s,@CPPFLAGS@,$CPPFLAGS,;t t
14974s,@ac_ct_CC@,$ac_ct_CC,;t t
14975s,@EXEEXT@,$EXEEXT,;t t
14976s,@OBJEXT@,$OBJEXT,;t t
14977s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14978s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14979s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 14980s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
14981s,@PACKAGE@,$PACKAGE,;t t
14982s,@VERSION@,$VERSION,;t t
14983s,@ACLOCAL@,$ACLOCAL,;t t
14984s,@AUTOCONF@,$AUTOCONF,;t t
14985s,@AUTOMAKE@,$AUTOMAKE,;t t
14986s,@AUTOHEADER@,$AUTOHEADER,;t t
14987s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
14988s,@install_sh@,$install_sh,;t t
14989s,@STRIP@,$STRIP,;t t
14990s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14991s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14992s,@mkdir_p@,$mkdir_p,;t t
14993s,@AWK@,$AWK,;t t
5464f5a1 14994s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
14995s,@am__leading_dot@,$am__leading_dot,;t t
14996s,@AMTAR@,$AMTAR,;t t
14997s,@am__tar@,$am__tar,;t t
14998s,@am__untar@,$am__untar,;t t
14999s,@DEPDIR@,$DEPDIR,;t t
15000s,@am__include@,$am__include,;t t
15001s,@am__quote@,$am__quote,;t t
15002s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15003s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15004s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15005s,@CCDEPMODE@,$CCDEPMODE,;t t
15006s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15007s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
15008s,@AR@,$AR,;t t
15009s,@ac_ct_AR@,$ac_ct_AR,;t t
15010s,@RANLIB@,$RANLIB,;t t
15011s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15012s,@LN_S@,$LN_S,;t t
5464f5a1
NN
15013s,@LIBTOOL@,$LIBTOOL,;t t
15014s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 15015s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
15016s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15017s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15018s,@MAINT@,$MAINT,;t t
15019s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15020s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
15021s,@host_noncanonical@,$host_noncanonical,;t t
15022s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
15023s,@bfdlibdir@,$bfdlibdir,;t t
15024s,@bfdincludedir@,$bfdincludedir,;t t
15025s,@CPP@,$CPP,;t t
15026s,@EGREP@,$EGREP,;t t
15027s,@ALLOCA@,$ALLOCA,;t t
15028s,@USE_NLS@,$USE_NLS,;t t
15029s,@MSGFMT@,$MSGFMT,;t t
15030s,@GMSGFMT@,$GMSGFMT,;t t
15031s,@XGETTEXT@,$XGETTEXT,;t t
15032s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15033s,@CATALOGS@,$CATALOGS,;t t
15034s,@CATOBJEXT@,$CATOBJEXT,;t t
15035s,@DATADIRNAME@,$DATADIRNAME,;t t
15036s,@GMOFILES@,$GMOFILES,;t t
15037s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15038s,@INTLDEPS@,$INTLDEPS,;t t
15039s,@INTLLIBS@,$INTLLIBS,;t t
15040s,@INTLOBJS@,$INTLOBJS,;t t
15041s,@POFILES@,$POFILES,;t t
15042s,@POSUB@,$POSUB,;t t
15043s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15044s,@GT_NO@,$GT_NO,;t t
15045s,@GT_YES@,$GT_YES,;t t
15046s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15047s,@l@,$l,;t t
15048s,@HDEFINES@,$HDEFINES,;t t
15049s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15050s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15051s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15052s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15053s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15054s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15055s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15056s,@COREFILE@,$COREFILE,;t t
15057s,@COREFLAG@,$COREFLAG,;t t
15058s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15059s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15060s,@TDEFINES@,$TDEFINES,;t t
15061s,@wordsize@,$wordsize,;t t
15062s,@bfd_libs@,$bfd_libs,;t t
15063s,@all_backends@,$all_backends,;t t
15064s,@bfd_backends@,$bfd_backends,;t t
15065s,@bfd_machines@,$bfd_machines,;t t
15066s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15067s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15068s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15069s,@tdefaults@,$tdefaults,;t t
15070s,@LIBOBJS@,$LIBOBJS,;t t
15071s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 15072CEOF
252b5132 15073
5464f5a1
NN
15074_ACEOF
15075
15076 cat >>$CONFIG_STATUS <<\_ACEOF
15077 # Split the substitutions into bite-sized pieces for seds with
15078 # small command number limits, like on Digital OSF/1 and HP-UX.
15079 ac_max_sed_lines=48
15080 ac_sed_frag=1 # Number of current file.
15081 ac_beg=1 # First line for current file.
15082 ac_end=$ac_max_sed_lines # Line after last line for current file.
15083 ac_more_lines=:
15084 ac_sed_cmds=
15085 while $ac_more_lines; do
15086 if test $ac_beg -gt 1; then
15087 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 15088 else
5464f5a1
NN
15089 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15090 fi
15091 if test ! -s $tmp/subs.frag; then
15092 ac_more_lines=false
15093 else
15094 # The purpose of the label and of the branching condition is to
15095 # speed up the sed processing (if there are no `@' at all, there
15096 # is no need to browse any of the substitutions).
15097 # These are the two extra sed commands mentioned above.
15098 (echo ':t
15099 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15100 if test -z "$ac_sed_cmds"; then
15101 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15102 else
15103 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15104 fi
15105 ac_sed_frag=`expr $ac_sed_frag + 1`
15106 ac_beg=$ac_end
15107 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 15108 fi
5464f5a1
NN
15109 done
15110 if test -z "$ac_sed_cmds"; then
15111 ac_sed_cmds=cat
252b5132 15112 fi
5464f5a1 15113fi # test -n "$CONFIG_FILES"
6be7c12c 15114
5464f5a1
NN
15115_ACEOF
15116cat >>$CONFIG_STATUS <<\_ACEOF
15117for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 15118 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
15119 case $ac_file in
15120 - | *:- | *:-:* ) # input from stdin
15121 cat >$tmp/stdin
15122 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15124 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15125 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15126 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15127 esac
15128
5464f5a1
NN
15129 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15130 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15131$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15132 X"$ac_file" : 'X\(//\)[^/]' \| \
15133 X"$ac_file" : 'X\(//\)$' \| \
15134 X"$ac_file" : 'X\(/\)' \| \
15135 . : '\(.\)' 2>/dev/null ||
15136echo X"$ac_file" |
15137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15138 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15139 /^X\(\/\/\)$/{ s//\1/; q; }
15140 /^X\(\/\).*/{ s//\1/; q; }
15141 s/.*/./; q'`
15142 { if $as_mkdir_p; then
15143 mkdir -p "$ac_dir"
252b5132 15144 else
5464f5a1
NN
15145 as_dir="$ac_dir"
15146 as_dirs=
15147 while test ! -d "$as_dir"; do
15148 as_dirs="$as_dir $as_dirs"
15149 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15150$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15151 X"$as_dir" : 'X\(//\)[^/]' \| \
15152 X"$as_dir" : 'X\(//\)$' \| \
15153 X"$as_dir" : 'X\(/\)' \| \
15154 . : '\(.\)' 2>/dev/null ||
15155echo X"$as_dir" |
15156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15158 /^X\(\/\/\)$/{ s//\1/; q; }
15159 /^X\(\/\).*/{ s//\1/; q; }
15160 s/.*/./; q'`
15161 done
15162 test ! -n "$as_dirs" || mkdir $as_dirs
15163 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15164echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15165 { (exit 1); exit 1; }; }; }
15166
15167 ac_builddir=.
15168
15169if test "$ac_dir" != .; then
15170 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15171 # A "../" for each directory in $ac_dir_suffix.
15172 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15173else
15174 ac_dir_suffix= ac_top_builddir=
15175fi
252b5132 15176
5464f5a1
NN
15177case $srcdir in
15178 .) # No --srcdir option. We are building in place.
15179 ac_srcdir=.
15180 if test -z "$ac_top_builddir"; then
15181 ac_top_srcdir=.
15182 else
15183 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15184 fi ;;
15185 [\\/]* | ?:[\\/]* ) # Absolute path.
15186 ac_srcdir=$srcdir$ac_dir_suffix;
15187 ac_top_srcdir=$srcdir ;;
252b5132 15188 *) # Relative path.
5464f5a1
NN
15189 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15190 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15191esac
252b5132 15192
5464f5a1
NN
15193# Do not use `cd foo && pwd` to compute absolute paths, because
15194# the directories may not exist.
15195case `pwd` in
15196.) ac_abs_builddir="$ac_dir";;
15197*)
15198 case "$ac_dir" in
15199 .) ac_abs_builddir=`pwd`;;
15200 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15201 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15202 esac;;
15203esac
15204case $ac_abs_builddir in
15205.) ac_abs_top_builddir=${ac_top_builddir}.;;
15206*)
15207 case ${ac_top_builddir}. in
15208 .) ac_abs_top_builddir=$ac_abs_builddir;;
15209 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15210 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15211 esac;;
15212esac
15213case $ac_abs_builddir in
15214.) ac_abs_srcdir=$ac_srcdir;;
15215*)
15216 case $ac_srcdir in
15217 .) ac_abs_srcdir=$ac_abs_builddir;;
15218 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15219 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15220 esac;;
15221esac
15222case $ac_abs_builddir in
15223.) ac_abs_top_srcdir=$ac_top_srcdir;;
15224*)
15225 case $ac_top_srcdir in
15226 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15227 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15228 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15229 esac;;
15230esac
252b5132 15231
5464f5a1
NN
15232
15233 case $INSTALL in
15234 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15235 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 15236 esac
252b5132 15237
5464f5a1
NN
15238 # Let's still pretend it is `configure' which instantiates (i.e., don't
15239 # use $as_me), people would be surprised to read:
15240 # /* config.h. Generated by config.status. */
15241 if test x"$ac_file" = x-; then
15242 configure_input=
15243 else
15244 configure_input="$ac_file. "
15245 fi
15246 configure_input=$configure_input"Generated from `echo $ac_file_in |
15247 sed 's,.*/,,'` by configure."
15248
15249 # First look for the input files in the build tree, otherwise in the
15250 # src tree.
15251 ac_file_inputs=`IFS=:
15252 for f in $ac_file_in; do
15253 case $f in
15254 -) echo $tmp/stdin ;;
15255 [\\/$]*)
15256 # Absolute (can't be DOS-style, as IFS=:)
15257 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15258echo "$as_me: error: cannot find input file: $f" >&2;}
15259 { (exit 1); exit 1; }; }
15260 echo "$f";;
15261 *) # Relative
15262 if test -f "$f"; then
15263 # Build tree
15264 echo "$f"
15265 elif test -f "$srcdir/$f"; then
15266 # Source tree
15267 echo "$srcdir/$f"
15268 else
15269 # /dev/null tree
15270 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15271echo "$as_me: error: cannot find input file: $f" >&2;}
15272 { (exit 1); exit 1; }; }
15273 fi;;
15274 esac
15275 done` || { (exit 1); exit 1; }
6ec7057a
RH
15276
15277 if test x"$ac_file" != x-; then
15278 { echo "$as_me:$LINENO: creating $ac_file" >&5
15279echo "$as_me: creating $ac_file" >&6;}
15280 rm -f "$ac_file"
15281 fi
5464f5a1
NN
15282_ACEOF
15283cat >>$CONFIG_STATUS <<_ACEOF
15284 sed "$ac_vpsub
15285$extrasub
15286_ACEOF
15287cat >>$CONFIG_STATUS <<\_ACEOF
15288:t
15289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15290s,@configure_input@,$configure_input,;t t
15291s,@srcdir@,$ac_srcdir,;t t
15292s,@abs_srcdir@,$ac_abs_srcdir,;t t
15293s,@top_srcdir@,$ac_top_srcdir,;t t
15294s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15295s,@builddir@,$ac_builddir,;t t
15296s,@abs_builddir@,$ac_abs_builddir,;t t
15297s,@top_builddir@,$ac_top_builddir,;t t
15298s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15299s,@INSTALL@,$ac_INSTALL,;t t
15300" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15301 rm -f $tmp/stdin
15302 if test x"$ac_file" != x-; then
15303 mv $tmp/out $ac_file
15304 else
15305 cat $tmp/out
15306 rm -f $tmp/out
15307 fi
15308
15309done
15310_ACEOF
15311cat >>$CONFIG_STATUS <<\_ACEOF
15312
15313#
15314# CONFIG_HEADER section.
15315#
252b5132
RH
15316
15317# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15318# NAME is the cpp macro being defined and VALUE is the value it is being given.
15319#
15320# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
15321ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15322ac_dB='[ ].*$,\1#\2'
15323ac_dC=' '
15324ac_dD=',;t'
15325# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15326ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15327ac_uB='$,\1#\2define\3'
252b5132 15328ac_uC=' '
5464f5a1
NN
15329ac_uD=',;t'
15330
15331for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 15332 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
15333 case $ac_file in
15334 - | *:- | *:-:* ) # input from stdin
15335 cat >$tmp/stdin
15336 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15337 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15338 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15340 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
15341 esac
15342
5464f5a1
NN
15343 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15344echo "$as_me: creating $ac_file" >&6;}
15345
15346 # First look for the input files in the build tree, otherwise in the
15347 # src tree.
15348 ac_file_inputs=`IFS=:
15349 for f in $ac_file_in; do
15350 case $f in
15351 -) echo $tmp/stdin ;;
15352 [\\/$]*)
15353 # Absolute (can't be DOS-style, as IFS=:)
15354 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15355echo "$as_me: error: cannot find input file: $f" >&2;}
15356 { (exit 1); exit 1; }; }
15357 # Do quote $f, to prevent DOS paths from being IFS'd.
15358 echo "$f";;
15359 *) # Relative
15360 if test -f "$f"; then
15361 # Build tree
15362 echo "$f"
15363 elif test -f "$srcdir/$f"; then
15364 # Source tree
15365 echo "$srcdir/$f"
15366 else
15367 # /dev/null tree
15368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15369echo "$as_me: error: cannot find input file: $f" >&2;}
15370 { (exit 1); exit 1; }; }
15371 fi;;
15372 esac
15373 done` || { (exit 1); exit 1; }
15374 # Remove the trailing spaces.
15375 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15376
15377_ACEOF
15378
15379# Transform confdefs.h into two sed scripts, `conftest.defines' and
15380# `conftest.undefs', that substitutes the proper values into
15381# config.h.in to produce config.h. The first handles `#define'
15382# templates, and the second `#undef' templates.
15383# And first: Protect against being on the right side of a sed subst in
15384# config.status. Protect against being in an unquoted here document
15385# in config.status.
15386rm -f conftest.defines conftest.undefs
15387# Using a here document instead of a string reduces the quoting nightmare.
15388# Putting comments in sed scripts is not portable.
15389#
15390# `end' is used to avoid that the second main sed command (meant for
15391# 0-ary CPP macros) applies to n-ary macro definitions.
15392# See the Autoconf documentation for `clear'.
15393cat >confdef2sed.sed <<\_ACEOF
15394s/[\\&,]/\\&/g
15395s,[\\$`],\\&,g
15396t clear
15397: clear
15398s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15399t end
15400s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15401: end
15402_ACEOF
15403# If some macros were called several times there might be several times
15404# the same #defines, which is useless. Nevertheless, we may not want to
15405# sort them, since we want the *last* AC-DEFINE to be honored.
15406uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15407sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15408rm -f confdef2sed.sed
252b5132
RH
15409
15410# This sed command replaces #undef with comments. This is necessary, for
15411# example, in the case of _POSIX_SOURCE, which is predefined and required
15412# on some systems where configure will not decide to define it.
5464f5a1
NN
15413cat >>conftest.undefs <<\_ACEOF
15414s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15415_ACEOF
15416
15417# Break up conftest.defines because some shells have a limit on the size
15418# of here documents, and old seds have small limits too (100 cmds).
15419echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15420echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15421echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15422echo ' :' >>$CONFIG_STATUS
15423rm -f conftest.tail
15424while grep . conftest.defines >/dev/null
15425do
15426 # Write a limited-size here document to $tmp/defines.sed.
15427 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15428 # Speed up: don't consider the non `#define' lines.
15429 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15430 # Work around the forget-to-reset-the-flag bug.
15431 echo 't clr' >>$CONFIG_STATUS
15432 echo ': clr' >>$CONFIG_STATUS
15433 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15434 echo 'CEOF
15435 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15436 rm -f $tmp/in
15437 mv $tmp/out $tmp/in
15438' >>$CONFIG_STATUS
15439 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15440 rm -f conftest.defines
15441 mv conftest.tail conftest.defines
15442done
15443rm -f conftest.defines
15444echo ' fi # grep' >>$CONFIG_STATUS
15445echo >>$CONFIG_STATUS
252b5132 15446
5464f5a1
NN
15447# Break up conftest.undefs because some shells have a limit on the size
15448# of here documents, and old seds have small limits too (100 cmds).
15449echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 15450rm -f conftest.tail
5464f5a1 15451while grep . conftest.undefs >/dev/null
252b5132 15452do
5464f5a1
NN
15453 # Write a limited-size here document to $tmp/undefs.sed.
15454 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15455 # Speed up: don't consider the non `#undef'
15456 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15457 # Work around the forget-to-reset-the-flag bug.
15458 echo 't clr' >>$CONFIG_STATUS
15459 echo ': clr' >>$CONFIG_STATUS
15460 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 15461 echo 'CEOF
5464f5a1
NN
15462 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15463 rm -f $tmp/in
15464 mv $tmp/out $tmp/in
15465' >>$CONFIG_STATUS
15466 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15467 rm -f conftest.undefs
15468 mv conftest.tail conftest.undefs
252b5132 15469done
5464f5a1
NN
15470rm -f conftest.undefs
15471
15472cat >>$CONFIG_STATUS <<\_ACEOF
15473 # Let's still pretend it is `configure' which instantiates (i.e., don't
15474 # use $as_me), people would be surprised to read:
15475 # /* config.h. Generated by config.status. */
15476 if test x"$ac_file" = x-; then
15477 echo "/* Generated by configure. */" >$tmp/config.h
15478 else
15479 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15480 fi
15481 cat $tmp/in >>$tmp/config.h
15482 rm -f $tmp/in
15483 if test x"$ac_file" != x-; then
15484 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15485 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15486echo "$as_me: $ac_file is unchanged" >&6;}
15487 else
15488 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15489$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15490 X"$ac_file" : 'X\(//\)[^/]' \| \
15491 X"$ac_file" : 'X\(//\)$' \| \
15492 X"$ac_file" : 'X\(/\)' \| \
15493 . : '\(.\)' 2>/dev/null ||
15494echo X"$ac_file" |
15495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15497 /^X\(\/\/\)$/{ s//\1/; q; }
15498 /^X\(\/\).*/{ s//\1/; q; }
15499 s/.*/./; q'`
15500 { if $as_mkdir_p; then
15501 mkdir -p "$ac_dir"
252b5132 15502 else
5464f5a1
NN
15503 as_dir="$ac_dir"
15504 as_dirs=
15505 while test ! -d "$as_dir"; do
15506 as_dirs="$as_dir $as_dirs"
15507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$as_dir" : 'X\(//\)[^/]' \| \
15510 X"$as_dir" : 'X\(//\)$' \| \
15511 X"$as_dir" : 'X\(/\)' \| \
15512 . : '\(.\)' 2>/dev/null ||
15513echo X"$as_dir" |
15514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15516 /^X\(\/\/\)$/{ s//\1/; q; }
15517 /^X\(\/\).*/{ s//\1/; q; }
15518 s/.*/./; q'`
15519 done
15520 test ! -n "$as_dirs" || mkdir $as_dirs
15521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15522echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15523 { (exit 1); exit 1; }; }; }
15524
15525 rm -f $ac_file
15526 mv $tmp/config.h $ac_file
252b5132 15527 fi
5464f5a1
NN
15528 else
15529 cat $tmp/config.h
15530 rm -f $tmp/config.h
252b5132 15531 fi
f5385ebf
AM
15532# Compute $ac_file's index in $config_headers.
15533_am_stamp_count=1
15534for _am_header in $config_headers :; do
15535 case $_am_header in
15536 $ac_file | $ac_file:* )
15537 break ;;
15538 * )
15539 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15540 esac
15541done
15542echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15543$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15544 X$ac_file : 'X\(//\)[^/]' \| \
15545 X$ac_file : 'X\(//\)$' \| \
15546 X$ac_file : 'X\(/\)' \| \
15547 . : '\(.\)' 2>/dev/null ||
15548echo X$ac_file |
15549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15551 /^X\(\/\/\)$/{ s//\1/; q; }
15552 /^X\(\/\).*/{ s//\1/; q; }
15553 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
15554done
15555_ACEOF
15556cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 15557
5464f5a1
NN
15558#
15559# CONFIG_COMMANDS section.
15560#
15561for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15562 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15563 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15564 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15565$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15566 X"$ac_dest" : 'X\(//\)[^/]' \| \
15567 X"$ac_dest" : 'X\(//\)$' \| \
15568 X"$ac_dest" : 'X\(/\)' \| \
15569 . : '\(.\)' 2>/dev/null ||
15570echo X"$ac_dest" |
15571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15572 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15573 /^X\(\/\/\)$/{ s//\1/; q; }
15574 /^X\(\/\).*/{ s//\1/; q; }
15575 s/.*/./; q'`
15576 { if $as_mkdir_p; then
15577 mkdir -p "$ac_dir"
15578 else
15579 as_dir="$ac_dir"
15580 as_dirs=
15581 while test ! -d "$as_dir"; do
15582 as_dirs="$as_dir $as_dirs"
15583 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15584$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15585 X"$as_dir" : 'X\(//\)[^/]' \| \
15586 X"$as_dir" : 'X\(//\)$' \| \
15587 X"$as_dir" : 'X\(/\)' \| \
15588 . : '\(.\)' 2>/dev/null ||
15589echo X"$as_dir" |
15590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15592 /^X\(\/\/\)$/{ s//\1/; q; }
15593 /^X\(\/\).*/{ s//\1/; q; }
15594 s/.*/./; q'`
15595 done
15596 test ! -n "$as_dirs" || mkdir $as_dirs
15597 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15598echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15599 { (exit 1); exit 1; }; }; }
b3baf5d0 15600
5464f5a1 15601 ac_builddir=.
b3baf5d0 15602
5464f5a1
NN
15603if test "$ac_dir" != .; then
15604 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15605 # A "../" for each directory in $ac_dir_suffix.
15606 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15607else
15608 ac_dir_suffix= ac_top_builddir=
15609fi
15610
15611case $srcdir in
15612 .) # No --srcdir option. We are building in place.
15613 ac_srcdir=.
15614 if test -z "$ac_top_builddir"; then
15615 ac_top_srcdir=.
15616 else
15617 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15618 fi ;;
15619 [\\/]* | ?:[\\/]* ) # Absolute path.
15620 ac_srcdir=$srcdir$ac_dir_suffix;
15621 ac_top_srcdir=$srcdir ;;
15622 *) # Relative path.
15623 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15624 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15625esac
15626
15627# Do not use `cd foo && pwd` to compute absolute paths, because
15628# the directories may not exist.
15629case `pwd` in
15630.) ac_abs_builddir="$ac_dir";;
15631*)
15632 case "$ac_dir" in
15633 .) ac_abs_builddir=`pwd`;;
15634 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15635 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15636 esac;;
15637esac
15638case $ac_abs_builddir in
15639.) ac_abs_top_builddir=${ac_top_builddir}.;;
15640*)
15641 case ${ac_top_builddir}. in
15642 .) ac_abs_top_builddir=$ac_abs_builddir;;
15643 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15644 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15645 esac;;
15646esac
15647case $ac_abs_builddir in
15648.) ac_abs_srcdir=$ac_srcdir;;
15649*)
15650 case $ac_srcdir in
15651 .) ac_abs_srcdir=$ac_abs_builddir;;
15652 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15653 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15654 esac;;
15655esac
15656case $ac_abs_builddir in
15657.) ac_abs_top_srcdir=$ac_top_srcdir;;
15658*)
15659 case $ac_top_srcdir in
15660 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15661 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15662 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15663 esac;;
15664esac
15665
15666
15667 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15668echo "$as_me: executing $ac_dest commands" >&6;}
15669 case $ac_dest in
f5385ebf
AM
15670 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15671 # Strip MF so we end up with the name of the file.
15672 mf=`echo "$mf" | sed -e 's/:.*$//'`
15673 # Check whether this is an Automake generated Makefile or not.
15674 # We used to match only the files named `Makefile.in', but
15675 # some people rename them; so instead we look at the file content.
15676 # Grep'ing the first line is not enough: some people post-process
15677 # each Makefile.in and add a new line on top of each file to say so.
15678 # So let's grep whole file.
15679 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15680 dirpart=`(dirname "$mf") 2>/dev/null ||
15681$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15682 X"$mf" : 'X\(//\)[^/]' \| \
15683 X"$mf" : 'X\(//\)$' \| \
15684 X"$mf" : 'X\(/\)' \| \
15685 . : '\(.\)' 2>/dev/null ||
15686echo X"$mf" |
15687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15689 /^X\(\/\/\)$/{ s//\1/; q; }
15690 /^X\(\/\).*/{ s//\1/; q; }
15691 s/.*/./; q'`
15692 else
15693 continue
15694 fi
15695 # Extract the definition of DEPDIR, am__include, and am__quote
15696 # from the Makefile without running `make'.
15697 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15698 test -z "$DEPDIR" && continue
15699 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15700 test -z "am__include" && continue
15701 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15702 # When using ansi2knr, U may be empty or an underscore; expand it
15703 U=`sed -n 's/^U = //p' < "$mf"`
15704 # Find all dependency output files, they are included files with
15705 # $(DEPDIR) in their names. We invoke sed twice because it is the
15706 # simplest approach to changing $(DEPDIR) to its actual value in the
15707 # expansion.
15708 for file in `sed -n "
15709 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15710 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15711 # Make sure the directory exists.
15712 test -f "$dirpart/$file" && continue
15713 fdir=`(dirname "$file") 2>/dev/null ||
15714$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15715 X"$file" : 'X\(//\)[^/]' \| \
15716 X"$file" : 'X\(//\)$' \| \
15717 X"$file" : 'X\(/\)' \| \
15718 . : '\(.\)' 2>/dev/null ||
15719echo X"$file" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15722 /^X\(\/\/\)$/{ s//\1/; q; }
15723 /^X\(\/\).*/{ s//\1/; q; }
15724 s/.*/./; q'`
15725 { if $as_mkdir_p; then
15726 mkdir -p $dirpart/$fdir
15727 else
15728 as_dir=$dirpart/$fdir
15729 as_dirs=
15730 while test ! -d "$as_dir"; do
15731 as_dirs="$as_dir $as_dirs"
15732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15733$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15734 X"$as_dir" : 'X\(//\)[^/]' \| \
15735 X"$as_dir" : 'X\(//\)$' \| \
15736 X"$as_dir" : 'X\(/\)' \| \
15737 . : '\(.\)' 2>/dev/null ||
15738echo X"$as_dir" |
15739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15741 /^X\(\/\/\)$/{ s//\1/; q; }
15742 /^X\(\/\).*/{ s//\1/; q; }
15743 s/.*/./; q'`
15744 done
15745 test ! -n "$as_dirs" || mkdir $as_dirs
15746 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15747echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15748 { (exit 1); exit 1; }; }; }
15749
15750 # echo "creating $dirpart/$file"
15751 echo '# dummy' > "$dirpart/$file"
15752 done
15753done
15754 ;;
5464f5a1
NN
15755 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
15756 esac
15757done
15758_ACEOF
15759
15760cat >>$CONFIG_STATUS <<\_ACEOF
15761
15762{ (exit 0); exit 0; }
15763_ACEOF
252b5132 15764chmod +x $CONFIG_STATUS
5464f5a1
NN
15765ac_clean_files=$ac_clean_files_save
15766
15767
15768# configure is writing to config.log, and then calls config.status.
15769# config.status does its own redirection, appending to config.log.
15770# Unfortunately, on DOS this fails, as config.log is still kept open
15771# by configure, so config.status won't be able to write to it; its
15772# output is simply discarded. So we exec the FD to /dev/null,
15773# effectively closing config.log, so it can be properly (re)opened and
15774# appended to by config.status. When coming back to configure, we
15775# need to make the FD available again.
15776if test "$no_create" != yes; then
15777 ac_cs_success=:
15778 ac_config_status_args=
15779 test "$silent" = yes &&
15780 ac_config_status_args="$ac_config_status_args --quiet"
15781 exec 5>/dev/null
15782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15783 exec 5>>config.log
15784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15785 # would make configure fail if this is the last instruction.
15786 $ac_cs_success || { (exit 1); exit 1; }
15787fi
252b5132 15788
55c80943 15789
This page took 3.104984 seconds and 4 git commands to generate.