]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/configure
merge from gcc
[thirdparty/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
20e95c23 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir 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 bfd_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
5464f5a1
NN
876
877Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
884 CPP C preprocessor
885
886Use these variables to override the choices made by `configure' or to help
887it to find libraries and programs with nonstandard names/locations.
888
889_ACEOF
890fi
891
892if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
894 ac_popdir=`pwd`
895 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
896 test -d $ac_dir || continue
897 ac_builddir=.
898
899if test "$ac_dir" != .; then
900 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
901 # A "../" for each directory in $ac_dir_suffix.
902 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
903else
904 ac_dir_suffix= ac_top_builddir=
905fi
906
907case $srcdir in
908 .) # No --srcdir option. We are building in place.
909 ac_srcdir=.
910 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=.
912 else
913 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
914 fi ;;
915 [\\/]* | ?:[\\/]* ) # Absolute path.
916 ac_srcdir=$srcdir$ac_dir_suffix;
917 ac_top_srcdir=$srcdir ;;
918 *) # Relative path.
919 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
920 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6be7c12c
AO
921esac
922
5464f5a1
NN
923# Do not use `cd foo && pwd` to compute absolute paths, because
924# the directories may not exist.
925case `pwd` in
926.) ac_abs_builddir="$ac_dir";;
927*)
928 case "$ac_dir" in
929 .) ac_abs_builddir=`pwd`;;
930 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
931 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_top_builddir=${ac_top_builddir}.;;
936*)
937 case ${ac_top_builddir}. in
938 .) ac_abs_top_builddir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
940 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_srcdir=$ac_srcdir;;
945*)
946 case $ac_srcdir in
947 .) ac_abs_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
949 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 esac;;
951esac
952case $ac_abs_builddir in
953.) ac_abs_top_srcdir=$ac_top_srcdir;;
954*)
955 case $ac_top_srcdir in
956 .) ac_abs_top_srcdir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
958 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 esac;;
960esac
6be7c12c 961
5464f5a1
NN
962 cd $ac_dir
963 # Check for guested configure; otherwise get Cygnus style configure.
964 if test -f $ac_srcdir/configure.gnu; then
965 echo
966 $SHELL $ac_srcdir/configure.gnu --help=recursive
967 elif test -f $ac_srcdir/configure; then
968 echo
969 $SHELL $ac_srcdir/configure --help=recursive
970 elif test -f $ac_srcdir/configure.ac ||
971 test -f $ac_srcdir/configure.in; then
972 echo
973 $ac_configure --help
974 else
975 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 fi
49c96104 977 cd $ac_popdir
5464f5a1 978 done
6be7c12c
AO
979fi
980
5464f5a1
NN
981test -n "$ac_init_help" && exit 0
982if $ac_init_version; then
983 cat <<\_ACEOF
6be7c12c 984
5464f5a1
NN
985Copyright (C) 2003 Free Software Foundation, Inc.
986This configure script is free software; the Free Software Foundation
987gives unlimited permission to copy, distribute and modify it.
988_ACEOF
989 exit 0
990fi
991exec 5>config.log
992cat >&5 <<_ACEOF
993This file contains any messages produced by compilers while
994running configure, to aid debugging if configure makes a mistake.
6be7c12c 995
5464f5a1
NN
996It was created by $as_me, which was
997generated by GNU Autoconf 2.59. Invocation command line was
6be7c12c 998
5464f5a1 999 $ $0 $@
6be7c12c 1000
5464f5a1
NN
1001_ACEOF
1002{
1003cat <<_ASUNAME
1004## --------- ##
1005## Platform. ##
1006## --------- ##
1007
1008hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016
1017/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024
1025_ASUNAME
1026
1027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028for as_dir in $PATH
1029do
1030 IFS=$as_save_IFS
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1033done
6be7c12c 1034
5464f5a1 1035} >&5
66e25bab 1036
5464f5a1 1037cat >&5 <<_ACEOF
b3baf5d0 1038
6be7c12c 1039
5464f5a1
NN
1040## ----------- ##
1041## Core tests. ##
1042## ----------- ##
252b5132 1043
5464f5a1 1044_ACEOF
c5d1701e 1045
6be7c12c 1046
5464f5a1
NN
1047# Keep a trace of the command line.
1048# Strip out --no-create and --no-recursion so they do not pile up.
1049# Strip out --silent because we don't want to record it for future runs.
1050# Also quote any args containing shell meta-characters.
1051# Make two passes to allow for proper duplicate-argument suppression.
1052ac_configure_args=
1053ac_configure_args0=
1054ac_configure_args1=
1055ac_sep=
1056ac_must_keep_next=false
1057for ac_pass in 1 2
1058do
1059 for ac_arg
1060 do
1061 case $ac_arg in
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1065 continue ;;
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 esac
1069 case $ac_pass in
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 2)
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1075 else
1076 case $ac_arg in
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 esac
1084 ;;
1085 -* ) ac_must_keep_next=true ;;
1086 esac
1087 fi
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1090 ac_sep=" "
1091 ;;
1092 esac
1093 done
1094done
1095$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098# When interrupted or exit'd, cleanup temporary files, and complete
1099# config.log. We remove comments because anyway the quotes in there
1100# would cause problems or look ugly.
1101# WARNING: Be sure not to use single quotes in there, as some shells,
1102# such as our DU 5.0 friend, will then `close' the trap.
1103trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1105 {
1106 echo
1107
1108 cat <<\_ASBOX
1109## ---------------- ##
1110## Cache variables. ##
1111## ---------------- ##
1112_ASBOX
1113 echo
1114 # The following way of writing the cache mishandles newlines in values,
1115{
1116 (set) 2>&1 |
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 *ac_space=\ *)
1119 sed -n \
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 ;;
1123 *)
1124 sed -n \
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 ;;
1127 esac;
1128}
1129 echo
1130
1131 cat <<\_ASBOX
1132## ----------------- ##
1133## Output variables. ##
1134## ----------------- ##
1135_ASBOX
1136 echo
1137 for ac_var in $ac_subst_vars
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143
1144 if test -n "$ac_subst_files"; then
1145 cat <<\_ASBOX
1146## ------------- ##
1147## Output files. ##
1148## ------------- ##
1149_ASBOX
1150 echo
1151 for ac_var in $ac_subst_files
1152 do
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1155 done | sort
1156 echo
1157 fi
1158
1159 if test -s confdefs.h; then
1160 cat <<\_ASBOX
1161## ----------- ##
1162## confdefs.h. ##
1163## ----------- ##
1164_ASBOX
1165 echo
1166 sed "/^$/d" confdefs.h | sort
1167 echo
1168 fi
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1172 } >&5
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 exit $exit_status
1176 ' 0
1177for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179done
1180ac_signal=0
1181
1182# confdefs.h avoids OS command line length limits that DEFS can exceed.
1183rm -rf conftest* confdefs.h
1184# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185echo >confdefs.h
1186
1187# Predefined preprocessor variables.
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_NAME "$PACKAGE_NAME"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_VERSION "$PACKAGE_VERSION"
1201_ACEOF
1202
1203
1204cat >>confdefs.h <<_ACEOF
1205#define PACKAGE_STRING "$PACKAGE_STRING"
1206_ACEOF
1207
1208
1209cat >>confdefs.h <<_ACEOF
1210#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211_ACEOF
1212
1213
1214# Let the site file select an alternate cache file if it wants to.
1215# Prefer explicitly selected file to automatically selected ones.
1216if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 else
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 fi
1222fi
1223for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1228 . "$ac_site_file"
1229 fi
1230done
1231
1232if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237echo "$as_me: loading cache $cache_file" >&6;}
1238 case $cache_file in
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1241 esac
1242 fi
1243else
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245echo "$as_me: creating cache $cache_file" >&6;}
1246 >$cache_file
1247fi
1248
1249# Check that the precious variables saved in the cache have kept the same
1250# value.
1251ac_cache_corrupted=false
1252for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1259 set,)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,set)
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1267 ,);;
1268 *)
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1298fi
1299
1300ac_ext=c
1301ac_cpp='$CPP $CPPFLAGS'
1302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326ac_aux_dir=
1327for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1328 if test -f $ac_dir/install-sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install-sh -c"
1331 break
1332 elif test -f $ac_dir/install.sh; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/install.sh -c"
1335 break
1336 elif test -f $ac_dir/shtool; then
1337 ac_aux_dir=$ac_dir
1338 ac_install_sh="$ac_aux_dir/shtool install -c"
1339 break
1340 fi
1341done
1342if test -z "$ac_aux_dir"; then
1343 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1344echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1345 { (exit 1); exit 1; }; }
1346fi
1347ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1348ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1349ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350
1351# Make sure we can run config.sub.
1352$ac_config_sub sun4 >/dev/null 2>&1 ||
1353 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1354echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1355 { (exit 1); exit 1; }; }
1356
1357echo "$as_me:$LINENO: checking build system type" >&5
1358echo $ECHO_N "checking build system type... $ECHO_C" >&6
1359if test "${ac_cv_build+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361else
1362 ac_cv_build_alias=$build_alias
1363test -z "$ac_cv_build_alias" &&
1364 ac_cv_build_alias=`$ac_config_guess`
1365test -z "$ac_cv_build_alias" &&
1366 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1367echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1368 { (exit 1); exit 1; }; }
1369ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1370 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1371echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1372 { (exit 1); exit 1; }; }
1373
1374fi
1375echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1376echo "${ECHO_T}$ac_cv_build" >&6
1377build=$ac_cv_build
1378build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1379build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1380build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1381
1382
1383echo "$as_me:$LINENO: checking host system type" >&5
1384echo $ECHO_N "checking host system type... $ECHO_C" >&6
1385if test "${ac_cv_host+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1387else
1388 ac_cv_host_alias=$host_alias
1389test -z "$ac_cv_host_alias" &&
1390 ac_cv_host_alias=$ac_cv_build_alias
1391ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1392 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1393echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1394 { (exit 1); exit 1; }; }
1395
1396fi
1397echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1398echo "${ECHO_T}$ac_cv_host" >&6
1399host=$ac_cv_host
1400host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1401host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1402host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1403
1404
1405echo "$as_me:$LINENO: checking target system type" >&5
1406echo $ECHO_N "checking target system type... $ECHO_C" >&6
1407if test "${ac_cv_target+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409else
1410 ac_cv_target_alias=$target_alias
1411test "x$ac_cv_target_alias" = "x" &&
1412 ac_cv_target_alias=$ac_cv_host_alias
1413ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1420echo "${ECHO_T}$ac_cv_target" >&6
1421target=$ac_cv_target
1422target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427# The aliases save the names the user supplied, while $host etc.
1428# will get canonicalized.
1429test -n "$target_alias" &&
1430 test "$program_prefix$program_suffix$program_transform_name" = \
1431 NONENONEs,x,x, &&
1432 program_prefix=${target_alias}-
1433ac_ext=c
1434ac_cpp='$CPP $CPPFLAGS'
1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438if test -n "$ac_tool_prefix"; then
1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1440set dummy ${ac_tool_prefix}gcc; ac_word=$2
1441echo "$as_me:$LINENO: checking for $ac_word" >&5
1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443if test "${ac_cv_prog_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445else
1446 if test -n "$CC"; then
1447 ac_cv_prog_CC="$CC" # Let the user override the test.
1448else
1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450for as_dir in $PATH
1451do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460done
1461done
1462
1463fi
1464fi
1465CC=$ac_cv_prog_CC
1466if test -n "$CC"; then
1467 echo "$as_me:$LINENO: result: $CC" >&5
1468echo "${ECHO_T}$CC" >&6
1469else
1470 echo "$as_me:$LINENO: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474fi
1475if test -z "$ac_cv_prog_CC"; then
1476 ac_ct_CC=$CC
1477 # Extract the first word of "gcc", so it can be a program name with args.
1478set dummy gcc; ac_word=$2
1479echo "$as_me:$LINENO: checking for $ac_word" >&5
1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483else
1484 if test -n "$ac_ct_CC"; then
1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1486else
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_ac_ct_CC="gcc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498done
1499done
1500
1501fi
1502fi
1503ac_ct_CC=$ac_cv_prog_ac_ct_CC
1504if test -n "$ac_ct_CC"; then
1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1506echo "${ECHO_T}$ac_ct_CC" >&6
1507else
1508 echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
1510fi
1511
1512 CC=$ac_ct_CC
1513else
1514 CC="$ac_cv_prog_CC"
1515fi
1516
1517if test -z "$CC"; then
1518 if test -n "$ac_tool_prefix"; then
1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1520set dummy ${ac_tool_prefix}cc; ac_word=$2
1521echo "$as_me:$LINENO: checking for $ac_word" >&5
1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523if test "${ac_cv_prog_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525else
1526 if test -n "$CC"; then
1527 ac_cv_prog_CC="$CC" # Let the user override the test.
1528else
1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530for as_dir in $PATH
1531do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_CC="${ac_tool_prefix}cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540done
1541done
1542
1543fi
1544fi
1545CC=$ac_cv_prog_CC
1546if test -n "$CC"; then
1547 echo "$as_me:$LINENO: result: $CC" >&5
1548echo "${ECHO_T}$CC" >&6
1549else
1550 echo "$as_me:$LINENO: result: no" >&5
1551echo "${ECHO_T}no" >&6
1552fi
1553
1554fi
1555if test -z "$ac_cv_prog_CC"; then
1556 ac_ct_CC=$CC
1557 # Extract the first word of "cc", so it can be a program name with args.
1558set dummy cc; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$ac_ct_CC"; then
1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
1570 IFS=$as_save_IFS
1571 test -z "$as_dir" && as_dir=.
1572 for ac_exec_ext in '' $ac_executable_extensions; do
1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1574 ac_cv_prog_ac_ct_CC="cc"
1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1576 break 2
1577 fi
1578done
1579done
1580
1581fi
1582fi
1583ac_ct_CC=$ac_cv_prog_ac_ct_CC
1584if test -n "$ac_ct_CC"; then
1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1586echo "${ECHO_T}$ac_ct_CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 CC=$ac_ct_CC
1593else
1594 CC="$ac_cv_prog_CC"
1595fi
1596
1597fi
1598if test -z "$CC"; then
1599 # Extract the first word of "cc", so it can be a program name with args.
1600set dummy cc; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$CC"; then
1607 ac_cv_prog_CC="$CC" # Let the user override the test.
1608else
1609 ac_prog_rejected=no
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613 IFS=$as_save_IFS
1614 test -z "$as_dir" && as_dir=.
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1618 ac_prog_rejected=yes
1619 continue
1620 fi
1621 ac_cv_prog_CC="cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625done
1626done
1627
1628if test $ac_prog_rejected = yes; then
1629 # We found a bogon in the path, so make sure we never use it.
1630 set dummy $ac_cv_prog_CC
1631 shift
1632 if test $# != 0; then
1633 # We chose a different compiler from the bogus one.
1634 # However, it has the same basename, so the bogon will be chosen
1635 # first if we set CC to just the basename; use the full file name.
1636 shift
1637 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1638 fi
1639fi
1640fi
1641fi
1642CC=$ac_cv_prog_CC
1643if test -n "$CC"; then
1644 echo "$as_me:$LINENO: result: $CC" >&5
1645echo "${ECHO_T}$CC" >&6
1646else
1647 echo "$as_me:$LINENO: result: no" >&5
1648echo "${ECHO_T}no" >&6
1649fi
1650
1651fi
1652if test -z "$CC"; then
1653 if test -n "$ac_tool_prefix"; then
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1657set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660if test "${ac_cv_prog_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$CC"; then
1664 ac_cv_prog_CC="$CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677done
1678done
1679
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
1690
1691 test -n "$CC" && break
1692 done
1693fi
1694if test -z "$CC"; then
1695 ac_ct_CC=$CC
1696 for ac_prog in cl
1697do
1698 # Extract the first word of "$ac_prog", so it can be a program name with args.
1699set dummy $ac_prog; ac_word=$2
1700echo "$as_me:$LINENO: checking for $ac_word" >&5
1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 if test -n "$ac_ct_CC"; then
1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1707else
1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709for as_dir in $PATH
1710do
1711 IFS=$as_save_IFS
1712 test -z "$as_dir" && as_dir=.
1713 for ac_exec_ext in '' $ac_executable_extensions; do
1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1715 ac_cv_prog_ac_ct_CC="$ac_prog"
1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 break 2
1718 fi
1719done
1720done
1721
1722fi
1723fi
1724ac_ct_CC=$ac_cv_prog_ac_ct_CC
1725if test -n "$ac_ct_CC"; then
1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1727echo "${ECHO_T}$ac_ct_CC" >&6
1728else
1729 echo "$as_me:$LINENO: result: no" >&5
1730echo "${ECHO_T}no" >&6
1731fi
1732
1733 test -n "$ac_ct_CC" && break
1734done
1735
1736 CC=$ac_ct_CC
1737fi
1738
1739fi
1740
1741
1742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1743See \`config.log' for more details." >&5
1744echo "$as_me: error: no acceptable C compiler found in \$PATH
1745See \`config.log' for more details." >&2;}
1746 { (exit 1); exit 1; }; }
1747
1748# Provide some information about the compiler.
1749echo "$as_me:$LINENO:" \
1750 "checking for C compiler version" >&5
1751ac_compiler=`set X $ac_compile; echo $2`
1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1753 (eval $ac_compiler --version </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1758 (eval $ac_compiler -v </dev/null >&5) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }
1762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1763 (eval $ac_compiler -V </dev/null >&5) 2>&5
1764 ac_status=$?
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }
1767
1768cat >conftest.$ac_ext <<_ACEOF
1769/* confdefs.h. */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h. */
1774
1775int
1776main ()
1777{
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783ac_clean_files_save=$ac_clean_files
1784ac_clean_files="$ac_clean_files a.out a.exe b.out"
1785# Try to create an executable without -o first, disregard a.out.
1786# It will help us diagnose broken compilers, and finding out an intuition
1787# of exeext.
1788echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1789echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1791if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798# resort.
1799
1800# Be careful to initialize this variable, since it used to be cached.
1801# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802ac_cv_exeext=
1803# b.out is created by i960 compilers.
1804for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805do
1806 test -f "$ac_file" || continue
1807 case $ac_file in
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 ;;
1810 conftest.$ac_ext )
1811 # This is the source file.
1812 ;;
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1824 * )
1825 break;;
1826 esac
1827done
1828else
1829 echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: C compiler cannot create executables
1835See \`config.log' for more details." >&2;}
1836 { (exit 77); exit 77; }; }
1837fi
1838
1839ac_exeext=$ac_cv_exeext
1840echo "$as_me:$LINENO: result: $ac_file" >&5
1841echo "${ECHO_T}$ac_file" >&6
1842
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
1845echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848# If not cross compiling, check that we can run a simple program.
1849if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
1857 else
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&5
1864echo "$as_me: error: cannot run C compiled programs.
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1868 fi
1869 fi
1870fi
1871echo "$as_me:$LINENO: result: yes" >&5
1872echo "${ECHO_T}yes" >&6
1873
1874rm -f a.out a.exe conftest$ac_cv_exeext b.out
1875ac_clean_files=$ac_clean_files_save
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
1878echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1879echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1880echo "$as_me:$LINENO: result: $cross_compiling" >&5
1881echo "${ECHO_T}$cross_compiling" >&6
1882
1883echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892# work properly (i.e., refer to `conftest.exe'), while it won't with
1893# `rm'.
1894for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903done
1904else
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest$ac_cv_exeext
1913echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1914echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916rm -f conftest.$ac_ext
1917EXEEXT=$ac_cv_exeext
1918ac_exeext=$EXEEXT
1919echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1921if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939rm -f conftest.o conftest.obj
1940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; then
1945 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946 case $ac_file in
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949 break;;
1950 esac
1951done
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: cannot compute suffix of object files: cannot compile
1959See \`config.log' for more details." >&2;}
1960 { (exit 1); exit 1; }; }
1961fi
1962
1963rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964fi
1965echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1966echo "${ECHO_T}$ac_cv_objext" >&6
1967OBJEXT=$ac_cv_objext
1968ac_objext=$OBJEXT
1969echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1970echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1971if test "${ac_cv_c_compiler_gnu+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973else
1974 cat >conftest.$ac_ext <<_ACEOF
1975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
1980
1981int
1982main ()
1983{
1984#ifndef __GNUC__
1985 choke me
1986#endif
1987
1988 ;
1989 return 0;
1990}
1991_ACEOF
1992rm -f conftest.$ac_objext
1993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1994 (eval $ac_compile) 2>conftest.er1
1995 ac_status=$?
1996 grep -v '^ *+' conftest.er1 >conftest.err
1997 rm -f conftest.er1
1998 cat conftest.err >&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); } &&
49c96104
SE
2001 { ac_try='test -z "$ac_c_werror_flag"
2002 || test ! -s conftest.err'
5464f5a1
NN
2003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007 (exit $ac_status); }; } &&
2008 { ac_try='test -s conftest.$ac_objext'
2009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010 (eval $ac_try) 2>&5
2011 ac_status=$?
2012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013 (exit $ac_status); }; }; then
2014 ac_compiler_gnu=yes
2015else
2016 echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019ac_compiler_gnu=no
2020fi
2021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2022ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023
2024fi
2025echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2026echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2027GCC=`test $ac_compiler_gnu = yes && echo yes`
2028ac_test_CFLAGS=${CFLAGS+set}
2029ac_save_CFLAGS=$CFLAGS
2030CFLAGS="-g"
2031echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2032echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2033if test "${ac_cv_prog_cc_g+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 cat >conftest.$ac_ext <<_ACEOF
2037/* confdefs.h. */
2038_ACEOF
2039cat confdefs.h >>conftest.$ac_ext
2040cat >>conftest.$ac_ext <<_ACEOF
2041/* end confdefs.h. */
2042
2043int
2044main ()
2045{
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051rm -f conftest.$ac_objext
2052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2053 (eval $ac_compile) 2>conftest.er1
2054 ac_status=$?
2055 grep -v '^ *+' conftest.er1 >conftest.err
2056 rm -f conftest.er1
2057 cat conftest.err >&5
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); } &&
49c96104
SE
2060 { ac_try='test -z "$ac_c_werror_flag"
2061 || test ! -s conftest.err'
5464f5a1
NN
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2063 (eval $ac_try) 2>&5
2064 ac_status=$?
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; } &&
2067 { ac_try='test -s conftest.$ac_objext'
2068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_prog_cc_g=yes
2074else
2075 echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078ac_cv_prog_cc_g=no
2079fi
2080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2083echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2084if test "$ac_test_CFLAGS" = set; then
2085 CFLAGS=$ac_save_CFLAGS
2086elif test $ac_cv_prog_cc_g = yes; then
2087 if test "$GCC" = yes; then
2088 CFLAGS="-g -O2"
2089 else
2090 CFLAGS="-g"
2091 fi
2092else
2093 if test "$GCC" = yes; then
2094 CFLAGS="-O2"
2095 else
2096 CFLAGS=
2097 fi
2098fi
2099echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2100echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2101if test "${ac_cv_prog_cc_stdc+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
2104 ac_cv_prog_cc_stdc=no
2105ac_save_CC=$CC
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h. */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h. */
2112#include <stdarg.h>
2113#include <stdio.h>
2114#include <sys/types.h>
2115#include <sys/stat.h>
2116/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2117struct buf { int x; };
2118FILE * (*rcsopen) (struct buf *, struct stat *, int);
2119static char *e (p, i)
2120 char **p;
2121 int i;
2122{
2123 return p[i];
2124}
2125static char *f (char * (*g) (char **, int), char **p, ...)
2126{
2127 char *s;
2128 va_list v;
2129 va_start (v,p);
2130 s = g (p, va_arg (v,int));
2131 va_end (v);
2132 return s;
2133}
2134
2135/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2136 function prototypes and stuff, but not '\xHH' hex character constants.
2137 These don't provoke an error unfortunately, instead are silently treated
2138 as 'x'. The following induces an error, until -std1 is added to get
2139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2140 array size at least. It's necessary to write '\x00'==0 to get something
2141 that's true only with -std1. */
2142int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2143
2144int test (int i, double x);
2145struct s1 {int (*f) (int a);};
2146struct s2 {int (*f) (double a);};
2147int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2148int argc;
2149char **argv;
2150int
2151main ()
2152{
2153return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158# Don't try gcc -ansi; that turns off useful extensions and
2159# breaks some systems' header files.
2160# AIX -qlanglvl=ansi
2161# Ultrix and OSF/1 -std1
2162# HP-UX 10.20 and later -Ae
2163# HP-UX older versions -Aa -D_HPUX_SOURCE
2164# SVR4 -Xc -D__EXTENSIONS__
2165for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2166do
2167 CC="$ac_save_CC $ac_arg"
2168 rm -f conftest.$ac_objext
2169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>conftest.er1
2171 ac_status=$?
2172 grep -v '^ *+' conftest.er1 >conftest.err
2173 rm -f conftest.er1
2174 cat conftest.err >&5
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); } &&
49c96104
SE
2177 { ac_try='test -z "$ac_c_werror_flag"
2178 || test ! -s conftest.err'
5464f5a1
NN
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 ac_cv_prog_cc_stdc=$ac_arg
2191break
2192else
2193 echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196fi
2197rm -f conftest.err conftest.$ac_objext
2198done
2199rm -f conftest.$ac_ext conftest.$ac_objext
2200CC=$ac_save_CC
2201
2202fi
2203
2204case "x$ac_cv_prog_cc_stdc" in
2205 x|xno)
2206 echo "$as_me:$LINENO: result: none needed" >&5
2207echo "${ECHO_T}none needed" >&6 ;;
2208 *)
2209 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211 CC="$CC $ac_cv_prog_cc_stdc" ;;
2212esac
2213
2214# Some people use a C++ compiler to compile C. Since we use `exit',
2215# in C++ we need to declare it. In case someone uses the same compiler
2216# for both compiling C and C++ we need to have the C++ compiler decide
2217# the declaration of exit, since it's the most demanding environment.
2218cat >conftest.$ac_ext <<_ACEOF
2219#ifndef __cplusplus
2220 choke me
2221#endif
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2226 ac_status=$?
2227 grep -v '^ *+' conftest.er1 >conftest.err
2228 rm -f conftest.er1
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
49c96104
SE
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
5464f5a1
NN
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235 (eval $ac_try) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241 (eval $ac_try) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2245 for ac_declaration in \
2246 '' \
2247 'extern "C" void std::exit (int) throw (); using std::exit;' \
2248 'extern "C" void std::exit (int); using std::exit;' \
2249 'extern "C" void exit (int) throw ();' \
2250 'extern "C" void exit (int);' \
2251 'void exit (int);'
2252do
2253 cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
2259$ac_declaration
2260#include <stdlib.h>
2261int
2262main ()
2263{
2264exit (42);
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.$ac_objext
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>conftest.er1
2272 ac_status=$?
2273 grep -v '^ *+' conftest.er1 >conftest.err
2274 rm -f conftest.er1
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } &&
49c96104
SE
2278 { ac_try='test -z "$ac_c_werror_flag"
2279 || test ! -s conftest.err'
5464f5a1
NN
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; } &&
2285 { ac_try='test -s conftest.$ac_objext'
2286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287 (eval $ac_try) 2>&5
2288 ac_status=$?
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; }; then
2291 :
2292else
2293 echo "$as_me: failed program was:" >&5
2294sed 's/^/| /' conftest.$ac_ext >&5
2295
2296continue
2297fi
2298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 cat >conftest.$ac_ext <<_ACEOF
2300/* confdefs.h. */
2301_ACEOF
2302cat confdefs.h >>conftest.$ac_ext
2303cat >>conftest.$ac_ext <<_ACEOF
2304/* end confdefs.h. */
2305$ac_declaration
2306int
2307main ()
2308{
2309exit (42);
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314rm -f conftest.$ac_objext
2315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>conftest.er1
2317 ac_status=$?
2318 grep -v '^ *+' conftest.er1 >conftest.err
2319 rm -f conftest.er1
2320 cat conftest.err >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); } &&
49c96104
SE
2323 { ac_try='test -z "$ac_c_werror_flag"
2324 || test ! -s conftest.err'
5464f5a1
NN
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2326 (eval $ac_try) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 break
2337else
2338 echo "$as_me: failed program was:" >&5
2339sed 's/^/| /' conftest.$ac_ext >&5
2340
2341fi
2342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2343done
2344rm -f conftest*
2345if test -n "$ac_declaration"; then
2346 echo '#ifdef __cplusplus' >>confdefs.h
2347 echo $ac_declaration >>confdefs.h
2348 echo '#endif' >>confdefs.h
2349fi
2350
2351else
2352 echo "$as_me: failed program was:" >&5
2353sed 's/^/| /' conftest.$ac_ext >&5
2354
2355fi
2356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
2362
2363
f5385ebf
AM
2364echo "$as_me:$LINENO: checking for library containing strerror" >&5
2365echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2366if test "${ac_cv_search_strerror+set}" = set; then
5464f5a1
NN
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
f5385ebf
AM
2369 ac_func_search_save_LIBS=$LIBS
2370ac_cv_search_strerror=no
5464f5a1
NN
2371cat >conftest.$ac_ext <<_ACEOF
2372/* confdefs.h. */
2373_ACEOF
2374cat confdefs.h >>conftest.$ac_ext
2375cat >>conftest.$ac_ext <<_ACEOF
2376/* end confdefs.h. */
2377
2378/* Override any gcc2 internal prototype to avoid an error. */
2379#ifdef __cplusplus
2380extern "C"
2381#endif
2382/* We use char because int might match the return type of a gcc2
2383 builtin and then its argument prototype would still apply. */
2384char strerror ();
2385int
2386main ()
2387{
2388strerror ();
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext conftest$ac_exeext
2394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395 (eval $ac_link) 2>conftest.er1
2396 ac_status=$?
2397 grep -v '^ *+' conftest.er1 >conftest.err
2398 rm -f conftest.er1
2399 cat conftest.err >&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
49c96104
SE
2402 { ac_try='test -z "$ac_c_werror_flag"
2403 || test ! -s conftest.err'
5464f5a1
NN
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest$ac_exeext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
f5385ebf 2415 ac_cv_search_strerror="none required"
5464f5a1
NN
2416else
2417 echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
5464f5a1
NN
2420fi
2421rm -f conftest.err conftest.$ac_objext \
2422 conftest$ac_exeext conftest.$ac_ext
f5385ebf
AM
2423if test "$ac_cv_search_strerror" = no; then
2424 for ac_lib in cposix; do
2425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2426 cat >conftest.$ac_ext <<_ACEOF
2427/* confdefs.h. */
2428_ACEOF
2429cat confdefs.h >>conftest.$ac_ext
2430cat >>conftest.$ac_ext <<_ACEOF
2431/* end confdefs.h. */
2432
2433/* Override any gcc2 internal prototype to avoid an error. */
2434#ifdef __cplusplus
2435extern "C"
2436#endif
2437/* We use char because int might match the return type of a gcc2
2438 builtin and then its argument prototype would still apply. */
2439char strerror ();
2440int
2441main ()
2442{
2443strerror ();
2444 ;
2445 return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext conftest$ac_exeext
2449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2450 (eval $ac_link) 2>conftest.er1
2451 ac_status=$?
2452 grep -v '^ *+' conftest.er1 >conftest.err
2453 rm -f conftest.er1
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
49c96104
SE
2457 { ac_try='test -z "$ac_c_werror_flag"
2458 || test ! -s conftest.err'
f5385ebf
AM
2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 (eval $ac_try) 2>&5
2461 ac_status=$?
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); }; } &&
2464 { ac_try='test -s conftest$ac_exeext'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 (eval $ac_try) 2>&5
2467 ac_status=$?
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; }; then
2470 ac_cv_search_strerror="-l$ac_lib"
2471break
2472else
2473 echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
5464f5a1 2476fi
f5385ebf
AM
2477rm -f conftest.err conftest.$ac_objext \
2478 conftest$ac_exeext conftest.$ac_ext
2479 done
5464f5a1 2480fi
f5385ebf
AM
2481LIBS=$ac_func_search_save_LIBS
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2484echo "${ECHO_T}$ac_cv_search_strerror" >&6
2485if test "$ac_cv_search_strerror" != no; then
2486 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
5464f5a1 2487
f5385ebf 2488fi
5464f5a1
NN
2489
2490
f5385ebf 2491am__api_version="1.9"
5464f5a1
NN
2492# Find a good install program. We prefer a C program (faster),
2493# so one script is as good as another. But avoid the broken or
2494# incompatible versions:
2495# SysV /etc/install, /usr/sbin/install
2496# SunOS /usr/etc/install
2497# IRIX /sbin/install
2498# AIX /bin/install
2499# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2500# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2501# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2502# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 2503# OS/2's system install, which has a completely different semantic
252b5132 2504# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
2505echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2506echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2507if test -z "$INSTALL"; then
5464f5a1
NN
2508if test "${ac_cv_path_install+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2510else
5464f5a1
NN
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 # Account for people who put trailing slashes in PATH elements.
2517case $as_dir/ in
2518 ./ | .// | /cC/* | \
2519 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2520 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2521 /usr/ucb/* ) ;;
2522 *)
2523 # OSF1 and SCO ODT 3.0 have their own names for install.
2524 # Don't use installbsd from OSF since it installs stuff as root
2525 # by default.
2526 for ac_prog in ginstall scoinst install; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2529 if test $ac_prog = install &&
5464f5a1 2530 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2531 # AIX install. It has an incompatible calling convention.
2532 :
5464f5a1
NN
2533 elif test $ac_prog = install &&
2534 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2535 # program-specific install script used by HP pwplus--don't use.
2536 :
252b5132 2537 else
5464f5a1
NN
2538 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2539 break 3
252b5132
RH
2540 fi
2541 fi
2542 done
5464f5a1
NN
2543 done
2544 ;;
2545esac
2546done
2547
252b5132
RH
2548
2549fi
2550 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 2551 INSTALL=$ac_cv_path_install
252b5132
RH
2552 else
2553 # As a last resort, use the slow shell script. We don't cache a
2554 # path for INSTALL within a source directory, because that will
2555 # break other packages using the cache if that directory is
2556 # removed, or if the path is relative.
5464f5a1 2557 INSTALL=$ac_install_sh
252b5132
RH
2558 fi
2559fi
5464f5a1
NN
2560echo "$as_me:$LINENO: result: $INSTALL" >&5
2561echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2562
2563# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2564# It thinks the first close brace ends the variable substitution.
2565test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2566
5464f5a1 2567test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2568
2569test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2570
5464f5a1
NN
2571echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2572echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2573# Just in case
2574sleep 1
f5385ebf 2575echo timestamp > conftest.file
252b5132
RH
2576# Do `set' in a subshell so we don't clobber the current shell's
2577# arguments. Must try -L first in case configure is actually a
2578# symlink; some systems play weird games with the mod time of symlinks
2579# (eg FreeBSD returns the mod time of the symlink's containing
2580# directory).
2581if (
f5385ebf 2582 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2583 if test "$*" = "X"; then
2584 # -L didn't work.
f5385ebf 2585 set X `ls -t $srcdir/configure conftest.file`
252b5132 2586 fi
f5385ebf
AM
2587 rm -f conftest.file
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
5464f5a1
NN
2595 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&5
2597echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2598alias in your environment" >&2;}
2599 { (exit 1); exit 1; }; }
252b5132
RH
2600 fi
2601
f5385ebf 2602 test "$2" = conftest.file
252b5132
RH
2603 )
2604then
2605 # Ok.
2606 :
2607else
5464f5a1
NN
2608 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2609Check your system clock" >&5
2610echo "$as_me: error: newly created file is older than distributed files!
2611Check your system clock" >&2;}
2612 { (exit 1); exit 1; }; }
252b5132 2613fi
5464f5a1
NN
2614echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
252b5132 2616test "$program_prefix" != NONE &&
5464f5a1 2617 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2618# Use a double $ so make ignores it.
2619test "$program_suffix" != NONE &&
5464f5a1
NN
2620 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2621# Double any \ or $. echo might interpret backslashes.
2622# By default was `s,x,x', remove it if useless.
2623cat <<\_ACEOF >conftest.sed
2624s/[\\$]/&&/g;s/;s,x,x,$//
2625_ACEOF
2626program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2627rm conftest.sed
2628
f5385ebf
AM
2629# expand $ac_aux_dir to an absolute path
2630am_aux_dir=`cd $ac_aux_dir && pwd`
2631
2632test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2633# Use eval to expand $SHELL
2634if eval "$MISSING --run true"; then
2635 am_missing_run="$MISSING --run "
2636else
2637 am_missing_run=
2638 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2639echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2640fi
2641
2642if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2643 # We used to keeping the `.' as first argument, in order to
2644 # allow $(mkdir_p) to be used without argument. As in
2645 # $(mkdir_p) $(somedir)
2646 # where $(somedir) is conditionally defined. However this is wrong
2647 # for two reasons:
2648 # 1. if the package is installed by a user who cannot write `.'
2649 # make install will fail,
2650 # 2. the above comment should most certainly read
2651 # $(mkdir_p) $(DESTDIR)$(somedir)
2652 # so it does not work when $(somedir) is undefined and
2653 # $(DESTDIR) is not.
2654 # To support the latter case, we have to write
2655 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2656 # so the `.' trick is pointless.
2657 mkdir_p='mkdir -p --'
2658else
2659 # On NextStep and OpenStep, the `mkdir' command does not
2660 # recognize any option. It will interpret all options as
2661 # directories to create, and then abort because `.' already
2662 # exists.
2663 for d in ./-p ./--version;
2664 do
2665 test -d $d && rmdir $d
2666 done
2667 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2668 if test -f "$ac_aux_dir/mkinstalldirs"; then
2669 mkdir_p='$(mkinstalldirs)'
2670 else
2671 mkdir_p='$(install_sh) -d'
2672 fi
2673fi
2674
2675for ac_prog in gawk mawk nawk awk
2676do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
2679echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681if test "${ac_cv_prog_AWK+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684 if test -n "$AWK"; then
2685 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694 ac_cv_prog_AWK="$ac_prog"
2695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699done
2700
2701fi
2702fi
2703AWK=$ac_cv_prog_AWK
2704if test -n "$AWK"; then
2705 echo "$as_me:$LINENO: result: $AWK" >&5
2706echo "${ECHO_T}$AWK" >&6
2707else
2708 echo "$as_me:$LINENO: result: no" >&5
2709echo "${ECHO_T}no" >&6
2710fi
2711
2712 test -n "$AWK" && break
2713done
2714
5464f5a1
NN
2715echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2716echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2717set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2718if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2719 echo $ECHO_N "(cached) $ECHO_C" >&6
2720else
2721 cat >conftest.make <<\_ACEOF
252b5132 2722all:
5464f5a1
NN
2723 @echo 'ac_maketemp="$(MAKE)"'
2724_ACEOF
252b5132 2725# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5464f5a1 2726eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2727if test -n "$ac_maketemp"; then
2728 eval ac_cv_prog_make_${ac_make}_set=yes
2729else
2730 eval ac_cv_prog_make_${ac_make}_set=no
2731fi
5464f5a1 2732rm -f conftest.make
252b5132
RH
2733fi
2734if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5464f5a1
NN
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
252b5132
RH
2737 SET_MAKE=
2738else
5464f5a1
NN
2739 echo "$as_me:$LINENO: result: no" >&5
2740echo "${ECHO_T}no" >&6
252b5132
RH
2741 SET_MAKE="MAKE=${MAKE-make}"
2742fi
2743
f5385ebf
AM
2744rm -rf .tst 2>/dev/null
2745mkdir .tst 2>/dev/null
2746if test -d .tst; then
2747 am__leading_dot=.
2748else
2749 am__leading_dot=_
2750fi
2751rmdir .tst 2>/dev/null
2752
2753DEPDIR="${am__leading_dot}deps"
2754
2755 ac_config_commands="$ac_config_commands depfiles"
2756
2757
2758am_make=${MAKE-make}
2759cat > confinc << 'END'
2760am__doit:
2761 @echo done
2762.PHONY: am__doit
2763END
2764# If we don't find an include directive, just comment out the code.
2765echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2766echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2767am__include="#"
2768am__quote=
2769_am_result=none
2770# First try GNU make style include.
2771echo "include confinc" > confmf
2772# We grep out `Entering directory' and `Leaving directory'
2773# messages which can occur if `w' ends up in MAKEFLAGS.
2774# In particular we don't look at `^make:' because GNU make might
2775# be invoked under some other name (usually "gmake"), in which
2776# case it prints its new name instead of `make'.
2777if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2778 am__include=include
2779 am__quote=
2780 _am_result=GNU
2781fi
2782# Now try BSD make style include.
2783if test "$am__include" = "#"; then
2784 echo '.include "confinc"' > confmf
2785 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2786 am__include=.include
2787 am__quote="\""
2788 _am_result=BSD
2789 fi
2790fi
2791
2792
2793echo "$as_me:$LINENO: result: $_am_result" >&5
2794echo "${ECHO_T}$_am_result" >&6
2795rm -f confinc confmf
2796
2797# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2798if test "${enable_dependency_tracking+set}" = set; then
2799 enableval="$enable_dependency_tracking"
2800
2801fi;
2802if test "x$enable_dependency_tracking" != xno; then
2803 am_depcomp="$ac_aux_dir/depcomp"
2804 AMDEPBACKSLASH='\'
2805fi
2806
2807
2808if test "x$enable_dependency_tracking" != xno; then
2809 AMDEP_TRUE=
2810 AMDEP_FALSE='#'
2811else
2812 AMDEP_TRUE='#'
2813 AMDEP_FALSE=
2814fi
6be7c12c 2815
252b5132 2816
252b5132 2817
f5385ebf
AM
2818# test to see if srcdir already configured
2819if test "`cd $srcdir && pwd`" != "`pwd`" &&
2820 test -f $srcdir/config.status; then
5464f5a1
NN
2821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2822echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2823 { (exit 1); exit 1; }; }
252b5132 2824fi
5464f5a1 2825
f5385ebf
AM
2826# test whether we have cygpath
2827if test -z "$CYGPATH_W"; then
2828 if (cygpath --version) >/dev/null 2>/dev/null; then
2829 CYGPATH_W='cygpath -w'
2830 else
2831 CYGPATH_W=echo
2832 fi
2833fi
2834
2835
2836# Define the identity of the package.
2837 PACKAGE=bfd
ffdc4eed 2838 VERSION=2.17.50
f5385ebf
AM
2839
2840
5464f5a1 2841cat >>confdefs.h <<_ACEOF
252b5132 2842#define PACKAGE "$PACKAGE"
5464f5a1 2843_ACEOF
252b5132 2844
5464f5a1
NN
2845
2846cat >>confdefs.h <<_ACEOF
252b5132 2847#define VERSION "$VERSION"
5464f5a1 2848_ACEOF
252b5132 2849
f5385ebf
AM
2850# Some tools Automake needs.
2851
2852ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2853
2854
2855AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2856
2857
2858AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2859
2860
2861AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2862
2863
2864MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6be7c12c 2865
f5385ebf 2866install_sh=${install_sh-"$am_aux_dir/install-sh"}
6be7c12c 2867
f5385ebf
AM
2868# Installed binaries are usually stripped using `strip' when the user
2869# run `make install-strip'. However `strip' might not be the right
2870# tool to use in cross-compilation environments, therefore Automake
2871# will honor the `STRIP' environment variable to overrule this program.
2872if test "$cross_compiling" != no; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}strip; ac_word=$2
2876echo "$as_me:$LINENO: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878if test "${ac_cv_prog_STRIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 if test -n "$STRIP"; then
2882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
252b5132 2883else
f5385ebf
AM
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2894 fi
2895done
2896done
2897
2898fi
2899fi
2900STRIP=$ac_cv_prog_STRIP
2901if test -n "$STRIP"; then
2902 echo "$as_me:$LINENO: result: $STRIP" >&5
2903echo "${ECHO_T}$STRIP" >&6
2904else
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
2907fi
2908
252b5132 2909fi
f5385ebf
AM
2910if test -z "$ac_cv_prog_STRIP"; then
2911 ac_ct_STRIP=$STRIP
2912 # Extract the first word of "strip", so it can be a program name with args.
2913set dummy strip; ac_word=$2
2914echo "$as_me:$LINENO: checking for $ac_word" >&5
2915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918else
2919 if test -n "$ac_ct_STRIP"; then
2920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_ac_ct_STRIP="strip"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934done
252b5132 2935
f5385ebf
AM
2936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2937fi
2938fi
2939ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2940if test -n "$ac_ct_STRIP"; then
2941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2942echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2943else
f5385ebf
AM
2944 echo "$as_me:$LINENO: result: no" >&5
2945echo "${ECHO_T}no" >&6
252b5132
RH
2946fi
2947
f5385ebf 2948 STRIP=$ac_ct_STRIP
252b5132 2949else
f5385ebf
AM
2950 STRIP="$ac_cv_prog_STRIP"
2951fi
2952
252b5132 2953fi
f5385ebf
AM
2954INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2955
2956# We need awk for the "check" target. The system "awk" is bad on
2957# some platforms.
2958# Always define AMTAR for backward compatibility.
2959
2960AMTAR=${AMTAR-"${am_missing_run}tar"}
2961
2962am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2963
252b5132 2964
f5385ebf
AM
2965
2966
2967depcc="$CC" am_compiler_list=
2968
2969echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2970echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2971if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2972 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2973else
f5385ebf
AM
2974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2975 # We make a subdir and do the tests there. Otherwise we can end up
2976 # making bogus files that we don't know about and never remove. For
2977 # instance it was reported that on HP-UX the gcc test will end up
2978 # making a dummy file named `D' -- because `-MD' means `put the output
2979 # in D'.
2980 mkdir conftest.dir
2981 # Copy depcomp to subdir because otherwise we won't find it if we're
2982 # using a relative directory.
2983 cp "$am_depcomp" conftest.dir
2984 cd conftest.dir
2985 # We will build objects and dependencies in a subdirectory because
2986 # it helps to detect inapplicable dependency modes. For instance
2987 # both Tru64's cc and ICC support -MD to output dependencies as a
2988 # side effect of compilation, but ICC will put the dependencies in
2989 # the current directory while Tru64 will put them in the object
2990 # directory.
2991 mkdir sub
2992
2993 am_cv_CC_dependencies_compiler_type=none
2994 if test "$am_compiler_list" = ""; then
2995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2996 fi
2997 for depmode in $am_compiler_list; do
2998 # Setup a source with many dependencies, because some compilers
2999 # like to wrap large dependency lists on column 80 (with \), and
3000 # we should not choose a depcomp mode which is confused by this.
3001 #
3002 # We need to recreate these files for each test, as the compiler may
3003 # overwrite some of them when testing with obscure command lines.
3004 # This happens at least with the AIX C compiler.
3005 : > sub/conftest.c
3006 for i in 1 2 3 4 5 6; do
3007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3009 # Solaris 8's {/usr,}/bin/sh.
3010 touch sub/conftst$i.h
3011 done
3012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3013
3014 case $depmode in
3015 nosideeffect)
3016 # after this tag, mechanisms are not by side-effect, so they'll
3017 # only be used when explicitly requested
3018 if test "x$enable_dependency_tracking" = xyes; then
3019 continue
3020 else
3021 break
3022 fi
3023 ;;
3024 none) break ;;
3025 esac
3026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3027 # mode. It turns out that the SunPro C++ compiler does not properly
3028 # handle `-M -o', and we need to detect this.
3029 if depmode=$depmode \
3030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3033 >/dev/null 2>conftest.err &&
3034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3037 # icc doesn't choke on unknown options, it will just issue warnings
3038 # or remarks (even with -Werror). So we grep stderr for any message
3039 # that says an option was ignored or not supported.
3040 # When given -MP, icc 7.0 and 7.1 complain thusly:
3041 # icc: Command line warning: ignoring option '-M'; no argument required
3042 # The diagnosis changed in icc 8.0:
3043 # icc: Command line remark: option '-MP' not supported
3044 if (grep 'ignoring option' conftest.err ||
3045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3046 am_cv_CC_dependencies_compiler_type=$depmode
3047 break
3048 fi
3049 fi
3050 done
3051
3052 cd ..
3053 rm -rf conftest.dir
3054else
3055 am_cv_CC_dependencies_compiler_type=none
3056fi
3057
252b5132 3058fi
f5385ebf
AM
3059echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3060echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3061CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 3062
f5385ebf
AM
3063
3064
3065if
3066 test "x$enable_dependency_tracking" != xno \
3067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3068 am__fastdepCC_TRUE=
3069 am__fastdepCC_FALSE='#'
252b5132 3070else
f5385ebf
AM
3071 am__fastdepCC_TRUE='#'
3072 am__fastdepCC_FALSE=
252b5132
RH
3073fi
3074
6be7c12c 3075
e43d48cc 3076
f5385ebf 3077
5464f5a1
NN
3078if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3080set dummy ${ac_tool_prefix}ar; ac_word=$2
5464f5a1
NN
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_AR+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3085else
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3088else
5464f5a1
NN
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_AR="${ac_tool_prefix}ar"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
3102
252b5132
RH
3103fi
3104fi
5464f5a1 3105AR=$ac_cv_prog_AR
252b5132 3106if test -n "$AR"; then
5464f5a1
NN
3107 echo "$as_me:$LINENO: result: $AR" >&5
3108echo "${ECHO_T}$AR" >&6
252b5132 3109else
5464f5a1
NN
3110 echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6
3112fi
3113
252b5132 3114fi
5464f5a1
NN
3115if test -z "$ac_cv_prog_AR"; then
3116 ac_ct_AR=$AR
3117 # Extract the first word of "ar", so it can be a program name with args.
3118set dummy ar; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124 if test -n "$ac_ct_AR"; then
3125 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130 IFS=$as_save_IFS
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 ac_cv_prog_ac_ct_AR="ar"
3135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 break 2
3137 fi
3138done
3139done
252b5132 3140
5464f5a1
NN
3141fi
3142fi
3143ac_ct_AR=$ac_cv_prog_ac_ct_AR
3144if test -n "$ac_ct_AR"; then
3145 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3146echo "${ECHO_T}$ac_ct_AR" >&6
3147else
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
252b5132 3151
5464f5a1
NN
3152 AR=$ac_ct_AR
3153else
3154 AR="$ac_cv_prog_AR"
3155fi
6be7c12c 3156
5464f5a1
NN
3157if test -n "$ac_tool_prefix"; then
3158 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3159set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3160echo "$as_me:$LINENO: checking for $ac_word" >&5
3161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3162if test "${ac_cv_prog_RANLIB+set}" = set; then
3163 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3164else
3165 if test -n "$RANLIB"; then
3166 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3167else
5464f5a1
NN
3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169for as_dir in $PATH
3170do
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3175 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3178 fi
3179done
3180done
3181
252b5132
RH
3182fi
3183fi
5464f5a1 3184RANLIB=$ac_cv_prog_RANLIB
252b5132 3185if test -n "$RANLIB"; then
5464f5a1
NN
3186 echo "$as_me:$LINENO: result: $RANLIB" >&5
3187echo "${ECHO_T}$RANLIB" >&6
252b5132 3188else
5464f5a1
NN
3189 echo "$as_me:$LINENO: result: no" >&5
3190echo "${ECHO_T}no" >&6
252b5132
RH
3191fi
3192
5464f5a1 3193fi
252b5132 3194if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3195 ac_ct_RANLIB=$RANLIB
252b5132
RH
3196 # Extract the first word of "ranlib", so it can be a program name with args.
3197set dummy ranlib; ac_word=$2
5464f5a1
NN
3198echo "$as_me:$LINENO: checking for $ac_word" >&5
3199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3202else
5464f5a1
NN
3203 if test -n "$ac_ct_RANLIB"; then
3204 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3205else
5464f5a1
NN
3206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207for as_dir in $PATH
3208do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_ac_ct_RANLIB="ranlib"
3214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217done
3218done
3219
3220 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3221fi
3222fi
5464f5a1
NN
3223ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3224if test -n "$ac_ct_RANLIB"; then
3225 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3226echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3227else
5464f5a1
NN
3228 echo "$as_me:$LINENO: result: no" >&5
3229echo "${ECHO_T}no" >&6
252b5132
RH
3230fi
3231
5464f5a1 3232 RANLIB=$ac_ct_RANLIB
252b5132 3233else
5464f5a1 3234 RANLIB="$ac_cv_prog_RANLIB"
6be7c12c
AO
3235fi
3236
252b5132
RH
3237
3238# Check whether --enable-shared or --disable-shared was given.
3239if test "${enable_shared+set}" = set; then
3240 enableval="$enable_shared"
3241 p=${PACKAGE-default}
55c80943 3242case $enableval in
252b5132
RH
3243yes) enable_shared=yes ;;
3244no) enable_shared=no ;;
3245*)
3246 enable_shared=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_shared=yes
3252 fi
3253 done
3254 IFS="$ac_save_ifs"
3255 ;;
3256esac
3257else
3258 enable_shared=no
5464f5a1 3259fi;
252b5132
RH
3260
3261# Check whether --enable-static or --disable-static was given.
3262if test "${enable_static+set}" = set; then
3263 enableval="$enable_static"
3264 p=${PACKAGE-default}
55c80943 3265case $enableval in
252b5132
RH
3266yes) enable_static=yes ;;
3267no) enable_static=no ;;
3268*)
3269 enable_static=no
3270 # Look at the argument we got. We use all the common list separators.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3272 for pkg in $enableval; do
3273 if test "X$pkg" = "X$p"; then
3274 enable_static=yes
3275 fi
3276 done
3277 IFS="$ac_save_ifs"
3278 ;;
3279esac
3280else
3281 enable_static=yes
5464f5a1 3282fi;
b2ef150d
ILT
3283# Check whether --enable-fast-install or --disable-fast-install was given.
3284if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
55c80943 3287case $enableval in
b2ef150d
ILT
3288yes) enable_fast_install=yes ;;
3289no) enable_fast_install=no ;;
3290*)
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3297 fi
3298 done
3299 IFS="$ac_save_ifs"
3300 ;;
3301esac
3302else
3303 enable_fast_install=yes
5464f5a1 3304fi;
c5d1701e 3305
252b5132
RH
3306# Check whether --with-gnu-ld or --without-gnu-ld was given.
3307if test "${with_gnu_ld+set}" = set; then
3308 withval="$with_gnu_ld"
3309 test "$withval" = no || with_gnu_ld=yes
3310else
3311 with_gnu_ld=no
5464f5a1 3312fi;
252b5132 3313ac_prog=ld
55c80943 3314if test "$GCC" = yes; then
252b5132 3315 # Check if gcc -print-prog-name=ld gives a path.
5464f5a1
NN
3316 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3317echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3318 case $host in
3319 *-*-mingw*)
3320 # gcc leaves a trailing carriage return which upsets mingw
3321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3322 *)
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3324 esac
55c80943 3325 case $ac_prog in
b2ef150d 3326 # Accept absolute paths.
a74801ba 3327 [\\/]* | [A-Za-z]:[\\/]*)
b2ef150d
ILT
3328 re_direlt='/[^/][^/]*/\.\./'
3329 # Canonicalize the path of ld
3330 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3331 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3332 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3333 done
3334 test -z "$LD" && LD="$ac_prog"
3335 ;;
252b5132
RH
3336 "")
3337 # If it fails, then pretend we aren't using GCC.
3338 ac_prog=ld
3339 ;;
3340 *)
3341 # If it is relative, then search for the first ld in PATH.
3342 with_gnu_ld=unknown
3343 ;;
3344 esac
3345elif test "$with_gnu_ld" = yes; then
5464f5a1
NN
3346 echo "$as_me:$LINENO: checking for GNU ld" >&5
3347echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3348else
5464f5a1
NN
3349 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3350echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3351fi
5464f5a1
NN
3352if test "${lt_cv_path_LD+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3354else
3355 if test -z "$LD"; then
a74801ba 3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3357 for ac_dir in $PATH; do
3358 test -z "$ac_dir" && ac_dir=.
a74801ba 3359 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
55c80943 3360 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3361 # Check to see if the program is GNU ld. I'd rather use --version,
3362 # but apparently some GNU ld's only accept -v.
3363 # Break only if it was the GNU/non-GNU ld that we prefer.
55c80943 3364 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3365 test "$with_gnu_ld" != no && break
3366 else
b2ef150d 3367 test "$with_gnu_ld" != yes && break
252b5132
RH
3368 fi
3369 fi
3370 done
3371 IFS="$ac_save_ifs"
3372else
55c80943 3373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3374fi
3375fi
3376
55c80943 3377LD="$lt_cv_path_LD"
252b5132 3378if test -n "$LD"; then
5464f5a1
NN
3379 echo "$as_me:$LINENO: result: $LD" >&5
3380echo "${ECHO_T}$LD" >&6
252b5132 3381else
5464f5a1
NN
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
252b5132 3384fi
5464f5a1
NN
3385test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3386echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3387 { (exit 1); exit 1; }; }
3388echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3389echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3390if test "${lt_cv_prog_gnu_ld+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3392else
3393 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3394if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
55c80943 3395 lt_cv_prog_gnu_ld=yes
252b5132 3396else
55c80943 3397 lt_cv_prog_gnu_ld=no
252b5132
RH
3398fi
3399fi
5464f5a1
NN
3400echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
55c80943 3402with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132 3403
6be7c12c 3404
5464f5a1
NN
3405echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3409else
3410 lt_cv_ld_reload_flag='-r'
3411fi
5464f5a1
NN
3412echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3414reload_flag=$lt_cv_ld_reload_flag
3415test -n "$reload_flag" && reload_flag=" $reload_flag"
3416
5464f5a1
NN
3417echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3418echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3419if test "${lt_cv_path_NM+set}" = set; then
3420 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3421else
3422 if test -n "$NM"; then
3423 # Let the user override the test.
55c80943 3424 lt_cv_path_NM="$NM"
252b5132 3425else
a74801ba 3426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2ef150d 3427 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
252b5132 3428 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3429 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3430 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3431 # Check to see if the nm accepts a BSD-compat flag.
3432 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3433 # nm: unknown option "B" ignored
90f2472a
AO
3434 # Tru64's nm complains that /dev/null is an invalid object file
3435 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
55c80943 3436 lt_cv_path_NM="$tmp_nm -B"
b2ef150d 3437 break
ac48eca1 3438 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
55c80943 3439 lt_cv_path_NM="$tmp_nm -p"
b2ef150d 3440 break
252b5132 3441 else
55c80943 3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2ef150d 3443 continue # so that we can try to find one that supports BSD flags
252b5132 3444 fi
252b5132
RH
3445 fi
3446 done
3447 IFS="$ac_save_ifs"
55c80943 3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3449fi
3450fi
3451
55c80943 3452NM="$lt_cv_path_NM"
5464f5a1
NN
3453echo "$as_me:$LINENO: result: $NM" >&5
3454echo "${ECHO_T}$NM" >&6
252b5132 3455
5464f5a1
NN
3456echo "$as_me:$LINENO: checking whether ln -s works" >&5
3457echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458LN_S=$as_ln_s
3459if test "$LN_S" = "ln -s"; then
3460 echo "$as_me:$LINENO: result: yes" >&5
3461echo "${ECHO_T}yes" >&6
6be7c12c 3462else
5464f5a1
NN
3463 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3464echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3465fi
3466
5464f5a1
NN
3467echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3468echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3469if test "${lt_cv_deplibs_check_method+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3471else
d64552c5 3472 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3473lt_cv_file_magic_test_file=
3474lt_cv_deplibs_check_method='unknown'
3475# Need to set the preceding variable on all platforms that support
3476# interlibrary dependencies.
3477# 'none' -- dependencies not supported.
3478# `unknown' -- same as none, but documents that we really don't know.
3479# 'pass_all' -- all dependencies passed with no checks.
3480# 'test_compile' -- check by making test program.
3481# 'file_magic [regex]' -- check by looking for files in library path
3482# which responds to the $file_magic_cmd with a given egrep regex.
3483# If you have `file' or equivalent on your system and you're not sure
3484# whether `pass_all' will *always* work, you probably want this one.
3485
55c80943
NC
3486case $host_os in
3487aix*)
ac48eca1
AO
3488 lt_cv_deplibs_check_method=pass_all
3489 ;;
3490
3491beos*)
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495bsdi4*)
55c80943
NC
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3497 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3498 lt_cv_file_magic_test_file=/shlib/libc.so
3499 ;;
3500
d64552c5 3501cygwin* | mingw* |pw32*)
ac48eca1 3502 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3503 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3504 ;;
3505
55c80943 3506darwin* | rhapsody*)
d70c5fc7 3507 # this will be overwritten by pass_all, but leave it in just in case
55c80943 3508 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3509 lt_cv_file_magic_cmd='/usr/bin/file -L'
3510 case "$host_os" in
3511 rhapsody* | darwin1.012)
3512 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3513 ;;
3514 *) # Darwin 1.3 on
3515 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3516 ;;
3517 esac
d70c5fc7 3518 lt_cv_deplibs_check_method=pass_all
55c80943
NC
3519 ;;
3520
5464f5a1 3521freebsd* | kfreebsd*-gnu)
ac48eca1 3522 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3523 case $host_cpu in
ac48eca1 3524 i*86 )
90f2472a
AO
3525 # Not sure whether the presence of OpenBSD here was a mistake.
3526 # Let's accept both of them until this is cleared up.
55c80943
NC
3527 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3528 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3529 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3530 ;;
3531 esac
3532 else
3533 lt_cv_deplibs_check_method=pass_all
3534 fi
3535 ;;
3536
3537gnu*)
3538 lt_cv_deplibs_check_method=pass_all
3539 ;;
3540
55c80943 3541hpux10.20*|hpux11*)
4867be41
DJ
3542 case $host_cpu in
3543 hppa*)
3544 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3545 lt_cv_file_magic_cmd=/usr/bin/file
3546 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3547 ;;
3548 ia64*)
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3550 lt_cv_file_magic_cmd=/usr/bin/file
3551 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3552 ;;
3553 esac
ac48eca1
AO
3554 ;;
3555
3556irix5* | irix6*)
55c80943 3557 case $host_os in
ac48eca1
AO
3558 irix5*)
3559 # this will be overridden with pass_all, but let us keep it just in case
3560 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3561 ;;
3562 *)
55c80943 3563 case $LD in
ac48eca1
AO
3564 *-32|*"-32 ") libmagic=32-bit;;
3565 *-n32|*"-n32 ") libmagic=N32;;
3566 *-64|*"-64 ") libmagic=64-bit;;
3567 *) libmagic=never-match;;
3568 esac
3569 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3570 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3571 ;;
ac48eca1
AO
3572 esac
3573 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577# This must be Linux ELF.
90f2472a 3578linux-gnu*)
d70c5fc7 3579 lt_cv_deplibs_check_method=pass_all
ac48eca1
AO
3580 ;;
3581
5464f5a1 3582netbsd* | knetbsd*-gnu)
55c80943 3583 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3584 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3585 else
b3baf5d0 3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3587 fi
55c80943
NC
3588 ;;
3589
3590newsos6)
3591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3592 lt_cv_file_magic_cmd=/usr/bin/file
3593 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3594 ;;
3595
3596osf3* | osf4* | osf5*)
3597 # this will be overridden with pass_all, but let us keep it just in case
3598 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3599 lt_cv_file_magic_test_file=/shlib/libc.so
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3602
3603sco3.2v5*)
3604 lt_cv_deplibs_check_method=pass_all
3605 ;;
3606
3607solaris*)
3608 lt_cv_deplibs_check_method=pass_all
3609 lt_cv_file_magic_test_file=/lib/libc.so
3610 ;;
3611
6be7c12c
AO
3612sysv5uw[78]* | sysv4*uw2*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
ac48eca1 3616sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3617 case $host_vendor in
ac48eca1
AO
3618 ncr)
3619 lt_cv_deplibs_check_method=pass_all
3620 ;;
3621 motorola)
55c80943
NC
3622 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]'
3623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3624 ;;
3625 esac
3626 ;;
3627esac
3628
3629fi
5464f5a1
NN
3630echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3631echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3632file_magic_cmd=$lt_cv_file_magic_cmd
3633deplibs_check_method=$lt_cv_deplibs_check_method
3634
6be7c12c
AO
3635
3636
6be7c12c
AO
3637
3638# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3639
d70c5fc7
NC
3640# find the maximum length of command line arguments
3641echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3642echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3643if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645else
3646 i=0
3647 teststring="ABCD"
3648
3649 case $build_os in
3650 msdosdjgpp*)
3651 # On DJGPP, this test can blow up pretty badly due to problems in libc
3652 # (any single argument exceeding 2000 bytes causes a buffer overrun
3653 # during glob expansion). Even if it were fixed, the result of this
3654 # check would be larger than it should be.
3655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3656 ;;
3657
3658 cygwin* | mingw*)
3659 # On Win9x/ME, this test blows up -- it succeeds, but takes
3660 # about 5 minutes as the teststring grows exponentially.
3661 # Worse, since 9x/ME are not pre-emptively multitasking,
3662 # you end up with a "frozen" computer, even though with patience
3663 # the test eventually succeeds (with a max line length of 256k).
3664 # Instead, let's just punt: use the minimum linelength reported by
3665 # all of the supported platforms: 8192 (on NT/2K/XP).
3666 lt_cv_sys_max_cmd_len=8192;
3667 ;;
3668
3669 amigaos*)
3670 # On AmigaOS with pdksh, this test takes hours, literally.
3671 # So we just punt and use a minimum line length of 8192.
3672 lt_cv_sys_max_cmd_len=8192;
3673 ;;
3674
3675 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3676 # This has been around since 386BSD, at least. Likely further.
3677 if test -x /sbin/sysctl; then
3678 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3679 elif test -x /usr/sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3681 else
3682 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3683 fi
3684 # And add a safety zone
3685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3687 ;;
3688 esac
3689
3690fi
3691
3692if test -n "$lt_cv_sys_max_cmd_len" ; then
3693 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3694echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3695else
3696 echo "$as_me:$LINENO: result: none" >&5
3697echo "${ECHO_T}none" >&6
3698fi
3699
3700
6be7c12c
AO
3701# Only perform the check for file, if the check method requires it
3702case $deplibs_check_method in
3703file_magic*)
3704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3705 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3706echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3707if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3709else
3710 case $MAGIC_CMD in
3711 /*)
3712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3713 ;;
3714 ?:/*)
3715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3716 ;;
3717 *)
d64552c5 3718 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3719 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3720 ac_dummy="/usr/bin:$PATH"
3721 for ac_dir in $ac_dummy; do
3722 test -z "$ac_dir" && ac_dir=.
3723 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3724 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3725 if test -n "$file_magic_test_file"; then
55c80943 3726 case $deplibs_check_method in
ac48eca1
AO
3727 "file_magic "*)
3728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3731 egrep "$file_magic_regex" > /dev/null; then
3732 :
3733 else
3734 cat <<EOF 1>&2
3735
3736*** Warning: the command libtool uses to detect shared libraries,
3737*** $file_magic_cmd, produces output that libtool cannot recognize.
3738*** The result is that libtool may fail to recognize shared libraries
3739*** as such. This will affect the creation of libtool libraries that
3740*** depend on shared libraries, but programs linked with such libtool
3741*** libraries will work regardless of this problem. Nevertheless, you
3742*** may want to report the problem to your system manager and/or to
3743*** bug-libtool@gnu.org
3744
3745EOF
3746 fi ;;
3747 esac
3748 fi
3749 break
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
d64552c5 3753 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3754 ;;
3755esac
3756fi
3757
d64552c5
AO
3758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3759if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3761echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3762else
5464f5a1
NN
3763 echo "$as_me:$LINENO: result: no" >&5
3764echo "${ECHO_T}no" >&6
ac48eca1
AO
3765fi
3766
d64552c5 3767if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3768 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3769 echo "$as_me:$LINENO: checking for file" >&5
3770echo $ECHO_N "checking for file... $ECHO_C" >&6
3771if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3773else
55c80943 3774 case $MAGIC_CMD in
ac48eca1 3775 /*)
d64552c5 3776 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3777 ;;
3778 ?:/*)
d64552c5 3779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3780 ;;
3781 *)
d64552c5 3782 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3784 ac_dummy="/usr/bin:$PATH"
3785 for ac_dir in $ac_dummy; do
3786 test -z "$ac_dir" && ac_dir=.
3787 if test -f $ac_dir/file; then
d64552c5 3788 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3789 if test -n "$file_magic_test_file"; then
55c80943 3790 case $deplibs_check_method in
ac48eca1
AO
3791 "file_magic "*)
3792 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3795 egrep "$file_magic_regex" > /dev/null; then
3796 :
3797 else
3798 cat <<EOF 1>&2
3799
3800*** Warning: the command libtool uses to detect shared libraries,
3801*** $file_magic_cmd, produces output that libtool cannot recognize.
3802*** The result is that libtool may fail to recognize shared libraries
3803*** as such. This will affect the creation of libtool libraries that
3804*** depend on shared libraries, but programs linked with such libtool
3805*** libraries will work regardless of this problem. Nevertheless, you
3806*** may want to report the problem to your system manager and/or to
3807*** bug-libtool@gnu.org
3808
3809EOF
3810 fi ;;
3811 esac
3812 fi
3813 break
3814 fi
3815 done
3816 IFS="$ac_save_ifs"
d64552c5 3817 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3818 ;;
3819esac
3820fi
3821
d64552c5
AO
3822MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3823if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3824 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3825echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3826else
5464f5a1
NN
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
ac48eca1
AO
3829fi
3830
3831 else
d64552c5 3832 MAGIC_CMD=:
ac48eca1
AO
3833 fi
3834fi
3835
3836 fi
3837 ;;
3838esac
3839
5464f5a1
NN
3840if test -n "$ac_tool_prefix"; then
3841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3842set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3843echo "$as_me:$LINENO: checking for $ac_word" >&5
3844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845if test "${ac_cv_prog_RANLIB+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3847else
3848 if test -n "$RANLIB"; then
3849 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3850else
5464f5a1
NN
3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852for as_dir in $PATH
3853do
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3861 fi
3862done
3863done
3864
ac48eca1
AO
3865fi
3866fi
5464f5a1 3867RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3868if test -n "$RANLIB"; then
5464f5a1
NN
3869 echo "$as_me:$LINENO: result: $RANLIB" >&5
3870echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3871else
5464f5a1
NN
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
ac48eca1
AO
3874fi
3875
5464f5a1 3876fi
ac48eca1 3877if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3878 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3879 # Extract the first word of "ranlib", so it can be a program name with args.
3880set dummy ranlib; ac_word=$2
5464f5a1
NN
3881echo "$as_me:$LINENO: checking for $ac_word" >&5
3882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3885else
5464f5a1
NN
3886 if test -n "$ac_ct_RANLIB"; then
3887 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3888else
5464f5a1
NN
3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_ac_ct_RANLIB="ranlib"
3897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900done
3901done
3902
3903 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3904fi
3905fi
5464f5a1
NN
3906ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3907if test -n "$ac_ct_RANLIB"; then
3908 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3909echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3910else
5464f5a1
NN
3911 echo "$as_me:$LINENO: result: no" >&5
3912echo "${ECHO_T}no" >&6
ac48eca1
AO
3913fi
3914
5464f5a1 3915 RANLIB=$ac_ct_RANLIB
ac48eca1 3916else
5464f5a1 3917 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3918fi
3919
5464f5a1
NN
3920if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3922set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3923echo "$as_me:$LINENO: checking for $ac_word" >&5
3924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925if test "${ac_cv_prog_STRIP+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3927else
3928 if test -n "$STRIP"; then
3929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3930else
5464f5a1
NN
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3941 fi
3942done
3943done
3944
ac48eca1
AO
3945fi
3946fi
5464f5a1 3947STRIP=$ac_cv_prog_STRIP
ac48eca1 3948if test -n "$STRIP"; then
5464f5a1
NN
3949 echo "$as_me:$LINENO: result: $STRIP" >&5
3950echo "${ECHO_T}$STRIP" >&6
ac48eca1 3951else
5464f5a1
NN
3952 echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
ac48eca1
AO
3954fi
3955
5464f5a1 3956fi
ac48eca1 3957if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3958 ac_ct_STRIP=$STRIP
ac48eca1
AO
3959 # Extract the first word of "strip", so it can be a program name with args.
3960set dummy strip; ac_word=$2
5464f5a1
NN
3961echo "$as_me:$LINENO: checking for $ac_word" >&5
3962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3965else
5464f5a1
NN
3966 if test -n "$ac_ct_STRIP"; then
3967 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3968else
5464f5a1
NN
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_ac_ct_STRIP="strip"
3977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980done
3981done
3982
3983 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3984fi
3985fi
5464f5a1
NN
3986ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3987if test -n "$ac_ct_STRIP"; then
3988 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3989echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3990else
5464f5a1
NN
3991 echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6
ac48eca1
AO
3993fi
3994
5464f5a1 3995 STRIP=$ac_ct_STRIP
ac48eca1 3996else
5464f5a1 3997 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3998fi
252b5132 3999
6be7c12c 4000
252b5132 4001# Check for any special flags to pass to ltconfig.
b2ef150d 4002libtool_flags="--cache-file=$cache_file"
252b5132
RH
4003test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4004test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 4005test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
4006test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4007test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 4008
6be7c12c 4009
a74801ba
ILT
4010# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4011if test "${enable_libtool_lock+set}" = set; then
4012 enableval="$enable_libtool_lock"
a74801ba 4013
5464f5a1 4014fi;
a74801ba
ILT
4015test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4016test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4017
5464f5a1 4018
ac48eca1
AO
4019# Check whether --with-pic or --without-pic was given.
4020if test "${with_pic+set}" = set; then
4021 withval="$with_pic"
4022 pic_mode="$withval"
4023else
5464f5a1
NN
4024 pic_mode=default
4025fi;
ac48eca1
AO
4026test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4027test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4028
252b5132
RH
4029# Some flags need to be propagated to the compiler or linker for good
4030# libtool support.
55c80943 4031case $host in
252b5132
RH
4032*-*-irix6*)
4033 # Find out which ABI we are using.
20e95c23 4034 echo '#line 4034 "configure"' > conftest.$ac_ext
5464f5a1
NN
4035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
4037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; then
6a457e5c
NC
4040 if test "$lt_cv_prog_gnu_ld" = yes; then
4041 case `/usr/bin/file conftest.$ac_objext` in
4042 *32-bit*)
4043 LD="${LD-ld} -melf32bsmip"
4044 ;;
4045 *N32*)
4046 LD="${LD-ld} -melf32bmipn32"
4047 ;;
4048 *64-bit*)
4049 LD="${LD-ld} -melf64bmip"
4050 ;;
4051 esac
4052 else
55c80943 4053 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4054 *32-bit*)
4055 LD="${LD-ld} -32"
4056 ;;
4057 *N32*)
4058 LD="${LD-ld} -n32"
4059 ;;
4060 *64-bit*)
4061 LD="${LD-ld} -64"
4062 ;;
4063 esac
6a457e5c 4064 fi
252b5132
RH
4065 fi
4066 rm -rf conftest*
4067 ;;
4068
4867be41
DJ
4069ia64-*-hpux*)
4070 # Find out which ABI we are using.
4071 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4867be41
DJ
4077 case "`/usr/bin/file conftest.o`" in
4078 *ELF-32*)
4079 HPUX_IA64_MODE="32"
4080 ;;
4081 *ELF-64*)
4082 HPUX_IA64_MODE="64"
4083 ;;
4084 esac
4085 fi
4086 rm -rf conftest*
4087 ;;
4088
65fe5dd6 4089x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
d70c5fc7
NC
4090 # Find out which ABI we are using.
4091 echo 'int i;' > conftest.$ac_ext
4092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4093 (eval $ac_compile) 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; then
4097 case "`/usr/bin/file conftest.o`" in
4098 *32-bit*)
4099 case $host in
65fe5dd6 4100 x86_64-*linux*)
d70c5fc7
NC
4101 LD="${LD-ld} -m elf_i386"
4102 ;;
4103 ppc64-*linux*|powerpc64-*linux*)
4104 LD="${LD-ld} -m elf32ppclinux"
4105 ;;
4106 s390x-*linux*)
4107 LD="${LD-ld} -m elf_s390"
4108 ;;
4109 sparc64-*linux*)
4110 LD="${LD-ld} -m elf32_sparc"
4111 ;;
4112 esac
4113 ;;
4114 *64-bit*)
4115 case $host in
65fe5dd6 4116 x86_64-*linux*)
d70c5fc7
NC
4117 LD="${LD-ld} -m elf_x86_64"
4118 ;;
4119 ppc*-*linux*|powerpc*-*linux*)
4120 LD="${LD-ld} -m elf64ppc"
4121 ;;
4122 s390*-*linux*)
4123 LD="${LD-ld} -m elf64_s390"
4124 ;;
4125 sparc*-*linux*)
4126 LD="${LD-ld} -m elf64_sparc"
4127 ;;
4128 esac
4129 ;;
4130 esac
4131 fi
4132 rm -rf conftest*
4133 ;;
4134
252b5132
RH
4135*-*-sco3.2v5*)
4136 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4137 SAVE_CFLAGS="$CFLAGS"
252b5132 4138 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4139 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4140echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4141if test "${lt_cv_cc_needs_belf+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4143else
5464f5a1
NN
4144
4145
ac48eca1 4146 ac_ext=c
ac48eca1 4147ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4151
5464f5a1
NN
4152 cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
b2ef150d 4158
5464f5a1
NN
4159int
4160main ()
4161{
b2ef150d 4162
5464f5a1
NN
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167rm -f conftest.$ac_objext conftest$ac_exeext
4168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4169 (eval $ac_link) 2>conftest.er1
4170 ac_status=$?
4171 grep -v '^ *+' conftest.er1 >conftest.err
4172 rm -f conftest.er1
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
49c96104
SE
4176 { ac_try='test -z "$ac_c_werror_flag"
4177 || test ! -s conftest.err'
5464f5a1
NN
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; } &&
4183 { ac_try='test -s conftest$ac_exeext'
4184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 (eval $ac_try) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; }; then
b2ef150d
ILT
4189 lt_cv_cc_needs_belf=yes
4190else
5464f5a1
NN
4191 echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194lt_cv_cc_needs_belf=no
b2ef150d 4195fi
5464f5a1
NN
4196rm -f conftest.err conftest.$ac_objext \
4197 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4198 ac_ext=c
ac48eca1 4199ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4203
b2ef150d 4204fi
5464f5a1
NN
4205echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4206echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4209 CFLAGS="$SAVE_CFLAGS"
4210 fi
252b5132
RH
4211 ;;
4212
6be7c12c 4213
252b5132
RH
4214esac
4215
6be7c12c 4216
b2ef150d 4217# Save cache, so that ltconfig can load it
5464f5a1 4218cat >confcache <<\_ACEOF
b2ef150d
ILT
4219# This file is a shell script that caches the results of configure
4220# tests run on this system so they can be shared between configure
5464f5a1
NN
4221# scripts and configure runs, see configure's option --config-cache.
4222# It is not useful on other systems. If it contains results you don't
4223# want to keep, you may remove or edit it.
b2ef150d 4224#
5464f5a1
NN
4225# config.status only pays attention to the cache file if you give it
4226# the --recheck option to rerun configure.
b2ef150d 4227#
5464f5a1
NN
4228# `ac_cv_env_foo' variables (set or unset) will be overridden when
4229# loading this file, other *unset* `ac_cv_foo' will be assigned the
4230# following values.
4231
4232_ACEOF
4233
b2ef150d
ILT
4234# The following way of writing the cache mishandles newlines in values,
4235# but we know of no workaround that is simple, portable, and efficient.
4236# So, don't put newlines in cache variables' values.
4237# Ultrix sh set writes to stderr and can't be redirected directly,
4238# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4239{
4240 (set) 2>&1 |
4241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4242 *ac_space=\ *)
4243 # `set' does not quote correctly, so add quotes (double-quote
4244 # substitution turns \\\\ into \\, and sed turns \\ into \).
4245 sed -n \
4246 "s/'/'\\\\''/g;
4247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4248 ;;
4249 *)
4250 # `set' quotes correctly as required by POSIX, so do not add quotes.
4251 sed -n \
4252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4253 ;;
4254 esac;
4255} |
4256 sed '
4257 t clear
4258 : clear
4259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4260 t end
4261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4262 : end' >>confcache
4263if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4264 if test -w $cache_file; then
5464f5a1
NN
4265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4266 cat confcache >$cache_file
b2ef150d
ILT
4267 else
4268 echo "not updating unwritable cache $cache_file"
4269 fi
4270fi
4271rm -f confcache
4272
252b5132 4273# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4274AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4275MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4276LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4277AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4278objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4279deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4280${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4281$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4282|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4283echo "$as_me: error: libtool configure failed" >&2;}
4284 { (exit 1); exit 1; }; }
252b5132 4285
b2ef150d
ILT
4286# Reload cache, that may have been modified by ltconfig
4287if test -r "$cache_file"; then
5464f5a1
NN
4288 # Some versions of bash will fail to source /dev/null (special
4289 # files actually), so we avoid doing that.
4290 if test -f "$cache_file"; then
4291 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4292echo "$as_me: loading cache $cache_file" >&6;}
4293 case $cache_file in
4294 [\\/]* | ?:[\\/]* ) . $cache_file;;
4295 *) . ./$cache_file;;
4296 esac
4297 fi
b2ef150d 4298else
5464f5a1
NN
4299 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4300echo "$as_me: creating cache $cache_file" >&6;}
4301 >$cache_file
b2ef150d
ILT
4302fi
4303
6be7c12c 4304
b2ef150d 4305# This can be used to rebuild libtool when needed
ac48eca1 4306LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4307
4308# Always use our own libtool.
4309LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4310
252b5132
RH
4311# Redirect the config.log output again, so that the ltconfig log is not
4312# clobbered by the next message.
4313exec 5>>./config.log
4314
6be7c12c 4315
5464f5a1
NN
4316
4317
4318
4319
6be7c12c 4320
252b5132
RH
4321# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4322if test "${enable_64_bit_bfd+set}" = set; then
4323 enableval="$enable_64_bit_bfd"
4324 case "${enableval}" in
4325 yes) want64=true ;;
4326 no) want64=false ;;
5464f5a1
NN
4327 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4328echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4329 { (exit 1); exit 1; }; } ;;
252b5132
RH
4330esac
4331else
4332 want64=false
5464f5a1 4333fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4334if test "${enable_targets+set}" = set; then
4335 enableval="$enable_targets"
4336 case "${enableval}" in
5464f5a1
NN
4337 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4338echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4339 { (exit 1); exit 1; }; }
252b5132
RH
4340 ;;
4341 no) enable_targets= ;;
4342 *) enable_targets=$enableval ;;
4343esac
5464f5a1 4344fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4345if test "${enable_commonbfdlib+set}" = set; then
4346 enableval="$enable_commonbfdlib"
4347 case "${enableval}" in
4348 yes) commonbfdlib=true ;;
4349 no) commonbfdlib=false ;;
5464f5a1
NN
4350 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4351echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4352 { (exit 1); exit 1; }; } ;;
252b5132 4353esac
5464f5a1 4354fi;
252b5132
RH
4355# Check whether --with-mmap or --without-mmap was given.
4356if test "${with_mmap+set}" = set; then
4357 withval="$with_mmap"
4358 case "${withval}" in
4359 yes) want_mmap=true ;;
4360 no) want_mmap=false ;;
5464f5a1
NN
4361 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4362echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4363 { (exit 1); exit 1; }; } ;;
252b5132
RH
4364esac
4365else
4366 want_mmap=false
5464f5a1 4367fi;
6ec7057a
RH
4368# Check whether --enable-secureplt or --disable-secureplt was given.
4369if test "${enable_secureplt+set}" = set; then
4370 enableval="$enable_secureplt"
4371 case "${enableval}" in
4372 yes) use_secureplt=true ;;
4373 no) use_secureplt=false ;;
4374 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4375echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4376 { (exit 1); exit 1; }; } ;;
4377esac
4378else
4379 use_secureplt=false
4380fi; if test $use_secureplt = true; then
4381
4382cat >>confdefs.h <<\_ACEOF
4383#define USE_SECUREPLT 1
4384_ACEOF
4385
4386fi
4387
9e9b66a9 4388
49c96104 4389GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4390
569acd2c
NC
4391# Check whether --enable-werror or --disable-werror was given.
4392if test "${enable_werror+set}" = set; then
4393 enableval="$enable_werror"
1ad12f97
NC
4394 case "${enableval}" in
4395 yes | y) ERROR_ON_WARNING="yes" ;;
4396 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4397 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4398echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4399 { (exit 1); exit 1; }; } ;;
4400 esac
4401fi;
4402
9e9b66a9
AM
4403# Enable -Werror by default when using gcc
4404if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4405 ERROR_ON_WARNING=yes
4406fi
4407
4408NO_WERROR=
4409if test "${ERROR_ON_WARNING}" = yes ; then
49c96104 4410 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9e9b66a9 4411 NO_WERROR="-Wno-error"
1ad12f97
NC
4412fi
4413
49c96104
SE
4414if test "${GCC}" = yes ; then
4415 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4416fi
4417
a2d91340
AC
4418# Check whether --enable-build-warnings or --disable-build-warnings was given.
4419if test "${enable_build_warnings+set}" = set; then
4420 enableval="$enable_build_warnings"
4421 case "${enableval}" in
49c96104
SE
4422 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4423 no) if test "${GCC}" = yes ; then
4424 WARN_CFLAGS="-w"
4425 fi;;
a2d91340 4426 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4427 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
a2d91340 4428 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
49c96104 4429 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9e9b66a9 4430 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
a2d91340 4431esac
9e9b66a9
AM
4432fi;
4433
4434if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4435 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
a2d91340
AC
4436fi
4437
4438
9e9b66a9
AM
4439
4440
4441
5464f5a1 4442 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4443
252b5132
RH
4444
4445if test -z "$target" ; then
5464f5a1
NN
4446 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4447echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4448 { (exit 1); exit 1; }; }
252b5132 4449fi
252b5132 4450
5464f5a1
NN
4451echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4452echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4453 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4454if test "${enable_maintainer_mode+set}" = set; then
4455 enableval="$enable_maintainer_mode"
4456 USE_MAINTAINER_MODE=$enableval
4457else
4458 USE_MAINTAINER_MODE=no
5464f5a1
NN
4459fi;
4460 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4461echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4462
252b5132
RH
4463
4464if test $USE_MAINTAINER_MODE = yes; then
4465 MAINTAINER_MODE_TRUE=
4466 MAINTAINER_MODE_FALSE='#'
4467else
4468 MAINTAINER_MODE_TRUE='#'
4469 MAINTAINER_MODE_FALSE=
4470fi
f5385ebf 4471
252b5132 4472 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4473
5464f5a1 4474
24443139
AS
4475 case ${build_alias} in
4476 "") build_noncanonical=${build} ;;
4477 *) build_noncanonical=${build_alias} ;;
4478esac
4479
4480 case ${host_alias} in
4481 "") host_noncanonical=${build_noncanonical} ;;
4482 *) host_noncanonical=${host_alias} ;;
4483esac
4484
4485 case ${target_alias} in
4486 "") target_noncanonical=${host_noncanonical} ;;
4487 *) target_noncanonical=${target_alias} ;;
4488esac
4489
5464f5a1
NN
4490echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4491echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4492 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4493if test "${enable_install_libbfd+set}" = set; then
4494 enableval="$enable_install_libbfd"
4495 install_libbfd_p=$enableval
4496else
66e25bab 4497 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4498 install_libbfd_p=yes
4499 else
4500 install_libbfd_p=no
4501 fi
5464f5a1
NN
4502fi;
4503 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4504echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4505
a703a6ea
AM
4506
4507if test $install_libbfd_p = yes; then
4508 INSTALL_LIBBFD_TRUE=
4509 INSTALL_LIBBFD_FALSE='#'
4510else
4511 INSTALL_LIBBFD_TRUE='#'
4512 INSTALL_LIBBFD_FALSE=
4513fi
f5385ebf 4514
5464f5a1 4515 # Need _noncanonical variables for this.
24443139
AS
4516
4517
4518
4519
a703a6ea
AM
4520 # libbfd.a is a host library containing target dependent code
4521 bfdlibdir='$(libdir)'
4522 bfdincludedir='$(includedir)'
4523 if test "${host}" != "${target}"; then
5464f5a1
NN
4524 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4525 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4526 fi
a703a6ea
AM
4527
4528
252b5132
RH
4529
4530
5464f5a1
NN
4531
4532
4533host64=false
4534target64=false
4535bfd_default_target_size=32
4536
4537# host stuff:
4538
4539ac_ext=c
4540ac_cpp='$CPP $CPPFLAGS'
4541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4543ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4546set dummy ${ac_tool_prefix}gcc; ac_word=$2
4547echo "$as_me:$LINENO: checking for $ac_word" >&5
4548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4549if test "${ac_cv_prog_CC+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4551else
5464f5a1
NN
4552 if test -n "$CC"; then
4553 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4554else
5464f5a1
NN
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
6be7c12c 4565 fi
5464f5a1
NN
4566done
4567done
4568
252b5132 4569fi
b3baf5d0 4570fi
5464f5a1
NN
4571CC=$ac_cv_prog_CC
4572if test -n "$CC"; then
4573 echo "$as_me:$LINENO: result: $CC" >&5
4574echo "${ECHO_T}$CC" >&6
4575else
4576 echo "$as_me:$LINENO: result: no" >&5
4577echo "${ECHO_T}no" >&6
4578fi
252b5132 4579
5464f5a1
NN
4580fi
4581if test -z "$ac_cv_prog_CC"; then
4582 ac_ct_CC=$CC
4583 # Extract the first word of "gcc", so it can be a program name with args.
4584set dummy gcc; ac_word=$2
4585echo "$as_me:$LINENO: checking for $ac_word" >&5
4586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590 if test -n "$ac_ct_CC"; then
4591 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4592else
4593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594for as_dir in $PATH
4595do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_ac_ct_CC="gcc"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604done
4605done
252b5132 4606
5464f5a1
NN
4607fi
4608fi
4609ac_ct_CC=$ac_cv_prog_ac_ct_CC
4610if test -n "$ac_ct_CC"; then
4611 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4612echo "${ECHO_T}$ac_ct_CC" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
252b5132 4617
5464f5a1
NN
4618 CC=$ac_ct_CC
4619else
4620 CC="$ac_cv_prog_CC"
4621fi
252b5132 4622
5464f5a1
NN
4623if test -z "$CC"; then
4624 if test -n "$ac_tool_prefix"; then
4625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4626set dummy ${ac_tool_prefix}cc; ac_word=$2
4627echo "$as_me:$LINENO: checking for $ac_word" >&5
4628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4629if test "${ac_cv_prog_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 if test -n "$CC"; then
4633 ac_cv_prog_CC="$CC" # Let the user override the test.
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642 ac_cv_prog_CC="${ac_tool_prefix}cc"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
4645 fi
4646done
4647done
6be7c12c 4648
5464f5a1
NN
4649fi
4650fi
4651CC=$ac_cv_prog_CC
4652if test -n "$CC"; then
4653 echo "$as_me:$LINENO: result: $CC" >&5
4654echo "${ECHO_T}$CC" >&6
4655else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658fi
4659
4660fi
4661if test -z "$ac_cv_prog_CC"; then
4662 ac_ct_CC=$CC
4663 # Extract the first word of "cc", so it can be a program name with args.
4664set dummy cc; ac_word=$2
4665echo "$as_me:$LINENO: checking for $ac_word" >&5
4666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4667if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669else
4670 if test -n "$ac_ct_CC"; then
4671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672else
4673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674for as_dir in $PATH
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_ac_ct_CC="cc"
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684done
4685done
4686
4687fi
4688fi
4689ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690if test -n "$ac_ct_CC"; then
4691 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692echo "${ECHO_T}$ac_ct_CC" >&6
4693else
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
4696fi
4697
4698 CC=$ac_ct_CC
4699else
4700 CC="$ac_cv_prog_CC"
4701fi
4702
4703fi
4704if test -z "$CC"; then
4705 # Extract the first word of "cc", so it can be a program name with args.
4706set dummy cc; ac_word=$2
4707echo "$as_me:$LINENO: checking for $ac_word" >&5
4708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709if test "${ac_cv_prog_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4711else
4712 if test -n "$CC"; then
4713 ac_cv_prog_CC="$CC" # Let the user override the test.
4714else
5464f5a1
NN
4715 ac_prog_rejected=no
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4724 ac_prog_rejected=yes
4725 continue
4726 fi
4727 ac_cv_prog_CC="cc"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732done
4733
4734if test $ac_prog_rejected = yes; then
4735 # We found a bogon in the path, so make sure we never use it.
4736 set dummy $ac_cv_prog_CC
4737 shift
4738 if test $# != 0; then
4739 # We chose a different compiler from the bogus one.
4740 # However, it has the same basename, so the bogon will be chosen
4741 # first if we set CC to just the basename; use the full file name.
4742 shift
4743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4744 fi
4745fi
4746fi
4747fi
4748CC=$ac_cv_prog_CC
4749if test -n "$CC"; then
4750 echo "$as_me:$LINENO: result: $CC" >&5
4751echo "${ECHO_T}$CC" >&6
4752else
4753 echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755fi
4756
4757fi
4758if test -z "$CC"; then
4759 if test -n "$ac_tool_prefix"; then
4760 for ac_prog in cl
4761 do
4762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4764echo "$as_me:$LINENO: checking for $ac_word" >&5
4765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766if test "${ac_cv_prog_CC+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768else
4769 if test -n "$CC"; then
4770 ac_cv_prog_CC="$CC" # Let the user override the test.
4771else
4772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773for as_dir in $PATH
4774do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4781 break 2
4782 fi
4783done
4784done
4785
4786fi
4787fi
4788CC=$ac_cv_prog_CC
4789if test -n "$CC"; then
4790 echo "$as_me:$LINENO: result: $CC" >&5
4791echo "${ECHO_T}$CC" >&6
4792else
4793 echo "$as_me:$LINENO: result: no" >&5
4794echo "${ECHO_T}no" >&6
4795fi
4796
4797 test -n "$CC" && break
6be7c12c 4798 done
252b5132 4799fi
5464f5a1
NN
4800if test -z "$CC"; then
4801 ac_ct_CC=$CC
4802 for ac_prog in cl
4803do
4804 # Extract the first word of "$ac_prog", so it can be a program name with args.
4805set dummy $ac_prog; ac_word=$2
4806echo "$as_me:$LINENO: checking for $ac_word" >&5
4807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811 if test -n "$ac_ct_CC"; then
4812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
4816do
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_ac_ct_CC="$ac_prog"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4824 fi
4825done
4826done
4827
4828fi
4829fi
4830ac_ct_CC=$ac_cv_prog_ac_ct_CC
4831if test -n "$ac_ct_CC"; then
4832 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4833echo "${ECHO_T}$ac_ct_CC" >&6
4834else
4835 echo "$as_me:$LINENO: result: no" >&5
4836echo "${ECHO_T}no" >&6
4837fi
4838
4839 test -n "$ac_ct_CC" && break
4840done
4841
4842 CC=$ac_ct_CC
4843fi
4844
4845fi
4846
4847
4848test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4849See \`config.log' for more details." >&5
4850echo "$as_me: error: no acceptable C compiler found in \$PATH
4851See \`config.log' for more details." >&2;}
4852 { (exit 1); exit 1; }; }
4853
4854# Provide some information about the compiler.
4855echo "$as_me:$LINENO:" \
4856 "checking for C compiler version" >&5
4857ac_compiler=`set X $ac_compile; echo $2`
4858{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4859 (eval $ac_compiler --version </dev/null >&5) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); }
4863{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4864 (eval $ac_compiler -v </dev/null >&5) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }
4868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4869 (eval $ac_compiler -V </dev/null >&5) 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }
4873
4874echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4875echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4876if test "${ac_cv_c_compiler_gnu+set}" = set; then
4877 echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879 cat >conftest.$ac_ext <<_ACEOF
4880/* confdefs.h. */
4881_ACEOF
4882cat confdefs.h >>conftest.$ac_ext
4883cat >>conftest.$ac_ext <<_ACEOF
4884/* end confdefs.h. */
4885
4886int
4887main ()
4888{
4889#ifndef __GNUC__
4890 choke me
4891#endif
4892
4893 ;
4894 return 0;
4895}
4896_ACEOF
4897rm -f conftest.$ac_objext
4898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
49c96104
SE
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
5464f5a1
NN
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_compiler_gnu=yes
4920else
4921 echo "$as_me: failed program was:" >&5
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
4924ac_compiler_gnu=no
4925fi
4926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4927ac_cv_c_compiler_gnu=$ac_compiler_gnu
4928
4929fi
4930echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4931echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4932GCC=`test $ac_compiler_gnu = yes && echo yes`
4933ac_test_CFLAGS=${CFLAGS+set}
4934ac_save_CFLAGS=$CFLAGS
4935CFLAGS="-g"
4936echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4937echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4938if test "${ac_cv_prog_cc_g+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
4947
4948int
4949main ()
4950{
4951
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext
4957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4958 (eval $ac_compile) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
49c96104
SE
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
5464f5a1
NN
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest.$ac_objext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_prog_cc_g=yes
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983ac_cv_prog_cc_g=no
4984fi
4985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4986fi
4987echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4988echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4989if test "$ac_test_CFLAGS" = set; then
4990 CFLAGS=$ac_save_CFLAGS
4991elif test $ac_cv_prog_cc_g = yes; then
4992 if test "$GCC" = yes; then
4993 CFLAGS="-g -O2"
4994 else
4995 CFLAGS="-g"
4996 fi
4997else
4998 if test "$GCC" = yes; then
4999 CFLAGS="-O2"
5000 else
5001 CFLAGS=
5002 fi
5003fi
5004echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5005echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5006if test "${ac_cv_prog_cc_stdc+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009 ac_cv_prog_cc_stdc=no
5010ac_save_CC=$CC
5011cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017#include <stdarg.h>
5018#include <stdio.h>
5019#include <sys/types.h>
5020#include <sys/stat.h>
5021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5022struct buf { int x; };
5023FILE * (*rcsopen) (struct buf *, struct stat *, int);
5024static char *e (p, i)
5025 char **p;
5026 int i;
5027{
5028 return p[i];
5029}
5030static char *f (char * (*g) (char **, int), char **p, ...)
5031{
5032 char *s;
5033 va_list v;
5034 va_start (v,p);
5035 s = g (p, va_arg (v,int));
5036 va_end (v);
5037 return s;
5038}
5039
5040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5041 function prototypes and stuff, but not '\xHH' hex character constants.
5042 These don't provoke an error unfortunately, instead are silently treated
5043 as 'x'. The following induces an error, until -std1 is added to get
5044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5045 array size at least. It's necessary to write '\x00'==0 to get something
5046 that's true only with -std1. */
5047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5048
5049int test (int i, double x);
5050struct s1 {int (*f) (int a);};
5051struct s2 {int (*f) (double a);};
5052int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5053int argc;
5054char **argv;
5055int
5056main ()
5057{
5058return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063# Don't try gcc -ansi; that turns off useful extensions and
5064# breaks some systems' header files.
5065# AIX -qlanglvl=ansi
5066# Ultrix and OSF/1 -std1
5067# HP-UX 10.20 and later -Ae
5068# HP-UX older versions -Aa -D_HPUX_SOURCE
5069# SVR4 -Xc -D__EXTENSIONS__
5070for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5071do
5072 CC="$ac_save_CC $ac_arg"
5073 rm -f conftest.$ac_objext
5074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5076 ac_status=$?
5077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
49c96104
SE
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5464f5a1
NN
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091 (eval $ac_try) 2>&5
5092 ac_status=$?
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5095 ac_cv_prog_cc_stdc=$ac_arg
5096break
5097else
5098 echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101fi
5102rm -f conftest.err conftest.$ac_objext
5103done
5104rm -f conftest.$ac_ext conftest.$ac_objext
5105CC=$ac_save_CC
5106
5107fi
5108
5109case "x$ac_cv_prog_cc_stdc" in
5110 x|xno)
5111 echo "$as_me:$LINENO: result: none needed" >&5
5112echo "${ECHO_T}none needed" >&6 ;;
5113 *)
5114 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5115echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5116 CC="$CC $ac_cv_prog_cc_stdc" ;;
5117esac
5118
5119# Some people use a C++ compiler to compile C. Since we use `exit',
5120# in C++ we need to declare it. In case someone uses the same compiler
5121# for both compiling C and C++ we need to have the C++ compiler decide
5122# the declaration of exit, since it's the most demanding environment.
5123cat >conftest.$ac_ext <<_ACEOF
5124#ifndef __cplusplus
5125 choke me
5126#endif
5127_ACEOF
5128rm -f conftest.$ac_objext
5129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
49c96104
SE
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
5464f5a1
NN
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 for ac_declaration in \
5151 '' \
5152 'extern "C" void std::exit (int) throw (); using std::exit;' \
5153 'extern "C" void std::exit (int); using std::exit;' \
5154 'extern "C" void exit (int) throw ();' \
5155 'extern "C" void exit (int);' \
5156 'void exit (int);'
5157do
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164$ac_declaration
5165#include <stdlib.h>
5166int
5167main ()
5168{
5169exit (42);
5170 ;
5171 return 0;
5172}
5173_ACEOF
5174rm -f conftest.$ac_objext
5175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176 (eval $ac_compile) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
49c96104
SE
5183 { ac_try='test -z "$ac_c_werror_flag"
5184 || test ! -s conftest.err'
5464f5a1
NN
5185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5186 (eval $ac_try) 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 :
5197else
5198 echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
5201continue
5202fi
5203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5204 cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h. */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h. */
5210$ac_declaration
5211int
5212main ()
5213{
5214exit (42);
5215 ;
5216 return 0;
5217}
5218_ACEOF
5219rm -f conftest.$ac_objext
5220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5221 (eval $ac_compile) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
49c96104
SE
5228 { ac_try='test -z "$ac_c_werror_flag"
5229 || test ! -s conftest.err'
5464f5a1
NN
5230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5231 (eval $ac_try) 2>&5
5232 ac_status=$?
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }; } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237 (eval $ac_try) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 break
5242else
5243 echo "$as_me: failed program was:" >&5
5244sed 's/^/| /' conftest.$ac_ext >&5
5245
5246fi
5247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5248done
5249rm -f conftest*
5250if test -n "$ac_declaration"; then
5251 echo '#ifdef __cplusplus' >>confdefs.h
5252 echo $ac_declaration >>confdefs.h
5253 echo '#endif' >>confdefs.h
252b5132 5254fi
5464f5a1 5255
b3baf5d0 5256else
5464f5a1
NN
5257 echo "$as_me: failed program was:" >&5
5258sed 's/^/| /' conftest.$ac_ext >&5
5259
b3baf5d0 5260fi
5464f5a1
NN
5261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5262ac_ext=c
5263ac_cpp='$CPP $CPPFLAGS'
5264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5267
5464f5a1 5268
4a2a2686
HPN
5269cat >>confdefs.h <<\_ACEOF
5270#define _GNU_SOURCE 1
5271_ACEOF
5272
5273
5274
dcd4b381 5275ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
20e95c23
DJ
5276# If we haven't got the data from the intl directory,
5277# assume NLS is disabled.
5278USE_NLS=no
5279LIBINTL=
5280LIBINTL_DEP=
5281INCINTL=
5282XGETTEXT=
5283GMSGFMT=
5284POSUB=
9d7cbccd
NC
5285
5286if test -f ../intl/config.intl; then
5287 . ../intl/config.intl
20e95c23
DJ
5288fi
5289echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5290echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5291if test x"$USE_NLS" != xyes; then
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
252b5132 5294else
20e95c23
DJ
5295 echo "$as_me:$LINENO: result: yes" >&5
5296echo "${ECHO_T}yes" >&6
5297
5298cat >>confdefs.h <<\_ACEOF
5299#define ENABLE_NLS 1
5300_ACEOF
5301
5302
5303 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5304echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5305 # Look for .po and .gmo files in the source directory.
5306 CATALOGS=
5307 XLINGUAS=
5308 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5309 # If there aren't any .gmo files the shell will give us the
5310 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5311 # weeded out.
5312 case "$cat" in *\**)
5313 continue;;
5314 esac
5315 # The quadruple backslash is collapsed to a double backslash
5316 # by the backticks, then collapsed again by the double quotes,
5317 # leaving us with one backslash in the sed expression (right
5318 # before the dot that mustn't act as a wildcard).
5319 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5320 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5321 # The user is allowed to set LINGUAS to a list of languages to
5322 # install catalogs for. If it's empty that means "all of them."
5323 if test "x$LINGUAS" = x; then
5324 CATALOGS="$CATALOGS $cat"
5325 XLINGUAS="$XLINGUAS $lang"
5326 else
5327 case "$LINGUAS" in *$lang*)
5328 CATALOGS="$CATALOGS $cat"
5329 XLINGUAS="$XLINGUAS $lang"
5330 ;;
5331 esac
5332 fi
5333 done
5334 LINGUAS="$XLINGUAS"
5335 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5336echo "${ECHO_T}$LINGUAS" >&6
5337
5338
5339 DATADIRNAME=share
5340
5341 INSTOBJEXT=.mo
5342
5343 GENCAT=gencat
5344
5345 CATOBJEXT=.gmo
5346
5347fi
5348
5349 MKINSTALLDIRS=
5350 if test -n "$ac_aux_dir"; then
5351 case "$ac_aux_dir" in
5352 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5353 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5354 esac
5355 fi
5356 if test -z "$MKINSTALLDIRS"; then
5357 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5358 fi
5359
5360
5361
5362 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5363echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5364 # Check whether --enable-nls or --disable-nls was given.
5365if test "${enable_nls+set}" = set; then
5366 enableval="$enable_nls"
5367 USE_NLS=$enableval
252b5132 5368else
20e95c23
DJ
5369 USE_NLS=yes
5370fi;
5371 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5372echo "${ECHO_T}$USE_NLS" >&6
5373
5374
5375
5376
5377
5378
5379# Prepare PATH_SEPARATOR.
5380# The user is always right.
5381if test "${PATH_SEPARATOR+set}" != set; then
5382 echo "#! /bin/sh" >conf$$.sh
5383 echo "exit 0" >>conf$$.sh
5384 chmod +x conf$$.sh
5385 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5386 PATH_SEPARATOR=';'
5387 else
5388 PATH_SEPARATOR=:
252b5132 5389 fi
20e95c23
DJ
5390 rm -f conf$$.sh
5391fi
5464f5a1 5392
20e95c23
DJ
5393# Find out how to test for executable files. Don't use a zero-byte file,
5394# as systems may use methods other than mode bits to determine executability.
5395cat >conf$$.file <<_ASEOF
5396#! /bin/sh
5397exit 0
5398_ASEOF
5399chmod +x conf$$.file
5400if test -x conf$$.file >/dev/null 2>&1; then
5401 ac_executable_p="test -x"
5402else
5403 ac_executable_p="test -f"
252b5132 5404fi
20e95c23
DJ
5405rm -f conf$$.file
5406
5407# Extract the first word of "msgfmt", so it can be a program name with args.
5408set dummy msgfmt; ac_word=$2
5409echo "$as_me:$LINENO: checking for $ac_word" >&5
5410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411if test "${ac_cv_path_MSGFMT+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413else
5414 case "$MSGFMT" in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5417 ;;
5418 *)
5419 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5420 for ac_dir in $PATH; do
5421 IFS="$ac_save_IFS"
5422 test -z "$ac_dir" && ac_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5425 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5426 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5427 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5428 break 2
5429 fi
5430 fi
5431 done
5432 done
5433 IFS="$ac_save_IFS"
5434 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5435 ;;
5436esac
252b5132 5437fi
20e95c23
DJ
5438MSGFMT="$ac_cv_path_MSGFMT"
5439if test "$MSGFMT" != ":"; then
5440 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5441echo "${ECHO_T}$MSGFMT" >&6
252b5132 5442else
5464f5a1
NN
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
252b5132
RH
5445fi
5446
20e95c23
DJ
5447 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5448set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
5449echo "$as_me:$LINENO: checking for $ac_word" >&5
5450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20e95c23 5451if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464f5a1 5452 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5453else
20e95c23
DJ
5454 case $GMSGFMT in
5455 [\\/]* | ?:[\\/]*)
5456 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5457 ;;
5458 *)
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464f5a1
NN
5460for as_dir in $PATH
5461do
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20e95c23 5466 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5464f5a1
NN
5467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5469 fi
5470done
5471done
5472
20e95c23
DJ
5473 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5474 ;;
5475esac
252b5132 5476fi
20e95c23
DJ
5477GMSGFMT=$ac_cv_path_GMSGFMT
5478
5479if test -n "$GMSGFMT"; then
5480 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5481echo "${ECHO_T}$GMSGFMT" >&6
252b5132 5482else
5464f5a1
NN
5483 echo "$as_me:$LINENO: result: no" >&5
5484echo "${ECHO_T}no" >&6
b3baf5d0 5485fi
252b5132 5486
20e95c23
DJ
5487
5488
5489# Prepare PATH_SEPARATOR.
5490# The user is always right.
5491if test "${PATH_SEPARATOR+set}" != set; then
5492 echo "#! /bin/sh" >conf$$.sh
5493 echo "exit 0" >>conf$$.sh
5494 chmod +x conf$$.sh
5495 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5496 PATH_SEPARATOR=';'
5497 else
5498 PATH_SEPARATOR=:
5499 fi
5500 rm -f conf$$.sh
252b5132 5501fi
5464f5a1 5502
20e95c23
DJ
5503# Find out how to test for executable files. Don't use a zero-byte file,
5504# as systems may use methods other than mode bits to determine executability.
5505cat >conf$$.file <<_ASEOF
5506#! /bin/sh
5507exit 0
5508_ASEOF
5509chmod +x conf$$.file
5510if test -x conf$$.file >/dev/null 2>&1; then
5511 ac_executable_p="test -x"
5512else
5513 ac_executable_p="test -f"
6be7c12c 5514fi
20e95c23
DJ
5515rm -f conf$$.file
5516
5517# Extract the first word of "xgettext", so it can be a program name with args.
5518set dummy xgettext; ac_word=$2
5519echo "$as_me:$LINENO: checking for $ac_word" >&5
5520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521if test "${ac_cv_path_XGETTEXT+set}" = set; then
5464f5a1 5522 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5523else
20e95c23
DJ
5524 case "$XGETTEXT" in
5525 [\\/]* | ?:[\\/]*)
5526 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5527 ;;
5528 *)
5529 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5530 for ac_dir in $PATH; do
5531 IFS="$ac_save_IFS"
5532 test -z "$ac_dir" && ac_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5535 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5536 (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
5537 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5538 break 2
5539 fi
5540 fi
5541 done
5542 done
5543 IFS="$ac_save_IFS"
5544 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5545 ;;
5546esac
5547fi
5548XGETTEXT="$ac_cv_path_XGETTEXT"
5549if test "$XGETTEXT" != ":"; then
5550 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5551echo "${ECHO_T}$XGETTEXT" >&6
5552else
5553 echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6
5555fi
5556
5557 rm -f messages.po
5558
5559
5560# Prepare PATH_SEPARATOR.
5561# The user is always right.
5562if test "${PATH_SEPARATOR+set}" != set; then
5563 echo "#! /bin/sh" >conf$$.sh
5564 echo "exit 0" >>conf$$.sh
5565 chmod +x conf$$.sh
5566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5567 PATH_SEPARATOR=';'
5464f5a1 5568 else
20e95c23 5569 PATH_SEPARATOR=:
5464f5a1 5570 fi
20e95c23 5571 rm -f conf$$.sh
6be7c12c 5572fi
5464f5a1 5573
20e95c23
DJ
5574# Find out how to test for executable files. Don't use a zero-byte file,
5575# as systems may use methods other than mode bits to determine executability.
5576cat >conf$$.file <<_ASEOF
5577#! /bin/sh
5578exit 0
5579_ASEOF
5580chmod +x conf$$.file
5581if test -x conf$$.file >/dev/null 2>&1; then
5582 ac_executable_p="test -x"
5583else
5584 ac_executable_p="test -f"
5464f5a1 5585fi
20e95c23 5586rm -f conf$$.file
5464f5a1 5587
20e95c23
DJ
5588# Extract the first word of "msgmerge", so it can be a program name with args.
5589set dummy msgmerge; ac_word=$2
5590echo "$as_me:$LINENO: checking for $ac_word" >&5
5591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5592if test "${ac_cv_path_MSGMERGE+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5594else
20e95c23
DJ
5595 case "$MSGMERGE" in
5596 [\\/]* | ?:[\\/]*)
5597 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5598 ;;
5599 *)
5600 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5601 for ac_dir in $PATH; do
5602 IFS="$ac_save_IFS"
5603 test -z "$ac_dir" && ac_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5606 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5607 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5608 break 2
5609 fi
5610 fi
5611 done
5464f5a1 5612 done
20e95c23
DJ
5613 IFS="$ac_save_IFS"
5614 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5615 ;;
5616esac
5464f5a1 5617fi
20e95c23
DJ
5618MSGMERGE="$ac_cv_path_MSGMERGE"
5619if test "$MSGMERGE" != ":"; then
5620 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5621echo "${ECHO_T}$MSGMERGE" >&6
252b5132 5622else
20e95c23
DJ
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5464f5a1 5625fi
5464f5a1 5626
5464f5a1 5627
20e95c23
DJ
5628 if test "$GMSGFMT" != ":"; then
5629 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5630 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5631 : ;
5632 else
5633 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5634 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5635echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5636 GMSGFMT=":"
5637 fi
5464f5a1 5638 fi
5464f5a1 5639
20e95c23
DJ
5640 if test "$XGETTEXT" != ":"; then
5641 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5642 (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
5643 : ;
5644 else
5645 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5646echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5647 XGETTEXT=":"
5648 fi
5649 rm -f messages.po
5650 fi
6be7c12c 5651
20e95c23 5652 ac_config_commands="$ac_config_commands default-1"
5464f5a1 5653
5464f5a1
NN
5654
5655
20e95c23
DJ
5656# Permit host specific settings.
5657. ${srcdir}/configure.host
5464f5a1 5658
ac48eca1 5659
20e95c23
DJ
5660# Find a good install program. We prefer a C program (faster),
5661# so one script is as good as another. But avoid the broken or
5662# incompatible versions:
5663# SysV /etc/install, /usr/sbin/install
5664# SunOS /usr/etc/install
5665# IRIX /sbin/install
5666# AIX /bin/install
5667# AmigaOS /C/install, which installs bootblocks on floppy discs
5668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5671# OS/2's system install, which has a completely different semantic
5672# ./install, which can be erroneously created by make from ./install.sh.
5673echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5674echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5675if test -z "$INSTALL"; then
5676if test "${ac_cv_path_install+set}" = set; then
5464f5a1 5677 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5678else
20e95c23
DJ
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680for as_dir in $PATH
5681do
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 # Account for people who put trailing slashes in PATH elements.
5685case $as_dir/ in
5686 ./ | .// | /cC/* | \
5687 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5688 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5689 /usr/ucb/* ) ;;
5464f5a1 5690 *)
20e95c23
DJ
5691 # OSF1 and SCO ODT 3.0 have their own names for install.
5692 # Don't use installbsd from OSF since it installs stuff as root
5693 # by default.
5694 for ac_prog in ginstall scoinst install; do
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5697 if test $ac_prog = install &&
5698 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5699 # AIX install. It has an incompatible calling convention.
5700 :
5701 elif test $ac_prog = install &&
5702 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5703 # program-specific install script used by HP pwplus--don't use.
5704 :
5705 else
5706 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5707 break 3
5708 fi
5709 fi
5710 done
5711 done
5464f5a1
NN
5712 ;;
5713esac
252b5132
RH
5714done
5715
20e95c23 5716
252b5132 5717fi
20e95c23
DJ
5718 if test "${ac_cv_path_install+set}" = set; then
5719 INSTALL=$ac_cv_path_install
5720 else
5721 # As a last resort, use the slow shell script. We don't cache a
5722 # path for INSTALL within a source directory, because that will
5723 # break other packages using the cache if that directory is
5724 # removed, or if the path is relative.
5725 INSTALL=$ac_install_sh
5726 fi
252b5132 5727fi
20e95c23
DJ
5728echo "$as_me:$LINENO: result: $INSTALL" >&5
5729echo "${ECHO_T}$INSTALL" >&6
5464f5a1 5730
20e95c23
DJ
5731# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5732# It thinks the first close brace ends the variable substitution.
5733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
252b5132 5734
20e95c23 5735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6be7c12c 5736
20e95c23 5737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
252b5132 5738
252b5132 5739
20e95c23
DJ
5740BFD_HOST_64BIT_LONG=0
5741BFD_HOST_LONG_LONG=0
5742BFD_HOST_64_BIT_DEFINED=0
5743BFD_HOST_64_BIT=
5744BFD_HOST_U_64_BIT=
5464f5a1 5745
20e95c23
DJ
5746echo "$as_me:$LINENO: checking for long long" >&5
5747echo $ECHO_N "checking for long long... $ECHO_C" >&6
5748if test "${bfd_cv_has_long_long+set}" = set; then
5464f5a1 5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5464f5a1 5750else
20e95c23 5751 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h. */
20e95c23
DJ
5757
5758int
5759main ()
5760{
5761unsigned long long ll = 18446744073709551615ULL;
5762 ;
5763 return 0;
5764}
5464f5a1
NN
5765_ACEOF
5766rm -f conftest.$ac_objext
5767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
49c96104
SE
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5464f5a1
NN
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
20e95c23 5788 bfd_cv_has_long_long=yes
5464f5a1
NN
5789else
5790 echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
20e95c23 5793bfd_cv_has_long_long=no
5464f5a1
NN
5794fi
5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23 5796fi
5464f5a1 5797
20e95c23
DJ
5798echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
5799echo "${ECHO_T}$bfd_cv_has_long_long" >&6
5800if test $bfd_cv_has_long_long = yes; then
5801 BFD_HOST_LONG_LONG=1
5802 ac_ext=c
5803ac_cpp='$CPP $CPPFLAGS'
5804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5808echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5809# On Suns, sometimes $CPP names a directory.
5810if test -n "$CPP" && test -d "$CPP"; then
5811 CPP=
5812fi
5813if test -z "$CPP"; then
5814 if test "${ac_cv_prog_CPP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 # Double quotes because CPP needs to be expanded
5818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5819 do
5820 ac_preproc_ok=false
5821for ac_c_preproc_warn_flag in '' yes
5822do
5823 # Use a header file that comes with gcc, so configuring glibc
5824 # with a fresh cross-compiler works.
5825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 # <limits.h> exists even on freestanding compilers.
5827 # On the NeXT, cc -E runs the code through the compiler's parser,
5828 # not just through cpp. "Syntax error" is here to catch this case.
5829 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
5830/* confdefs.h. */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h. */
20e95c23
DJ
5835#ifdef __STDC__
5836# include <limits.h>
5837#else
5838# include <assert.h>
5839#endif
5840 Syntax error
5464f5a1
NN
5841_ACEOF
5842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } >/dev/null; then
5850 if test -s conftest.err; then
5851 ac_cpp_err=$ac_c_preproc_warn_flag
5852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5853 else
5854 ac_cpp_err=
5855 fi
252b5132 5856else
5464f5a1 5857 ac_cpp_err=yes
252b5132 5858fi
5464f5a1 5859if test -z "$ac_cpp_err"; then
20e95c23 5860 :
5464f5a1
NN
5861else
5862 echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
20e95c23
DJ
5865 # Broken: fails on valid input.
5866continue
252b5132 5867fi
5464f5a1 5868rm -f conftest.err conftest.$ac_ext
5464f5a1 5869
20e95c23
DJ
5870 # OK, works on sane cases. Now check whether non-existent headers
5871 # can be detected and how.
5464f5a1
NN
5872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
20e95c23 5878#include <ac_nonexistent.h>
5464f5a1 5879_ACEOF
20e95c23
DJ
5880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1 5882 ac_status=$?
20e95c23
DJ
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5464f5a1 5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5887 (exit $ac_status); } >/dev/null; then
5888 if test -s conftest.err; then
5889 ac_cpp_err=$ac_c_preproc_warn_flag
5890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5891 else
5892 ac_cpp_err=
5893 fi
5894else
5895 ac_cpp_err=yes
5896fi
5897if test -z "$ac_cpp_err"; then
5898 # Broken: success on invalid input.
5899continue
252b5132 5900else
5464f5a1
NN
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
20e95c23
DJ
5904 # Passes both tests.
5905ac_preproc_ok=:
5906break
252b5132 5907fi
20e95c23 5908rm -f conftest.err conftest.$ac_ext
252b5132 5909
20e95c23
DJ
5910done
5911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5912rm -f conftest.err conftest.$ac_ext
5913if $ac_preproc_ok; then
5914 break
5915fi
5464f5a1 5916
20e95c23
DJ
5917 done
5918 ac_cv_prog_CPP=$CPP
252b5132 5919
252b5132 5920fi
20e95c23 5921 CPP=$ac_cv_prog_CPP
252b5132 5922else
20e95c23 5923 ac_cv_prog_CPP=$CPP
252b5132 5924fi
20e95c23
DJ
5925echo "$as_me:$LINENO: result: $CPP" >&5
5926echo "${ECHO_T}$CPP" >&6
5927ac_preproc_ok=false
5928for ac_c_preproc_warn_flag in '' yes
252b5132 5929do
20e95c23
DJ
5930 # Use a header file that comes with gcc, so configuring glibc
5931 # with a fresh cross-compiler works.
5932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5933 # <limits.h> exists even on freestanding compilers.
5934 # On the NeXT, cc -E runs the code through the compiler's parser,
5935 # not just through cpp. "Syntax error" is here to catch this case.
5464f5a1
NN
5936 cat >conftest.$ac_ext <<_ACEOF
5937/* confdefs.h. */
5938_ACEOF
5939cat confdefs.h >>conftest.$ac_ext
5940cat >>conftest.$ac_ext <<_ACEOF
5941/* end confdefs.h. */
5464f5a1
NN
5942#ifdef __STDC__
5943# include <limits.h>
5944#else
5945# include <assert.h>
5946#endif
20e95c23 5947 Syntax error
5464f5a1 5948_ACEOF
20e95c23
DJ
5949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464f5a1
NN
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
5956 (exit $ac_status); } >/dev/null; then
5957 if test -s conftest.err; then
5958 ac_cpp_err=$ac_c_preproc_warn_flag
5959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5960 else
5961 ac_cpp_err=
5962 fi
5963else
5964 ac_cpp_err=yes
5965fi
5966if test -z "$ac_cpp_err"; then
5967 :
5464f5a1
NN
5968else
5969 echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
20e95c23
DJ
5972 # Broken: fails on valid input.
5973continue
5464f5a1 5974fi
20e95c23 5975rm -f conftest.err conftest.$ac_ext
252b5132 5976
20e95c23
DJ
5977 # OK, works on sane cases. Now check whether non-existent headers
5978 # can be detected and how.
5979 cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h. */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h. */
5985#include <ac_nonexistent.h>
5986_ACEOF
5987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null; then
5995 if test -s conftest.err; then
5996 ac_cpp_err=$ac_c_preproc_warn_flag
5997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5998 else
5999 ac_cpp_err=
6000 fi
6001else
6002 ac_cpp_err=yes
252b5132 6003fi
20e95c23
DJ
6004if test -z "$ac_cpp_err"; then
6005 # Broken: success on invalid input.
6006continue
252b5132 6007else
20e95c23
DJ
6008 echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6010
20e95c23
DJ
6011 # Passes both tests.
6012ac_preproc_ok=:
6013break
252b5132 6014fi
20e95c23 6015rm -f conftest.err conftest.$ac_ext
5464f5a1 6016
20e95c23
DJ
6017done
6018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6019rm -f conftest.err conftest.$ac_ext
6020if $ac_preproc_ok; then
6021 :
252b5132 6022else
20e95c23
DJ
6023 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6024See \`config.log' for more details." >&5
6025echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6026See \`config.log' for more details." >&2;}
6027 { (exit 1); exit 1; }; }
252b5132
RH
6028fi
6029
20e95c23
DJ
6030ac_ext=c
6031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036
6037echo "$as_me:$LINENO: checking for egrep" >&5
6038echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6039if test "${ac_cv_prog_egrep+set}" = set; then
5464f5a1 6040 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6041else
20e95c23
DJ
6042 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6043 then ac_cv_prog_egrep='grep -E'
6044 else ac_cv_prog_egrep='egrep'
252b5132 6045 fi
252b5132 6046fi
20e95c23
DJ
6047echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6048echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6049 EGREP=$ac_cv_prog_egrep
6050
252b5132 6051
20e95c23
DJ
6052echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6053echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6054if test "${ac_cv_header_stdc+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056else
6057 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
20e95c23
DJ
6063#include <stdlib.h>
6064#include <stdarg.h>
6065#include <string.h>
6066#include <float.h>
252b5132 6067
5464f5a1
NN
6068int
6069main ()
6070{
20e95c23 6071
5464f5a1
NN
6072 ;
6073 return 0;
6074}
6075_ACEOF
20e95c23
DJ
6076rm -f conftest.$ac_objext
6077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
49c96104
SE
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
5464f5a1
NN
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
20e95c23 6092 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
20e95c23 6098 ac_cv_header_stdc=yes
252b5132 6099else
5464f5a1
NN
6100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
20e95c23 6103ac_cv_header_stdc=no
252b5132 6104fi
20e95c23 6105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6106
20e95c23
DJ
6107if test $ac_cv_header_stdc = yes; then
6108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6109 cat >conftest.$ac_ext <<_ACEOF
6110/* confdefs.h. */
6111_ACEOF
6112cat confdefs.h >>conftest.$ac_ext
6113cat >>conftest.$ac_ext <<_ACEOF
6114/* end confdefs.h. */
6115#include <string.h>
5464f5a1 6116
20e95c23
DJ
6117_ACEOF
6118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119 $EGREP "memchr" >/dev/null 2>&1; then
6120 :
252b5132 6121else
20e95c23 6122 ac_cv_header_stdc=no
252b5132 6123fi
20e95c23 6124rm -f conftest*
252b5132 6125
252b5132
RH
6126fi
6127
20e95c23
DJ
6128if test $ac_cv_header_stdc = yes; then
6129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6130 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6131/* confdefs.h. */
6132_ACEOF
6133cat confdefs.h >>conftest.$ac_ext
6134cat >>conftest.$ac_ext <<_ACEOF
6135/* end confdefs.h. */
20e95c23
DJ
6136#include <stdlib.h>
6137
5464f5a1 6138_ACEOF
20e95c23
DJ
6139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6140 $EGREP "free" >/dev/null 2>&1; then
6141 :
5464f5a1 6142else
20e95c23
DJ
6143 ac_cv_header_stdc=no
6144fi
6145rm -f conftest*
5464f5a1 6146
5464f5a1 6147fi
5464f5a1 6148
20e95c23
DJ
6149if test $ac_cv_header_stdc = yes; then
6150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6151 if test "$cross_compiling" = yes; then
6152 :
6153else
6154 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
20e95c23
DJ
6160#include <ctype.h>
6161#if ((' ' & 0x0FF) == 0x020)
6162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6164#else
6165# define ISLOWER(c) \
6166 (('a' <= (c) && (c) <= 'i') \
6167 || ('j' <= (c) && (c) <= 'r') \
6168 || ('s' <= (c) && (c) <= 'z'))
6169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6170#endif
6171
6172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6173int
6174main ()
6175{
6176 int i;
6177 for (i = 0; i < 256; i++)
6178 if (XOR (islower (i), ISLOWER (i))
6179 || toupper (i) != TOUPPER (i))
6180 exit(2);
6181 exit (0);
6182}
5464f5a1 6183_ACEOF
20e95c23
DJ
6184rm -f conftest$ac_exeext
6185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
5464f5a1 6187 ac_status=$?
5464f5a1 6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23
DJ
6189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; }; then
6195 :
5464f5a1 6196else
20e95c23
DJ
6197 echo "$as_me: program exited with status $ac_status" >&5
6198echo "$as_me: failed program was:" >&5
5464f5a1
NN
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
20e95c23
DJ
6201( exit $ac_status )
6202ac_cv_header_stdc=no
5464f5a1 6203fi
20e95c23 6204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5464f5a1 6205fi
252b5132 6206fi
252b5132 6207fi
20e95c23
DJ
6208echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6209echo "${ECHO_T}$ac_cv_header_stdc" >&6
6210if test $ac_cv_header_stdc = yes; then
252b5132 6211
20e95c23
DJ
6212cat >>confdefs.h <<\_ACEOF
6213#define STDC_HEADERS 1
6214_ACEOF
6be7c12c 6215
20e95c23 6216fi
5464f5a1 6217
20e95c23 6218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
252b5132 6219
5464f5a1 6220
252b5132 6221
5464f5a1 6222
252b5132 6223
5464f5a1 6224
252b5132 6225
252b5132 6226
6be7c12c 6227
20e95c23
DJ
6228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6229 inttypes.h stdint.h unistd.h
5464f5a1 6230do
20e95c23
DJ
6231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6232echo "$as_me:$LINENO: checking for $ac_header" >&5
6233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6234if eval "test \"\${$as_ac_Header+set}\" = set"; then
5464f5a1 6235 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 6236else
5464f5a1
NN
6237 cat >conftest.$ac_ext <<_ACEOF
6238/* confdefs.h. */
6239_ACEOF
6240cat confdefs.h >>conftest.$ac_ext
6241cat >>conftest.$ac_ext <<_ACEOF
6242/* end confdefs.h. */
20e95c23 6243$ac_includes_default
ec317fb1 6244
20e95c23 6245#include <$ac_header>
5464f5a1
NN
6246_ACEOF
6247rm -f conftest.$ac_objext
6248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6249 (eval $ac_compile) 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
49c96104
SE
6256 { ac_try='test -z "$ac_c_werror_flag"
6257 || test ! -s conftest.err'
5464f5a1
NN
6258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 (eval $ac_try) 2>&5
6260 ac_status=$?
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); }; } &&
6263 { ac_try='test -s conftest.$ac_objext'
6264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 (eval $ac_try) 2>&5
6266 ac_status=$?
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); }; }; then
20e95c23 6269 eval "$as_ac_Header=yes"
ec317fb1 6270else
5464f5a1
NN
6271 echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
20e95c23 6274eval "$as_ac_Header=no"
ec317fb1 6275fi
5464f5a1 6276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20e95c23
DJ
6277fi
6278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6280if test `eval echo '${'$as_ac_Header'}'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6283_ACEOF
6284
ec317fb1
ILT
6285fi
6286
20e95c23
DJ
6287done
6288
6289
6290echo "$as_me:$LINENO: checking for long long" >&5
2ba49b59
KC
6291echo $ECHO_N "checking for long long... $ECHO_C" >&6
6292if test "${ac_cv_type_long_long+set}" = set; then
5464f5a1 6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6294else
5464f5a1
NN
6295 cat >conftest.$ac_ext <<_ACEOF
6296/* confdefs.h. */
6297_ACEOF
6298cat confdefs.h >>conftest.$ac_ext
6299cat >>conftest.$ac_ext <<_ACEOF
6300/* end confdefs.h. */
2ba49b59 6301$ac_includes_default
5464f5a1
NN
6302int
6303main ()
6304{
2ba49b59
KC
6305if ((long long *) 0)
6306 return 0;
6307if (sizeof (long long))
6308 return 0;
5464f5a1
NN
6309 ;
6310 return 0;
6311}
6312_ACEOF
6313rm -f conftest.$ac_objext
6314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315 (eval $ac_compile) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
49c96104
SE
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
5464f5a1
NN
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
2ba49b59 6335 ac_cv_type_long_long=yes
6726e1ea 6336else
5464f5a1
NN
6337 echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
2ba49b59 6340ac_cv_type_long_long=no
6726e1ea 6341fi
5464f5a1 6342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea 6343fi
2ba49b59
KC
6344echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6345echo "${ECHO_T}$ac_cv_type_long_long" >&6
6726e1ea 6346
2ba49b59
KC
6347echo "$as_me:$LINENO: checking size of long long" >&5
6348echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6349if test "${ac_cv_sizeof_long_long+set}" = set; then
5464f5a1 6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea 6351else
2ba49b59
KC
6352 if test "$ac_cv_type_long_long" = yes; then
6353 # The cast to unsigned long works around a bug in the HP C Compiler
6354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6356 # This bug is HP SR number 8606223364.
6357 if test "$cross_compiling" = yes; then
6358 # Depending upon the size, compute the lo and hi bounds.
6359cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6360/* confdefs.h. */
6361_ACEOF
6362cat confdefs.h >>conftest.$ac_ext
6363cat >>conftest.$ac_ext <<_ACEOF
6364/* end confdefs.h. */
2ba49b59
KC
6365$ac_includes_default
6366int
6367main ()
6368{
6369static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6370test_array [0] = 0
6726e1ea 6371
2ba49b59
KC
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext
6377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
49c96104
SE
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
2ba49b59
KC
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_lo=0 ac_mid=0
6399 while :; do
6400 cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h. */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h. */
6406$ac_includes_default
5464f5a1
NN
6407int
6408main ()
6409{
2ba49b59
KC
6410static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6411test_array [0] = 0
6412
5464f5a1
NN
6413 ;
6414 return 0;
6415}
6416_ACEOF
6417rm -f conftest.$ac_objext
6418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
49c96104
SE
6426 { ac_try='test -z "$ac_c_werror_flag"
6427 || test ! -s conftest.err'
5464f5a1
NN
6428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 (eval $ac_try) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435 (eval $ac_try) 2>&5
6436 ac_status=$?
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
2ba49b59 6439 ac_hi=$ac_mid; break
6726e1ea 6440else
5464f5a1
NN
6441 echo "$as_me: failed program was:" >&5
6442sed 's/^/| /' conftest.$ac_ext >&5
6443
2ba49b59
KC
6444ac_lo=`expr $ac_mid + 1`
6445 if test $ac_lo -le $ac_mid; then
6446 ac_lo= ac_hi=
6447 break
6448 fi
6449 ac_mid=`expr 2 '*' $ac_mid + 1`
6726e1ea 6450fi
5464f5a1 6451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59 6452 done
252b5132 6453else
2ba49b59
KC
6454 echo "$as_me: failed program was:" >&5
6455sed 's/^/| /' conftest.$ac_ext >&5
5464f5a1 6456
5464f5a1
NN
6457cat >conftest.$ac_ext <<_ACEOF
6458/* confdefs.h. */
6459_ACEOF
6460cat confdefs.h >>conftest.$ac_ext
6461cat >>conftest.$ac_ext <<_ACEOF
6462/* end confdefs.h. */
6463$ac_includes_default
2ba49b59
KC
6464int
6465main ()
6466{
6467static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6468test_array [0] = 0
6469
6470 ;
6471 return 0;
6472}
5464f5a1
NN
6473_ACEOF
6474rm -f conftest.$ac_objext
6475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476 (eval $ac_compile) 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
49c96104
SE
6483 { ac_try='test -z "$ac_c_werror_flag"
6484 || test ! -s conftest.err'
5464f5a1
NN
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486 (eval $ac_try) 2>&5
6487 ac_status=$?
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; } &&
6490 { ac_try='test -s conftest.$ac_objext'
6491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 (eval $ac_try) 2>&5
6493 ac_status=$?
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); }; }; then
2ba49b59
KC
6496 ac_hi=-1 ac_mid=-1
6497 while :; do
6498 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
2ba49b59
KC
6504$ac_includes_default
6505int
6506main ()
6507{
6508static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6509test_array [0] = 0
6510
6511 ;
6512 return 0;
6513}
5464f5a1 6514_ACEOF
2ba49b59
KC
6515rm -f conftest.$ac_objext
6516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 6523 (exit $ac_status); } &&
49c96104
SE
6524 { ac_try='test -z "$ac_c_werror_flag"
6525 || test ! -s conftest.err'
2ba49b59
KC
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; } &&
6531 { ac_try='test -s conftest.$ac_objext'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_lo=$ac_mid; break
252b5132 6538else
2ba49b59
KC
6539 echo "$as_me: failed program was:" >&5
6540sed 's/^/| /' conftest.$ac_ext >&5
6541
6542ac_hi=`expr '(' $ac_mid ')' - 1`
6543 if test $ac_mid -le $ac_hi; then
6544 ac_lo= ac_hi=
6545 break
6546 fi
6547 ac_mid=`expr 2 '*' $ac_mid`
252b5132 6548fi
2ba49b59
KC
6549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 done
5464f5a1
NN
6551else
6552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
2ba49b59 6555ac_lo= ac_hi=
252b5132 6556fi
2ba49b59
KC
6557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558fi
6559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6560# Binary search between lo and hi bounds.
6561while test "x$ac_lo" != "x$ac_hi"; do
6562 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6563 cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h. */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h. */
6569$ac_includes_default
6570int
6571main ()
6572{
6573static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6574test_array [0] = 0
5464f5a1 6575
2ba49b59
KC
6576 ;
6577 return 0;
6578}
5464f5a1
NN
6579_ACEOF
6580rm -f conftest.$ac_objext
6581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>conftest.er1
6583 ac_status=$?
6584 grep -v '^ *+' conftest.er1 >conftest.err
6585 rm -f conftest.er1
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } &&
49c96104
SE
6589 { ac_try='test -z "$ac_c_werror_flag"
6590 || test ! -s conftest.err'
5464f5a1
NN
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; } &&
6596 { ac_try='test -s conftest.$ac_objext'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
2ba49b59 6602 ac_hi=$ac_mid
5464f5a1
NN
6603else
6604 echo "$as_me: failed program was:" >&5
6605sed 's/^/| /' conftest.$ac_ext >&5
6606
2ba49b59 6607ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1
NN
6608fi
6609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2ba49b59
KC
6610done
6611case $ac_lo in
6612?*) ac_cv_sizeof_long_long=$ac_lo;;
6613'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6614See \`config.log' for more details." >&5
6615echo "$as_me: error: cannot compute sizeof (long long), 77
6616See \`config.log' for more details." >&2;}
6617 { (exit 1); exit 1; }; } ;;
6618esac
6619else
6620 if test "$cross_compiling" = yes; then
49c96104
SE
6621 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6622See \`config.log' for more details." >&5
6623echo "$as_me: error: cannot run test program while cross compiling
6624See \`config.log' for more details." >&2;}
2ba49b59
KC
6625 { (exit 1); exit 1; }; }
6626else
6627 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6628/* confdefs.h. */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h. */
2ba49b59
KC
6633$ac_includes_default
6634long longval () { return (long) (sizeof (long long)); }
6635unsigned long ulongval () { return (long) (sizeof (long long)); }
6636#include <stdio.h>
6637#include <stdlib.h>
6638int
6639main ()
6640{
6641
6642 FILE *f = fopen ("conftest.val", "w");
6643 if (! f)
6644 exit (1);
6645 if (((long) (sizeof (long long))) < 0)
6646 {
6647 long i = longval ();
6648 if (i != ((long) (sizeof (long long))))
6649 exit (1);
6650 fprintf (f, "%ld\n", i);
6651 }
6652 else
6653 {
6654 unsigned long i = ulongval ();
6655 if (i != ((long) (sizeof (long long))))
6656 exit (1);
6657 fprintf (f, "%lu\n", i);
6658 }
6659 exit (ferror (f) || fclose (f) != 0);
6660
6661 ;
6662 return 0;
6663}
5464f5a1 6664_ACEOF
2ba49b59
KC
6665rm -f conftest$ac_exeext
6666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>&5
5464f5a1 6668 ac_status=$?
5464f5a1 6669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59
KC
6670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6676 ac_cv_sizeof_long_long=`cat conftest.val`
5464f5a1 6677else
2ba49b59
KC
6678 echo "$as_me: program exited with status $ac_status" >&5
6679echo "$as_me: failed program was:" >&5
5464f5a1
NN
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
2ba49b59
KC
6682( exit $ac_status )
6683{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6684See \`config.log' for more details." >&5
6685echo "$as_me: error: cannot compute sizeof (long long), 77
6686See \`config.log' for more details." >&2;}
6687 { (exit 1); exit 1; }; }
252b5132 6688fi
2ba49b59
KC
6689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6690fi
6691fi
6692rm -f conftest.val
6be7c12c 6693else
2ba49b59 6694 ac_cv_sizeof_long_long=0
5464f5a1 6695fi
5464f5a1 6696fi
2ba49b59
KC
6697echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6698echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6699cat >>confdefs.h <<_ACEOF
6700#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1
NN
6701_ACEOF
6702
5464f5a1 6703
2ba49b59 6704fi
252b5132 6705
2ba49b59
KC
6706echo "$as_me:$LINENO: checking for long" >&5
6707echo $ECHO_N "checking for long... $ECHO_C" >&6
6708if test "${ac_cv_type_long+set}" = set; then
5464f5a1
NN
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
2ba49b59 6717$ac_includes_default
5464f5a1
NN
6718int
6719main ()
6720{
2ba49b59
KC
6721if ((long *) 0)
6722 return 0;
6723if (sizeof (long))
6724 return 0;
5464f5a1
NN
6725 ;
6726 return 0;
6727}
6728_ACEOF
6729rm -f conftest.$ac_objext
6730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731 (eval $ac_compile) 2>conftest.er1
6732 ac_status=$?
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
49c96104
SE
6738 { ac_try='test -z "$ac_c_werror_flag"
6739 || test ! -s conftest.err'
5464f5a1
NN
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
2ba49b59 6751 ac_cv_type_long=yes
252b5132 6752else
5464f5a1
NN
6753 echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
2ba49b59 6756ac_cv_type_long=no
252b5132 6757fi
5464f5a1 6758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 6759fi
2ba49b59
KC
6760echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6761echo "${ECHO_T}$ac_cv_type_long" >&6
5464f5a1 6762
2ba49b59
KC
6763echo "$as_me:$LINENO: checking size of long" >&5
6764echo $ECHO_N "checking size of long... $ECHO_C" >&6
6765if test "${ac_cv_sizeof_long+set}" = set; then
5464f5a1
NN
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6767else
2ba49b59
KC
6768 if test "$ac_cv_type_long" = yes; then
6769 # The cast to unsigned long works around a bug in the HP C Compiler
6770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6772 # This bug is HP SR number 8606223364.
6773 if test "$cross_compiling" = yes; then
6774 # Depending upon the size, compute the lo and hi bounds.
6775cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6776/* confdefs.h. */
6777_ACEOF
6778cat confdefs.h >>conftest.$ac_ext
6779cat >>conftest.$ac_ext <<_ACEOF
6780/* end confdefs.h. */
2ba49b59 6781$ac_includes_default
5464f5a1
NN
6782int
6783main ()
6784{
2ba49b59
KC
6785static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6786test_array [0] = 0
6787
5464f5a1
NN
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext
6793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6794 (eval $ac_compile) 2>conftest.er1
6795 ac_status=$?
6796 grep -v '^ *+' conftest.er1 >conftest.err
6797 rm -f conftest.er1
6798 cat conftest.err >&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
49c96104
SE
6801 { ac_try='test -z "$ac_c_werror_flag"
6802 || test ! -s conftest.err'
5464f5a1
NN
6803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804 (eval $ac_try) 2>&5
6805 ac_status=$?
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); }; } &&
6808 { ac_try='test -s conftest.$ac_objext'
6809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6810 (eval $ac_try) 2>&5
6811 ac_status=$?
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
2ba49b59
KC
6814 ac_lo=0 ac_mid=0
6815 while :; do
6816 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6817/* confdefs.h. */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h. */
2ba49b59 6822$ac_includes_default
5464f5a1
NN
6823int
6824main ()
6825{
2ba49b59
KC
6826static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6827test_array [0] = 0
6828
5464f5a1
NN
6829 ;
6830 return 0;
6831}
6832_ACEOF
2ba49b59
KC
6833rm -f conftest.$ac_objext
6834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
49c96104
SE
6842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
5464f5a1
NN
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
2ba49b59 6849 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
2ba49b59 6855 ac_hi=$ac_mid; break
5464f5a1
NN
6856else
6857 echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
2ba49b59
KC
6860ac_lo=`expr $ac_mid + 1`
6861 if test $ac_lo -le $ac_mid; then
6862 ac_lo= ac_hi=
6863 break
6864 fi
6865 ac_mid=`expr 2 '*' $ac_mid + 1`
5464f5a1 6866fi
2ba49b59
KC
6867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6868 done
6869else
6870 echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
6873cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6874/* confdefs.h. */
6875_ACEOF
6876cat confdefs.h >>conftest.$ac_ext
6877cat >>conftest.$ac_ext <<_ACEOF
6878/* end confdefs.h. */
2ba49b59 6879$ac_includes_default
5464f5a1
NN
6880int
6881main ()
6882{
2ba49b59
KC
6883static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6884test_array [0] = 0
6885
5464f5a1
NN
6886 ;
6887 return 0;
6888}
6889_ACEOF
2ba49b59
KC
6890rm -f conftest.$ac_objext
6891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6893 ac_status=$?
6894 grep -v '^ *+' conftest.er1 >conftest.err
6895 rm -f conftest.er1
6896 cat conftest.err >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); } &&
49c96104
SE
6899 { ac_try='test -z "$ac_c_werror_flag"
6900 || test ! -s conftest.err'
5464f5a1
NN
6901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902 (eval $ac_try) 2>&5
6903 ac_status=$?
6904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905 (exit $ac_status); }; } &&
2ba49b59 6906 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908 (eval $ac_try) 2>&5
6909 ac_status=$?
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
2ba49b59
KC
6912 ac_hi=-1 ac_mid=-1
6913 while :; do
6914 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6915/* confdefs.h. */
6916_ACEOF
6917cat confdefs.h >>conftest.$ac_ext
6918cat >>conftest.$ac_ext <<_ACEOF
6919/* end confdefs.h. */
2ba49b59 6920$ac_includes_default
5464f5a1
NN
6921int
6922main ()
6923{
2ba49b59
KC
6924static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6925test_array [0] = 0
6926
5464f5a1
NN
6927 ;
6928 return 0;
6929}
6930_ACEOF
2ba49b59
KC
6931rm -f conftest.$ac_objext
6932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
49c96104
SE
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
5464f5a1
NN
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
2ba49b59 6947 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
2ba49b59 6953 ac_lo=$ac_mid; break
5464f5a1
NN
6954else
6955 echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
2ba49b59
KC
6958ac_hi=`expr '(' $ac_mid ')' - 1`
6959 if test $ac_mid -le $ac_hi; then
6960 ac_lo= ac_hi=
6961 break
6962 fi
6963 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 6964fi
2ba49b59
KC
6965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6966 done
6967else
6968 echo "$as_me: failed program was:" >&5
6969sed 's/^/| /' conftest.$ac_ext >&5
6970
6971ac_lo= ac_hi=
6972fi
6973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6974fi
6975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976# Binary search between lo and hi bounds.
6977while test "x$ac_lo" != "x$ac_hi"; do
6978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6979 cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
6980/* confdefs.h. */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h. */
2ba49b59 6985$ac_includes_default
5464f5a1
NN
6986int
6987main ()
6988{
2ba49b59
KC
6989static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6990test_array [0] = 0
6991
5464f5a1
NN
6992 ;
6993 return 0;
6994}
6995_ACEOF
2ba49b59
KC
6996rm -f conftest.$ac_objext
6997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
49c96104
SE
7005 { ac_try='test -z "$ac_c_werror_flag"
7006 || test ! -s conftest.err'
5464f5a1
NN
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; } &&
2ba49b59 7012 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
2ba49b59 7018 ac_hi=$ac_mid
5464f5a1
NN
7019else
7020 echo "$as_me: failed program was:" >&5
7021sed 's/^/| /' conftest.$ac_ext >&5
7022
2ba49b59 7023ac_lo=`expr '(' $ac_mid ')' + 1`
5464f5a1 7024fi
2ba49b59
KC
7025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026done
7027case $ac_lo in
7028?*) ac_cv_sizeof_long=$ac_lo;;
7029'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7030See \`config.log' for more details." >&5
7031echo "$as_me: error: cannot compute sizeof (long), 77
7032See \`config.log' for more details." >&2;}
7033 { (exit 1); exit 1; }; } ;;
7034esac
7035else
7036 if test "$cross_compiling" = yes; then
49c96104
SE
7037 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7038See \`config.log' for more details." >&5
7039echo "$as_me: error: cannot run test program while cross compiling
7040See \`config.log' for more details." >&2;}
2ba49b59 7041 { (exit 1); exit 1; }; }
2e0fbf77
JW
7042else
7043 cat >conftest.$ac_ext <<_ACEOF
7044/* confdefs.h. */
7045_ACEOF
7046cat confdefs.h >>conftest.$ac_ext
7047cat >>conftest.$ac_ext <<_ACEOF
7048/* end confdefs.h. */
2ba49b59
KC
7049$ac_includes_default
7050long longval () { return (long) (sizeof (long)); }
7051unsigned long ulongval () { return (long) (sizeof (long)); }
7052#include <stdio.h>
7053#include <stdlib.h>
2e0fbf77
JW
7054int
7055main ()
7056{
7057
2ba49b59
KC
7058 FILE *f = fopen ("conftest.val", "w");
7059 if (! f)
7060 exit (1);
7061 if (((long) (sizeof (long))) < 0)
7062 {
7063 long i = longval ();
7064 if (i != ((long) (sizeof (long))))
7065 exit (1);
7066 fprintf (f, "%ld\n", i);
7067 }
7068 else
7069 {
7070 unsigned long i = ulongval ();
7071 if (i != ((long) (sizeof (long))))
7072 exit (1);
7073 fprintf (f, "%lu\n", i);
7074 }
7075 exit (ferror (f) || fclose (f) != 0);
7076
2e0fbf77
JW
7077 ;
7078 return 0;
7079}
7080_ACEOF
2ba49b59
KC
7081rm -f conftest$ac_exeext
7082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
2e0fbf77
JW
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2ba49b59 7086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2e0fbf77
JW
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
2ba49b59 7092 ac_cv_sizeof_long=`cat conftest.val`
2e0fbf77 7093else
2ba49b59
KC
7094 echo "$as_me: program exited with status $ac_status" >&5
7095echo "$as_me: failed program was:" >&5
2e0fbf77
JW
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
2ba49b59
KC
7098( exit $ac_status )
7099{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7100See \`config.log' for more details." >&5
7101echo "$as_me: error: cannot compute sizeof (long), 77
7102See \`config.log' for more details." >&2;}
7103 { (exit 1); exit 1; }; }
2e0fbf77 7104fi
2ba49b59 7105rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2e0fbf77 7106fi
2ba49b59
KC
7107fi
7108rm -f conftest.val
7109else
7110 ac_cv_sizeof_long=0
7111fi
7112fi
7113echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7114echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7115cat >>confdefs.h <<_ACEOF
7116#define SIZEOF_LONG $ac_cv_sizeof_long
7117_ACEOF
7118
7119
7120if test "x${ac_cv_sizeof_long}" = "x8"; then
7121 host64=true
7122 BFD_HOST_64BIT_LONG=1
7123 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
7124 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7125elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
7126 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
7127 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
7128fi
7129
7130if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7131 BFD_HOST_64_BIT_DEFINED=1
7132 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
7133 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
7134fi
7135
7136
7137
7138
7139
7140
7141
7142# Put a plausible default for CC_FOR_BUILD in Makefile.
7143if test -z "$CC_FOR_BUILD"; then
7144 if test "x$cross_compiling" = "xno"; then
7145 CC_FOR_BUILD='$(CC)'
7146 else
7147 CC_FOR_BUILD=gcc
7148 fi
7149fi
7150
7151# Also set EXEEXT_FOR_BUILD.
7152if test "x$cross_compiling" = "xno"; then
7153 EXEEXT_FOR_BUILD='$(EXEEXT)'
7154else
7155 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7156echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7157if test "${bfd_cv_build_exeext+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 rm -f conftest*
7161 echo 'int main () { return 0; }' > conftest.c
7162 bfd_cv_build_exeext=
7163 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
7164 for file in conftest.*; do
7165 case $file in
7166 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
7167 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
7168 esac
7169 done
7170 rm -f conftest*
7171 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
7172fi
7173echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
7174echo "${ECHO_T}$bfd_cv_build_exeext" >&6
7175 EXEEXT_FOR_BUILD=""
7176 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
7177fi
7178
7179
7180
7181
7182
7183
7184
7185
7186for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
7187do
7188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189if eval "test \"\${$as_ac_Header+set}\" = set"; then
7190 echo "$as_me:$LINENO: checking for $ac_header" >&5
7191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7192if eval "test \"\${$as_ac_Header+set}\" = set"; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194fi
7195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7197else
7198 # Is the header compilable?
7199echo "$as_me:$LINENO: checking $ac_header usability" >&5
7200echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7201cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h. */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h. */
7207$ac_includes_default
7208#include <$ac_header>
7209_ACEOF
7210rm -f conftest.$ac_objext
7211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>conftest.er1
7213 ac_status=$?
7214 grep -v '^ *+' conftest.er1 >conftest.err
7215 rm -f conftest.er1
7216 cat conftest.err >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); } &&
49c96104
SE
7219 { ac_try='test -z "$ac_c_werror_flag"
7220 || test ! -s conftest.err'
2ba49b59
KC
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
7232 ac_header_compiler=yes
7233else
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
7237ac_header_compiler=no
7238fi
7239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7240echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7241echo "${ECHO_T}$ac_header_compiler" >&6
7242
7243# Is the header present?
7244echo "$as_me:$LINENO: checking $ac_header presence" >&5
7245echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7246cat >conftest.$ac_ext <<_ACEOF
7247/* confdefs.h. */
7248_ACEOF
7249cat confdefs.h >>conftest.$ac_ext
7250cat >>conftest.$ac_ext <<_ACEOF
7251/* end confdefs.h. */
7252#include <$ac_header>
7253_ACEOF
7254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } >/dev/null; then
7262 if test -s conftest.err; then
7263 ac_cpp_err=$ac_c_preproc_warn_flag
7264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7265 else
7266 ac_cpp_err=
7267 fi
7268else
7269 ac_cpp_err=yes
7270fi
7271if test -z "$ac_cpp_err"; then
7272 ac_header_preproc=yes
7273else
7274 echo "$as_me: failed program was:" >&5
7275sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 ac_header_preproc=no
7278fi
7279rm -f conftest.err conftest.$ac_ext
7280echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7281echo "${ECHO_T}$ac_header_preproc" >&6
7282
7283# So? What about this header?
7284case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7285 yes:no: )
7286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7287echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7289echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7290 ac_header_preproc=yes
7291 ;;
7292 no:yes:* )
7293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7294echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7296echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7298echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7300echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7304echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7305 (
7306 cat <<\_ASBOX
7307## ------------------------------------------ ##
7308## Report this to the AC_PACKAGE_NAME lists. ##
7309## ------------------------------------------ ##
7310_ASBOX
7311 ) |
7312 sed "s/^/$as_me: WARNING: /" >&2
7313 ;;
7314esac
7315echo "$as_me:$LINENO: checking for $ac_header" >&5
7316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7317if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320 eval "$as_ac_Header=\$ac_header_preproc"
7321fi
7322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7324
7325fi
7326if test `eval echo '${'$as_ac_Header'}'` = yes; then
7327 cat >>confdefs.h <<_ACEOF
7328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7329_ACEOF
7330
7331fi
7332
7333done
7334
7335
7336
7337
7338for ac_header in fcntl.h sys/file.h sys/time.h
7339do
7340as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7341if eval "test \"\${$as_ac_Header+set}\" = set"; then
7342 echo "$as_me:$LINENO: checking for $ac_header" >&5
7343echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7344if eval "test \"\${$as_ac_Header+set}\" = set"; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346fi
7347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7349else
7350 # Is the header compilable?
7351echo "$as_me:$LINENO: checking $ac_header usability" >&5
7352echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7353cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h. */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h. */
7359$ac_includes_default
7360#include <$ac_header>
7361_ACEOF
7362rm -f conftest.$ac_objext
7363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
49c96104
SE
7371 { ac_try='test -z "$ac_c_werror_flag"
7372 || test ! -s conftest.err'
2ba49b59
KC
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; } &&
7378 { ac_try='test -s conftest.$ac_objext'
7379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 (eval $ac_try) 2>&5
7381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; }; then
7384 ac_header_compiler=yes
7385else
7386 echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389ac_header_compiler=no
7390fi
7391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7393echo "${ECHO_T}$ac_header_compiler" >&6
7394
7395# Is the header present?
7396echo "$as_me:$LINENO: checking $ac_header presence" >&5
7397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7398cat >conftest.$ac_ext <<_ACEOF
7399/* confdefs.h. */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h. */
7404#include <$ac_header>
7405_ACEOF
7406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } >/dev/null; then
7414 if test -s conftest.err; then
7415 ac_cpp_err=$ac_c_preproc_warn_flag
7416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7417 else
7418 ac_cpp_err=
7419 fi
7420else
7421 ac_cpp_err=yes
7422fi
7423if test -z "$ac_cpp_err"; then
7424 ac_header_preproc=yes
7425else
7426 echo "$as_me: failed program was:" >&5
7427sed 's/^/| /' conftest.$ac_ext >&5
7428
7429 ac_header_preproc=no
7430fi
7431rm -f conftest.err conftest.$ac_ext
7432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7433echo "${ECHO_T}$ac_header_preproc" >&6
7434
7435# So? What about this header?
7436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7437 yes:no: )
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7442 ac_header_preproc=yes
7443 ;;
7444 no:yes:* )
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7457 (
7458 cat <<\_ASBOX
7459## ------------------------------------------ ##
7460## Report this to the AC_PACKAGE_NAME lists. ##
7461## ------------------------------------------ ##
7462_ASBOX
7463 ) |
7464 sed "s/^/$as_me: WARNING: /" >&2
7465 ;;
7466esac
7467echo "$as_me:$LINENO: checking for $ac_header" >&5
7468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7469if eval "test \"\${$as_ac_Header+set}\" = set"; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472 eval "$as_ac_Header=\$ac_header_preproc"
7473fi
7474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7476
7477fi
7478if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479 cat >>confdefs.h <<_ACEOF
7480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481_ACEOF
7482
7483fi
7484
7485done
7486
7487echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7488echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7489if test "${ac_cv_header_time+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7491else
7492 cat >conftest.$ac_ext <<_ACEOF
7493/* confdefs.h. */
7494_ACEOF
7495cat confdefs.h >>conftest.$ac_ext
7496cat >>conftest.$ac_ext <<_ACEOF
7497/* end confdefs.h. */
7498#include <sys/types.h>
7499#include <sys/time.h>
7500#include <time.h>
7501
7502int
7503main ()
7504{
7505if ((struct tm *) 0)
7506return 0;
7507 ;
7508 return 0;
7509}
7510_ACEOF
7511rm -f conftest.$ac_objext
7512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513 (eval $ac_compile) 2>conftest.er1
7514 ac_status=$?
7515 grep -v '^ *+' conftest.er1 >conftest.err
7516 rm -f conftest.er1
7517 cat conftest.err >&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
49c96104
SE
7520 { ac_try='test -z "$ac_c_werror_flag"
7521 || test ! -s conftest.err'
2ba49b59
KC
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
7527 { ac_try='test -s conftest.$ac_objext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 ac_cv_header_time=yes
7534else
7535 echo "$as_me: failed program was:" >&5
7536sed 's/^/| /' conftest.$ac_ext >&5
7537
7538ac_cv_header_time=no
7539fi
7540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7541fi
7542echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7543echo "${ECHO_T}$ac_cv_header_time" >&6
7544if test $ac_cv_header_time = yes; then
7545
7546cat >>confdefs.h <<\_ACEOF
7547#define TIME_WITH_SYS_TIME 1
7548_ACEOF
7549
7550fi
7551
7552
7553
7554
7555
7556
7557ac_header_dirent=no
7558for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7559 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7560echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7561echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7562if eval "test \"\${$as_ac_Header+set}\" = set"; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565 cat >conftest.$ac_ext <<_ACEOF
7566/* confdefs.h. */
7567_ACEOF
7568cat confdefs.h >>conftest.$ac_ext
7569cat >>conftest.$ac_ext <<_ACEOF
7570/* end confdefs.h. */
7571#include <sys/types.h>
7572#include <$ac_hdr>
7573
7574int
7575main ()
7576{
7577if ((DIR *) 0)
7578return 0;
7579 ;
7580 return 0;
7581}
7582_ACEOF
7583rm -f conftest.$ac_objext
7584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585 (eval $ac_compile) 2>conftest.er1
7586 ac_status=$?
7587 grep -v '^ *+' conftest.er1 >conftest.err
7588 rm -f conftest.er1
7589 cat conftest.err >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); } &&
49c96104
SE
7592 { ac_try='test -z "$ac_c_werror_flag"
7593 || test ! -s conftest.err'
2ba49b59
KC
7594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595 (eval $ac_try) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); }; } &&
7599 { ac_try='test -s conftest.$ac_objext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 eval "$as_ac_Header=yes"
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
7610eval "$as_ac_Header=no"
7611fi
7612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613fi
7614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7616if test `eval echo '${'$as_ac_Header'}'` = yes; then
7617 cat >>confdefs.h <<_ACEOF
7618#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7619_ACEOF
7620
7621ac_header_dirent=$ac_hdr; break
7622fi
7623
7624done
7625# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7626if test $ac_header_dirent = dirent.h; then
7627 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7628echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7629if test "${ac_cv_search_opendir+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632 ac_func_search_save_LIBS=$LIBS
7633ac_cv_search_opendir=no
7634cat >conftest.$ac_ext <<_ACEOF
7635/* confdefs.h. */
7636_ACEOF
7637cat confdefs.h >>conftest.$ac_ext
7638cat >>conftest.$ac_ext <<_ACEOF
7639/* end confdefs.h. */
7640
7641/* Override any gcc2 internal prototype to avoid an error. */
7642#ifdef __cplusplus
7643extern "C"
7644#endif
7645/* We use char because int might match the return type of a gcc2
7646 builtin and then its argument prototype would still apply. */
7647char opendir ();
7648int
7649main ()
7650{
7651opendir ();
7652 ;
7653 return 0;
7654}
7655_ACEOF
7656rm -f conftest.$ac_objext conftest$ac_exeext
7657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>conftest.er1
7659 ac_status=$?
7660 grep -v '^ *+' conftest.er1 >conftest.err
7661 rm -f conftest.er1
7662 cat conftest.err >&5
7663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
49c96104
SE
7665 { ac_try='test -z "$ac_c_werror_flag"
7666 || test ! -s conftest.err'
2ba49b59
KC
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; } &&
7672 { ac_try='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 (eval $ac_try) 2>&5
7675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_search_opendir="none required"
7679else
7680 echo "$as_me: failed program was:" >&5
7681sed 's/^/| /' conftest.$ac_ext >&5
7682
7683fi
7684rm -f conftest.err conftest.$ac_objext \
7685 conftest$ac_exeext conftest.$ac_ext
7686if test "$ac_cv_search_opendir" = no; then
7687 for ac_lib in dir; do
7688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7689 cat >conftest.$ac_ext <<_ACEOF
7690/* confdefs.h. */
7691_ACEOF
7692cat confdefs.h >>conftest.$ac_ext
7693cat >>conftest.$ac_ext <<_ACEOF
7694/* end confdefs.h. */
7695
7696/* Override any gcc2 internal prototype to avoid an error. */
7697#ifdef __cplusplus
7698extern "C"
7699#endif
7700/* We use char because int might match the return type of a gcc2
7701 builtin and then its argument prototype would still apply. */
7702char opendir ();
7703int
7704main ()
7705{
7706opendir ();
7707 ;
7708 return 0;
7709}
7710_ACEOF
7711rm -f conftest.$ac_objext conftest$ac_exeext
7712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7713 (eval $ac_link) 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } &&
49c96104
SE
7720 { ac_try='test -z "$ac_c_werror_flag"
7721 || test ! -s conftest.err'
2ba49b59
KC
7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723 (eval $ac_try) 2>&5
7724 ac_status=$?
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); }; } &&
7727 { ac_try='test -s conftest$ac_exeext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729 (eval $ac_try) 2>&5
7730 ac_status=$?
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_cv_search_opendir="-l$ac_lib"
7734break
7735else
7736 echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
7738
7739fi
7740rm -f conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 done
7743fi
7744LIBS=$ac_func_search_save_LIBS
7745fi
7746echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7747echo "${ECHO_T}$ac_cv_search_opendir" >&6
7748if test "$ac_cv_search_opendir" != no; then
7749 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7750
7751fi
7752
7753else
7754 echo "$as_me:$LINENO: checking for library containing opendir" >&5
7755echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7756if test "${ac_cv_search_opendir+set}" = set; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 ac_func_search_save_LIBS=$LIBS
7760ac_cv_search_opendir=no
7761cat >conftest.$ac_ext <<_ACEOF
7762/* confdefs.h. */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h. */
7767
7768/* Override any gcc2 internal prototype to avoid an error. */
7769#ifdef __cplusplus
7770extern "C"
7771#endif
7772/* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7774char opendir ();
7775int
7776main ()
7777{
7778opendir ();
7779 ;
7780 return 0;
7781}
7782_ACEOF
7783rm -f conftest.$ac_objext conftest$ac_exeext
7784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
49c96104
SE
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
2ba49b59
KC
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_search_opendir="none required"
7806else
7807 echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
7810fi
7811rm -f conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813if test "$ac_cv_search_opendir" = no; then
7814 for ac_lib in x; do
7815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7816 cat >conftest.$ac_ext <<_ACEOF
7817/* confdefs.h. */
7818_ACEOF
7819cat confdefs.h >>conftest.$ac_ext
7820cat >>conftest.$ac_ext <<_ACEOF
7821/* end confdefs.h. */
7822
7823/* Override any gcc2 internal prototype to avoid an error. */
7824#ifdef __cplusplus
7825extern "C"
7826#endif
7827/* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7829char opendir ();
7830int
7831main ()
7832{
7833opendir ();
7834 ;
7835 return 0;
7836}
7837_ACEOF
7838rm -f conftest.$ac_objext conftest$ac_exeext
7839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
49c96104
SE
7847 { ac_try='test -z "$ac_c_werror_flag"
7848 || test ! -s conftest.err'
2ba49b59
KC
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 (eval $ac_try) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856 (eval $ac_try) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_search_opendir="-l$ac_lib"
7861break
7862else
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866fi
7867rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 done
7870fi
7871LIBS=$ac_func_search_save_LIBS
7872fi
7873echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7874echo "${ECHO_T}$ac_cv_search_opendir" >&6
7875if test "$ac_cv_search_opendir" != no; then
7876 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7877
7878fi
7879
7880fi
7881
7882echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7883echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
7884if test "${gcc_cv_header_string+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887 cat >conftest.$ac_ext <<_ACEOF
7888/* confdefs.h. */
7889_ACEOF
7890cat confdefs.h >>conftest.$ac_ext
7891cat >>conftest.$ac_ext <<_ACEOF
7892/* end confdefs.h. */
7893#include <string.h>
7894#include <strings.h>
7895int
7896main ()
7897{
7898
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903rm -f conftest.$ac_objext
7904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905 (eval $ac_compile) 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
49c96104
SE
7912 { ac_try='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
2ba49b59
KC
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 gcc_cv_header_string=yes
7926else
7927 echo "$as_me: failed program was:" >&5
7928sed 's/^/| /' conftest.$ac_ext >&5
7929
7930gcc_cv_header_string=no
7931fi
7932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7933fi
7934echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7935echo "${ECHO_T}$gcc_cv_header_string" >&6
7936if test $gcc_cv_header_string = yes; then
7937
7938cat >>confdefs.h <<\_ACEOF
7939#define STRING_WITH_STRINGS 1
7940_ACEOF
7941
2e0fbf77
JW
7942fi
7943
5464f5a1
NN
7944
7945
7946
7947
7948
7949
7950
633fd09f 7951for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 7952do
5464f5a1
NN
7953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7954echo "$as_me:$LINENO: checking for $ac_func" >&5
7955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7956if eval "test \"\${$as_ac_var+set}\" = set"; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7958else
7959 cat >conftest.$ac_ext <<_ACEOF
7960/* confdefs.h. */
7961_ACEOF
7962cat confdefs.h >>conftest.$ac_ext
7963cat >>conftest.$ac_ext <<_ACEOF
7964/* end confdefs.h. */
7965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7967#define $ac_func innocuous_$ac_func
7968
252b5132 7969/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7970 which can conflict with char $ac_func (); below.
7971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7972 <limits.h> exists even on freestanding compilers. */
7973
7974#ifdef __STDC__
7975# include <limits.h>
7976#else
7977# include <assert.h>
7978#endif
6be7c12c 7979
5464f5a1 7980#undef $ac_func
252b5132 7981
5464f5a1
NN
7982/* Override any gcc2 internal prototype to avoid an error. */
7983#ifdef __cplusplus
7984extern "C"
7985{
7986#endif
7987/* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989char $ac_func ();
252b5132
RH
7990/* The GNU C library defines this for functions which it implements
7991 to always fail with ENOSYS. Some functions are actually named
7992 something starting with __ and the normal name is an alias. */
7993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7994choke me
7995#else
5464f5a1
NN
7996char (*f) () = $ac_func;
7997#endif
7998#ifdef __cplusplus
7999}
252b5132
RH
8000#endif
8001
5464f5a1
NN
8002int
8003main ()
8004{
8005return f != $ac_func;
8006 ;
8007 return 0;
8008}
8009_ACEOF
8010rm -f conftest.$ac_objext conftest$ac_exeext
8011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8012 (eval $ac_link) 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } &&
49c96104
SE
8019 { ac_try='test -z "$ac_c_werror_flag"
8020 || test ! -s conftest.err'
5464f5a1
NN
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 eval "$as_ac_var=yes"
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037eval "$as_ac_var=no"
8038fi
8039rm -f conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041fi
8042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8044if test `eval echo '${'$as_ac_var'}'` = yes; then
8045 cat >>confdefs.h <<_ACEOF
8046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8047_ACEOF
252b5132 8048
252b5132
RH
8049fi
8050done
8051
5464f5a1 8052
49c97a80
ILT
8053for ac_func in strtoull
8054do
5464f5a1
NN
8055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8056echo "$as_me:$LINENO: checking for $ac_func" >&5
8057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8058if eval "test \"\${$as_ac_var+set}\" = set"; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061 cat >conftest.$ac_ext <<_ACEOF
8062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
8067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8069#define $ac_func innocuous_$ac_func
8070
49c97a80 8071/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
8072 which can conflict with char $ac_func (); below.
8073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8074 <limits.h> exists even on freestanding compilers. */
8075
8076#ifdef __STDC__
8077# include <limits.h>
8078#else
8079# include <assert.h>
8080#endif
49c97a80 8081
5464f5a1 8082#undef $ac_func
49c97a80 8083
5464f5a1
NN
8084/* Override any gcc2 internal prototype to avoid an error. */
8085#ifdef __cplusplus
8086extern "C"
8087{
8088#endif
8089/* We use char because int might match the return type of a gcc2
8090 builtin and then its argument prototype would still apply. */
8091char $ac_func ();
49c97a80
ILT
8092/* The GNU C library defines this for functions which it implements
8093 to always fail with ENOSYS. Some functions are actually named
8094 something starting with __ and the normal name is an alias. */
8095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8096choke me
8097#else
5464f5a1
NN
8098char (*f) () = $ac_func;
8099#endif
8100#ifdef __cplusplus
8101}
49c97a80
ILT
8102#endif
8103
5464f5a1
NN
8104int
8105main ()
8106{
8107return f != $ac_func;
8108 ;
8109 return 0;
8110}
8111_ACEOF
8112rm -f conftest.$ac_objext conftest$ac_exeext
8113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>conftest.er1
8115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
49c96104
SE
8121 { ac_try='test -z "$ac_c_werror_flag"
8122 || test ! -s conftest.err'
5464f5a1
NN
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 (eval $ac_try) 2>&5
8125 ac_status=$?
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 eval "$as_ac_var=yes"
8135else
8136 echo "$as_me: failed program was:" >&5
8137sed 's/^/| /' conftest.$ac_ext >&5
8138
8139eval "$as_ac_var=no"
8140fi
8141rm -f conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143fi
8144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8146if test `eval echo '${'$as_ac_var'}'` = yes; then
8147 cat >>confdefs.h <<_ACEOF
8148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8149_ACEOF
49c97a80 8150
49c97a80
ILT
8151fi
8152done
8153
6be7c12c 8154
2e9ebff5
JG
8155echo "$as_me:$LINENO: checking whether basename is declared" >&5
8156echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8157if test "${ac_cv_have_decl_basename+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160 cat >conftest.$ac_ext <<_ACEOF
8161/* confdefs.h. */
8162_ACEOF
8163cat confdefs.h >>conftest.$ac_ext
8164cat >>conftest.$ac_ext <<_ACEOF
8165/* end confdefs.h. */
ec7b76fe 8166$ac_includes_default
2e9ebff5
JG
8167int
8168main ()
8169{
8170#ifndef basename
8171 char *p = (char *) basename;
8172#endif
8173
8174 ;
8175 return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext
8179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180 (eval $ac_compile) 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
49c96104
SE
8187 { ac_try='test -z "$ac_c_werror_flag"
8188 || test ! -s conftest.err'
2e9ebff5
JG
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8190 (eval $ac_try) 2>&5
8191 ac_status=$?
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; } &&
8194 { ac_try='test -s conftest.$ac_objext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 (eval $ac_try) 2>&5
8197 ac_status=$?
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 ac_cv_have_decl_basename=yes
8201else
8202 echo "$as_me: failed program was:" >&5
8203sed 's/^/| /' conftest.$ac_ext >&5
8204
8205ac_cv_have_decl_basename=no
8206fi
8207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8208fi
8209echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8210echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8211if test $ac_cv_have_decl_basename = yes; then
8212
8213cat >>confdefs.h <<_ACEOF
8214#define HAVE_DECL_BASENAME 1
8215_ACEOF
8216
8217
8218else
8219 cat >>confdefs.h <<_ACEOF
8220#define HAVE_DECL_BASENAME 0
8221_ACEOF
8222
8223
8224fi
8225
8226
ec7b76fe
JG
8227echo "$as_me:$LINENO: checking whether ftello is declared" >&5
8228echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
8229if test "${ac_cv_have_decl_ftello+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 cat >conftest.$ac_ext <<_ACEOF
8233/* confdefs.h. */
8234_ACEOF
8235cat confdefs.h >>conftest.$ac_ext
8236cat >>conftest.$ac_ext <<_ACEOF
8237/* end confdefs.h. */
8238$ac_includes_default
8239int
8240main ()
8241{
8242#ifndef ftello
8243 char *p = (char *) ftello;
8244#endif
8245
8246 ;
8247 return 0;
8248}
8249_ACEOF
8250rm -f conftest.$ac_objext
8251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8252 (eval $ac_compile) 2>conftest.er1
8253 ac_status=$?
8254 grep -v '^ *+' conftest.er1 >conftest.err
8255 rm -f conftest.er1
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } &&
49c96104
SE
8259 { ac_try='test -z "$ac_c_werror_flag"
8260 || test ! -s conftest.err'
ec7b76fe
JG
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8262 (eval $ac_try) 2>&5
8263 ac_status=$?
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; } &&
8266 { ac_try='test -s conftest.$ac_objext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_cv_have_decl_ftello=yes
8273else
8274 echo "$as_me: failed program was:" >&5
8275sed 's/^/| /' conftest.$ac_ext >&5
8276
8277ac_cv_have_decl_ftello=no
8278fi
8279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8280fi
8281echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
8282echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
8283if test $ac_cv_have_decl_ftello = yes; then
8284
8285cat >>confdefs.h <<_ACEOF
8286#define HAVE_DECL_FTELLO 1
8287_ACEOF
8288
8289
8290else
8291 cat >>confdefs.h <<_ACEOF
8292#define HAVE_DECL_FTELLO 0
8293_ACEOF
8294
8295
8296fi
8297
8298
8299echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
8300echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
8301if test "${ac_cv_have_decl_ftello64+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310$ac_includes_default
8311int
8312main ()
8313{
8314#ifndef ftello64
8315 char *p = (char *) ftello64;
8316#endif
8317
8318 ;
8319 return 0;
8320}
8321_ACEOF
8322rm -f conftest.$ac_objext
8323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8324 (eval $ac_compile) 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } &&
49c96104
SE
8331 { ac_try='test -z "$ac_c_werror_flag"
8332 || test ! -s conftest.err'
ec7b76fe
JG
8333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 (eval $ac_try) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_have_decl_ftello64=yes
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349ac_cv_have_decl_ftello64=no
8350fi
8351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8352fi
8353echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
8354echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
8355if test $ac_cv_have_decl_ftello64 = yes; then
8356
8357cat >>confdefs.h <<_ACEOF
8358#define HAVE_DECL_FTELLO64 1
8359_ACEOF
8360
8361
8362else
8363 cat >>confdefs.h <<_ACEOF
8364#define HAVE_DECL_FTELLO64 0
8365_ACEOF
8366
8367
8368fi
8369
8370
8371echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
8372echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
8373if test "${ac_cv_have_decl_fseeko+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375else
8376 cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382$ac_includes_default
8383int
8384main ()
8385{
8386#ifndef fseeko
8387 char *p = (char *) fseeko;
8388#endif
8389
8390 ;
8391 return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext
8395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8396 (eval $ac_compile) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
49c96104
SE
8403 { ac_try='test -z "$ac_c_werror_flag"
8404 || test ! -s conftest.err'
ec7b76fe
JG
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 ac_cv_have_decl_fseeko=yes
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
8421ac_cv_have_decl_fseeko=no
8422fi
8423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8424fi
8425echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
8426echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
8427if test $ac_cv_have_decl_fseeko = yes; then
8428
8429cat >>confdefs.h <<_ACEOF
8430#define HAVE_DECL_FSEEKO 1
8431_ACEOF
8432
8433
8434else
8435 cat >>confdefs.h <<_ACEOF
8436#define HAVE_DECL_FSEEKO 0
8437_ACEOF
8438
8439
8440fi
8441
8442
8443echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
8444echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
8445if test "${ac_cv_have_decl_fseeko64+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454$ac_includes_default
8455int
8456main ()
8457{
8458#ifndef fseeko64
8459 char *p = (char *) fseeko64;
8460#endif
8461
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext
8467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8468 (eval $ac_compile) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
49c96104
SE
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
ec7b76fe
JG
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest.$ac_objext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_have_decl_fseeko64=yes
8489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493ac_cv_have_decl_fseeko64=no
8494fi
8495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8496fi
8497echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
8498echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
8499if test $ac_cv_have_decl_fseeko64 = yes; then
8500
8501cat >>confdefs.h <<_ACEOF
8502#define HAVE_DECL_FSEEKO64 1
8503_ACEOF
8504
8505
8506else
8507 cat >>confdefs.h <<_ACEOF
8508#define HAVE_DECL_FSEEKO64 0
8509_ACEOF
8510
8511
8512fi
8513
8514
2e9ebff5 8515
6be7c12c 8516
252b5132 8517case "${host}" in
855b0be7 8518*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
8519
8520cat >>confdefs.h <<\_ACEOF
252b5132 8521#define USE_BINARY_FOPEN 1
5464f5a1 8522_ACEOF
252b5132
RH
8523 ;;
8524esac
8525
d34a2b1d
JG
8526echo "$as_me:$LINENO: checking whether ffs is declared" >&5
8527echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
8528if test "${ac_cv_have_decl_ffs+set}" = set; then
5464f5a1 8529 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8530else
5464f5a1
NN
8531 cat >conftest.$ac_ext <<_ACEOF
8532/* confdefs.h. */
8533_ACEOF
8534cat confdefs.h >>conftest.$ac_ext
8535cat >>conftest.$ac_ext <<_ACEOF
8536/* end confdefs.h. */
d34a2b1d 8537$ac_includes_default
5464f5a1
NN
8538int
8539main ()
8540{
d34a2b1d
JG
8541#ifndef ffs
8542 char *p = (char *) ffs;
8543#endif
8544
5464f5a1
NN
8545 ;
8546 return 0;
8547}
8548_ACEOF
8549rm -f conftest.$ac_objext
8550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
49c96104
SE
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
5464f5a1
NN
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
d34a2b1d 8571 ac_cv_have_decl_ffs=yes
252b5132 8572else
5464f5a1
NN
8573 echo "$as_me: failed program was:" >&5
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
d34a2b1d 8576ac_cv_have_decl_ffs=no
252b5132 8577fi
5464f5a1 8578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8579fi
d34a2b1d
JG
8580echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
8581echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
8582if test $ac_cv_have_decl_ffs = yes; then
252b5132 8583
d34a2b1d
JG
8584cat >>confdefs.h <<_ACEOF
8585#define HAVE_DECL_FFS 1
8586_ACEOF
5464f5a1 8587
d34a2b1d
JG
8588
8589else
8590 cat >>confdefs.h <<_ACEOF
8591#define HAVE_DECL_FFS 0
5464f5a1 8592_ACEOF
252b5132 8593
d34a2b1d 8594
252b5132
RH
8595fi
8596
d34a2b1d
JG
8597
8598echo "$as_me:$LINENO: checking whether free is declared" >&5
8599echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8600if test "${ac_cv_have_decl_free+set}" = set; then
5464f5a1 8601 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8602else
5464f5a1
NN
8603 cat >conftest.$ac_ext <<_ACEOF
8604/* confdefs.h. */
8605_ACEOF
8606cat confdefs.h >>conftest.$ac_ext
8607cat >>conftest.$ac_ext <<_ACEOF
8608/* end confdefs.h. */
d34a2b1d 8609$ac_includes_default
5464f5a1
NN
8610int
8611main ()
8612{
d34a2b1d
JG
8613#ifndef free
8614 char *p = (char *) free;
8615#endif
8616
5464f5a1
NN
8617 ;
8618 return 0;
8619}
8620_ACEOF
8621rm -f conftest.$ac_objext
8622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8623 (eval $ac_compile) 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
49c96104
SE
8630 { ac_try='test -z "$ac_c_werror_flag"
8631 || test ! -s conftest.err'
5464f5a1
NN
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest.$ac_objext'
8638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639 (eval $ac_try) 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; }; then
d34a2b1d 8643 ac_cv_have_decl_free=yes
252b5132 8644else
5464f5a1
NN
8645 echo "$as_me: failed program was:" >&5
8646sed 's/^/| /' conftest.$ac_ext >&5
8647
d34a2b1d 8648ac_cv_have_decl_free=no
252b5132 8649fi
5464f5a1 8650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8651fi
d34a2b1d
JG
8652echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8653echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8654if test $ac_cv_have_decl_free = yes; then
8655
8656cat >>confdefs.h <<_ACEOF
8657#define HAVE_DECL_FREE 1
8658_ACEOF
252b5132 8659
5464f5a1 8660
d34a2b1d
JG
8661else
8662 cat >>confdefs.h <<_ACEOF
8663#define HAVE_DECL_FREE 0
5464f5a1 8664_ACEOF
252b5132 8665
d34a2b1d 8666
252b5132
RH
8667fi
8668
d34a2b1d
JG
8669
8670echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8671echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8672if test "${ac_cv_have_decl_getenv+set}" = set; then
5464f5a1 8673 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8674else
5464f5a1
NN
8675 cat >conftest.$ac_ext <<_ACEOF
8676/* confdefs.h. */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h. */
d34a2b1d 8681$ac_includes_default
5464f5a1
NN
8682int
8683main ()
8684{
d34a2b1d
JG
8685#ifndef getenv
8686 char *p = (char *) getenv;
8687#endif
8688
5464f5a1
NN
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8695 (eval $ac_compile) 2>conftest.er1
8696 ac_status=$?
8697 grep -v '^ *+' conftest.er1 >conftest.err
8698 rm -f conftest.er1
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
49c96104
SE
8702 { ac_try='test -z "$ac_c_werror_flag"
8703 || test ! -s conftest.err'
5464f5a1
NN
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8705 (eval $ac_try) 2>&5
8706 ac_status=$?
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; } &&
8709 { ac_try='test -s conftest.$ac_objext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8711 (eval $ac_try) 2>&5
8712 ac_status=$?
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
d34a2b1d 8715 ac_cv_have_decl_getenv=yes
252b5132 8716else
5464f5a1
NN
8717 echo "$as_me: failed program was:" >&5
8718sed 's/^/| /' conftest.$ac_ext >&5
8719
d34a2b1d 8720ac_cv_have_decl_getenv=no
252b5132 8721fi
5464f5a1 8722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8723fi
d34a2b1d
JG
8724echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
8725echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
8726if test $ac_cv_have_decl_getenv = yes; then
252b5132 8727
d34a2b1d
JG
8728cat >>confdefs.h <<_ACEOF
8729#define HAVE_DECL_GETENV 1
8730_ACEOF
5464f5a1 8731
d34a2b1d
JG
8732
8733else
8734 cat >>confdefs.h <<_ACEOF
8735#define HAVE_DECL_GETENV 0
5464f5a1 8736_ACEOF
252b5132 8737
d34a2b1d 8738
252b5132
RH
8739fi
8740
d34a2b1d
JG
8741
8742echo "$as_me:$LINENO: checking whether malloc is declared" >&5
8743echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
8744if test "${ac_cv_have_decl_malloc+set}" = set; then
5464f5a1 8745 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8746else
5464f5a1
NN
8747 cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
d34a2b1d 8753$ac_includes_default
5464f5a1
NN
8754int
8755main ()
8756{
d34a2b1d
JG
8757#ifndef malloc
8758 char *p = (char *) malloc;
8759#endif
8760
5464f5a1
NN
8761 ;
8762 return 0;
8763}
8764_ACEOF
8765rm -f conftest.$ac_objext
8766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8767 (eval $ac_compile) 2>conftest.er1
8768 ac_status=$?
8769 grep -v '^ *+' conftest.er1 >conftest.err
8770 rm -f conftest.er1
8771 cat conftest.err >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
49c96104
SE
8774 { ac_try='test -z "$ac_c_werror_flag"
8775 || test ! -s conftest.err'
5464f5a1
NN
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; } &&
8781 { ac_try='test -s conftest.$ac_objext'
8782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783 (eval $ac_try) 2>&5
8784 ac_status=$?
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); }; }; then
d34a2b1d 8787 ac_cv_have_decl_malloc=yes
252b5132 8788else
5464f5a1
NN
8789 echo "$as_me: failed program was:" >&5
8790sed 's/^/| /' conftest.$ac_ext >&5
8791
d34a2b1d 8792ac_cv_have_decl_malloc=no
252b5132 8793fi
5464f5a1 8794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8795fi
d34a2b1d
JG
8796echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
8797echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
8798if test $ac_cv_have_decl_malloc = yes; then
252b5132 8799
d34a2b1d
JG
8800cat >>confdefs.h <<_ACEOF
8801#define HAVE_DECL_MALLOC 1
8802_ACEOF
5464f5a1 8803
d34a2b1d
JG
8804
8805else
8806 cat >>confdefs.h <<_ACEOF
8807#define HAVE_DECL_MALLOC 0
5464f5a1 8808_ACEOF
252b5132 8809
d34a2b1d 8810
252b5132
RH
8811fi
8812
d34a2b1d
JG
8813
8814echo "$as_me:$LINENO: checking whether realloc is declared" >&5
8815echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
8816if test "${ac_cv_have_decl_realloc+set}" = set; then
5464f5a1 8817 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8818else
5464f5a1
NN
8819 cat >conftest.$ac_ext <<_ACEOF
8820/* confdefs.h. */
8821_ACEOF
8822cat confdefs.h >>conftest.$ac_ext
8823cat >>conftest.$ac_ext <<_ACEOF
8824/* end confdefs.h. */
d34a2b1d 8825$ac_includes_default
5464f5a1
NN
8826int
8827main ()
8828{
d34a2b1d
JG
8829#ifndef realloc
8830 char *p = (char *) realloc;
8831#endif
8832
5464f5a1
NN
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest.$ac_objext
8838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8839 (eval $ac_compile) 2>conftest.er1
8840 ac_status=$?
8841 grep -v '^ *+' conftest.er1 >conftest.err
8842 rm -f conftest.er1
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
49c96104
SE
8846 { ac_try='test -z "$ac_c_werror_flag"
8847 || test ! -s conftest.err'
5464f5a1
NN
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 (eval $ac_try) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855 (eval $ac_try) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
d34a2b1d 8859 ac_cv_have_decl_realloc=yes
252b5132 8860else
5464f5a1
NN
8861 echo "$as_me: failed program was:" >&5
8862sed 's/^/| /' conftest.$ac_ext >&5
8863
d34a2b1d 8864ac_cv_have_decl_realloc=no
252b5132 8865fi
5464f5a1 8866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8867fi
d34a2b1d
JG
8868echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
8869echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
8870if test $ac_cv_have_decl_realloc = yes; then
8871
8872cat >>confdefs.h <<_ACEOF
8873#define HAVE_DECL_REALLOC 1
8874_ACEOF
252b5132 8875
5464f5a1 8876
d34a2b1d
JG
8877else
8878 cat >>confdefs.h <<_ACEOF
8879#define HAVE_DECL_REALLOC 0
efa9bda4
AL
8880_ACEOF
8881
d34a2b1d 8882
efa9bda4
AL
8883fi
8884
d34a2b1d 8885
be5cacdb
L
8886echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
8887echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
8888if test "${ac_cv_have_decl_stpcpy+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8890else
8891 cat >conftest.$ac_ext <<_ACEOF
8892/* confdefs.h. */
8893_ACEOF
8894cat confdefs.h >>conftest.$ac_ext
8895cat >>conftest.$ac_ext <<_ACEOF
8896/* end confdefs.h. */
8897$ac_includes_default
8898int
8899main ()
8900{
8901#ifndef stpcpy
8902 char *p = (char *) stpcpy;
8903#endif
8904
8905 ;
8906 return 0;
8907}
8908_ACEOF
8909rm -f conftest.$ac_objext
8910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>conftest.er1
8912 ac_status=$?
8913 grep -v '^ *+' conftest.er1 >conftest.err
8914 rm -f conftest.er1
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } &&
49c96104
SE
8918 { ac_try='test -z "$ac_c_werror_flag"
8919 || test ! -s conftest.err'
be5cacdb
L
8920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 (eval $ac_try) 2>&5
8922 ac_status=$?
8923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924 (exit $ac_status); }; } &&
8925 { ac_try='test -s conftest.$ac_objext'
8926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 (eval $ac_try) 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; }; then
8931 ac_cv_have_decl_stpcpy=yes
8932else
8933 echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936ac_cv_have_decl_stpcpy=no
8937fi
8938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8939fi
8940echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
8941echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
8942if test $ac_cv_have_decl_stpcpy = yes; then
8943
8944cat >>confdefs.h <<_ACEOF
8945#define HAVE_DECL_STPCPY 1
8946_ACEOF
8947
8948
8949else
8950 cat >>confdefs.h <<_ACEOF
8951#define HAVE_DECL_STPCPY 0
8952_ACEOF
8953
8954
8955fi
8956
8957
d34a2b1d
JG
8958echo "$as_me:$LINENO: checking whether strstr is declared" >&5
8959echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8960if test "${ac_cv_have_decl_strstr+set}" = set; then
efa9bda4
AL
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8962else
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
d34a2b1d 8969$ac_includes_default
efa9bda4
AL
8970int
8971main ()
8972{
d34a2b1d
JG
8973#ifndef strstr
8974 char *p = (char *) strstr;
8975#endif
8976
efa9bda4
AL
8977 ;
8978 return 0;
8979}
8980_ACEOF
8981rm -f conftest.$ac_objext
8982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8983 (eval $ac_compile) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } &&
49c96104
SE
8990 { ac_try='test -z "$ac_c_werror_flag"
8991 || test ! -s conftest.err'
efa9bda4
AL
8992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993 (eval $ac_try) 2>&5
8994 ac_status=$?
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); }; } &&
8997 { ac_try='test -s conftest.$ac_objext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
d34a2b1d 9003 ac_cv_have_decl_strstr=yes
efa9bda4
AL
9004else
9005 echo "$as_me: failed program was:" >&5
9006sed 's/^/| /' conftest.$ac_ext >&5
9007
d34a2b1d 9008ac_cv_have_decl_strstr=no
efa9bda4
AL
9009fi
9010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9011fi
d34a2b1d
JG
9012echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9013echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
9014if test $ac_cv_have_decl_strstr = yes; then
efa9bda4 9015
d34a2b1d
JG
9016cat >>confdefs.h <<_ACEOF
9017#define HAVE_DECL_STRSTR 1
9018_ACEOF
efa9bda4 9019
d34a2b1d
JG
9020
9021else
9022 cat >>confdefs.h <<_ACEOF
9023#define HAVE_DECL_STRSTR 0
5464f5a1 9024_ACEOF
252b5132 9025
d34a2b1d 9026
252b5132
RH
9027fi
9028
6be7c12c 9029
36527912
AJ
9030echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
9031echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
9032if test "${ac_cv_have_decl_snprintf+set}" = set; then
9033 echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035 cat >conftest.$ac_ext <<_ACEOF
9036/* confdefs.h. */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h. */
9041$ac_includes_default
9042int
9043main ()
9044{
9045#ifndef snprintf
9046 char *p = (char *) snprintf;
9047#endif
9048
9049 ;
9050 return 0;
9051}
9052_ACEOF
9053rm -f conftest.$ac_objext
9054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9055 (eval $ac_compile) 2>conftest.er1
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
49c96104
SE
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
36527912
AJ
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest.$ac_objext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_have_decl_snprintf=yes
9076else
9077 echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
9080ac_cv_have_decl_snprintf=no
9081fi
9082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9083fi
9084echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
9085echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
9086if test $ac_cv_have_decl_snprintf = yes; then
9087
9088cat >>confdefs.h <<_ACEOF
9089#define HAVE_DECL_SNPRINTF 1
9090_ACEOF
9091
9092
9093else
9094 cat >>confdefs.h <<_ACEOF
9095#define HAVE_DECL_SNPRINTF 0
9096_ACEOF
9097
9098
9099fi
9100
9101
9102echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
9103echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
9104if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107 cat >conftest.$ac_ext <<_ACEOF
9108/* confdefs.h. */
9109_ACEOF
9110cat confdefs.h >>conftest.$ac_ext
9111cat >>conftest.$ac_ext <<_ACEOF
9112/* end confdefs.h. */
9113$ac_includes_default
9114int
9115main ()
9116{
9117#ifndef vsnprintf
9118 char *p = (char *) vsnprintf;
9119#endif
9120
9121 ;
9122 return 0;
9123}
9124_ACEOF
9125rm -f conftest.$ac_objext
9126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
49c96104
SE
9134 { ac_try='test -z "$ac_c_werror_flag"
9135 || test ! -s conftest.err'
36527912
AJ
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 (eval $ac_try) 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; } &&
9141 { ac_try='test -s conftest.$ac_objext'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; }; then
9147 ac_cv_have_decl_vsnprintf=yes
9148else
9149 echo "$as_me: failed program was:" >&5
9150sed 's/^/| /' conftest.$ac_ext >&5
9151
9152ac_cv_have_decl_vsnprintf=no
9153fi
9154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9155fi
9156echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
9157echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
9158if test $ac_cv_have_decl_vsnprintf = yes; then
9159
9160cat >>confdefs.h <<_ACEOF
9161#define HAVE_DECL_VSNPRINTF 1
9162_ACEOF
9163
9164
9165else
9166 cat >>confdefs.h <<_ACEOF
9167#define HAVE_DECL_VSNPRINTF 0
9168_ACEOF
9169
9170
9171fi
9172
9173
d34a2b1d 9174
252b5132
RH
9175# If we are configured native, pick a core file support file.
9176COREFILE=
9177COREFLAG=
9178TRAD_HEADER=
9179if test "${target}" = "${host}"; then
9180 case "${host}" in
13dfd2d0 9181 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9182 COREFILE=''
9183 ;;
ed84e695 9184 alpha*-*-linux-*)
252b5132
RH
9185 COREFILE=trad-core.lo
9186 TRAD_HEADER='"hosts/alphalinux.h"'
9187 ;;
690cc98b
NC
9188 alpha*-*-netbsd* | alpha*-*-openbsd*)
9189 COREFILE=netbsd-core.lo
9190 ;;
252b5132 9191 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9192 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9193 COREFILE='' ;;
e33533a4
MK
9194 arm-*-netbsd* | arm-*-openbsd*)
9195 COREFILE=netbsd-core.lo
9196 ;;
252b5132
RH
9197 arm-*-riscix) COREFILE=trad-core.lo ;;
9198 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9199 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9200 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9201 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9202 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9203 hppa*-*-netbsd* | hppa*-*-openbsd*)
9204 COREFILE=netbsd-core.lo
9205 ;;
9206
dc810e39 9207 i370-*-*)
5b93d8bb
AM
9208 COREFILE=trad-core.lo
9209 TRAD_HEADER='"hosts/i370linux.h"'
9210 ;;
9211
80c7c40a 9212 i[3-7]86-sequent-bsd*)
5b93d8bb 9213 COREFILE=trad-core.lo
252b5132
RH
9214 TRAD_HEADER='"hosts/symmetry.h"'
9215 ;;
80c7c40a
NC
9216 i[3-7]86-sequent-sysv4*) ;;
9217 i[3-7]86-sequent-sysv*)
252b5132
RH
9218 COREFILE=trad-core.lo
9219 TRAD_HEADER='"hosts/symmetry.h"'
9220 ;;
80c7c40a 9221 i[3-7]86-*-bsdi)
7e3b3466
NC
9222 COREFILE=
9223 ;;
d2bef492 9224 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
9225 COREFILE=trad-core.lo
9226 TRAD_HEADER='"hosts/i386bsd.h"'
9227 ;;
13dfd2d0 9228 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9229 COREFILE=''
9230 TRAD_HEADER='"hosts/i386bsd.h"'
9231 ;;
4615568e 9232 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9233 COREFILE=netbsd-core.lo
9234 ;;
80c7c40a 9235 i[3-7]86-esix-sysv3*)
252b5132
RH
9236 COREFILE=trad-core.lo
9237 TRAD_HEADER='"hosts/esix.h"'
9238 ;;
80c7c40a 9239 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9240 COREFILE=sco5-core.lo
9241 ;;
80c7c40a 9242 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9243 COREFILE=trad-core.lo
9244 TRAD_HEADER='"hosts/i386sco.h"'
9245 ;;
80c7c40a 9246 i[3-7]86-*-mach3*)
252b5132
RH
9247 COREFILE=trad-core.lo
9248 TRAD_HEADER='"hosts/i386mach3.h"'
9249 ;;
ed84e695 9250 i[3-7]86-*-linux-*)
252b5132
RH
9251 COREFILE=trad-core.lo
9252 TRAD_HEADER='"hosts/i386linux.h"'
9253 ;;
80c7c40a
NC
9254 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9255 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
9256 i860-*-mach3* | i860-*-osf1*)
9257 COREFILE=trad-core.lo
9258 TRAD_HEADER='"hosts/i860mach3.h"'
9259 ;;
252b5132
RH
9260 mips-*-netbsd* | mips*-*-openbsd*)
9261 COREFILE=netbsd-core.lo
9262 ;;
9263 mips-dec-*)
9264 COREFILE=trad-core.lo
9265 TRAD_HEADER='"hosts/decstation.h"'
9266 ;;
9267 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9268 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9269 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
9270 mips-*-sysv4*) ;;
9271 mips-*-sysv* | mips-*-riscos*)
9272 COREFILE=trad-core.lo
9273 TRAD_HEADER='"hosts/riscos.h"'
9274 ;;
9275 mips-sony-bsd*)
9276 COREFILE=trad-core.lo
9277 TRAD_HEADER='"hosts/news-mips.h"'
9278 ;;
9279 m68*-bull*-sysv*)
9280 COREFILE=trad-core.lo
9281 TRAD_HEADER='"hosts/dpx2.h"'
9282 ;;
9283 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9284 m68*-hp-bsd*)
9285 COREFILE=trad-core.lo
9286 TRAD_HEADER='"hosts/hp300bsd.h"'
9287 ;;
ed84e695 9288 m68*-*-linux-*)
252b5132
RH
9289 COREFILE=trad-core.lo
9290 TRAD_HEADER='"hosts/m68klinux.h"'
9291 ;;
9292 m68*-motorola-sysv*)
9293 COREFILE=trad-core.lo
9294 TRAD_HEADER='"hosts/delta68.h"'
9295 ;;
9296 m68*-sony-*)
9297 COREFILE=trad-core.lo
9298 TRAD_HEADER='"hosts/news.h"'
9299 ;;
9300 m68*-*-netbsd* | m68*-*-openbsd*)
9301 COREFILE=netbsd-core.lo
9302 ;;
9303 m68*-apple-aux*)
9304 COREFILE=trad-core.lo
9305 TRAD_HEADER='"hosts/m68kaux.h"'
9306 ;;
eb1e0e80
NC
9307 m88*-*-sysv4*)
9308 ;;
9309 m88*-motorola-sysv*)
9310 COREFILE=ptrace-core.lo
9311 ;;
252b5132
RH
9312 m88*-*-mach3*)
9313 COREFILE=trad-core.lo
9314 TRAD_HEADER='"hosts/m88kmach3.h"'
9315 ;;
c6f8758f
NC
9316 m88*-*-openbsd*)
9317 COREFILE=netbsd-core.lo
9318 ;;
252b5132
RH
9319 ns32k-pc532-mach)
9320 COREFILE=trad-core.lo
9321 TRAD_HEADER='"hosts/pc532mach.h"'
9322 ;;
9323 ns32k-*-netbsd* | ns32k-*-openbsd*)
9324 COREFILE=netbsd-core.lo
9325 ;;
eb1e0e80
NC
9326 rs6000-*-lynx*)
9327 COREFILE=lynx-core.lo
9328 ;;
9329 rs6000-*-aix5.* | powerpc-*-aix5.*)
9330 COREFILE=rs6000-core.lo
9331 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
9332 ;;
83954261 9333 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
9334 COREFILE=rs6000-core.lo
9335 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
9336 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
9337 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
9338 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
9339echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h. */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */
83954261 9346#include <core.h>
5464f5a1
NN
9347int
9348main ()
9349{
83954261 9350struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
9351 ;
9352 return 0;
9353}
9354_ACEOF
9355rm -f conftest.$ac_objext
9356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
49c96104
SE
9364 { ac_try='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
5464f5a1
NN
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373 (eval $ac_try) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377
9378cat >>confdefs.h <<\_ACEOF
83954261 9379#define HAVE_ST_C_IMPL 1
5464f5a1 9380_ACEOF
83954261 9381
5464f5a1
NN
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
83954261 9384else
5464f5a1
NN
9385 echo "$as_me: failed program was:" >&5
9386sed 's/^/| /' conftest.$ac_ext >&5
9387
9388echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
83954261 9390fi
5464f5a1 9391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 9392 ;;
252b5132
RH
9393 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
9394 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
9395 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
9396 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
9397 powerpc-*-beos*) ;;
13dfd2d0
NC
9398 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
9399 COREFILE='' ;;
252b5132 9400 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 9401 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 9402 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 9403 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 9404 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
9405 COREFILE=netbsd-core.lo
9406 ;;
9407 tahoe-*-*)
9408 COREFILE=trad-core.lo
9409 TRAD_HEADER='"hosts/tahoe.h"'
9410 ;;
de6e5e1a
NC
9411 vax-*-netbsd* | vax-*-openbsd*)
9412 COREFILE=netbsd-core.lo
9413 ;;
252b5132
RH
9414 vax-*-ultrix2*)
9415 COREFILE=trad-core.lo
9416 TRAD_HEADER='"hosts/vaxult2.h"'
9417 ;;
9418 vax-*-ultrix*)
9419 COREFILE=trad-core.lo
9420 TRAD_HEADER='"hosts/vaxult2.h"'
9421 ;;
ed84e695 9422 vax-*-linux-*)
f8fc3443
NC
9423 COREFILE=trad-core.lo
9424 TRAD_HEADER='"hosts/vaxlinux.h"'
9425 ;;
252b5132
RH
9426 vax-*-*)
9427 COREFILE=trad-core.lo
9428 TRAD_HEADER='"hosts/vaxbsd.h"'
9429 ;;
85cfd8d3
MK
9430 x86_64-*-netbsd* | x86_64-*-openbsd*)
9431 COREFILE=netbsd-core.lo
9432 ;;
252b5132
RH
9433 esac
9434
9435 case "$COREFILE" in
9436 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
9437 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
9438 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
9439 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
9440 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
9441 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
9442 osf-core.lo) COREFLAG=-DOSF_CORE ;;
9443 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
9444 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
9445 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
9446 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
9447 esac
9448
9449 # ELF corefile support has several flavors, but all of
9450 # them use something called <sys/procfs.h>
5464f5a1
NN
9451
9452for ac_header in sys/procfs.h
252b5132 9453do
5464f5a1
NN
9454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo "$as_me:$LINENO: checking for $ac_header" >&5
9457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9458if eval "test \"\${$as_ac_Header+set}\" = set"; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9460fi
9461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9463else
9464 # Is the header compilable?
9465echo "$as_me:$LINENO: checking $ac_header usability" >&5
9466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9467cat >conftest.$ac_ext <<_ACEOF
9468/* confdefs.h. */
9469_ACEOF
9470cat confdefs.h >>conftest.$ac_ext
9471cat >>conftest.$ac_ext <<_ACEOF
9472/* end confdefs.h. */
9473$ac_includes_default
9474#include <$ac_header>
9475_ACEOF
9476rm -f conftest.$ac_objext
9477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9478 (eval $ac_compile) 2>conftest.er1
9479 ac_status=$?
9480 grep -v '^ *+' conftest.er1 >conftest.err
9481 rm -f conftest.er1
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
49c96104
SE
9485 { ac_try='test -z "$ac_c_werror_flag"
9486 || test ! -s conftest.err'
5464f5a1
NN
9487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 (eval $ac_try) 2>&5
9489 ac_status=$?
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); }; } &&
9492 { ac_try='test -s conftest.$ac_objext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 (eval $ac_try) 2>&5
9495 ac_status=$?
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler=yes
9499else
9500 echo "$as_me: failed program was:" >&5
9501sed 's/^/| /' conftest.$ac_ext >&5
9502
9503ac_header_compiler=no
9504fi
9505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9507echo "${ECHO_T}$ac_header_compiler" >&6
9508
9509# Is the header present?
9510echo "$as_me:$LINENO: checking $ac_header presence" >&5
9511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9512cat >conftest.$ac_ext <<_ACEOF
9513/* confdefs.h. */
9514_ACEOF
9515cat confdefs.h >>conftest.$ac_ext
9516cat >>conftest.$ac_ext <<_ACEOF
9517/* end confdefs.h. */
9518#include <$ac_header>
9519_ACEOF
9520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } >/dev/null; then
9528 if test -s conftest.err; then
9529 ac_cpp_err=$ac_c_preproc_warn_flag
9530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9531 else
9532 ac_cpp_err=
9533 fi
252b5132 9534else
5464f5a1 9535 ac_cpp_err=yes
252b5132 9536fi
5464f5a1
NN
9537if test -z "$ac_cpp_err"; then
9538 ac_header_preproc=yes
9539else
9540 echo "$as_me: failed program was:" >&5
9541sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 ac_header_preproc=no
252b5132 9544fi
5464f5a1
NN
9545rm -f conftest.err conftest.$ac_ext
9546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9547echo "${ECHO_T}$ac_header_preproc" >&6
9548
9549# So? What about this header?
9550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9551 yes:no: )
9552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9556 ac_header_preproc=yes
9557 ;;
9558 no:yes:* )
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9571 (
9572 cat <<\_ASBOX
9573## ------------------------------------------ ##
9574## Report this to the AC_PACKAGE_NAME lists. ##
9575## ------------------------------------------ ##
9576_ASBOX
9577 ) |
9578 sed "s/^/$as_me: WARNING: /" >&2
9579 ;;
9580esac
9581echo "$as_me:$LINENO: checking for $ac_header" >&5
9582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9583if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 9585else
5464f5a1
NN
9586 eval "$as_ac_Header=\$ac_header_preproc"
9587fi
9588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590
252b5132 9591fi
5464f5a1
NN
9592if test `eval echo '${'$as_ac_Header'}'` = yes; then
9593 cat >>confdefs.h <<_ACEOF
9594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595_ACEOF
9596
9597fi
9598
252b5132
RH
9599done
9600
9601 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
9602 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
9603echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
9604 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606else
9607 cat >conftest.$ac_ext <<_ACEOF
9608/* confdefs.h. */
9609_ACEOF
9610cat confdefs.h >>conftest.$ac_ext
9611cat >>conftest.$ac_ext <<_ACEOF
9612/* end confdefs.h. */
7ee38065
MS
9613
9614#define _SYSCALL32
252b5132 9615#include <sys/procfs.h>
5464f5a1
NN
9616int
9617main ()
9618{
252b5132 9619prstatus_t avar
5464f5a1
NN
9620 ;
9621 return 0;
9622}
9623_ACEOF
9624rm -f conftest.$ac_objext
9625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9626 (eval $ac_compile) 2>conftest.er1
9627 ac_status=$?
9628 grep -v '^ *+' conftest.er1 >conftest.err
9629 rm -f conftest.er1
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
49c96104
SE
9633 { ac_try='test -z "$ac_c_werror_flag"
9634 || test ! -s conftest.err'
5464f5a1
NN
9635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 (eval $ac_try) 2>&5
9637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest.$ac_objext'
9641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 (eval $ac_try) 2>&5
9643 ac_status=$?
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
252b5132
RH
9646 bfd_cv_have_sys_procfs_type_prstatus_t=yes
9647else
5464f5a1
NN
9648 echo "$as_me: failed program was:" >&5
9649sed 's/^/| /' conftest.$ac_ext >&5
9650
9651bfd_cv_have_sys_procfs_type_prstatus_t=no
9652
252b5132 9653fi
5464f5a1 9654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9655fi
9656
9657 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
9658
9659cat >>confdefs.h <<\_ACEOF
252b5132 9660#define HAVE_PRSTATUS_T 1
5464f5a1 9661_ACEOF
252b5132
RH
9662
9663 fi
5464f5a1
NN
9664 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
9665echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 9666
5464f5a1
NN
9667 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
9668echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
9669 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9671else
5464f5a1
NN
9672 cat >conftest.$ac_ext <<_ACEOF
9673/* confdefs.h. */
9674_ACEOF
9675cat confdefs.h >>conftest.$ac_ext
9676cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */
7ee38065
MS
9678
9679#define _SYSCALL32
9680#include <sys/procfs.h>
5464f5a1
NN
9681int
9682main ()
9683{
7ee38065 9684prstatus32_t avar
5464f5a1
NN
9685 ;
9686 return 0;
9687}
9688_ACEOF
9689rm -f conftest.$ac_objext
9690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9691 (eval $ac_compile) 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
49c96104
SE
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
5464f5a1
NN
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 (eval $ac_try) 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest.$ac_objext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
7ee38065
MS
9711 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
9712else
5464f5a1
NN
9713 echo "$as_me: failed program was:" >&5
9714sed 's/^/| /' conftest.$ac_ext >&5
9715
9716bfd_cv_have_sys_procfs_type_prstatus32_t=no
9717
7ee38065 9718fi
5464f5a1 9719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9720fi
9721
9722 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
9723
9724cat >>confdefs.h <<\_ACEOF
7ee38065 9725#define HAVE_PRSTATUS32_T 1
5464f5a1 9726_ACEOF
7ee38065
MS
9727
9728 fi
5464f5a1
NN
9729 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
9730echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 9731
5464f5a1
NN
9732 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
9733echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9734 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
9735 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9736else
5464f5a1
NN
9737 cat >conftest.$ac_ext <<_ACEOF
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
9742/* end confdefs.h. */
7ee38065
MS
9743
9744#define _SYSCALL32
252b5132 9745#include <sys/procfs.h>
5464f5a1
NN
9746int
9747main ()
9748{
252b5132 9749prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
49c96104
SE
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
5464f5a1
NN
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
252b5132
RH
9776 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
9777else
5464f5a1
NN
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
9782
252b5132 9783fi
5464f5a1 9784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9785fi
9786
9787 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
9788
9789cat >>confdefs.h <<\_ACEOF
252b5132 9790#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 9791_ACEOF
252b5132
RH
9792
9793 fi
5464f5a1
NN
9794 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
9795echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 9796
5464f5a1
NN
9797 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
9798echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
9799 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9801else
5464f5a1
NN
9802 cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
7ee38065
MS
9808
9809#define _SYSCALL32
9810#include <sys/procfs.h>
5464f5a1
NN
9811int
9812main ()
9813{
7ee38065 9814prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext
9820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9821 (eval $ac_compile) 2>conftest.er1
9822 ac_status=$?
9823 grep -v '^ *+' conftest.er1 >conftest.err
9824 rm -f conftest.er1
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } &&
49c96104
SE
9828 { ac_try='test -z "$ac_c_werror_flag"
9829 || test ! -s conftest.err'
5464f5a1
NN
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
7ee38065
MS
9841 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
9842else
5464f5a1
NN
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845
9846bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
9847
7ee38065 9848fi
5464f5a1 9849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
9850fi
9851
9852 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
9853
9854cat >>confdefs.h <<\_ACEOF
7ee38065 9855#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 9856_ACEOF
7ee38065
MS
9857
9858 fi
5464f5a1
NN
9859 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
9860echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 9861
5464f5a1
NN
9862 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
9863echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
9864 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9866else
5464f5a1
NN
9867 cat >conftest.$ac_ext <<_ACEOF
9868/* confdefs.h. */
9869_ACEOF
9870cat confdefs.h >>conftest.$ac_ext
9871cat >>conftest.$ac_ext <<_ACEOF
9872/* end confdefs.h. */
7ee38065
MS
9873
9874#define _SYSCALL32
252b5132 9875#include <sys/procfs.h>
5464f5a1
NN
9876int
9877main ()
9878{
252b5132 9879pstatus_t avar
5464f5a1
NN
9880 ;
9881 return 0;
9882}
9883_ACEOF
9884rm -f conftest.$ac_objext
9885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886 (eval $ac_compile) 2>conftest.er1
9887 ac_status=$?
9888 grep -v '^ *+' conftest.er1 >conftest.err
9889 rm -f conftest.er1
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
49c96104
SE
9893 { ac_try='test -z "$ac_c_werror_flag"
9894 || test ! -s conftest.err'
5464f5a1
NN
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
252b5132
RH
9906 bfd_cv_have_sys_procfs_type_pstatus_t=yes
9907else
5464f5a1
NN
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911bfd_cv_have_sys_procfs_type_pstatus_t=no
9912
252b5132 9913fi
5464f5a1 9914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9915fi
9916
9917 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
9918
9919cat >>confdefs.h <<\_ACEOF
252b5132 9920#define HAVE_PSTATUS_T 1
5464f5a1 9921_ACEOF
252b5132
RH
9922
9923 fi
5464f5a1
NN
9924 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
9925echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 9926
5464f5a1
NN
9927 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
9928echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
9929 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 9931else
5464f5a1
NN
9932 cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h. */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h. */
f572a39d
AM
9938
9939#define _SYSCALL32
9940#include <sys/procfs.h>
5464f5a1
NN
9941int
9942main ()
9943{
f572a39d 9944pxstatus_t avar
5464f5a1
NN
9945 ;
9946 return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext
9950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9951 (eval $ac_compile) 2>conftest.er1
9952 ac_status=$?
9953 grep -v '^ *+' conftest.er1 >conftest.err
9954 rm -f conftest.er1
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
49c96104
SE
9958 { ac_try='test -z "$ac_c_werror_flag"
9959 || test ! -s conftest.err'
5464f5a1
NN
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961 (eval $ac_try) 2>&5
9962 ac_status=$?
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 (eval $ac_try) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
f572a39d
AM
9971 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
9972else
5464f5a1
NN
9973 echo "$as_me: failed program was:" >&5
9974sed 's/^/| /' conftest.$ac_ext >&5
9975
9976bfd_cv_have_sys_procfs_type_pxstatus_t=no
9977
f572a39d 9978fi
5464f5a1 9979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
9980fi
9981
9982 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
9983
9984cat >>confdefs.h <<\_ACEOF
f572a39d 9985#define HAVE_PXSTATUS_T 1
5464f5a1 9986_ACEOF
f572a39d
AM
9987
9988 fi
5464f5a1
NN
9989 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
9990echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 9991
5464f5a1
NN
9992 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
9993echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
9994 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 9996else
5464f5a1
NN
9997 cat >conftest.$ac_ext <<_ACEOF
9998/* confdefs.h. */
9999_ACEOF
10000cat confdefs.h >>conftest.$ac_ext
10001cat >>conftest.$ac_ext <<_ACEOF
10002/* end confdefs.h. */
7ee38065
MS
10003
10004#define _SYSCALL32
10005#include <sys/procfs.h>
5464f5a1
NN
10006int
10007main ()
10008{
7ee38065 10009pstatus32_t avar
5464f5a1
NN
10010 ;
10011 return 0;
10012}
10013_ACEOF
10014rm -f conftest.$ac_objext
10015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
49c96104
SE
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
5464f5a1
NN
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
7ee38065
MS
10036 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10037else
5464f5a1
NN
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041bfd_cv_have_sys_procfs_type_pstatus32_t=no
10042
7ee38065 10043fi
5464f5a1 10044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10045fi
10046
10047 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10048
10049cat >>confdefs.h <<\_ACEOF
7ee38065 10050#define HAVE_PSTATUS32_T 1
5464f5a1 10051_ACEOF
7ee38065
MS
10052
10053 fi
5464f5a1
NN
10054 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10055echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10056
5464f5a1
NN
10057 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10058echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10059 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10061else
5464f5a1
NN
10062 cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
7ee38065
MS
10068
10069#define _SYSCALL32
252b5132 10070#include <sys/procfs.h>
5464f5a1
NN
10071int
10072main ()
10073{
252b5132 10074prpsinfo_t avar
5464f5a1
NN
10075 ;
10076 return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext
10080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10081 (eval $ac_compile) 2>conftest.er1
10082 ac_status=$?
10083 grep -v '^ *+' conftest.er1 >conftest.err
10084 rm -f conftest.er1
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
49c96104
SE
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
5464f5a1
NN
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest.$ac_objext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
252b5132
RH
10101 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10102else
5464f5a1
NN
10103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10107
252b5132 10108fi
5464f5a1 10109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10110fi
10111
10112 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10113
10114cat >>confdefs.h <<\_ACEOF
252b5132 10115#define HAVE_PRPSINFO_T 1
5464f5a1 10116_ACEOF
252b5132
RH
10117
10118 fi
5464f5a1
NN
10119 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10120echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10121
5464f5a1
NN
10122 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10123echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10124 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10126else
5464f5a1
NN
10127 cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h. */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h. */
7ee38065
MS
10133
10134#define _SYSCALL32
10135#include <sys/procfs.h>
5464f5a1
NN
10136int
10137main ()
10138{
7ee38065 10139prpsinfo32_t avar
5464f5a1
NN
10140 ;
10141 return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext
10145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10146 (eval $ac_compile) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } &&
49c96104
SE
10153 { ac_try='test -z "$ac_c_werror_flag"
10154 || test ! -s conftest.err'
5464f5a1
NN
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10157 ac_status=$?
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; } &&
10160 { ac_try='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
7ee38065
MS
10166 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10167else
5464f5a1
NN
10168 echo "$as_me: failed program was:" >&5
10169sed 's/^/| /' conftest.$ac_ext >&5
10170
10171bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10172
7ee38065 10173fi
5464f5a1 10174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10175fi
10176
10177 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10178
10179cat >>confdefs.h <<\_ACEOF
7ee38065 10180#define HAVE_PRPSINFO32_T 1
5464f5a1 10181_ACEOF
7ee38065
MS
10182
10183 fi
5464f5a1
NN
10184 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10185echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10186
5464f5a1
NN
10187 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10188echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10189 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10191else
5464f5a1
NN
10192 cat >conftest.$ac_ext <<_ACEOF
10193/* confdefs.h. */
10194_ACEOF
10195cat confdefs.h >>conftest.$ac_ext
10196cat >>conftest.$ac_ext <<_ACEOF
10197/* end confdefs.h. */
7ee38065
MS
10198
10199#define _SYSCALL32
252b5132 10200#include <sys/procfs.h>
5464f5a1
NN
10201int
10202main ()
10203{
252b5132 10204psinfo_t avar
5464f5a1
NN
10205 ;
10206 return 0;
10207}
10208_ACEOF
10209rm -f conftest.$ac_objext
10210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10211 (eval $ac_compile) 2>conftest.er1
10212 ac_status=$?
10213 grep -v '^ *+' conftest.er1 >conftest.err
10214 rm -f conftest.er1
10215 cat conftest.err >&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } &&
49c96104
SE
10218 { ac_try='test -z "$ac_c_werror_flag"
10219 || test ! -s conftest.err'
5464f5a1
NN
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest.$ac_objext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10228 ac_status=$?
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
252b5132
RH
10231 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10232else
5464f5a1
NN
10233 echo "$as_me: failed program was:" >&5
10234sed 's/^/| /' conftest.$ac_ext >&5
10235
10236bfd_cv_have_sys_procfs_type_psinfo_t=no
10237
252b5132 10238fi
5464f5a1 10239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10240fi
10241
10242 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10243
10244cat >>confdefs.h <<\_ACEOF
252b5132 10245#define HAVE_PSINFO_T 1
5464f5a1 10246_ACEOF
252b5132
RH
10247
10248 fi
5464f5a1
NN
10249 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10250echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 10251
5464f5a1
NN
10252 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10253echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10254 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10256else
5464f5a1
NN
10257 cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h. */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h. */
7ee38065
MS
10263
10264#define _SYSCALL32
10265#include <sys/procfs.h>
5464f5a1
NN
10266int
10267main ()
10268{
7ee38065 10269psinfo32_t avar
5464f5a1
NN
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274rm -f conftest.$ac_objext
10275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276 (eval $ac_compile) 2>conftest.er1
10277 ac_status=$?
10278 grep -v '^ *+' conftest.er1 >conftest.err
10279 rm -f conftest.er1
10280 cat conftest.err >&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
49c96104
SE
10283 { ac_try='test -z "$ac_c_werror_flag"
10284 || test ! -s conftest.err'
5464f5a1
NN
10285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286 (eval $ac_try) 2>&5
10287 ac_status=$?
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest.$ac_objext'
10291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292 (eval $ac_try) 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
7ee38065
MS
10296 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10297else
5464f5a1
NN
10298 echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301bfd_cv_have_sys_procfs_type_psinfo32_t=no
10302
7ee38065 10303fi
5464f5a1 10304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10305fi
10306
10307 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
10308
10309cat >>confdefs.h <<\_ACEOF
7ee38065 10310#define HAVE_PSINFO32_T 1
5464f5a1 10311_ACEOF
7ee38065
MS
10312
10313 fi
5464f5a1
NN
10314 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10315echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 10316
5464f5a1
NN
10317 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10318echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10319 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10321else
5464f5a1
NN
10322 cat >conftest.$ac_ext <<_ACEOF
10323/* confdefs.h. */
10324_ACEOF
10325cat confdefs.h >>conftest.$ac_ext
10326cat >>conftest.$ac_ext <<_ACEOF
10327/* end confdefs.h. */
7ee38065
MS
10328
10329#define _SYSCALL32
252b5132 10330#include <sys/procfs.h>
5464f5a1
NN
10331int
10332main ()
10333{
252b5132 10334lwpstatus_t avar
5464f5a1
NN
10335 ;
10336 return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext
10340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
49c96104
SE
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
5464f5a1
NN
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
252b5132
RH
10361 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
10362else
5464f5a1
NN
10363 echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366bfd_cv_have_sys_procfs_type_lwpstatus_t=no
10367
252b5132 10368fi
5464f5a1 10369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10370fi
10371
10372 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
10373
10374cat >>confdefs.h <<\_ACEOF
252b5132 10375#define HAVE_LWPSTATUS_T 1
5464f5a1 10376_ACEOF
252b5132
RH
10377
10378 fi
5464f5a1
NN
10379 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
10380echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 10381
5464f5a1
NN
10382 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
10383echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
10384 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10386else
5464f5a1
NN
10387 cat >conftest.$ac_ext <<_ACEOF
10388/* confdefs.h. */
10389_ACEOF
10390cat confdefs.h >>conftest.$ac_ext
10391cat >>conftest.$ac_ext <<_ACEOF
10392/* end confdefs.h. */
f572a39d
AM
10393
10394#define _SYSCALL32
10395#include <sys/procfs.h>
5464f5a1
NN
10396int
10397main ()
10398{
f572a39d 10399lwpxstatus_t avar
5464f5a1
NN
10400 ;
10401 return 0;
10402}
10403_ACEOF
10404rm -f conftest.$ac_objext
10405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>conftest.er1
10407 ac_status=$?
10408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
49c96104
SE
10413 { ac_try='test -z "$ac_c_werror_flag"
10414 || test ! -s conftest.err'
5464f5a1
NN
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest.$ac_objext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
f572a39d
AM
10426 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
10427else
5464f5a1
NN
10428 echo "$as_me: failed program was:" >&5
10429sed 's/^/| /' conftest.$ac_ext >&5
10430
10431bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
10432
f572a39d 10433fi
5464f5a1 10434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10435fi
10436
10437 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
10438
10439cat >>confdefs.h <<\_ACEOF
f572a39d 10440#define HAVE_LWPXSTATUS_T 1
5464f5a1 10441_ACEOF
f572a39d
AM
10442
10443 fi
5464f5a1
NN
10444 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
10445echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 10446
5464f5a1
NN
10447 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
10448echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
10449 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10451else
5464f5a1
NN
10452 cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h. */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h. */
7ee38065
MS
10458
10459#define _SYSCALL32
252b5132 10460#include <sys/procfs.h>
5464f5a1
NN
10461int
10462main ()
10463{
252b5132 10464lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
10465 ;
10466 return 0;
10467}
10468_ACEOF
10469rm -f conftest.$ac_objext
10470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10471 (eval $ac_compile) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } &&
49c96104
SE
10478 { ac_try='test -z "$ac_c_werror_flag"
10479 || test ! -s conftest.err'
5464f5a1
NN
10480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481 (eval $ac_try) 2>&5
10482 ac_status=$?
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); }; } &&
10485 { ac_try='test -s conftest.$ac_objext'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; }; then
252b5132
RH
10491 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
10492else
5464f5a1
NN
10493 echo "$as_me: failed program was:" >&5
10494sed 's/^/| /' conftest.$ac_ext >&5
10495
10496bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
10497
252b5132 10498fi
5464f5a1 10499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10500fi
10501
10502 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
10503
10504cat >>confdefs.h <<\_ACEOF
252b5132 10505#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 10506_ACEOF
252b5132
RH
10507
10508 fi
5464f5a1
NN
10509 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
10510echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 10511
5464f5a1
NN
10512 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
10513echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
10514 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10516else
5464f5a1
NN
10517 cat >conftest.$ac_ext <<_ACEOF
10518/* confdefs.h. */
10519_ACEOF
10520cat confdefs.h >>conftest.$ac_ext
10521cat >>conftest.$ac_ext <<_ACEOF
10522/* end confdefs.h. */
7ee38065
MS
10523
10524#define _SYSCALL32
252b5132 10525#include <sys/procfs.h>
5464f5a1
NN
10526int
10527main ()
10528{
252b5132 10529lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
10530 ;
10531 return 0;
10532}
10533_ACEOF
10534rm -f conftest.$ac_objext
10535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10536 (eval $ac_compile) 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
49c96104
SE
10543 { ac_try='test -z "$ac_c_werror_flag"
10544 || test ! -s conftest.err'
5464f5a1
NN
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10553 ac_status=$?
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
252b5132
RH
10556 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
10557else
5464f5a1
NN
10558 echo "$as_me: failed program was:" >&5
10559sed 's/^/| /' conftest.$ac_ext >&5
10560
10561bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
10562
252b5132 10563fi
5464f5a1 10564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10565fi
10566
10567 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
10568
10569cat >>confdefs.h <<\_ACEOF
252b5132 10570#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 10571_ACEOF
252b5132
RH
10572
10573 fi
5464f5a1
NN
10574 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
10575echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 10576
5464f5a1
NN
10577 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
10578echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
10579 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 10581else
5464f5a1
NN
10582 cat >conftest.$ac_ext <<_ACEOF
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
7ee38065
MS
10588
10589#define _SYSCALL32
e3c976c4 10590#include <sys/procfs.h>
5464f5a1
NN
10591int
10592main ()
10593{
e3c976c4 10594win32_pstatus_t avar
5464f5a1
NN
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext
10600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>conftest.er1
10602 ac_status=$?
10603 grep -v '^ *+' conftest.er1 >conftest.err
10604 rm -f conftest.er1
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
49c96104
SE
10608 { ac_try='test -z "$ac_c_werror_flag"
10609 || test ! -s conftest.err'
5464f5a1
NN
10610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611 (eval $ac_try) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }; } &&
10615 { ac_try='test -s conftest.$ac_objext'
10616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617 (eval $ac_try) 2>&5
10618 ac_status=$?
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
e3c976c4
ILT
10621 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
10622else
5464f5a1
NN
10623 echo "$as_me: failed program was:" >&5
10624sed 's/^/| /' conftest.$ac_ext >&5
10625
10626bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
10627
e3c976c4 10628fi
5464f5a1 10629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10630fi
10631
e3c976c4 10632 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
10633
10634cat >>confdefs.h <<\_ACEOF
e3c976c4 10635#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 10636_ACEOF
16e9c715
NC
10637
10638 fi
5464f5a1
NN
10639 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
10640echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
10641
10642 fi
10643fi
16e9c715 10644
b3baf5d0 10645
6be7c12c 10646if test -n "$TRAD_HEADER"; then
5464f5a1
NN
10647
10648cat >>confdefs.h <<_ACEOF
252b5132 10649#define TRAD_HEADER $TRAD_HEADER
5464f5a1 10650_ACEOF
252b5132 10651
3f9b03b5 10652fi
252b5132
RH
10653
10654# Horrible hacks to build DLLs on Windows.
10655WIN32LDFLAGS=
10656WIN32LIBADD=
10657case "${host}" in
10658*-*-cygwin*)
10659 if test "$enable_shared" = "yes"; then
10660 WIN32LDFLAGS="-no-undefined"
10661 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
10662 fi
10663 ;;
78be1d6e 10664*-*-linux*)
39691762
L
10665 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
10666 # libiberty.a.
ca51bfff
L
10667 case "${host}" in
10668 mips*-*-linux*)
10669 # Linux/MIPS uses PIC by default.
10670 if test "$enable_shared" = "yes"; then
10671 WIN32LIBADD="-L../libiberty -liberty"
10672 fi
10673 ;;
10674 *)
66e25bab 10675 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 10676 if test -n "$x"; then
ca51bfff
L
10677 WIN32LIBADD="-L../libiberty/pic -liberty"
10678 fi
10679 ;;
10680 esac
39691762 10681 ;;
252b5132
RH
10682esac
10683
6be7c12c
AO
10684
10685
252b5132
RH
10686# target stuff:
10687
10688# Canonicalize the secondary target names.
10689if test -n "$enable_targets" ; then
10690 for targ in `echo $enable_targets | sed 's/,/ /g'`
10691 do
6d83c84b 10692 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10693 if test -n "$result" ; then
10694 canon_targets="$canon_targets $result"
10695 else
10696 # Allow targets that config.sub doesn't recognize, like "all".
10697 canon_targets="$canon_targets $targ"
10698 fi
10699 done
10700fi
10701
10702all_targets=false
10703defvec=
10704selvecs=
08f74004 10705assocvecs=
252b5132
RH
10706selarchs=
10707TDEFINES=
10708for targ in $target $canon_targets
10709do
10710 if test "x$targ" = "xall"; then
10711 all_targets=true
08f74004 10712 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
10713 else
10714 . $srcdir/config.bfd
10715 if test "x$targ" = "x$target"; then
10716 defvec=$targ_defvec
10717 fi
10718 selvecs="$selvecs $targ_defvec $targ_selvecs"
10719 selarchs="$selarchs $targ_archs"
10720 TDEFINES="$TDEFINES $targ_cflags"
10721 fi
10722done
10723
6be7c12c 10724
252b5132
RH
10725# This processing still needs to be done if we're to decide properly whether
10726# 64-bit support needs to be compiled in. Currently, it will be included if
10727# the default or any other explicitly requested target requires it; it
10728# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 10729# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
10730# used.
10731
10732# uniq the default and selected vectors in all the configured targets.
10733f=""
10734for i in $selvecs ; do
10735 case " $f " in
10736 *" $i "*) ;;
10737 *) f="$f $i" ;;
10738 esac
10739done
10740selvecs="$f"
10741
6be7c12c 10742
08f74004
AM
10743# uniq the associated vectors in all the configured targets.
10744f=""
10745for i in $assocvecs ; do
10746 case " $f " in
10747 *" $i "*) ;;
10748 *) f="$f $i" ;;
10749 esac
10750done
10751assocvecs="$f"
10752
10753
252b5132
RH
10754# uniq the architectures in all the configured targets.
10755f=""
10756for i in $selarchs ; do
10757 case " $f " in
10758 *" $i "*) ;;
10759 *) f="$f $i" ;;
10760 esac
10761done
10762selarchs="$f"
10763
10764# Target backend .o files.
10765tb=
10766
65765700 10767elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
10768
10769for vec in $selvecs
10770do
69263e90 10771 target_size=32
252b5132
RH
10772 case "$vec" in
10773 # This list is alphabetized to make it easy to compare
dc810e39
AM
10774 # with the two vector lists in targets.c. For the same reason,
10775 # use one entry per line, even though this leads to long lines.
252b5132 10776 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 10777 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
10778 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
10779 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
10780 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 10781 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
10782 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10783 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
10784 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
10785 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7148cc28
NC
10786 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10787 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
10788 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
10789 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
dc810e39
AM
10790 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10791 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
10792 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
10793 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10794 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
10795 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
10796 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
10797 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
10798 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 10799 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 10800 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 10801 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 10802 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
0f64bb02 10803 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
48d502e1 10804 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
dc810e39 10805 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 10806 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
00a97672 10807 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e5a52504 10808 bfd_elf32_bigarm_symbian_vec)
00a97672 10809 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10810 bfd_elf32_bigarm_vxworks_vec)
00a97672 10811 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10812 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10813 bfd_elf32_bigmips_vxworks_vec)
10814 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 10815 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 10816 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 10817 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
10818 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
10819 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 10820 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 10821 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 10822 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 10823 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 10824 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 10825 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 10826 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 10827 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 10828 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
eac338cf
PB
10829 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10830 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
10831 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
9d751335 10832 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 10833 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 10834 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 10835 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 10836 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 10837 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 10838 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 10839 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 10840 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 10841 bfd_elf32_littlearm_symbian_vec)
00a97672 10842 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4e7fd91e 10843 bfd_elf32_littlearm_vxworks_vec)
00a97672
RS
10844 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
10845 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
0a44bf69
RS
10846 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10847 bfd_elf32_littlemips_vxworks_vec)
10848 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
e729279b 10849 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
252b5132 10850 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
10851 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10852 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
10853 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
10854 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
10855 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
10856 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
10857 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
10858 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10859 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
10860 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
10861 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
d031aafb 10862 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
2469cfa2 10863 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
0a44bf69
RS
10864 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10865 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10866 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
10867 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 10868 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 10869 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
10870 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
10871 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
9d8504b1
PB
10872 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10873 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
10874 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
a85d7ed0 10875 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
1c0d3aa6
NC
10876 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
10877 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;;
eb1e0e80
NC
10878 # FIXME: We include cofflink.lo not because it's needed for
10879 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
10880 # which needs it but does not list it. Should be fixed in right place.
55e6e397
RS
10881 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10882 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10883 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10884 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
10885 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10886 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
10887 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10888 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10889 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10890 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
10891 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10892 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
10893 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
7b12cedc 10894 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
55e6e397 10895 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
910600e9
RS
10896 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
10897 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
0a44bf69
RS
10898 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
10899 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 10900 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 10901 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 10902 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 10903 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
d70c5fc7 10904 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
e0001a05
NC
10905 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
10906 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 10907 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10908 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
10909 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10910 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
10911 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
10912 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10913 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 10914 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
10915 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
10916 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69 10917 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 10918 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
10919 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
10920 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
10921 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
10922 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10923 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
10924 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10925 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10926 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
10927 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
910600e9 10928 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
71a75f6f 10929 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
0a44bf69
RS
10930 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 ;;
10931 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 10932 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 10933 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 10934 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
10935 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10936 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
10937 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
10938 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 10939 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 10940 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 10941 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 10942 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
10943 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
10944 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
10945 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
10946 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
10947 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
10948 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
10949 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
10950 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
10951 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
10952 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
10953 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
10954 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
99ad8390 10955 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
10956 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
10957 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
10958 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
10959 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
10960 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
10961 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 10962 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
10963 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
10964 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
10965 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
10966 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
99ad8390
NC
10967 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
10968 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
252b5132
RH
10969 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
10970 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10971 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
10972 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
10973 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
10974 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
10975 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
10976 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
10977 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
252b5132 10978 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
10979 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
10980 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 10981 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 10982 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 10983 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
10984 mach_o_be_vec) tb="$tb mach-o.lo" ;;
10985 mach_o_le_vec) tb="$tb mach-o.lo" ;;
10986 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
10987 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
10988 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
10989 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
10990 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
10991 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
10992 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 10993 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 10994 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 10995 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 10996 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 10997 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 10998 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 10999 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11000 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11001 pef_vec) tb="$tb pef.lo" ;;
11002 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11003 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11004 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11005 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11006 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11007 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11008 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11009 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11010 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11011 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11012 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11013 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11014 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11015 som_vec) tb="$tb som.lo" ;;
dc810e39 11016 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11017 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11018 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11019 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11020 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11021 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11022 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11023 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11024 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11025 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11026 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11027 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11028 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11029 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11030 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11031 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11032 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11033 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11034 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11035 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11036 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11037 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11038 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11039 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11040 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11041 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11042 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11043 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11044 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11045 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11046 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
3c9b82ba 11047 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
c0524131 11048 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
252b5132 11049
341ca622
AM
11050 # These appear out of order in targets.c
11051 srec_vec) tb="$tb srec.lo" ;;
11052 symbolsrec_vec) tb="$tb srec.lo" ;;
11053 tekhex_vec) tb="$tb tekhex.lo" ;;
11054 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11055 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11056
252b5132 11057 "") ;;
5464f5a1
NN
11058 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11059echo "$as_me: error: *** unknown target vector $vec" >&2;}
11060 { (exit 1); exit 1; }; } ;;
252b5132 11061 esac
69263e90
AM
11062
11063 if test ${target_size} = 64; then
11064 target64=true
11065 fi
11066 if test x"${vec}" = x"${defvec}"; then
11067 bfd_default_target_size=${target_size}
11068 fi
252b5132
RH
11069done
11070
11071# Target architecture .o files.
11072# A couple of CPUs use shorter file names to avoid problems on DOS
11073# filesystems.
d031aafb 11074ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
11075
11076# Weed out duplicate .o files.
11077f=""
11078for i in $tb ; do
11079 case " $f " in
11080 *" $i "*) ;;
11081 *) f="$f $i" ;;
11082 esac
11083done
11084tb="$f"
11085
11086f=""
11087for i in $ta ; do
11088 case " $f " in
11089 *" $i "*) ;;
11090 *) f="$f $i" ;;
11091 esac
11092done
11093ta="$f"
11094
11095bfd_backends="$tb"
11096bfd_machines="$ta"
11097
11098if test x${all_targets} = xtrue ; then
11099 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11100 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11101 selvecs=
11102 havevecs=
11103 selarchs=
08f74004
AM
11104 test -n "$assocvecs" &&
11105 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11106else # all_targets is true
11107 # Only set these if they will be nonempty, for the clever echo.
11108 havevecs=
08f74004 11109 assocvecs=
252b5132
RH
11110 test -n "$selvecs" &&
11111 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11112 test -n "$selvecs" &&
11113 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11114 test -n "$selarchs" &&
11115 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11116fi # all_targets is true
11117
11118case ${host64}-${target64}-${want64} in
11119 *true*)
11120 wordsize=64
2858ef35 11121 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11122 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11123 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11124 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11125echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11126 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11127echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11128 fi
966abd70
HPN
11129 if test -n "$GCC" ; then
11130 bad_64bit_gcc=no;
5464f5a1
NN
11131 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11132echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11133 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11134 cat >conftest.$ac_ext <<_ACEOF
11135/* confdefs.h. */
11136_ACEOF
11137cat confdefs.h >>conftest.$ac_ext
11138cat >>conftest.$ac_ext <<_ACEOF
11139/* end confdefs.h. */
966abd70 11140:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11141_ACEOF
966abd70 11142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11143 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11144 bad_64bit_gcc=yes;
5464f5a1
NN
11145 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11146echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11147else
5464f5a1
NN
11148 echo "$as_me:$LINENO: result: no" >&5
11149echo "${ECHO_T}no" >&6
966abd70
HPN
11150fi
11151rm -f conftest*
11152
11153 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11154 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11155echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11156 { (exit 1); exit 1; }; }
966abd70
HPN
11157 fi
11158 fi
252b5132
RH
11159 ;;
11160 false-false-false)
11161 wordsize=32
2858ef35 11162 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11163 all_backends='$(BFD32_BACKENDS)'
11164 ;;
11165esac
11166
6be7c12c
AO
11167
11168
11169
11170
11171
69263e90 11172
2858ef35 11173
1012372a
AC
11174# Determine the host dependant file_ptr a.k.a. off_t type. In order
11175# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11176# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11177# Hopefully a reasonable assumption since fseeko et.al. should be
11178# upward compatible.
5464f5a1
NN
11179
11180
11181
11182
2e6f4fae
DJ
11183
11184for ac_func in ftello ftello64 fseeko fseeko64 fopen64
1012372a 11185do
5464f5a1
NN
11186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187echo "$as_me:$LINENO: checking for $ac_func" >&5
11188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11189if eval "test \"\${$as_ac_var+set}\" = set"; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191else
2ba49b59
KC
11192 cat >conftest.$ac_ext <<_ACEOF
11193/* confdefs.h. */
11194_ACEOF
11195cat confdefs.h >>conftest.$ac_ext
11196cat >>conftest.$ac_ext <<_ACEOF
11197/* end confdefs.h. */
11198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11200#define $ac_func innocuous_$ac_func
11201
11202/* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func (); below.
11204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205 <limits.h> exists even on freestanding compilers. */
11206
11207#ifdef __STDC__
11208# include <limits.h>
11209#else
11210# include <assert.h>
11211#endif
11212
11213#undef $ac_func
11214
11215/* Override any gcc2 internal prototype to avoid an error. */
11216#ifdef __cplusplus
11217extern "C"
11218{
11219#endif
11220/* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11222char $ac_func ();
11223/* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11227choke me
11228#else
11229char (*f) () = $ac_func;
11230#endif
11231#ifdef __cplusplus
11232}
11233#endif
11234
11235int
11236main ()
11237{
11238return f != $ac_func;
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243rm -f conftest.$ac_objext conftest$ac_exeext
11244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11245 (eval $ac_link) 2>conftest.er1
11246 ac_status=$?
11247 grep -v '^ *+' conftest.er1 >conftest.err
11248 rm -f conftest.er1
11249 cat conftest.err >&5
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
49c96104
SE
11252 { ac_try='test -z "$ac_c_werror_flag"
11253 || test ! -s conftest.err'
2ba49b59
KC
11254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11255 (eval $ac_try) 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; } &&
11259 { ac_try='test -s conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 eval "$as_ac_var=yes"
11266else
11267 echo "$as_me: failed program was:" >&5
11268sed 's/^/| /' conftest.$ac_ext >&5
11269
11270eval "$as_ac_var=no"
11271fi
11272rm -f conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274fi
11275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11277if test `eval echo '${'$as_ac_var'}'` = yes; then
11278 cat >>confdefs.h <<_ACEOF
11279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280_ACEOF
11281
11282fi
11283done
11284
11285if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11286 echo "$as_me:$LINENO: checking for off_t" >&5
11287echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11288if test "${ac_cv_type_off_t+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297$ac_includes_default
11298int
11299main ()
11300{
11301if ((off_t *) 0)
11302 return 0;
11303if (sizeof (off_t))
11304 return 0;
11305 ;
11306 return 0;
11307}
11308_ACEOF
11309rm -f conftest.$ac_objext
11310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11311 (eval $ac_compile) 2>conftest.er1
11312 ac_status=$?
11313 grep -v '^ *+' conftest.er1 >conftest.err
11314 rm -f conftest.er1
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
49c96104
SE
11318 { ac_try='test -z "$ac_c_werror_flag"
11319 || test ! -s conftest.err'
2ba49b59
KC
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try='test -s conftest.$ac_objext'
11326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327 (eval $ac_try) 2>&5
11328 ac_status=$?
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); }; }; then
11331 ac_cv_type_off_t=yes
11332else
11333 echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336ac_cv_type_off_t=no
11337fi
11338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11339fi
11340echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11341echo "${ECHO_T}$ac_cv_type_off_t" >&6
11342
11343echo "$as_me:$LINENO: checking size of off_t" >&5
11344echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11345if test "${ac_cv_sizeof_off_t+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11347else
11348 if test "$ac_cv_type_off_t" = yes; then
11349 # The cast to unsigned long works around a bug in the HP C Compiler
11350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11352 # This bug is HP SR number 8606223364.
11353 if test "$cross_compiling" = yes; then
11354 # Depending upon the size, compute the lo and hi bounds.
11355cat >conftest.$ac_ext <<_ACEOF
5464f5a1
NN
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
2ba49b59
KC
11361$ac_includes_default
11362int
11363main ()
11364{
11365static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
11366test_array [0] = 0
5464f5a1 11367
2ba49b59
KC
11368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext
11373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374 (eval $ac_compile) 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } &&
49c96104
SE
11381 { ac_try='test -z "$ac_c_werror_flag"
11382 || test ! -s conftest.err'
2ba49b59
KC
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; } &&
11388 { ac_try='test -s conftest.$ac_objext'
11389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390 (eval $ac_try) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; }; then
11394 ac_lo=0 ac_mid=0
11395 while :; do
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402$ac_includes_default
11403int
11404main ()
11405{
11406static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11407test_array [0] = 0
5464f5a1 11408
2ba49b59
KC
11409 ;
11410 return 0;
11411}
11412_ACEOF
11413rm -f conftest.$ac_objext
11414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } &&
49c96104
SE
11422 { ac_try='test -z "$ac_c_werror_flag"
11423 || test ! -s conftest.err'
2ba49b59
KC
11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11426 ac_status=$?
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_hi=$ac_mid; break
11436else
11437 echo "$as_me: failed program was:" >&5
11438sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11439
2ba49b59
KC
11440ac_lo=`expr $ac_mid + 1`
11441 if test $ac_lo -le $ac_mid; then
11442 ac_lo= ac_hi=
11443 break
11444 fi
11445 ac_mid=`expr 2 '*' $ac_mid + 1`
11446fi
11447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11448 done
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11452
2ba49b59
KC
11453cat >conftest.$ac_ext <<_ACEOF
11454/* confdefs.h. */
11455_ACEOF
11456cat confdefs.h >>conftest.$ac_ext
11457cat >>conftest.$ac_ext <<_ACEOF
11458/* end confdefs.h. */
11459$ac_includes_default
11460int
11461main ()
5464f5a1 11462{
2ba49b59
KC
11463static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
11464test_array [0] = 0
1012372a 11465
2ba49b59
KC
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext
11471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>conftest.er1
11473 ac_status=$?
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
49c96104
SE
11479 { ac_try='test -z "$ac_c_werror_flag"
11480 || test ! -s conftest.err'
2ba49b59
KC
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest.$ac_objext'
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_hi=-1 ac_mid=-1
11493 while :; do
11494 cat >conftest.$ac_ext <<_ACEOF
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500$ac_includes_default
5464f5a1
NN
11501int
11502main ()
11503{
2ba49b59
KC
11504static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
11505test_array [0] = 0
11506
5464f5a1
NN
11507 ;
11508 return 0;
11509}
11510_ACEOF
2ba49b59
KC
11511rm -f conftest.$ac_objext
11512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>conftest.er1
5464f5a1
NN
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
49c96104
SE
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
5464f5a1
NN
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
2ba49b59 11527 { ac_try='test -s conftest.$ac_objext'
5464f5a1
NN
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
2ba49b59 11533 ac_lo=$ac_mid; break
5464f5a1
NN
11534else
11535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
11537
2ba49b59
KC
11538ac_hi=`expr '(' $ac_mid ')' - 1`
11539 if test $ac_mid -le $ac_hi; then
11540 ac_lo= ac_hi=
11541 break
11542 fi
11543 ac_mid=`expr 2 '*' $ac_mid`
5464f5a1 11544fi
2ba49b59
KC
11545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11546 done
11547else
11548 echo "$as_me: failed program was:" >&5
11549sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11550
2ba49b59 11551ac_lo= ac_hi=
1012372a 11552fi
2ba49b59
KC
11553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554fi
11555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11556# Binary search between lo and hi bounds.
11557while test "x$ac_lo" != "x$ac_hi"; do
11558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5464f5a1
NN
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
2ba49b59 11565$ac_includes_default
5464f5a1
NN
11566int
11567main ()
11568{
2ba49b59
KC
11569static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
11570test_array [0] = 0
11571
5464f5a1
NN
11572 ;
11573 return 0;
11574}
11575_ACEOF
11576rm -f conftest.$ac_objext
11577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11578 (eval $ac_compile) 2>conftest.er1
11579 ac_status=$?
11580 grep -v '^ *+' conftest.er1 >conftest.err
11581 rm -f conftest.er1
11582 cat conftest.err >&5
11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } &&
49c96104
SE
11585 { ac_try='test -z "$ac_c_werror_flag"
11586 || test ! -s conftest.err'
5464f5a1
NN
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; } &&
11592 { ac_try='test -s conftest.$ac_objext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
2ba49b59 11598 ac_hi=$ac_mid
1012372a 11599else
5464f5a1
NN
11600 echo "$as_me: failed program was:" >&5
11601sed 's/^/| /' conftest.$ac_ext >&5
11602
2ba49b59 11603ac_lo=`expr '(' $ac_mid ')' + 1`
1012372a 11604fi
5464f5a1 11605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a 11606done
2ba49b59
KC
11607case $ac_lo in
11608?*) ac_cv_sizeof_off_t=$ac_lo;;
11609'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11610See \`config.log' for more details." >&5
11611echo "$as_me: error: cannot compute sizeof (off_t), 77
11612See \`config.log' for more details." >&2;}
11613 { (exit 1); exit 1; }; } ;;
11614esac
11615else
11616 if test "$cross_compiling" = yes; then
49c96104
SE
11617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11618See \`config.log' for more details." >&5
11619echo "$as_me: error: cannot run test program while cross compiling
11620See \`config.log' for more details." >&2;}
2ba49b59
KC
11621 { (exit 1); exit 1; }; }
11622else
11623 cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
11629$ac_includes_default
11630long longval () { return (long) (sizeof (off_t)); }
11631unsigned long ulongval () { return (long) (sizeof (off_t)); }
11632#include <stdio.h>
11633#include <stdlib.h>
11634int
11635main ()
11636{
1012372a 11637
2ba49b59
KC
11638 FILE *f = fopen ("conftest.val", "w");
11639 if (! f)
11640 exit (1);
11641 if (((long) (sizeof (off_t))) < 0)
11642 {
11643 long i = longval ();
11644 if (i != ((long) (sizeof (off_t))))
11645 exit (1);
11646 fprintf (f, "%ld\n", i);
11647 }
11648 else
11649 {
11650 unsigned long i = ulongval ();
11651 if (i != ((long) (sizeof (off_t))))
11652 exit (1);
11653 fprintf (f, "%lu\n", i);
11654 }
11655 exit (ferror (f) || fclose (f) != 0);
11656
11657 ;
11658 return 0;
11659}
11660_ACEOF
11661rm -f conftest$ac_exeext
11662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>&5
11664 ac_status=$?
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 ac_cv_sizeof_off_t=`cat conftest.val`
11673else
11674 echo "$as_me: program exited with status $ac_status" >&5
11675echo "$as_me: failed program was:" >&5
11676sed 's/^/| /' conftest.$ac_ext >&5
1012372a 11677
2ba49b59
KC
11678( exit $ac_status )
11679{ { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
11680See \`config.log' for more details." >&5
11681echo "$as_me: error: cannot compute sizeof (off_t), 77
11682See \`config.log' for more details." >&2;}
5464f5a1 11683 { (exit 1); exit 1; }; }
1012372a 11684fi
2ba49b59
KC
11685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11686fi
11687fi
11688rm -f conftest.val
11689else
11690 ac_cv_sizeof_off_t=0
11691fi
11692fi
5464f5a1
NN
11693echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11694echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
5464f5a1 11695cat >>confdefs.h <<_ACEOF
1012372a 11696#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 11697_ACEOF
1012372a
AC
11698
11699
1012372a 11700fi
5464f5a1
NN
11701echo "$as_me:$LINENO: checking file_ptr type" >&5
11702echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
11703bfd_file_ptr="long"
11704bfd_ufile_ptr="unsigned long"
11705if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11706 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
11707 bfd_file_ptr=BFD_HOST_64_BIT
11708 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11709fi
5464f5a1
NN
11710echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11711echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
11712
11713
11714
11715
252b5132
RH
11716tdefaults=""
11717test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
11718test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 11719test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
11720test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
11721test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
11722
6be7c12c 11723
5464f5a1
NN
11724
11725
11726for ac_header in stdlib.h unistd.h
252b5132 11727do
5464f5a1
NN
11728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734fi
11735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737else
11738 # Is the header compilable?
11739echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741cat >conftest.$ac_ext <<_ACEOF
11742/* confdefs.h. */
11743_ACEOF
11744cat confdefs.h >>conftest.$ac_ext
11745cat >>conftest.$ac_ext <<_ACEOF
11746/* end confdefs.h. */
11747$ac_includes_default
11748#include <$ac_header>
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
49c96104
SE
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
5464f5a1
NN
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11773else
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
11777ac_header_compiler=no
11778fi
11779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781echo "${ECHO_T}$ac_header_compiler" >&6
11782
11783# Is the header present?
11784echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786cat >conftest.$ac_ext <<_ACEOF
11787/* confdefs.h. */
11788_ACEOF
11789cat confdefs.h >>conftest.$ac_ext
11790cat >>conftest.$ac_ext <<_ACEOF
11791/* end confdefs.h. */
11792#include <$ac_header>
11793_ACEOF
11794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805 else
11806 ac_cpp_err=
11807 fi
252b5132 11808else
5464f5a1 11809 ac_cpp_err=yes
252b5132 11810fi
5464f5a1
NN
11811if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11813else
11814 echo "$as_me: failed program was:" >&5
11815sed 's/^/| /' conftest.$ac_ext >&5
11816
11817 ac_header_preproc=no
252b5132 11818fi
5464f5a1
NN
11819rm -f conftest.err conftest.$ac_ext
11820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821echo "${ECHO_T}$ac_header_preproc" >&6
11822
11823# So? What about this header?
11824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 yes:no: )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11831 ;;
11832 no:yes:* )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845 (
11846 cat <<\_ASBOX
11847## ------------------------------------------ ##
11848## Report this to the AC_PACKAGE_NAME lists. ##
11849## ------------------------------------------ ##
11850_ASBOX
11851 ) |
11852 sed "s/^/$as_me: WARNING: /" >&2
11853 ;;
11854esac
11855echo "$as_me:$LINENO: checking for $ac_header" >&5
11856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 11859else
5464f5a1
NN
11860 eval "$as_ac_Header=\$ac_header_preproc"
11861fi
11862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864
11865fi
11866if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869_ACEOF
11870
252b5132 11871fi
5464f5a1 11872
252b5132
RH
11873done
11874
5464f5a1 11875
252b5132
RH
11876for ac_func in getpagesize
11877do
5464f5a1
NN
11878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11879echo "$as_me:$LINENO: checking for $ac_func" >&5
11880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11881if eval "test \"\${$as_ac_var+set}\" = set"; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883else
11884 cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11892#define $ac_func innocuous_$ac_func
11893
252b5132 11894/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11895 which can conflict with char $ac_func (); below.
11896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11897 <limits.h> exists even on freestanding compilers. */
11898
11899#ifdef __STDC__
11900# include <limits.h>
11901#else
11902# include <assert.h>
11903#endif
6be7c12c 11904
5464f5a1 11905#undef $ac_func
252b5132 11906
5464f5a1
NN
11907/* Override any gcc2 internal prototype to avoid an error. */
11908#ifdef __cplusplus
11909extern "C"
11910{
11911#endif
11912/* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914char $ac_func ();
252b5132
RH
11915/* The GNU C library defines this for functions which it implements
11916 to always fail with ENOSYS. Some functions are actually named
11917 something starting with __ and the normal name is an alias. */
11918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11919choke me
11920#else
5464f5a1
NN
11921char (*f) () = $ac_func;
11922#endif
11923#ifdef __cplusplus
11924}
252b5132
RH
11925#endif
11926
5464f5a1
NN
11927int
11928main ()
11929{
11930return f != $ac_func;
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935rm -f conftest.$ac_objext conftest$ac_exeext
11936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11937 (eval $ac_link) 2>conftest.er1
11938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
49c96104
SE
11944 { ac_try='test -z "$ac_c_werror_flag"
11945 || test ! -s conftest.err'
5464f5a1
NN
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11948 ac_status=$?
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest$ac_exeext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11957 eval "$as_ac_var=yes"
11958else
11959 echo "$as_me: failed program was:" >&5
11960sed 's/^/| /' conftest.$ac_ext >&5
11961
11962eval "$as_ac_var=no"
11963fi
11964rm -f conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966fi
11967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11969if test `eval echo '${'$as_ac_var'}'` = yes; then
11970 cat >>confdefs.h <<_ACEOF
11971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11972_ACEOF
252b5132 11973
252b5132
RH
11974fi
11975done
11976
5464f5a1
NN
11977echo "$as_me:$LINENO: checking for working mmap" >&5
11978echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
11979if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
11981else
11982 if test "$cross_compiling" = yes; then
11983 ac_cv_func_mmap_fixed_mapped=no
11984else
5464f5a1
NN
11985 cat >conftest.$ac_ext <<_ACEOF
11986/* confdefs.h. */
11987_ACEOF
11988cat confdefs.h >>conftest.$ac_ext
11989cat >>conftest.$ac_ext <<_ACEOF
11990/* end confdefs.h. */
11991$ac_includes_default
11992/* malloc might have been renamed as rpl_malloc. */
11993#undef malloc
6be7c12c 11994
252b5132
RH
11995/* Thanks to Mike Haertel and Jim Avera for this test.
11996 Here is a matrix of mmap possibilities:
11997 mmap private not fixed
11998 mmap private fixed at somewhere currently unmapped
11999 mmap private fixed at somewhere already mapped
12000 mmap shared not fixed
12001 mmap shared fixed at somewhere currently unmapped
12002 mmap shared fixed at somewhere already mapped
12003 For private mappings, we should verify that changes cannot be read()
12004 back from the file, nor mmap's back from the file at a different
12005 address. (There have been systems where private was not correctly
12006 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12007 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12008 like early versions of FreeBSD and possibly contemporary NetBSD.)
12009 For shared mappings, we should conversely verify that changes get
5464f5a1 12010 propagated back to all the places they're supposed to be.
252b5132
RH
12011
12012 Grep wants private fixed already mapped.
12013 The main things grep needs to know about mmap are:
12014 * does it exist and is it safe to write into the mmap'd area
12015 * how to use it (BSD variants) */
5464f5a1 12016
252b5132
RH
12017#include <fcntl.h>
12018#include <sys/mman.h>
12019
5464f5a1
NN
12020#if !STDC_HEADERS && !HAVE_STDLIB_H
12021char *malloc ();
12022#endif
6be7c12c 12023
5464f5a1
NN
12024/* This mess was copied from the GNU getpagesize.h. */
12025#if !HAVE_GETPAGESIZE
252b5132 12026/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12027# if !HAVE_SYS_PARAM_H
252b5132
RH
12028# define HAVE_SYS_PARAM_H 1
12029# endif
12030
12031# ifdef _SC_PAGESIZE
12032# define getpagesize() sysconf(_SC_PAGESIZE)
12033# else /* no _SC_PAGESIZE */
5464f5a1 12034# if HAVE_SYS_PARAM_H
252b5132
RH
12035# include <sys/param.h>
12036# ifdef EXEC_PAGESIZE
12037# define getpagesize() EXEC_PAGESIZE
12038# else /* no EXEC_PAGESIZE */
12039# ifdef NBPG
12040# define getpagesize() NBPG * CLSIZE
12041# ifndef CLSIZE
12042# define CLSIZE 1
12043# endif /* no CLSIZE */
12044# else /* no NBPG */
12045# ifdef NBPC
12046# define getpagesize() NBPC
12047# else /* no NBPC */
12048# ifdef PAGESIZE
12049# define getpagesize() PAGESIZE
12050# endif /* PAGESIZE */
12051# endif /* no NBPC */
12052# endif /* no NBPG */
12053# endif /* no EXEC_PAGESIZE */
12054# else /* no HAVE_SYS_PARAM_H */
12055# define getpagesize() 8192 /* punt totally */
12056# endif /* no HAVE_SYS_PARAM_H */
12057# endif /* no _SC_PAGESIZE */
12058
5464f5a1
NN
12059#endif /* no HAVE_GETPAGESIZE */
12060
12061int
12062main ()
12063{
12064 char *data, *data2, *data3;
12065 int i, pagesize;
12066 int fd;
12067
12068 pagesize = getpagesize ();
12069
12070 /* First, make a file with some known garbage in it. */
12071 data = (char *) malloc (pagesize);
12072 if (!data)
12073 exit (1);
12074 for (i = 0; i < pagesize; ++i)
12075 *(data + i) = rand ();
12076 umask (0);
12077 fd = creat ("conftest.mmap", 0600);
12078 if (fd < 0)
12079 exit (1);
12080 if (write (fd, data, pagesize) != pagesize)
12081 exit (1);
12082 close (fd);
12083
12084 /* Next, try to mmap the file at a fixed address which already has
12085 something else allocated at it. If we can, also make sure that
12086 we see the same garbage. */
12087 fd = open ("conftest.mmap", O_RDWR);
12088 if (fd < 0)
12089 exit (1);
12090 data2 = (char *) malloc (2 * pagesize);
12091 if (!data2)
12092 exit (1);
12093 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12094 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12095 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12096 exit (1);
12097 for (i = 0; i < pagesize; ++i)
12098 if (*(data + i) != *(data2 + i))
12099 exit (1);
12100
12101 /* Finally, make sure that changes to the mapped area do not
12102 percolate back to the file as seen by read(). (This is a bug on
12103 some variants of i386 svr4.0.) */
12104 for (i = 0; i < pagesize; ++i)
12105 *(data2 + i) = *(data2 + i) + 1;
12106 data3 = (char *) malloc (pagesize);
12107 if (!data3)
12108 exit (1);
12109 if (read (fd, data3, pagesize) != pagesize)
12110 exit (1);
12111 for (i = 0; i < pagesize; ++i)
12112 if (*(data + i) != *(data3 + i))
12113 exit (1);
12114 close (fd);
12115 exit (0);
12116}
12117_ACEOF
12118rm -f conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_func_mmap_fixed_mapped=yes
12130else
12131 echo "$as_me: program exited with status $ac_status" >&5
12132echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135( exit $ac_status )
12136ac_cv_func_mmap_fixed_mapped=no
12137fi
12138rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12139fi
12140fi
12141echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12142echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12143if test $ac_cv_func_mmap_fixed_mapped = yes; then
12144
12145cat >>confdefs.h <<\_ACEOF
12146#define HAVE_MMAP 1
12147_ACEOF
12148
12149fi
12150rm -f conftest.mmap
12151
12152
12153
12154for ac_func in madvise mprotect
12155do
12156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12157echo "$as_me:$LINENO: checking for $ac_func" >&5
12158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12159if eval "test \"\${$as_ac_var+set}\" = set"; then
12160 echo $ECHO_N "(cached) $ECHO_C" >&6
12161else
12162 cat >conftest.$ac_ext <<_ACEOF
12163/* confdefs.h. */
12164_ACEOF
12165cat confdefs.h >>conftest.$ac_ext
12166cat >>conftest.$ac_ext <<_ACEOF
12167/* end confdefs.h. */
12168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12170#define $ac_func innocuous_$ac_func
12171
12172/* System header to define __stub macros and hopefully few prototypes,
12173 which can conflict with char $ac_func (); below.
12174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12175 <limits.h> exists even on freestanding compilers. */
12176
12177#ifdef __STDC__
12178# include <limits.h>
12179#else
12180# include <assert.h>
12181#endif
12182
12183#undef $ac_func
12184
12185/* Override any gcc2 internal prototype to avoid an error. */
12186#ifdef __cplusplus
12187extern "C"
12188{
12189#endif
12190/* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12192char $ac_func ();
12193/* The GNU C library defines this for functions which it implements
12194 to always fail with ENOSYS. Some functions are actually named
12195 something starting with __ and the normal name is an alias. */
12196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12197choke me
12198#else
12199char (*f) () = $ac_func;
12200#endif
12201#ifdef __cplusplus
12202}
12203#endif
12204
12205int
12206main ()
12207{
12208return f != $ac_func;
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext conftest$ac_exeext
12214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12216 ac_status=$?
12217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
49c96104
SE
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
5464f5a1
NN
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 eval "$as_ac_var=yes"
12236else
12237 echo "$as_me: failed program was:" >&5
12238sed 's/^/| /' conftest.$ac_ext >&5
12239
12240eval "$as_ac_var=no"
12241fi
12242rm -f conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244fi
12245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12247if test `eval echo '${'$as_ac_var'}'` = yes; then
12248 cat >>confdefs.h <<_ACEOF
12249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12250_ACEOF
12251
12252fi
12253done
12254
12255case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12256 true+yes )
12257cat >>confdefs.h <<\_ACEOF
12258#define USE_MMAP 1
12259_ACEOF
12260 ;;
12261esac
12262
12263rm -f doc/config.status
12264 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12265
20e95c23 12266
5464f5a1
NN
12267 ac_config_commands="$ac_config_commands default"
12268
108a6f8e
CD
12269
12270
12271
12272
12273
5464f5a1
NN
12274cat >confcache <<\_ACEOF
12275# This file is a shell script that caches the results of configure
12276# tests run on this system so they can be shared between configure
12277# scripts and configure runs, see configure's option --config-cache.
12278# It is not useful on other systems. If it contains results you don't
12279# want to keep, you may remove or edit it.
12280#
12281# config.status only pays attention to the cache file if you give it
12282# the --recheck option to rerun configure.
12283#
12284# `ac_cv_env_foo' variables (set or unset) will be overridden when
12285# loading this file, other *unset* `ac_cv_foo' will be assigned the
12286# following values.
12287
12288_ACEOF
12289
12290# The following way of writing the cache mishandles newlines in values,
12291# but we know of no workaround that is simple, portable, and efficient.
12292# So, don't put newlines in cache variables' values.
12293# Ultrix sh set writes to stderr and can't be redirected directly,
12294# and sets the high bit in the cache file unless we assign to the vars.
12295{
12296 (set) 2>&1 |
12297 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12298 *ac_space=\ *)
12299 # `set' does not quote correctly, so add quotes (double-quote
12300 # substitution turns \\\\ into \\, and sed turns \\ into \).
12301 sed -n \
12302 "s/'/'\\\\''/g;
12303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12304 ;;
12305 *)
12306 # `set' quotes correctly as required by POSIX, so do not add quotes.
12307 sed -n \
12308 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12309 ;;
12310 esac;
12311} |
12312 sed '
12313 t clear
12314 : clear
12315 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12316 t end
12317 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12318 : end' >>confcache
12319if diff $cache_file confcache >/dev/null 2>&1; then :; else
12320 if test -w $cache_file; then
12321 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12322 cat confcache >$cache_file
12323 else
12324 echo "not updating unwritable cache $cache_file"
12325 fi
12326fi
12327rm -f confcache
12328
12329test "x$prefix" = xNONE && prefix=$ac_default_prefix
12330# Let make expand exec_prefix.
12331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12332
12333# VPATH may cause trouble with some makes, so we remove $(srcdir),
12334# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12335# trailing colons and then remove the whole line if VPATH becomes empty
12336# (actually we leave an empty line to preserve line numbers).
12337if test "x$srcdir" = x.; then
12338 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12339s/:*\$(srcdir):*/:/;
12340s/:*\${srcdir}:*/:/;
12341s/:*@srcdir@:*/:/;
12342s/^\([^=]*=[ ]*\):*/\1/;
12343s/:*$//;
12344s/^[^=]*=[ ]*$//;
12345}'
12346fi
12347
12348DEFS=-DHAVE_CONFIG_H
12349
12350ac_libobjs=
12351ac_ltlibobjs=
12352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12353 # 1. Remove the extension, and $U if already installed.
12354 ac_i=`echo "$ac_i" |
12355 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12356 # 2. Add them.
12357 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12358 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12359done
12360LIBOBJS=$ac_libobjs
12361
12362LTLIBOBJS=$ac_ltlibobjs
12363
12364
f5385ebf
AM
12365if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12366 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12367Usually this means the macro was only invoked conditionally." >&5
12368echo "$as_me: error: conditional \"AMDEP\" was never defined.
12369Usually this means the macro was only invoked conditionally." >&2;}
12370 { (exit 1); exit 1; }; }
12371fi
12372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12373 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12374Usually this means the macro was only invoked conditionally." >&5
12375echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12376Usually this means the macro was only invoked conditionally." >&2;}
12377 { (exit 1); exit 1; }; }
12378fi
12379if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12380 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12381Usually this means the macro was only invoked conditionally." >&5
12382echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12383Usually this means the macro was only invoked conditionally." >&2;}
12384 { (exit 1); exit 1; }; }
12385fi
12386if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12387 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12388Usually this means the macro was only invoked conditionally." >&5
12389echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12390Usually this means the macro was only invoked conditionally." >&2;}
12391 { (exit 1); exit 1; }; }
12392fi
5464f5a1
NN
12393
12394: ${CONFIG_STATUS=./config.status}
12395ac_clean_files_save=$ac_clean_files
12396ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12397{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12398echo "$as_me: creating $CONFIG_STATUS" >&6;}
12399cat >$CONFIG_STATUS <<_ACEOF
12400#! $SHELL
12401# Generated by $as_me.
12402# Run this file to recreate the current configuration.
12403# Compiler output produced by configure, useful for debugging
12404# configure, is in config.log if it exists.
12405
12406debug=false
12407ac_cs_recheck=false
12408ac_cs_silent=false
12409SHELL=\${CONFIG_SHELL-$SHELL}
12410_ACEOF
12411
12412cat >>$CONFIG_STATUS <<\_ACEOF
12413## --------------------- ##
12414## M4sh Initialization. ##
12415## --------------------- ##
12416
12417# Be Bourne compatible
12418if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12419 emulate sh
12420 NULLCMD=:
12421 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12422 # is contrary to our usage. Disable this feature.
12423 alias -g '${1+"$@"}'='"$@"'
12424elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12425 set -o posix
12426fi
12427DUALCASE=1; export DUALCASE # for MKS sh
12428
12429# Support unset when possible.
12430if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12431 as_unset=unset
12432else
12433 as_unset=false
12434fi
12435
12436
12437# Work around bugs in pre-3.0 UWIN ksh.
12438$as_unset ENV MAIL MAILPATH
12439PS1='$ '
12440PS2='> '
12441PS4='+ '
12442
12443# NLS nuisances.
12444for as_var in \
12445 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12446 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12447 LC_TELEPHONE LC_TIME
12448do
12449 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12450 eval $as_var=C; export $as_var
12451 else
12452 $as_unset $as_var
12453 fi
12454done
12455
12456# Required to use basename.
12457if expr a : '\(a\)' >/dev/null 2>&1; then
12458 as_expr=expr
12459else
12460 as_expr=false
12461fi
12462
12463if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12464 as_basename=basename
12465else
12466 as_basename=false
12467fi
252b5132 12468
6be7c12c 12469
5464f5a1
NN
12470# Name of the executable.
12471as_me=`$as_basename "$0" ||
12472$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12473 X"$0" : 'X\(//\)$' \| \
12474 X"$0" : 'X\(/\)$' \| \
12475 . : '\(.\)' 2>/dev/null ||
12476echo X/"$0" |
12477 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12478 /^X\/\(\/\/\)$/{ s//\1/; q; }
12479 /^X\/\(\/\).*/{ s//\1/; q; }
12480 s/.*/./; q'`
12481
12482
12483# PATH needs CR, and LINENO needs CR and PATH.
12484# Avoid depending upon Character Ranges.
12485as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12486as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12487as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12488as_cr_digits='0123456789'
12489as_cr_alnum=$as_cr_Letters$as_cr_digits
12490
12491# The user is always right.
12492if test "${PATH_SEPARATOR+set}" != set; then
12493 echo "#! /bin/sh" >conf$$.sh
12494 echo "exit 0" >>conf$$.sh
12495 chmod +x conf$$.sh
12496 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12497 PATH_SEPARATOR=';'
12498 else
12499 PATH_SEPARATOR=:
12500 fi
12501 rm -f conf$$.sh
12502fi
12503
12504
12505 as_lineno_1=$LINENO
12506 as_lineno_2=$LINENO
12507 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12508 test "x$as_lineno_1" != "x$as_lineno_2" &&
12509 test "x$as_lineno_3" = "x$as_lineno_2" || {
12510 # Find who we are. Look in the path if we contain no path at all
12511 # relative or not.
12512 case $0 in
12513 *[\\/]* ) as_myself=$0 ;;
12514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515for as_dir in $PATH
12516do
12517 IFS=$as_save_IFS
12518 test -z "$as_dir" && as_dir=.
12519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12520done
12521
12522 ;;
12523 esac
12524 # We did not find ourselves, most probably we were run as `sh COMMAND'
12525 # in which case we are not to be found in the path.
12526 if test "x$as_myself" = x; then
12527 as_myself=$0
12528 fi
12529 if test ! -f "$as_myself"; then
12530 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12531echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12532 { (exit 1); exit 1; }; }
12533 fi
12534 case $CONFIG_SHELL in
12535 '')
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12538do
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for as_base in sh bash ksh sh5; do
12542 case $as_dir in
12543 /*)
12544 if ("$as_dir/$as_base" -c '
12545 as_lineno_1=$LINENO
12546 as_lineno_2=$LINENO
12547 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12548 test "x$as_lineno_1" != "x$as_lineno_2" &&
12549 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12550 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12551 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12552 CONFIG_SHELL=$as_dir/$as_base
12553 export CONFIG_SHELL
12554 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12555 fi;;
12556 esac
12557 done
12558done
12559;;
12560 esac
12561
12562 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12563 # uniformly replaced by the line number. The first 'sed' inserts a
12564 # line-number line before each line; the second 'sed' does the real
12565 # work. The second script uses 'N' to pair each line-number line
12566 # with the numbered line, and appends trailing '-' during
12567 # substitution so that $LINENO is not a special case at line end.
12568 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12569 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12570 sed '=' <$as_myself |
12571 sed '
12572 N
12573 s,$,-,
12574 : loop
12575 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12576 t loop
12577 s,-$,,
12578 s,^['$as_cr_digits']*\n,,
12579 ' >$as_me.lineno &&
12580 chmod +x $as_me.lineno ||
12581 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12582echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12583 { (exit 1); exit 1; }; }
12584
12585 # Don't try to exec as it changes $[0], causing all sort of problems
12586 # (the dirname of $[0] is not the place where we might find the
12587 # original and so on. Autoconf is especially sensible to this).
12588 . ./$as_me.lineno
12589 # Exit status is that of the last command.
12590 exit
252b5132 12591}
6be7c12c 12592
5464f5a1
NN
12593
12594case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12595 *c*,-n*) ECHO_N= ECHO_C='
12596' ECHO_T=' ' ;;
12597 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12598 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12599esac
12600
12601if expr a : '\(a\)' >/dev/null 2>&1; then
12602 as_expr=expr
252b5132 12603else
5464f5a1 12604 as_expr=false
252b5132 12605fi
5464f5a1
NN
12606
12607rm -f conf$$ conf$$.exe conf$$.file
12608echo >conf$$.file
12609if ln -s conf$$.file conf$$ 2>/dev/null; then
12610 # We could just check for DJGPP; but this test a) works b) is more generic
12611 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12612 if test -f conf$$.exe; then
12613 # Don't use ln at all; we don't have any links
12614 as_ln_s='cp -p'
12615 else
12616 as_ln_s='ln -s'
12617 fi
12618elif ln conf$$.file conf$$ 2>/dev/null; then
12619 as_ln_s=ln
12620else
12621 as_ln_s='cp -p'
252b5132 12622fi
5464f5a1 12623rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 12624
5464f5a1
NN
12625if mkdir -p . 2>/dev/null; then
12626 as_mkdir_p=:
12627else
12628 test -d ./-p && rmdir ./-p
12629 as_mkdir_p=false
252b5132 12630fi
b3baf5d0 12631
5464f5a1 12632as_executable_p="test -f"
252b5132 12633
5464f5a1
NN
12634# Sed expression to map a string onto a valid CPP name.
12635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 12636
5464f5a1
NN
12637# Sed expression to map a string onto a valid variable name.
12638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 12639
252b5132 12640
5464f5a1
NN
12641# IFS
12642# We need space, tab and new line, in precisely that order.
12643as_nl='
12644'
12645IFS=" $as_nl"
252b5132 12646
5464f5a1
NN
12647# CDPATH.
12648$as_unset CDPATH
12649
12650exec 6>&1
12651
12652# Open the log real soon, to keep \$[0] and so on meaningful, and to
12653# report actual input values of CONFIG_FILES etc. instead of their
12654# values after options handling. Logging --version etc. is OK.
12655exec 5>>config.log
12656{
12657 echo
12658 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12659## Running $as_me. ##
12660_ASBOX
12661} >&5
12662cat >&5 <<_CSEOF
12663
12664This file was extended by $as_me, which was
12665generated by GNU Autoconf 2.59. Invocation command line was
12666
12667 CONFIG_FILES = $CONFIG_FILES
12668 CONFIG_HEADERS = $CONFIG_HEADERS
12669 CONFIG_LINKS = $CONFIG_LINKS
12670 CONFIG_COMMANDS = $CONFIG_COMMANDS
12671 $ $0 $@
12672
12673_CSEOF
12674echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12675echo >&5
12676_ACEOF
12677
12678# Files that config.status was made for.
12679if test -n "$ac_config_files"; then
12680 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 12681fi
5464f5a1
NN
12682
12683if test -n "$ac_config_headers"; then
12684 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 12685fi
252b5132 12686
5464f5a1
NN
12687if test -n "$ac_config_links"; then
12688 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 12689fi
252b5132 12690
5464f5a1
NN
12691if test -n "$ac_config_commands"; then
12692 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12693fi
252b5132 12694
5464f5a1
NN
12695cat >>$CONFIG_STATUS <<\_ACEOF
12696
12697ac_cs_usage="\
12698\`$as_me' instantiates files from templates according to the
12699current configuration.
12700
12701Usage: $0 [OPTIONS] [FILE]...
12702
12703 -h, --help print this help, then exit
12704 -V, --version print version number, then exit
12705 -q, --quiet do not print progress messages
12706 -d, --debug don't remove temporary files
12707 --recheck update $as_me by reconfiguring in the same conditions
12708 --file=FILE[:TEMPLATE]
12709 instantiate the configuration file FILE
12710 --header=FILE[:TEMPLATE]
12711 instantiate the configuration header FILE
12712
12713Configuration files:
12714$config_files
12715
12716Configuration headers:
12717$config_headers
12718
12719Configuration commands:
12720$config_commands
12721
12722Report bugs to <bug-autoconf@gnu.org>."
12723_ACEOF
12724
12725cat >>$CONFIG_STATUS <<_ACEOF
12726ac_cs_version="\\
12727config.status
12728configured by $0, generated by GNU Autoconf 2.59,
12729 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12730
12731Copyright (C) 2003 Free Software Foundation, Inc.
12732This config.status script is free software; the Free Software Foundation
12733gives unlimited permission to copy, distribute and modify it."
12734srcdir=$srcdir
12735INSTALL="$INSTALL"
12736_ACEOF
12737
12738cat >>$CONFIG_STATUS <<\_ACEOF
12739# If no file are specified by the user, then we need to provide default
12740# value. By we need to know if files were specified by the user.
12741ac_need_defaults=:
12742while test $# != 0
12743do
12744 case $1 in
12745 --*=*)
12746 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12747 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12748 ac_shift=:
6be7c12c 12749 ;;
5464f5a1
NN
12750 -*)
12751 ac_option=$1
12752 ac_optarg=$2
12753 ac_shift=shift
6be7c12c 12754 ;;
5464f5a1
NN
12755 *) # This is not an option, so the user has probably given explicit
12756 # arguments.
12757 ac_option=$1
12758 ac_need_defaults=false;;
12759 esac
252b5132 12760
5464f5a1
NN
12761 case $ac_option in
12762 # Handling of the options.
12763_ACEOF
12764cat >>$CONFIG_STATUS <<\_ACEOF
12765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12766 ac_cs_recheck=: ;;
12767 --version | --vers* | -V )
12768 echo "$ac_cs_version"; exit 0 ;;
12769 --he | --h)
12770 # Conflict between --help and --header
12771 { { echo "$as_me:$LINENO: error: ambiguous option: $1
12772Try \`$0 --help' for more information." >&5
12773echo "$as_me: error: ambiguous option: $1
12774Try \`$0 --help' for more information." >&2;}
12775 { (exit 1); exit 1; }; };;
12776 --help | --hel | -h )
12777 echo "$ac_cs_usage"; exit 0 ;;
12778 --debug | --d* | -d )
12779 debug=: ;;
12780 --file | --fil | --fi | --f )
12781 $ac_shift
12782 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12783 ac_need_defaults=false;;
12784 --header | --heade | --head | --hea )
12785 $ac_shift
12786 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12787 ac_need_defaults=false;;
12788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12789 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12790 ac_cs_silent=: ;;
6be7c12c 12791
5464f5a1
NN
12792 # This is an error.
12793 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12794Try \`$0 --help' for more information." >&5
12795echo "$as_me: error: unrecognized option: $1
12796Try \`$0 --help' for more information." >&2;}
12797 { (exit 1); exit 1; }; } ;;
252b5132 12798
5464f5a1 12799 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 12800
5464f5a1
NN
12801 esac
12802 shift
12803done
6be7c12c 12804
5464f5a1 12805ac_configure_extra_args=
252b5132 12806
5464f5a1
NN
12807if $ac_cs_silent; then
12808 exec 6>/dev/null
12809 ac_configure_extra_args="$ac_configure_extra_args --silent"
12810fi
6be7c12c 12811
5464f5a1
NN
12812_ACEOF
12813cat >>$CONFIG_STATUS <<_ACEOF
12814if \$ac_cs_recheck; then
12815 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12816 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12817fi
12818
12819_ACEOF
12820
12821cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 12822#
5464f5a1 12823# INIT-COMMANDS section.
6be7c12c 12824#
b3baf5d0 12825
f5385ebf 12826AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20e95c23
DJ
12827# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12828 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12829 # from automake.
12830 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12831 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12832 LINGUAS="${LINGUAS-%UNSET%}"
12833
5464f5a1
NN
12834
12835
12836_ACEOF
12837
12838
12839
12840cat >>$CONFIG_STATUS <<\_ACEOF
12841for ac_config_target in $ac_config_targets
252b5132 12842do
5464f5a1
NN
12843 case "$ac_config_target" in
12844 # Handling of arguments.
12845 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12846 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12847 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
12848 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 12849 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20e95c23 12850 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5464f5a1
NN
12851 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12852 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12853 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12854echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12855 { (exit 1); exit 1; }; };;
252b5132
RH
12856 esac
12857done
12858
5464f5a1
NN
12859# If the user did not use the arguments to specify the items to instantiate,
12860# then the envvar interface is used. Set only those that are not.
12861# We use the long form for the default assignment because of an extremely
12862# bizarre bug on SunOS 4.1.3.
12863if $ac_need_defaults; then
12864 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12865 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12866 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12867fi
12868
12869# Have a temporary directory for convenience. Make it in the build tree
12870# simply because there is no reason to put it here, and in addition,
12871# creating and moving files from /tmp can sometimes cause problems.
12872# Create a temporary directory, and hook for its removal unless debugging.
12873$debug ||
12874{
12875 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12876 trap '{ (exit 1); exit 1; }' 1 2 13 15
12877}
b3baf5d0 12878
5464f5a1 12879# Create a (secure) tmp directory for tmp files.
b3baf5d0 12880
5464f5a1
NN
12881{
12882 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12883 test -n "$tmp" && test -d "$tmp"
12884} ||
12885{
12886 tmp=./confstat$$-$RANDOM
12887 (umask 077 && mkdir $tmp)
12888} ||
12889{
12890 echo "$me: cannot create a temporary directory in ." >&2
12891 { (exit 1); exit 1; }
12892}
12893
12894_ACEOF
12895
12896cat >>$CONFIG_STATUS <<_ACEOF
12897
12898#
12899# CONFIG_FILES section.
12900#
b3baf5d0 12901
5464f5a1
NN
12902# No need to generate the scripts if there are no CONFIG_FILES.
12903# This happens for instance when ./config.status config.h
12904if test -n "\$CONFIG_FILES"; then
12905 # Protect against being on the right side of a sed subst in config.status.
12906 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12907 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12908s,@SHELL@,$SHELL,;t t
12909s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12910s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12911s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12912s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12913s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12914s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12915s,@exec_prefix@,$exec_prefix,;t t
12916s,@prefix@,$prefix,;t t
12917s,@program_transform_name@,$program_transform_name,;t t
12918s,@bindir@,$bindir,;t t
12919s,@sbindir@,$sbindir,;t t
12920s,@libexecdir@,$libexecdir,;t t
12921s,@datadir@,$datadir,;t t
12922s,@sysconfdir@,$sysconfdir,;t t
12923s,@sharedstatedir@,$sharedstatedir,;t t
12924s,@localstatedir@,$localstatedir,;t t
12925s,@libdir@,$libdir,;t t
12926s,@includedir@,$includedir,;t t
12927s,@oldincludedir@,$oldincludedir,;t t
12928s,@infodir@,$infodir,;t t
12929s,@mandir@,$mandir,;t t
12930s,@build_alias@,$build_alias,;t t
12931s,@host_alias@,$host_alias,;t t
12932s,@target_alias@,$target_alias,;t t
12933s,@DEFS@,$DEFS,;t t
12934s,@ECHO_C@,$ECHO_C,;t t
12935s,@ECHO_N@,$ECHO_N,;t t
12936s,@ECHO_T@,$ECHO_T,;t t
12937s,@LIBS@,$LIBS,;t t
12938s,@build@,$build,;t t
12939s,@build_cpu@,$build_cpu,;t t
12940s,@build_vendor@,$build_vendor,;t t
12941s,@build_os@,$build_os,;t t
12942s,@host@,$host,;t t
12943s,@host_cpu@,$host_cpu,;t t
12944s,@host_vendor@,$host_vendor,;t t
12945s,@host_os@,$host_os,;t t
12946s,@target@,$target,;t t
12947s,@target_cpu@,$target_cpu,;t t
12948s,@target_vendor@,$target_vendor,;t t
12949s,@target_os@,$target_os,;t t
12950s,@CC@,$CC,;t t
12951s,@CFLAGS@,$CFLAGS,;t t
12952s,@LDFLAGS@,$LDFLAGS,;t t
12953s,@CPPFLAGS@,$CPPFLAGS,;t t
12954s,@ac_ct_CC@,$ac_ct_CC,;t t
12955s,@EXEEXT@,$EXEEXT,;t t
12956s,@OBJEXT@,$OBJEXT,;t t
12957s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12958s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12959s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 12960s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
12961s,@PACKAGE@,$PACKAGE,;t t
12962s,@VERSION@,$VERSION,;t t
12963s,@ACLOCAL@,$ACLOCAL,;t t
12964s,@AUTOCONF@,$AUTOCONF,;t t
12965s,@AUTOMAKE@,$AUTOMAKE,;t t
12966s,@AUTOHEADER@,$AUTOHEADER,;t t
12967s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
12968s,@install_sh@,$install_sh,;t t
12969s,@STRIP@,$STRIP,;t t
12970s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12971s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12972s,@mkdir_p@,$mkdir_p,;t t
12973s,@AWK@,$AWK,;t t
5464f5a1 12974s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
12975s,@am__leading_dot@,$am__leading_dot,;t t
12976s,@AMTAR@,$AMTAR,;t t
12977s,@am__tar@,$am__tar,;t t
12978s,@am__untar@,$am__untar,;t t
12979s,@DEPDIR@,$DEPDIR,;t t
12980s,@am__include@,$am__include,;t t
12981s,@am__quote@,$am__quote,;t t
12982s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12983s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12984s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12985s,@CCDEPMODE@,$CCDEPMODE,;t t
12986s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12987s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
12988s,@AR@,$AR,;t t
12989s,@ac_ct_AR@,$ac_ct_AR,;t t
12990s,@RANLIB@,$RANLIB,;t t
12991s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12992s,@LN_S@,$LN_S,;t t
5464f5a1
NN
12993s,@LIBTOOL@,$LIBTOOL,;t t
12994s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9e9b66a9 12995s,@NO_WERROR@,$NO_WERROR,;t t
5464f5a1
NN
12996s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12997s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12998s,@MAINT@,$MAINT,;t t
12999s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13000s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13001s,@host_noncanonical@,$host_noncanonical,;t t
13002s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13003s,@bfdlibdir@,$bfdlibdir,;t t
13004s,@bfdincludedir@,$bfdincludedir,;t t
5464f5a1 13005s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
13006s,@LIBINTL@,$LIBINTL,;t t
13007s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13008s,@INCINTL@,$INCINTL,;t t
5464f5a1 13009s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
13010s,@GMSGFMT@,$GMSGFMT,;t t
13011s,@POSUB@,$POSUB,;t t
5464f5a1 13012s,@CATALOGS@,$CATALOGS,;t t
5464f5a1 13013s,@DATADIRNAME@,$DATADIRNAME,;t t
5464f5a1 13014s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
13015s,@GENCAT@,$GENCAT,;t t
13016s,@CATOBJEXT@,$CATOBJEXT,;t t
5464f5a1 13017s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
20e95c23
DJ
13018s,@MSGFMT@,$MSGFMT,;t t
13019s,@MSGMERGE@,$MSGMERGE,;t t
5464f5a1 13020s,@HDEFINES@,$HDEFINES,;t t
20e95c23
DJ
13021s,@CPP@,$CPP,;t t
13022s,@EGREP@,$EGREP,;t t
5464f5a1
NN
13023s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13024s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13025s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13026s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13027s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13028s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13029s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13030s,@COREFILE@,$COREFILE,;t t
13031s,@COREFLAG@,$COREFLAG,;t t
13032s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13033s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13034s,@TDEFINES@,$TDEFINES,;t t
13035s,@wordsize@,$wordsize,;t t
13036s,@bfd_libs@,$bfd_libs,;t t
13037s,@all_backends@,$all_backends,;t t
13038s,@bfd_backends@,$bfd_backends,;t t
13039s,@bfd_machines@,$bfd_machines,;t t
13040s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13041s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13042s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13043s,@tdefaults@,$tdefaults,;t t
108a6f8e
CD
13044s,@datarootdir@,$datarootdir,;t t
13045s,@docdir@,$docdir,;t t
13046s,@htmldir@,$htmldir,;t t
5464f5a1
NN
13047s,@LIBOBJS@,$LIBOBJS,;t t
13048s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13049CEOF
252b5132 13050
5464f5a1
NN
13051_ACEOF
13052
13053 cat >>$CONFIG_STATUS <<\_ACEOF
13054 # Split the substitutions into bite-sized pieces for seds with
13055 # small command number limits, like on Digital OSF/1 and HP-UX.
13056 ac_max_sed_lines=48
13057 ac_sed_frag=1 # Number of current file.
13058 ac_beg=1 # First line for current file.
13059 ac_end=$ac_max_sed_lines # Line after last line for current file.
13060 ac_more_lines=:
13061 ac_sed_cmds=
13062 while $ac_more_lines; do
13063 if test $ac_beg -gt 1; then
13064 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13065 else
5464f5a1
NN
13066 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13067 fi
13068 if test ! -s $tmp/subs.frag; then
13069 ac_more_lines=false
13070 else
13071 # The purpose of the label and of the branching condition is to
13072 # speed up the sed processing (if there are no `@' at all, there
13073 # is no need to browse any of the substitutions).
13074 # These are the two extra sed commands mentioned above.
13075 (echo ':t
13076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13077 if test -z "$ac_sed_cmds"; then
13078 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13079 else
13080 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13081 fi
13082 ac_sed_frag=`expr $ac_sed_frag + 1`
13083 ac_beg=$ac_end
13084 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13085 fi
5464f5a1
NN
13086 done
13087 if test -z "$ac_sed_cmds"; then
13088 ac_sed_cmds=cat
252b5132 13089 fi
5464f5a1 13090fi # test -n "$CONFIG_FILES"
6be7c12c 13091
5464f5a1
NN
13092_ACEOF
13093cat >>$CONFIG_STATUS <<\_ACEOF
13094for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13095 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13096 case $ac_file in
13097 - | *:- | *:-:* ) # input from stdin
13098 cat >$tmp/stdin
13099 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13100 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13101 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13102 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13103 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13104 esac
13105
5464f5a1
NN
13106 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13107 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13108$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13109 X"$ac_file" : 'X\(//\)[^/]' \| \
13110 X"$ac_file" : 'X\(//\)$' \| \
13111 X"$ac_file" : 'X\(/\)' \| \
13112 . : '\(.\)' 2>/dev/null ||
13113echo X"$ac_file" |
13114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13115 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13116 /^X\(\/\/\)$/{ s//\1/; q; }
13117 /^X\(\/\).*/{ s//\1/; q; }
13118 s/.*/./; q'`
13119 { if $as_mkdir_p; then
13120 mkdir -p "$ac_dir"
252b5132 13121 else
5464f5a1
NN
13122 as_dir="$ac_dir"
13123 as_dirs=
13124 while test ! -d "$as_dir"; do
13125 as_dirs="$as_dir $as_dirs"
13126 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13127$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13128 X"$as_dir" : 'X\(//\)[^/]' \| \
13129 X"$as_dir" : 'X\(//\)$' \| \
13130 X"$as_dir" : 'X\(/\)' \| \
13131 . : '\(.\)' 2>/dev/null ||
13132echo X"$as_dir" |
13133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13135 /^X\(\/\/\)$/{ s//\1/; q; }
13136 /^X\(\/\).*/{ s//\1/; q; }
13137 s/.*/./; q'`
13138 done
13139 test ! -n "$as_dirs" || mkdir $as_dirs
13140 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13141echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13142 { (exit 1); exit 1; }; }; }
13143
13144 ac_builddir=.
13145
13146if test "$ac_dir" != .; then
13147 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13148 # A "../" for each directory in $ac_dir_suffix.
13149 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13150else
13151 ac_dir_suffix= ac_top_builddir=
13152fi
252b5132 13153
5464f5a1
NN
13154case $srcdir in
13155 .) # No --srcdir option. We are building in place.
13156 ac_srcdir=.
13157 if test -z "$ac_top_builddir"; then
13158 ac_top_srcdir=.
13159 else
13160 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13161 fi ;;
13162 [\\/]* | ?:[\\/]* ) # Absolute path.
13163 ac_srcdir=$srcdir$ac_dir_suffix;
13164 ac_top_srcdir=$srcdir ;;
252b5132 13165 *) # Relative path.
5464f5a1
NN
13166 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13167 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13168esac
252b5132 13169
5464f5a1
NN
13170# Do not use `cd foo && pwd` to compute absolute paths, because
13171# the directories may not exist.
13172case `pwd` in
13173.) ac_abs_builddir="$ac_dir";;
13174*)
13175 case "$ac_dir" in
13176 .) ac_abs_builddir=`pwd`;;
13177 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13178 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13179 esac;;
13180esac
13181case $ac_abs_builddir in
13182.) ac_abs_top_builddir=${ac_top_builddir}.;;
13183*)
13184 case ${ac_top_builddir}. in
13185 .) ac_abs_top_builddir=$ac_abs_builddir;;
13186 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13187 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13188 esac;;
13189esac
13190case $ac_abs_builddir in
13191.) ac_abs_srcdir=$ac_srcdir;;
13192*)
13193 case $ac_srcdir in
13194 .) ac_abs_srcdir=$ac_abs_builddir;;
13195 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13196 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13197 esac;;
13198esac
13199case $ac_abs_builddir in
13200.) ac_abs_top_srcdir=$ac_top_srcdir;;
13201*)
13202 case $ac_top_srcdir in
13203 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13204 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13205 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13206 esac;;
13207esac
252b5132 13208
5464f5a1
NN
13209
13210 case $INSTALL in
13211 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13212 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13213 esac
252b5132 13214
49c96104
SE
13215 if test x"$ac_file" != x-; then
13216 { echo "$as_me:$LINENO: creating $ac_file" >&5
13217echo "$as_me: creating $ac_file" >&6;}
13218 rm -f "$ac_file"
13219 fi
5464f5a1
NN
13220 # Let's still pretend it is `configure' which instantiates (i.e., don't
13221 # use $as_me), people would be surprised to read:
13222 # /* config.h. Generated by config.status. */
13223 if test x"$ac_file" = x-; then
13224 configure_input=
13225 else
13226 configure_input="$ac_file. "
13227 fi
13228 configure_input=$configure_input"Generated from `echo $ac_file_in |
13229 sed 's,.*/,,'` by configure."
13230
13231 # First look for the input files in the build tree, otherwise in the
13232 # src tree.
13233 ac_file_inputs=`IFS=:
13234 for f in $ac_file_in; do
13235 case $f in
13236 -) echo $tmp/stdin ;;
13237 [\\/$]*)
13238 # Absolute (can't be DOS-style, as IFS=:)
13239 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13240echo "$as_me: error: cannot find input file: $f" >&2;}
13241 { (exit 1); exit 1; }; }
13242 echo "$f";;
13243 *) # Relative
13244 if test -f "$f"; then
13245 # Build tree
13246 echo "$f"
13247 elif test -f "$srcdir/$f"; then
13248 # Source tree
13249 echo "$srcdir/$f"
13250 else
13251 # /dev/null tree
13252 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13253echo "$as_me: error: cannot find input file: $f" >&2;}
13254 { (exit 1); exit 1; }; }
13255 fi;;
13256 esac
13257 done` || { (exit 1); exit 1; }
5464f5a1
NN
13258_ACEOF
13259cat >>$CONFIG_STATUS <<_ACEOF
13260 sed "$ac_vpsub
13261$extrasub
13262_ACEOF
13263cat >>$CONFIG_STATUS <<\_ACEOF
13264:t
13265/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13266s,@configure_input@,$configure_input,;t t
13267s,@srcdir@,$ac_srcdir,;t t
13268s,@abs_srcdir@,$ac_abs_srcdir,;t t
13269s,@top_srcdir@,$ac_top_srcdir,;t t
13270s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13271s,@builddir@,$ac_builddir,;t t
13272s,@abs_builddir@,$ac_abs_builddir,;t t
13273s,@top_builddir@,$ac_top_builddir,;t t
13274s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13275s,@INSTALL@,$ac_INSTALL,;t t
13276" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13277 rm -f $tmp/stdin
13278 if test x"$ac_file" != x-; then
13279 mv $tmp/out $ac_file
13280 else
13281 cat $tmp/out
13282 rm -f $tmp/out
13283 fi
13284
13285done
13286_ACEOF
13287cat >>$CONFIG_STATUS <<\_ACEOF
13288
13289#
13290# CONFIG_HEADER section.
13291#
252b5132
RH
13292
13293# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13294# NAME is the cpp macro being defined and VALUE is the value it is being given.
13295#
13296# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13297ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13298ac_dB='[ ].*$,\1#\2'
13299ac_dC=' '
13300ac_dD=',;t'
13301# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13302ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13303ac_uB='$,\1#\2define\3'
252b5132 13304ac_uC=' '
5464f5a1
NN
13305ac_uD=',;t'
13306
13307for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13308 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13309 case $ac_file in
13310 - | *:- | *:-:* ) # input from stdin
13311 cat >$tmp/stdin
13312 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13313 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13314 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13316 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13317 esac
13318
5464f5a1
NN
13319 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13320echo "$as_me: creating $ac_file" >&6;}
13321
13322 # First look for the input files in the build tree, otherwise in the
13323 # src tree.
13324 ac_file_inputs=`IFS=:
13325 for f in $ac_file_in; do
13326 case $f in
13327 -) echo $tmp/stdin ;;
13328 [\\/$]*)
13329 # Absolute (can't be DOS-style, as IFS=:)
13330 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13331echo "$as_me: error: cannot find input file: $f" >&2;}
13332 { (exit 1); exit 1; }; }
13333 # Do quote $f, to prevent DOS paths from being IFS'd.
13334 echo "$f";;
13335 *) # Relative
13336 if test -f "$f"; then
13337 # Build tree
13338 echo "$f"
13339 elif test -f "$srcdir/$f"; then
13340 # Source tree
13341 echo "$srcdir/$f"
13342 else
13343 # /dev/null tree
13344 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13345echo "$as_me: error: cannot find input file: $f" >&2;}
13346 { (exit 1); exit 1; }; }
13347 fi;;
13348 esac
13349 done` || { (exit 1); exit 1; }
13350 # Remove the trailing spaces.
13351 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13352
13353_ACEOF
13354
13355# Transform confdefs.h into two sed scripts, `conftest.defines' and
13356# `conftest.undefs', that substitutes the proper values into
13357# config.h.in to produce config.h. The first handles `#define'
13358# templates, and the second `#undef' templates.
13359# And first: Protect against being on the right side of a sed subst in
13360# config.status. Protect against being in an unquoted here document
13361# in config.status.
13362rm -f conftest.defines conftest.undefs
13363# Using a here document instead of a string reduces the quoting nightmare.
13364# Putting comments in sed scripts is not portable.
13365#
13366# `end' is used to avoid that the second main sed command (meant for
13367# 0-ary CPP macros) applies to n-ary macro definitions.
13368# See the Autoconf documentation for `clear'.
13369cat >confdef2sed.sed <<\_ACEOF
13370s/[\\&,]/\\&/g
13371s,[\\$`],\\&,g
13372t clear
13373: clear
13374s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13375t end
13376s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13377: end
13378_ACEOF
13379# If some macros were called several times there might be several times
13380# the same #defines, which is useless. Nevertheless, we may not want to
13381# sort them, since we want the *last* AC-DEFINE to be honored.
13382uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13383sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13384rm -f confdef2sed.sed
252b5132
RH
13385
13386# This sed command replaces #undef with comments. This is necessary, for
13387# example, in the case of _POSIX_SOURCE, which is predefined and required
13388# on some systems where configure will not decide to define it.
5464f5a1
NN
13389cat >>conftest.undefs <<\_ACEOF
13390s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13391_ACEOF
13392
13393# Break up conftest.defines because some shells have a limit on the size
13394# of here documents, and old seds have small limits too (100 cmds).
13395echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13396echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13397echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13398echo ' :' >>$CONFIG_STATUS
13399rm -f conftest.tail
13400while grep . conftest.defines >/dev/null
13401do
13402 # Write a limited-size here document to $tmp/defines.sed.
13403 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13404 # Speed up: don't consider the non `#define' lines.
13405 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13406 # Work around the forget-to-reset-the-flag bug.
13407 echo 't clr' >>$CONFIG_STATUS
13408 echo ': clr' >>$CONFIG_STATUS
13409 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13410 echo 'CEOF
13411 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13412 rm -f $tmp/in
13413 mv $tmp/out $tmp/in
13414' >>$CONFIG_STATUS
13415 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13416 rm -f conftest.defines
13417 mv conftest.tail conftest.defines
13418done
13419rm -f conftest.defines
13420echo ' fi # grep' >>$CONFIG_STATUS
13421echo >>$CONFIG_STATUS
252b5132 13422
5464f5a1
NN
13423# Break up conftest.undefs because some shells have a limit on the size
13424# of here documents, and old seds have small limits too (100 cmds).
13425echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13426rm -f conftest.tail
5464f5a1 13427while grep . conftest.undefs >/dev/null
252b5132 13428do
5464f5a1
NN
13429 # Write a limited-size here document to $tmp/undefs.sed.
13430 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13431 # Speed up: don't consider the non `#undef'
13432 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13433 # Work around the forget-to-reset-the-flag bug.
13434 echo 't clr' >>$CONFIG_STATUS
13435 echo ': clr' >>$CONFIG_STATUS
13436 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13437 echo 'CEOF
5464f5a1
NN
13438 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13439 rm -f $tmp/in
13440 mv $tmp/out $tmp/in
13441' >>$CONFIG_STATUS
13442 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13443 rm -f conftest.undefs
13444 mv conftest.tail conftest.undefs
252b5132 13445done
5464f5a1
NN
13446rm -f conftest.undefs
13447
13448cat >>$CONFIG_STATUS <<\_ACEOF
13449 # Let's still pretend it is `configure' which instantiates (i.e., don't
13450 # use $as_me), people would be surprised to read:
13451 # /* config.h. Generated by config.status. */
13452 if test x"$ac_file" = x-; then
13453 echo "/* Generated by configure. */" >$tmp/config.h
13454 else
13455 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13456 fi
13457 cat $tmp/in >>$tmp/config.h
13458 rm -f $tmp/in
13459 if test x"$ac_file" != x-; then
13460 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13461 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13462echo "$as_me: $ac_file is unchanged" >&6;}
13463 else
13464 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13465$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13466 X"$ac_file" : 'X\(//\)[^/]' \| \
13467 X"$ac_file" : 'X\(//\)$' \| \
13468 X"$ac_file" : 'X\(/\)' \| \
13469 . : '\(.\)' 2>/dev/null ||
13470echo X"$ac_file" |
13471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13472 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13473 /^X\(\/\/\)$/{ s//\1/; q; }
13474 /^X\(\/\).*/{ s//\1/; q; }
13475 s/.*/./; q'`
13476 { if $as_mkdir_p; then
13477 mkdir -p "$ac_dir"
252b5132 13478 else
5464f5a1
NN
13479 as_dir="$ac_dir"
13480 as_dirs=
13481 while test ! -d "$as_dir"; do
13482 as_dirs="$as_dir $as_dirs"
13483 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13484$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13485 X"$as_dir" : 'X\(//\)[^/]' \| \
13486 X"$as_dir" : 'X\(//\)$' \| \
13487 X"$as_dir" : 'X\(/\)' \| \
13488 . : '\(.\)' 2>/dev/null ||
13489echo X"$as_dir" |
13490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13492 /^X\(\/\/\)$/{ s//\1/; q; }
13493 /^X\(\/\).*/{ s//\1/; q; }
13494 s/.*/./; q'`
13495 done
13496 test ! -n "$as_dirs" || mkdir $as_dirs
13497 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13498echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13499 { (exit 1); exit 1; }; }; }
13500
13501 rm -f $ac_file
13502 mv $tmp/config.h $ac_file
252b5132 13503 fi
5464f5a1
NN
13504 else
13505 cat $tmp/config.h
13506 rm -f $tmp/config.h
252b5132 13507 fi
f5385ebf
AM
13508# Compute $ac_file's index in $config_headers.
13509_am_stamp_count=1
13510for _am_header in $config_headers :; do
13511 case $_am_header in
13512 $ac_file | $ac_file:* )
13513 break ;;
13514 * )
13515 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13516 esac
13517done
13518echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13519$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13520 X$ac_file : 'X\(//\)[^/]' \| \
13521 X$ac_file : 'X\(//\)$' \| \
13522 X$ac_file : 'X\(/\)' \| \
13523 . : '\(.\)' 2>/dev/null ||
13524echo X$ac_file |
13525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13526 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13527 /^X\(\/\/\)$/{ s//\1/; q; }
13528 /^X\(\/\).*/{ s//\1/; q; }
13529 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13530done
13531_ACEOF
13532cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13533
5464f5a1
NN
13534#
13535# CONFIG_COMMANDS section.
13536#
13537for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13538 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13539 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13540 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13541$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13542 X"$ac_dest" : 'X\(//\)[^/]' \| \
13543 X"$ac_dest" : 'X\(//\)$' \| \
13544 X"$ac_dest" : 'X\(/\)' \| \
13545 . : '\(.\)' 2>/dev/null ||
13546echo X"$ac_dest" |
13547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13549 /^X\(\/\/\)$/{ s//\1/; q; }
13550 /^X\(\/\).*/{ s//\1/; q; }
13551 s/.*/./; q'`
13552 { if $as_mkdir_p; then
13553 mkdir -p "$ac_dir"
13554 else
13555 as_dir="$ac_dir"
13556 as_dirs=
13557 while test ! -d "$as_dir"; do
13558 as_dirs="$as_dir $as_dirs"
13559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13561 X"$as_dir" : 'X\(//\)[^/]' \| \
13562 X"$as_dir" : 'X\(//\)$' \| \
13563 X"$as_dir" : 'X\(/\)' \| \
13564 . : '\(.\)' 2>/dev/null ||
13565echo X"$as_dir" |
13566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13568 /^X\(\/\/\)$/{ s//\1/; q; }
13569 /^X\(\/\).*/{ s//\1/; q; }
13570 s/.*/./; q'`
13571 done
13572 test ! -n "$as_dirs" || mkdir $as_dirs
13573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13574echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13575 { (exit 1); exit 1; }; }; }
b3baf5d0 13576
5464f5a1 13577 ac_builddir=.
b3baf5d0 13578
5464f5a1
NN
13579if test "$ac_dir" != .; then
13580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13581 # A "../" for each directory in $ac_dir_suffix.
13582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13583else
13584 ac_dir_suffix= ac_top_builddir=
13585fi
13586
13587case $srcdir in
13588 .) # No --srcdir option. We are building in place.
13589 ac_srcdir=.
13590 if test -z "$ac_top_builddir"; then
13591 ac_top_srcdir=.
13592 else
13593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13594 fi ;;
13595 [\\/]* | ?:[\\/]* ) # Absolute path.
13596 ac_srcdir=$srcdir$ac_dir_suffix;
13597 ac_top_srcdir=$srcdir ;;
13598 *) # Relative path.
13599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13601esac
13602
13603# Do not use `cd foo && pwd` to compute absolute paths, because
13604# the directories may not exist.
13605case `pwd` in
13606.) ac_abs_builddir="$ac_dir";;
13607*)
13608 case "$ac_dir" in
13609 .) ac_abs_builddir=`pwd`;;
13610 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13611 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13612 esac;;
13613esac
13614case $ac_abs_builddir in
13615.) ac_abs_top_builddir=${ac_top_builddir}.;;
13616*)
13617 case ${ac_top_builddir}. in
13618 .) ac_abs_top_builddir=$ac_abs_builddir;;
13619 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13620 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13621 esac;;
13622esac
13623case $ac_abs_builddir in
13624.) ac_abs_srcdir=$ac_srcdir;;
13625*)
13626 case $ac_srcdir in
13627 .) ac_abs_srcdir=$ac_abs_builddir;;
13628 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13629 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13630 esac;;
13631esac
13632case $ac_abs_builddir in
13633.) ac_abs_top_srcdir=$ac_top_srcdir;;
13634*)
13635 case $ac_top_srcdir in
13636 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13637 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13638 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13639 esac;;
13640esac
13641
13642
13643 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13644echo "$as_me: executing $ac_dest commands" >&6;}
13645 case $ac_dest in
f5385ebf
AM
13646 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13647 # Strip MF so we end up with the name of the file.
13648 mf=`echo "$mf" | sed -e 's/:.*$//'`
13649 # Check whether this is an Automake generated Makefile or not.
13650 # We used to match only the files named `Makefile.in', but
13651 # some people rename them; so instead we look at the file content.
13652 # Grep'ing the first line is not enough: some people post-process
13653 # each Makefile.in and add a new line on top of each file to say so.
13654 # So let's grep whole file.
13655 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13656 dirpart=`(dirname "$mf") 2>/dev/null ||
13657$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13658 X"$mf" : 'X\(//\)[^/]' \| \
13659 X"$mf" : 'X\(//\)$' \| \
13660 X"$mf" : 'X\(/\)' \| \
13661 . : '\(.\)' 2>/dev/null ||
13662echo X"$mf" |
13663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13664 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13665 /^X\(\/\/\)$/{ s//\1/; q; }
13666 /^X\(\/\).*/{ s//\1/; q; }
13667 s/.*/./; q'`
13668 else
13669 continue
13670 fi
13671 # Extract the definition of DEPDIR, am__include, and am__quote
13672 # from the Makefile without running `make'.
13673 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13674 test -z "$DEPDIR" && continue
13675 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13676 test -z "am__include" && continue
13677 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13678 # When using ansi2knr, U may be empty or an underscore; expand it
13679 U=`sed -n 's/^U = //p' < "$mf"`
13680 # Find all dependency output files, they are included files with
13681 # $(DEPDIR) in their names. We invoke sed twice because it is the
13682 # simplest approach to changing $(DEPDIR) to its actual value in the
13683 # expansion.
13684 for file in `sed -n "
13685 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13686 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13687 # Make sure the directory exists.
13688 test -f "$dirpart/$file" && continue
13689 fdir=`(dirname "$file") 2>/dev/null ||
13690$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13691 X"$file" : 'X\(//\)[^/]' \| \
13692 X"$file" : 'X\(//\)$' \| \
13693 X"$file" : 'X\(/\)' \| \
13694 . : '\(.\)' 2>/dev/null ||
13695echo X"$file" |
13696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13698 /^X\(\/\/\)$/{ s//\1/; q; }
13699 /^X\(\/\).*/{ s//\1/; q; }
13700 s/.*/./; q'`
13701 { if $as_mkdir_p; then
13702 mkdir -p $dirpart/$fdir
13703 else
13704 as_dir=$dirpart/$fdir
13705 as_dirs=
13706 while test ! -d "$as_dir"; do
13707 as_dirs="$as_dir $as_dirs"
13708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13710 X"$as_dir" : 'X\(//\)[^/]' \| \
13711 X"$as_dir" : 'X\(//\)$' \| \
13712 X"$as_dir" : 'X\(/\)' \| \
13713 . : '\(.\)' 2>/dev/null ||
13714echo X"$as_dir" |
13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13717 /^X\(\/\/\)$/{ s//\1/; q; }
13718 /^X\(\/\).*/{ s//\1/; q; }
13719 s/.*/./; q'`
13720 done
13721 test ! -n "$as_dirs" || mkdir $as_dirs
13722 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13723echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13724 { (exit 1); exit 1; }; }; }
13725
13726 # echo "creating $dirpart/$file"
13727 echo '# dummy' > "$dirpart/$file"
13728 done
13729done
13730 ;;
20e95c23
DJ
13731 default-1 )
13732 for ac_file in $CONFIG_FILES; do
13733 # Support "outfile[:infile[:infile...]]"
13734 case "$ac_file" in
13735 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13736 esac
13737 # PO directories have a Makefile.in generated from Makefile.in.in.
13738 case "$ac_file" in */Makefile.in)
13739 # Adjust a relative srcdir.
13740 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13741 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13742 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13743 # In autoconf-2.13 it is called $ac_given_srcdir.
13744 # In autoconf-2.50 it is called $srcdir.
13745 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13746 case "$ac_given_srcdir" in
13747 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13748 /*) top_srcdir="$ac_given_srcdir" ;;
13749 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13750 esac
13751 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13752 rm -f "$ac_dir/POTFILES"
13753 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13754 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13755 POMAKEFILEDEPS="POTFILES.in"
13756 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13757 # on $ac_dir but don't depend on user-specified configuration
13758 # parameters.
13759 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13760 # The LINGUAS file contains the set of available languages.
13761 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13762 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13763 fi
13764 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13765 # Hide the ALL_LINGUAS assigment from automake.
13766 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13767 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13768 else
13769 # The set of available languages was given in configure.in.
13770 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13771 fi
13772 case "$ac_given_srcdir" in
13773 .) srcdirpre= ;;
13774 *) srcdirpre='$(srcdir)/' ;;
13775 esac
13776 POFILES=
13777 GMOFILES=
13778 UPDATEPOFILES=
13779 DUMMYPOFILES=
13780 for lang in $ALL_LINGUAS; do
13781 POFILES="$POFILES $srcdirpre$lang.po"
13782 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13783 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13784 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13785 done
13786 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13787 # environment variable.
13788 INST_LINGUAS=
13789 if test -n "$ALL_LINGUAS"; then
13790 for presentlang in $ALL_LINGUAS; do
13791 useit=no
13792 if test "%UNSET%" != "$LINGUAS"; then
13793 desiredlanguages="$LINGUAS"
13794 else
13795 desiredlanguages="$ALL_LINGUAS"
13796 fi
13797 for desiredlang in $desiredlanguages; do
13798 # Use the presentlang catalog if desiredlang is
13799 # a. equal to presentlang, or
13800 # b. a variant of presentlang (because in this case,
13801 # presentlang can be used as a fallback for messages
13802 # which are not translated in the desiredlang catalog).
13803 case "$desiredlang" in
13804 "$presentlang"*) useit=yes;;
13805 esac
13806 done
13807 if test $useit = yes; then
13808 INST_LINGUAS="$INST_LINGUAS $presentlang"
13809 fi
13810 done
13811 fi
13812 CATALOGS=
13813 if test -n "$INST_LINGUAS"; then
13814 for lang in $INST_LINGUAS; do
13815 CATALOGS="$CATALOGS $lang.gmo"
13816 done
13817 fi
13818 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13819 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"
13820 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13821 if test -f "$f"; then
13822 case "$f" in
13823 *.orig | *.bak | *~) ;;
13824 *) cat "$f" >> "$ac_dir/Makefile" ;;
13825 esac
13826 fi
13827 done
13828 fi
13829 ;;
13830 esac
13831 done ;;
13832 default )
13833case "$srcdir" in
13834 .) srcdirpre= ;;
13835 *) srcdirpre='$(srcdir)/' ;;
13836esac
13837POFILES=
13838GMOFILES=
13839for lang in dummy $OBSOLETE_ALL_LINGUAS; do
13840 if test $lang != dummy; then
13841 POFILES="$POFILES $srcdirpre$lang.po"
13842 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13843 fi
13844done
13845sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
13846 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
13847 -e "s,@POFILES@,$POFILES," \
13848 -e "s,@GMOFILES@,$GMOFILES," \
13849 po/Makefile.in > po/Makefile ;;
5464f5a1
NN
13850 esac
13851done
13852_ACEOF
13853
13854cat >>$CONFIG_STATUS <<\_ACEOF
13855
13856{ (exit 0); exit 0; }
13857_ACEOF
252b5132 13858chmod +x $CONFIG_STATUS
5464f5a1
NN
13859ac_clean_files=$ac_clean_files_save
13860
13861
13862# configure is writing to config.log, and then calls config.status.
13863# config.status does its own redirection, appending to config.log.
13864# Unfortunately, on DOS this fails, as config.log is still kept open
13865# by configure, so config.status won't be able to write to it; its
13866# output is simply discarded. So we exec the FD to /dev/null,
13867# effectively closing config.log, so it can be properly (re)opened and
13868# appended to by config.status. When coming back to configure, we
13869# need to make the FD available again.
13870if test "$no_create" != yes; then
13871 ac_cs_success=:
13872 ac_config_status_args=
13873 test "$silent" = yes &&
13874 ac_config_status_args="$ac_config_status_args --quiet"
13875 exec 5>/dev/null
13876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13877 exec 5>>config.log
13878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13879 # would make configure fail if this is the last instruction.
13880 $ac_cs_success || { (exit 1); exit 1; }
13881fi
252b5132 13882
55c80943 13883