2007-03-07 H.J. Lu <hongjiu.lu@intel.com>
[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
92f01d61 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 PKGVERSION WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES CPP EGREP 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 bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir 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
241a6c40
AM
863 --enable-werror treat compile warnings as errors
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
92f01d61 876 --with-pkgversion=PKG Add PKG to the version string
5464f5a1
NN
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
49c96104 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); } &&
49c96104
SE
2002 { ac_try='test -z "$ac_c_werror_flag"
2003 || test ! -s conftest.err'
5464f5a1
NN
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; } &&
2009 { ac_try='test -s conftest.$ac_objext'
2010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 (eval $ac_try) 2>&5
2012 ac_status=$?
2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2014 (exit $ac_status); }; }; then
2015 ac_compiler_gnu=yes
2016else
2017 echo "$as_me: failed program was:" >&5
2018sed 's/^/| /' conftest.$ac_ext >&5
2019
2020ac_compiler_gnu=no
2021fi
2022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2023ac_cv_c_compiler_gnu=$ac_compiler_gnu
2024
2025fi
2026echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2027echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2028GCC=`test $ac_compiler_gnu = yes && echo yes`
2029ac_test_CFLAGS=${CFLAGS+set}
2030ac_save_CFLAGS=$CFLAGS
2031CFLAGS="-g"
2032echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2034if test "${ac_cv_prog_cc_g+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 cat >conftest.$ac_ext <<_ACEOF
2038/* confdefs.h. */
2039_ACEOF
2040cat confdefs.h >>conftest.$ac_ext
2041cat >>conftest.$ac_ext <<_ACEOF
2042/* end confdefs.h. */
2043
2044int
2045main ()
2046{
2047
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052rm -f conftest.$ac_objext
2053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2055 ac_status=$?
2056 grep -v '^ *+' conftest.er1 >conftest.err
2057 rm -f conftest.er1
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
49c96104
SE
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
5464f5a1
NN
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064 (eval $ac_try) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 (eval $ac_try) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 ac_cv_prog_cc_g=yes
2075else
2076 echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079ac_cv_prog_cc_g=no
2080fi
2081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2082fi
2083echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2084echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2085if test "$ac_test_CFLAGS" = set; then
2086 CFLAGS=$ac_save_CFLAGS
2087elif test $ac_cv_prog_cc_g = yes; then
2088 if test "$GCC" = yes; then
2089 CFLAGS="-g -O2"
2090 else
2091 CFLAGS="-g"
2092 fi
2093else
2094 if test "$GCC" = yes; then
2095 CFLAGS="-O2"
2096 else
2097 CFLAGS=
2098 fi
2099fi
2100echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2101echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2102if test "${ac_cv_prog_cc_stdc+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105 ac_cv_prog_cc_stdc=no
2106ac_save_CC=$CC
2107cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h. */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h. */
2113#include <stdarg.h>
2114#include <stdio.h>
2115#include <sys/types.h>
2116#include <sys/stat.h>
2117/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2118struct buf { int x; };
2119FILE * (*rcsopen) (struct buf *, struct stat *, int);
2120static char *e (p, i)
2121 char **p;
2122 int i;
2123{
2124 return p[i];
2125}
2126static char *f (char * (*g) (char **, int), char **p, ...)
2127{
2128 char *s;
2129 va_list v;
2130 va_start (v,p);
2131 s = g (p, va_arg (v,int));
2132 va_end (v);
2133 return s;
2134}
2135
2136/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2137 function prototypes and stuff, but not '\xHH' hex character constants.
2138 These don't provoke an error unfortunately, instead are silently treated
2139 as 'x'. The following induces an error, until -std1 is added to get
2140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2141 array size at least. It's necessary to write '\x00'==0 to get something
2142 that's true only with -std1. */
2143int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2144
2145int test (int i, double x);
2146struct s1 {int (*f) (int a);};
2147struct s2 {int (*f) (double a);};
2148int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2149int argc;
2150char **argv;
2151int
2152main ()
2153{
2154return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159# Don't try gcc -ansi; that turns off useful extensions and
2160# breaks some systems' header files.
2161# AIX -qlanglvl=ansi
2162# Ultrix and OSF/1 -std1
2163# HP-UX 10.20 and later -Ae
2164# HP-UX older versions -Aa -D_HPUX_SOURCE
2165# SVR4 -Xc -D__EXTENSIONS__
2166for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2167do
2168 CC="$ac_save_CC $ac_arg"
2169 rm -f conftest.$ac_objext
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>conftest.er1
2172 ac_status=$?
2173 grep -v '^ *+' conftest.er1 >conftest.err
2174 rm -f conftest.er1
2175 cat conftest.err >&5
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); } &&
49c96104
SE
2178 { ac_try='test -z "$ac_c_werror_flag"
2179 || test ! -s conftest.err'
5464f5a1
NN
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; } &&
2185 { ac_try='test -s conftest.$ac_objext'
2186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187 (eval $ac_try) 2>&5
2188 ac_status=$?
2189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190 (exit $ac_status); }; }; then
2191 ac_cv_prog_cc_stdc=$ac_arg
2192break
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197fi
2198rm -f conftest.err conftest.$ac_objext
2199done
2200rm -f conftest.$ac_ext conftest.$ac_objext
2201CC=$ac_save_CC
2202
2203fi
2204
2205case "x$ac_cv_prog_cc_stdc" in
2206 x|xno)
2207 echo "$as_me:$LINENO: result: none needed" >&5
2208echo "${ECHO_T}none needed" >&6 ;;
2209 *)
2210 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212 CC="$CC $ac_cv_prog_cc_stdc" ;;
2213esac
2214
2215# Some people use a C++ compiler to compile C. Since we use `exit',
2216# in C++ we need to declare it. In case someone uses the same compiler
2217# for both compiling C and C++ we need to have the C++ compiler decide
2218# the declaration of exit, since it's the most demanding environment.
2219cat >conftest.$ac_ext <<_ACEOF
2220#ifndef __cplusplus
2221 choke me
2222#endif
2223_ACEOF
2224rm -f conftest.$ac_objext
2225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>conftest.er1
2227 ac_status=$?
2228 grep -v '^ *+' conftest.er1 >conftest.err
2229 rm -f conftest.er1
2230 cat conftest.err >&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
49c96104
SE
2233 { ac_try='test -z "$ac_c_werror_flag"
2234 || test ! -s conftest.err'
5464f5a1
NN
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; } &&
2240 { ac_try='test -s conftest.$ac_objext'
2241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 (eval $ac_try) 2>&5
2243 ac_status=$?
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); }; }; then
2246 for ac_declaration in \
2247 '' \
2248 'extern "C" void std::exit (int) throw (); using std::exit;' \
2249 'extern "C" void std::exit (int); using std::exit;' \
2250 'extern "C" void exit (int) throw ();' \
2251 'extern "C" void exit (int);' \
2252 'void exit (int);'
2253do
2254 cat >conftest.$ac_ext <<_ACEOF
2255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
2260$ac_declaration
2261#include <stdlib.h>
2262int
2263main ()
2264{
2265exit (42);
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>conftest.er1
2273 ac_status=$?
2274 grep -v '^ *+' conftest.er1 >conftest.err
2275 rm -f conftest.er1
2276 cat conftest.err >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
49c96104
SE
2279 { ac_try='test -z "$ac_c_werror_flag"
2280 || test ! -s conftest.err'
5464f5a1
NN
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; } &&
2286 { ac_try='test -s conftest.$ac_objext'
2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 (eval $ac_try) 2>&5
2289 ac_status=$?
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; }; then
2292 :
2293else
2294 echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297continue
2298fi
2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2300 cat >conftest.$ac_ext <<_ACEOF
2301/* confdefs.h. */
2302_ACEOF
2303cat confdefs.h >>conftest.$ac_ext
2304cat >>conftest.$ac_ext <<_ACEOF
2305/* end confdefs.h. */
2306$ac_declaration
2307int
2308main ()
2309{
2310exit (42);
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315rm -f conftest.$ac_objext
2316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317 (eval $ac_compile) 2>conftest.er1
2318 ac_status=$?
2319 grep -v '^ *+' conftest.er1 >conftest.err
2320 rm -f conftest.er1
2321 cat conftest.err >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); } &&
49c96104
SE
2324 { ac_try='test -z "$ac_c_werror_flag"
2325 || test ! -s conftest.err'
5464f5a1
NN
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); }; } &&
2331 { ac_try='test -s conftest.$ac_objext'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; }; then
2337 break
2338else
2339 echo "$as_me: failed program was:" >&5
2340sed 's/^/| /' conftest.$ac_ext >&5
2341
2342fi
2343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2344done
2345rm -f conftest*
2346if test -n "$ac_declaration"; then
2347 echo '#ifdef __cplusplus' >>confdefs.h
2348 echo $ac_declaration >>confdefs.h
2349 echo '#endif' >>confdefs.h
2350fi
2351
2352else
2353 echo "$as_me: failed program was:" >&5
2354sed 's/^/| /' conftest.$ac_ext >&5
2355
2356fi
2357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
2364
f5385ebf
AM
2365echo "$as_me:$LINENO: checking for library containing strerror" >&5
2366echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2367if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
f5385ebf
AM
2370 ac_func_search_save_LIBS=$LIBS
2371ac_cv_search_strerror=no
5464f5a1
NN
2372cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
2378
2379/* Override any gcc2 internal prototype to avoid an error. */
2380#ifdef __cplusplus
2381extern "C"
2382#endif
2383/* We use char because int might match the return type of a gcc2
2384 builtin and then its argument prototype would still apply. */
2385char strerror ();
2386int
2387main ()
2388{
2389strerror ();
2390 ;
2391 return 0;
2392}
2393_ACEOF
2394rm -f conftest.$ac_objext conftest$ac_exeext
2395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2396 (eval $ac_link) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
49c96104
SE
2403 { ac_try='test -z "$ac_c_werror_flag"
2404 || test ! -s conftest.err'
5464f5a1
NN
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest$ac_exeext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2412 (eval $ac_try) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
f5385ebf 2416 ac_cv_search_strerror="none required"
5464f5a1
NN
2417else
2418 echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
5464f5a1
NN
2421fi
2422rm -f conftest.err conftest.$ac_objext \
2423 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2424if test "$ac_cv_search_strerror" = no; then
2425 for ac_lib in cposix; do
2426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2427 cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h. */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h. */
2433
2434/* Override any gcc2 internal prototype to avoid an error. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438/* We use char because int might match the return type of a gcc2
2439 builtin and then its argument prototype would still apply. */
2440char strerror ();
2441int
2442main ()
2443{
2444strerror ();
2445 ;
2446 return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext conftest$ac_exeext
2450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2451 (eval $ac_link) 2>conftest.er1
2452 ac_status=$?
2453 grep -v '^ *+' conftest.er1 >conftest.err
2454 rm -f conftest.er1
2455 cat conftest.err >&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); } &&
49c96104
SE
2458 { ac_try='test -z "$ac_c_werror_flag"
2459 || test ! -s conftest.err'
f5385ebf
AM
2460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 (eval $ac_try) 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; } &&
2465 { ac_try='test -s conftest$ac_exeext'
2466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 (eval $ac_try) 2>&5
2468 ac_status=$?
2469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); }; }; then
2471 ac_cv_search_strerror="-l$ac_lib"
2472break
2473else
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
5464f5a1 2477fi
f5385ebf
AM
2478rm -f conftest.err conftest.$ac_objext \
2479 conftest$ac_exeext conftest.$ac_ext
2480 done
5464f5a1 2481fi
f5385ebf
AM
2482LIBS=$ac_func_search_save_LIBS
2483fi
2484echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2485echo "${ECHO_T}$ac_cv_search_strerror" >&6
2486if test "$ac_cv_search_strerror" != no; then
2487 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2488
f5385ebf 2489fi
5464f5a1
NN
2490
2491
f5385ebf 2492am__api_version="1.9"
5464f5a1
NN
2493# Find a good install program. We prefer a C program (faster),
2494# so one script is as good as another. But avoid the broken or
2495# incompatible versions:
2496# SysV /etc/install, /usr/sbin/install
2497# SunOS /usr/etc/install
2498# IRIX /sbin/install
2499# AIX /bin/install
2500# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2501# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2504# OS/2's system install, which has a completely different semantic
252b5132 2505# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2506echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2507echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2508if test -z "$INSTALL"; then
5464f5a1
NN
2509if test "${ac_cv_path_install+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2511else
5464f5a1
NN
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 # Account for people who put trailing slashes in PATH elements.
2518case $as_dir/ in
2519 ./ | .// | /cC/* | \
2520 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2521 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2522 /usr/ucb/* ) ;;
2523 *)
2524 # OSF1 and SCO ODT 3.0 have their own names for install.
2525 # Don't use installbsd from OSF since it installs stuff as root
2526 # by default.
2527 for ac_prog in ginstall scoinst install; do
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2530 if test $ac_prog = install &&
5464f5a1 2531 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2532 # AIX install. It has an incompatible calling convention.
2533 :
5464f5a1
NN
2534 elif test $ac_prog = install &&
2535 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2536 # program-specific install script used by HP pwplus--don't use.
2537 :
252b5132 2538 else
5464f5a1
NN
2539 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2540 break 3
252b5132
RH
2541 fi
2542 fi
2543 done
5464f5a1
NN
2544 done
2545 ;;
2546esac
2547done
2548
252b5132
RH
2549
2550fi
2551 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2552 INSTALL=$ac_cv_path_install
252b5132
RH
2553 else
2554 # As a last resort, use the slow shell script. We don't cache a
2555 # path for INSTALL within a source directory, because that will
2556 # break other packages using the cache if that directory is
2557 # removed, or if the path is relative.
5464f5a1 2558 INSTALL=$ac_install_sh
252b5132
RH
2559 fi
2560fi
5464f5a1
NN
2561echo "$as_me:$LINENO: result: $INSTALL" >&5
2562echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2563
2564# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2565# It thinks the first close brace ends the variable substitution.
2566test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2567
5464f5a1 2568test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2569
2570test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2571
5464f5a1
NN
2572echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2573echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2574# Just in case
2575sleep 1
f5385ebf 2576echo timestamp > conftest.file
252b5132
RH
2577# Do `set' in a subshell so we don't clobber the current shell's
2578# arguments. Must try -L first in case configure is actually a
2579# symlink; some systems play weird games with the mod time of symlinks
2580# (eg FreeBSD returns the mod time of the symlink's containing
2581# directory).
2582if (
f5385ebf 2583 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2584 if test "$*" = "X"; then
2585 # -L didn't work.
f5385ebf 2586 set X `ls -t $srcdir/configure conftest.file`
252b5132 2587 fi
f5385ebf
AM
2588 rm -f conftest.file
2589 if test "$*" != "X $srcdir/configure conftest.file" \
2590 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2591
2592 # If neither matched, then we have a broken ls. This can happen
2593 # if, for instance, CONFIG_SHELL is bash and it inherits a
2594 # broken ls alias from the environment. This has actually
2595 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2597alias in your environment" >&5
2598echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2599alias in your environment" >&2;}
2600 { (exit 1); exit 1; }; }
252b5132
RH
2601 fi
2602
f5385ebf 2603 test "$2" = conftest.file
252b5132
RH
2604 )
2605then
2606 # Ok.
2607 :
2608else
5464f5a1
NN
2609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2610Check your system clock" >&5
2611echo "$as_me: error: newly created file is older than distributed files!
2612Check your system clock" >&2;}
2613 { (exit 1); exit 1; }; }
252b5132 2614fi
5464f5a1
NN
2615echo "$as_me:$LINENO: result: yes" >&5
2616echo "${ECHO_T}yes" >&6
252b5132 2617test "$program_prefix" != NONE &&
5464f5a1 2618 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2619# Use a double $ so make ignores it.
2620test "$program_suffix" != NONE &&
5464f5a1
NN
2621 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2622# Double any \ or $. echo might interpret backslashes.
2623# By default was `s,x,x', remove it if useless.
2624cat <<\_ACEOF >conftest.sed
2625s/[\\$]/&&/g;s/;s,x,x,$//
2626_ACEOF
2627program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2628rm conftest.sed
2629
f5385ebf
AM
2630# expand $ac_aux_dir to an absolute path
2631am_aux_dir=`cd $ac_aux_dir && pwd`
2632
2633test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2634# Use eval to expand $SHELL
2635if eval "$MISSING --run true"; then
2636 am_missing_run="$MISSING --run "
2637else
2638 am_missing_run=
2639 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2640echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641fi
2642
2643if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2644 # We used to keeping the `.' as first argument, in order to
2645 # allow $(mkdir_p) to be used without argument. As in
2646 # $(mkdir_p) $(somedir)
2647 # where $(somedir) is conditionally defined. However this is wrong
2648 # for two reasons:
2649 # 1. if the package is installed by a user who cannot write `.'
2650 # make install will fail,
2651 # 2. the above comment should most certainly read
2652 # $(mkdir_p) $(DESTDIR)$(somedir)
2653 # so it does not work when $(somedir) is undefined and
2654 # $(DESTDIR) is not.
2655 # To support the latter case, we have to write
2656 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2657 # so the `.' trick is pointless.
2658 mkdir_p='mkdir -p --'
2659else
2660 # On NextStep and OpenStep, the `mkdir' command does not
2661 # recognize any option. It will interpret all options as
2662 # directories to create, and then abort because `.' already
2663 # exists.
2664 for d in ./-p ./--version;
2665 do
2666 test -d $d && rmdir $d
2667 done
2668 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2669 if test -f "$ac_aux_dir/mkinstalldirs"; then
2670 mkdir_p='$(mkinstalldirs)'
2671 else
2672 mkdir_p='$(install_sh) -d'
2673 fi
2674fi
2675
2676for ac_prog in gawk mawk nawk awk
2677do
2678 # Extract the first word of "$ac_prog", so it can be a program name with args.
2679set dummy $ac_prog; ac_word=$2
2680echo "$as_me:$LINENO: checking for $ac_word" >&5
2681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2682if test "${ac_cv_prog_AWK+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2684else
2685 if test -n "$AWK"; then
2686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695 ac_cv_prog_AWK="$ac_prog"
2696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2698 fi
2699done
2700done
2701
2702fi
2703fi
2704AWK=$ac_cv_prog_AWK
2705if test -n "$AWK"; then
2706 echo "$as_me:$LINENO: result: $AWK" >&5
2707echo "${ECHO_T}$AWK" >&6
2708else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711fi
2712
2713 test -n "$AWK" && break
2714done
2715
5464f5a1
NN
2716echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2717echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2718set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721else
2722 cat >conftest.make <<\_ACEOF
252b5132 2723all:
5464f5a1
NN
2724 @echo 'ac_maketemp="$(MAKE)"'
2725_ACEOF
252b5132 2726# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2727eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2728if test -n "$ac_maketemp"; then
2729 eval ac_cv_prog_make_${ac_make}_set=yes
2730else
2731 eval ac_cv_prog_make_${ac_make}_set=no
2732fi
5464f5a1 2733rm -f conftest.make
252b5132
RH
2734fi
2735if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2736 echo "$as_me:$LINENO: result: yes" >&5
2737echo "${ECHO_T}yes" >&6
252b5132
RH
2738 SET_MAKE=
2739else
5464f5a1
NN
2740 echo "$as_me:$LINENO: result: no" >&5
2741echo "${ECHO_T}no" >&6
252b5132
RH
2742 SET_MAKE="MAKE=${MAKE-make}"
2743fi
2744
f5385ebf
AM
2745rm -rf .tst 2>/dev/null
2746mkdir .tst 2>/dev/null
2747if test -d .tst; then
2748 am__leading_dot=.
2749else
2750 am__leading_dot=_
2751fi
2752rmdir .tst 2>/dev/null
2753
2754DEPDIR="${am__leading_dot}deps"
2755
2756 ac_config_commands="$ac_config_commands depfiles"
2757
2758
2759am_make=${MAKE-make}
2760cat > confinc << 'END'
2761am__doit:
2762 @echo done
2763.PHONY: am__doit
2764END
2765# If we don't find an include directive, just comment out the code.
2766echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2768am__include="#"
2769am__quote=
2770_am_result=none
2771# First try GNU make style include.
2772echo "include confinc" > confmf
2773# We grep out `Entering directory' and `Leaving directory'
2774# messages which can occur if `w' ends up in MAKEFLAGS.
2775# In particular we don't look at `^make:' because GNU make might
2776# be invoked under some other name (usually "gmake"), in which
2777# case it prints its new name instead of `make'.
2778if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2779 am__include=include
2780 am__quote=
2781 _am_result=GNU
2782fi
2783# Now try BSD make style include.
2784if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2788 am__quote="\""
2789 _am_result=BSD
2790 fi
2791fi
2792
2793
2794echo "$as_me:$LINENO: result: $_am_result" >&5
2795echo "${ECHO_T}$_am_result" >&6
2796rm -f confinc confmf
2797
2798# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2801
2802fi;
2803if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2805 AMDEPBACKSLASH='\'
2806fi
2807
2808
2809if test "x$enable_dependency_tracking" != xno; then
2810 AMDEP_TRUE=
2811 AMDEP_FALSE='#'
2812else
2813 AMDEP_TRUE='#'
2814 AMDEP_FALSE=
2815fi
6be7c12c 2816
252b5132 2817
252b5132 2818
f5385ebf
AM
2819# test to see if srcdir already configured
2820if test "`cd $srcdir && pwd`" != "`pwd`" &&
2821 test -f $srcdir/config.status; then
5464f5a1
NN
2822 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2823echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2824 { (exit 1); exit 1; }; }
252b5132 2825fi
5464f5a1 2826
f5385ebf
AM
2827# test whether we have cygpath
2828if test -z "$CYGPATH_W"; then
2829 if (cygpath --version) >/dev/null 2>/dev/null; then
2830 CYGPATH_W='cygpath -w'
2831 else
2832 CYGPATH_W=echo
2833 fi
2834fi
2835
2836
2837# Define the identity of the package.
2838 PACKAGE=bfd
ffdc4eed 2839 VERSION=2.17.50
f5385ebf
AM
2840
2841
5464f5a1 2842cat >>confdefs.h <<_ACEOF
252b5132 2843#define PACKAGE "$PACKAGE"
5464f5a1 2844_ACEOF
252b5132 2845
5464f5a1
NN
2846
2847cat >>confdefs.h <<_ACEOF
252b5132 2848#define VERSION "$VERSION"
5464f5a1 2849_ACEOF
252b5132 2850
f5385ebf
AM
2851# Some tools Automake needs.
2852
2853ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2854
2855
2856AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2857
2858
2859AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2860
2861
2862AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2863
2864
2865MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2866
f5385ebf 2867install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2868
f5385ebf
AM
2869# Installed binaries are usually stripped using `strip' when the user
2870# run `make install-strip'. However `strip' might not be the right
2871# tool to use in cross-compilation environments, therefore Automake
2872# will honor the `STRIP' environment variable to overrule this program.
2873if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876set dummy ${ac_tool_prefix}strip; ac_word=$2
2877echo "$as_me:$LINENO: checking for $ac_word" >&5
2878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879if test "${ac_cv_prog_STRIP+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2881else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2884else
f5385ebf
AM
2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896done
2897done
2898
2899fi
2900fi
2901STRIP=$ac_cv_prog_STRIP
2902if test -n "$STRIP"; then
2903 echo "$as_me:$LINENO: result: $STRIP" >&5
2904echo "${ECHO_T}$STRIP" >&6
2905else
2906 echo "$as_me:$LINENO: result: no" >&5
2907echo "${ECHO_T}no" >&6
2908fi
2909
252b5132 2910fi
f5385ebf
AM
2911if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914set dummy strip; ac_word=$2
2915echo "$as_me:$LINENO: checking for $ac_word" >&5
2916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2917if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2919else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934done
2935done
252b5132 2936
f5385ebf
AM
2937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2938fi
2939fi
2940ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941if test -n "$ac_ct_STRIP"; then
2942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2943echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2944else
f5385ebf
AM
2945 echo "$as_me:$LINENO: result: no" >&5
2946echo "${ECHO_T}no" >&6
252b5132
RH
2947fi
2948
f5385ebf 2949 STRIP=$ac_ct_STRIP
252b5132 2950else
f5385ebf
AM
2951 STRIP="$ac_cv_prog_STRIP"
2952fi
2953
252b5132 2954fi
f5385ebf
AM
2955INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2956
2957# We need awk for the "check" target. The system "awk" is bad on
2958# some platforms.
2959# Always define AMTAR for backward compatibility.
2960
2961AMTAR=${AMTAR-"${am_missing_run}tar"}
2962
2963am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2964
252b5132 2965
f5385ebf
AM
2966
2967
2968depcc="$CC" am_compiler_list=
2969
2970echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2971echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2972if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2974else
f5385ebf
AM
2975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2976 # We make a subdir and do the tests there. Otherwise we can end up
2977 # making bogus files that we don't know about and never remove. For
2978 # instance it was reported that on HP-UX the gcc test will end up
2979 # making a dummy file named `D' -- because `-MD' means `put the output
2980 # in D'.
2981 mkdir conftest.dir
2982 # Copy depcomp to subdir because otherwise we won't find it if we're
2983 # using a relative directory.
2984 cp "$am_depcomp" conftest.dir
2985 cd conftest.dir
2986 # We will build objects and dependencies in a subdirectory because
2987 # it helps to detect inapplicable dependency modes. For instance
2988 # both Tru64's cc and ICC support -MD to output dependencies as a
2989 # side effect of compilation, but ICC will put the dependencies in
2990 # the current directory while Tru64 will put them in the object
2991 # directory.
2992 mkdir sub
2993
2994 am_cv_CC_dependencies_compiler_type=none
2995 if test "$am_compiler_list" = ""; then
2996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2997 fi
2998 for depmode in $am_compiler_list; do
2999 # Setup a source with many dependencies, because some compilers
3000 # like to wrap large dependency lists on column 80 (with \), and
3001 # we should not choose a depcomp mode which is confused by this.
3002 #
3003 # We need to recreate these files for each test, as the compiler may
3004 # overwrite some of them when testing with obscure command lines.
3005 # This happens at least with the AIX C compiler.
3006 : > sub/conftest.c
3007 for i in 1 2 3 4 5 6; do
3008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3010 # Solaris 8's {/usr,}/bin/sh.
3011 touch sub/conftst$i.h
3012 done
3013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3014
3015 case $depmode in
3016 nosideeffect)
3017 # after this tag, mechanisms are not by side-effect, so they'll
3018 # only be used when explicitly requested
3019 if test "x$enable_dependency_tracking" = xyes; then
3020 continue
3021 else
3022 break
3023 fi
3024 ;;
3025 none) break ;;
3026 esac
3027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3028 # mode. It turns out that the SunPro C++ compiler does not properly
3029 # handle `-M -o', and we need to detect this.
3030 if depmode=$depmode \
3031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3034 >/dev/null 2>conftest.err &&
3035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3038 # icc doesn't choke on unknown options, it will just issue warnings
3039 # or remarks (even with -Werror). So we grep stderr for any message
3040 # that says an option was ignored or not supported.
3041 # When given -MP, icc 7.0 and 7.1 complain thusly:
3042 # icc: Command line warning: ignoring option '-M'; no argument required
3043 # The diagnosis changed in icc 8.0:
3044 # icc: Command line remark: option '-MP' not supported
3045 if (grep 'ignoring option' conftest.err ||
3046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3047 am_cv_CC_dependencies_compiler_type=$depmode
3048 break
3049 fi
3050 fi
3051 done
3052
3053 cd ..
3054 rm -rf conftest.dir
3055else
3056 am_cv_CC_dependencies_compiler_type=none
3057fi
3058
252b5132 3059fi
f5385ebf
AM
3060echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3061echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3062CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3063
f5385ebf
AM
3064
3065
3066if
3067 test "x$enable_dependency_tracking" != xno \
3068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3069 am__fastdepCC_TRUE=
3070 am__fastdepCC_FALSE='#'
252b5132 3071else
f5385ebf
AM
3072 am__fastdepCC_TRUE='#'
3073 am__fastdepCC_FALSE=
252b5132
RH
3074fi
3075
6be7c12c 3076
e43d48cc 3077
f5385ebf 3078
5464f5a1
NN
3079if test -n "$ac_tool_prefix"; then
3080 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3081set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_AR+set}" = set; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3086else
3087 if test -n "$AR"; then
3088 ac_cv_prog_AR="$AR" # Let the user override the test.
3089else
5464f5a1
NN
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101done
3102done
3103
252b5132
RH
3104fi
3105fi
5464f5a1 3106AR=$ac_cv_prog_AR
252b5132 3107if test -n "$AR"; then
5464f5a1
NN
3108 echo "$as_me:$LINENO: result: $AR" >&5
3109echo "${ECHO_T}$AR" >&6
252b5132 3110else
5464f5a1
NN
3111 echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
252b5132 3115fi
5464f5a1
NN
3116if test -z "$ac_cv_prog_AR"; then
3117 ac_ct_AR=$AR
3118 # Extract the first word of "ar", so it can be a program name with args.
3119set dummy ar; ac_word=$2
3120echo "$as_me:$LINENO: checking for $ac_word" >&5
3121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3122if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125 if test -n "$ac_ct_AR"; then
3126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3127else
3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129for as_dir in $PATH
3130do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 ac_cv_prog_ac_ct_AR="ar"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139done
3140done
252b5132 3141
5464f5a1
NN
3142fi
3143fi
3144ac_ct_AR=$ac_cv_prog_ac_ct_AR
3145if test -n "$ac_ct_AR"; then
3146 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3147echo "${ECHO_T}$ac_ct_AR" >&6
3148else
3149 echo "$as_me:$LINENO: result: no" >&5
3150echo "${ECHO_T}no" >&6
3151fi
252b5132 3152
5464f5a1
NN
3153 AR=$ac_ct_AR
3154else
3155 AR="$ac_cv_prog_AR"
3156fi
6be7c12c 3157
5464f5a1
NN
3158if test -n "$ac_tool_prefix"; then
3159 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3160set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_RANLIB+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3165else
3166 if test -n "$RANLIB"; then
3167 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3168else
5464f5a1
NN
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181done
3182
252b5132
RH
3183fi
3184fi
5464f5a1 3185RANLIB=$ac_cv_prog_RANLIB
252b5132 3186if test -n "$RANLIB"; then
5464f5a1
NN
3187 echo "$as_me:$LINENO: result: $RANLIB" >&5
3188echo "${ECHO_T}$RANLIB" >&6
252b5132 3189else
5464f5a1
NN
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
252b5132
RH
3192fi
3193
5464f5a1 3194fi
252b5132 3195if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3196 ac_ct_RANLIB=$RANLIB
252b5132
RH
3197 # Extract the first word of "ranlib", so it can be a program name with args.
3198set dummy ranlib; ac_word=$2
5464f5a1
NN
3199echo "$as_me:$LINENO: checking for $ac_word" >&5
3200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3203else
5464f5a1
NN
3204 if test -n "$ac_ct_RANLIB"; then
3205 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3206else
5464f5a1
NN
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_RANLIB="ranlib"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218done
3219done
3220
3221 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3222fi
3223fi
5464f5a1
NN
3224ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3225if test -n "$ac_ct_RANLIB"; then
3226 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3227echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3228else
5464f5a1
NN
3229 echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
252b5132
RH
3231fi
3232
5464f5a1 3233 RANLIB=$ac_ct_RANLIB
252b5132 3234else
5464f5a1 3235 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3236fi
3237
252b5132
RH
3238
3239# Check whether --enable-shared or --disable-shared was given.
3240if test "${enable_shared+set}" = set; then
3241 enableval="$enable_shared"
3242 p=${PACKAGE-default}
55c80943 3243case $enableval in
252b5132
RH
3244yes) enable_shared=yes ;;
3245no) enable_shared=no ;;
3246*)
3247 enable_shared=no
3248 # Look at the argument we got. We use all the common list separators.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3250 for pkg in $enableval; do
3251 if test "X$pkg" = "X$p"; then
3252 enable_shared=yes
3253 fi
3254 done
3255 IFS="$ac_save_ifs"
3256 ;;
3257esac
3258else
3259 enable_shared=no
5464f5a1 3260fi;
252b5132
RH
3261
3262# Check whether --enable-static or --disable-static was given.
3263if test "${enable_static+set}" = set; then
3264 enableval="$enable_static"
3265 p=${PACKAGE-default}
55c80943 3266case $enableval in
252b5132
RH
3267yes) enable_static=yes ;;
3268no) enable_static=no ;;
3269*)
3270 enable_static=no
3271 # Look at the argument we got. We use all the common list separators.
3272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3273 for pkg in $enableval; do
3274 if test "X$pkg" = "X$p"; then
3275 enable_static=yes
3276 fi
3277 done
3278 IFS="$ac_save_ifs"
3279 ;;
3280esac
3281else
3282 enable_static=yes
5464f5a1 3283fi;
b2ef150d
ILT
3284# Check whether --enable-fast-install or --disable-fast-install was given.
3285if test "${enable_fast_install+set}" = set; then
3286 enableval="$enable_fast_install"
3287 p=${PACKAGE-default}
55c80943 3288case $enableval in
b2ef150d
ILT
3289yes) enable_fast_install=yes ;;
3290no) enable_fast_install=no ;;
3291*)
3292 enable_fast_install=no
3293 # Look at the argument we got. We use all the common list separators.
3294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3295 for pkg in $enableval; do
3296 if test "X$pkg" = "X$p"; then
3297 enable_fast_install=yes
3298 fi
3299 done
3300 IFS="$ac_save_ifs"
3301 ;;
3302esac
3303else
3304 enable_fast_install=yes
5464f5a1 3305fi;
c5d1701e 3306
252b5132
RH
3307# Check whether --with-gnu-ld or --without-gnu-ld was given.
3308if test "${with_gnu_ld+set}" = set; then
3309 withval="$with_gnu_ld"
3310 test "$withval" = no || with_gnu_ld=yes
3311else
3312 with_gnu_ld=no
5464f5a1 3313fi;
252b5132 3314ac_prog=ld
55c80943 3315if test "$GCC" = yes; then
252b5132 3316 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3317 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3318echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3319 case $host in
3320 *-*-mingw*)
3321 # gcc leaves a trailing carriage return which upsets mingw
3322 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3323 *)
3324 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3325 esac
55c80943 3326 case $ac_prog in
b2ef150d 3327 # Accept absolute paths.
a74801ba 3328 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3329 re_direlt='/[^/][^/]*/\.\./'
3330 # Canonicalize the path of ld
3331 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3332 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3333 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3334 done
3335 test -z "$LD" && LD="$ac_prog"
3336 ;;
252b5132
RH
3337 "")
3338 # If it fails, then pretend we aren't using GCC.
3339 ac_prog=ld
3340 ;;
3341 *)
3342 # If it is relative, then search for the first ld in PATH.
3343 with_gnu_ld=unknown
3344 ;;
3345 esac
3346elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3347 echo "$as_me:$LINENO: checking for GNU ld" >&5
3348echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3349else
5464f5a1
NN
3350 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3351echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3352fi
5464f5a1
NN
3353if test "${lt_cv_path_LD+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3355else
3356 if test -z "$LD"; then
a74801ba 3357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3358 for ac_dir in $PATH; do
3359 test -z "$ac_dir" && ac_dir=.
a74801ba 3360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3361 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3362 # Check to see if the program is GNU ld. I'd rather use --version,
3363 # but apparently some GNU ld's only accept -v.
3364 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3365 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3366 test "$with_gnu_ld" != no && break
3367 else
b2ef150d 3368 test "$with_gnu_ld" != yes && break
252b5132
RH
3369 fi
3370 fi
3371 done
3372 IFS="$ac_save_ifs"
3373else
55c80943 3374 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3375fi
3376fi
3377
55c80943 3378LD="$lt_cv_path_LD"
252b5132 3379if test -n "$LD"; then
5464f5a1
NN
3380 echo "$as_me:$LINENO: result: $LD" >&5
3381echo "${ECHO_T}$LD" >&6
252b5132 3382else
5464f5a1
NN
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
252b5132 3385fi
5464f5a1
NN
3386test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3387echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3388 { (exit 1); exit 1; }; }
3389echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3390echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3391if test "${lt_cv_prog_gnu_ld+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3393else
3394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3395if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3396 lt_cv_prog_gnu_ld=yes
252b5132 3397else
55c80943 3398 lt_cv_prog_gnu_ld=no
252b5132
RH
3399fi
3400fi
5464f5a1
NN
3401echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3402echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3403with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3404
6be7c12c 3405
5464f5a1
NN
3406echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3407echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3408if test "${lt_cv_ld_reload_flag+set}" = set; then
3409 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3410else
3411 lt_cv_ld_reload_flag='-r'
3412fi
5464f5a1
NN
3413echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3414echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3415reload_flag=$lt_cv_ld_reload_flag
3416test -n "$reload_flag" && reload_flag=" $reload_flag"
3417
5464f5a1
NN
3418echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3419echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3420if test "${lt_cv_path_NM+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3422else
3423 if test -n "$NM"; then
3424 # Let the user override the test.
55c80943 3425 lt_cv_path_NM="$NM"
252b5132 3426else
a74801ba 3427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3429 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3432 # Check to see if the nm accepts a BSD-compat flag.
3433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3434 # nm: unknown option "B" ignored
90f2472a
AO
3435 # Tru64's nm complains that /dev/null is an invalid object file
3436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3437 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3438 break
ac48eca1 3439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3440 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3441 break
252b5132 3442 else
55c80943 3443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3444 continue # so that we can try to find one that supports BSD flags
252b5132 3445 fi
252b5132
RH
3446 fi
3447 done
3448 IFS="$ac_save_ifs"
55c80943 3449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3450fi
3451fi
3452
55c80943 3453NM="$lt_cv_path_NM"
5464f5a1
NN
3454echo "$as_me:$LINENO: result: $NM" >&5
3455echo "${ECHO_T}$NM" >&6
252b5132 3456
5464f5a1
NN
3457echo "$as_me:$LINENO: checking whether ln -s works" >&5
3458echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3459LN_S=$as_ln_s
3460if test "$LN_S" = "ln -s"; then
3461 echo "$as_me:$LINENO: result: yes" >&5
3462echo "${ECHO_T}yes" >&6
6be7c12c 3463else
5464f5a1
NN
3464 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3465echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3466fi
3467
5464f5a1
NN
3468echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3469echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3470if test "${lt_cv_deplibs_check_method+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3472else
d64552c5 3473 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3474lt_cv_file_magic_test_file=
3475lt_cv_deplibs_check_method='unknown'
3476# Need to set the preceding variable on all platforms that support
3477# interlibrary dependencies.
3478# 'none' -- dependencies not supported.
3479# `unknown' -- same as none, but documents that we really don't know.
3480# 'pass_all' -- all dependencies passed with no checks.
3481# 'test_compile' -- check by making test program.
3482# 'file_magic [regex]' -- check by looking for files in library path
3483# which responds to the $file_magic_cmd with a given egrep regex.
3484# If you have `file' or equivalent on your system and you're not sure
3485# whether `pass_all' will *always* work, you probably want this one.
3486
55c80943
NC
3487case $host_os in
3488aix*)
ac48eca1
AO
3489 lt_cv_deplibs_check_method=pass_all
3490 ;;
3491
3492beos*)
3493 lt_cv_deplibs_check_method=pass_all
3494 ;;
3495
3496bsdi4*)
55c80943
NC
3497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3498 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3499 lt_cv_file_magic_test_file=/shlib/libc.so
3500 ;;
3501
d64552c5 3502cygwin* | mingw* |pw32*)
ac48eca1 3503 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3504 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3505 ;;
3506
55c80943 3507darwin* | rhapsody*)
d70c5fc7 3508 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3509 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3510 lt_cv_file_magic_cmd='/usr/bin/file -L'
3511 case "$host_os" in
3512 rhapsody* | darwin1.012)
3513 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3514 ;;
3515 *) # Darwin 1.3 on
3516 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3517 ;;
3518 esac
d70c5fc7 3519 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3520 ;;
3521
5464f5a1 3522freebsd* | kfreebsd*-gnu)
ac48eca1 3523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3524 case $host_cpu in
ac48eca1 3525 i*86 )
90f2472a
AO
3526 # Not sure whether the presence of OpenBSD here was a mistake.
3527 # Let's accept both of them until this is cleared up.
55c80943
NC
3528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3529 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3531 ;;
3532 esac
3533 else
3534 lt_cv_deplibs_check_method=pass_all
3535 fi
3536 ;;
3537
3538gnu*)
3539 lt_cv_deplibs_check_method=pass_all
3540 ;;
3541
55c80943 3542hpux10.20*|hpux11*)
4867be41
DJ
3543 case $host_cpu in
3544 hppa*)
3545 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3546 lt_cv_file_magic_cmd=/usr/bin/file
3547 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3548 ;;
3549 ia64*)
3550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3551 lt_cv_file_magic_cmd=/usr/bin/file
3552 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3553 ;;
3554 esac
ac48eca1
AO
3555 ;;
3556
3557irix5* | irix6*)
55c80943 3558 case $host_os in
ac48eca1
AO
3559 irix5*)
3560 # this will be overridden with pass_all, but let us keep it just in case
3561 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3562 ;;
3563 *)
55c80943 3564 case $LD in
ac48eca1
AO
3565 *-32|*"-32 ") libmagic=32-bit;;
3566 *-n32|*"-n32 ") libmagic=N32;;
3567 *-64|*"-64 ") libmagic=64-bit;;
3568 *) libmagic=never-match;;
3569 esac
3570 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3571 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3572 ;;
ac48eca1
AO
3573 esac
3574 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3575 lt_cv_deplibs_check_method=pass_all
3576 ;;
3577
3578# This must be Linux ELF.
90f2472a 3579linux-gnu*)
d70c5fc7 3580 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3581 ;;
3582
5464f5a1 3583netbsd* | knetbsd*-gnu)
55c80943 3584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3585 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3586 else
b3baf5d0 3587 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3588 fi
55c80943
NC
3589 ;;
3590
3591newsos6)
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3593 lt_cv_file_magic_cmd=/usr/bin/file
3594 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3595 ;;
3596
3597osf3* | osf4* | osf5*)
3598 # this will be overridden with pass_all, but let us keep it just in case
3599 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3600 lt_cv_file_magic_test_file=/shlib/libc.so
3601 lt_cv_deplibs_check_method=pass_all
3602 ;;
3603
3604sco3.2v5*)
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608solaris*)
3609 lt_cv_deplibs_check_method=pass_all
3610 lt_cv_file_magic_test_file=/lib/libc.so
3611 ;;
3612
6be7c12c
AO
3613sysv5uw[78]* | sysv4*uw2*)
3614 lt_cv_deplibs_check_method=pass_all
3615 ;;
3616
ac48eca1 3617sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3618 case $host_vendor in
ac48eca1
AO
3619 ncr)
3620 lt_cv_deplibs_check_method=pass_all
3621 ;;
3622 motorola)
55c80943
NC
3623 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]'
3624 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3625 ;;
3626 esac
3627 ;;
3628esac
3629
3630fi
5464f5a1
NN
3631echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3632echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3633file_magic_cmd=$lt_cv_file_magic_cmd
3634deplibs_check_method=$lt_cv_deplibs_check_method
3635
6be7c12c
AO
3636
3637
6be7c12c
AO
3638
3639# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3640
d70c5fc7
NC
3641# find the maximum length of command line arguments
3642echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3643echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3644if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3646else
3647 i=0
3648 teststring="ABCD"
3649
3650 case $build_os in
3651 msdosdjgpp*)
3652 # On DJGPP, this test can blow up pretty badly due to problems in libc
3653 # (any single argument exceeding 2000 bytes causes a buffer overrun
3654 # during glob expansion). Even if it were fixed, the result of this
3655 # check would be larger than it should be.
3656 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3657 ;;
3658
3659 cygwin* | mingw*)
3660 # On Win9x/ME, this test blows up -- it succeeds, but takes
3661 # about 5 minutes as the teststring grows exponentially.
3662 # Worse, since 9x/ME are not pre-emptively multitasking,
3663 # you end up with a "frozen" computer, even though with patience
3664 # the test eventually succeeds (with a max line length of 256k).
3665 # Instead, let's just punt: use the minimum linelength reported by
3666 # all of the supported platforms: 8192 (on NT/2K/XP).
3667 lt_cv_sys_max_cmd_len=8192;
3668 ;;
3669
3670 amigaos*)
3671 # On AmigaOS with pdksh, this test takes hours, literally.
3672 # So we just punt and use a minimum line length of 8192.
3673 lt_cv_sys_max_cmd_len=8192;
3674 ;;
3675
3676 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3677 # This has been around since 386BSD, at least. Likely further.
3678 if test -x /sbin/sysctl; then
3679 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3680 elif test -x /usr/sbin/sysctl; then
3681 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3682 else
3683 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3684 fi
3685 # And add a safety zone
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3688 ;;
3689 esac
3690
3691fi
3692
3693if test -n "$lt_cv_sys_max_cmd_len" ; then
3694 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3695echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3696else
3697 echo "$as_me:$LINENO: result: none" >&5
3698echo "${ECHO_T}none" >&6
3699fi
3700
3701
6be7c12c
AO
3702# Only perform the check for file, if the check method requires it
3703case $deplibs_check_method in
3704file_magic*)
3705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3706 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3707echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3710else
3711 case $MAGIC_CMD in
3712 /*)
3713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3714 ;;
3715 ?:/*)
3716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3717 ;;
3718 *)
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/${ac_tool_prefix}file; then
d64552c5 3725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}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
d64552c5 3768if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3769 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3770 echo "$as_me:$LINENO: checking for file" >&5
3771echo $ECHO_N "checking for file... $ECHO_C" >&6
3772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3774else
55c80943 3775 case $MAGIC_CMD in
ac48eca1 3776 /*)
d64552c5 3777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3778 ;;
3779 ?:/*)
d64552c5 3780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3781 ;;
3782 *)
d64552c5 3783 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3785 ac_dummy="/usr/bin:$PATH"
3786 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 if test -f $ac_dir/file; then
d64552c5 3789 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3790 if test -n "$file_magic_test_file"; then
55c80943 3791 case $deplibs_check_method in
ac48eca1
AO
3792 "file_magic "*)
3793 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3796 egrep "$file_magic_regex" > /dev/null; then
3797 :
3798 else
3799 cat <<EOF 1>&2
3800
3801*** Warning: the command libtool uses to detect shared libraries,
3802*** $file_magic_cmd, produces output that libtool cannot recognize.
3803*** The result is that libtool may fail to recognize shared libraries
3804*** as such. This will affect the creation of libtool libraries that
3805*** depend on shared libraries, but programs linked with such libtool
3806*** libraries will work regardless of this problem. Nevertheless, you
3807*** may want to report the problem to your system manager and/or to
3808*** bug-libtool@gnu.org
3809
3810EOF
3811 fi ;;
3812 esac
3813 fi
3814 break
3815 fi
3816 done
3817 IFS="$ac_save_ifs"
d64552c5 3818 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3819 ;;
3820esac
3821fi
3822
d64552c5
AO
3823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3824if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3826echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3827else
5464f5a1
NN
3828 echo "$as_me:$LINENO: result: no" >&5
3829echo "${ECHO_T}no" >&6
ac48eca1
AO
3830fi
3831
3832 else
d64552c5 3833 MAGIC_CMD=:
ac48eca1
AO
3834 fi
3835fi
3836
3837 fi
3838 ;;
3839esac
3840
5464f5a1
NN
3841if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3843set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3848else
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851else
5464f5a1
NN
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864done
3865
ac48eca1
AO
3866fi
3867fi
5464f5a1 3868RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3869if test -n "$RANLIB"; then
5464f5a1
NN
3870 echo "$as_me:$LINENO: result: $RANLIB" >&5
3871echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3872else
5464f5a1
NN
3873 echo "$as_me:$LINENO: result: no" >&5
3874echo "${ECHO_T}no" >&6
ac48eca1
AO
3875fi
3876
5464f5a1 3877fi
ac48eca1 3878if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3879 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3880 # Extract the first word of "ranlib", so it can be a program name with args.
3881set dummy ranlib; ac_word=$2
5464f5a1
NN
3882echo "$as_me:$LINENO: checking for $ac_word" >&5
3883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3884if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3886else
5464f5a1
NN
3887 if test -n "$ac_ct_RANLIB"; then
3888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3889else
5464f5a1
NN
3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_ac_ct_RANLIB="ranlib"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902done
3903
3904 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3905fi
3906fi
5464f5a1
NN
3907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3908if test -n "$ac_ct_RANLIB"; then
3909 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3910echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3911else
5464f5a1
NN
3912 echo "$as_me:$LINENO: result: no" >&5
3913echo "${ECHO_T}no" >&6
ac48eca1
AO
3914fi
3915
5464f5a1 3916 RANLIB=$ac_ct_RANLIB
ac48eca1 3917else
5464f5a1 3918 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3919fi
3920
5464f5a1
NN
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3923set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3924echo "$as_me:$LINENO: checking for $ac_word" >&5
3925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926if test "${ac_cv_prog_STRIP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3928else
3929 if test -n "$STRIP"; then
3930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3931else
5464f5a1
NN
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944done
3945
ac48eca1
AO
3946fi
3947fi
5464f5a1 3948STRIP=$ac_cv_prog_STRIP
ac48eca1 3949if test -n "$STRIP"; then
5464f5a1
NN
3950 echo "$as_me:$LINENO: result: $STRIP" >&5
3951echo "${ECHO_T}$STRIP" >&6
ac48eca1 3952else
5464f5a1
NN
3953 echo "$as_me:$LINENO: result: no" >&5
3954echo "${ECHO_T}no" >&6
ac48eca1
AO
3955fi
3956
5464f5a1 3957fi
ac48eca1 3958if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3959 ac_ct_STRIP=$STRIP
ac48eca1
AO
3960 # Extract the first word of "strip", so it can be a program name with args.
3961set dummy strip; ac_word=$2
5464f5a1
NN
3962echo "$as_me:$LINENO: checking for $ac_word" >&5
3963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3966else
5464f5a1
NN
3967 if test -n "$ac_ct_STRIP"; then
3968 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3969else
5464f5a1
NN
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977 ac_cv_prog_ac_ct_STRIP="strip"
3978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3980 fi
3981done
3982done
3983
3984 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3985fi
3986fi
5464f5a1
NN
3987ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3988if test -n "$ac_ct_STRIP"; then
3989 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3990echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3991else
5464f5a1
NN
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
ac48eca1
AO
3994fi
3995
5464f5a1 3996 STRIP=$ac_ct_STRIP
ac48eca1 3997else
5464f5a1 3998 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3999fi
252b5132 4000
6be7c12c 4001
252b5132 4002# Check for any special flags to pass to ltconfig.
b2ef150d 4003libtool_flags="--cache-file=$cache_file"
252b5132
RH
4004test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4005test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4006test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4007test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4008test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4009
6be7c12c 4010
a74801ba
ILT
4011# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4012if test "${enable_libtool_lock+set}" = set; then
4013 enableval="$enable_libtool_lock"
a74801ba 4014
5464f5a1 4015fi;
a74801ba
ILT
4016test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4017test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4018
5464f5a1 4019
ac48eca1
AO
4020# Check whether --with-pic or --without-pic was given.
4021if test "${with_pic+set}" = set; then
4022 withval="$with_pic"
4023 pic_mode="$withval"
4024else
5464f5a1
NN
4025 pic_mode=default
4026fi;
ac48eca1
AO
4027test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4028test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4029
252b5132
RH
4030# Some flags need to be propagated to the compiler or linker for good
4031# libtool support.
55c80943 4032case $host in
252b5132
RH
4033*-*-irix6*)
4034 # Find out which ABI we are using.
92f01d61 4035 echo '#line 4035 "configure"' > conftest.$ac_ext
5464f5a1
NN
4036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>&5
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; then
6a457e5c
NC
4041 if test "$lt_cv_prog_gnu_ld" = yes; then
4042 case `/usr/bin/file conftest.$ac_objext` in
4043 *32-bit*)
4044 LD="${LD-ld} -melf32bsmip"
4045 ;;
4046 *N32*)
4047 LD="${LD-ld} -melf32bmipn32"
4048 ;;
4049 *64-bit*)
4050 LD="${LD-ld} -melf64bmip"
4051 ;;
4052 esac
4053 else
55c80943 4054 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4055 *32-bit*)
4056 LD="${LD-ld} -32"
4057 ;;
4058 *N32*)
4059 LD="${LD-ld} -n32"
4060 ;;
4061 *64-bit*)
4062 LD="${LD-ld} -64"
4063 ;;
4064 esac
6a457e5c 4065 fi
252b5132
RH
4066 fi
4067 rm -rf conftest*
4068 ;;
4069
4867be41
DJ
4070ia64-*-hpux*)
4071 # Find out which ABI we are using.
4072 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4074 (eval $ac_compile) 2>&5
4075 ac_status=$?
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); }; then
4867be41
DJ
4078 case "`/usr/bin/file conftest.o`" in
4079 *ELF-32*)
4080 HPUX_IA64_MODE="32"
4081 ;;
4082 *ELF-64*)
4083 HPUX_IA64_MODE="64"
4084 ;;
4085 esac
4086 fi
4087 rm -rf conftest*
4088 ;;
4089
65fe5dd6 4090x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
4091 # Find out which ABI we are using.
4092 echo 'int i;' > conftest.$ac_ext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094 (eval $ac_compile) 2>&5
4095 ac_status=$?
4096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097 (exit $ac_status); }; then
4098 case "`/usr/bin/file conftest.o`" in
4099 *32-bit*)
4100 case $host in
65fe5dd6 4101 x86_64-*linux*)
d70c5fc7
NC
4102 LD="${LD-ld} -m elf_i386"
4103 ;;
4104 ppc64-*linux*|powerpc64-*linux*)
4105 LD="${LD-ld} -m elf32ppclinux"
4106 ;;
4107 s390x-*linux*)
4108 LD="${LD-ld} -m elf_s390"
4109 ;;
4110 sparc64-*linux*)
4111 LD="${LD-ld} -m elf32_sparc"
4112 ;;
4113 esac
4114 ;;
4115 *64-bit*)
4116 case $host in
65fe5dd6 4117 x86_64-*linux*)
d70c5fc7
NC
4118 LD="${LD-ld} -m elf_x86_64"
4119 ;;
4120 ppc*-*linux*|powerpc*-*linux*)
4121 LD="${LD-ld} -m elf64ppc"
4122 ;;
4123 s390*-*linux*)
4124 LD="${LD-ld} -m elf64_s390"
4125 ;;
4126 sparc*-*linux*)
4127 LD="${LD-ld} -m elf64_sparc"
4128 ;;
4129 esac
4130 ;;
4131 esac
4132 fi
4133 rm -rf conftest*
4134 ;;
4135
252b5132
RH
4136*-*-sco3.2v5*)
4137 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4138 SAVE_CFLAGS="$CFLAGS"
252b5132 4139 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4140 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4141echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4142if test "${lt_cv_cc_needs_belf+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4144else
5464f5a1
NN
4145
4146
ac48eca1 4147 ac_ext=c
ac48eca1 4148ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4152
5464f5a1
NN
4153 cat >conftest.$ac_ext <<_ACEOF
4154/* confdefs.h. */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h. */
b2ef150d 4159
5464f5a1
NN
4160int
4161main ()
4162{
b2ef150d 4163
5464f5a1
NN
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168rm -f conftest.$ac_objext conftest$ac_exeext
4169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4170 (eval $ac_link) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
49c96104
SE
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
5464f5a1
NN
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
b2ef150d
ILT
4190 lt_cv_cc_needs_belf=yes
4191else
5464f5a1
NN
4192 echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195lt_cv_cc_needs_belf=no
b2ef150d 4196fi
5464f5a1
NN
4197rm -f conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4199 ac_ext=c
ac48eca1 4200ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4204
b2ef150d 4205fi
5464f5a1
NN
4206echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4207echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4208 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4210 CFLAGS="$SAVE_CFLAGS"
4211 fi
252b5132
RH
4212 ;;
4213
6be7c12c 4214
252b5132
RH
4215esac
4216
6be7c12c 4217
b2ef150d 4218# Save cache, so that ltconfig can load it
5464f5a1 4219cat >confcache <<\_ACEOF
b2ef150d
ILT
4220# This file is a shell script that caches the results of configure
4221# tests run on this system so they can be shared between configure
5464f5a1
NN
4222# scripts and configure runs, see configure's option --config-cache.
4223# It is not useful on other systems. If it contains results you don't
4224# want to keep, you may remove or edit it.
b2ef150d 4225#
5464f5a1
NN
4226# config.status only pays attention to the cache file if you give it
4227# the --recheck option to rerun configure.
b2ef150d 4228#
5464f5a1
NN
4229# `ac_cv_env_foo' variables (set or unset) will be overridden when
4230# loading this file, other *unset* `ac_cv_foo' will be assigned the
4231# following values.
4232
4233_ACEOF
4234
b2ef150d
ILT
4235# The following way of writing the cache mishandles newlines in values,
4236# but we know of no workaround that is simple, portable, and efficient.
4237# So, don't put newlines in cache variables' values.
4238# Ultrix sh set writes to stderr and can't be redirected directly,
4239# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4240{
4241 (set) 2>&1 |
4242 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4243 *ac_space=\ *)
4244 # `set' does not quote correctly, so add quotes (double-quote
4245 # substitution turns \\\\ into \\, and sed turns \\ into \).
4246 sed -n \
4247 "s/'/'\\\\''/g;
4248 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4249 ;;
4250 *)
4251 # `set' quotes correctly as required by POSIX, so do not add quotes.
4252 sed -n \
4253 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4254 ;;
4255 esac;
4256} |
4257 sed '
4258 t clear
4259 : clear
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4261 t end
4262 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4263 : end' >>confcache
4264if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4265 if test -w $cache_file; then
5464f5a1
NN
4266 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4267 cat confcache >$cache_file
b2ef150d
ILT
4268 else
4269 echo "not updating unwritable cache $cache_file"
4270 fi
4271fi
4272rm -f confcache
4273
252b5132 4274# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4275AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4276MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4277LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4278AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4279objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4280deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4281${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4282$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4283|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4284echo "$as_me: error: libtool configure failed" >&2;}
4285 { (exit 1); exit 1; }; }
252b5132 4286
b2ef150d
ILT
4287# Reload cache, that may have been modified by ltconfig
4288if test -r "$cache_file"; then
5464f5a1
NN
4289 # Some versions of bash will fail to source /dev/null (special
4290 # files actually), so we avoid doing that.
4291 if test -f "$cache_file"; then
4292 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4293echo "$as_me: loading cache $cache_file" >&6;}
4294 case $cache_file in
4295 [\\/]* | ?:[\\/]* ) . $cache_file;;
4296 *) . ./$cache_file;;
4297 esac
4298 fi
b2ef150d 4299else
5464f5a1
NN
4300 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4301echo "$as_me: creating cache $cache_file" >&6;}
4302 >$cache_file
b2ef150d
ILT
4303fi
4304
6be7c12c 4305
b2ef150d 4306# This can be used to rebuild libtool when needed
ac48eca1 4307LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4308
4309# Always use our own libtool.
4310LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4311
252b5132
RH
4312# Redirect the config.log output again, so that the ltconfig log is not
4313# clobbered by the next message.
4314exec 5>>./config.log
4315
6be7c12c 4316
5464f5a1
NN
4317
4318
4319
4320
6be7c12c 4321
252b5132
RH
4322# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4323if test "${enable_64_bit_bfd+set}" = set; then
4324 enableval="$enable_64_bit_bfd"
4325 case "${enableval}" in
4326 yes) want64=true ;;
4327 no) want64=false ;;
5464f5a1
NN
4328 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4329echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4330 { (exit 1); exit 1; }; } ;;
252b5132
RH
4331esac
4332else
4333 want64=false
5464f5a1 4334fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4335if test "${enable_targets+set}" = set; then
4336 enableval="$enable_targets"
4337 case "${enableval}" in
5464f5a1
NN
4338 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4339echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4340 { (exit 1); exit 1; }; }
252b5132
RH
4341 ;;
4342 no) enable_targets= ;;
4343 *) enable_targets=$enableval ;;
4344esac
5464f5a1 4345fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4346if test "${enable_commonbfdlib+set}" = set; then
4347 enableval="$enable_commonbfdlib"
4348 case "${enableval}" in
4349 yes) commonbfdlib=true ;;
4350 no) commonbfdlib=false ;;
5464f5a1
NN
4351 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4352echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4353 { (exit 1); exit 1; }; } ;;
252b5132 4354esac
5464f5a1 4355fi;
252b5132
RH
4356# Check whether --with-mmap or --without-mmap was given.
4357if test "${with_mmap+set}" = set; then
4358 withval="$with_mmap"
4359 case "${withval}" in
4360 yes) want_mmap=true ;;
4361 no) want_mmap=false ;;
5464f5a1
NN
4362 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4363echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4364 { (exit 1); exit 1; }; } ;;
252b5132
RH
4365esac
4366else
4367 want_mmap=false
5464f5a1 4368fi;
6ec7057a
RH
4369# Check whether --enable-secureplt or --disable-secureplt was given.
4370if test "${enable_secureplt+set}" = set; then
4371 enableval="$enable_secureplt"
4372 case "${enableval}" in
4373 yes) use_secureplt=true ;;
4374 no) use_secureplt=false ;;
4375 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4376echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4378esac
4379else
4380 use_secureplt=false
4381fi; if test $use_secureplt = true; then
4382
4383cat >>confdefs.h <<\_ACEOF
4384#define USE_SECUREPLT 1
4385_ACEOF
4386
4387fi
4388
92f01d61
JM
4389# Package version. For an official FSF release, it is empty.
4390
4391# Check whether --with-pkgversion or --without-pkgversion was given.
4392if test "${with_pkgversion+set}" = set; then
4393 withval="$with_pkgversion"
4394 case "$withval" in
4395 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4396echo "$as_me: error: package version not specified" >&2;}
4397 { (exit 1); exit 1; }; } ;;
4398 no) PKGVERSION= ;;
4399 *) PKGVERSION="($withval) " ;;
4400 esac
4401else
066c2a57 4402 PKGVERSION="(GNU Binutils) "
92f01d61
JM
4403
4404fi;
4405
4406
9e9b66a9 4407
49c96104 4408GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4409
569acd2c
NC
4410# Check whether --enable-werror or --disable-werror was given.
4411if test "${enable_werror+set}" = set; then
4412 enableval="$enable_werror"
1ad12f97
NC
4413 case "${enableval}" in
4414 yes | y) ERROR_ON_WARNING="yes" ;;
4415 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4416 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4417echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4418 { (exit 1); exit 1; }; } ;;
4419 esac
4420fi;
4421
9e9b66a9
AM
4422# Enable -Werror by default when using gcc
4423if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4424 ERROR_ON_WARNING=yes
4425fi
4426
4427NO_WERROR=
4428if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4429 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4430 NO_WERROR="-Wno-error"
1ad12f97
NC
4431fi
4432
49c96104
SE
4433if test "${GCC}" = yes ; then
4434 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4435fi
4436
a2d91340
AC
4437# Check whether --enable-build-warnings or --disable-build-warnings was given.
4438if test "${enable_build_warnings+set}" = set; then
4439 enableval="$enable_build_warnings"
4440 case "${enableval}" in
49c96104
SE
4441 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4442 no) if test "${GCC}" = yes ; then
4443 WARN_CFLAGS="-w"
4444 fi;;
a2d91340 4445 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4446 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4447 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4448 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4449 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4450esac
9e9b66a9
AM
4451fi;
4452
4453if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4454 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4455fi
4456
4457
9e9b66a9
AM
4458
4459
4460
5464f5a1 4461 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4462
252b5132
RH
4463
4464if test -z "$target" ; then
5464f5a1
NN
4465 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4466echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4467 { (exit 1); exit 1; }; }
252b5132 4468fi
252b5132 4469
5464f5a1
NN
4470echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4471echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4472 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4473if test "${enable_maintainer_mode+set}" = set; then
4474 enableval="$enable_maintainer_mode"
4475 USE_MAINTAINER_MODE=$enableval
4476else
4477 USE_MAINTAINER_MODE=no
5464f5a1
NN
4478fi;
4479 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4480echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4481
252b5132
RH
4482
4483if test $USE_MAINTAINER_MODE = yes; then
4484 MAINTAINER_MODE_TRUE=
4485 MAINTAINER_MODE_FALSE='#'
4486else
4487 MAINTAINER_MODE_TRUE='#'
4488 MAINTAINER_MODE_FALSE=
4489fi
f5385ebf 4490
252b5132 4491 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4492
5464f5a1 4493
d5fbea21
DJ
4494
4495
4496if false; then
4497 GENINSRC_NEVER_TRUE=
4498 GENINSRC_NEVER_FALSE='#'
4499else
4500 GENINSRC_NEVER_TRUE='#'
4501 GENINSRC_NEVER_FALSE=
4502fi
4503
24443139
AS
4504 case ${build_alias} in
4505 "") build_noncanonical=${build} ;;
4506 *) build_noncanonical=${build_alias} ;;
4507esac
4508
4509 case ${host_alias} in
4510 "") host_noncanonical=${build_noncanonical} ;;
4511 *) host_noncanonical=${host_alias} ;;
4512esac
4513
4514 case ${target_alias} in
4515 "") target_noncanonical=${host_noncanonical} ;;
4516 *) target_noncanonical=${target_alias} ;;
4517esac
4518
5464f5a1
NN
4519echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4520echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4521 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4522if test "${enable_install_libbfd+set}" = set; then
4523 enableval="$enable_install_libbfd"
4524 install_libbfd_p=$enableval
4525else
66e25bab 4526 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4527 install_libbfd_p=yes
4528 else
4529 install_libbfd_p=no
4530 fi
5464f5a1
NN
4531fi;
4532 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4533echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4534
a703a6ea
AM
4535
4536if test $install_libbfd_p = yes; then
4537 INSTALL_LIBBFD_TRUE=
4538 INSTALL_LIBBFD_FALSE='#'
4539else
4540 INSTALL_LIBBFD_TRUE='#'
4541 INSTALL_LIBBFD_FALSE=
4542fi
f5385ebf 4543
5464f5a1 4544 # Need _noncanonical variables for this.
24443139
AS
4545
4546
4547
4548
a703a6ea
AM
4549 # libbfd.a is a host library containing target dependent code
4550 bfdlibdir='$(libdir)'
4551 bfdincludedir='$(includedir)'
4552 if test "${host}" != "${target}"; then
5464f5a1
NN
4553 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4554 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4555 fi
a703a6ea
AM
4556
4557
252b5132
RH
4558
4559
5464f5a1
NN
4560
4561
4562host64=false
4563target64=false
4564bfd_default_target_size=32
4565
4566# host stuff:
4567
4568ac_ext=c
4569ac_cpp='$CPP $CPPFLAGS'
4570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4575set dummy ${ac_tool_prefix}gcc; ac_word=$2
4576echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578if test "${ac_cv_prog_CC+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4580else
5464f5a1
NN
4581 if test -n "$CC"; then
4582 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4583else
5464f5a1
NN
4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
6be7c12c 4594 fi
5464f5a1
NN
4595done
4596done
4597
252b5132 4598fi
b3baf5d0 4599fi
5464f5a1
NN
4600CC=$ac_cv_prog_CC
4601if test -n "$CC"; then
4602 echo "$as_me:$LINENO: result: $CC" >&5
4603echo "${ECHO_T}$CC" >&6
4604else
4605 echo "$as_me:$LINENO: result: no" >&5
4606echo "${ECHO_T}no" >&6
4607fi
252b5132 4608
5464f5a1
NN
4609fi
4610if test -z "$ac_cv_prog_CC"; then
4611 ac_ct_CC=$CC
4612 # Extract the first word of "gcc", so it can be a program name with args.
4613set dummy gcc; ac_word=$2
4614echo "$as_me:$LINENO: checking for $ac_word" >&5
4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619 if test -n "$ac_ct_CC"; then
4620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4629 ac_cv_prog_ac_ct_CC="gcc"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633done
4634done
252b5132 4635
5464f5a1
NN
4636fi
4637fi
4638ac_ct_CC=$ac_cv_prog_ac_ct_CC
4639if test -n "$ac_ct_CC"; then
4640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4641echo "${ECHO_T}$ac_ct_CC" >&6
4642else
4643 echo "$as_me:$LINENO: result: no" >&5
4644echo "${ECHO_T}no" >&6
4645fi
252b5132 4646
5464f5a1
NN
4647 CC=$ac_ct_CC
4648else
4649 CC="$ac_cv_prog_CC"
4650fi
252b5132 4651
5464f5a1
NN
4652if test -z "$CC"; then
4653 if test -n "$ac_tool_prefix"; then
4654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4655set dummy ${ac_tool_prefix}cc; ac_word=$2
4656echo "$as_me:$LINENO: checking for $ac_word" >&5
4657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4658if test "${ac_cv_prog_CC+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660else
4661 if test -n "$CC"; then
4662 ac_cv_prog_CC="$CC" # Let the user override the test.
4663else
4664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665for as_dir in $PATH
4666do
4667 IFS=$as_save_IFS
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4671 ac_cv_prog_CC="${ac_tool_prefix}cc"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 break 2
4674 fi
4675done
4676done
6be7c12c 4677
5464f5a1
NN
4678fi
4679fi
4680CC=$ac_cv_prog_CC
4681if test -n "$CC"; then
4682 echo "$as_me:$LINENO: result: $CC" >&5
4683echo "${ECHO_T}$CC" >&6
4684else
4685 echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
4687fi
4688
4689fi
4690if test -z "$ac_cv_prog_CC"; then
4691 ac_ct_CC=$CC
4692 # Extract the first word of "cc", so it can be a program name with args.
4693set dummy cc; ac_word=$2
4694echo "$as_me:$LINENO: checking for $ac_word" >&5
4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699 if test -n "$ac_ct_CC"; then
4700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709 ac_cv_prog_ac_ct_CC="cc"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4712 fi
4713done
4714done
4715
4716fi
4717fi
4718ac_ct_CC=$ac_cv_prog_ac_ct_CC
4719if test -n "$ac_ct_CC"; then
4720 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4721echo "${ECHO_T}$ac_ct_CC" >&6
4722else
4723 echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6
4725fi
4726
4727 CC=$ac_ct_CC
4728else
4729 CC="$ac_cv_prog_CC"
4730fi
4731
4732fi
4733if test -z "$CC"; then
4734 # Extract the first word of "cc", so it can be a program name with args.
4735set dummy cc; ac_word=$2
4736echo "$as_me:$LINENO: checking for $ac_word" >&5
4737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738if test "${ac_cv_prog_CC+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4740else
4741 if test -n "$CC"; then
4742 ac_cv_prog_CC="$CC" # Let the user override the test.
4743else
5464f5a1
NN
4744 ac_prog_rejected=no
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4753 ac_prog_rejected=yes
4754 continue
4755 fi
4756 ac_cv_prog_CC="cc"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763if test $ac_prog_rejected = yes; then
4764 # We found a bogon in the path, so make sure we never use it.
4765 set dummy $ac_cv_prog_CC
4766 shift
4767 if test $# != 0; then
4768 # We chose a different compiler from the bogus one.
4769 # However, it has the same basename, so the bogon will be chosen
4770 # first if we set CC to just the basename; use the full file name.
4771 shift
4772 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4773 fi
4774fi
4775fi
4776fi
4777CC=$ac_cv_prog_CC
4778if test -n "$CC"; then
4779 echo "$as_me:$LINENO: result: $CC" >&5
4780echo "${ECHO_T}$CC" >&6
4781else
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784fi
4785
4786fi
4787if test -z "$CC"; then
4788 if test -n "$ac_tool_prefix"; then
4789 for ac_prog in cl
4790 do
4791 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4792set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4793echo "$as_me:$LINENO: checking for $ac_word" >&5
4794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795if test "${ac_cv_prog_CC+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 if test -n "$CC"; then
4799 ac_cv_prog_CC="$CC" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812done
4813done
4814
4815fi
4816fi
4817CC=$ac_cv_prog_CC
4818if test -n "$CC"; then
4819 echo "$as_me:$LINENO: result: $CC" >&5
4820echo "${ECHO_T}$CC" >&6
4821else
4822 echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
4824fi
4825
4826 test -n "$CC" && break
6be7c12c 4827 done
252b5132 4828fi
5464f5a1
NN
4829if test -z "$CC"; then
4830 ac_ct_CC=$CC
4831 for ac_prog in cl
4832do
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834set dummy $ac_prog; ac_word=$2
4835echo "$as_me:$LINENO: checking for $ac_word" >&5
4836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840 if test -n "$ac_ct_CC"; then
4841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_ac_ct_CC="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4853 fi
4854done
4855done
4856
4857fi
4858fi
4859ac_ct_CC=$ac_cv_prog_ac_ct_CC
4860if test -n "$ac_ct_CC"; then
4861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4862echo "${ECHO_T}$ac_ct_CC" >&6
4863else
4864 echo "$as_me:$LINENO: result: no" >&5
4865echo "${ECHO_T}no" >&6
4866fi
4867
4868 test -n "$ac_ct_CC" && break
4869done
4870
4871 CC=$ac_ct_CC
4872fi
4873
4874fi
4875
4876
4877test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4878See \`config.log' for more details." >&5
4879echo "$as_me: error: no acceptable C compiler found in \$PATH
4880See \`config.log' for more details." >&2;}
4881 { (exit 1); exit 1; }; }
4882
4883# Provide some information about the compiler.
4884echo "$as_me:$LINENO:" \
4885 "checking for C compiler version" >&5
4886ac_compiler=`set X $ac_compile; echo $2`
4887{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4888 (eval $ac_compiler --version </dev/null >&5) 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }
4892{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4893 (eval $ac_compiler -v </dev/null >&5) 2>&5
4894 ac_status=$?
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); }
4897{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4898 (eval $ac_compiler -V </dev/null >&5) 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4902
4903echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4904echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4905if test "${ac_cv_c_compiler_gnu+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908 cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
4914
4915int
4916main ()
4917{
4918#ifndef __GNUC__
4919 choke me
4920#endif
4921
4922 ;
4923 return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928 (eval $ac_compile) 2>conftest.er1
4929 ac_status=$?
4930 grep -v '^ *+' conftest.er1 >conftest.err
4931 rm -f conftest.er1
4932 cat conftest.err >&5
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
49c96104
SE
4935 { ac_try='test -z "$ac_c_werror_flag"
4936 || test ! -s conftest.err'
5464f5a1
NN
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 (eval $ac_try) 2>&5
4939 ac_status=$?
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; } &&
4942 { ac_try='test -s conftest.$ac_objext'
4943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 (eval $ac_try) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); }; }; then
4948 ac_compiler_gnu=yes
4949else
4950 echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953ac_compiler_gnu=no
4954fi
4955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956ac_cv_c_compiler_gnu=$ac_compiler_gnu
4957
4958fi
4959echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4960echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4961GCC=`test $ac_compiler_gnu = yes && echo yes`
4962ac_test_CFLAGS=${CFLAGS+set}
4963ac_save_CFLAGS=$CFLAGS
4964CFLAGS="-g"
4965echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4966echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4967if test "${ac_cv_prog_cc_g+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970 cat >conftest.$ac_ext <<_ACEOF
4971/* confdefs.h. */
4972_ACEOF
4973cat confdefs.h >>conftest.$ac_ext
4974cat >>conftest.$ac_ext <<_ACEOF
4975/* end confdefs.h. */
4976
4977int
4978main ()
4979{
4980
4981 ;
4982 return 0;
4983}
4984_ACEOF
4985rm -f conftest.$ac_objext
4986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
49c96104
SE
4994 { ac_try='test -z "$ac_c_werror_flag"
4995 || test ! -s conftest.err'
5464f5a1
NN
4996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 (eval $ac_try) 2>&5
4998 ac_status=$?
4999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); }; } &&
5001 { ac_try='test -s conftest.$ac_objext'
5002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003 (eval $ac_try) 2>&5
5004 ac_status=$?
5005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006 (exit $ac_status); }; }; then
5007 ac_cv_prog_cc_g=yes
5008else
5009 echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012ac_cv_prog_cc_g=no
5013fi
5014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5015fi
5016echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5017echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5018if test "$ac_test_CFLAGS" = set; then
5019 CFLAGS=$ac_save_CFLAGS
5020elif test $ac_cv_prog_cc_g = yes; then
5021 if test "$GCC" = yes; then
5022 CFLAGS="-g -O2"
5023 else
5024 CFLAGS="-g"
5025 fi
5026else
5027 if test "$GCC" = yes; then
5028 CFLAGS="-O2"
5029 else
5030 CFLAGS=
5031 fi
5032fi
5033echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5034echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5035if test "${ac_cv_prog_cc_stdc+set}" = set; then
5036 echo $ECHO_N "(cached) $ECHO_C" >&6
5037else
5038 ac_cv_prog_cc_stdc=no
5039ac_save_CC=$CC
5040cat >conftest.$ac_ext <<_ACEOF
5041/* confdefs.h. */
5042_ACEOF
5043cat confdefs.h >>conftest.$ac_ext
5044cat >>conftest.$ac_ext <<_ACEOF
5045/* end confdefs.h. */
5046#include <stdarg.h>
5047#include <stdio.h>
5048#include <sys/types.h>
5049#include <sys/stat.h>
5050/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5051struct buf { int x; };
5052FILE * (*rcsopen) (struct buf *, struct stat *, int);
5053static char *e (p, i)
5054 char **p;
5055 int i;
5056{
5057 return p[i];
5058}
5059static char *f (char * (*g) (char **, int), char **p, ...)
5060{
5061 char *s;
5062 va_list v;
5063 va_start (v,p);
5064 s = g (p, va_arg (v,int));
5065 va_end (v);
5066 return s;
5067}
5068
5069/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5070 function prototypes and stuff, but not '\xHH' hex character constants.
5071 These don't provoke an error unfortunately, instead are silently treated
5072 as 'x'. The following induces an error, until -std1 is added to get
5073 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5074 array size at least. It's necessary to write '\x00'==0 to get something
5075 that's true only with -std1. */
5076int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5077
5078int test (int i, double x);
5079struct s1 {int (*f) (int a);};
5080struct s2 {int (*f) (double a);};
5081int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5082int argc;
5083char **argv;
5084int
5085main ()
5086{
5087return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092# Don't try gcc -ansi; that turns off useful extensions and
5093# breaks some systems' header files.
5094# AIX -qlanglvl=ansi
5095# Ultrix and OSF/1 -std1
5096# HP-UX 10.20 and later -Ae
5097# HP-UX older versions -Aa -D_HPUX_SOURCE
5098# SVR4 -Xc -D__EXTENSIONS__
5099for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5100do
5101 CC="$ac_save_CC $ac_arg"
5102 rm -f conftest.$ac_objext
5103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5104 (eval $ac_compile) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
49c96104
SE
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5464f5a1
NN
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_prog_cc_stdc=$ac_arg
5125break
5126else
5127 echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130fi
5131rm -f conftest.err conftest.$ac_objext
5132done
5133rm -f conftest.$ac_ext conftest.$ac_objext
5134CC=$ac_save_CC
5135
5136fi
5137
5138case "x$ac_cv_prog_cc_stdc" in
5139 x|xno)
5140 echo "$as_me:$LINENO: result: none needed" >&5
5141echo "${ECHO_T}none needed" >&6 ;;
5142 *)
5143 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5144echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5145 CC="$CC $ac_cv_prog_cc_stdc" ;;
5146esac
5147
5148# Some people use a C++ compiler to compile C. Since we use `exit',
5149# in C++ we need to declare it. In case someone uses the same compiler
5150# for both compiling C and C++ we need to have the C++ compiler decide
5151# the declaration of exit, since it's the most demanding environment.
5152cat >conftest.$ac_ext <<_ACEOF
5153#ifndef __cplusplus
5154 choke me
5155#endif
5156_ACEOF
5157rm -f conftest.$ac_objext
5158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159 (eval $ac_compile) 2>conftest.er1
5160 ac_status=$?
5161 grep -v '^ *+' conftest.er1 >conftest.err
5162 rm -f conftest.er1
5163 cat conftest.err >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); } &&
49c96104
SE
5166 { ac_try='test -z "$ac_c_werror_flag"
5167 || test ! -s conftest.err'
5464f5a1
NN
5168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 (eval $ac_try) 2>&5
5176 ac_status=$?
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 for ac_declaration in \
5180 '' \
5181 'extern "C" void std::exit (int) throw (); using std::exit;' \
5182 'extern "C" void std::exit (int); using std::exit;' \
5183 'extern "C" void exit (int) throw ();' \
5184 'extern "C" void exit (int);' \
5185 'void exit (int);'
5186do
5187 cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h. */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h. */
5193$ac_declaration
5194#include <stdlib.h>
5195int
5196main ()
5197{
5198exit (42);
5199 ;
5200 return 0;
5201}
5202_ACEOF
5203rm -f conftest.$ac_objext
5204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205 (eval $ac_compile) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
49c96104
SE
5212 { ac_try='test -z "$ac_c_werror_flag"
5213 || test ! -s conftest.err'
5464f5a1
NN
5214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5215 (eval $ac_try) 2>&5
5216 ac_status=$?
5217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218 (exit $ac_status); }; } &&
5219 { ac_try='test -s conftest.$ac_objext'
5220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221 (eval $ac_try) 2>&5
5222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5225 :
5226else
5227 echo "$as_me: failed program was:" >&5
5228sed 's/^/| /' conftest.$ac_ext >&5
5229
5230continue
5231fi
5232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239$ac_declaration
5240int
5241main ()
5242{
5243exit (42);
5244 ;
5245 return 0;
5246}
5247_ACEOF
5248rm -f conftest.$ac_objext
5249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5250 (eval $ac_compile) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
49c96104
SE
5257 { ac_try='test -z "$ac_c_werror_flag"
5258 || test ! -s conftest.err'
5464f5a1
NN
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 break
5271else
5272 echo "$as_me: failed program was:" >&5
5273sed 's/^/| /' conftest.$ac_ext >&5
5274
5275fi
5276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277done
5278rm -f conftest*
5279if test -n "$ac_declaration"; then
5280 echo '#ifdef __cplusplus' >>confdefs.h
5281 echo $ac_declaration >>confdefs.h
5282 echo '#endif' >>confdefs.h
252b5132 5283fi
5464f5a1 5284
b3baf5d0 5285else
5464f5a1
NN
5286 echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
b3baf5d0 5289fi
5464f5a1
NN
5290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291ac_ext=c
5292ac_cpp='$CPP $CPPFLAGS'
5293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5296
5464f5a1 5297
4a2a2686
HPN
5298cat >>confdefs.h <<\_ACEOF
5299#define _GNU_SOURCE 1
5300_ACEOF
5301
5302
5303
dcd4b381 5304ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5305# If we haven't got the data from the intl directory,
5306# assume NLS is disabled.
5307USE_NLS=no
5308LIBINTL=
5309LIBINTL_DEP=
5310INCINTL=
5311XGETTEXT=
5312GMSGFMT=
5313POSUB=
9d7cbccd
NC
5314
5315if test -f ../intl/config.intl; then
5316 . ../intl/config.intl
20e95c23
DJ
5317fi
5318echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5319echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5320if test x"$USE_NLS" != xyes; then
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
252b5132 5323else
20e95c23
DJ
5324 echo "$as_me:$LINENO: result: yes" >&5
5325echo "${ECHO_T}yes" >&6
5326
5327cat >>confdefs.h <<\_ACEOF
5328#define ENABLE_NLS 1
5329_ACEOF
5330
5331
5332 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5333echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5334 # Look for .po and .gmo files in the source directory.
5335 CATALOGS=
5336 XLINGUAS=
5337 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5338 # If there aren't any .gmo files the shell will give us the
5339 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5340 # weeded out.
5341 case "$cat" in *\**)
5342 continue;;
5343 esac
5344 # The quadruple backslash is collapsed to a double backslash
5345 # by the backticks, then collapsed again by the double quotes,
5346 # leaving us with one backslash in the sed expression (right
5347 # before the dot that mustn't act as a wildcard).
5348 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5349 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5350 # The user is allowed to set LINGUAS to a list of languages to
5351 # install catalogs for. If it's empty that means "all of them."
5352 if test "x$LINGUAS" = x; then
5353 CATALOGS="$CATALOGS $cat"
5354 XLINGUAS="$XLINGUAS $lang"
5355 else
5356 case "$LINGUAS" in *$lang*)
5357 CATALOGS="$CATALOGS $cat"
5358 XLINGUAS="$XLINGUAS $lang"
5359 ;;
5360 esac
5361 fi
5362 done
5363 LINGUAS="$XLINGUAS"
5364 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5365echo "${ECHO_T}$LINGUAS" >&6
5366
5367
5368 DATADIRNAME=share
5369
5370 INSTOBJEXT=.mo
5371
5372 GENCAT=gencat
5373
5374 CATOBJEXT=.gmo
5375
5376fi
5377
5378 MKINSTALLDIRS=
5379 if test -n "$ac_aux_dir"; then
5380 case "$ac_aux_dir" in
5381 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5382 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5383 esac
5384 fi
5385 if test -z "$MKINSTALLDIRS"; then
5386 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5387 fi
5388
5389
5390
5391 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5392echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5393 # Check whether --enable-nls or --disable-nls was given.
5394if test "${enable_nls+set}" = set; then
5395 enableval="$enable_nls"
5396 USE_NLS=$enableval
252b5132 5397else
20e95c23
DJ
5398 USE_NLS=yes
5399fi;
5400 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5401echo "${ECHO_T}$USE_NLS" >&6
5402
5403
5404
5405
5406
5407
5408# Prepare PATH_SEPARATOR.
5409# The user is always right.
5410if test "${PATH_SEPARATOR+set}" != set; then
5411 echo "#! /bin/sh" >conf$$.sh
5412 echo "exit 0" >>conf$$.sh
5413 chmod +x conf$$.sh
5414 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5415 PATH_SEPARATOR=';'
5416 else
5417 PATH_SEPARATOR=:
252b5132 5418 fi
20e95c23
DJ
5419 rm -f conf$$.sh
5420fi
5464f5a1 5421
20e95c23
DJ
5422# Find out how to test for executable files. Don't use a zero-byte file,
5423# as systems may use methods other than mode bits to determine executability.
5424cat >conf$$.file <<_ASEOF
5425#! /bin/sh
5426exit 0
5427_ASEOF
5428chmod +x conf$$.file
5429if test -x conf$$.file >/dev/null 2>&1; then
5430 ac_executable_p="test -x"
5431else
5432 ac_executable_p="test -f"
252b5132 5433fi
20e95c23
DJ
5434rm -f conf$$.file
5435
5436# Extract the first word of "msgfmt", so it can be a program name with args.
5437set dummy msgfmt; ac_word=$2
5438echo "$as_me:$LINENO: checking for $ac_word" >&5
5439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5440if test "${ac_cv_path_MSGFMT+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443 case "$MSGFMT" in
5444 [\\/]* | ?:[\\/]*)
5445 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5446 ;;
5447 *)
5448 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5449 for ac_dir in $PATH; do
5450 IFS="$ac_save_IFS"
5451 test -z "$ac_dir" && ac_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5454 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5455 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5456 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5457 break 2
5458 fi
5459 fi
5460 done
5461 done
5462 IFS="$ac_save_IFS"
5463 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5464 ;;
5465esac
252b5132 5466fi
20e95c23
DJ
5467MSGFMT="$ac_cv_path_MSGFMT"
5468if test "$MSGFMT" != ":"; then
5469 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5470echo "${ECHO_T}$MSGFMT" >&6
252b5132 5471else
5464f5a1
NN
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
252b5132
RH
5474fi
5475
20e95c23
DJ
5476 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5477set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5478echo "$as_me:$LINENO: checking for $ac_word" >&5
5479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5480if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5481 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5482else
20e95c23
DJ
5483 case $GMSGFMT in
5484 [\\/]* | ?:[\\/]*)
5485 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5486 ;;
5487 *)
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5495 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499done
5500done
5501
20e95c23
DJ
5502 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5503 ;;
5504esac
252b5132 5505fi
20e95c23
DJ
5506GMSGFMT=$ac_cv_path_GMSGFMT
5507
5508if test -n "$GMSGFMT"; then
5509 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5510echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5511else
5464f5a1
NN
5512 echo "$as_me:$LINENO: result: no" >&5
5513echo "${ECHO_T}no" >&6
b3baf5d0 5514fi
252b5132 5515
20e95c23
DJ
5516
5517
5518# Prepare PATH_SEPARATOR.
5519# The user is always right.
5520if test "${PATH_SEPARATOR+set}" != set; then
5521 echo "#! /bin/sh" >conf$$.sh
5522 echo "exit 0" >>conf$$.sh
5523 chmod +x conf$$.sh
5524 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5525 PATH_SEPARATOR=';'
5526 else
5527 PATH_SEPARATOR=:
5528 fi
5529 rm -f conf$$.sh
252b5132 5530fi
5464f5a1 5531
20e95c23
DJ
5532# Find out how to test for executable files. Don't use a zero-byte file,
5533# as systems may use methods other than mode bits to determine executability.
5534cat >conf$$.file <<_ASEOF
5535#! /bin/sh
5536exit 0
5537_ASEOF
5538chmod +x conf$$.file
5539if test -x conf$$.file >/dev/null 2>&1; then
5540 ac_executable_p="test -x"
5541else
5542 ac_executable_p="test -f"
6be7c12c 5543fi
20e95c23
DJ
5544rm -f conf$$.file
5545
5546# Extract the first word of "xgettext", so it can be a program name with args.
5547set dummy xgettext; ac_word=$2
5548echo "$as_me:$LINENO: checking for $ac_word" >&5
5549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5550if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5551 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5552else
20e95c23
DJ
5553 case "$XGETTEXT" in
5554 [\\/]* | ?:[\\/]*)
5555 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5556 ;;
5557 *)
5558 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH; do
5560 IFS="$ac_save_IFS"
5561 test -z "$ac_dir" && ac_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5564 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5565 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5566 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5567 break 2
5568 fi
5569 fi
5570 done
5571 done
5572 IFS="$ac_save_IFS"
5573 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5574 ;;
5575esac
5576fi
5577XGETTEXT="$ac_cv_path_XGETTEXT"
5578if test "$XGETTEXT" != ":"; then
5579 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5580echo "${ECHO_T}$XGETTEXT" >&6
5581else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584fi
5585
5586 rm -f messages.po
5587
5588
5589# Prepare PATH_SEPARATOR.
5590# The user is always right.
5591if test "${PATH_SEPARATOR+set}" != set; then
5592 echo "#! /bin/sh" >conf$$.sh
5593 echo "exit 0" >>conf$$.sh
5594 chmod +x conf$$.sh
5595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5596 PATH_SEPARATOR=';'
5464f5a1 5597 else
20e95c23 5598 PATH_SEPARATOR=:
5464f5a1 5599 fi
20e95c23 5600 rm -f conf$$.sh
6be7c12c 5601fi
5464f5a1 5602
20e95c23
DJ
5603# Find out how to test for executable files. Don't use a zero-byte file,
5604# as systems may use methods other than mode bits to determine executability.
5605cat >conf$$.file <<_ASEOF
5606#! /bin/sh
5607exit 0
5608_ASEOF
5609chmod +x conf$$.file
5610if test -x conf$$.file >/dev/null 2>&1; then
5611 ac_executable_p="test -x"
5612else
5613 ac_executable_p="test -f"
5464f5a1 5614fi
20e95c23 5615rm -f conf$$.file
5464f5a1 5616
20e95c23
DJ
5617# Extract the first word of "msgmerge", so it can be a program name with args.
5618set dummy msgmerge; ac_word=$2
5619echo "$as_me:$LINENO: checking for $ac_word" >&5
5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621if test "${ac_cv_path_MSGMERGE+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5623else
20e95c23
DJ
5624 case "$MSGMERGE" in
5625 [\\/]* | ?:[\\/]*)
5626 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5627 ;;
5628 *)
5629 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5630 for ac_dir in $PATH; do
5631 IFS="$ac_save_IFS"
5632 test -z "$ac_dir" && ac_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5635 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5636 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5637 break 2
5638 fi
5639 fi
5640 done
5464f5a1 5641 done
20e95c23
DJ
5642 IFS="$ac_save_IFS"
5643 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5644 ;;
5645esac
5464f5a1 5646fi
20e95c23
DJ
5647MSGMERGE="$ac_cv_path_MSGMERGE"
5648if test "$MSGMERGE" != ":"; then
5649 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5650echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5651else
20e95c23
DJ
5652 echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6
5464f5a1 5654fi
5464f5a1 5655
5464f5a1 5656
20e95c23
DJ
5657 if test "$GMSGFMT" != ":"; then
5658 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5659 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5660 : ;
5661 else
5662 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5663 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5664echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5665 GMSGFMT=":"
5666 fi
5464f5a1 5667 fi
5464f5a1 5668
20e95c23
DJ
5669 if test "$XGETTEXT" != ":"; then
5670 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5671 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5672 : ;
5673 else
5674 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5675echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5676 XGETTEXT=":"
5677 fi
5678 rm -f messages.po
5679 fi
6be7c12c 5680
20e95c23 5681 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5682
5464f5a1
NN
5683
5684
20e95c23
DJ
5685# Permit host specific settings.
5686. ${srcdir}/configure.host
5464f5a1 5687
ac48eca1 5688
20e95c23
DJ
5689# Find a good install program. We prefer a C program (faster),
5690# so one script is as good as another. But avoid the broken or
5691# incompatible versions:
5692# SysV /etc/install, /usr/sbin/install
5693# SunOS /usr/etc/install
5694# IRIX /sbin/install
5695# AIX /bin/install
5696# AmigaOS /C/install, which installs bootblocks on floppy discs
5697# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5698# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5699# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5700# OS/2's system install, which has a completely different semantic
5701# ./install, which can be erroneously created by make from ./install.sh.
5702echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5703echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5704if test -z "$INSTALL"; then
5705if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5706 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5707else
20e95c23
DJ
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709for as_dir in $PATH
5710do
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 # Account for people who put trailing slashes in PATH elements.
5714case $as_dir/ in
5715 ./ | .// | /cC/* | \
5716 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5717 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5718 /usr/ucb/* ) ;;
5464f5a1 5719 *)
20e95c23
DJ
5720 # OSF1 and SCO ODT 3.0 have their own names for install.
5721 # Don't use installbsd from OSF since it installs stuff as root
5722 # by default.
5723 for ac_prog in ginstall scoinst install; do
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5726 if test $ac_prog = install &&
5727 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5728 # AIX install. It has an incompatible calling convention.
5729 :
5730 elif test $ac_prog = install &&
5731 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5732 # program-specific install script used by HP pwplus--don't use.
5733 :
5734 else
5735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5736 break 3
5737 fi
5738 fi
5739 done
5740 done
5464f5a1
NN
5741 ;;
5742esac
252b5132
RH
5743done
5744
20e95c23 5745
252b5132 5746fi
20e95c23
DJ
5747 if test "${ac_cv_path_install+set}" = set; then
5748 INSTALL=$ac_cv_path_install
5749 else
5750 # As a last resort, use the slow shell script. We don't cache a
5751 # path for INSTALL within a source directory, because that will
5752 # break other packages using the cache if that directory is
5753 # removed, or if the path is relative.
5754 INSTALL=$ac_install_sh
5755 fi
252b5132 5756fi
20e95c23
DJ
5757echo "$as_me:$LINENO: result: $INSTALL" >&5
5758echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5759
20e95c23
DJ
5760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5761# It thinks the first close brace ends the variable substitution.
5762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5763
20e95c23 5764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5765
20e95c23 5766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5767
252b5132 5768
20e95c23
DJ
5769BFD_HOST_64BIT_LONG=0
5770BFD_HOST_LONG_LONG=0
5771BFD_HOST_64_BIT_DEFINED=0
5772BFD_HOST_64_BIT=
5773BFD_HOST_U_64_BIT=
5464f5a1 5774
20e95c23
DJ
5775echo "$as_me:$LINENO: checking for long long" >&5
5776echo $ECHO_N "checking for long long... $ECHO_C" >&6
5777if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5779else
20e95c23 5780 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5781/* confdefs.h. */
5782_ACEOF
5783cat confdefs.h >>conftest.$ac_ext
5784cat >>conftest.$ac_ext <<_ACEOF
5785/* end confdefs.h. */
20e95c23
DJ
5786
5787int
5788main ()
5789{
5790unsigned long long ll = 18446744073709551615ULL;
5791 ;
5792 return 0;
5793}
5464f5a1
NN
5794_ACEOF
5795rm -f conftest.$ac_objext
5796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5797 (eval $ac_compile) 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } &&
49c96104
SE
5804 { ac_try='test -z "$ac_c_werror_flag"
5805 || test ! -s conftest.err'
5464f5a1
NN
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 (eval $ac_try) 2>&5
5808 ac_status=$?
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; } &&
5811 { ac_try='test -s conftest.$ac_objext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 (eval $ac_try) 2>&5
5814 ac_status=$?
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
20e95c23 5817 bfd_cv_has_long_long=yes
5464f5a1
NN
5818else
5819 echo "$as_me: failed program was:" >&5
5820sed 's/^/| /' conftest.$ac_ext >&5
5821
20e95c23 5822bfd_cv_has_long_long=no
5464f5a1
NN
5823fi
5824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5825fi
5464f5a1 5826
20e95c23
DJ
5827echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5828echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5829if test $bfd_cv_has_long_long = yes; then
5830 BFD_HOST_LONG_LONG=1
5831 ac_ext=c
5832ac_cpp='$CPP $CPPFLAGS'
5833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5837echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5838# On Suns, sometimes $CPP names a directory.
5839if test -n "$CPP" && test -d "$CPP"; then
5840 CPP=
5841fi
5842if test -z "$CPP"; then
5843 if test "${ac_cv_prog_CPP+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845else
5846 # Double quotes because CPP needs to be expanded
5847 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5848 do
5849 ac_preproc_ok=false
5850for ac_c_preproc_warn_flag in '' yes
5851do
5852 # Use a header file that comes with gcc, so configuring glibc
5853 # with a fresh cross-compiler works.
5854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 # <limits.h> exists even on freestanding compilers.
5856 # On the NeXT, cc -E runs the code through the compiler's parser,
5857 # not just through cpp. "Syntax error" is here to catch this case.
5858 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5859/* confdefs.h. */
5860_ACEOF
5861cat confdefs.h >>conftest.$ac_ext
5862cat >>conftest.$ac_ext <<_ACEOF
5863/* end confdefs.h. */
20e95c23
DJ
5864#ifdef __STDC__
5865# include <limits.h>
5866#else
5867# include <assert.h>
5868#endif
5869 Syntax error
5464f5a1
NN
5870_ACEOF
5871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } >/dev/null; then
5879 if test -s conftest.err; then
5880 ac_cpp_err=$ac_c_preproc_warn_flag
5881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5882 else
5883 ac_cpp_err=
5884 fi
252b5132 5885else
5464f5a1 5886 ac_cpp_err=yes
252b5132 5887fi
5464f5a1 5888if test -z "$ac_cpp_err"; then
20e95c23 5889 :
5464f5a1
NN
5890else
5891 echo "$as_me: failed program was:" >&5
5892sed 's/^/| /' conftest.$ac_ext >&5
5893
20e95c23
DJ
5894 # Broken: fails on valid input.
5895continue
252b5132 5896fi
5464f5a1 5897rm -f conftest.err conftest.$ac_ext
5464f5a1 5898
20e95c23
DJ
5899 # OK, works on sane cases. Now check whether non-existent headers
5900 # can be detected and how.
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. */
20e95c23 5907#include <ac_nonexistent.h>
5464f5a1 5908_ACEOF
20e95c23
DJ
5909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5911 ac_status=$?
20e95c23
DJ
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5464f5a1 5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5916 (exit $ac_status); } >/dev/null; then
5917 if test -s conftest.err; then
5918 ac_cpp_err=$ac_c_preproc_warn_flag
5919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5920 else
5921 ac_cpp_err=
5922 fi
5923else
5924 ac_cpp_err=yes
5925fi
5926if test -z "$ac_cpp_err"; then
5927 # Broken: success on invalid input.
5928continue
252b5132 5929else
5464f5a1
NN
5930 echo "$as_me: failed program was:" >&5
5931sed 's/^/| /' conftest.$ac_ext >&5
5932
20e95c23
DJ
5933 # Passes both tests.
5934ac_preproc_ok=:
5935break
252b5132 5936fi
20e95c23 5937rm -f conftest.err conftest.$ac_ext
252b5132 5938
20e95c23
DJ
5939done
5940# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941rm -f conftest.err conftest.$ac_ext
5942if $ac_preproc_ok; then
5943 break
5944fi
5464f5a1 5945
20e95c23
DJ
5946 done
5947 ac_cv_prog_CPP=$CPP
252b5132 5948
252b5132 5949fi
20e95c23 5950 CPP=$ac_cv_prog_CPP
252b5132 5951else
20e95c23 5952 ac_cv_prog_CPP=$CPP
252b5132 5953fi
20e95c23
DJ
5954echo "$as_me:$LINENO: result: $CPP" >&5
5955echo "${ECHO_T}$CPP" >&6
5956ac_preproc_ok=false
5957for ac_c_preproc_warn_flag in '' yes
252b5132 5958do
20e95c23
DJ
5959 # Use a header file that comes with gcc, so configuring glibc
5960 # with a fresh cross-compiler works.
5961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962 # <limits.h> exists even on freestanding compilers.
5963 # On the NeXT, cc -E runs the code through the compiler's parser,
5964 # not just through cpp. "Syntax error" is here to catch this case.
5464f5a1
NN
5965 cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h. */
5464f5a1
NN
5971#ifdef __STDC__
5972# include <limits.h>
5973#else
5974# include <assert.h>
5975#endif
20e95c23 5976 Syntax error
5464f5a1 5977_ACEOF
20e95c23
DJ
5978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5985 (exit $ac_status); } >/dev/null; then
5986 if test -s conftest.err; then
5987 ac_cpp_err=$ac_c_preproc_warn_flag
5988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5989 else
5990 ac_cpp_err=
5991 fi
5992else
5993 ac_cpp_err=yes
5994fi
5995if test -z "$ac_cpp_err"; then
5996 :
5464f5a1
NN
5997else
5998 echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
20e95c23
DJ
6001 # Broken: fails on valid input.
6002continue
5464f5a1 6003fi
20e95c23 6004rm -f conftest.err conftest.$ac_ext
252b5132 6005
20e95c23
DJ
6006 # OK, works on sane cases. Now check whether non-existent headers
6007 # can be detected and how.
6008 cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014#include <ac_nonexistent.h>
6015_ACEOF
6016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018 ac_status=$?
6019 grep -v '^ *+' conftest.er1 >conftest.err
6020 rm -f conftest.er1
6021 cat conftest.err >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); } >/dev/null; then
6024 if test -s conftest.err; then
6025 ac_cpp_err=$ac_c_preproc_warn_flag
6026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027 else
6028 ac_cpp_err=
6029 fi
6030else
6031 ac_cpp_err=yes
252b5132 6032fi
20e95c23
DJ
6033if test -z "$ac_cpp_err"; then
6034 # Broken: success on invalid input.
6035continue
252b5132 6036else
20e95c23
DJ
6037 echo "$as_me: failed program was:" >&5
6038sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6039
20e95c23
DJ
6040 # Passes both tests.
6041ac_preproc_ok=:
6042break
252b5132 6043fi
20e95c23 6044rm -f conftest.err conftest.$ac_ext
5464f5a1 6045
20e95c23
DJ
6046done
6047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6048rm -f conftest.err conftest.$ac_ext
6049if $ac_preproc_ok; then
6050 :
252b5132 6051else
20e95c23
DJ
6052 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6053See \`config.log' for more details." >&5
6054echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6055See \`config.log' for more details." >&2;}
6056 { (exit 1); exit 1; }; }
252b5132
RH
6057fi
6058
20e95c23
DJ
6059ac_ext=c
6060ac_cpp='$CPP $CPPFLAGS'
6061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6063ac_compiler_gnu=$ac_cv_c_compiler_gnu
6064
6065
6066echo "$as_me:$LINENO: checking for egrep" >&5
6067echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6068if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6069 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6070else
20e95c23
DJ
6071 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6072 then ac_cv_prog_egrep='grep -E'
6073 else ac_cv_prog_egrep='egrep'
252b5132 6074 fi
252b5132 6075fi
20e95c23
DJ
6076echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6077echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6078 EGREP=$ac_cv_prog_egrep
6079
252b5132 6080
20e95c23
DJ
6081echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6082echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6083if test "${ac_cv_header_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
20e95c23
DJ
6092#include <stdlib.h>
6093#include <stdarg.h>
6094#include <string.h>
6095#include <float.h>
252b5132 6096
5464f5a1
NN
6097int
6098main ()
6099{
20e95c23 6100
5464f5a1
NN
6101 ;
6102 return 0;
6103}
6104_ACEOF
20e95c23
DJ
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
49c96104
SE
6114 { ac_try='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
5464f5a1
NN
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 (eval $ac_try) 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
20e95c23 6121 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 (eval $ac_try) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
20e95c23 6127 ac_cv_header_stdc=yes
252b5132 6128else
5464f5a1
NN
6129 echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
20e95c23 6132ac_cv_header_stdc=no
252b5132 6133fi
20e95c23 6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6135
20e95c23
DJ
6136if test $ac_cv_header_stdc = yes; then
6137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144#include <string.h>
5464f5a1 6145
20e95c23
DJ
6146_ACEOF
6147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "memchr" >/dev/null 2>&1; then
6149 :
252b5132 6150else
20e95c23 6151 ac_cv_header_stdc=no
252b5132 6152fi
20e95c23 6153rm -f conftest*
252b5132 6154
252b5132
RH
6155fi
6156
20e95c23
DJ
6157if test $ac_cv_header_stdc = yes; then
6158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6159 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6160/* confdefs.h. */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h. */
20e95c23
DJ
6165#include <stdlib.h>
6166
5464f5a1 6167_ACEOF
20e95c23
DJ
6168if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 $EGREP "free" >/dev/null 2>&1; then
6170 :
5464f5a1 6171else
20e95c23
DJ
6172 ac_cv_header_stdc=no
6173fi
6174rm -f conftest*
5464f5a1 6175
5464f5a1 6176fi
5464f5a1 6177
20e95c23
DJ
6178if test $ac_cv_header_stdc = yes; then
6179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6180 if test "$cross_compiling" = yes; then
6181 :
6182else
6183 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6184/* confdefs.h. */
6185_ACEOF
6186cat confdefs.h >>conftest.$ac_ext
6187cat >>conftest.$ac_ext <<_ACEOF
6188/* end confdefs.h. */
20e95c23
DJ
6189#include <ctype.h>
6190#if ((' ' & 0x0FF) == 0x020)
6191# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6192# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6193#else
6194# define ISLOWER(c) \
6195 (('a' <= (c) && (c) <= 'i') \
6196 || ('j' <= (c) && (c) <= 'r') \
6197 || ('s' <= (c) && (c) <= 'z'))
6198# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6199#endif
6200
6201#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6202int
6203main ()
6204{
6205 int i;
6206 for (i = 0; i < 256; i++)
6207 if (XOR (islower (i), ISLOWER (i))
6208 || toupper (i) != TOUPPER (i))
6209 exit(2);
6210 exit (0);
6211}
5464f5a1 6212_ACEOF
20e95c23
DJ
6213rm -f conftest$ac_exeext
6214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6215 (eval $ac_link) 2>&5
5464f5a1 6216 ac_status=$?
5464f5a1 6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 :
5464f5a1 6225else
20e95c23
DJ
6226 echo "$as_me: program exited with status $ac_status" >&5
6227echo "$as_me: failed program was:" >&5
5464f5a1
NN
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
20e95c23
DJ
6230( exit $ac_status )
6231ac_cv_header_stdc=no
5464f5a1 6232fi
20e95c23 6233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6234fi
252b5132 6235fi
252b5132 6236fi
20e95c23
DJ
6237echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6238echo "${ECHO_T}$ac_cv_header_stdc" >&6
6239if test $ac_cv_header_stdc = yes; then
252b5132 6240
20e95c23
DJ
6241cat >>confdefs.h <<\_ACEOF
6242#define STDC_HEADERS 1
6243_ACEOF
6be7c12c 6244
20e95c23 6245fi
5464f5a1 6246
20e95c23 6247# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6248
5464f5a1 6249
252b5132 6250
5464f5a1 6251
252b5132 6252
5464f5a1 6253
252b5132 6254
252b5132 6255
6be7c12c 6256
20e95c23
DJ
6257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6258 inttypes.h stdint.h unistd.h
5464f5a1 6259do
20e95c23
DJ
6260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261echo "$as_me:$LINENO: checking for $ac_header" >&5
6262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6263if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6264 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6265else
5464f5a1
NN
6266 cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h. */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h. */
20e95c23 6272$ac_includes_default
ec317fb1 6273
20e95c23 6274#include <$ac_header>
5464f5a1
NN
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6278 (eval $ac_compile) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
49c96104
SE
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
5464f5a1
NN
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
20e95c23 6298 eval "$as_ac_Header=yes"
ec317fb1 6299else
5464f5a1
NN
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
20e95c23 6303eval "$as_ac_Header=no"
ec317fb1 6304fi
5464f5a1 6305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6306fi
6307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309if test `eval echo '${'$as_ac_Header'}'` = yes; then
6310 cat >>confdefs.h <<_ACEOF
6311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6312_ACEOF
6313
ec317fb1
ILT
6314fi
6315
20e95c23
DJ
6316done
6317
6318
6319echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6320echo $ECHO_N "checking for long long... $ECHO_C" >&6
6321if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6323else
5464f5a1
NN
6324 cat >conftest.$ac_ext <<_ACEOF
6325/* confdefs.h. */
6326_ACEOF
6327cat confdefs.h >>conftest.$ac_ext
6328cat >>conftest.$ac_ext <<_ACEOF
6329/* end confdefs.h. */
2ba49b59 6330$ac_includes_default
5464f5a1
NN
6331int
6332main ()
6333{
2ba49b59
KC
6334if ((long long *) 0)
6335 return 0;
6336if (sizeof (long long))
6337 return 0;
5464f5a1
NN
6338 ;
6339 return 0;
6340}
6341_ACEOF
6342rm -f conftest.$ac_objext
6343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
49c96104
SE
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
5464f5a1
NN
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
2ba49b59 6364 ac_cv_type_long_long=yes
6726e1ea 6365else
5464f5a1
NN
6366 echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
2ba49b59 6369ac_cv_type_long_long=no
6726e1ea 6370fi
5464f5a1 6371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6372fi
2ba49b59
KC
6373echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6374echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6375
2ba49b59
KC
6376echo "$as_me:$LINENO: checking size of long long" >&5
6377echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6378if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6380else
2ba49b59
KC
6381 if test "$ac_cv_type_long_long" = yes; then
6382 # The cast to unsigned long works around a bug in the HP C Compiler
6383 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6384 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6385 # This bug is HP SR number 8606223364.
6386 if test "$cross_compiling" = yes; then
6387 # Depending upon the size, compute the lo and hi bounds.
6388cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6389/* confdefs.h. */
6390_ACEOF
6391cat confdefs.h >>conftest.$ac_ext
6392cat >>conftest.$ac_ext <<_ACEOF
6393/* end confdefs.h. */
2ba49b59
KC
6394$ac_includes_default
6395int
6396main ()
6397{
6398static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6399test_array [0] = 0
6726e1ea 6400
2ba49b59
KC
6401 ;
6402 return 0;
6403}
6404_ACEOF
6405rm -f conftest.$ac_objext
6406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
49c96104
SE
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
2ba49b59
KC
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_lo=0 ac_mid=0
6428 while :; do
6429 cat >conftest.$ac_ext <<_ACEOF
6430/* confdefs.h. */
6431_ACEOF
6432cat confdefs.h >>conftest.$ac_ext
6433cat >>conftest.$ac_ext <<_ACEOF
6434/* end confdefs.h. */
6435$ac_includes_default
5464f5a1
NN
6436int
6437main ()
6438{
2ba49b59
KC
6439static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6440test_array [0] = 0
6441
5464f5a1
NN
6442 ;
6443 return 0;
6444}
6445_ACEOF
6446rm -f conftest.$ac_objext
6447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>conftest.er1
6449 ac_status=$?
6450 grep -v '^ *+' conftest.er1 >conftest.err
6451 rm -f conftest.er1
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
49c96104
SE
6455 { ac_try='test -z "$ac_c_werror_flag"
6456 || test ! -s conftest.err'
5464f5a1
NN
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458 (eval $ac_try) 2>&5
6459 ac_status=$?
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; } &&
6462 { ac_try='test -s conftest.$ac_objext'
6463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464 (eval $ac_try) 2>&5
6465 ac_status=$?
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; }; then
2ba49b59 6468 ac_hi=$ac_mid; break
6726e1ea 6469else
5464f5a1
NN
6470 echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
2ba49b59
KC
6473ac_lo=`expr $ac_mid + 1`
6474 if test $ac_lo -le $ac_mid; then
6475 ac_lo= ac_hi=
6476 break
6477 fi
6478 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6479fi
5464f5a1 6480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6481 done
252b5132 6482else
2ba49b59
KC
6483 echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6485
5464f5a1
NN
6486cat >conftest.$ac_ext <<_ACEOF
6487/* confdefs.h. */
6488_ACEOF
6489cat confdefs.h >>conftest.$ac_ext
6490cat >>conftest.$ac_ext <<_ACEOF
6491/* end confdefs.h. */
6492$ac_includes_default
2ba49b59
KC
6493int
6494main ()
6495{
6496static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6497test_array [0] = 0
6498
6499 ;
6500 return 0;
6501}
5464f5a1
NN
6502_ACEOF
6503rm -f conftest.$ac_objext
6504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505 (eval $ac_compile) 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
49c96104
SE
6512 { ac_try='test -z "$ac_c_werror_flag"
6513 || test ! -s conftest.err'
5464f5a1
NN
6514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); }; } &&
6519 { ac_try='test -s conftest.$ac_objext'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; }; then
2ba49b59
KC
6525 ac_hi=-1 ac_mid=-1
6526 while :; do
6527 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6528/* confdefs.h. */
6529_ACEOF
6530cat confdefs.h >>conftest.$ac_ext
6531cat >>conftest.$ac_ext <<_ACEOF
6532/* end confdefs.h. */
2ba49b59
KC
6533$ac_includes_default
6534int
6535main ()
6536{
6537static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6538test_array [0] = 0
6539
6540 ;
6541 return 0;
6542}
5464f5a1 6543_ACEOF
2ba49b59
KC
6544rm -f conftest.$ac_objext
6545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6546 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6552 (exit $ac_status); } &&
49c96104
SE
6553 { ac_try='test -z "$ac_c_werror_flag"
6554 || test ! -s conftest.err'
2ba49b59
KC
6555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556 (eval $ac_try) 2>&5
6557 ac_status=$?
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; } &&
6560 { ac_try='test -s conftest.$ac_objext'
6561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6562 (eval $ac_try) 2>&5
6563 ac_status=$?
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); }; }; then
6566 ac_lo=$ac_mid; break
252b5132 6567else
2ba49b59
KC
6568 echo "$as_me: failed program was:" >&5
6569sed 's/^/| /' conftest.$ac_ext >&5
6570
6571ac_hi=`expr '(' $ac_mid ')' - 1`
6572 if test $ac_mid -le $ac_hi; then
6573 ac_lo= ac_hi=
6574 break
6575 fi
6576 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6577fi
2ba49b59
KC
6578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579 done
5464f5a1
NN
6580else
6581 echo "$as_me: failed program was:" >&5
6582sed 's/^/| /' conftest.$ac_ext >&5
6583
2ba49b59 6584ac_lo= ac_hi=
252b5132 6585fi
2ba49b59
KC
6586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587fi
6588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6589# Binary search between lo and hi bounds.
6590while test "x$ac_lo" != "x$ac_hi"; do
6591 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
6598$ac_includes_default
6599int
6600main ()
6601{
6602static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6603test_array [0] = 0
5464f5a1 6604
2ba49b59
KC
6605 ;
6606 return 0;
6607}
5464f5a1
NN
6608_ACEOF
6609rm -f conftest.$ac_objext
6610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
49c96104
SE
6618 { ac_try='test -z "$ac_c_werror_flag"
6619 || test ! -s conftest.err'
5464f5a1
NN
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; } &&
6625 { ac_try='test -s conftest.$ac_objext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
2ba49b59 6631 ac_hi=$ac_mid
5464f5a1
NN
6632else
6633 echo "$as_me: failed program was:" >&5
6634sed 's/^/| /' conftest.$ac_ext >&5
6635
2ba49b59 6636ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6637fi
6638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6639done
6640case $ac_lo in
6641?*) ac_cv_sizeof_long_long=$ac_lo;;
6642'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6643See \`config.log' for more details." >&5
6644echo "$as_me: error: cannot compute sizeof (long long), 77
6645See \`config.log' for more details." >&2;}
6646 { (exit 1); exit 1; }; } ;;
6647esac
6648else
6649 if test "$cross_compiling" = yes; then
49c96104
SE
6650 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6651See \`config.log' for more details." >&5
6652echo "$as_me: error: cannot run test program while cross compiling
6653See \`config.log' for more details." >&2;}
2ba49b59
KC
6654 { (exit 1); exit 1; }; }
6655else
6656 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6657/* confdefs.h. */
6658_ACEOF
6659cat confdefs.h >>conftest.$ac_ext
6660cat >>conftest.$ac_ext <<_ACEOF
6661/* end confdefs.h. */
2ba49b59
KC
6662$ac_includes_default
6663long longval () { return (long) (sizeof (long long)); }
6664unsigned long ulongval () { return (long) (sizeof (long long)); }
6665#include <stdio.h>
6666#include <stdlib.h>
6667int
6668main ()
6669{
6670
6671 FILE *f = fopen ("conftest.val", "w");
6672 if (! f)
6673 exit (1);
6674 if (((long) (sizeof (long long))) < 0)
6675 {
6676 long i = longval ();
6677 if (i != ((long) (sizeof (long long))))
6678 exit (1);
6679 fprintf (f, "%ld\n", i);
6680 }
6681 else
6682 {
6683 unsigned long i = ulongval ();
6684 if (i != ((long) (sizeof (long long))))
6685 exit (1);
6686 fprintf (f, "%lu\n", i);
6687 }
6688 exit (ferror (f) || fclose (f) != 0);
6689
6690 ;
6691 return 0;
6692}
5464f5a1 6693_ACEOF
2ba49b59
KC
6694rm -f conftest$ac_exeext
6695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>&5
5464f5a1 6697 ac_status=$?
5464f5a1 6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701 (eval $ac_try) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6705 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6706else
2ba49b59
KC
6707 echo "$as_me: program exited with status $ac_status" >&5
6708echo "$as_me: failed program was:" >&5
5464f5a1
NN
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
2ba49b59
KC
6711( exit $ac_status )
6712{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6713See \`config.log' for more details." >&5
6714echo "$as_me: error: cannot compute sizeof (long long), 77
6715See \`config.log' for more details." >&2;}
6716 { (exit 1); exit 1; }; }
252b5132 6717fi
2ba49b59
KC
6718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6719fi
6720fi
6721rm -f conftest.val
6be7c12c 6722else
2ba49b59 6723 ac_cv_sizeof_long_long=0
5464f5a1 6724fi
5464f5a1 6725fi
2ba49b59
KC
6726echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6727echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6728cat >>confdefs.h <<_ACEOF
6729#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6730_ACEOF
6731
5464f5a1 6732
2ba49b59 6733fi
252b5132 6734
2ba49b59
KC
6735echo "$as_me:$LINENO: checking for long" >&5
6736echo $ECHO_N "checking for long... $ECHO_C" >&6
6737if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740 cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h. */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h. */
2ba49b59 6746$ac_includes_default
5464f5a1
NN
6747int
6748main ()
6749{
2ba49b59
KC
6750if ((long *) 0)
6751 return 0;
6752if (sizeof (long))
6753 return 0;
5464f5a1
NN
6754 ;
6755 return 0;
6756}
6757_ACEOF
6758rm -f conftest.$ac_objext
6759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>conftest.er1
6761 ac_status=$?
6762 grep -v '^ *+' conftest.er1 >conftest.err
6763 rm -f conftest.er1
6764 cat conftest.err >&5
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); } &&
49c96104
SE
6767 { ac_try='test -z "$ac_c_werror_flag"
6768 || test ! -s conftest.err'
5464f5a1
NN
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest.$ac_objext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
2ba49b59 6780 ac_cv_type_long=yes
252b5132 6781else
5464f5a1
NN
6782 echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
2ba49b59 6785ac_cv_type_long=no
252b5132 6786fi
5464f5a1 6787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6788fi
2ba49b59
KC
6789echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6790echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6791
2ba49b59
KC
6792echo "$as_me:$LINENO: checking size of long" >&5
6793echo $ECHO_N "checking size of long... $ECHO_C" >&6
6794if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6796else
2ba49b59
KC
6797 if test "$ac_cv_type_long" = yes; then
6798 # The cast to unsigned long works around a bug in the HP C Compiler
6799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6801 # This bug is HP SR number 8606223364.
6802 if test "$cross_compiling" = yes; then
6803 # Depending upon the size, compute the lo and hi bounds.
6804cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
2ba49b59 6810$ac_includes_default
5464f5a1
NN
6811int
6812main ()
6813{
2ba49b59
KC
6814static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6815test_array [0] = 0
6816
5464f5a1
NN
6817 ;
6818 return 0;
6819}
6820_ACEOF
6821rm -f conftest.$ac_objext
6822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6823 (eval $ac_compile) 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } &&
49c96104
SE
6830 { ac_try='test -z "$ac_c_werror_flag"
6831 || test ! -s conftest.err'
5464f5a1
NN
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; } &&
6837 { ac_try='test -s conftest.$ac_objext'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; }; then
2ba49b59
KC
6843 ac_lo=0 ac_mid=0
6844 while :; do
6845 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
2ba49b59 6851$ac_includes_default
5464f5a1
NN
6852int
6853main ()
6854{
2ba49b59
KC
6855static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6856test_array [0] = 0
6857
5464f5a1
NN
6858 ;
6859 return 0;
6860}
6861_ACEOF
2ba49b59
KC
6862rm -f conftest.$ac_objext
6863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6865 ac_status=$?
6866 grep -v '^ *+' conftest.er1 >conftest.err
6867 rm -f conftest.er1
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } &&
49c96104
SE
6871 { ac_try='test -z "$ac_c_werror_flag"
6872 || test ! -s conftest.err'
5464f5a1
NN
6873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; } &&
2ba49b59 6878 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; }; then
2ba49b59 6884 ac_hi=$ac_mid; break
5464f5a1
NN
6885else
6886 echo "$as_me: failed program was:" >&5
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
2ba49b59
KC
6889ac_lo=`expr $ac_mid + 1`
6890 if test $ac_lo -le $ac_mid; then
6891 ac_lo= ac_hi=
6892 break
6893 fi
6894 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6895fi
2ba49b59
KC
6896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6897 done
6898else
6899 echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
6902cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6903/* confdefs.h. */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h. */
2ba49b59 6908$ac_includes_default
5464f5a1
NN
6909int
6910main ()
6911{
2ba49b59
KC
6912static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6913test_array [0] = 0
6914
5464f5a1
NN
6915 ;
6916 return 0;
6917}
6918_ACEOF
2ba49b59
KC
6919rm -f conftest.$ac_objext
6920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6921 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6922 ac_status=$?
6923 grep -v '^ *+' conftest.er1 >conftest.err
6924 rm -f conftest.er1
6925 cat conftest.err >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); } &&
49c96104
SE
6928 { ac_try='test -z "$ac_c_werror_flag"
6929 || test ! -s conftest.err'
5464f5a1
NN
6930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931 (eval $ac_try) 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; } &&
2ba49b59 6935 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937 (eval $ac_try) 2>&5
6938 ac_status=$?
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); }; }; then
2ba49b59
KC
6941 ac_hi=-1 ac_mid=-1
6942 while :; do
6943 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
2ba49b59 6949$ac_includes_default
5464f5a1
NN
6950int
6951main ()
6952{
2ba49b59
KC
6953static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6954test_array [0] = 0
6955
5464f5a1
NN
6956 ;
6957 return 0;
6958}
6959_ACEOF
2ba49b59
KC
6960rm -f conftest.$ac_objext
6961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
49c96104
SE
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
5464f5a1
NN
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
2ba49b59 6976 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
2ba49b59 6982 ac_lo=$ac_mid; break
5464f5a1
NN
6983else
6984 echo "$as_me: failed program was:" >&5
6985sed 's/^/| /' conftest.$ac_ext >&5
6986
2ba49b59
KC
6987ac_hi=`expr '(' $ac_mid ')' - 1`
6988 if test $ac_mid -le $ac_hi; then
6989 ac_lo= ac_hi=
6990 break
6991 fi
6992 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 6993fi
2ba49b59
KC
6994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995 done
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000ac_lo= ac_hi=
7001fi
7002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003fi
7004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7005# Binary search between lo and hi bounds.
7006while test "x$ac_lo" != "x$ac_hi"; do
7007 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7008 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
2ba49b59 7014$ac_includes_default
5464f5a1
NN
7015int
7016main ()
7017{
2ba49b59
KC
7018static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7019test_array [0] = 0
7020
5464f5a1
NN
7021 ;
7022 return 0;
7023}
7024_ACEOF
2ba49b59
KC
7025rm -f conftest.$ac_objext
7026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
49c96104
SE
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
5464f5a1
NN
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
2ba49b59 7041 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
2ba49b59 7047 ac_hi=$ac_mid
5464f5a1
NN
7048else
7049 echo "$as_me: failed program was:" >&5
7050sed 's/^/| /' conftest.$ac_ext >&5
7051
2ba49b59 7052ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7053fi
2ba49b59
KC
7054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055done
7056case $ac_lo in
7057?*) ac_cv_sizeof_long=$ac_lo;;
7058'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7059See \`config.log' for more details." >&5
7060echo "$as_me: error: cannot compute sizeof (long), 77
7061See \`config.log' for more details." >&2;}
7062 { (exit 1); exit 1; }; } ;;
7063esac
7064else
7065 if test "$cross_compiling" = yes; then
49c96104
SE
7066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7067See \`config.log' for more details." >&5
7068echo "$as_me: error: cannot run test program while cross compiling
7069See \`config.log' for more details." >&2;}
2ba49b59 7070 { (exit 1); exit 1; }; }
2e0fbf77
JW
7071else
7072 cat >conftest.$ac_ext <<_ACEOF
7073/* confdefs.h. */
7074_ACEOF
7075cat confdefs.h >>conftest.$ac_ext
7076cat >>conftest.$ac_ext <<_ACEOF
7077/* end confdefs.h. */
2ba49b59
KC
7078$ac_includes_default
7079long longval () { return (long) (sizeof (long)); }
7080unsigned long ulongval () { return (long) (sizeof (long)); }
7081#include <stdio.h>
7082#include <stdlib.h>
2e0fbf77
JW
7083int
7084main ()
7085{
7086
2ba49b59
KC
7087 FILE *f = fopen ("conftest.val", "w");
7088 if (! f)
7089 exit (1);
7090 if (((long) (sizeof (long))) < 0)
7091 {
7092 long i = longval ();
7093 if (i != ((long) (sizeof (long))))
7094 exit (1);
7095 fprintf (f, "%ld\n", i);
7096 }
7097 else
7098 {
7099 unsigned long i = ulongval ();
7100 if (i != ((long) (sizeof (long))))
7101 exit (1);
7102 fprintf (f, "%lu\n", i);
7103 }
7104 exit (ferror (f) || fclose (f) != 0);
7105
2e0fbf77
JW
7106 ;
7107 return 0;
7108}
7109_ACEOF
2ba49b59
KC
7110rm -f conftest$ac_exeext
7111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>&5
2e0fbf77
JW
7113 ac_status=$?
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 (eval $ac_try) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); }; }; then
2ba49b59 7121 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7122else
2ba49b59
KC
7123 echo "$as_me: program exited with status $ac_status" >&5
7124echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
2ba49b59
KC
7127( exit $ac_status )
7128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7129See \`config.log' for more details." >&5
7130echo "$as_me: error: cannot compute sizeof (long), 77
7131See \`config.log' for more details." >&2;}
7132 { (exit 1); exit 1; }; }
2e0fbf77 7133fi
2ba49b59 7134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7135fi
2ba49b59
KC
7136fi
7137rm -f conftest.val
7138else
7139 ac_cv_sizeof_long=0
7140fi
7141fi
7142echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7143echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7144cat >>confdefs.h <<_ACEOF
7145#define SIZEOF_LONG $ac_cv_sizeof_long
7146_ACEOF
7147
7148
7149if test "x${ac_cv_sizeof_long}" = "x8"; then
7150 host64=true
7151 BFD_HOST_64BIT_LONG=1
7152 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7153 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7154elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7155 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7156 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7157fi
7158
7159if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7160 BFD_HOST_64_BIT_DEFINED=1
7161 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7162 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7163fi
7164
7165
7166
7167
7168
7169
7170
7171# Put a plausible default for CC_FOR_BUILD in Makefile.
7172if test -z "$CC_FOR_BUILD"; then
7173 if test "x$cross_compiling" = "xno"; then
7174 CC_FOR_BUILD='$(CC)'
7175 else
7176 CC_FOR_BUILD=gcc
7177 fi
7178fi
7179
7180# Also set EXEEXT_FOR_BUILD.
7181if test "x$cross_compiling" = "xno"; then
7182 EXEEXT_FOR_BUILD='$(EXEEXT)'
7183else
7184 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7185echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7186if test "${bfd_cv_build_exeext+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189 rm -f conftest*
7190 echo 'int main () { return 0; }' > conftest.c
7191 bfd_cv_build_exeext=
7192 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7193 for file in conftest.*; do
7194 case $file in
7195 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7196 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7197 esac
7198 done
7199 rm -f conftest*
7200 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7201fi
7202echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7203echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7204 EXEEXT_FOR_BUILD=""
7205 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7206fi
7207
7208
7209
7210
7211
7212
7213
7214
7215for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7216do
7217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7218if eval "test \"\${$as_ac_Header+set}\" = set"; then
7219 echo "$as_me:$LINENO: checking for $ac_header" >&5
7220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7221if eval "test \"\${$as_ac_Header+set}\" = set"; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7223fi
7224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7226else
7227 # Is the header compilable?
7228echo "$as_me:$LINENO: checking $ac_header usability" >&5
7229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7230cat >conftest.$ac_ext <<_ACEOF
7231/* confdefs.h. */
7232_ACEOF
7233cat confdefs.h >>conftest.$ac_ext
7234cat >>conftest.$ac_ext <<_ACEOF
7235/* end confdefs.h. */
7236$ac_includes_default
7237#include <$ac_header>
7238_ACEOF
7239rm -f conftest.$ac_objext
7240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7241 (eval $ac_compile) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } &&
49c96104
SE
7248 { ac_try='test -z "$ac_c_werror_flag"
7249 || test ! -s conftest.err'
2ba49b59
KC
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7251 (eval $ac_try) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; } &&
7255 { ac_try='test -s conftest.$ac_objext'
7256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257 (eval $ac_try) 2>&5
7258 ac_status=$?
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 ac_header_compiler=yes
7262else
7263 echo "$as_me: failed program was:" >&5
7264sed 's/^/| /' conftest.$ac_ext >&5
7265
7266ac_header_compiler=no
7267fi
7268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7270echo "${ECHO_T}$ac_header_compiler" >&6
7271
7272# Is the header present?
7273echo "$as_me:$LINENO: checking $ac_header presence" >&5
7274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7275cat >conftest.$ac_ext <<_ACEOF
7276/* confdefs.h. */
7277_ACEOF
7278cat confdefs.h >>conftest.$ac_ext
7279cat >>conftest.$ac_ext <<_ACEOF
7280/* end confdefs.h. */
7281#include <$ac_header>
7282_ACEOF
7283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } >/dev/null; then
7291 if test -s conftest.err; then
7292 ac_cpp_err=$ac_c_preproc_warn_flag
7293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7294 else
7295 ac_cpp_err=
7296 fi
7297else
7298 ac_cpp_err=yes
7299fi
7300if test -z "$ac_cpp_err"; then
7301 ac_header_preproc=yes
7302else
7303 echo "$as_me: failed program was:" >&5
7304sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 ac_header_preproc=no
7307fi
7308rm -f conftest.err conftest.$ac_ext
7309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7310echo "${ECHO_T}$ac_header_preproc" >&6
7311
7312# So? What about this header?
7313case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7314 yes:no: )
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7319 ac_header_preproc=yes
7320 ;;
7321 no:yes:* )
7322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7325echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7329echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7334 (
7335 cat <<\_ASBOX
7336## ------------------------------------------ ##
7337## Report this to the AC_PACKAGE_NAME lists. ##
7338## ------------------------------------------ ##
7339_ASBOX
7340 ) |
7341 sed "s/^/$as_me: WARNING: /" >&2
7342 ;;
7343esac
7344echo "$as_me:$LINENO: checking for $ac_header" >&5
7345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7346if eval "test \"\${$as_ac_Header+set}\" = set"; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 eval "$as_ac_Header=\$ac_header_preproc"
7350fi
7351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7353
7354fi
7355if test `eval echo '${'$as_ac_Header'}'` = yes; then
7356 cat >>confdefs.h <<_ACEOF
7357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7358_ACEOF
7359
7360fi
7361
7362done
7363
7364
7365
7366
7367for ac_header in fcntl.h sys/file.h sys/time.h
7368do
7369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370if eval "test \"\${$as_ac_Header+set}\" = set"; then
7371 echo "$as_me:$LINENO: checking for $ac_header" >&5
7372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7373if eval "test \"\${$as_ac_Header+set}\" = set"; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375fi
7376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7378else
7379 # Is the header compilable?
7380echo "$as_me:$LINENO: checking $ac_header usability" >&5
7381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7382cat >conftest.$ac_ext <<_ACEOF
7383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
7388$ac_includes_default
7389#include <$ac_header>
7390_ACEOF
7391rm -f conftest.$ac_objext
7392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393 (eval $ac_compile) 2>conftest.er1
7394 ac_status=$?
7395 grep -v '^ *+' conftest.er1 >conftest.err
7396 rm -f conftest.er1
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
49c96104
SE
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
2ba49b59
KC
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403 (eval $ac_try) 2>&5
7404 ac_status=$?
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest.$ac_objext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_header_compiler=yes
7414else
7415 echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418ac_header_compiler=no
7419fi
7420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422echo "${ECHO_T}$ac_header_compiler" >&6
7423
7424# Is the header present?
7425echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7427cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433#include <$ac_header>
7434_ACEOF
7435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } >/dev/null; then
7443 if test -s conftest.err; then
7444 ac_cpp_err=$ac_c_preproc_warn_flag
7445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7446 else
7447 ac_cpp_err=
7448 fi
7449else
7450 ac_cpp_err=yes
7451fi
7452if test -z "$ac_cpp_err"; then
7453 ac_header_preproc=yes
7454else
7455 echo "$as_me: failed program was:" >&5
7456sed 's/^/| /' conftest.$ac_ext >&5
7457
7458 ac_header_preproc=no
7459fi
7460rm -f conftest.err conftest.$ac_ext
7461echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7462echo "${ECHO_T}$ac_header_preproc" >&6
7463
7464# So? What about this header?
7465case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7466 yes:no: )
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7468echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7470echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7471 ac_header_preproc=yes
7472 ;;
7473 no:yes:* )
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7475echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7477echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7479echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7481echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7483echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7485echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7486 (
7487 cat <<\_ASBOX
7488## ------------------------------------------ ##
7489## Report this to the AC_PACKAGE_NAME lists. ##
7490## ------------------------------------------ ##
7491_ASBOX
7492 ) |
7493 sed "s/^/$as_me: WARNING: /" >&2
7494 ;;
7495esac
7496echo "$as_me:$LINENO: checking for $ac_header" >&5
7497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7498if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499 echo $ECHO_N "(cached) $ECHO_C" >&6
7500else
7501 eval "$as_ac_Header=\$ac_header_preproc"
7502fi
7503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7505
7506fi
7507if test `eval echo '${'$as_ac_Header'}'` = yes; then
7508 cat >>confdefs.h <<_ACEOF
7509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510_ACEOF
7511
7512fi
7513
7514done
7515
7516echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7517echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7518if test "${ac_cv_header_time+set}" = set; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7520else
7521 cat >conftest.$ac_ext <<_ACEOF
7522/* confdefs.h. */
7523_ACEOF
7524cat confdefs.h >>conftest.$ac_ext
7525cat >>conftest.$ac_ext <<_ACEOF
7526/* end confdefs.h. */
7527#include <sys/types.h>
7528#include <sys/time.h>
7529#include <time.h>
7530
7531int
7532main ()
7533{
7534if ((struct tm *) 0)
7535return 0;
7536 ;
7537 return 0;
7538}
7539_ACEOF
7540rm -f conftest.$ac_objext
7541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542 (eval $ac_compile) 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } &&
49c96104
SE
7549 { ac_try='test -z "$ac_c_werror_flag"
7550 || test ! -s conftest.err'
2ba49b59
KC
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552 (eval $ac_try) 2>&5
7553 ac_status=$?
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; } &&
7556 { ac_try='test -s conftest.$ac_objext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
7562 ac_cv_header_time=yes
7563else
7564 echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567ac_cv_header_time=no
7568fi
7569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570fi
7571echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7572echo "${ECHO_T}$ac_cv_header_time" >&6
7573if test $ac_cv_header_time = yes; then
7574
7575cat >>confdefs.h <<\_ACEOF
7576#define TIME_WITH_SYS_TIME 1
7577_ACEOF
7578
7579fi
7580
7581
7582
7583
7584
7585
7586ac_header_dirent=no
7587for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7588 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7589echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7590echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7591if eval "test \"\${$as_ac_Header+set}\" = set"; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 cat >conftest.$ac_ext <<_ACEOF
7595/* confdefs.h. */
7596_ACEOF
7597cat confdefs.h >>conftest.$ac_ext
7598cat >>conftest.$ac_ext <<_ACEOF
7599/* end confdefs.h. */
7600#include <sys/types.h>
7601#include <$ac_hdr>
7602
7603int
7604main ()
7605{
7606if ((DIR *) 0)
7607return 0;
7608 ;
7609 return 0;
7610}
7611_ACEOF
7612rm -f conftest.$ac_objext
7613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>conftest.er1
7615 ac_status=$?
7616 grep -v '^ *+' conftest.er1 >conftest.err
7617 rm -f conftest.er1
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } &&
49c96104
SE
7621 { ac_try='test -z "$ac_c_werror_flag"
7622 || test ! -s conftest.err'
2ba49b59
KC
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7634 eval "$as_ac_Header=yes"
7635else
7636 echo "$as_me: failed program was:" >&5
7637sed 's/^/| /' conftest.$ac_ext >&5
7638
7639eval "$as_ac_Header=no"
7640fi
7641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7642fi
7643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7644echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7645if test `eval echo '${'$as_ac_Header'}'` = yes; then
7646 cat >>confdefs.h <<_ACEOF
7647#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7648_ACEOF
7649
7650ac_header_dirent=$ac_hdr; break
7651fi
7652
7653done
7654# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7655if test $ac_header_dirent = dirent.h; then
7656 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7657echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7658if test "${ac_cv_search_opendir+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661 ac_func_search_save_LIBS=$LIBS
7662ac_cv_search_opendir=no
7663cat >conftest.$ac_ext <<_ACEOF
7664/* confdefs.h. */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h. */
7669
7670/* Override any gcc2 internal prototype to avoid an error. */
7671#ifdef __cplusplus
7672extern "C"
7673#endif
7674/* We use char because int might match the return type of a gcc2
7675 builtin and then its argument prototype would still apply. */
7676char opendir ();
7677int
7678main ()
7679{
7680opendir ();
7681 ;
7682 return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext conftest$ac_exeext
7686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7687 (eval $ac_link) 2>conftest.er1
7688 ac_status=$?
7689 grep -v '^ *+' conftest.er1 >conftest.err
7690 rm -f conftest.er1
7691 cat conftest.err >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
49c96104
SE
7694 { ac_try='test -z "$ac_c_werror_flag"
7695 || test ! -s conftest.err'
2ba49b59
KC
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; } &&
7701 { ac_try='test -s conftest$ac_exeext'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; }; then
7707 ac_cv_search_opendir="none required"
7708else
7709 echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712fi
7713rm -f conftest.err conftest.$ac_objext \
7714 conftest$ac_exeext conftest.$ac_ext
7715if test "$ac_cv_search_opendir" = no; then
7716 for ac_lib in dir; do
7717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7718 cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h. */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h. */
7724
7725/* Override any gcc2 internal prototype to avoid an error. */
7726#ifdef __cplusplus
7727extern "C"
7728#endif
7729/* We use char because int might match the return type of a gcc2
7730 builtin and then its argument prototype would still apply. */
7731char opendir ();
7732int
7733main ()
7734{
7735opendir ();
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext conftest$ac_exeext
7741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7742 (eval $ac_link) 2>conftest.er1
7743 ac_status=$?
7744 grep -v '^ *+' conftest.er1 >conftest.err
7745 rm -f conftest.er1
7746 cat conftest.err >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); } &&
49c96104
SE
7749 { ac_try='test -z "$ac_c_werror_flag"
7750 || test ! -s conftest.err'
2ba49b59
KC
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752 (eval $ac_try) 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest$ac_exeext'
7757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758 (eval $ac_try) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); }; }; then
7762 ac_cv_search_opendir="-l$ac_lib"
7763break
7764else
7765 echo "$as_me: failed program was:" >&5
7766sed 's/^/| /' conftest.$ac_ext >&5
7767
7768fi
7769rm -f conftest.err conftest.$ac_objext \
7770 conftest$ac_exeext conftest.$ac_ext
7771 done
7772fi
7773LIBS=$ac_func_search_save_LIBS
7774fi
7775echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7776echo "${ECHO_T}$ac_cv_search_opendir" >&6
7777if test "$ac_cv_search_opendir" != no; then
7778 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7779
7780fi
7781
7782else
7783 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7784echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7785if test "${ac_cv_search_opendir+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 ac_func_search_save_LIBS=$LIBS
7789ac_cv_search_opendir=no
7790cat >conftest.$ac_ext <<_ACEOF
7791/* confdefs.h. */
7792_ACEOF
7793cat confdefs.h >>conftest.$ac_ext
7794cat >>conftest.$ac_ext <<_ACEOF
7795/* end confdefs.h. */
7796
7797/* Override any gcc2 internal prototype to avoid an error. */
7798#ifdef __cplusplus
7799extern "C"
7800#endif
7801/* We use char because int might match the return type of a gcc2
7802 builtin and then its argument prototype would still apply. */
7803char opendir ();
7804int
7805main ()
7806{
7807opendir ();
7808 ;
7809 return 0;
7810}
7811_ACEOF
7812rm -f conftest.$ac_objext conftest$ac_exeext
7813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814 (eval $ac_link) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
49c96104
SE
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
2ba49b59
KC
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest$ac_exeext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_cv_search_opendir="none required"
7835else
7836 echo "$as_me: failed program was:" >&5
7837sed 's/^/| /' conftest.$ac_ext >&5
7838
7839fi
7840rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842if test "$ac_cv_search_opendir" = no; then
7843 for ac_lib in x; do
7844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7845 cat >conftest.$ac_ext <<_ACEOF
7846/* confdefs.h. */
7847_ACEOF
7848cat confdefs.h >>conftest.$ac_ext
7849cat >>conftest.$ac_ext <<_ACEOF
7850/* end confdefs.h. */
7851
7852/* Override any gcc2 internal prototype to avoid an error. */
7853#ifdef __cplusplus
7854extern "C"
7855#endif
7856/* We use char because int might match the return type of a gcc2
7857 builtin and then its argument prototype would still apply. */
7858char opendir ();
7859int
7860main ()
7861{
7862opendir ();
7863 ;
7864 return 0;
7865}
7866_ACEOF
7867rm -f conftest.$ac_objext conftest$ac_exeext
7868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7869 (eval $ac_link) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
49c96104
SE
7876 { ac_try='test -z "$ac_c_werror_flag"
7877 || test ! -s conftest.err'
2ba49b59
KC
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_search_opendir="-l$ac_lib"
7890break
7891else
7892 echo "$as_me: failed program was:" >&5
7893sed 's/^/| /' conftest.$ac_ext >&5
7894
7895fi
7896rm -f conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 done
7899fi
7900LIBS=$ac_func_search_save_LIBS
7901fi
7902echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7903echo "${ECHO_T}$ac_cv_search_opendir" >&6
7904if test "$ac_cv_search_opendir" != no; then
7905 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7906
7907fi
7908
7909fi
7910
7911echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7912echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7913if test "${gcc_cv_header_string+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7915else
7916 cat >conftest.$ac_ext <<_ACEOF
7917/* confdefs.h. */
7918_ACEOF
7919cat confdefs.h >>conftest.$ac_ext
7920cat >>conftest.$ac_ext <<_ACEOF
7921/* end confdefs.h. */
7922#include <string.h>
7923#include <strings.h>
7924int
7925main ()
7926{
7927
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext
7933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7934 (eval $ac_compile) 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } &&
49c96104
SE
7941 { ac_try='test -z "$ac_c_werror_flag"
7942 || test ! -s conftest.err'
2ba49b59
KC
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 (eval $ac_try) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; } &&
7948 { ac_try='test -s conftest.$ac_objext'
7949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 (eval $ac_try) 2>&5
7951 ac_status=$?
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); }; }; then
7954 gcc_cv_header_string=yes
7955else
7956 echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959gcc_cv_header_string=no
7960fi
7961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7962fi
7963echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7964echo "${ECHO_T}$gcc_cv_header_string" >&6
7965if test $gcc_cv_header_string = yes; then
7966
7967cat >>confdefs.h <<\_ACEOF
7968#define STRING_WITH_STRINGS 1
7969_ACEOF
7970
2e0fbf77
JW
7971fi
7972
5464f5a1
NN
7973
7974
7975
7976
7977
7978
7979
633fd09f 7980for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 7981do
5464f5a1
NN
7982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7983echo "$as_me:$LINENO: checking for $ac_func" >&5
7984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7985if eval "test \"\${$as_ac_var+set}\" = set"; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988 cat >conftest.$ac_ext <<_ACEOF
7989/* confdefs.h. */
7990_ACEOF
7991cat confdefs.h >>conftest.$ac_ext
7992cat >>conftest.$ac_ext <<_ACEOF
7993/* end confdefs.h. */
7994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7996#define $ac_func innocuous_$ac_func
7997
252b5132 7998/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7999 which can conflict with char $ac_func (); below.
8000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8001 <limits.h> exists even on freestanding compilers. */
8002
8003#ifdef __STDC__
8004# include <limits.h>
8005#else
8006# include <assert.h>
8007#endif
6be7c12c 8008
5464f5a1 8009#undef $ac_func
252b5132 8010
5464f5a1
NN
8011/* Override any gcc2 internal prototype to avoid an error. */
8012#ifdef __cplusplus
8013extern "C"
8014{
8015#endif
8016/* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018char $ac_func ();
252b5132
RH
8019/* The GNU C library defines this for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8023choke me
8024#else
5464f5a1
NN
8025char (*f) () = $ac_func;
8026#endif
8027#ifdef __cplusplus
8028}
252b5132
RH
8029#endif
8030
5464f5a1
NN
8031int
8032main ()
8033{
8034return f != $ac_func;
8035 ;
8036 return 0;
8037}
8038_ACEOF
8039rm -f conftest.$ac_objext conftest$ac_exeext
8040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
49c96104
SE
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
5464f5a1
NN
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 eval "$as_ac_var=yes"
8062else
8063 echo "$as_me: failed program was:" >&5
8064sed 's/^/| /' conftest.$ac_ext >&5
8065
8066eval "$as_ac_var=no"
8067fi
8068rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070fi
8071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8073if test `eval echo '${'$as_ac_var'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8076_ACEOF
252b5132 8077
252b5132
RH
8078fi
8079done
8080
5464f5a1 8081
49c97a80
ILT
8082for ac_func in strtoull
8083do
5464f5a1
NN
8084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8085echo "$as_me:$LINENO: checking for $ac_func" >&5
8086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8087if eval "test \"\${$as_ac_var+set}\" = set"; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 cat >conftest.$ac_ext <<_ACEOF
8091/* confdefs.h. */
8092_ACEOF
8093cat confdefs.h >>conftest.$ac_ext
8094cat >>conftest.$ac_ext <<_ACEOF
8095/* end confdefs.h. */
8096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8098#define $ac_func innocuous_$ac_func
8099
49c97a80 8100/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8101 which can conflict with char $ac_func (); below.
8102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8103 <limits.h> exists even on freestanding compilers. */
8104
8105#ifdef __STDC__
8106# include <limits.h>
8107#else
8108# include <assert.h>
8109#endif
49c97a80 8110
5464f5a1 8111#undef $ac_func
49c97a80 8112
5464f5a1
NN
8113/* Override any gcc2 internal prototype to avoid an error. */
8114#ifdef __cplusplus
8115extern "C"
8116{
8117#endif
8118/* We use char because int might match the return type of a gcc2
8119 builtin and then its argument prototype would still apply. */
8120char $ac_func ();
49c97a80
ILT
8121/* The GNU C library defines this for functions which it implements
8122 to always fail with ENOSYS. Some functions are actually named
8123 something starting with __ and the normal name is an alias. */
8124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8125choke me
8126#else
5464f5a1
NN
8127char (*f) () = $ac_func;
8128#endif
8129#ifdef __cplusplus
8130}
49c97a80
ILT
8131#endif
8132
5464f5a1
NN
8133int
8134main ()
8135{
8136return f != $ac_func;
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141rm -f conftest.$ac_objext conftest$ac_exeext
8142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8143 (eval $ac_link) 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
49c96104
SE
8150 { ac_try='test -z "$ac_c_werror_flag"
8151 || test ! -s conftest.err'
5464f5a1
NN
8152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8153 (eval $ac_try) 2>&5
8154 ac_status=$?
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); }; } &&
8157 { ac_try='test -s conftest$ac_exeext'
8158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159 (eval $ac_try) 2>&5
8160 ac_status=$?
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); }; }; then
8163 eval "$as_ac_var=yes"
8164else
8165 echo "$as_me: failed program was:" >&5
8166sed 's/^/| /' conftest.$ac_ext >&5
8167
8168eval "$as_ac_var=no"
8169fi
8170rm -f conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172fi
8173echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8174echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8175if test `eval echo '${'$as_ac_var'}'` = yes; then
8176 cat >>confdefs.h <<_ACEOF
8177#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8178_ACEOF
49c97a80 8179
49c97a80
ILT
8180fi
8181done
8182
6be7c12c 8183
2e9ebff5
JG
8184echo "$as_me:$LINENO: checking whether basename is declared" >&5
8185echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8186if test "${ac_cv_have_decl_basename+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188else
8189 cat >conftest.$ac_ext <<_ACEOF
8190/* confdefs.h. */
8191_ACEOF
8192cat confdefs.h >>conftest.$ac_ext
8193cat >>conftest.$ac_ext <<_ACEOF
8194/* end confdefs.h. */
ec7b76fe 8195$ac_includes_default
2e9ebff5
JG
8196int
8197main ()
8198{
8199#ifndef basename
8200 char *p = (char *) basename;
8201#endif
8202
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext
8208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8209 (eval $ac_compile) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
49c96104
SE
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
2e9ebff5
JG
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 ac_cv_have_decl_basename=yes
8230else
8231 echo "$as_me: failed program was:" >&5
8232sed 's/^/| /' conftest.$ac_ext >&5
8233
8234ac_cv_have_decl_basename=no
8235fi
8236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
8238echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8239echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8240if test $ac_cv_have_decl_basename = yes; then
8241
8242cat >>confdefs.h <<_ACEOF
8243#define HAVE_DECL_BASENAME 1
8244_ACEOF
8245
8246
8247else
8248 cat >>confdefs.h <<_ACEOF
8249#define HAVE_DECL_BASENAME 0
8250_ACEOF
8251
8252
8253fi
8254
8255
ec7b76fe
JG
8256echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8257echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8258if test "${ac_cv_have_decl_ftello+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267$ac_includes_default
8268int
8269main ()
8270{
8271#ifndef ftello
8272 char *p = (char *) ftello;
8273#endif
8274
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext
8280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
49c96104
SE
8288 { ac_try='test -z "$ac_c_werror_flag"
8289 || test ! -s conftest.err'
ec7b76fe
JG
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest.$ac_objext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_have_decl_ftello=yes
8302else
8303 echo "$as_me: failed program was:" >&5
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
8306ac_cv_have_decl_ftello=no
8307fi
8308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8309fi
8310echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8311echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8312if test $ac_cv_have_decl_ftello = yes; then
8313
8314cat >>confdefs.h <<_ACEOF
8315#define HAVE_DECL_FTELLO 1
8316_ACEOF
8317
8318
8319else
8320 cat >>confdefs.h <<_ACEOF
8321#define HAVE_DECL_FTELLO 0
8322_ACEOF
8323
8324
8325fi
8326
8327
8328echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8329echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8330if test "${ac_cv_have_decl_ftello64+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8332else
8333 cat >conftest.$ac_ext <<_ACEOF
8334/* confdefs.h. */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h. */
8339$ac_includes_default
8340int
8341main ()
8342{
8343#ifndef ftello64
8344 char *p = (char *) ftello64;
8345#endif
8346
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext
8352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8353 (eval $ac_compile) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
49c96104
SE
8360 { ac_try='test -z "$ac_c_werror_flag"
8361 || test ! -s conftest.err'
ec7b76fe
JG
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_cv_have_decl_ftello64=yes
8374else
8375 echo "$as_me: failed program was:" >&5
8376sed 's/^/| /' conftest.$ac_ext >&5
8377
8378ac_cv_have_decl_ftello64=no
8379fi
8380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8381fi
8382echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8383echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8384if test $ac_cv_have_decl_ftello64 = yes; then
8385
8386cat >>confdefs.h <<_ACEOF
8387#define HAVE_DECL_FTELLO64 1
8388_ACEOF
8389
8390
8391else
8392 cat >>confdefs.h <<_ACEOF
8393#define HAVE_DECL_FTELLO64 0
8394_ACEOF
8395
8396
8397fi
8398
8399
8400echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8401echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8402if test "${ac_cv_have_decl_fseeko+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405 cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
8411$ac_includes_default
8412int
8413main ()
8414{
8415#ifndef fseeko
8416 char *p = (char *) fseeko;
8417#endif
8418
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext
8424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8425 (eval $ac_compile) 2>conftest.er1
8426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
49c96104
SE
8432 { ac_try='test -z "$ac_c_werror_flag"
8433 || test ! -s conftest.err'
ec7b76fe
JG
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; } &&
8439 { ac_try='test -s conftest.$ac_objext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8441 (eval $ac_try) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_have_decl_fseeko=yes
8446else
8447 echo "$as_me: failed program was:" >&5
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
8450ac_cv_have_decl_fseeko=no
8451fi
8452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8455echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8456if test $ac_cv_have_decl_fseeko = yes; then
8457
8458cat >>confdefs.h <<_ACEOF
8459#define HAVE_DECL_FSEEKO 1
8460_ACEOF
8461
8462
8463else
8464 cat >>confdefs.h <<_ACEOF
8465#define HAVE_DECL_FSEEKO 0
8466_ACEOF
8467
8468
8469fi
8470
8471
8472echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8473echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8474if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476else
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483$ac_includes_default
8484int
8485main ()
8486{
8487#ifndef fseeko64
8488 char *p = (char *) fseeko64;
8489#endif
8490
8491 ;
8492 return 0;
8493}
8494_ACEOF
8495rm -f conftest.$ac_objext
8496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
49c96104
SE
8504 { ac_try='test -z "$ac_c_werror_flag"
8505 || test ! -s conftest.err'
ec7b76fe
JG
8506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 (eval $ac_try) 2>&5
8508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; } &&
8511 { ac_try='test -s conftest.$ac_objext'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 (eval $ac_try) 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_have_decl_fseeko64=yes
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522ac_cv_have_decl_fseeko64=no
8523fi
8524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8527echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8528if test $ac_cv_have_decl_fseeko64 = yes; then
8529
8530cat >>confdefs.h <<_ACEOF
8531#define HAVE_DECL_FSEEKO64 1
8532_ACEOF
8533
8534
8535else
8536 cat >>confdefs.h <<_ACEOF
8537#define HAVE_DECL_FSEEKO64 0
8538_ACEOF
8539
8540
8541fi
8542
8543
2e9ebff5 8544
6be7c12c 8545
252b5132 8546case "${host}" in
855b0be7 8547*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
8548
8549cat >>confdefs.h <<\_ACEOF
252b5132 8550#define USE_BINARY_FOPEN 1
5464f5a1 8551_ACEOF
252b5132
RH
8552 ;;
8553esac
8554
d34a2b1d
JG
8555echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8556echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8557if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 8558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8559else
5464f5a1
NN
8560 cat >conftest.$ac_ext <<_ACEOF
8561/* confdefs.h. */
8562_ACEOF
8563cat confdefs.h >>conftest.$ac_ext
8564cat >>conftest.$ac_ext <<_ACEOF
8565/* end confdefs.h. */
d34a2b1d 8566$ac_includes_default
5464f5a1
NN
8567int
8568main ()
8569{
d34a2b1d
JG
8570#ifndef ffs
8571 char *p = (char *) ffs;
8572#endif
8573
5464f5a1
NN
8574 ;
8575 return 0;
8576}
8577_ACEOF
8578rm -f conftest.$ac_objext
8579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8580 (eval $ac_compile) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
49c96104
SE
8587 { ac_try='test -z "$ac_c_werror_flag"
8588 || test ! -s conftest.err'
5464f5a1
NN
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590 (eval $ac_try) 2>&5
8591 ac_status=$?
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest.$ac_objext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596 (eval $ac_try) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
d34a2b1d 8600 ac_cv_have_decl_ffs=yes
252b5132 8601else
5464f5a1
NN
8602 echo "$as_me: failed program was:" >&5
8603sed 's/^/| /' conftest.$ac_ext >&5
8604
d34a2b1d 8605ac_cv_have_decl_ffs=no
252b5132 8606fi
5464f5a1 8607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8608fi
d34a2b1d
JG
8609echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8610echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8611if test $ac_cv_have_decl_ffs = yes; then
252b5132 8612
d34a2b1d
JG
8613cat >>confdefs.h <<_ACEOF
8614#define HAVE_DECL_FFS 1
8615_ACEOF
5464f5a1 8616
d34a2b1d
JG
8617
8618else
8619 cat >>confdefs.h <<_ACEOF
8620#define HAVE_DECL_FFS 0
5464f5a1 8621_ACEOF
252b5132 8622
d34a2b1d 8623
252b5132
RH
8624fi
8625
d34a2b1d
JG
8626
8627echo "$as_me:$LINENO: checking whether free is declared" >&5
8628echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8629if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 8630 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8631else
5464f5a1
NN
8632 cat >conftest.$ac_ext <<_ACEOF
8633/* confdefs.h. */
8634_ACEOF
8635cat confdefs.h >>conftest.$ac_ext
8636cat >>conftest.$ac_ext <<_ACEOF
8637/* end confdefs.h. */
d34a2b1d 8638$ac_includes_default
5464f5a1
NN
8639int
8640main ()
8641{
d34a2b1d
JG
8642#ifndef free
8643 char *p = (char *) free;
8644#endif
8645
5464f5a1
NN
8646 ;
8647 return 0;
8648}
8649_ACEOF
8650rm -f conftest.$ac_objext
8651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8652 (eval $ac_compile) 2>conftest.er1
8653 ac_status=$?
8654 grep -v '^ *+' conftest.er1 >conftest.err
8655 rm -f conftest.er1
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
49c96104
SE
8659 { ac_try='test -z "$ac_c_werror_flag"
8660 || test ! -s conftest.err'
5464f5a1
NN
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
d34a2b1d 8672 ac_cv_have_decl_free=yes
252b5132 8673else
5464f5a1
NN
8674 echo "$as_me: failed program was:" >&5
8675sed 's/^/| /' conftest.$ac_ext >&5
8676
d34a2b1d 8677ac_cv_have_decl_free=no
252b5132 8678fi
5464f5a1 8679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8680fi
d34a2b1d
JG
8681echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8682echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8683if test $ac_cv_have_decl_free = yes; then
8684
8685cat >>confdefs.h <<_ACEOF
8686#define HAVE_DECL_FREE 1
8687_ACEOF
252b5132 8688
5464f5a1 8689
d34a2b1d
JG
8690else
8691 cat >>confdefs.h <<_ACEOF
8692#define HAVE_DECL_FREE 0
5464f5a1 8693_ACEOF
252b5132 8694
d34a2b1d 8695
252b5132
RH
8696fi
8697
d34a2b1d
JG
8698
8699echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8700echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8701if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 8702 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8703else
5464f5a1
NN
8704 cat >conftest.$ac_ext <<_ACEOF
8705/* confdefs.h. */
8706_ACEOF
8707cat confdefs.h >>conftest.$ac_ext
8708cat >>conftest.$ac_ext <<_ACEOF
8709/* end confdefs.h. */
d34a2b1d 8710$ac_includes_default
5464f5a1
NN
8711int
8712main ()
8713{
d34a2b1d
JG
8714#ifndef getenv
8715 char *p = (char *) getenv;
8716#endif
8717
5464f5a1
NN
8718 ;
8719 return 0;
8720}
8721_ACEOF
8722rm -f conftest.$ac_objext
8723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
49c96104
SE
8731 { ac_try='test -z "$ac_c_werror_flag"
8732 || test ! -s conftest.err'
5464f5a1
NN
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8734 (eval $ac_try) 2>&5
8735 ac_status=$?
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
d34a2b1d 8744 ac_cv_have_decl_getenv=yes
252b5132 8745else
5464f5a1
NN
8746 echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
d34a2b1d 8749ac_cv_have_decl_getenv=no
252b5132 8750fi
5464f5a1 8751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8752fi
d34a2b1d
JG
8753echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8754echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8755if test $ac_cv_have_decl_getenv = yes; then
252b5132 8756
d34a2b1d
JG
8757cat >>confdefs.h <<_ACEOF
8758#define HAVE_DECL_GETENV 1
8759_ACEOF
5464f5a1 8760
d34a2b1d
JG
8761
8762else
8763 cat >>confdefs.h <<_ACEOF
8764#define HAVE_DECL_GETENV 0
5464f5a1 8765_ACEOF
252b5132 8766
d34a2b1d 8767
252b5132
RH
8768fi
8769
d34a2b1d
JG
8770
8771echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8772echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8773if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 8774 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8775else
5464f5a1
NN
8776 cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
d34a2b1d 8782$ac_includes_default
5464f5a1
NN
8783int
8784main ()
8785{
d34a2b1d
JG
8786#ifndef malloc
8787 char *p = (char *) malloc;
8788#endif
8789
5464f5a1
NN
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794rm -f conftest.$ac_objext
8795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8796 (eval $ac_compile) 2>conftest.er1
8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
49c96104
SE
8803 { ac_try='test -z "$ac_c_werror_flag"
8804 || test ! -s conftest.err'
5464f5a1
NN
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; } &&
8810 { ac_try='test -s conftest.$ac_objext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812 (eval $ac_try) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
d34a2b1d 8816 ac_cv_have_decl_malloc=yes
252b5132 8817else
5464f5a1
NN
8818 echo "$as_me: failed program was:" >&5
8819sed 's/^/| /' conftest.$ac_ext >&5
8820
d34a2b1d 8821ac_cv_have_decl_malloc=no
252b5132 8822fi
5464f5a1 8823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8824fi
d34a2b1d
JG
8825echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8826echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8827if test $ac_cv_have_decl_malloc = yes; then
252b5132 8828
d34a2b1d
JG
8829cat >>confdefs.h <<_ACEOF
8830#define HAVE_DECL_MALLOC 1
8831_ACEOF
5464f5a1 8832
d34a2b1d
JG
8833
8834else
8835 cat >>confdefs.h <<_ACEOF
8836#define HAVE_DECL_MALLOC 0
5464f5a1 8837_ACEOF
252b5132 8838
d34a2b1d 8839
252b5132
RH
8840fi
8841
d34a2b1d
JG
8842
8843echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8844echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8845if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 8846 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8847else
5464f5a1
NN
8848 cat >conftest.$ac_ext <<_ACEOF
8849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
d34a2b1d 8854$ac_includes_default
5464f5a1
NN
8855int
8856main ()
8857{
d34a2b1d
JG
8858#ifndef realloc
8859 char *p = (char *) realloc;
8860#endif
8861
5464f5a1
NN
8862 ;
8863 return 0;
8864}
8865_ACEOF
8866rm -f conftest.$ac_objext
8867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8868 (eval $ac_compile) 2>conftest.er1
8869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } &&
49c96104
SE
8875 { ac_try='test -z "$ac_c_werror_flag"
8876 || test ! -s conftest.err'
5464f5a1
NN
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878 (eval $ac_try) 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; } &&
8882 { ac_try='test -s conftest.$ac_objext'
8883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884 (eval $ac_try) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); }; }; then
d34a2b1d 8888 ac_cv_have_decl_realloc=yes
252b5132 8889else
5464f5a1
NN
8890 echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
d34a2b1d 8893ac_cv_have_decl_realloc=no
252b5132 8894fi
5464f5a1 8895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8896fi
d34a2b1d
JG
8897echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8898echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8899if test $ac_cv_have_decl_realloc = yes; then
8900
8901cat >>confdefs.h <<_ACEOF
8902#define HAVE_DECL_REALLOC 1
8903_ACEOF
252b5132 8904
5464f5a1 8905
d34a2b1d
JG
8906else
8907 cat >>confdefs.h <<_ACEOF
8908#define HAVE_DECL_REALLOC 0
efa9bda4
AL
8909_ACEOF
8910
d34a2b1d 8911
efa9bda4
AL
8912fi
8913
d34a2b1d 8914
be5cacdb
L
8915echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8916echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8917if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919else
8920 cat >conftest.$ac_ext <<_ACEOF
8921/* confdefs.h. */
8922_ACEOF
8923cat confdefs.h >>conftest.$ac_ext
8924cat >>conftest.$ac_ext <<_ACEOF
8925/* end confdefs.h. */
8926$ac_includes_default
8927int
8928main ()
8929{
8930#ifndef stpcpy
8931 char *p = (char *) stpcpy;
8932#endif
8933
8934 ;
8935 return 0;
8936}
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
49c96104
SE
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
be5cacdb
L
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_have_decl_stpcpy=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
8965ac_cv_have_decl_stpcpy=no
8966fi
8967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968fi
8969echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8970echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8971if test $ac_cv_have_decl_stpcpy = yes; then
8972
8973cat >>confdefs.h <<_ACEOF
8974#define HAVE_DECL_STPCPY 1
8975_ACEOF
8976
8977
8978else
8979 cat >>confdefs.h <<_ACEOF
8980#define HAVE_DECL_STPCPY 0
8981_ACEOF
8982
8983
8984fi
8985
8986
d34a2b1d
JG
8987echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8988echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8989if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991else
8992 cat >conftest.$ac_ext <<_ACEOF
8993/* confdefs.h. */
8994_ACEOF
8995cat confdefs.h >>conftest.$ac_ext
8996cat >>conftest.$ac_ext <<_ACEOF
8997/* end confdefs.h. */
d34a2b1d 8998$ac_includes_default
efa9bda4
AL
8999int
9000main ()
9001{
d34a2b1d
JG
9002#ifndef strstr
9003 char *p = (char *) strstr;
9004#endif
9005
efa9bda4
AL
9006 ;
9007 return 0;
9008}
9009_ACEOF
9010rm -f conftest.$ac_objext
9011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9012 (eval $ac_compile) 2>conftest.er1
9013 ac_status=$?
9014 grep -v '^ *+' conftest.er1 >conftest.err
9015 rm -f conftest.er1
9016 cat conftest.err >&5
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); } &&
49c96104
SE
9019 { ac_try='test -z "$ac_c_werror_flag"
9020 || test ! -s conftest.err'
efa9bda4
AL
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; } &&
9026 { ac_try='test -s conftest.$ac_objext'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028 (eval $ac_try) 2>&5
9029 ac_status=$?
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; }; then
d34a2b1d 9032 ac_cv_have_decl_strstr=yes
efa9bda4
AL
9033else
9034 echo "$as_me: failed program was:" >&5
9035sed 's/^/| /' conftest.$ac_ext >&5
9036
d34a2b1d 9037ac_cv_have_decl_strstr=no
efa9bda4
AL
9038fi
9039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9040fi
d34a2b1d
JG
9041echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9042echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9043if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 9044
d34a2b1d
JG
9045cat >>confdefs.h <<_ACEOF
9046#define HAVE_DECL_STRSTR 1
9047_ACEOF
efa9bda4 9048
d34a2b1d
JG
9049
9050else
9051 cat >>confdefs.h <<_ACEOF
9052#define HAVE_DECL_STRSTR 0
5464f5a1 9053_ACEOF
252b5132 9054
d34a2b1d 9055
252b5132
RH
9056fi
9057
6be7c12c 9058
36527912
AJ
9059echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9060echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9061if test "${ac_cv_have_decl_snprintf+set}" = set; then
9062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064 cat >conftest.$ac_ext <<_ACEOF
9065/* confdefs.h. */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
9069/* end confdefs.h. */
9070$ac_includes_default
9071int
9072main ()
9073{
9074#ifndef snprintf
9075 char *p = (char *) snprintf;
9076#endif
9077
9078 ;
9079 return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext
9083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
49c96104
SE
9091 { ac_try='test -z "$ac_c_werror_flag"
9092 || test ! -s conftest.err'
36527912
AJ
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; } &&
9098 { ac_try='test -s conftest.$ac_objext'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; }; then
9104 ac_cv_have_decl_snprintf=yes
9105else
9106 echo "$as_me: failed program was:" >&5
9107sed 's/^/| /' conftest.$ac_ext >&5
9108
9109ac_cv_have_decl_snprintf=no
9110fi
9111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9112fi
9113echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9114echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9115if test $ac_cv_have_decl_snprintf = yes; then
9116
9117cat >>confdefs.h <<_ACEOF
9118#define HAVE_DECL_SNPRINTF 1
9119_ACEOF
9120
9121
9122else
9123 cat >>confdefs.h <<_ACEOF
9124#define HAVE_DECL_SNPRINTF 0
9125_ACEOF
9126
9127
9128fi
9129
9130
9131echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9132echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9133if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135else
9136 cat >conftest.$ac_ext <<_ACEOF
9137/* confdefs.h. */
9138_ACEOF
9139cat confdefs.h >>conftest.$ac_ext
9140cat >>conftest.$ac_ext <<_ACEOF
9141/* end confdefs.h. */
9142$ac_includes_default
9143int
9144main ()
9145{
9146#ifndef vsnprintf
9147 char *p = (char *) vsnprintf;
9148#endif
9149
9150 ;
9151 return 0;
9152}
9153_ACEOF
9154rm -f conftest.$ac_objext
9155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9156 (eval $ac_compile) 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } &&
49c96104
SE
9163 { ac_try='test -z "$ac_c_werror_flag"
9164 || test ! -s conftest.err'
36527912
AJ
9165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9166 (eval $ac_try) 2>&5
9167 ac_status=$?
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest.$ac_objext'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; }; then
9176 ac_cv_have_decl_vsnprintf=yes
9177else
9178 echo "$as_me: failed program was:" >&5
9179sed 's/^/| /' conftest.$ac_ext >&5
9180
9181ac_cv_have_decl_vsnprintf=no
9182fi
9183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9184fi
9185echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9186echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9187if test $ac_cv_have_decl_vsnprintf = yes; then
9188
9189cat >>confdefs.h <<_ACEOF
9190#define HAVE_DECL_VSNPRINTF 1
9191_ACEOF
9192
9193
9194else
9195 cat >>confdefs.h <<_ACEOF
9196#define HAVE_DECL_VSNPRINTF 0
9197_ACEOF
9198
9199
9200fi
9201
9202
d34a2b1d 9203
252b5132
RH
9204# If we are configured native, pick a core file support file.
9205COREFILE=
9206COREFLAG=
9207TRAD_HEADER=
9208if test "${target}" = "${host}"; then
9209 case "${host}" in
13dfd2d0 9210 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9211 COREFILE=''
9212 ;;
ed84e695 9213 alpha*-*-linux-*)
252b5132
RH
9214 COREFILE=trad-core.lo
9215 TRAD_HEADER='"hosts/alphalinux.h"'
9216 ;;
690cc98b
NC
9217 alpha*-*-netbsd* | alpha*-*-openbsd*)
9218 COREFILE=netbsd-core.lo
9219 ;;
252b5132 9220 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9221 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9222 COREFILE='' ;;
e33533a4
MK
9223 arm-*-netbsd* | arm-*-openbsd*)
9224 COREFILE=netbsd-core.lo
9225 ;;
252b5132
RH
9226 arm-*-riscix) COREFILE=trad-core.lo ;;
9227 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9228 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9229 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9230 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9231 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9232 hppa*-*-netbsd* | hppa*-*-openbsd*)
9233 COREFILE=netbsd-core.lo
9234 ;;
9235
dc810e39 9236 i370-*-*)
5b93d8bb
AM
9237 COREFILE=trad-core.lo
9238 TRAD_HEADER='"hosts/i370linux.h"'
9239 ;;
9240
80c7c40a 9241 i[3-7]86-sequent-bsd*)
5b93d8bb 9242 COREFILE=trad-core.lo
252b5132
RH
9243 TRAD_HEADER='"hosts/symmetry.h"'
9244 ;;
80c7c40a
NC
9245 i[3-7]86-sequent-sysv4*) ;;
9246 i[3-7]86-sequent-sysv*)
252b5132
RH
9247 COREFILE=trad-core.lo
9248 TRAD_HEADER='"hosts/symmetry.h"'
9249 ;;
80c7c40a 9250 i[3-7]86-*-bsdi)
7e3b3466
NC
9251 COREFILE=
9252 ;;
d2bef492 9253 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
9254 COREFILE=trad-core.lo
9255 TRAD_HEADER='"hosts/i386bsd.h"'
9256 ;;
13dfd2d0 9257 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9258 COREFILE=''
9259 TRAD_HEADER='"hosts/i386bsd.h"'
9260 ;;
4615568e 9261 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9262 COREFILE=netbsd-core.lo
9263 ;;
80c7c40a 9264 i[3-7]86-esix-sysv3*)
252b5132
RH
9265 COREFILE=trad-core.lo
9266 TRAD_HEADER='"hosts/esix.h"'
9267 ;;
80c7c40a 9268 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9269 COREFILE=sco5-core.lo
9270 ;;
80c7c40a 9271 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9272 COREFILE=trad-core.lo
9273 TRAD_HEADER='"hosts/i386sco.h"'
9274 ;;
80c7c40a 9275 i[3-7]86-*-mach3*)
252b5132
RH
9276 COREFILE=trad-core.lo
9277 TRAD_HEADER='"hosts/i386mach3.h"'
9278 ;;
ed84e695 9279 i[3-7]86-*-linux-*)
252b5132
RH
9280 COREFILE=trad-core.lo
9281 TRAD_HEADER='"hosts/i386linux.h"'
9282 ;;
80c7c40a
NC
9283 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9284 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9285 i860-*-mach3* | i860-*-osf1*)
9286 COREFILE=trad-core.lo
9287 TRAD_HEADER='"hosts/i860mach3.h"'
9288 ;;
252b5132
RH
9289 mips-*-netbsd* | mips*-*-openbsd*)
9290 COREFILE=netbsd-core.lo
9291 ;;
9292 mips-dec-*)
9293 COREFILE=trad-core.lo
9294 TRAD_HEADER='"hosts/decstation.h"'
9295 ;;
9296 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9297 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9298 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9299 mips-*-sysv4*) ;;
9300 mips-*-sysv* | mips-*-riscos*)
9301 COREFILE=trad-core.lo
9302 TRAD_HEADER='"hosts/riscos.h"'
9303 ;;
9304 mips-sony-bsd*)
9305 COREFILE=trad-core.lo
9306 TRAD_HEADER='"hosts/news-mips.h"'
9307 ;;
9308 m68*-bull*-sysv*)
9309 COREFILE=trad-core.lo
9310 TRAD_HEADER='"hosts/dpx2.h"'
9311 ;;
9312 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9313 m68*-hp-bsd*)
9314 COREFILE=trad-core.lo
9315 TRAD_HEADER='"hosts/hp300bsd.h"'
9316 ;;
ed84e695 9317 m68*-*-linux-*)
252b5132
RH
9318 COREFILE=trad-core.lo
9319 TRAD_HEADER='"hosts/m68klinux.h"'
9320 ;;
9321 m68*-motorola-sysv*)
9322 COREFILE=trad-core.lo
9323 TRAD_HEADER='"hosts/delta68.h"'
9324 ;;
9325 m68*-sony-*)
9326 COREFILE=trad-core.lo
9327 TRAD_HEADER='"hosts/news.h"'
9328 ;;
9329 m68*-*-netbsd* | m68*-*-openbsd*)
9330 COREFILE=netbsd-core.lo
9331 ;;
9332 m68*-apple-aux*)
9333 COREFILE=trad-core.lo
9334 TRAD_HEADER='"hosts/m68kaux.h"'
9335 ;;
eb1e0e80
NC
9336 m88*-*-sysv4*)
9337 ;;
9338 m88*-motorola-sysv*)
9339 COREFILE=ptrace-core.lo
9340 ;;
252b5132
RH
9341 m88*-*-mach3*)
9342 COREFILE=trad-core.lo
9343 TRAD_HEADER='"hosts/m88kmach3.h"'
9344 ;;
c6f8758f
NC
9345 m88*-*-openbsd*)
9346 COREFILE=netbsd-core.lo
9347 ;;
252b5132
RH
9348 ns32k-pc532-mach)
9349 COREFILE=trad-core.lo
9350 TRAD_HEADER='"hosts/pc532mach.h"'
9351 ;;
9352 ns32k-*-netbsd* | ns32k-*-openbsd*)
9353 COREFILE=netbsd-core.lo
9354 ;;
eb1e0e80
NC
9355 rs6000-*-lynx*)
9356 COREFILE=lynx-core.lo
9357 ;;
9358 rs6000-*-aix5.* | powerpc-*-aix5.*)
9359 COREFILE=rs6000-core.lo
9360 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9361 ;;
83954261 9362 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9363 COREFILE=rs6000-core.lo
9364 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9365 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9366 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9367 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9368echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9369 cat >conftest.$ac_ext <<_ACEOF
9370/* confdefs.h. */
9371_ACEOF
9372cat confdefs.h >>conftest.$ac_ext
9373cat >>conftest.$ac_ext <<_ACEOF
9374/* end confdefs.h. */
83954261 9375#include <core.h>
5464f5a1
NN
9376int
9377main ()
9378{
83954261 9379struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384rm -f conftest.$ac_objext
9385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
49c96104
SE
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
5464f5a1
NN
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406
9407cat >>confdefs.h <<\_ACEOF
83954261 9408#define HAVE_ST_C_IMPL 1
5464f5a1 9409_ACEOF
83954261 9410
5464f5a1
NN
9411 echo "$as_me:$LINENO: result: yes" >&5
9412echo "${ECHO_T}yes" >&6
83954261 9413else
5464f5a1
NN
9414 echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417echo "$as_me:$LINENO: result: no" >&5
9418echo "${ECHO_T}no" >&6
83954261 9419fi
5464f5a1 9420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9421 ;;
252b5132
RH
9422 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9423 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9424 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9425 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9426 powerpc-*-beos*) ;;
13dfd2d0
NC
9427 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9428 COREFILE='' ;;
252b5132 9429 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9430 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9431 s390*-*-*) COREFILE=trad-core.lo ;;
a38b2659
MK
9432 sh*-*-netbsd* | sh*-*-openbsd*)
9433 COREFILE=netbsd-core.lo
9434 ;;
a9bf1154 9435 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9436 COREFILE=netbsd-core.lo
9437 ;;
9438 tahoe-*-*)
9439 COREFILE=trad-core.lo
9440 TRAD_HEADER='"hosts/tahoe.h"'
9441 ;;
de6e5e1a
NC
9442 vax-*-netbsd* | vax-*-openbsd*)
9443 COREFILE=netbsd-core.lo
9444 ;;
252b5132
RH
9445 vax-*-ultrix2*)
9446 COREFILE=trad-core.lo
9447 TRAD_HEADER='"hosts/vaxult2.h"'
9448 ;;
9449 vax-*-ultrix*)
9450 COREFILE=trad-core.lo
9451 TRAD_HEADER='"hosts/vaxult2.h"'
9452 ;;
ed84e695 9453 vax-*-linux-*)
f8fc3443
NC
9454 COREFILE=trad-core.lo
9455 TRAD_HEADER='"hosts/vaxlinux.h"'
9456 ;;
252b5132
RH
9457 vax-*-*)
9458 COREFILE=trad-core.lo
9459 TRAD_HEADER='"hosts/vaxbsd.h"'
9460 ;;
85cfd8d3
MK
9461 x86_64-*-netbsd* | x86_64-*-openbsd*)
9462 COREFILE=netbsd-core.lo
9463 ;;
252b5132
RH
9464 esac
9465
9466 case "$COREFILE" in
9467 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9468 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9469 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9470 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9471 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9472 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9473 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9474 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9475 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9476 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9477 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9478 esac
9479
9480 # ELF corefile support has several flavors, but all of
9481 # them use something called <sys/procfs.h>
5464f5a1
NN
9482
9483for ac_header in sys/procfs.h
252b5132 9484do
5464f5a1
NN
9485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9486if eval "test \"\${$as_ac_Header+set}\" = set"; then
9487 echo "$as_me:$LINENO: checking for $ac_header" >&5
9488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9489if eval "test \"\${$as_ac_Header+set}\" = set"; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491fi
9492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9494else
9495 # Is the header compilable?
9496echo "$as_me:$LINENO: checking $ac_header usability" >&5
9497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9498cat >conftest.$ac_ext <<_ACEOF
9499/* confdefs.h. */
9500_ACEOF
9501cat confdefs.h >>conftest.$ac_ext
9502cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */
9504$ac_includes_default
9505#include <$ac_header>
9506_ACEOF
9507rm -f conftest.$ac_objext
9508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9509 (eval $ac_compile) 2>conftest.er1
9510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } &&
49c96104
SE
9516 { ac_try='test -z "$ac_c_werror_flag"
9517 || test ! -s conftest.err'
5464f5a1
NN
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; } &&
9523 { ac_try='test -s conftest.$ac_objext'
9524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9525 (eval $ac_try) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); }; }; then
9529 ac_header_compiler=yes
9530else
9531 echo "$as_me: failed program was:" >&5
9532sed 's/^/| /' conftest.$ac_ext >&5
9533
9534ac_header_compiler=no
9535fi
9536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9538echo "${ECHO_T}$ac_header_compiler" >&6
9539
9540# Is the header present?
9541echo "$as_me:$LINENO: checking $ac_header presence" >&5
9542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9543cat >conftest.$ac_ext <<_ACEOF
9544/* confdefs.h. */
9545_ACEOF
9546cat confdefs.h >>conftest.$ac_ext
9547cat >>conftest.$ac_ext <<_ACEOF
9548/* end confdefs.h. */
9549#include <$ac_header>
9550_ACEOF
9551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } >/dev/null; then
9559 if test -s conftest.err; then
9560 ac_cpp_err=$ac_c_preproc_warn_flag
9561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9562 else
9563 ac_cpp_err=
9564 fi
252b5132 9565else
5464f5a1 9566 ac_cpp_err=yes
252b5132 9567fi
5464f5a1
NN
9568if test -z "$ac_cpp_err"; then
9569 ac_header_preproc=yes
9570else
9571 echo "$as_me: failed program was:" >&5
9572sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 ac_header_preproc=no
252b5132 9575fi
5464f5a1
NN
9576rm -f conftest.err conftest.$ac_ext
9577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9578echo "${ECHO_T}$ac_header_preproc" >&6
9579
9580# So? What about this header?
9581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9582 yes:no: )
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9587 ac_header_preproc=yes
9588 ;;
9589 no:yes:* )
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9602 (
9603 cat <<\_ASBOX
9604## ------------------------------------------ ##
9605## Report this to the AC_PACKAGE_NAME lists. ##
9606## ------------------------------------------ ##
9607_ASBOX
9608 ) |
9609 sed "s/^/$as_me: WARNING: /" >&2
9610 ;;
9611esac
9612echo "$as_me:$LINENO: checking for $ac_header" >&5
9613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9614if eval "test \"\${$as_ac_Header+set}\" = set"; then
9615 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9616else
5464f5a1
NN
9617 eval "$as_ac_Header=\$ac_header_preproc"
9618fi
9619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9621
252b5132 9622fi
5464f5a1
NN
9623if test `eval echo '${'$as_ac_Header'}'` = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9626_ACEOF
9627
9628fi
9629
252b5132
RH
9630done
9631
9632 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9633 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9634echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9635 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9637else
9638 cat >conftest.$ac_ext <<_ACEOF
9639/* confdefs.h. */
9640_ACEOF
9641cat confdefs.h >>conftest.$ac_ext
9642cat >>conftest.$ac_ext <<_ACEOF
9643/* end confdefs.h. */
7ee38065
MS
9644
9645#define _SYSCALL32
252b5132 9646#include <sys/procfs.h>
5464f5a1
NN
9647int
9648main ()
9649{
252b5132 9650prstatus_t avar
5464f5a1
NN
9651 ;
9652 return 0;
9653}
9654_ACEOF
9655rm -f conftest.$ac_objext
9656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>conftest.er1
9658 ac_status=$?
9659 grep -v '^ *+' conftest.er1 >conftest.err
9660 rm -f conftest.er1
9661 cat conftest.err >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); } &&
49c96104
SE
9664 { ac_try='test -z "$ac_c_werror_flag"
9665 || test ! -s conftest.err'
5464f5a1
NN
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9667 (eval $ac_try) 2>&5
9668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest.$ac_objext'
9672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9673 (eval $ac_try) 2>&5
9674 ac_status=$?
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
252b5132
RH
9677 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9678else
5464f5a1
NN
9679 echo "$as_me: failed program was:" >&5
9680sed 's/^/| /' conftest.$ac_ext >&5
9681
9682bfd_cv_have_sys_procfs_type_prstatus_t=no
9683
252b5132 9684fi
5464f5a1 9685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9686fi
9687
9688 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9689
9690cat >>confdefs.h <<\_ACEOF
252b5132 9691#define HAVE_PRSTATUS_T 1
5464f5a1 9692_ACEOF
252b5132
RH
9693
9694 fi
5464f5a1
NN
9695 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9696echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9697
5464f5a1
NN
9698 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9699echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9700 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9702else
5464f5a1
NN
9703 cat >conftest.$ac_ext <<_ACEOF
9704/* confdefs.h. */
9705_ACEOF
9706cat confdefs.h >>conftest.$ac_ext
9707cat >>conftest.$ac_ext <<_ACEOF
9708/* end confdefs.h. */
7ee38065
MS
9709
9710#define _SYSCALL32
9711#include <sys/procfs.h>
5464f5a1
NN
9712int
9713main ()
9714{
7ee38065 9715prstatus32_t avar
5464f5a1
NN
9716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext
9721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9722 (eval $ac_compile) 2>conftest.er1
9723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); } &&
49c96104
SE
9729 { ac_try='test -z "$ac_c_werror_flag"
9730 || test ! -s conftest.err'
5464f5a1
NN
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9732 (eval $ac_try) 2>&5
9733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; } &&
9736 { ac_try='test -s conftest.$ac_objext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 (eval $ac_try) 2>&5
9739 ac_status=$?
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
7ee38065
MS
9742 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9743else
5464f5a1
NN
9744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
9747bfd_cv_have_sys_procfs_type_prstatus32_t=no
9748
7ee38065 9749fi
5464f5a1 9750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9751fi
9752
9753 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
9754
9755cat >>confdefs.h <<\_ACEOF
7ee38065 9756#define HAVE_PRSTATUS32_T 1
5464f5a1 9757_ACEOF
7ee38065
MS
9758
9759 fi
5464f5a1
NN
9760 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9761echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 9762
5464f5a1
NN
9763 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9764echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9765 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9767else
5464f5a1
NN
9768 cat >conftest.$ac_ext <<_ACEOF
9769/* confdefs.h. */
9770_ACEOF
9771cat confdefs.h >>conftest.$ac_ext
9772cat >>conftest.$ac_ext <<_ACEOF
9773/* end confdefs.h. */
7ee38065
MS
9774
9775#define _SYSCALL32
252b5132 9776#include <sys/procfs.h>
5464f5a1
NN
9777int
9778main ()
9779{
252b5132 9780prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext
9786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9787 (eval $ac_compile) 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
49c96104
SE
9794 { ac_try='test -z "$ac_c_werror_flag"
9795 || test ! -s conftest.err'
5464f5a1
NN
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest.$ac_objext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
252b5132
RH
9807 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9808else
5464f5a1
NN
9809 echo "$as_me: failed program was:" >&5
9810sed 's/^/| /' conftest.$ac_ext >&5
9811
9812bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9813
252b5132 9814fi
5464f5a1 9815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9816fi
9817
9818 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
9819
9820cat >>confdefs.h <<\_ACEOF
252b5132 9821#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 9822_ACEOF
252b5132
RH
9823
9824 fi
5464f5a1
NN
9825 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9826echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 9827
5464f5a1
NN
9828 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9829echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9830 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9832else
5464f5a1
NN
9833 cat >conftest.$ac_ext <<_ACEOF
9834/* confdefs.h. */
9835_ACEOF
9836cat confdefs.h >>conftest.$ac_ext
9837cat >>conftest.$ac_ext <<_ACEOF
9838/* end confdefs.h. */
7ee38065
MS
9839
9840#define _SYSCALL32
9841#include <sys/procfs.h>
5464f5a1
NN
9842int
9843main ()
9844{
7ee38065 9845prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9846 ;
9847 return 0;
9848}
9849_ACEOF
9850rm -f conftest.$ac_objext
9851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>conftest.er1
9853 ac_status=$?
9854 grep -v '^ *+' conftest.er1 >conftest.err
9855 rm -f conftest.er1
9856 cat conftest.err >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
49c96104
SE
9859 { ac_try='test -z "$ac_c_werror_flag"
9860 || test ! -s conftest.err'
5464f5a1
NN
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest.$ac_objext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868 (eval $ac_try) 2>&5
9869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
7ee38065
MS
9872 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9873else
5464f5a1
NN
9874 echo "$as_me: failed program was:" >&5
9875sed 's/^/| /' conftest.$ac_ext >&5
9876
9877bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9878
7ee38065 9879fi
5464f5a1 9880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9881fi
9882
9883 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
9884
9885cat >>confdefs.h <<\_ACEOF
7ee38065 9886#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 9887_ACEOF
7ee38065
MS
9888
9889 fi
5464f5a1
NN
9890 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9891echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 9892
5464f5a1
NN
9893 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9894echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9895 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9897else
5464f5a1
NN
9898 cat >conftest.$ac_ext <<_ACEOF
9899/* confdefs.h. */
9900_ACEOF
9901cat confdefs.h >>conftest.$ac_ext
9902cat >>conftest.$ac_ext <<_ACEOF
9903/* end confdefs.h. */
7ee38065
MS
9904
9905#define _SYSCALL32
252b5132 9906#include <sys/procfs.h>
5464f5a1
NN
9907int
9908main ()
9909{
252b5132 9910pstatus_t avar
5464f5a1
NN
9911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext
9916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>conftest.er1
9918 ac_status=$?
9919 grep -v '^ *+' conftest.er1 >conftest.err
9920 rm -f conftest.er1
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
49c96104
SE
9924 { ac_try='test -z "$ac_c_werror_flag"
9925 || test ! -s conftest.err'
5464f5a1
NN
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest.$ac_objext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
252b5132
RH
9937 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9938else
5464f5a1
NN
9939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
9942bfd_cv_have_sys_procfs_type_pstatus_t=no
9943
252b5132 9944fi
5464f5a1 9945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9946fi
9947
9948 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
9949
9950cat >>confdefs.h <<\_ACEOF
252b5132 9951#define HAVE_PSTATUS_T 1
5464f5a1 9952_ACEOF
252b5132
RH
9953
9954 fi
5464f5a1
NN
9955 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9956echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 9957
5464f5a1
NN
9958 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9959echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9960 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 9962else
5464f5a1
NN
9963 cat >conftest.$ac_ext <<_ACEOF
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
f572a39d
AM
9969
9970#define _SYSCALL32
9971#include <sys/procfs.h>
5464f5a1
NN
9972int
9973main ()
9974{
f572a39d 9975pxstatus_t avar
5464f5a1
NN
9976 ;
9977 return 0;
9978}
9979_ACEOF
9980rm -f conftest.$ac_objext
9981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9982 (eval $ac_compile) 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
49c96104
SE
9989 { ac_try='test -z "$ac_c_werror_flag"
9990 || test ! -s conftest.err'
5464f5a1
NN
9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 (eval $ac_try) 2>&5
9993 ac_status=$?
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); }; } &&
9996 { ac_try='test -s conftest.$ac_objext'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 (eval $ac_try) 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; }; then
f572a39d
AM
10002 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10003else
5464f5a1
NN
10004 echo "$as_me: failed program was:" >&5
10005sed 's/^/| /' conftest.$ac_ext >&5
10006
10007bfd_cv_have_sys_procfs_type_pxstatus_t=no
10008
f572a39d 10009fi
5464f5a1 10010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10011fi
10012
10013 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10014
10015cat >>confdefs.h <<\_ACEOF
f572a39d 10016#define HAVE_PXSTATUS_T 1
5464f5a1 10017_ACEOF
f572a39d
AM
10018
10019 fi
5464f5a1
NN
10020 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10021echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10022
5464f5a1
NN
10023 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10024echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10025 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10027else
5464f5a1
NN
10028 cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
7ee38065
MS
10034
10035#define _SYSCALL32
10036#include <sys/procfs.h>
5464f5a1
NN
10037int
10038main ()
10039{
7ee38065 10040pstatus32_t avar
5464f5a1
NN
10041 ;
10042 return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext
10046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
49c96104
SE
10054 { ac_try='test -z "$ac_c_werror_flag"
10055 || test ! -s conftest.err'
5464f5a1
NN
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; } &&
10061 { ac_try='test -s conftest.$ac_objext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
7ee38065
MS
10067 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10068else
5464f5a1
NN
10069 echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
10072bfd_cv_have_sys_procfs_type_pstatus32_t=no
10073
7ee38065 10074fi
5464f5a1 10075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10076fi
10077
10078 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10079
10080cat >>confdefs.h <<\_ACEOF
7ee38065 10081#define HAVE_PSTATUS32_T 1
5464f5a1 10082_ACEOF
7ee38065
MS
10083
10084 fi
5464f5a1
NN
10085 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10086echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10087
5464f5a1
NN
10088 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10089echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10090 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10091 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10092else
5464f5a1
NN
10093 cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h. */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h. */
7ee38065
MS
10099
10100#define _SYSCALL32
252b5132 10101#include <sys/procfs.h>
5464f5a1
NN
10102int
10103main ()
10104{
252b5132 10105prpsinfo_t avar
5464f5a1
NN
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext
10111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10112 (eval $ac_compile) 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } &&
49c96104
SE
10119 { ac_try='test -z "$ac_c_werror_flag"
10120 || test ! -s conftest.err'
5464f5a1
NN
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
252b5132
RH
10132 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10133else
5464f5a1
NN
10134 echo "$as_me: failed program was:" >&5
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
10137bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10138
252b5132 10139fi
5464f5a1 10140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10141fi
10142
10143 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10144
10145cat >>confdefs.h <<\_ACEOF
252b5132 10146#define HAVE_PRPSINFO_T 1
5464f5a1 10147_ACEOF
252b5132
RH
10148
10149 fi
5464f5a1
NN
10150 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10151echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10152
5464f5a1
NN
10153 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10154echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10155 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10157else
5464f5a1
NN
10158 cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
7ee38065
MS
10164
10165#define _SYSCALL32
10166#include <sys/procfs.h>
5464f5a1
NN
10167int
10168main ()
10169{
7ee38065 10170prpsinfo32_t avar
5464f5a1
NN
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext
10176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
49c96104
SE
10184 { ac_try='test -z "$ac_c_werror_flag"
10185 || test ! -s conftest.err'
5464f5a1
NN
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10188 ac_status=$?
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; } &&
10191 { ac_try='test -s conftest.$ac_objext'
10192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10193 (eval $ac_try) 2>&5
10194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; }; then
7ee38065
MS
10197 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10198else
5464f5a1
NN
10199 echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10203
7ee38065 10204fi
5464f5a1 10205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10206fi
10207
10208 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10209
10210cat >>confdefs.h <<\_ACEOF
7ee38065 10211#define HAVE_PRPSINFO32_T 1
5464f5a1 10212_ACEOF
7ee38065
MS
10213
10214 fi
5464f5a1
NN
10215 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10216echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10217
5464f5a1
NN
10218 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10219echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10220 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10221 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10222else
5464f5a1
NN
10223 cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
7ee38065
MS
10229
10230#define _SYSCALL32
252b5132 10231#include <sys/procfs.h>
5464f5a1
NN
10232int
10233main ()
10234{
252b5132 10235psinfo_t avar
5464f5a1
NN
10236 ;
10237 return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext
10241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242 (eval $ac_compile) 2>conftest.er1
10243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } &&
49c96104
SE
10249 { ac_try='test -z "$ac_c_werror_flag"
10250 || test ! -s conftest.err'
5464f5a1
NN
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10253 ac_status=$?
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
252b5132
RH
10262 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10263else
5464f5a1
NN
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267bfd_cv_have_sys_procfs_type_psinfo_t=no
10268
252b5132 10269fi
5464f5a1 10270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10271fi
10272
10273 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10274
10275cat >>confdefs.h <<\_ACEOF
252b5132 10276#define HAVE_PSINFO_T 1
5464f5a1 10277_ACEOF
252b5132
RH
10278
10279 fi
5464f5a1
NN
10280 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10281echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10282
5464f5a1
NN
10283 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10284echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10285 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10287else
5464f5a1
NN
10288 cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
7ee38065
MS
10294
10295#define _SYSCALL32
10296#include <sys/procfs.h>
5464f5a1
NN
10297int
10298main ()
10299{
7ee38065 10300psinfo32_t avar
5464f5a1
NN
10301 ;
10302 return 0;
10303}
10304_ACEOF
10305rm -f conftest.$ac_objext
10306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
49c96104
SE
10314 { ac_try='test -z "$ac_c_werror_flag"
10315 || test ! -s conftest.err'
5464f5a1
NN
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest.$ac_objext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
7ee38065
MS
10327 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10328else
5464f5a1
NN
10329 echo "$as_me: failed program was:" >&5
10330sed 's/^/| /' conftest.$ac_ext >&5
10331
10332bfd_cv_have_sys_procfs_type_psinfo32_t=no
10333
7ee38065 10334fi
5464f5a1 10335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10336fi
10337
10338 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10339
10340cat >>confdefs.h <<\_ACEOF
7ee38065 10341#define HAVE_PSINFO32_T 1
5464f5a1 10342_ACEOF
7ee38065
MS
10343
10344 fi
5464f5a1
NN
10345 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10346echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10347
5464f5a1
NN
10348 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10349echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10350 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10352else
5464f5a1
NN
10353 cat >conftest.$ac_ext <<_ACEOF
10354/* confdefs.h. */
10355_ACEOF
10356cat confdefs.h >>conftest.$ac_ext
10357cat >>conftest.$ac_ext <<_ACEOF
10358/* end confdefs.h. */
7ee38065
MS
10359
10360#define _SYSCALL32
252b5132 10361#include <sys/procfs.h>
5464f5a1
NN
10362int
10363main ()
10364{
252b5132 10365lwpstatus_t avar
5464f5a1
NN
10366 ;
10367 return 0;
10368}
10369_ACEOF
10370rm -f conftest.$ac_objext
10371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372 (eval $ac_compile) 2>conftest.er1
10373 ac_status=$?
10374 grep -v '^ *+' conftest.er1 >conftest.err
10375 rm -f conftest.er1
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
49c96104
SE
10379 { ac_try='test -z "$ac_c_werror_flag"
10380 || test ! -s conftest.err'
5464f5a1
NN
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10383 ac_status=$?
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest.$ac_objext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
252b5132
RH
10392 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10393else
5464f5a1
NN
10394 echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10398
252b5132 10399fi
5464f5a1 10400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10401fi
10402
10403 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10404
10405cat >>confdefs.h <<\_ACEOF
252b5132 10406#define HAVE_LWPSTATUS_T 1
5464f5a1 10407_ACEOF
252b5132
RH
10408
10409 fi
5464f5a1
NN
10410 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10411echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10412
5464f5a1
NN
10413 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10414echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10415 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10417else
5464f5a1
NN
10418 cat >conftest.$ac_ext <<_ACEOF
10419/* confdefs.h. */
10420_ACEOF
10421cat confdefs.h >>conftest.$ac_ext
10422cat >>conftest.$ac_ext <<_ACEOF
10423/* end confdefs.h. */
f572a39d
AM
10424
10425#define _SYSCALL32
10426#include <sys/procfs.h>
5464f5a1
NN
10427int
10428main ()
10429{
f572a39d 10430lwpxstatus_t avar
5464f5a1
NN
10431 ;
10432 return 0;
10433}
10434_ACEOF
10435rm -f conftest.$ac_objext
10436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437 (eval $ac_compile) 2>conftest.er1
10438 ac_status=$?
10439 grep -v '^ *+' conftest.er1 >conftest.err
10440 rm -f conftest.er1
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
49c96104
SE
10444 { ac_try='test -z "$ac_c_werror_flag"
10445 || test ! -s conftest.err'
5464f5a1
NN
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try='test -s conftest.$ac_objext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
f572a39d
AM
10457 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10458else
5464f5a1
NN
10459 echo "$as_me: failed program was:" >&5
10460sed 's/^/| /' conftest.$ac_ext >&5
10461
10462bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10463
f572a39d 10464fi
5464f5a1 10465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10466fi
10467
10468 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10469
10470cat >>confdefs.h <<\_ACEOF
f572a39d 10471#define HAVE_LWPXSTATUS_T 1
5464f5a1 10472_ACEOF
f572a39d
AM
10473
10474 fi
5464f5a1
NN
10475 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10476echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10477
5464f5a1
NN
10478 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10479echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10480 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10482else
5464f5a1
NN
10483 cat >conftest.$ac_ext <<_ACEOF
10484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
7ee38065
MS
10489
10490#define _SYSCALL32
252b5132 10491#include <sys/procfs.h>
5464f5a1
NN
10492int
10493main ()
10494{
252b5132 10495lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500rm -f conftest.$ac_objext
10501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502 (eval $ac_compile) 2>conftest.er1
10503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
49c96104
SE
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
5464f5a1
NN
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest.$ac_objext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
252b5132
RH
10522 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10523else
5464f5a1
NN
10524 echo "$as_me: failed program was:" >&5
10525sed 's/^/| /' conftest.$ac_ext >&5
10526
10527bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10528
252b5132 10529fi
5464f5a1 10530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10531fi
10532
10533 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10534
10535cat >>confdefs.h <<\_ACEOF
252b5132 10536#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10537_ACEOF
252b5132
RH
10538
10539 fi
5464f5a1
NN
10540 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10541echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10542
5464f5a1
NN
10543 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10544echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10545 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10547else
5464f5a1
NN
10548 cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h. */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h. */
7ee38065
MS
10554
10555#define _SYSCALL32
252b5132 10556#include <sys/procfs.h>
5464f5a1
NN
10557int
10558main ()
10559{
252b5132 10560lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
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); } &&
49c96104
SE
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
5464f5a1
NN
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
252b5132
RH
10587 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10588else
5464f5a1
NN
10589 echo "$as_me: failed program was:" >&5
10590sed 's/^/| /' conftest.$ac_ext >&5
10591
10592bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10593
252b5132 10594fi
5464f5a1 10595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10596fi
10597
10598 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10599
10600cat >>confdefs.h <<\_ACEOF
252b5132 10601#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10602_ACEOF
252b5132
RH
10603
10604 fi
5464f5a1
NN
10605 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10606echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10607
5464f5a1
NN
10608 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10609echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10610 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10611 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10612else
5464f5a1
NN
10613 cat >conftest.$ac_ext <<_ACEOF
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
7ee38065
MS
10619
10620#define _SYSCALL32
e3c976c4 10621#include <sys/procfs.h>
5464f5a1
NN
10622int
10623main ()
10624{
e3c976c4 10625win32_pstatus_t avar
5464f5a1
NN
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext
10631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>conftest.er1
10633 ac_status=$?
10634 grep -v '^ *+' conftest.er1 >conftest.err
10635 rm -f conftest.er1
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
49c96104
SE
10639 { ac_try='test -z "$ac_c_werror_flag"
10640 || test ! -s conftest.err'
5464f5a1
NN
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; } &&
10646 { ac_try='test -s conftest.$ac_objext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10649 ac_status=$?
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
e3c976c4
ILT
10652 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10653else
5464f5a1
NN
10654 echo "$as_me: failed program was:" >&5
10655sed 's/^/| /' conftest.$ac_ext >&5
10656
10657bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10658
e3c976c4 10659fi
5464f5a1 10660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10661fi
10662
e3c976c4 10663 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10664
10665cat >>confdefs.h <<\_ACEOF
e3c976c4 10666#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10667_ACEOF
16e9c715
NC
10668
10669 fi
5464f5a1
NN
10670 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10671echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10672
10673 fi
10674fi
16e9c715 10675
b3baf5d0 10676
6be7c12c 10677if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10678
10679cat >>confdefs.h <<_ACEOF
252b5132 10680#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10681_ACEOF
252b5132 10682
3f9b03b5 10683fi
252b5132
RH
10684
10685# Horrible hacks to build DLLs on Windows.
10686WIN32LDFLAGS=
10687WIN32LIBADD=
10688case "${host}" in
10689*-*-cygwin*)
10690 if test "$enable_shared" = "yes"; then
10691 WIN32LDFLAGS="-no-undefined"
10692 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10693 fi
10694 ;;
78be1d6e 10695*-*-linux*)
39691762
L
10696 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10697 # libiberty.a.
ca51bfff
L
10698 case "${host}" in
10699 mips*-*-linux*)
10700 # Linux/MIPS uses PIC by default.
10701 if test "$enable_shared" = "yes"; then
10702 WIN32LIBADD="-L../libiberty -liberty"
10703 fi
10704 ;;
10705 *)
66e25bab 10706 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10707 if test -n "$x"; then
ca51bfff
L
10708 WIN32LIBADD="-L../libiberty/pic -liberty"
10709 fi
10710 ;;
10711 esac
39691762 10712 ;;
252b5132
RH
10713esac
10714
6be7c12c
AO
10715
10716
252b5132
RH
10717# target stuff:
10718
10719# Canonicalize the secondary target names.
10720if test -n "$enable_targets" ; then
10721 for targ in `echo $enable_targets | sed 's/,/ /g'`
10722 do
6d83c84b 10723 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10724 if test -n "$result" ; then
10725 canon_targets="$canon_targets $result"
10726 else
10727 # Allow targets that config.sub doesn't recognize, like "all".
10728 canon_targets="$canon_targets $targ"
10729 fi
10730 done
10731fi
10732
10733all_targets=false
10734defvec=
10735selvecs=
08f74004 10736assocvecs=
252b5132
RH
10737selarchs=
10738TDEFINES=
10739for targ in $target $canon_targets
10740do
10741 if test "x$targ" = "xall"; then
10742 all_targets=true
08f74004 10743 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10744 else
10745 . $srcdir/config.bfd
10746 if test "x$targ" = "x$target"; then
10747 defvec=$targ_defvec
10748 fi
10749 selvecs="$selvecs $targ_defvec $targ_selvecs"
10750 selarchs="$selarchs $targ_archs"
10751 TDEFINES="$TDEFINES $targ_cflags"
10752 fi
10753done
10754
6be7c12c 10755
252b5132
RH
10756# This processing still needs to be done if we're to decide properly whether
10757# 64-bit support needs to be compiled in. Currently, it will be included if
10758# the default or any other explicitly requested target requires it; it
10759# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10760# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10761# used.
10762
10763# uniq the default and selected vectors in all the configured targets.
10764f=""
10765for i in $selvecs ; do
10766 case " $f " in
10767 *" $i "*) ;;
10768 *) f="$f $i" ;;
10769 esac
10770done
10771selvecs="$f"
10772
6be7c12c 10773
08f74004
AM
10774# uniq the associated vectors in all the configured targets.
10775f=""
10776for i in $assocvecs ; do
10777 case " $f " in
10778 *" $i "*) ;;
10779 *) f="$f $i" ;;
10780 esac
10781done
10782assocvecs="$f"
10783
10784
252b5132
RH
10785# uniq the architectures in all the configured targets.
10786f=""
10787for i in $selarchs ; do
10788 case " $f " in
10789 *" $i "*) ;;
10790 *) f="$f $i" ;;
10791 esac
10792done
10793selarchs="$f"
10794
10795# Target backend .o files.
10796tb=
10797
65765700 10798elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
10799
10800for vec in $selvecs
10801do
69263e90 10802 target_size=32
252b5132
RH
10803 case "$vec" in
10804 # This list is alphabetized to make it easy to compare
dc810e39
AM
10805 # with the two vector lists in targets.c. For the same reason,
10806 # use one entry per line, even though this leads to long lines.
252b5132 10807 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 10808 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
10809 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10810 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10811 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 10812 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
10813 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10814 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10815 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10816 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
10817 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10818 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10819 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10820 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
10821 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10822 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10823 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10824 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10825 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10826 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10827 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
10828 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10829 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 10830 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
faed74d6 10831 bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;;
dc810e39 10832 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 10833 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 10834 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 10835 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 10836 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 10837 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 10838 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 10839 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 10840 bfd_elf32_bigarm_symbian_vec)
00a97672 10841 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10842 bfd_elf32_bigarm_vxworks_vec)
00a97672 10843 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10844 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10845 bfd_elf32_bigmips_vxworks_vec)
10846 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 10847 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 10848 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 10849 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
10850 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10851 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 10852 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 10853 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 10854 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 10855 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 10856 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 10857 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 10858 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 10859 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 10860 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
10861 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10862 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10863 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 10864 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 10865 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 10866 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 10867 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 10868 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 10869 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 10870 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 10871 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 10872 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 10873 bfd_elf32_littlearm_symbian_vec)
00a97672 10874 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10875 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
10876 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10877 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10878 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10879 bfd_elf32_littlemips_vxworks_vec)
10880 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 10881 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 10882 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
10883 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10884 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10885 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
10886 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10887 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
10888 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10889 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10890 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10891 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
d9352518
DB
10892 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
10893 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
252b5132
RH
10894 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10895 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 10896 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 10897 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
10898 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10899 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10900 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10901 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 10902 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 10903 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
10904 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10905 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
10906 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10907 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10908 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 10909 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
10910 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10911 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
10912 # FIXME: We include cofflink.lo not because it's needed for
10913 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10914 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
10915 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10916 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10917 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10918 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10919 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10920 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10921 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10922 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10923 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10924 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10925 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10926 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10927 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 10928 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 10929 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
10930 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10931 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
e9f53129 10932 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
0a44bf69
RS
10933 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10934 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 10935 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 10936 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 10937 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 10938 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 10939 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
10940 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10941 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 10942 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10943 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10944 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10945 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
10946 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10947 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10948 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 10949 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10950 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10951 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10952 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 10953 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
10954 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10955 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10956 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
10957 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10958 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
10959 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10960 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10961 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10962 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 10963 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 10964 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
10965 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10966 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
9d7cbccd 10967 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10968 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 10969 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
10970 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10971 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10972 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10973 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 10974 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 10975 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 10976 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 10977 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
10978 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10979 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
10980 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
10981 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
10982 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
10983 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
10984 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
10985 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
10986 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
10987 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
10988 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
10989 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 10990 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
10991 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
10992 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
10993 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
10994 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
10995 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
10996 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 10997 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
10998 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
10999 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11000 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11001 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
11002 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
11003 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
11004 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11005 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11006 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11007 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11008 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11009 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11010 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11011 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11012 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 11013 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11014 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11015 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11016 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11017 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 11018 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
11019 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11020 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11021 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11022 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11023 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11024 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11025 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11026 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11027 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11028 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11029 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11030 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11031 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11032 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11033 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11034 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11035 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11036 pef_vec) tb="$tb pef.lo" ;;
11037 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11038 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11039 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11040 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11041 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11042 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11043 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11044 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11045 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11046 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11047 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11048 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11049 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11050 som_vec) tb="$tb som.lo" ;;
dc810e39 11051 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11052 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11053 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11054 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11055 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11056 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11057 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11058 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11059 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11060 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11061 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11062 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11063 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11064 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11065 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11066 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11067 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11068 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11069 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11070 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11071 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11072 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11073 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11074 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11075 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11076 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11077 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11078 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11079 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11080 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11081 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 11082 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 11083 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 11084
341ca622
AM
11085 # These appear out of order in targets.c
11086 srec_vec) tb="$tb srec.lo" ;;
11087 symbolsrec_vec) tb="$tb srec.lo" ;;
11088 tekhex_vec) tb="$tb tekhex.lo" ;;
11089 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11090 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11091
252b5132 11092 "") ;;
5464f5a1
NN
11093 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11094echo "$as_me: error: *** unknown target vector $vec" >&2;}
11095 { (exit 1); exit 1; }; } ;;
252b5132 11096 esac
69263e90
AM
11097
11098 if test ${target_size} = 64; then
11099 target64=true
11100 fi
11101 if test x"${vec}" = x"${defvec}"; then
11102 bfd_default_target_size=${target_size}
11103 fi
252b5132
RH
11104done
11105
11106# Target architecture .o files.
11107# A couple of CPUs use shorter file names to avoid problems on DOS
11108# filesystems.
d031aafb 11109ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
11110
11111# Weed out duplicate .o files.
11112f=""
11113for i in $tb ; do
11114 case " $f " in
11115 *" $i "*) ;;
11116 *) f="$f $i" ;;
11117 esac
11118done
11119tb="$f"
11120
11121f=""
11122for i in $ta ; do
11123 case " $f " in
11124 *" $i "*) ;;
11125 *) f="$f $i" ;;
11126 esac
11127done
11128ta="$f"
11129
11130bfd_backends="$tb"
11131bfd_machines="$ta"
11132
11133if test x${all_targets} = xtrue ; then
11134 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11135 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11136 selvecs=
11137 havevecs=
11138 selarchs=
08f74004
AM
11139 test -n "$assocvecs" &&
11140 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11141else # all_targets is true
11142 # Only set these if they will be nonempty, for the clever echo.
11143 havevecs=
08f74004 11144 assocvecs=
252b5132
RH
11145 test -n "$selvecs" &&
11146 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11147 test -n "$selvecs" &&
11148 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11149 test -n "$selarchs" &&
11150 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11151fi # all_targets is true
11152
11153case ${host64}-${target64}-${want64} in
11154 *true*)
11155 wordsize=64
21e40a48 11156 bfd64_libs='$(BFD64_LIBS)'
252b5132 11157 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11158 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11159 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11160echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11162echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11163 fi
966abd70
HPN
11164 if test -n "$GCC" ; then
11165 bad_64bit_gcc=no;
5464f5a1
NN
11166 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11167echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11168 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11169 cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h. */
966abd70 11175:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11176_ACEOF
966abd70 11177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11178 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11179 bad_64bit_gcc=yes;
5464f5a1
NN
11180 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11181echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11182else
5464f5a1
NN
11183 echo "$as_me:$LINENO: result: no" >&5
11184echo "${ECHO_T}no" >&6
966abd70
HPN
11185fi
11186rm -f conftest*
11187
11188 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11189 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11190echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11191 { (exit 1); exit 1; }; }
966abd70
HPN
11192 fi
11193 fi
252b5132
RH
11194 ;;
11195 false-false-false)
11196 wordsize=32
11197 all_backends='$(BFD32_BACKENDS)'
11198 ;;
11199esac
11200
6be7c12c
AO
11201
11202
11203
11204
11205
69263e90 11206
2858ef35 11207
1012372a
AC
11208# Determine the host dependant file_ptr a.k.a. off_t type. In order
11209# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11210# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11211# Hopefully a reasonable assumption since fseeko et.al. should be
11212# upward compatible.
5464f5a1
NN
11213
11214
11215
11216
2e6f4fae
DJ
11217
11218for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 11219do
5464f5a1
NN
11220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221echo "$as_me:$LINENO: checking for $ac_func" >&5
11222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11223if eval "test \"\${$as_ac_var+set}\" = set"; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225else
2ba49b59
KC
11226 cat >conftest.$ac_ext <<_ACEOF
11227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
11231/* end confdefs.h. */
11232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234#define $ac_func innocuous_$ac_func
11235
11236/* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11240
11241#ifdef __STDC__
11242# include <limits.h>
11243#else
11244# include <assert.h>
11245#endif
11246
11247#undef $ac_func
11248
11249/* Override any gcc2 internal prototype to avoid an error. */
11250#ifdef __cplusplus
11251extern "C"
11252{
11253#endif
11254/* We use char because int might match the return type of a gcc2
11255 builtin and then its argument prototype would still apply. */
11256char $ac_func ();
11257/* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11261choke me
11262#else
11263char (*f) () = $ac_func;
11264#endif
11265#ifdef __cplusplus
11266}
11267#endif
11268
11269int
11270main ()
11271{
11272return f != $ac_func;
11273 ;
11274 return 0;
11275}
11276_ACEOF
11277rm -f conftest.$ac_objext conftest$ac_exeext
11278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279 (eval $ac_link) 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } &&
49c96104
SE
11286 { ac_try='test -z "$ac_c_werror_flag"
11287 || test ! -s conftest.err'
2ba49b59
KC
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; } &&
11293 { ac_try='test -s conftest$ac_exeext'
11294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295 (eval $ac_try) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }; }; then
11299 eval "$as_ac_var=yes"
11300else
11301 echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
11304eval "$as_ac_var=no"
11305fi
11306rm -f conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308fi
11309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11311if test `eval echo '${'$as_ac_var'}'` = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11314_ACEOF
11315
11316fi
11317done
11318
11319if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11320 echo "$as_me:$LINENO: checking for off_t" >&5
11321echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11322if test "${ac_cv_type_off_t+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11324else
11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
11330/* end confdefs.h. */
11331$ac_includes_default
11332int
11333main ()
11334{
11335if ((off_t *) 0)
11336 return 0;
11337if (sizeof (off_t))
11338 return 0;
11339 ;
11340 return 0;
11341}
11342_ACEOF
11343rm -f conftest.$ac_objext
11344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11345 (eval $ac_compile) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } &&
49c96104
SE
11352 { ac_try='test -z "$ac_c_werror_flag"
11353 || test ! -s conftest.err'
2ba49b59
KC
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11362 ac_status=$?
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_cv_type_off_t=yes
11366else
11367 echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370ac_cv_type_off_t=no
11371fi
11372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11373fi
11374echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11375echo "${ECHO_T}$ac_cv_type_off_t" >&6
11376
11377echo "$as_me:$LINENO: checking size of off_t" >&5
11378echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11379if test "${ac_cv_sizeof_off_t+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 if test "$ac_cv_type_off_t" = yes; then
11383 # The cast to unsigned long works around a bug in the HP C Compiler
11384 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11385 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11386 # This bug is HP SR number 8606223364.
11387 if test "$cross_compiling" = yes; then
11388 # Depending upon the size, compute the lo and hi bounds.
11389cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11390/* confdefs.h. */
11391_ACEOF
11392cat confdefs.h >>conftest.$ac_ext
11393cat >>conftest.$ac_ext <<_ACEOF
11394/* end confdefs.h. */
2ba49b59
KC
11395$ac_includes_default
11396int
11397main ()
11398{
11399static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11400test_array [0] = 0
5464f5a1 11401
2ba49b59
KC
11402 ;
11403 return 0;
11404}
11405_ACEOF
11406rm -f conftest.$ac_objext
11407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11408 (eval $ac_compile) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
49c96104
SE
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
2ba49b59
KC
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest.$ac_objext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_lo=0 ac_mid=0
11429 while :; do
11430 cat >conftest.$ac_ext <<_ACEOF
11431/* confdefs.h. */
11432_ACEOF
11433cat confdefs.h >>conftest.$ac_ext
11434cat >>conftest.$ac_ext <<_ACEOF
11435/* end confdefs.h. */
11436$ac_includes_default
11437int
11438main ()
11439{
11440static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11441test_array [0] = 0
5464f5a1 11442
2ba49b59
KC
11443 ;
11444 return 0;
11445}
11446_ACEOF
11447rm -f conftest.$ac_objext
11448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11449 (eval $ac_compile) 2>conftest.er1
11450 ac_status=$?
11451 grep -v '^ *+' conftest.er1 >conftest.err
11452 rm -f conftest.er1
11453 cat conftest.err >&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
49c96104
SE
11456 { ac_try='test -z "$ac_c_werror_flag"
11457 || test ! -s conftest.err'
2ba49b59
KC
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); }; } &&
11463 { ac_try='test -s conftest.$ac_objext'
11464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 ac_hi=$ac_mid; break
11470else
11471 echo "$as_me: failed program was:" >&5
11472sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11473
2ba49b59
KC
11474ac_lo=`expr $ac_mid + 1`
11475 if test $ac_lo -le $ac_mid; then
11476 ac_lo= ac_hi=
11477 break
11478 fi
11479 ac_mid=`expr 2 '*' $ac_mid + 1`
11480fi
11481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11482 done
11483else
11484 echo "$as_me: failed program was:" >&5
11485sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11486
2ba49b59
KC
11487cat >conftest.$ac_ext <<_ACEOF
11488/* confdefs.h. */
11489_ACEOF
11490cat confdefs.h >>conftest.$ac_ext
11491cat >>conftest.$ac_ext <<_ACEOF
11492/* end confdefs.h. */
11493$ac_includes_default
11494int
11495main ()
5464f5a1 11496{
2ba49b59
KC
11497static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11498test_array [0] = 0
1012372a 11499
2ba49b59
KC
11500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext
11505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11506 (eval $ac_compile) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
49c96104
SE
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
2ba49b59
KC
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest.$ac_objext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_hi=-1 ac_mid=-1
11527 while :; do
11528 cat >conftest.$ac_ext <<_ACEOF
11529/* confdefs.h. */
11530_ACEOF
11531cat confdefs.h >>conftest.$ac_ext
11532cat >>conftest.$ac_ext <<_ACEOF
11533/* end confdefs.h. */
11534$ac_includes_default
5464f5a1
NN
11535int
11536main ()
11537{
2ba49b59
KC
11538static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11539test_array [0] = 0
11540
5464f5a1
NN
11541 ;
11542 return 0;
11543}
11544_ACEOF
2ba49b59
KC
11545rm -f conftest.$ac_objext
11546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
49c96104
SE
11554 { ac_try='test -z "$ac_c_werror_flag"
11555 || test ! -s conftest.err'
5464f5a1
NN
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
2ba49b59 11561 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
2ba49b59 11567 ac_lo=$ac_mid; break
5464f5a1
NN
11568else
11569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
11571
2ba49b59
KC
11572ac_hi=`expr '(' $ac_mid ')' - 1`
11573 if test $ac_mid -le $ac_hi; then
11574 ac_lo= ac_hi=
11575 break
11576 fi
11577 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11578fi
2ba49b59
KC
11579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580 done
11581else
11582 echo "$as_me: failed program was:" >&5
11583sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11584
2ba49b59 11585ac_lo= ac_hi=
1012372a 11586fi
2ba49b59
KC
11587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11588fi
11589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590# Binary search between lo and hi bounds.
11591while test "x$ac_lo" != "x$ac_hi"; do
11592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
11593 cat >conftest.$ac_ext <<_ACEOF
11594/* confdefs.h. */
11595_ACEOF
11596cat confdefs.h >>conftest.$ac_ext
11597cat >>conftest.$ac_ext <<_ACEOF
11598/* end confdefs.h. */
2ba49b59 11599$ac_includes_default
5464f5a1
NN
11600int
11601main ()
11602{
2ba49b59
KC
11603static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11604test_array [0] = 0
11605
5464f5a1
NN
11606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext
11611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } &&
49c96104
SE
11619 { ac_try='test -z "$ac_c_werror_flag"
11620 || test ! -s conftest.err'
5464f5a1
NN
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
2ba49b59 11632 ac_hi=$ac_mid
1012372a 11633else
5464f5a1
NN
11634 echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
2ba49b59 11637ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 11638fi
5464f5a1 11639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 11640done
2ba49b59
KC
11641case $ac_lo in
11642?*) ac_cv_sizeof_off_t=$ac_lo;;
11643'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11644See \`config.log' for more details." >&5
11645echo "$as_me: error: cannot compute sizeof (off_t), 77
11646See \`config.log' for more details." >&2;}
11647 { (exit 1); exit 1; }; } ;;
11648esac
11649else
11650 if test "$cross_compiling" = yes; then
49c96104
SE
11651 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11652See \`config.log' for more details." >&5
11653echo "$as_me: error: cannot run test program while cross compiling
11654See \`config.log' for more details." >&2;}
2ba49b59
KC
11655 { (exit 1); exit 1; }; }
11656else
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663$ac_includes_default
11664long longval () { return (long) (sizeof (off_t)); }
11665unsigned long ulongval () { return (long) (sizeof (off_t)); }
11666#include <stdio.h>
11667#include <stdlib.h>
11668int
11669main ()
11670{
1012372a 11671
2ba49b59
KC
11672 FILE *f = fopen ("conftest.val", "w");
11673 if (! f)
11674 exit (1);
11675 if (((long) (sizeof (off_t))) < 0)
11676 {
11677 long i = longval ();
11678 if (i != ((long) (sizeof (off_t))))
11679 exit (1);
11680 fprintf (f, "%ld\n", i);
11681 }
11682 else
11683 {
11684 unsigned long i = ulongval ();
11685 if (i != ((long) (sizeof (off_t))))
11686 exit (1);
11687 fprintf (f, "%lu\n", i);
11688 }
11689 exit (ferror (f) || fclose (f) != 0);
11690
11691 ;
11692 return 0;
11693}
11694_ACEOF
11695rm -f conftest$ac_exeext
11696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 ac_cv_sizeof_off_t=`cat conftest.val`
11707else
11708 echo "$as_me: program exited with status $ac_status" >&5
11709echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11711
2ba49b59
KC
11712( exit $ac_status )
11713{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11714See \`config.log' for more details." >&5
11715echo "$as_me: error: cannot compute sizeof (off_t), 77
11716See \`config.log' for more details." >&2;}
5464f5a1 11717 { (exit 1); exit 1; }; }
1012372a 11718fi
2ba49b59
KC
11719rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11720fi
11721fi
11722rm -f conftest.val
11723else
11724 ac_cv_sizeof_off_t=0
11725fi
11726fi
5464f5a1
NN
11727echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11728echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 11729cat >>confdefs.h <<_ACEOF
1012372a 11730#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11731_ACEOF
1012372a
AC
11732
11733
1012372a 11734fi
5464f5a1
NN
11735echo "$as_me:$LINENO: checking file_ptr type" >&5
11736echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11737bfd_file_ptr="long"
11738bfd_ufile_ptr="unsigned long"
11739if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11740 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11741 bfd_file_ptr=BFD_HOST_64_BIT
11742 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11743fi
5464f5a1
NN
11744echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11745echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11746
11747
11748
11749
252b5132
RH
11750tdefaults=""
11751test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11752test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11753test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11754test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11755test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11756
6be7c12c 11757
5464f5a1
NN
11758
11759
11760for ac_header in stdlib.h unistd.h
252b5132 11761do
5464f5a1
NN
11762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11763if eval "test \"\${$as_ac_Header+set}\" = set"; then
11764 echo "$as_me:$LINENO: checking for $ac_header" >&5
11765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11766if eval "test \"\${$as_ac_Header+set}\" = set"; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768fi
11769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11771else
11772 # Is the header compilable?
11773echo "$as_me:$LINENO: checking $ac_header usability" >&5
11774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11775cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
11781$ac_includes_default
11782#include <$ac_header>
11783_ACEOF
11784rm -f conftest.$ac_objext
11785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786 (eval $ac_compile) 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
49c96104
SE
11793 { ac_try='test -z "$ac_c_werror_flag"
11794 || test ! -s conftest.err'
5464f5a1
NN
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
11800 { ac_try='test -s conftest.$ac_objext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 ac_header_compiler=yes
11807else
11808 echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811ac_header_compiler=no
11812fi
11813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11814echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11815echo "${ECHO_T}$ac_header_compiler" >&6
11816
11817# Is the header present?
11818echo "$as_me:$LINENO: checking $ac_header presence" >&5
11819echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11820cat >conftest.$ac_ext <<_ACEOF
11821/* confdefs.h. */
11822_ACEOF
11823cat confdefs.h >>conftest.$ac_ext
11824cat >>conftest.$ac_ext <<_ACEOF
11825/* end confdefs.h. */
11826#include <$ac_header>
11827_ACEOF
11828if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } >/dev/null; then
11836 if test -s conftest.err; then
11837 ac_cpp_err=$ac_c_preproc_warn_flag
11838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11839 else
11840 ac_cpp_err=
11841 fi
252b5132 11842else
5464f5a1 11843 ac_cpp_err=yes
252b5132 11844fi
5464f5a1
NN
11845if test -z "$ac_cpp_err"; then
11846 ac_header_preproc=yes
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 ac_header_preproc=no
252b5132 11852fi
5464f5a1
NN
11853rm -f conftest.err conftest.$ac_ext
11854echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11855echo "${ECHO_T}$ac_header_preproc" >&6
11856
11857# So? What about this header?
11858case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11859 yes:no: )
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11861echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11863echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11864 ac_header_preproc=yes
11865 ;;
11866 no:yes:* )
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11868echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11870echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11872echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11874echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11876echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11878echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11879 (
11880 cat <<\_ASBOX
11881## ------------------------------------------ ##
11882## Report this to the AC_PACKAGE_NAME lists. ##
11883## ------------------------------------------ ##
11884_ASBOX
11885 ) |
11886 sed "s/^/$as_me: WARNING: /" >&2
11887 ;;
11888esac
11889echo "$as_me:$LINENO: checking for $ac_header" >&5
11890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11893else
5464f5a1
NN
11894 eval "$as_ac_Header=\$ac_header_preproc"
11895fi
11896echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11897echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11898
11899fi
11900if test `eval echo '${'$as_ac_Header'}'` = yes; then
11901 cat >>confdefs.h <<_ACEOF
11902#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11903_ACEOF
11904
252b5132 11905fi
5464f5a1 11906
252b5132
RH
11907done
11908
5464f5a1 11909
252b5132
RH
11910for ac_func in getpagesize
11911do
5464f5a1
NN
11912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11913echo "$as_me:$LINENO: checking for $ac_func" >&5
11914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11915if eval "test \"\${$as_ac_var+set}\" = set"; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11917else
11918 cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h. */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h. */
11924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11926#define $ac_func innocuous_$ac_func
11927
252b5132 11928/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11929 which can conflict with char $ac_func (); below.
11930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11931 <limits.h> exists even on freestanding compilers. */
11932
11933#ifdef __STDC__
11934# include <limits.h>
11935#else
11936# include <assert.h>
11937#endif
6be7c12c 11938
5464f5a1 11939#undef $ac_func
252b5132 11940
5464f5a1
NN
11941/* Override any gcc2 internal prototype to avoid an error. */
11942#ifdef __cplusplus
11943extern "C"
11944{
11945#endif
11946/* We use char because int might match the return type of a gcc2
11947 builtin and then its argument prototype would still apply. */
11948char $ac_func ();
252b5132
RH
11949/* The GNU C library defines this for functions which it implements
11950 to always fail with ENOSYS. Some functions are actually named
11951 something starting with __ and the normal name is an alias. */
11952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11953choke me
11954#else
5464f5a1
NN
11955char (*f) () = $ac_func;
11956#endif
11957#ifdef __cplusplus
11958}
252b5132
RH
11959#endif
11960
5464f5a1
NN
11961int
11962main ()
11963{
11964return f != $ac_func;
11965 ;
11966 return 0;
11967}
11968_ACEOF
11969rm -f conftest.$ac_objext conftest$ac_exeext
11970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971 (eval $ac_link) 2>conftest.er1
11972 ac_status=$?
11973 grep -v '^ *+' conftest.er1 >conftest.err
11974 rm -f conftest.er1
11975 cat conftest.err >&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } &&
49c96104
SE
11978 { ac_try='test -z "$ac_c_werror_flag"
11979 || test ! -s conftest.err'
5464f5a1
NN
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; } &&
11985 { ac_try='test -s conftest$ac_exeext'
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
11991 eval "$as_ac_var=yes"
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
11996eval "$as_ac_var=no"
11997fi
11998rm -f conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000fi
12001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12002echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12003if test `eval echo '${'$as_ac_var'}'` = yes; then
12004 cat >>confdefs.h <<_ACEOF
12005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006_ACEOF
252b5132 12007
252b5132
RH
12008fi
12009done
12010
5464f5a1
NN
12011echo "$as_me:$LINENO: checking for working mmap" >&5
12012echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12013if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12015else
12016 if test "$cross_compiling" = yes; then
12017 ac_cv_func_mmap_fixed_mapped=no
12018else
5464f5a1
NN
12019 cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
12025$ac_includes_default
12026/* malloc might have been renamed as rpl_malloc. */
12027#undef malloc
6be7c12c 12028
252b5132
RH
12029/* Thanks to Mike Haertel and Jim Avera for this test.
12030 Here is a matrix of mmap possibilities:
12031 mmap private not fixed
12032 mmap private fixed at somewhere currently unmapped
12033 mmap private fixed at somewhere already mapped
12034 mmap shared not fixed
12035 mmap shared fixed at somewhere currently unmapped
12036 mmap shared fixed at somewhere already mapped
12037 For private mappings, we should verify that changes cannot be read()
12038 back from the file, nor mmap's back from the file at a different
12039 address. (There have been systems where private was not correctly
12040 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12041 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12042 like early versions of FreeBSD and possibly contemporary NetBSD.)
12043 For shared mappings, we should conversely verify that changes get
5464f5a1 12044 propagated back to all the places they're supposed to be.
252b5132
RH
12045
12046 Grep wants private fixed already mapped.
12047 The main things grep needs to know about mmap are:
12048 * does it exist and is it safe to write into the mmap'd area
12049 * how to use it (BSD variants) */
5464f5a1 12050
252b5132
RH
12051#include <fcntl.h>
12052#include <sys/mman.h>
12053
5464f5a1
NN
12054#if !STDC_HEADERS && !HAVE_STDLIB_H
12055char *malloc ();
12056#endif
6be7c12c 12057
5464f5a1
NN
12058/* This mess was copied from the GNU getpagesize.h. */
12059#if !HAVE_GETPAGESIZE
252b5132 12060/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12061# if !HAVE_SYS_PARAM_H
252b5132
RH
12062# define HAVE_SYS_PARAM_H 1
12063# endif
12064
12065# ifdef _SC_PAGESIZE
12066# define getpagesize() sysconf(_SC_PAGESIZE)
12067# else /* no _SC_PAGESIZE */
5464f5a1 12068# if HAVE_SYS_PARAM_H
252b5132
RH
12069# include <sys/param.h>
12070# ifdef EXEC_PAGESIZE
12071# define getpagesize() EXEC_PAGESIZE
12072# else /* no EXEC_PAGESIZE */
12073# ifdef NBPG
12074# define getpagesize() NBPG * CLSIZE
12075# ifndef CLSIZE
12076# define CLSIZE 1
12077# endif /* no CLSIZE */
12078# else /* no NBPG */
12079# ifdef NBPC
12080# define getpagesize() NBPC
12081# else /* no NBPC */
12082# ifdef PAGESIZE
12083# define getpagesize() PAGESIZE
12084# endif /* PAGESIZE */
12085# endif /* no NBPC */
12086# endif /* no NBPG */
12087# endif /* no EXEC_PAGESIZE */
12088# else /* no HAVE_SYS_PARAM_H */
12089# define getpagesize() 8192 /* punt totally */
12090# endif /* no HAVE_SYS_PARAM_H */
12091# endif /* no _SC_PAGESIZE */
12092
5464f5a1
NN
12093#endif /* no HAVE_GETPAGESIZE */
12094
12095int
12096main ()
12097{
12098 char *data, *data2, *data3;
12099 int i, pagesize;
12100 int fd;
12101
12102 pagesize = getpagesize ();
12103
12104 /* First, make a file with some known garbage in it. */
12105 data = (char *) malloc (pagesize);
12106 if (!data)
12107 exit (1);
12108 for (i = 0; i < pagesize; ++i)
12109 *(data + i) = rand ();
12110 umask (0);
12111 fd = creat ("conftest.mmap", 0600);
12112 if (fd < 0)
12113 exit (1);
12114 if (write (fd, data, pagesize) != pagesize)
12115 exit (1);
12116 close (fd);
12117
12118 /* Next, try to mmap the file at a fixed address which already has
12119 something else allocated at it. If we can, also make sure that
12120 we see the same garbage. */
12121 fd = open ("conftest.mmap", O_RDWR);
12122 if (fd < 0)
12123 exit (1);
12124 data2 = (char *) malloc (2 * pagesize);
12125 if (!data2)
12126 exit (1);
12127 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12128 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12129 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12130 exit (1);
12131 for (i = 0; i < pagesize; ++i)
12132 if (*(data + i) != *(data2 + i))
12133 exit (1);
12134
12135 /* Finally, make sure that changes to the mapped area do not
12136 percolate back to the file as seen by read(). (This is a bug on
12137 some variants of i386 svr4.0.) */
12138 for (i = 0; i < pagesize; ++i)
12139 *(data2 + i) = *(data2 + i) + 1;
12140 data3 = (char *) malloc (pagesize);
12141 if (!data3)
12142 exit (1);
12143 if (read (fd, data3, pagesize) != pagesize)
12144 exit (1);
12145 for (i = 0; i < pagesize; ++i)
12146 if (*(data + i) != *(data3 + i))
12147 exit (1);
12148 close (fd);
12149 exit (0);
12150}
12151_ACEOF
12152rm -f conftest$ac_exeext
12153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12154 (eval $ac_link) 2>&5
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
12163 ac_cv_func_mmap_fixed_mapped=yes
12164else
12165 echo "$as_me: program exited with status $ac_status" >&5
12166echo "$as_me: failed program was:" >&5
12167sed 's/^/| /' conftest.$ac_ext >&5
12168
12169( exit $ac_status )
12170ac_cv_func_mmap_fixed_mapped=no
12171fi
12172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12173fi
12174fi
12175echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12176echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12177if test $ac_cv_func_mmap_fixed_mapped = yes; then
12178
12179cat >>confdefs.h <<\_ACEOF
12180#define HAVE_MMAP 1
12181_ACEOF
12182
12183fi
12184rm -f conftest.mmap
12185
12186
12187
12188for ac_func in madvise mprotect
12189do
12190as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12191echo "$as_me:$LINENO: checking for $ac_func" >&5
12192echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12193if eval "test \"\${$as_ac_var+set}\" = set"; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12204#define $ac_func innocuous_$ac_func
12205
12206/* System header to define __stub macros and hopefully few prototypes,
12207 which can conflict with char $ac_func (); below.
12208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12209 <limits.h> exists even on freestanding compilers. */
12210
12211#ifdef __STDC__
12212# include <limits.h>
12213#else
12214# include <assert.h>
12215#endif
12216
12217#undef $ac_func
12218
12219/* Override any gcc2 internal prototype to avoid an error. */
12220#ifdef __cplusplus
12221extern "C"
12222{
12223#endif
12224/* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226char $ac_func ();
12227/* The GNU C library defines this for functions which it implements
12228 to always fail with ENOSYS. Some functions are actually named
12229 something starting with __ and the normal name is an alias. */
12230#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12231choke me
12232#else
12233char (*f) () = $ac_func;
12234#endif
12235#ifdef __cplusplus
12236}
12237#endif
12238
12239int
12240main ()
12241{
12242return f != $ac_func;
12243 ;
12244 return 0;
12245}
12246_ACEOF
12247rm -f conftest.$ac_objext conftest$ac_exeext
12248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12249 (eval $ac_link) 2>conftest.er1
12250 ac_status=$?
12251 grep -v '^ *+' conftest.er1 >conftest.err
12252 rm -f conftest.er1
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
49c96104
SE
12256 { ac_try='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
5464f5a1
NN
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 eval "$as_ac_var=yes"
12270else
12271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274eval "$as_ac_var=no"
12275fi
12276rm -f conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278fi
12279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12280echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12281if test `eval echo '${'$as_ac_var'}'` = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12284_ACEOF
12285
12286fi
12287done
12288
12289case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12290 true+yes )
12291cat >>confdefs.h <<\_ACEOF
12292#define USE_MMAP 1
12293_ACEOF
12294 ;;
12295esac
12296
12297rm -f doc/config.status
12298 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12299
20e95c23 12300
5464f5a1
NN
12301 ac_config_commands="$ac_config_commands default"
12302
108a6f8e
CD
12303
12304
12305
12306
12307
5464f5a1
NN
12308cat >confcache <<\_ACEOF
12309# This file is a shell script that caches the results of configure
12310# tests run on this system so they can be shared between configure
12311# scripts and configure runs, see configure's option --config-cache.
12312# It is not useful on other systems. If it contains results you don't
12313# want to keep, you may remove or edit it.
12314#
12315# config.status only pays attention to the cache file if you give it
12316# the --recheck option to rerun configure.
12317#
12318# `ac_cv_env_foo' variables (set or unset) will be overridden when
12319# loading this file, other *unset* `ac_cv_foo' will be assigned the
12320# following values.
12321
12322_ACEOF
12323
12324# The following way of writing the cache mishandles newlines in values,
12325# but we know of no workaround that is simple, portable, and efficient.
12326# So, don't put newlines in cache variables' values.
12327# Ultrix sh set writes to stderr and can't be redirected directly,
12328# and sets the high bit in the cache file unless we assign to the vars.
12329{
12330 (set) 2>&1 |
12331 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12332 *ac_space=\ *)
12333 # `set' does not quote correctly, so add quotes (double-quote
12334 # substitution turns \\\\ into \\, and sed turns \\ into \).
12335 sed -n \
12336 "s/'/'\\\\''/g;
12337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12338 ;;
12339 *)
12340 # `set' quotes correctly as required by POSIX, so do not add quotes.
12341 sed -n \
12342 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12343 ;;
12344 esac;
12345} |
12346 sed '
12347 t clear
12348 : clear
12349 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12350 t end
12351 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12352 : end' >>confcache
12353if diff $cache_file confcache >/dev/null 2>&1; then :; else
12354 if test -w $cache_file; then
12355 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12356 cat confcache >$cache_file
12357 else
12358 echo "not updating unwritable cache $cache_file"
12359 fi
12360fi
12361rm -f confcache
12362
12363test "x$prefix" = xNONE && prefix=$ac_default_prefix
12364# Let make expand exec_prefix.
12365test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12366
12367# VPATH may cause trouble with some makes, so we remove $(srcdir),
12368# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12369# trailing colons and then remove the whole line if VPATH becomes empty
12370# (actually we leave an empty line to preserve line numbers).
12371if test "x$srcdir" = x.; then
12372 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12373s/:*\$(srcdir):*/:/;
12374s/:*\${srcdir}:*/:/;
12375s/:*@srcdir@:*/:/;
12376s/^\([^=]*=[ ]*\):*/\1/;
12377s/:*$//;
12378s/^[^=]*=[ ]*$//;
12379}'
12380fi
12381
12382DEFS=-DHAVE_CONFIG_H
12383
12384ac_libobjs=
12385ac_ltlibobjs=
12386for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12387 # 1. Remove the extension, and $U if already installed.
12388 ac_i=`echo "$ac_i" |
12389 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12390 # 2. Add them.
12391 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12392 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12393done
12394LIBOBJS=$ac_libobjs
12395
12396LTLIBOBJS=$ac_ltlibobjs
12397
12398
f5385ebf
AM
12399if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12400 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12401Usually this means the macro was only invoked conditionally." >&5
12402echo "$as_me: error: conditional \"AMDEP\" was never defined.
12403Usually this means the macro was only invoked conditionally." >&2;}
12404 { (exit 1); exit 1; }; }
12405fi
12406if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12407 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12408Usually this means the macro was only invoked conditionally." >&5
12409echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12410Usually this means the macro was only invoked conditionally." >&2;}
12411 { (exit 1); exit 1; }; }
12412fi
12413if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12414 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12415Usually this means the macro was only invoked conditionally." >&5
12416echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12417Usually this means the macro was only invoked conditionally." >&2;}
12418 { (exit 1); exit 1; }; }
12419fi
d5fbea21
DJ
12420if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
12421 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined.
12422Usually this means the macro was only invoked conditionally." >&5
12423echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined.
12424Usually this means the macro was only invoked conditionally." >&2;}
12425 { (exit 1); exit 1; }; }
12426fi
f5385ebf
AM
12427if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12428 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12429Usually this means the macro was only invoked conditionally." >&5
12430echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12431Usually this means the macro was only invoked conditionally." >&2;}
12432 { (exit 1); exit 1; }; }
12433fi
5464f5a1
NN
12434
12435: ${CONFIG_STATUS=./config.status}
12436ac_clean_files_save=$ac_clean_files
12437ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12438{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12439echo "$as_me: creating $CONFIG_STATUS" >&6;}
12440cat >$CONFIG_STATUS <<_ACEOF
12441#! $SHELL
12442# Generated by $as_me.
12443# Run this file to recreate the current configuration.
12444# Compiler output produced by configure, useful for debugging
12445# configure, is in config.log if it exists.
12446
12447debug=false
12448ac_cs_recheck=false
12449ac_cs_silent=false
12450SHELL=\${CONFIG_SHELL-$SHELL}
12451_ACEOF
12452
12453cat >>$CONFIG_STATUS <<\_ACEOF
12454## --------------------- ##
12455## M4sh Initialization. ##
12456## --------------------- ##
12457
12458# Be Bourne compatible
12459if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12460 emulate sh
12461 NULLCMD=:
12462 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12463 # is contrary to our usage. Disable this feature.
12464 alias -g '${1+"$@"}'='"$@"'
12465elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12466 set -o posix
12467fi
12468DUALCASE=1; export DUALCASE # for MKS sh
12469
12470# Support unset when possible.
12471if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12472 as_unset=unset
12473else
12474 as_unset=false
12475fi
12476
12477
12478# Work around bugs in pre-3.0 UWIN ksh.
12479$as_unset ENV MAIL MAILPATH
12480PS1='$ '
12481PS2='> '
12482PS4='+ '
12483
12484# NLS nuisances.
12485for as_var in \
12486 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12487 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12488 LC_TELEPHONE LC_TIME
12489do
12490 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12491 eval $as_var=C; export $as_var
12492 else
12493 $as_unset $as_var
12494 fi
12495done
12496
12497# Required to use basename.
12498if expr a : '\(a\)' >/dev/null 2>&1; then
12499 as_expr=expr
12500else
12501 as_expr=false
12502fi
12503
12504if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12505 as_basename=basename
12506else
12507 as_basename=false
12508fi
252b5132 12509
6be7c12c 12510
5464f5a1
NN
12511# Name of the executable.
12512as_me=`$as_basename "$0" ||
12513$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12514 X"$0" : 'X\(//\)$' \| \
12515 X"$0" : 'X\(/\)$' \| \
12516 . : '\(.\)' 2>/dev/null ||
12517echo X/"$0" |
12518 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12519 /^X\/\(\/\/\)$/{ s//\1/; q; }
12520 /^X\/\(\/\).*/{ s//\1/; q; }
12521 s/.*/./; q'`
12522
12523
12524# PATH needs CR, and LINENO needs CR and PATH.
12525# Avoid depending upon Character Ranges.
12526as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12527as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12528as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12529as_cr_digits='0123456789'
12530as_cr_alnum=$as_cr_Letters$as_cr_digits
12531
12532# The user is always right.
12533if test "${PATH_SEPARATOR+set}" != set; then
12534 echo "#! /bin/sh" >conf$$.sh
12535 echo "exit 0" >>conf$$.sh
12536 chmod +x conf$$.sh
12537 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12538 PATH_SEPARATOR=';'
12539 else
12540 PATH_SEPARATOR=:
12541 fi
12542 rm -f conf$$.sh
12543fi
12544
12545
12546 as_lineno_1=$LINENO
12547 as_lineno_2=$LINENO
12548 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12549 test "x$as_lineno_1" != "x$as_lineno_2" &&
12550 test "x$as_lineno_3" = "x$as_lineno_2" || {
12551 # Find who we are. Look in the path if we contain no path at all
12552 # relative or not.
12553 case $0 in
12554 *[\\/]* ) as_myself=$0 ;;
12555 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12561done
12562
12563 ;;
12564 esac
12565 # We did not find ourselves, most probably we were run as `sh COMMAND'
12566 # in which case we are not to be found in the path.
12567 if test "x$as_myself" = x; then
12568 as_myself=$0
12569 fi
12570 if test ! -f "$as_myself"; then
12571 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12572echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12573 { (exit 1); exit 1; }; }
12574 fi
12575 case $CONFIG_SHELL in
12576 '')
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12579do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for as_base in sh bash ksh sh5; do
12583 case $as_dir in
12584 /*)
12585 if ("$as_dir/$as_base" -c '
12586 as_lineno_1=$LINENO
12587 as_lineno_2=$LINENO
12588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12589 test "x$as_lineno_1" != "x$as_lineno_2" &&
12590 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12591 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12592 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12593 CONFIG_SHELL=$as_dir/$as_base
12594 export CONFIG_SHELL
12595 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12596 fi;;
12597 esac
12598 done
12599done
12600;;
12601 esac
12602
12603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12604 # uniformly replaced by the line number. The first 'sed' inserts a
12605 # line-number line before each line; the second 'sed' does the real
12606 # work. The second script uses 'N' to pair each line-number line
12607 # with the numbered line, and appends trailing '-' during
12608 # substitution so that $LINENO is not a special case at line end.
12609 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12610 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12611 sed '=' <$as_myself |
12612 sed '
12613 N
12614 s,$,-,
12615 : loop
12616 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12617 t loop
12618 s,-$,,
12619 s,^['$as_cr_digits']*\n,,
12620 ' >$as_me.lineno &&
12621 chmod +x $as_me.lineno ||
12622 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12623echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12624 { (exit 1); exit 1; }; }
12625
12626 # Don't try to exec as it changes $[0], causing all sort of problems
12627 # (the dirname of $[0] is not the place where we might find the
12628 # original and so on. Autoconf is especially sensible to this).
12629 . ./$as_me.lineno
12630 # Exit status is that of the last command.
12631 exit
252b5132 12632}
6be7c12c 12633
5464f5a1
NN
12634
12635case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12636 *c*,-n*) ECHO_N= ECHO_C='
12637' ECHO_T=' ' ;;
12638 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12639 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12640esac
12641
12642if expr a : '\(a\)' >/dev/null 2>&1; then
12643 as_expr=expr
252b5132 12644else
5464f5a1 12645 as_expr=false
252b5132 12646fi
5464f5a1
NN
12647
12648rm -f conf$$ conf$$.exe conf$$.file
12649echo >conf$$.file
12650if ln -s conf$$.file conf$$ 2>/dev/null; then
12651 # We could just check for DJGPP; but this test a) works b) is more generic
12652 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12653 if test -f conf$$.exe; then
12654 # Don't use ln at all; we don't have any links
12655 as_ln_s='cp -p'
12656 else
12657 as_ln_s='ln -s'
12658 fi
12659elif ln conf$$.file conf$$ 2>/dev/null; then
12660 as_ln_s=ln
12661else
12662 as_ln_s='cp -p'
252b5132 12663fi
5464f5a1 12664rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12665
5464f5a1
NN
12666if mkdir -p . 2>/dev/null; then
12667 as_mkdir_p=:
12668else
12669 test -d ./-p && rmdir ./-p
12670 as_mkdir_p=false
252b5132 12671fi
b3baf5d0 12672
5464f5a1 12673as_executable_p="test -f"
252b5132 12674
5464f5a1
NN
12675# Sed expression to map a string onto a valid CPP name.
12676as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12677
5464f5a1
NN
12678# Sed expression to map a string onto a valid variable name.
12679as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12680
252b5132 12681
5464f5a1
NN
12682# IFS
12683# We need space, tab and new line, in precisely that order.
12684as_nl='
12685'
12686IFS=" $as_nl"
252b5132 12687
5464f5a1
NN
12688# CDPATH.
12689$as_unset CDPATH
12690
12691exec 6>&1
12692
12693# Open the log real soon, to keep \$[0] and so on meaningful, and to
12694# report actual input values of CONFIG_FILES etc. instead of their
12695# values after options handling. Logging --version etc. is OK.
12696exec 5>>config.log
12697{
12698 echo
12699 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12700## Running $as_me. ##
12701_ASBOX
12702} >&5
12703cat >&5 <<_CSEOF
12704
12705This file was extended by $as_me, which was
12706generated by GNU Autoconf 2.59. Invocation command line was
12707
12708 CONFIG_FILES = $CONFIG_FILES
12709 CONFIG_HEADERS = $CONFIG_HEADERS
12710 CONFIG_LINKS = $CONFIG_LINKS
12711 CONFIG_COMMANDS = $CONFIG_COMMANDS
12712 $ $0 $@
12713
12714_CSEOF
12715echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12716echo >&5
12717_ACEOF
12718
12719# Files that config.status was made for.
12720if test -n "$ac_config_files"; then
12721 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12722fi
5464f5a1
NN
12723
12724if test -n "$ac_config_headers"; then
12725 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12726fi
252b5132 12727
5464f5a1
NN
12728if test -n "$ac_config_links"; then
12729 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12730fi
252b5132 12731
5464f5a1
NN
12732if test -n "$ac_config_commands"; then
12733 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12734fi
252b5132 12735
5464f5a1
NN
12736cat >>$CONFIG_STATUS <<\_ACEOF
12737
12738ac_cs_usage="\
12739\`$as_me' instantiates files from templates according to the
12740current configuration.
12741
12742Usage: $0 [OPTIONS] [FILE]...
12743
12744 -h, --help print this help, then exit
12745 -V, --version print version number, then exit
12746 -q, --quiet do not print progress messages
12747 -d, --debug don't remove temporary files
12748 --recheck update $as_me by reconfiguring in the same conditions
12749 --file=FILE[:TEMPLATE]
12750 instantiate the configuration file FILE
12751 --header=FILE[:TEMPLATE]
12752 instantiate the configuration header FILE
12753
12754Configuration files:
12755$config_files
12756
12757Configuration headers:
12758$config_headers
12759
12760Configuration commands:
12761$config_commands
12762
12763Report bugs to <bug-autoconf@gnu.org>."
12764_ACEOF
12765
12766cat >>$CONFIG_STATUS <<_ACEOF
12767ac_cs_version="\\
12768config.status
12769configured by $0, generated by GNU Autoconf 2.59,
12770 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12771
12772Copyright (C) 2003 Free Software Foundation, Inc.
12773This config.status script is free software; the Free Software Foundation
12774gives unlimited permission to copy, distribute and modify it."
12775srcdir=$srcdir
12776INSTALL="$INSTALL"
12777_ACEOF
12778
12779cat >>$CONFIG_STATUS <<\_ACEOF
12780# If no file are specified by the user, then we need to provide default
12781# value. By we need to know if files were specified by the user.
12782ac_need_defaults=:
12783while test $# != 0
12784do
12785 case $1 in
12786 --*=*)
12787 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12788 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12789 ac_shift=:
6be7c12c 12790 ;;
5464f5a1
NN
12791 -*)
12792 ac_option=$1
12793 ac_optarg=$2
12794 ac_shift=shift
6be7c12c 12795 ;;
5464f5a1
NN
12796 *) # This is not an option, so the user has probably given explicit
12797 # arguments.
12798 ac_option=$1
12799 ac_need_defaults=false;;
12800 esac
252b5132 12801
5464f5a1
NN
12802 case $ac_option in
12803 # Handling of the options.
12804_ACEOF
12805cat >>$CONFIG_STATUS <<\_ACEOF
12806 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12807 ac_cs_recheck=: ;;
12808 --version | --vers* | -V )
12809 echo "$ac_cs_version"; exit 0 ;;
12810 --he | --h)
12811 # Conflict between --help and --header
12812 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12813Try \`$0 --help' for more information." >&5
12814echo "$as_me: error: ambiguous option: $1
12815Try \`$0 --help' for more information." >&2;}
12816 { (exit 1); exit 1; }; };;
12817 --help | --hel | -h )
12818 echo "$ac_cs_usage"; exit 0 ;;
12819 --debug | --d* | -d )
12820 debug=: ;;
12821 --file | --fil | --fi | --f )
12822 $ac_shift
12823 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12824 ac_need_defaults=false;;
12825 --header | --heade | --head | --hea )
12826 $ac_shift
12827 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12828 ac_need_defaults=false;;
12829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12831 ac_cs_silent=: ;;
6be7c12c 12832
5464f5a1
NN
12833 # This is an error.
12834 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12835Try \`$0 --help' for more information." >&5
12836echo "$as_me: error: unrecognized option: $1
12837Try \`$0 --help' for more information." >&2;}
12838 { (exit 1); exit 1; }; } ;;
252b5132 12839
5464f5a1 12840 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12841
5464f5a1
NN
12842 esac
12843 shift
12844done
6be7c12c 12845
5464f5a1 12846ac_configure_extra_args=
252b5132 12847
5464f5a1
NN
12848if $ac_cs_silent; then
12849 exec 6>/dev/null
12850 ac_configure_extra_args="$ac_configure_extra_args --silent"
12851fi
6be7c12c 12852
5464f5a1
NN
12853_ACEOF
12854cat >>$CONFIG_STATUS <<_ACEOF
12855if \$ac_cs_recheck; then
12856 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12857 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12858fi
12859
12860_ACEOF
12861
12862cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12863#
5464f5a1 12864# INIT-COMMANDS section.
6be7c12c 12865#
b3baf5d0 12866
f5385ebf 12867AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
12868# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12869 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12870 # from automake.
12871 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12872 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12873 LINGUAS="${LINGUAS-%UNSET%}"
12874
5464f5a1
NN
12875
12876
12877_ACEOF
12878
12879
12880
12881cat >>$CONFIG_STATUS <<\_ACEOF
12882for ac_config_target in $ac_config_targets
252b5132 12883do
5464f5a1
NN
12884 case "$ac_config_target" in
12885 # Handling of arguments.
12886 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12887 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12888 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12889 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 12890 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 12891 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5464f5a1
NN
12892 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12893 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12894 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12895echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12896 { (exit 1); exit 1; }; };;
252b5132
RH
12897 esac
12898done
12899
5464f5a1
NN
12900# If the user did not use the arguments to specify the items to instantiate,
12901# then the envvar interface is used. Set only those that are not.
12902# We use the long form for the default assignment because of an extremely
12903# bizarre bug on SunOS 4.1.3.
12904if $ac_need_defaults; then
12905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12908fi
12909
12910# Have a temporary directory for convenience. Make it in the build tree
12911# simply because there is no reason to put it here, and in addition,
12912# creating and moving files from /tmp can sometimes cause problems.
12913# Create a temporary directory, and hook for its removal unless debugging.
12914$debug ||
12915{
12916 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12917 trap '{ (exit 1); exit 1; }' 1 2 13 15
12918}
b3baf5d0 12919
5464f5a1 12920# Create a (secure) tmp directory for tmp files.
b3baf5d0 12921
5464f5a1
NN
12922{
12923 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12924 test -n "$tmp" && test -d "$tmp"
12925} ||
12926{
12927 tmp=./confstat$$-$RANDOM
12928 (umask 077 && mkdir $tmp)
12929} ||
12930{
12931 echo "$me: cannot create a temporary directory in ." >&2
12932 { (exit 1); exit 1; }
12933}
12934
12935_ACEOF
12936
12937cat >>$CONFIG_STATUS <<_ACEOF
12938
12939#
12940# CONFIG_FILES section.
12941#
b3baf5d0 12942
5464f5a1
NN
12943# No need to generate the scripts if there are no CONFIG_FILES.
12944# This happens for instance when ./config.status config.h
12945if test -n "\$CONFIG_FILES"; then
12946 # Protect against being on the right side of a sed subst in config.status.
12947 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12948 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12949s,@SHELL@,$SHELL,;t t
12950s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12951s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12952s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12953s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12954s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12955s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12956s,@exec_prefix@,$exec_prefix,;t t
12957s,@prefix@,$prefix,;t t
12958s,@program_transform_name@,$program_transform_name,;t t
12959s,@bindir@,$bindir,;t t
12960s,@sbindir@,$sbindir,;t t
12961s,@libexecdir@,$libexecdir,;t t
12962s,@datadir@,$datadir,;t t
12963s,@sysconfdir@,$sysconfdir,;t t
12964s,@sharedstatedir@,$sharedstatedir,;t t
12965s,@localstatedir@,$localstatedir,;t t
12966s,@libdir@,$libdir,;t t
12967s,@includedir@,$includedir,;t t
12968s,@oldincludedir@,$oldincludedir,;t t
12969s,@infodir@,$infodir,;t t
12970s,@mandir@,$mandir,;t t
12971s,@build_alias@,$build_alias,;t t
12972s,@host_alias@,$host_alias,;t t
12973s,@target_alias@,$target_alias,;t t
12974s,@DEFS@,$DEFS,;t t
12975s,@ECHO_C@,$ECHO_C,;t t
12976s,@ECHO_N@,$ECHO_N,;t t
12977s,@ECHO_T@,$ECHO_T,;t t
12978s,@LIBS@,$LIBS,;t t
12979s,@build@,$build,;t t
12980s,@build_cpu@,$build_cpu,;t t
12981s,@build_vendor@,$build_vendor,;t t
12982s,@build_os@,$build_os,;t t
12983s,@host@,$host,;t t
12984s,@host_cpu@,$host_cpu,;t t
12985s,@host_vendor@,$host_vendor,;t t
12986s,@host_os@,$host_os,;t t
12987s,@target@,$target,;t t
12988s,@target_cpu@,$target_cpu,;t t
12989s,@target_vendor@,$target_vendor,;t t
12990s,@target_os@,$target_os,;t t
12991s,@CC@,$CC,;t t
12992s,@CFLAGS@,$CFLAGS,;t t
12993s,@LDFLAGS@,$LDFLAGS,;t t
12994s,@CPPFLAGS@,$CPPFLAGS,;t t
12995s,@ac_ct_CC@,$ac_ct_CC,;t t
12996s,@EXEEXT@,$EXEEXT,;t t
12997s,@OBJEXT@,$OBJEXT,;t t
12998s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12999s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13000s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13001s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13002s,@PACKAGE@,$PACKAGE,;t t
13003s,@VERSION@,$VERSION,;t t
13004s,@ACLOCAL@,$ACLOCAL,;t t
13005s,@AUTOCONF@,$AUTOCONF,;t t
13006s,@AUTOMAKE@,$AUTOMAKE,;t t
13007s,@AUTOHEADER@,$AUTOHEADER,;t t
13008s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13009s,@install_sh@,$install_sh,;t t
13010s,@STRIP@,$STRIP,;t t
13011s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13012s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13013s,@mkdir_p@,$mkdir_p,;t t
13014s,@AWK@,$AWK,;t t
5464f5a1 13015s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13016s,@am__leading_dot@,$am__leading_dot,;t t
13017s,@AMTAR@,$AMTAR,;t t
13018s,@am__tar@,$am__tar,;t t
13019s,@am__untar@,$am__untar,;t t
13020s,@DEPDIR@,$DEPDIR,;t t
13021s,@am__include@,$am__include,;t t
13022s,@am__quote@,$am__quote,;t t
13023s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13024s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13025s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13026s,@CCDEPMODE@,$CCDEPMODE,;t t
13027s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13028s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13029s,@AR@,$AR,;t t
13030s,@ac_ct_AR@,$ac_ct_AR,;t t
13031s,@RANLIB@,$RANLIB,;t t
13032s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13033s,@LN_S@,$LN_S,;t t
5464f5a1 13034s,@LIBTOOL@,$LIBTOOL,;t t
92f01d61 13035s,@PKGVERSION@,$PKGVERSION,;t t
5464f5a1 13036s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 13037s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
13038s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13039s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13040s,@MAINT@,$MAINT,;t t
d5fbea21
DJ
13041s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t
13042s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t
5464f5a1
NN
13043s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13044s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13045s,@host_noncanonical@,$host_noncanonical,;t t
13046s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13047s,@bfdlibdir@,$bfdlibdir,;t t
13048s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 13049s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13050s,@LIBINTL@,$LIBINTL,;t t
13051s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13052s,@INCINTL@,$INCINTL,;t t
5464f5a1 13053s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13054s,@GMSGFMT@,$GMSGFMT,;t t
13055s,@POSUB@,$POSUB,;t t
5464f5a1 13056s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 13057s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 13058s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13059s,@GENCAT@,$GENCAT,;t t
13060s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 13061s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13062s,@MSGFMT@,$MSGFMT,;t t
13063s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 13064s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
13065s,@CPP@,$CPP,;t t
13066s,@EGREP@,$EGREP,;t t
5464f5a1
NN
13067s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13068s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13069s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13070s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13071s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13072s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13073s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13074s,@COREFILE@,$COREFILE,;t t
13075s,@COREFLAG@,$COREFLAG,;t t
13076s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13077s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13078s,@TDEFINES@,$TDEFINES,;t t
13079s,@wordsize@,$wordsize,;t t
21e40a48 13080s,@bfd64_libs@,$bfd64_libs,;t t
5464f5a1
NN
13081s,@all_backends@,$all_backends,;t t
13082s,@bfd_backends@,$bfd_backends,;t t
13083s,@bfd_machines@,$bfd_machines,;t t
13084s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13085s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13086s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13087s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
13088s,@datarootdir@,$datarootdir,;t t
13089s,@docdir@,$docdir,;t t
13090s,@htmldir@,$htmldir,;t t
5464f5a1
NN
13091s,@LIBOBJS@,$LIBOBJS,;t t
13092s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13093CEOF
252b5132 13094
5464f5a1
NN
13095_ACEOF
13096
13097 cat >>$CONFIG_STATUS <<\_ACEOF
13098 # Split the substitutions into bite-sized pieces for seds with
13099 # small command number limits, like on Digital OSF/1 and HP-UX.
13100 ac_max_sed_lines=48
13101 ac_sed_frag=1 # Number of current file.
13102 ac_beg=1 # First line for current file.
13103 ac_end=$ac_max_sed_lines # Line after last line for current file.
13104 ac_more_lines=:
13105 ac_sed_cmds=
13106 while $ac_more_lines; do
13107 if test $ac_beg -gt 1; then
13108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13109 else
5464f5a1
NN
13110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13111 fi
13112 if test ! -s $tmp/subs.frag; then
13113 ac_more_lines=false
13114 else
13115 # The purpose of the label and of the branching condition is to
13116 # speed up the sed processing (if there are no `@' at all, there
13117 # is no need to browse any of the substitutions).
13118 # These are the two extra sed commands mentioned above.
13119 (echo ':t
13120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13121 if test -z "$ac_sed_cmds"; then
13122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13123 else
13124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13125 fi
13126 ac_sed_frag=`expr $ac_sed_frag + 1`
13127 ac_beg=$ac_end
13128 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13129 fi
5464f5a1
NN
13130 done
13131 if test -z "$ac_sed_cmds"; then
13132 ac_sed_cmds=cat
252b5132 13133 fi
5464f5a1 13134fi # test -n "$CONFIG_FILES"
6be7c12c 13135
5464f5a1
NN
13136_ACEOF
13137cat >>$CONFIG_STATUS <<\_ACEOF
13138for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13140 case $ac_file in
13141 - | *:- | *:-:* ) # input from stdin
13142 cat >$tmp/stdin
13143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13147 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13148 esac
13149
5464f5a1
NN
13150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13153 X"$ac_file" : 'X\(//\)[^/]' \| \
13154 X"$ac_file" : 'X\(//\)$' \| \
13155 X"$ac_file" : 'X\(/\)' \| \
13156 . : '\(.\)' 2>/dev/null ||
13157echo X"$ac_file" |
13158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13160 /^X\(\/\/\)$/{ s//\1/; q; }
13161 /^X\(\/\).*/{ s//\1/; q; }
13162 s/.*/./; q'`
13163 { if $as_mkdir_p; then
13164 mkdir -p "$ac_dir"
252b5132 13165 else
5464f5a1
NN
13166 as_dir="$ac_dir"
13167 as_dirs=
13168 while test ! -d "$as_dir"; do
13169 as_dirs="$as_dir $as_dirs"
13170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13172 X"$as_dir" : 'X\(//\)[^/]' \| \
13173 X"$as_dir" : 'X\(//\)$' \| \
13174 X"$as_dir" : 'X\(/\)' \| \
13175 . : '\(.\)' 2>/dev/null ||
13176echo X"$as_dir" |
13177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13179 /^X\(\/\/\)$/{ s//\1/; q; }
13180 /^X\(\/\).*/{ s//\1/; q; }
13181 s/.*/./; q'`
13182 done
13183 test ! -n "$as_dirs" || mkdir $as_dirs
13184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13185echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13186 { (exit 1); exit 1; }; }; }
13187
13188 ac_builddir=.
13189
13190if test "$ac_dir" != .; then
13191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13192 # A "../" for each directory in $ac_dir_suffix.
13193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13194else
13195 ac_dir_suffix= ac_top_builddir=
13196fi
252b5132 13197
5464f5a1
NN
13198case $srcdir in
13199 .) # No --srcdir option. We are building in place.
13200 ac_srcdir=.
13201 if test -z "$ac_top_builddir"; then
13202 ac_top_srcdir=.
13203 else
13204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13205 fi ;;
13206 [\\/]* | ?:[\\/]* ) # Absolute path.
13207 ac_srcdir=$srcdir$ac_dir_suffix;
13208 ac_top_srcdir=$srcdir ;;
252b5132 13209 *) # Relative path.
5464f5a1
NN
13210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13212esac
252b5132 13213
5464f5a1
NN
13214# Do not use `cd foo && pwd` to compute absolute paths, because
13215# the directories may not exist.
13216case `pwd` in
13217.) ac_abs_builddir="$ac_dir";;
13218*)
13219 case "$ac_dir" in
13220 .) ac_abs_builddir=`pwd`;;
13221 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13222 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13223 esac;;
13224esac
13225case $ac_abs_builddir in
13226.) ac_abs_top_builddir=${ac_top_builddir}.;;
13227*)
13228 case ${ac_top_builddir}. in
13229 .) ac_abs_top_builddir=$ac_abs_builddir;;
13230 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13231 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13232 esac;;
13233esac
13234case $ac_abs_builddir in
13235.) ac_abs_srcdir=$ac_srcdir;;
13236*)
13237 case $ac_srcdir in
13238 .) ac_abs_srcdir=$ac_abs_builddir;;
13239 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13240 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13241 esac;;
13242esac
13243case $ac_abs_builddir in
13244.) ac_abs_top_srcdir=$ac_top_srcdir;;
13245*)
13246 case $ac_top_srcdir in
13247 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13248 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13249 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13250 esac;;
13251esac
252b5132 13252
5464f5a1
NN
13253
13254 case $INSTALL in
13255 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13256 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13257 esac
252b5132 13258
49c96104
SE
13259 if test x"$ac_file" != x-; then
13260 { echo "$as_me:$LINENO: creating $ac_file" >&5
13261echo "$as_me: creating $ac_file" >&6;}
13262 rm -f "$ac_file"
13263 fi
5464f5a1
NN
13264 # Let's still pretend it is `configure' which instantiates (i.e., don't
13265 # use $as_me), people would be surprised to read:
13266 # /* config.h. Generated by config.status. */
13267 if test x"$ac_file" = x-; then
13268 configure_input=
13269 else
13270 configure_input="$ac_file. "
13271 fi
13272 configure_input=$configure_input"Generated from `echo $ac_file_in |
13273 sed 's,.*/,,'` by configure."
13274
13275 # First look for the input files in the build tree, otherwise in the
13276 # src tree.
13277 ac_file_inputs=`IFS=:
13278 for f in $ac_file_in; do
13279 case $f in
13280 -) echo $tmp/stdin ;;
13281 [\\/$]*)
13282 # Absolute (can't be DOS-style, as IFS=:)
13283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13284echo "$as_me: error: cannot find input file: $f" >&2;}
13285 { (exit 1); exit 1; }; }
13286 echo "$f";;
13287 *) # Relative
13288 if test -f "$f"; then
13289 # Build tree
13290 echo "$f"
13291 elif test -f "$srcdir/$f"; then
13292 # Source tree
13293 echo "$srcdir/$f"
13294 else
13295 # /dev/null tree
13296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13297echo "$as_me: error: cannot find input file: $f" >&2;}
13298 { (exit 1); exit 1; }; }
13299 fi;;
13300 esac
13301 done` || { (exit 1); exit 1; }
5464f5a1
NN
13302_ACEOF
13303cat >>$CONFIG_STATUS <<_ACEOF
13304 sed "$ac_vpsub
13305$extrasub
13306_ACEOF
13307cat >>$CONFIG_STATUS <<\_ACEOF
13308:t
13309/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13310s,@configure_input@,$configure_input,;t t
13311s,@srcdir@,$ac_srcdir,;t t
13312s,@abs_srcdir@,$ac_abs_srcdir,;t t
13313s,@top_srcdir@,$ac_top_srcdir,;t t
13314s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13315s,@builddir@,$ac_builddir,;t t
13316s,@abs_builddir@,$ac_abs_builddir,;t t
13317s,@top_builddir@,$ac_top_builddir,;t t
13318s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13319s,@INSTALL@,$ac_INSTALL,;t t
13320" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13321 rm -f $tmp/stdin
13322 if test x"$ac_file" != x-; then
13323 mv $tmp/out $ac_file
13324 else
13325 cat $tmp/out
13326 rm -f $tmp/out
13327 fi
13328
13329done
13330_ACEOF
13331cat >>$CONFIG_STATUS <<\_ACEOF
13332
13333#
13334# CONFIG_HEADER section.
13335#
252b5132
RH
13336
13337# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13338# NAME is the cpp macro being defined and VALUE is the value it is being given.
13339#
13340# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13341ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13342ac_dB='[ ].*$,\1#\2'
13343ac_dC=' '
13344ac_dD=',;t'
13345# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13346ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13347ac_uB='$,\1#\2define\3'
252b5132 13348ac_uC=' '
5464f5a1
NN
13349ac_uD=',;t'
13350
13351for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13353 case $ac_file in
13354 - | *:- | *:-:* ) # input from stdin
13355 cat >$tmp/stdin
13356 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13358 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13359 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13360 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13361 esac
13362
5464f5a1
NN
13363 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13364echo "$as_me: creating $ac_file" >&6;}
13365
13366 # First look for the input files in the build tree, otherwise in the
13367 # src tree.
13368 ac_file_inputs=`IFS=:
13369 for f in $ac_file_in; do
13370 case $f in
13371 -) echo $tmp/stdin ;;
13372 [\\/$]*)
13373 # Absolute (can't be DOS-style, as IFS=:)
13374 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13375echo "$as_me: error: cannot find input file: $f" >&2;}
13376 { (exit 1); exit 1; }; }
13377 # Do quote $f, to prevent DOS paths from being IFS'd.
13378 echo "$f";;
13379 *) # Relative
13380 if test -f "$f"; then
13381 # Build tree
13382 echo "$f"
13383 elif test -f "$srcdir/$f"; then
13384 # Source tree
13385 echo "$srcdir/$f"
13386 else
13387 # /dev/null tree
13388 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13389echo "$as_me: error: cannot find input file: $f" >&2;}
13390 { (exit 1); exit 1; }; }
13391 fi;;
13392 esac
13393 done` || { (exit 1); exit 1; }
13394 # Remove the trailing spaces.
13395 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13396
13397_ACEOF
13398
13399# Transform confdefs.h into two sed scripts, `conftest.defines' and
13400# `conftest.undefs', that substitutes the proper values into
13401# config.h.in to produce config.h. The first handles `#define'
13402# templates, and the second `#undef' templates.
13403# And first: Protect against being on the right side of a sed subst in
13404# config.status. Protect against being in an unquoted here document
13405# in config.status.
13406rm -f conftest.defines conftest.undefs
13407# Using a here document instead of a string reduces the quoting nightmare.
13408# Putting comments in sed scripts is not portable.
13409#
13410# `end' is used to avoid that the second main sed command (meant for
13411# 0-ary CPP macros) applies to n-ary macro definitions.
13412# See the Autoconf documentation for `clear'.
13413cat >confdef2sed.sed <<\_ACEOF
13414s/[\\&,]/\\&/g
13415s,[\\$`],\\&,g
13416t clear
13417: clear
13418s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13419t end
13420s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13421: end
13422_ACEOF
13423# If some macros were called several times there might be several times
13424# the same #defines, which is useless. Nevertheless, we may not want to
13425# sort them, since we want the *last* AC-DEFINE to be honored.
13426uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13427sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13428rm -f confdef2sed.sed
252b5132
RH
13429
13430# This sed command replaces #undef with comments. This is necessary, for
13431# example, in the case of _POSIX_SOURCE, which is predefined and required
13432# on some systems where configure will not decide to define it.
5464f5a1
NN
13433cat >>conftest.undefs <<\_ACEOF
13434s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13435_ACEOF
13436
13437# Break up conftest.defines because some shells have a limit on the size
13438# of here documents, and old seds have small limits too (100 cmds).
13439echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13440echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13441echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13442echo ' :' >>$CONFIG_STATUS
13443rm -f conftest.tail
13444while grep . conftest.defines >/dev/null
13445do
13446 # Write a limited-size here document to $tmp/defines.sed.
13447 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13448 # Speed up: don't consider the non `#define' lines.
13449 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13450 # Work around the forget-to-reset-the-flag bug.
13451 echo 't clr' >>$CONFIG_STATUS
13452 echo ': clr' >>$CONFIG_STATUS
13453 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13454 echo 'CEOF
13455 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13456 rm -f $tmp/in
13457 mv $tmp/out $tmp/in
13458' >>$CONFIG_STATUS
13459 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13460 rm -f conftest.defines
13461 mv conftest.tail conftest.defines
13462done
13463rm -f conftest.defines
13464echo ' fi # grep' >>$CONFIG_STATUS
13465echo >>$CONFIG_STATUS
252b5132 13466
5464f5a1
NN
13467# Break up conftest.undefs because some shells have a limit on the size
13468# of here documents, and old seds have small limits too (100 cmds).
13469echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13470rm -f conftest.tail
5464f5a1 13471while grep . conftest.undefs >/dev/null
252b5132 13472do
5464f5a1
NN
13473 # Write a limited-size here document to $tmp/undefs.sed.
13474 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13475 # Speed up: don't consider the non `#undef'
13476 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13477 # Work around the forget-to-reset-the-flag bug.
13478 echo 't clr' >>$CONFIG_STATUS
13479 echo ': clr' >>$CONFIG_STATUS
13480 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13481 echo 'CEOF
5464f5a1
NN
13482 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13483 rm -f $tmp/in
13484 mv $tmp/out $tmp/in
13485' >>$CONFIG_STATUS
13486 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13487 rm -f conftest.undefs
13488 mv conftest.tail conftest.undefs
252b5132 13489done
5464f5a1
NN
13490rm -f conftest.undefs
13491
13492cat >>$CONFIG_STATUS <<\_ACEOF
13493 # Let's still pretend it is `configure' which instantiates (i.e., don't
13494 # use $as_me), people would be surprised to read:
13495 # /* config.h. Generated by config.status. */
13496 if test x"$ac_file" = x-; then
13497 echo "/* Generated by configure. */" >$tmp/config.h
13498 else
13499 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13500 fi
13501 cat $tmp/in >>$tmp/config.h
13502 rm -f $tmp/in
13503 if test x"$ac_file" != x-; then
13504 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13506echo "$as_me: $ac_file is unchanged" >&6;}
13507 else
13508 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13509$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13510 X"$ac_file" : 'X\(//\)[^/]' \| \
13511 X"$ac_file" : 'X\(//\)$' \| \
13512 X"$ac_file" : 'X\(/\)' \| \
13513 . : '\(.\)' 2>/dev/null ||
13514echo X"$ac_file" |
13515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13517 /^X\(\/\/\)$/{ s//\1/; q; }
13518 /^X\(\/\).*/{ s//\1/; q; }
13519 s/.*/./; q'`
13520 { if $as_mkdir_p; then
13521 mkdir -p "$ac_dir"
252b5132 13522 else
5464f5a1
NN
13523 as_dir="$ac_dir"
13524 as_dirs=
13525 while test ! -d "$as_dir"; do
13526 as_dirs="$as_dir $as_dirs"
13527 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13528$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13529 X"$as_dir" : 'X\(//\)[^/]' \| \
13530 X"$as_dir" : 'X\(//\)$' \| \
13531 X"$as_dir" : 'X\(/\)' \| \
13532 . : '\(.\)' 2>/dev/null ||
13533echo X"$as_dir" |
13534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13536 /^X\(\/\/\)$/{ s//\1/; q; }
13537 /^X\(\/\).*/{ s//\1/; q; }
13538 s/.*/./; q'`
13539 done
13540 test ! -n "$as_dirs" || mkdir $as_dirs
13541 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13542echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13543 { (exit 1); exit 1; }; }; }
13544
13545 rm -f $ac_file
13546 mv $tmp/config.h $ac_file
252b5132 13547 fi
5464f5a1
NN
13548 else
13549 cat $tmp/config.h
13550 rm -f $tmp/config.h
252b5132 13551 fi
f5385ebf
AM
13552# Compute $ac_file's index in $config_headers.
13553_am_stamp_count=1
13554for _am_header in $config_headers :; do
13555 case $_am_header in
13556 $ac_file | $ac_file:* )
13557 break ;;
13558 * )
13559 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13560 esac
13561done
13562echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13563$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13564 X$ac_file : 'X\(//\)[^/]' \| \
13565 X$ac_file : 'X\(//\)$' \| \
13566 X$ac_file : 'X\(/\)' \| \
13567 . : '\(.\)' 2>/dev/null ||
13568echo X$ac_file |
13569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13570 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13571 /^X\(\/\/\)$/{ s//\1/; q; }
13572 /^X\(\/\).*/{ s//\1/; q; }
13573 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13574done
13575_ACEOF
13576cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13577
5464f5a1
NN
13578#
13579# CONFIG_COMMANDS section.
13580#
13581for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13582 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13583 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13584 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13585$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13586 X"$ac_dest" : 'X\(//\)[^/]' \| \
13587 X"$ac_dest" : 'X\(//\)$' \| \
13588 X"$ac_dest" : 'X\(/\)' \| \
13589 . : '\(.\)' 2>/dev/null ||
13590echo X"$ac_dest" |
13591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13593 /^X\(\/\/\)$/{ s//\1/; q; }
13594 /^X\(\/\).*/{ s//\1/; q; }
13595 s/.*/./; q'`
13596 { if $as_mkdir_p; then
13597 mkdir -p "$ac_dir"
13598 else
13599 as_dir="$ac_dir"
13600 as_dirs=
13601 while test ! -d "$as_dir"; do
13602 as_dirs="$as_dir $as_dirs"
13603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13605 X"$as_dir" : 'X\(//\)[^/]' \| \
13606 X"$as_dir" : 'X\(//\)$' \| \
13607 X"$as_dir" : 'X\(/\)' \| \
13608 . : '\(.\)' 2>/dev/null ||
13609echo X"$as_dir" |
13610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13612 /^X\(\/\/\)$/{ s//\1/; q; }
13613 /^X\(\/\).*/{ s//\1/; q; }
13614 s/.*/./; q'`
13615 done
13616 test ! -n "$as_dirs" || mkdir $as_dirs
13617 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13618echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13619 { (exit 1); exit 1; }; }; }
b3baf5d0 13620
5464f5a1 13621 ac_builddir=.
b3baf5d0 13622
5464f5a1
NN
13623if test "$ac_dir" != .; then
13624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13625 # A "../" for each directory in $ac_dir_suffix.
13626 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13627else
13628 ac_dir_suffix= ac_top_builddir=
13629fi
13630
13631case $srcdir in
13632 .) # No --srcdir option. We are building in place.
13633 ac_srcdir=.
13634 if test -z "$ac_top_builddir"; then
13635 ac_top_srcdir=.
13636 else
13637 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13638 fi ;;
13639 [\\/]* | ?:[\\/]* ) # Absolute path.
13640 ac_srcdir=$srcdir$ac_dir_suffix;
13641 ac_top_srcdir=$srcdir ;;
13642 *) # Relative path.
13643 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13644 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13645esac
13646
13647# Do not use `cd foo && pwd` to compute absolute paths, because
13648# the directories may not exist.
13649case `pwd` in
13650.) ac_abs_builddir="$ac_dir";;
13651*)
13652 case "$ac_dir" in
13653 .) ac_abs_builddir=`pwd`;;
13654 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13655 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13656 esac;;
13657esac
13658case $ac_abs_builddir in
13659.) ac_abs_top_builddir=${ac_top_builddir}.;;
13660*)
13661 case ${ac_top_builddir}. in
13662 .) ac_abs_top_builddir=$ac_abs_builddir;;
13663 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13664 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13665 esac;;
13666esac
13667case $ac_abs_builddir in
13668.) ac_abs_srcdir=$ac_srcdir;;
13669*)
13670 case $ac_srcdir in
13671 .) ac_abs_srcdir=$ac_abs_builddir;;
13672 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13673 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13674 esac;;
13675esac
13676case $ac_abs_builddir in
13677.) ac_abs_top_srcdir=$ac_top_srcdir;;
13678*)
13679 case $ac_top_srcdir in
13680 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13681 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13682 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13683 esac;;
13684esac
13685
13686
13687 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13688echo "$as_me: executing $ac_dest commands" >&6;}
13689 case $ac_dest in
f5385ebf
AM
13690 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13691 # Strip MF so we end up with the name of the file.
13692 mf=`echo "$mf" | sed -e 's/:.*$//'`
13693 # Check whether this is an Automake generated Makefile or not.
13694 # We used to match only the files named `Makefile.in', but
13695 # some people rename them; so instead we look at the file content.
13696 # Grep'ing the first line is not enough: some people post-process
13697 # each Makefile.in and add a new line on top of each file to say so.
13698 # So let's grep whole file.
13699 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13700 dirpart=`(dirname "$mf") 2>/dev/null ||
13701$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13702 X"$mf" : 'X\(//\)[^/]' \| \
13703 X"$mf" : 'X\(//\)$' \| \
13704 X"$mf" : 'X\(/\)' \| \
13705 . : '\(.\)' 2>/dev/null ||
13706echo X"$mf" |
13707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13709 /^X\(\/\/\)$/{ s//\1/; q; }
13710 /^X\(\/\).*/{ s//\1/; q; }
13711 s/.*/./; q'`
13712 else
13713 continue
13714 fi
13715 # Extract the definition of DEPDIR, am__include, and am__quote
13716 # from the Makefile without running `make'.
13717 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13718 test -z "$DEPDIR" && continue
13719 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13720 test -z "am__include" && continue
13721 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13722 # When using ansi2knr, U may be empty or an underscore; expand it
13723 U=`sed -n 's/^U = //p' < "$mf"`
13724 # Find all dependency output files, they are included files with
13725 # $(DEPDIR) in their names. We invoke sed twice because it is the
13726 # simplest approach to changing $(DEPDIR) to its actual value in the
13727 # expansion.
13728 for file in `sed -n "
13729 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13730 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13731 # Make sure the directory exists.
13732 test -f "$dirpart/$file" && continue
13733 fdir=`(dirname "$file") 2>/dev/null ||
13734$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13735 X"$file" : 'X\(//\)[^/]' \| \
13736 X"$file" : 'X\(//\)$' \| \
13737 X"$file" : 'X\(/\)' \| \
13738 . : '\(.\)' 2>/dev/null ||
13739echo X"$file" |
13740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13741 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13742 /^X\(\/\/\)$/{ s//\1/; q; }
13743 /^X\(\/\).*/{ s//\1/; q; }
13744 s/.*/./; q'`
13745 { if $as_mkdir_p; then
13746 mkdir -p $dirpart/$fdir
13747 else
13748 as_dir=$dirpart/$fdir
13749 as_dirs=
13750 while test ! -d "$as_dir"; do
13751 as_dirs="$as_dir $as_dirs"
13752 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13754 X"$as_dir" : 'X\(//\)[^/]' \| \
13755 X"$as_dir" : 'X\(//\)$' \| \
13756 X"$as_dir" : 'X\(/\)' \| \
13757 . : '\(.\)' 2>/dev/null ||
13758echo X"$as_dir" |
13759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13760 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13761 /^X\(\/\/\)$/{ s//\1/; q; }
13762 /^X\(\/\).*/{ s//\1/; q; }
13763 s/.*/./; q'`
13764 done
13765 test ! -n "$as_dirs" || mkdir $as_dirs
13766 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13767echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13768 { (exit 1); exit 1; }; }; }
13769
13770 # echo "creating $dirpart/$file"
13771 echo '# dummy' > "$dirpart/$file"
13772 done
13773done
13774 ;;
20e95c23
DJ
13775 default-1 )
13776 for ac_file in $CONFIG_FILES; do
13777 # Support "outfile[:infile[:infile...]]"
13778 case "$ac_file" in
13779 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13780 esac
13781 # PO directories have a Makefile.in generated from Makefile.in.in.
13782 case "$ac_file" in */Makefile.in)
13783 # Adjust a relative srcdir.
13784 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13785 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13786 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13787 # In autoconf-2.13 it is called $ac_given_srcdir.
13788 # In autoconf-2.50 it is called $srcdir.
13789 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13790 case "$ac_given_srcdir" in
13791 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13792 /*) top_srcdir="$ac_given_srcdir" ;;
13793 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13794 esac
13795 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13796 rm -f "$ac_dir/POTFILES"
13797 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13798 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13799 POMAKEFILEDEPS="POTFILES.in"
13800 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13801 # on $ac_dir but don't depend on user-specified configuration
13802 # parameters.
13803 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13804 # The LINGUAS file contains the set of available languages.
13805 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13806 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13807 fi
13808 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13809 # Hide the ALL_LINGUAS assigment from automake.
13810 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13811 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13812 else
13813 # The set of available languages was given in configure.in.
13814 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13815 fi
13816 case "$ac_given_srcdir" in
13817 .) srcdirpre= ;;
13818 *) srcdirpre='$(srcdir)/' ;;
13819 esac
13820 POFILES=
13821 GMOFILES=
13822 UPDATEPOFILES=
13823 DUMMYPOFILES=
13824 for lang in $ALL_LINGUAS; do
13825 POFILES="$POFILES $srcdirpre$lang.po"
13826 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13827 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13828 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13829 done
13830 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13831 # environment variable.
13832 INST_LINGUAS=
13833 if test -n "$ALL_LINGUAS"; then
13834 for presentlang in $ALL_LINGUAS; do
13835 useit=no
13836 if test "%UNSET%" != "$LINGUAS"; then
13837 desiredlanguages="$LINGUAS"
13838 else
13839 desiredlanguages="$ALL_LINGUAS"
13840 fi
13841 for desiredlang in $desiredlanguages; do
13842 # Use the presentlang catalog if desiredlang is
13843 # a. equal to presentlang, or
13844 # b. a variant of presentlang (because in this case,
13845 # presentlang can be used as a fallback for messages
13846 # which are not translated in the desiredlang catalog).
13847 case "$desiredlang" in
13848 "$presentlang"*) useit=yes;;
13849 esac
13850 done
13851 if test $useit = yes; then
13852 INST_LINGUAS="$INST_LINGUAS $presentlang"
13853 fi
13854 done
13855 fi
13856 CATALOGS=
13857 if test -n "$INST_LINGUAS"; then
13858 for lang in $INST_LINGUAS; do
13859 CATALOGS="$CATALOGS $lang.gmo"
13860 done
13861 fi
13862 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13863 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13864 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13865 if test -f "$f"; then
13866 case "$f" in
13867 *.orig | *.bak | *~) ;;
13868 *) cat "$f" >> "$ac_dir/Makefile" ;;
13869 esac
13870 fi
13871 done
13872 fi
13873 ;;
13874 esac
13875 done ;;
13876 default )
13877case "$srcdir" in
13878 .) srcdirpre= ;;
13879 *) srcdirpre='$(srcdir)/' ;;
13880esac
13881POFILES=
13882GMOFILES=
13883for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13884 if test $lang != dummy; then
13885 POFILES="$POFILES $srcdirpre$lang.po"
13886 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13887 fi
13888done
13889sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13890 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13891 -e "s,@POFILES@,$POFILES," \
13892 -e "s,@GMOFILES@,$GMOFILES," \
13893 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
13894 esac
13895done
13896_ACEOF
13897
13898cat >>$CONFIG_STATUS <<\_ACEOF
13899
13900{ (exit 0); exit 0; }
13901_ACEOF
252b5132 13902chmod +x $CONFIG_STATUS
5464f5a1
NN
13903ac_clean_files=$ac_clean_files_save
13904
13905
13906# configure is writing to config.log, and then calls config.status.
13907# config.status does its own redirection, appending to config.log.
13908# Unfortunately, on DOS this fails, as config.log is still kept open
13909# by configure, so config.status won't be able to write to it; its
13910# output is simply discarded. So we exec the FD to /dev/null,
13911# effectively closing config.log, so it can be properly (re)opened and
13912# appended to by config.status. When coming back to configure, we
13913# need to make the FD available again.
13914if test "$no_create" != yes; then
13915 ac_cs_success=:
13916 ac_config_status_args=
13917 test "$silent" = yes &&
13918 ac_config_status_args="$ac_config_status_args --quiet"
13919 exec 5>/dev/null
13920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13921 exec 5>>config.log
13922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13923 # would make configure fail if this is the last instruction.
13924 $ac_cs_success || { (exit 1); exit 1; }
13925fi
252b5132 13926
55c80943 13927
This page took 1.220247 seconds and 4 git commands to generate.