Enable -Werror by default
[deliverable/binutils-gdb.git] / bfd / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
5464f5a1 3# Generated by GNU Autoconf 2.59.
252b5132 4#
5464f5a1 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
5464f5a1
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
5464f5a1
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
5464f5a1
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="libbfd.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
f5385ebf 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS'
5464f5a1 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
5464f5a1
NN
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
5464f5a1 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
5464f5a1
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
5464f5a1 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
5464f5a1 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
5464f5a1 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
5464f5a1 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
5464f5a1 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5464f5a1
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
5464f5a1 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
5464f5a1 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
5464f5a1
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
5464f5a1 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
5464f5a1
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
5464f5a1 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
5464f5a1 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
5464f5a1
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
5464f5a1 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
5464f5a1 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
5464f5a1 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
5464f5a1 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
5464f5a1 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
5464f5a1 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
5464f5a1 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
5464f5a1 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
5464f5a1 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
5464f5a1 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5464f5a1 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
5464f5a1 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
5464f5a1 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
5464f5a1 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
5464f5a1 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
5464f5a1 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
5464f5a1 561 site=$ac_optarg ;;
6be7c12c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5464f5a1 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
5464f5a1 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
5464f5a1 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
5464f5a1 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
5464f5a1
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
5464f5a1 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
5464f5a1
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
5464f5a1
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
5464f5a1 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
5464f5a1 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
5464f5a1
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
5464f5a1 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5464f5a1 624 x_libraries=$ac_optarg ;;
252b5132 625
5464f5a1
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
5464f5a1
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
5464f5a1
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
5464f5a1
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132 656fi
252b5132 657
5464f5a1
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
6be7c12c 668
5464f5a1
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
5464f5a1
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
5464f5a1
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
5464f5a1
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
5464f5a1
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
5464f5a1
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
5464f5a1
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
5464f5a1
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
b3baf5d0 773
5464f5a1
NN
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
5464f5a1 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
5464f5a1
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
6be7c12c 787
5464f5a1 788Defaults for the options are specified in brackets.
6be7c12c 789
5464f5a1
NN
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
6be7c12c 809
5464f5a1
NN
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
6be7c12c 814
5464f5a1 815For better control, use the options below.
6be7c12c 816
5464f5a1
NN
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
6be7c12c 831
5464f5a1 832 cat <<\_ACEOF
6be7c12c 833
5464f5a1
NN
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
5464f5a1
NN
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
5464f5a1 846if test -n "$ac_init_help"; then
6be7c12c 847
5464f5a1 848 cat <<\_ACEOF
252b5132 849
5464f5a1
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
f5385ebf
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
5464f5a1
NN
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
1ad12f97 862 --enable-error-on-warning treat compile warnings as errors
5464f5a1 863 --enable-build-warnings Enable build-time compiler warnings if gcc is used
f5385ebf
AM
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
5464f5a1
NN
866 --enable-install-libbfd controls installation of libbfd and related headers
867 --disable-nls do not use Native Language Support
868
869Optional Packages:
870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
872 --with-gnu-ld assume the C compiler uses GNU ld default=no
873 --with-pic try to use only PIC/non-PIC objects default=use both
874 --with-mmap try using mmap for BFD input files if available
875 --with-included-gettext use the GNU gettext library included here
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
8fb84ecc 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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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); } &&
8fb84ecc
AC
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
664fe1be 2838 VERSION=2.16.90
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
NC
3506darwin* | rhapsody*)
3507 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
b3baf5d0
NC
3508 lt_cv_file_magic_cmd='/usr/bin/file -L'
3509 case "$host_os" in
3510 rhapsody* | darwin1.012)
3511 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3512 ;;
3513 *) # Darwin 1.3 on
3514 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3515 ;;
3516 esac
55c80943
NC
3517 ;;
3518
5464f5a1 3519freebsd* | kfreebsd*-gnu)
ac48eca1 3520 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
55c80943 3521 case $host_cpu in
ac48eca1 3522 i*86 )
90f2472a
AO
3523 # Not sure whether the presence of OpenBSD here was a mistake.
3524 # Let's accept both of them until this is cleared up.
55c80943
NC
3525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3526 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 ;;
3529 esac
3530 else
3531 lt_cv_deplibs_check_method=pass_all
3532 fi
3533 ;;
3534
3535gnu*)
3536 lt_cv_deplibs_check_method=pass_all
3537 ;;
3538
55c80943 3539hpux10.20*|hpux11*)
4867be41
DJ
3540 case $host_cpu in
3541 hppa*)
3542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3543 lt_cv_file_magic_cmd=/usr/bin/file
3544 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3545 ;;
3546 ia64*)
3547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3548 lt_cv_file_magic_cmd=/usr/bin/file
3549 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3550 ;;
3551 esac
ac48eca1
AO
3552 ;;
3553
3554irix5* | irix6*)
55c80943 3555 case $host_os in
ac48eca1
AO
3556 irix5*)
3557 # this will be overridden with pass_all, but let us keep it just in case
3558 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3559 ;;
3560 *)
55c80943 3561 case $LD in
ac48eca1
AO
3562 *-32|*"-32 ") libmagic=32-bit;;
3563 *-n32|*"-n32 ") libmagic=N32;;
3564 *-64|*"-64 ") libmagic=64-bit;;
3565 *) libmagic=never-match;;
3566 esac
3567 # this will be overridden with pass_all, but let us keep it just in case
55c80943
NC
3568 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3569 ;;
ac48eca1
AO
3570 esac
3571 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3572 lt_cv_deplibs_check_method=pass_all
3573 ;;
3574
3575# This must be Linux ELF.
90f2472a 3576linux-gnu*)
55c80943 3577 case $host_cpu in
c5d1701e 3578 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3579 lt_cv_deplibs_check_method=pass_all ;;
3580 *)
3581 # glibc up to 2.1.1 does not perform some relocations on ARM
55c80943
NC
3582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3583 esac
ac48eca1
AO
3584 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3585 ;;
3586
5464f5a1 3587netbsd* | knetbsd*-gnu)
55c80943 3588 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
b3baf5d0 3589 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3590 else
b3baf5d0 3591 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1 3592 fi
55c80943
NC
3593 ;;
3594
3595newsos6)
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3597 lt_cv_file_magic_cmd=/usr/bin/file
3598 lt_cv_file_magic_test_file=/usr/lib/libnls.so
ac48eca1
AO
3599 ;;
3600
3601osf3* | osf4* | osf5*)
3602 # this will be overridden with pass_all, but let us keep it just in case
3603 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3604 lt_cv_file_magic_test_file=/shlib/libc.so
3605 lt_cv_deplibs_check_method=pass_all
3606 ;;
3607
3608sco3.2v5*)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612solaris*)
3613 lt_cv_deplibs_check_method=pass_all
3614 lt_cv_file_magic_test_file=/lib/libc.so
3615 ;;
3616
6be7c12c
AO
3617sysv5uw[78]* | sysv4*uw2*)
3618 lt_cv_deplibs_check_method=pass_all
3619 ;;
3620
ac48eca1 3621sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
55c80943 3622 case $host_vendor in
ac48eca1
AO
3623 ncr)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 motorola)
55c80943
NC
3627 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]'
3628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3629 ;;
3630 esac
3631 ;;
3632esac
3633
3634fi
5464f5a1
NN
3635echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3636echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3637file_magic_cmd=$lt_cv_file_magic_cmd
3638deplibs_check_method=$lt_cv_deplibs_check_method
3639
6be7c12c
AO
3640
3641
6be7c12c
AO
3642
3643# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3644
3645# Only perform the check for file, if the check method requires it
3646case $deplibs_check_method in
3647file_magic*)
3648 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5464f5a1
NN
3649 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3650echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3651if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c
AO
3653else
3654 case $MAGIC_CMD in
3655 /*)
3656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3657 ;;
3658 ?:/*)
3659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3660 ;;
3661 *)
d64552c5 3662 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3663 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3664 ac_dummy="/usr/bin:$PATH"
3665 for ac_dir in $ac_dummy; do
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3668 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3669 if test -n "$file_magic_test_file"; then
55c80943 3670 case $deplibs_check_method in
ac48eca1
AO
3671 "file_magic "*)
3672 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3674 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3675 egrep "$file_magic_regex" > /dev/null; then
3676 :
3677 else
3678 cat <<EOF 1>&2
3679
3680*** Warning: the command libtool uses to detect shared libraries,
3681*** $file_magic_cmd, produces output that libtool cannot recognize.
3682*** The result is that libtool may fail to recognize shared libraries
3683*** as such. This will affect the creation of libtool libraries that
3684*** depend on shared libraries, but programs linked with such libtool
3685*** libraries will work regardless of this problem. Nevertheless, you
3686*** may want to report the problem to your system manager and/or to
3687*** bug-libtool@gnu.org
3688
3689EOF
3690 fi ;;
3691 esac
3692 fi
3693 break
3694 fi
3695 done
3696 IFS="$ac_save_ifs"
d64552c5 3697 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3698 ;;
3699esac
3700fi
3701
d64552c5
AO
3702MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3703if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3704 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3705echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3706else
5464f5a1
NN
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
ac48eca1
AO
3709fi
3710
d64552c5 3711if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3712 if test -n "$ac_tool_prefix"; then
5464f5a1
NN
3713 echo "$as_me:$LINENO: checking for file" >&5
3714echo $ECHO_N "checking for file... $ECHO_C" >&6
3715if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3717else
55c80943 3718 case $MAGIC_CMD in
ac48eca1 3719 /*)
d64552c5 3720 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3721 ;;
3722 ?:/*)
d64552c5 3723 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3724 ;;
3725 *)
d64552c5 3726 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3728 ac_dummy="/usr/bin:$PATH"
3729 for ac_dir in $ac_dummy; do
3730 test -z "$ac_dir" && ac_dir=.
3731 if test -f $ac_dir/file; then
d64552c5 3732 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3733 if test -n "$file_magic_test_file"; then
55c80943 3734 case $deplibs_check_method in
ac48eca1
AO
3735 "file_magic "*)
3736 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3737 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3738 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3739 egrep "$file_magic_regex" > /dev/null; then
3740 :
3741 else
3742 cat <<EOF 1>&2
3743
3744*** Warning: the command libtool uses to detect shared libraries,
3745*** $file_magic_cmd, produces output that libtool cannot recognize.
3746*** The result is that libtool may fail to recognize shared libraries
3747*** as such. This will affect the creation of libtool libraries that
3748*** depend on shared libraries, but programs linked with such libtool
3749*** libraries will work regardless of this problem. Nevertheless, you
3750*** may want to report the problem to your system manager and/or to
3751*** bug-libtool@gnu.org
3752
3753EOF
3754 fi ;;
3755 esac
3756 fi
3757 break
3758 fi
3759 done
3760 IFS="$ac_save_ifs"
d64552c5 3761 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3762 ;;
3763esac
3764fi
3765
d64552c5
AO
3766MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3767if test -n "$MAGIC_CMD"; then
5464f5a1
NN
3768 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3769echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3770else
5464f5a1
NN
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
ac48eca1
AO
3773fi
3774
3775 else
d64552c5 3776 MAGIC_CMD=:
ac48eca1
AO
3777 fi
3778fi
3779
3780 fi
3781 ;;
3782esac
3783
5464f5a1
NN
3784if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5464f5a1
NN
3787echo "$as_me:$LINENO: checking for $ac_word" >&5
3788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3791else
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794else
5464f5a1
NN
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
3806done
3807done
3808
ac48eca1
AO
3809fi
3810fi
5464f5a1 3811RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3812if test -n "$RANLIB"; then
5464f5a1
NN
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3815else
5464f5a1
NN
3816 echo "$as_me:$LINENO: result: no" >&5
3817echo "${ECHO_T}no" >&6
ac48eca1
AO
3818fi
3819
5464f5a1 3820fi
ac48eca1 3821if test -z "$ac_cv_prog_RANLIB"; then
5464f5a1 3822 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824set dummy ranlib; ac_word=$2
5464f5a1
NN
3825echo "$as_me:$LINENO: checking for $ac_word" >&5
3826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3829else
5464f5a1
NN
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6be7c12c 3832else
5464f5a1
NN
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842 break 2
3843 fi
3844done
3845done
3846
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3848fi
3849fi
5464f5a1
NN
3850ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3854else
5464f5a1
NN
3855 echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
ac48eca1
AO
3857fi
3858
5464f5a1 3859 RANLIB=$ac_ct_RANLIB
ac48eca1 3860else
5464f5a1 3861 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3862fi
3863
5464f5a1
NN
3864if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3866set dummy ${ac_tool_prefix}strip; ac_word=$2
5464f5a1
NN
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869if test "${ac_cv_prog_STRIP+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3871else
3872 if test -n "$STRIP"; then
3873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3874else
5464f5a1
NN
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886done
3887done
3888
ac48eca1
AO
3889fi
3890fi
5464f5a1 3891STRIP=$ac_cv_prog_STRIP
ac48eca1 3892if test -n "$STRIP"; then
5464f5a1
NN
3893 echo "$as_me:$LINENO: result: $STRIP" >&5
3894echo "${ECHO_T}$STRIP" >&6
ac48eca1 3895else
5464f5a1
NN
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
ac48eca1
AO
3898fi
3899
5464f5a1 3900fi
ac48eca1 3901if test -z "$ac_cv_prog_STRIP"; then
5464f5a1 3902 ac_ct_STRIP=$STRIP
ac48eca1
AO
3903 # Extract the first word of "strip", so it can be a program name with args.
3904set dummy strip; ac_word=$2
5464f5a1
NN
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 3909else
5464f5a1
NN
3910 if test -n "$ac_ct_STRIP"; then
3911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6be7c12c 3912else
5464f5a1
NN
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_ac_ct_STRIP="strip"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925done
3926
3927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3928fi
3929fi
5464f5a1
NN
3930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3931if test -n "$ac_ct_STRIP"; then
3932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3933echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3934else
5464f5a1
NN
3935 echo "$as_me:$LINENO: result: no" >&5
3936echo "${ECHO_T}no" >&6
ac48eca1
AO
3937fi
3938
5464f5a1 3939 STRIP=$ac_ct_STRIP
ac48eca1 3940else
5464f5a1 3941 STRIP="$ac_cv_prog_STRIP"
ac48eca1 3942fi
252b5132 3943
6be7c12c 3944
252b5132 3945# Check for any special flags to pass to ltconfig.
b2ef150d 3946libtool_flags="--cache-file=$cache_file"
252b5132
RH
3947test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3948test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
b2ef150d 3949test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
55c80943
NC
3950test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3951test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3952
6be7c12c 3953
a74801ba
ILT
3954# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3955if test "${enable_libtool_lock+set}" = set; then
3956 enableval="$enable_libtool_lock"
a74801ba 3957
5464f5a1 3958fi;
a74801ba
ILT
3959test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3960test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3961
5464f5a1 3962
ac48eca1
AO
3963# Check whether --with-pic or --without-pic was given.
3964if test "${with_pic+set}" = set; then
3965 withval="$with_pic"
3966 pic_mode="$withval"
3967else
5464f5a1
NN
3968 pic_mode=default
3969fi;
ac48eca1
AO
3970test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3971test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3972
252b5132
RH
3973# Some flags need to be propagated to the compiler or linker for good
3974# libtool support.
55c80943 3975case $host in
252b5132
RH
3976*-*-irix6*)
3977 # Find out which ABI we are using.
1ad12f97 3978 echo '#line 3978 "configure"' > conftest.$ac_ext
5464f5a1
NN
3979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; then
6a457e5c
NC
3984 if test "$lt_cv_prog_gnu_ld" = yes; then
3985 case `/usr/bin/file conftest.$ac_objext` in
3986 *32-bit*)
3987 LD="${LD-ld} -melf32bsmip"
3988 ;;
3989 *N32*)
3990 LD="${LD-ld} -melf32bmipn32"
3991 ;;
3992 *64-bit*)
3993 LD="${LD-ld} -melf64bmip"
3994 ;;
3995 esac
3996 else
55c80943 3997 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3998 *32-bit*)
3999 LD="${LD-ld} -32"
4000 ;;
4001 *N32*)
4002 LD="${LD-ld} -n32"
4003 ;;
4004 *64-bit*)
4005 LD="${LD-ld} -64"
4006 ;;
4007 esac
6a457e5c 4008 fi
252b5132
RH
4009 fi
4010 rm -rf conftest*
4011 ;;
4012
4867be41
DJ
4013ia64-*-hpux*)
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
5464f5a1
NN
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
4867be41
DJ
4021 case "`/usr/bin/file conftest.o`" in
4022 *ELF-32*)
4023 HPUX_IA64_MODE="32"
4024 ;;
4025 *ELF-64*)
4026 HPUX_IA64_MODE="64"
4027 ;;
4028 esac
4029 fi
4030 rm -rf conftest*
4031 ;;
4032
252b5132
RH
4033*-*-sco3.2v5*)
4034 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
b2ef150d 4035 SAVE_CFLAGS="$CFLAGS"
252b5132 4036 CFLAGS="$CFLAGS -belf"
5464f5a1
NN
4037 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4038echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4039if test "${lt_cv_cc_needs_belf+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
b2ef150d 4041else
5464f5a1
NN
4042
4043
ac48eca1 4044 ac_ext=c
ac48eca1 4045ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4049
5464f5a1
NN
4050 cat >conftest.$ac_ext <<_ACEOF
4051/* confdefs.h. */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h. */
b2ef150d 4056
5464f5a1
NN
4057int
4058main ()
4059{
b2ef150d 4060
5464f5a1
NN
4061 ;
4062 return 0;
4063}
4064_ACEOF
4065rm -f conftest.$ac_objext conftest$ac_exeext
4066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
8fb84ecc
AC
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
5464f5a1
NN
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
b2ef150d
ILT
4087 lt_cv_cc_needs_belf=yes
4088else
5464f5a1
NN
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092lt_cv_cc_needs_belf=no
b2ef150d 4093fi
5464f5a1
NN
4094rm -f conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4096 ac_ext=c
ac48eca1 4097ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4101
b2ef150d 4102fi
5464f5a1
NN
4103echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4104echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2ef150d
ILT
4105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4107 CFLAGS="$SAVE_CFLAGS"
4108 fi
252b5132
RH
4109 ;;
4110
6be7c12c 4111
252b5132
RH
4112esac
4113
6be7c12c 4114
b2ef150d 4115# Save cache, so that ltconfig can load it
5464f5a1 4116cat >confcache <<\_ACEOF
b2ef150d
ILT
4117# This file is a shell script that caches the results of configure
4118# tests run on this system so they can be shared between configure
5464f5a1
NN
4119# scripts and configure runs, see configure's option --config-cache.
4120# It is not useful on other systems. If it contains results you don't
4121# want to keep, you may remove or edit it.
b2ef150d 4122#
5464f5a1
NN
4123# config.status only pays attention to the cache file if you give it
4124# the --recheck option to rerun configure.
b2ef150d 4125#
5464f5a1
NN
4126# `ac_cv_env_foo' variables (set or unset) will be overridden when
4127# loading this file, other *unset* `ac_cv_foo' will be assigned the
4128# following values.
4129
4130_ACEOF
4131
b2ef150d
ILT
4132# The following way of writing the cache mishandles newlines in values,
4133# but we know of no workaround that is simple, portable, and efficient.
4134# So, don't put newlines in cache variables' values.
4135# Ultrix sh set writes to stderr and can't be redirected directly,
4136# and sets the high bit in the cache file unless we assign to the vars.
5464f5a1
NN
4137{
4138 (set) 2>&1 |
4139 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4140 *ac_space=\ *)
4141 # `set' does not quote correctly, so add quotes (double-quote
4142 # substitution turns \\\\ into \\, and sed turns \\ into \).
4143 sed -n \
4144 "s/'/'\\\\''/g;
4145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4146 ;;
4147 *)
4148 # `set' quotes correctly as required by POSIX, so do not add quotes.
4149 sed -n \
4150 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4151 ;;
4152 esac;
4153} |
4154 sed '
4155 t clear
4156 : clear
4157 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4158 t end
4159 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4160 : end' >>confcache
4161if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2ef150d 4162 if test -w $cache_file; then
5464f5a1
NN
4163 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4164 cat confcache >$cache_file
b2ef150d
ILT
4165 else
4166 echo "not updating unwritable cache $cache_file"
4167 fi
4168fi
4169rm -f confcache
4170
252b5132 4171# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4172AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4173MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4174LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4175AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4176objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4177deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4178${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4179$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5464f5a1
NN
4180|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4181echo "$as_me: error: libtool configure failed" >&2;}
4182 { (exit 1); exit 1; }; }
252b5132 4183
b2ef150d
ILT
4184# Reload cache, that may have been modified by ltconfig
4185if test -r "$cache_file"; then
5464f5a1
NN
4186 # Some versions of bash will fail to source /dev/null (special
4187 # files actually), so we avoid doing that.
4188 if test -f "$cache_file"; then
4189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4190echo "$as_me: loading cache $cache_file" >&6;}
4191 case $cache_file in
4192 [\\/]* | ?:[\\/]* ) . $cache_file;;
4193 *) . ./$cache_file;;
4194 esac
4195 fi
b2ef150d 4196else
5464f5a1
NN
4197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4198echo "$as_me: creating cache $cache_file" >&6;}
4199 >$cache_file
b2ef150d
ILT
4200fi
4201
6be7c12c 4202
b2ef150d 4203# This can be used to rebuild libtool when needed
ac48eca1 4204LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2ef150d
ILT
4205
4206# Always use our own libtool.
4207LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4208
252b5132
RH
4209# Redirect the config.log output again, so that the ltconfig log is not
4210# clobbered by the next message.
4211exec 5>>./config.log
4212
6be7c12c 4213
5464f5a1
NN
4214
4215
4216
4217
6be7c12c 4218
252b5132
RH
4219# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4220if test "${enable_64_bit_bfd+set}" = set; then
4221 enableval="$enable_64_bit_bfd"
4222 case "${enableval}" in
4223 yes) want64=true ;;
4224 no) want64=false ;;
5464f5a1
NN
4225 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4226echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4227 { (exit 1); exit 1; }; } ;;
252b5132
RH
4228esac
4229else
4230 want64=false
5464f5a1 4231fi; # Check whether --enable-targets or --disable-targets was given.
252b5132
RH
4232if test "${enable_targets+set}" = set; then
4233 enableval="$enable_targets"
4234 case "${enableval}" in
5464f5a1
NN
4235 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4236echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4237 { (exit 1); exit 1; }; }
252b5132
RH
4238 ;;
4239 no) enable_targets= ;;
4240 *) enable_targets=$enableval ;;
4241esac
5464f5a1 4242fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4243if test "${enable_commonbfdlib+set}" = set; then
4244 enableval="$enable_commonbfdlib"
4245 case "${enableval}" in
4246 yes) commonbfdlib=true ;;
4247 no) commonbfdlib=false ;;
5464f5a1
NN
4248 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4249echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4250 { (exit 1); exit 1; }; } ;;
252b5132 4251esac
5464f5a1 4252fi;
252b5132
RH
4253# Check whether --with-mmap or --without-mmap was given.
4254if test "${with_mmap+set}" = set; then
4255 withval="$with_mmap"
4256 case "${withval}" in
4257 yes) want_mmap=true ;;
4258 no) want_mmap=false ;;
5464f5a1
NN
4259 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4260echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4261 { (exit 1); exit 1; }; } ;;
252b5132
RH
4262esac
4263else
4264 want_mmap=false
5464f5a1 4265fi;
0218d1e4 4266build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97
NC
4267
4268# Check whether --enable-error-on-warning or --disable-error-on-warning was given.
4269if test "${enable_error_on_warning+set}" = set; then
4270 enableval="$enable_error_on_warning"
4271 case "${enableval}" in
4272 yes | y) ERROR_ON_WARNING="yes" ;;
4273 no | n) ERROR_ON_WARNING="no" ;;
4274 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-error-on-warning" >&5
4275echo "$as_me: error: bad value ${enableval} for --enable-error-on-warning" >&2;}
4276 { (exit 1); exit 1; }; } ;;
4277 esac
4278fi;
4279
4280# Enable -Werror by default, suppressing it only for --disable-error-on-warning
4281# or --disable-build-warnings.
4282if test "${ERROR_ON_WARNING}" != no
4283then
4284 build_warnings="$build_warnings -Werror"
4285fi
4286
a2d91340
AC
4287# Check whether --enable-build-warnings or --disable-build-warnings was given.
4288if test "${enable_build_warnings+set}" = set; then
4289 enableval="$enable_build_warnings"
4290 case "${enableval}" in
4291 yes) ;;
4292 no) build_warnings="-w";;
4293 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4294 build_warnings="${build_warnings} ${t}";;
4295 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4296 build_warnings="${t} ${build_warnings}";;
4297 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4298esac
4299if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4300 echo "Setting warning flags = $build_warnings" 6>&1
4301fi
5464f5a1 4302fi; WARN_CFLAGS=""
66e25bab 4303if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
a2d91340
AC
4304 WARN_CFLAGS="${build_warnings}"
4305fi
4306
4307
5464f5a1 4308 ac_config_headers="$ac_config_headers config.h:config.in"
6be7c12c 4309
252b5132
RH
4310
4311if test -z "$target" ; then
5464f5a1
NN
4312 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4313echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4314 { (exit 1); exit 1; }; }
252b5132 4315fi
252b5132 4316
5464f5a1
NN
4317echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4318echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4319 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4320if test "${enable_maintainer_mode+set}" = set; then
4321 enableval="$enable_maintainer_mode"
4322 USE_MAINTAINER_MODE=$enableval
4323else
4324 USE_MAINTAINER_MODE=no
5464f5a1
NN
4325fi;
4326 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4327echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6be7c12c 4328
252b5132
RH
4329
4330if test $USE_MAINTAINER_MODE = yes; then
4331 MAINTAINER_MODE_TRUE=
4332 MAINTAINER_MODE_FALSE='#'
4333else
4334 MAINTAINER_MODE_TRUE='#'
4335 MAINTAINER_MODE_FALSE=
4336fi
f5385ebf 4337
252b5132 4338 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4339
5464f5a1 4340
24443139
AS
4341 case ${build_alias} in
4342 "") build_noncanonical=${build} ;;
4343 *) build_noncanonical=${build_alias} ;;
4344esac
4345
4346 case ${host_alias} in
4347 "") host_noncanonical=${build_noncanonical} ;;
4348 *) host_noncanonical=${host_alias} ;;
4349esac
4350
4351 case ${target_alias} in
4352 "") target_noncanonical=${host_noncanonical} ;;
4353 *) target_noncanonical=${target_alias} ;;
4354esac
4355
5464f5a1
NN
4356echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4357echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
a703a6ea
AM
4358 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4359if test "${enable_install_libbfd+set}" = set; then
4360 enableval="$enable_install_libbfd"
4361 install_libbfd_p=$enableval
4362else
66e25bab 4363 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
a703a6ea
AM
4364 install_libbfd_p=yes
4365 else
4366 install_libbfd_p=no
4367 fi
5464f5a1
NN
4368fi;
4369 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4370echo "${ECHO_T}$install_libbfd_p" >&6
a703a6ea 4371
a703a6ea
AM
4372
4373if test $install_libbfd_p = yes; then
4374 INSTALL_LIBBFD_TRUE=
4375 INSTALL_LIBBFD_FALSE='#'
4376else
4377 INSTALL_LIBBFD_TRUE='#'
4378 INSTALL_LIBBFD_FALSE=
4379fi
f5385ebf 4380
5464f5a1 4381 # Need _noncanonical variables for this.
24443139
AS
4382
4383
4384
4385
a703a6ea
AM
4386 # libbfd.a is a host library containing target dependent code
4387 bfdlibdir='$(libdir)'
4388 bfdincludedir='$(includedir)'
4389 if test "${host}" != "${target}"; then
5464f5a1
NN
4390 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4391 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
a703a6ea 4392 fi
a703a6ea
AM
4393
4394
252b5132
RH
4395
4396
5464f5a1
NN
4397
4398
4399host64=false
4400target64=false
4401bfd_default_target_size=32
4402
4403# host stuff:
4404
4405ac_ext=c
4406ac_cpp='$CPP $CPPFLAGS'
4407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4409ac_compiler_gnu=$ac_cv_c_compiler_gnu
4410if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4412set dummy ${ac_tool_prefix}gcc; ac_word=$2
4413echo "$as_me:$LINENO: checking for $ac_word" >&5
4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415if test "${ac_cv_prog_CC+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4417else
5464f5a1
NN
4418 if test -n "$CC"; then
4419 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4420else
5464f5a1
NN
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
6be7c12c 4431 fi
5464f5a1
NN
4432done
4433done
4434
252b5132 4435fi
b3baf5d0 4436fi
5464f5a1
NN
4437CC=$ac_cv_prog_CC
4438if test -n "$CC"; then
4439 echo "$as_me:$LINENO: result: $CC" >&5
4440echo "${ECHO_T}$CC" >&6
4441else
4442 echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6
4444fi
252b5132 4445
5464f5a1
NN
4446fi
4447if test -z "$ac_cv_prog_CC"; then
4448 ac_ct_CC=$CC
4449 # Extract the first word of "gcc", so it can be a program name with args.
4450set dummy gcc; ac_word=$2
4451echo "$as_me:$LINENO: checking for $ac_word" >&5
4452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456 if test -n "$ac_ct_CC"; then
4457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466 ac_cv_prog_ac_ct_CC="gcc"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470done
4471done
252b5132 4472
5464f5a1
NN
4473fi
4474fi
4475ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476if test -n "$ac_ct_CC"; then
4477 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4478echo "${ECHO_T}$ac_ct_CC" >&6
4479else
4480 echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
4482fi
252b5132 4483
5464f5a1
NN
4484 CC=$ac_ct_CC
4485else
4486 CC="$ac_cv_prog_CC"
4487fi
252b5132 4488
5464f5a1
NN
4489if test -z "$CC"; then
4490 if test -n "$ac_tool_prefix"; then
4491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4492set dummy ${ac_tool_prefix}cc; ac_word=$2
4493echo "$as_me:$LINENO: checking for $ac_word" >&5
4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495if test "${ac_cv_prog_CC+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498 if test -n "$CC"; then
4499 ac_cv_prog_CC="$CC" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508 ac_cv_prog_CC="${ac_tool_prefix}cc"
4509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 break 2
4511 fi
4512done
4513done
6be7c12c 4514
5464f5a1
NN
4515fi
4516fi
4517CC=$ac_cv_prog_CC
4518if test -n "$CC"; then
4519 echo "$as_me:$LINENO: result: $CC" >&5
4520echo "${ECHO_T}$CC" >&6
4521else
4522 echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524fi
4525
4526fi
4527if test -z "$ac_cv_prog_CC"; then
4528 ac_ct_CC=$CC
4529 # Extract the first word of "cc", so it can be a program name with args.
4530set dummy cc; ac_word=$2
4531echo "$as_me:$LINENO: checking for $ac_word" >&5
4532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4535else
4536 if test -n "$ac_ct_CC"; then
4537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_ac_ct_CC="cc"
4547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550done
4551done
4552
4553fi
4554fi
4555ac_ct_CC=$ac_cv_prog_ac_ct_CC
4556if test -n "$ac_ct_CC"; then
4557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4558echo "${ECHO_T}$ac_ct_CC" >&6
4559else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562fi
4563
4564 CC=$ac_ct_CC
4565else
4566 CC="$ac_cv_prog_CC"
4567fi
4568
4569fi
4570if test -z "$CC"; then
4571 # Extract the first word of "cc", so it can be a program name with args.
4572set dummy cc; ac_word=$2
4573echo "$as_me:$LINENO: checking for $ac_word" >&5
4574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575if test "${ac_cv_prog_CC+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4577else
4578 if test -n "$CC"; then
4579 ac_cv_prog_CC="$CC" # Let the user override the test.
4580else
5464f5a1
NN
4581 ac_prog_rejected=no
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4590 ac_prog_rejected=yes
4591 continue
4592 fi
4593 ac_cv_prog_CC="cc"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598done
4599
4600if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611fi
4612fi
4613fi
4614CC=$ac_cv_prog_CC
4615if test -n "$CC"; then
4616 echo "$as_me:$LINENO: result: $CC" >&5
4617echo "${ECHO_T}$CC" >&6
4618else
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
4621fi
4622
4623fi
4624if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in cl
4627 do
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630echo "$as_me:$LINENO: checking for $ac_word" >&5
4631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632if test "${ac_cv_prog_CC+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649done
4650done
4651
4652fi
4653fi
4654CC=$ac_cv_prog_CC
4655if test -n "$CC"; then
4656 echo "$as_me:$LINENO: result: $CC" >&5
4657echo "${ECHO_T}$CC" >&6
4658else
4659 echo "$as_me:$LINENO: result: no" >&5
4660echo "${ECHO_T}no" >&6
4661fi
4662
4663 test -n "$CC" && break
6be7c12c 4664 done
252b5132 4665fi
5464f5a1
NN
4666if test -z "$CC"; then
4667 ac_ct_CC=$CC
4668 for ac_prog in cl
4669do
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671set dummy $ac_prog; ac_word=$2
4672echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 if test -n "$ac_ct_CC"; then
4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679else
4680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687 ac_cv_prog_ac_ct_CC="$ac_prog"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689 break 2
4690 fi
4691done
4692done
4693
4694fi
4695fi
4696ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697if test -n "$ac_ct_CC"; then
4698 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4699echo "${ECHO_T}$ac_ct_CC" >&6
4700else
4701 echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6
4703fi
4704
4705 test -n "$ac_ct_CC" && break
4706done
4707
4708 CC=$ac_ct_CC
4709fi
4710
4711fi
4712
4713
4714test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4715See \`config.log' for more details." >&5
4716echo "$as_me: error: no acceptable C compiler found in \$PATH
4717See \`config.log' for more details." >&2;}
4718 { (exit 1); exit 1; }; }
4719
4720# Provide some information about the compiler.
4721echo "$as_me:$LINENO:" \
4722 "checking for C compiler version" >&5
4723ac_compiler=`set X $ac_compile; echo $2`
4724{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4725 (eval $ac_compiler --version </dev/null >&5) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); }
4729{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4730 (eval $ac_compiler -v </dev/null >&5) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }
4734{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4735 (eval $ac_compiler -V </dev/null >&5) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }
4739
4740echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4741echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4742if test "${ac_cv_c_compiler_gnu+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745 cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h. */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h. */
4751
4752int
4753main ()
4754{
4755#ifndef __GNUC__
4756 choke me
4757#endif
4758
4759 ;
4760 return 0;
4761}
4762_ACEOF
4763rm -f conftest.$ac_objext
4764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4765 (eval $ac_compile) 2>conftest.er1
4766 ac_status=$?
4767 grep -v '^ *+' conftest.er1 >conftest.err
4768 rm -f conftest.er1
4769 cat conftest.err >&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
8fb84ecc
AC
4772 { ac_try='test -z "$ac_c_werror_flag"
4773 || test ! -s conftest.err'
5464f5a1
NN
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_compiler_gnu=yes
4786else
4787 echo "$as_me: failed program was:" >&5
4788sed 's/^/| /' conftest.$ac_ext >&5
4789
4790ac_compiler_gnu=no
4791fi
4792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4793ac_cv_c_compiler_gnu=$ac_compiler_gnu
4794
4795fi
4796echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4797echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4798GCC=`test $ac_compiler_gnu = yes && echo yes`
4799ac_test_CFLAGS=${CFLAGS+set}
4800ac_save_CFLAGS=$CFLAGS
4801CFLAGS="-g"
4802echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4803echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4804if test "${ac_cv_prog_cc_g+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807 cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
4813
4814int
4815main ()
4816{
4817
4818 ;
4819 return 0;
4820}
4821_ACEOF
4822rm -f conftest.$ac_objext
4823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>conftest.er1
4825 ac_status=$?
4826 grep -v '^ *+' conftest.er1 >conftest.err
4827 rm -f conftest.er1
4828 cat conftest.err >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } &&
8fb84ecc
AC
4831 { ac_try='test -z "$ac_c_werror_flag"
4832 || test ! -s conftest.err'
5464f5a1
NN
4833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834 (eval $ac_try) 2>&5
4835 ac_status=$?
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); }; } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_prog_cc_g=yes
4845else
4846 echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
4848
4849ac_cv_prog_cc_g=no
4850fi
4851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4852fi
4853echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4854echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4855if test "$ac_test_CFLAGS" = set; then
4856 CFLAGS=$ac_save_CFLAGS
4857elif test $ac_cv_prog_cc_g = yes; then
4858 if test "$GCC" = yes; then
4859 CFLAGS="-g -O2"
4860 else
4861 CFLAGS="-g"
4862 fi
4863else
4864 if test "$GCC" = yes; then
4865 CFLAGS="-O2"
4866 else
4867 CFLAGS=
4868 fi
4869fi
4870echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4871echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4872if test "${ac_cv_prog_cc_stdc+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874else
4875 ac_cv_prog_cc_stdc=no
4876ac_save_CC=$CC
4877cat >conftest.$ac_ext <<_ACEOF
4878/* confdefs.h. */
4879_ACEOF
4880cat confdefs.h >>conftest.$ac_ext
4881cat >>conftest.$ac_ext <<_ACEOF
4882/* end confdefs.h. */
4883#include <stdarg.h>
4884#include <stdio.h>
4885#include <sys/types.h>
4886#include <sys/stat.h>
4887/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4888struct buf { int x; };
4889FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890static char *e (p, i)
4891 char **p;
4892 int i;
4893{
4894 return p[i];
4895}
4896static char *f (char * (*g) (char **, int), char **p, ...)
4897{
4898 char *s;
4899 va_list v;
4900 va_start (v,p);
4901 s = g (p, va_arg (v,int));
4902 va_end (v);
4903 return s;
4904}
4905
4906/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4907 function prototypes and stuff, but not '\xHH' hex character constants.
4908 These don't provoke an error unfortunately, instead are silently treated
4909 as 'x'. The following induces an error, until -std1 is added to get
4910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4911 array size at least. It's necessary to write '\x00'==0 to get something
4912 that's true only with -std1. */
4913int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4914
4915int test (int i, double x);
4916struct s1 {int (*f) (int a);};
4917struct s2 {int (*f) (double a);};
4918int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4919int argc;
4920char **argv;
4921int
4922main ()
4923{
4924return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4925 ;
4926 return 0;
4927}
4928_ACEOF
4929# Don't try gcc -ansi; that turns off useful extensions and
4930# breaks some systems' header files.
4931# AIX -qlanglvl=ansi
4932# Ultrix and OSF/1 -std1
4933# HP-UX 10.20 and later -Ae
4934# HP-UX older versions -Aa -D_HPUX_SOURCE
4935# SVR4 -Xc -D__EXTENSIONS__
4936for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4937do
4938 CC="$ac_save_CC $ac_arg"
4939 rm -f conftest.$ac_objext
4940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4941 (eval $ac_compile) 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
8fb84ecc
AC
4948 { ac_try='test -z "$ac_c_werror_flag"
4949 || test ! -s conftest.err'
5464f5a1
NN
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; } &&
4955 { ac_try='test -s conftest.$ac_objext'
4956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 (eval $ac_try) 2>&5
4958 ac_status=$?
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960 (exit $ac_status); }; }; then
4961 ac_cv_prog_cc_stdc=$ac_arg
4962break
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967fi
4968rm -f conftest.err conftest.$ac_objext
4969done
4970rm -f conftest.$ac_ext conftest.$ac_objext
4971CC=$ac_save_CC
4972
4973fi
4974
4975case "x$ac_cv_prog_cc_stdc" in
4976 x|xno)
4977 echo "$as_me:$LINENO: result: none needed" >&5
4978echo "${ECHO_T}none needed" >&6 ;;
4979 *)
4980 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4981echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4982 CC="$CC $ac_cv_prog_cc_stdc" ;;
4983esac
4984
4985# Some people use a C++ compiler to compile C. Since we use `exit',
4986# in C++ we need to declare it. In case someone uses the same compiler
4987# for both compiling C and C++ we need to have the C++ compiler decide
4988# the declaration of exit, since it's the most demanding environment.
4989cat >conftest.$ac_ext <<_ACEOF
4990#ifndef __cplusplus
4991 choke me
4992#endif
4993_ACEOF
4994rm -f conftest.$ac_objext
4995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
8fb84ecc
AC
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5464f5a1
NN
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 for ac_declaration in \
5017 '' \
5018 'extern "C" void std::exit (int) throw (); using std::exit;' \
5019 'extern "C" void std::exit (int); using std::exit;' \
5020 'extern "C" void exit (int) throw ();' \
5021 'extern "C" void exit (int);' \
5022 'void exit (int);'
5023do
5024 cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h. */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h. */
5030$ac_declaration
5031#include <stdlib.h>
5032int
5033main ()
5034{
5035exit (42);
5036 ;
5037 return 0;
5038}
5039_ACEOF
5040rm -f conftest.$ac_objext
5041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>conftest.er1
5043 ac_status=$?
5044 grep -v '^ *+' conftest.er1 >conftest.err
5045 rm -f conftest.er1
5046 cat conftest.err >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
8fb84ecc
AC
5049 { ac_try='test -z "$ac_c_werror_flag"
5050 || test ! -s conftest.err'
5464f5a1
NN
5051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 (eval $ac_try) 2>&5
5053 ac_status=$?
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); }; } &&
5056 { ac_try='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058 (eval $ac_try) 2>&5
5059 ac_status=$?
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 :
5063else
5064 echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067continue
5068fi
5069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076$ac_declaration
5077int
5078main ()
5079{
5080exit (42);
5081 ;
5082 return 0;
5083}
5084_ACEOF
5085rm -f conftest.$ac_objext
5086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
8fb84ecc
AC
5094 { ac_try='test -z "$ac_c_werror_flag"
5095 || test ! -s conftest.err'
5464f5a1
NN
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 break
5108else
5109 echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112fi
5113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114done
5115rm -f conftest*
5116if test -n "$ac_declaration"; then
5117 echo '#ifdef __cplusplus' >>confdefs.h
5118 echo $ac_declaration >>confdefs.h
5119 echo '#endif' >>confdefs.h
252b5132 5120fi
5464f5a1 5121
b3baf5d0 5122else
5464f5a1
NN
5123 echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
b3baf5d0 5126fi
5464f5a1
NN
5127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5128ac_ext=c
5129ac_cpp='$CPP $CPPFLAGS'
5130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132ac_compiler_gnu=$ac_cv_c_compiler_gnu
b3baf5d0 5133
5464f5a1
NN
5134
5135ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
5136if test -n "$ac_tool_prefix"; then
5137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5138set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5139echo "$as_me:$LINENO: checking for $ac_word" >&5
5140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141if test "${ac_cv_prog_RANLIB+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5143else
5464f5a1
NN
5144 if test -n "$RANLIB"; then
5145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5146else
5464f5a1
NN
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 break 2
252b5132 5157 fi
5464f5a1
NN
5158done
5159done
5160
252b5132
RH
5161fi
5162fi
5464f5a1
NN
5163RANLIB=$ac_cv_prog_RANLIB
5164if test -n "$RANLIB"; then
5165 echo "$as_me:$LINENO: result: $RANLIB" >&5
5166echo "${ECHO_T}$RANLIB" >&6
252b5132 5167else
5464f5a1
NN
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
252b5132
RH
5170fi
5171
5464f5a1
NN
5172fi
5173if test -z "$ac_cv_prog_RANLIB"; then
5174 ac_ct_RANLIB=$RANLIB
5175 # Extract the first word of "ranlib", so it can be a program name with args.
5176set dummy ranlib; ac_word=$2
5177echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5179if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5181else
5464f5a1
NN
5182 if test -n "$ac_ct_RANLIB"; then
5183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5184else
5464f5a1
NN
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_RANLIB="ranlib"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197done
5198
5199 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
5200fi
5201fi
5464f5a1
NN
5202ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5203if test -n "$ac_ct_RANLIB"; then
5204 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5205echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5206else
5464f5a1
NN
5207 echo "$as_me:$LINENO: result: no" >&5
5208echo "${ECHO_T}no" >&6
b3baf5d0 5209fi
252b5132 5210
5464f5a1 5211 RANLIB=$ac_ct_RANLIB
6be7c12c 5212else
5464f5a1 5213 RANLIB="$ac_cv_prog_RANLIB"
252b5132 5214fi
5464f5a1 5215
6be7c12c 5216ac_ext=c
6be7c12c 5217ac_cpp='$CPP $CPPFLAGS'
5464f5a1
NN
5218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5220ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5222echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5223# On Suns, sometimes $CPP names a directory.
5224if test -n "$CPP" && test -d "$CPP"; then
5225 CPP=
6be7c12c 5226fi
5464f5a1
NN
5227if test -z "$CPP"; then
5228 if test "${ac_cv_prog_CPP+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5230else
5464f5a1
NN
5231 # Double quotes because CPP needs to be expanded
5232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5233 do
5234 ac_preproc_ok=false
5235for ac_c_preproc_warn_flag in '' yes
5236do
5237 # Use a header file that comes with gcc, so configuring glibc
5238 # with a fresh cross-compiler works.
5239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 # <limits.h> exists even on freestanding compilers.
5241 # On the NeXT, cc -E runs the code through the compiler's parser,
5242 # not just through cpp. "Syntax error" is here to catch this case.
5243 cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
5249#ifdef __STDC__
5250# include <limits.h>
5251#else
5252# include <assert.h>
252b5132 5253#endif
5464f5a1
NN
5254 Syntax error
5255_ACEOF
5256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } >/dev/null; then
5264 if test -s conftest.err; then
5265 ac_cpp_err=$ac_c_preproc_warn_flag
5266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5267 else
5268 ac_cpp_err=
5269 fi
6be7c12c 5270else
5464f5a1 5271 ac_cpp_err=yes
6be7c12c 5272fi
5464f5a1
NN
5273if test -z "$ac_cpp_err"; then
5274 :
6be7c12c 5275else
5464f5a1
NN
5276 echo "$as_me: failed program was:" >&5
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
5279 # Broken: fails on valid input.
5280continue
5281fi
5282rm -f conftest.err conftest.$ac_ext
5283
5284 # OK, works on sane cases. Now check whether non-existent headers
5285 # can be detected and how.
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292#include <ac_nonexistent.h>
5293_ACEOF
5294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } >/dev/null; then
5302 if test -s conftest.err; then
5303 ac_cpp_err=$ac_c_preproc_warn_flag
5304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5305 else
5306 ac_cpp_err=
5307 fi
252b5132 5308else
5464f5a1 5309 ac_cpp_err=yes
252b5132 5310fi
5464f5a1
NN
5311if test -z "$ac_cpp_err"; then
5312 # Broken: success on invalid input.
5313continue
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
6be7c12c 5317
5464f5a1
NN
5318 # Passes both tests.
5319ac_preproc_ok=:
5320break
252b5132 5321fi
5464f5a1 5322rm -f conftest.err conftest.$ac_ext
6be7c12c 5323
5464f5a1
NN
5324done
5325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5326rm -f conftest.err conftest.$ac_ext
5327if $ac_preproc_ok; then
5328 break
252b5132
RH
5329fi
5330
5464f5a1
NN
5331 done
5332 ac_cv_prog_CPP=$CPP
252b5132 5333
252b5132 5334fi
5464f5a1 5335 CPP=$ac_cv_prog_CPP
6be7c12c 5336else
5464f5a1
NN
5337 ac_cv_prog_CPP=$CPP
5338fi
5339echo "$as_me:$LINENO: result: $CPP" >&5
5340echo "${ECHO_T}$CPP" >&6
5341ac_preproc_ok=false
5342for ac_c_preproc_warn_flag in '' yes
5343do
5344 # Use a header file that comes with gcc, so configuring glibc
5345 # with a fresh cross-compiler works.
5346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5347 # <limits.h> exists even on freestanding compilers.
6be7c12c 5348 # On the NeXT, cc -E runs the code through the compiler's parser,
5464f5a1
NN
5349 # not just through cpp. "Syntax error" is here to catch this case.
5350 cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h. */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h. */
5356#ifdef __STDC__
5357# include <limits.h>
5358#else
5359# include <assert.h>
5360#endif
5361 Syntax error
5362_ACEOF
5363if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } >/dev/null; then
5371 if test -s conftest.err; then
5372 ac_cpp_err=$ac_c_preproc_warn_flag
5373 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5374 else
5375 ac_cpp_err=
5376 fi
252b5132 5377else
5464f5a1
NN
5378 ac_cpp_err=yes
5379fi
5380if test -z "$ac_cpp_err"; then
6be7c12c 5381 :
252b5132 5382else
5464f5a1
NN
5383 echo "$as_me: failed program was:" >&5
5384sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 # Broken: fails on valid input.
5387continue
5388fi
5389rm -f conftest.err conftest.$ac_ext
5390
5391 # OK, works on sane cases. Now check whether non-existent headers
5392 # can be detected and how.
5393 cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399#include <ac_nonexistent.h>
5400_ACEOF
5401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } >/dev/null; then
5409 if test -s conftest.err; then
5410 ac_cpp_err=$ac_c_preproc_warn_flag
5411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5412 else
5413 ac_cpp_err=
5414 fi
b3baf5d0 5415else
5464f5a1 5416 ac_cpp_err=yes
6be7c12c 5417fi
5464f5a1
NN
5418if test -z "$ac_cpp_err"; then
5419 # Broken: success on invalid input.
5420continue
ac48eca1 5421else
5464f5a1
NN
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 # Passes both tests.
5426ac_preproc_ok=:
5427break
b3baf5d0 5428fi
5464f5a1 5429rm -f conftest.err conftest.$ac_ext
6be7c12c 5430
5464f5a1
NN
5431done
5432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5433rm -f conftest.err conftest.$ac_ext
5434if $ac_preproc_ok; then
5435 :
6be7c12c 5436else
5464f5a1
NN
5437 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5438See \`config.log' for more details." >&5
5439echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5440See \`config.log' for more details." >&2;}
5441 { (exit 1); exit 1; }; }
ac48eca1 5442fi
5464f5a1
NN
5443
5444ac_ext=c
5445ac_cpp='$CPP $CPPFLAGS'
5446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449
5450
5451echo "$as_me:$LINENO: checking for egrep" >&5
5452echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5453if test "${ac_cv_prog_egrep+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5455else
5464f5a1
NN
5456 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5457 then ac_cv_prog_egrep='grep -E'
5458 else ac_cv_prog_egrep='egrep'
5459 fi
b3baf5d0 5460fi
5464f5a1
NN
5461echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5462echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5463 EGREP=$ac_cv_prog_egrep
5464
ac48eca1 5465
5464f5a1
NN
5466echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5467echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5468if test "${ac_cv_header_stdc+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5470else
5464f5a1
NN
5471 cat >conftest.$ac_ext <<_ACEOF
5472/* confdefs.h. */
5473_ACEOF
5474cat confdefs.h >>conftest.$ac_ext
5475cat >>conftest.$ac_ext <<_ACEOF
5476/* end confdefs.h. */
252b5132
RH
5477#include <stdlib.h>
5478#include <stdarg.h>
5479#include <string.h>
5480#include <float.h>
5464f5a1
NN
5481
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490rm -f conftest.$ac_objext
5491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492 (eval $ac_compile) 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } &&
8fb84ecc
AC
5499 { ac_try='test -z "$ac_c_werror_flag"
5500 || test ! -s conftest.err'
5464f5a1
NN
5501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 (eval $ac_try) 2>&5
5503 ac_status=$?
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); }; } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
252b5132
RH
5512 ac_cv_header_stdc=yes
5513else
5464f5a1
NN
5514 echo "$as_me: failed program was:" >&5
5515sed 's/^/| /' conftest.$ac_ext >&5
5516
5517ac_cv_header_stdc=no
252b5132 5518fi
5464f5a1 5519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5520
5521if test $ac_cv_header_stdc = yes; then
5522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464f5a1
NN
5523 cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
252b5132 5529#include <string.h>
5464f5a1
NN
5530
5531_ACEOF
252b5132 5532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5533 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5534 :
5535else
252b5132
RH
5536 ac_cv_header_stdc=no
5537fi
5538rm -f conftest*
5539
5540fi
5541
5542if test $ac_cv_header_stdc = yes; then
5543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464f5a1
NN
5544 cat >conftest.$ac_ext <<_ACEOF
5545/* confdefs.h. */
5546_ACEOF
5547cat confdefs.h >>conftest.$ac_ext
5548cat >>conftest.$ac_ext <<_ACEOF
5549/* end confdefs.h. */
252b5132 5550#include <stdlib.h>
5464f5a1
NN
5551
5552_ACEOF
252b5132 5553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 5554 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5555 :
5556else
252b5132
RH
5557 ac_cv_header_stdc=no
5558fi
5559rm -f conftest*
5560
5561fi
5562
5563if test $ac_cv_header_stdc = yes; then
5564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5464f5a1 5565 if test "$cross_compiling" = yes; then
252b5132
RH
5566 :
5567else
5464f5a1
NN
5568 cat >conftest.$ac_ext <<_ACEOF
5569/* confdefs.h. */
5570_ACEOF
5571cat confdefs.h >>conftest.$ac_ext
5572cat >>conftest.$ac_ext <<_ACEOF
5573/* end confdefs.h. */
252b5132 5574#include <ctype.h>
5464f5a1
NN
5575#if ((' ' & 0x0FF) == 0x020)
5576# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5577# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5578#else
5579# define ISLOWER(c) \
5580 (('a' <= (c) && (c) <= 'i') \
5581 || ('j' <= (c) && (c) <= 'r') \
5582 || ('s' <= (c) && (c) <= 'z'))
5583# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5584#endif
6be7c12c 5585
5464f5a1
NN
5586#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5587int
5588main ()
5589{
5590 int i;
5591 for (i = 0; i < 256; i++)
5592 if (XOR (islower (i), ISLOWER (i))
5593 || toupper (i) != TOUPPER (i))
5594 exit(2);
5595 exit (0);
5596}
5597_ACEOF
5598rm -f conftest$ac_exeext
5599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5600 (eval $ac_link) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5605 (eval $ac_try) 2>&5
5606 ac_status=$?
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; }; then
252b5132
RH
5609 :
5610else
5464f5a1
NN
5611 echo "$as_me: program exited with status $ac_status" >&5
5612echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
5615( exit $ac_status )
5616ac_cv_header_stdc=no
252b5132 5617fi
5464f5a1 5618rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5619fi
252b5132
RH
5620fi
5621fi
5464f5a1
NN
5622echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5623echo "${ECHO_T}$ac_cv_header_stdc" >&6
6be7c12c 5624if test $ac_cv_header_stdc = yes; then
5464f5a1
NN
5625
5626cat >>confdefs.h <<\_ACEOF
252b5132 5627#define STDC_HEADERS 1
5464f5a1 5628_ACEOF
252b5132
RH
5629
5630fi
5631
5464f5a1
NN
5632echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5633echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5634if test "${ac_cv_c_const+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5636else
5464f5a1
NN
5637 cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h. */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h. */
6be7c12c 5643
5464f5a1
NN
5644int
5645main ()
5646{
5647/* FIXME: Include the comments suggested by Paul. */
5648#ifndef __cplusplus
5649 /* Ultrix mips cc rejects this. */
5650 typedef int charset[2];
5651 const charset x;
5652 /* SunOS 4.1.1 cc rejects this. */
5653 char const *const *ccp;
5654 char **p;
5655 /* NEC SVR4.0.2 mips cc rejects this. */
5656 struct point {int x, y;};
5657 static struct point const zero = {0,0};
5658 /* AIX XL C 1.02.0.0 rejects this.
5659 It does not let you subtract one const X* pointer from another in
5660 an arm of an if-expression whose if-part is not a constant
5661 expression */
5662 const char *g = "string";
5663 ccp = &g + (g ? g-g : 0);
5664 /* HPUX 7.0 cc rejects these. */
5665 ++ccp;
5666 p = (char**) ccp;
5667 ccp = (char const *const *) p;
5668 { /* SCO 3.2v4 cc rejects this. */
5669 char *t;
5670 char const *s = 0 ? (char *) 0 : (char const *) 0;
5671
5672 *t++ = 0;
5673 }
5674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5675 int x[] = {25, 17};
5676 const int *foo = &x[0];
5677 ++foo;
5678 }
5679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5680 typedef const int *iptr;
5681 iptr p = 0;
5682 ++p;
5683 }
5684 { /* AIX XL C 1.02.0.0 rejects this saying
5685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5686 struct s { int j; const int *ap[3]; };
5687 struct s *b; b->j = 5;
5688 }
5689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5690 const int foo = 10;
5691 }
5692#endif
6be7c12c 5693
5464f5a1
NN
5694 ;
5695 return 0;
5696}
5697_ACEOF
5698rm -f conftest.$ac_objext
5699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
8fb84ecc
AC
5707 { ac_try='test -z "$ac_c_werror_flag"
5708 || test ! -s conftest.err'
5464f5a1
NN
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5710 (eval $ac_try) 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest.$ac_objext'
5715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716 (eval $ac_try) 2>&5
5717 ac_status=$?
5718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719 (exit $ac_status); }; }; then
252b5132
RH
5720 ac_cv_c_const=yes
5721else
5464f5a1
NN
5722 echo "$as_me: failed program was:" >&5
5723sed 's/^/| /' conftest.$ac_ext >&5
5724
5725ac_cv_c_const=no
252b5132 5726fi
5464f5a1 5727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5728fi
5464f5a1
NN
5729echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5730echo "${ECHO_T}$ac_cv_c_const" >&6
6be7c12c 5731if test $ac_cv_c_const = no; then
5464f5a1
NN
5732
5733cat >>confdefs.h <<\_ACEOF
5734#define const
5735_ACEOF
252b5132
RH
5736
5737fi
5738
5464f5a1
NN
5739echo "$as_me:$LINENO: checking for inline" >&5
5740echo $ECHO_N "checking for inline... $ECHO_C" >&6
5741if test "${ac_cv_c_inline+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5743else
5744 ac_cv_c_inline=no
5745for ac_kw in inline __inline__ __inline; do
5464f5a1
NN
5746 cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h. */
5752#ifndef __cplusplus
5753typedef int foo_t;
5754static $ac_kw foo_t static_foo () {return 0; }
5755$ac_kw foo_t foo () {return 0; }
5756#endif
252b5132 5757
5464f5a1
NN
5758_ACEOF
5759rm -f conftest.$ac_objext
5760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761 (eval $ac_compile) 2>conftest.er1
5762 ac_status=$?
5763 grep -v '^ *+' conftest.er1 >conftest.err
5764 rm -f conftest.er1
5765 cat conftest.err >&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); } &&
8fb84ecc
AC
5768 { ac_try='test -z "$ac_c_werror_flag"
5769 || test ! -s conftest.err'
5464f5a1
NN
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; } &&
5775 { ac_try='test -s conftest.$ac_objext'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
252b5132
RH
5781 ac_cv_c_inline=$ac_kw; break
5782else
5464f5a1
NN
5783 echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
252b5132 5786fi
5464f5a1 5787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5788done
5789
5464f5a1
NN
5790fi
5791echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5792echo "${ECHO_T}$ac_cv_c_inline" >&6
5793
5794
5795case $ac_cv_c_inline in
5796 inline | yes) ;;
5797 *)
5798 case $ac_cv_c_inline in
5799 no) ac_val=;;
5800 *) ac_val=$ac_cv_c_inline;;
5801 esac
5802 cat >>confdefs.h <<_ACEOF
5803#ifndef __cplusplus
5804#define inline $ac_val
5805#endif
5806_ACEOF
5807 ;;
5808esac
5809
5810# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5821 inttypes.h stdint.h unistd.h
5822do
5823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5824echo "$as_me:$LINENO: checking for $ac_header" >&5
5825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5826if eval "test \"\${$as_ac_Header+set}\" = set"; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828else
5829 cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h. */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h. */
5835$ac_includes_default
5836
5837#include <$ac_header>
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
8fb84ecc
AC
5848 { ac_try='test -z "$ac_c_werror_flag"
5849 || test ! -s conftest.err'
5464f5a1
NN
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 eval "$as_ac_Header=yes"
5862else
5863 echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
5866eval "$as_ac_Header=no"
5867fi
5868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5869fi
5870echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5871echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5872if test `eval echo '${'$as_ac_Header'}'` = yes; then
5873 cat >>confdefs.h <<_ACEOF
5874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5875_ACEOF
5876
252b5132 5877fi
6be7c12c 5878
5464f5a1 5879done
252b5132 5880
5464f5a1
NN
5881
5882echo "$as_me:$LINENO: checking for off_t" >&5
5883echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5884if test "${ac_cv_type_off_t+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 5886else
5464f5a1
NN
5887 cat >conftest.$ac_ext <<_ACEOF
5888/* confdefs.h. */
5889_ACEOF
5890cat confdefs.h >>conftest.$ac_ext
5891cat >>conftest.$ac_ext <<_ACEOF
5892/* end confdefs.h. */
5893$ac_includes_default
5894int
5895main ()
5896{
5897if ((off_t *) 0)
5898 return 0;
5899if (sizeof (off_t))
5900 return 0;
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
8fb84ecc
AC
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5464f5a1
NN
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
653f71ca 5927 ac_cv_type_off_t=yes
252b5132 5928else
5464f5a1
NN
5929 echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5931
5464f5a1 5932ac_cv_type_off_t=no
6be7c12c 5933fi
5464f5a1
NN
5934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5935fi
5936echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5937echo "${ECHO_T}$ac_cv_type_off_t" >&6
5938if test $ac_cv_type_off_t = yes; then
5939 :
5940else
5941
5942cat >>confdefs.h <<_ACEOF
252b5132 5943#define off_t long
5464f5a1 5944_ACEOF
252b5132
RH
5945
5946fi
5947
5464f5a1
NN
5948echo "$as_me:$LINENO: checking for size_t" >&5
5949echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5950if test "${ac_cv_type_size_t+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5952else
5464f5a1
NN
5953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959$ac_includes_default
5960int
5961main ()
5962{
5963if ((size_t *) 0)
5964 return 0;
5965if (sizeof (size_t))
5966 return 0;
5967 ;
5968 return 0;
5969}
5970_ACEOF
5971rm -f conftest.$ac_objext
5972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
8fb84ecc
AC
5980 { ac_try='test -z "$ac_c_werror_flag"
5981 || test ! -s conftest.err'
5464f5a1
NN
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest.$ac_objext'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
653f71ca 5993 ac_cv_type_size_t=yes
252b5132 5994else
5464f5a1
NN
5995 echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
b3baf5d0 5997
5464f5a1 5998ac_cv_type_size_t=no
6be7c12c 5999fi
5464f5a1
NN
6000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6001fi
6002echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6003echo "${ECHO_T}$ac_cv_type_size_t" >&6
6004if test $ac_cv_type_size_t = yes; then
6005 :
6006else
6007
6008cat >>confdefs.h <<_ACEOF
252b5132 6009#define size_t unsigned
5464f5a1 6010_ACEOF
252b5132
RH
6011
6012fi
6013
6014# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6015# for constant arguments. Useless!
5464f5a1
NN
6016echo "$as_me:$LINENO: checking for working alloca.h" >&5
6017echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6018if test "${ac_cv_working_alloca_h+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
252b5132 6027#include <alloca.h>
5464f5a1
NN
6028int
6029main ()
6030{
6031char *p = (char *) alloca (2 * sizeof (int));
6032 ;
6033 return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext conftest$ac_exeext
6037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6038 (eval $ac_link) 2>conftest.er1
6039 ac_status=$?
6040 grep -v '^ *+' conftest.er1 >conftest.err
6041 rm -f conftest.er1
6042 cat conftest.err >&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
8fb84ecc
AC
6045 { ac_try='test -z "$ac_c_werror_flag"
6046 || test ! -s conftest.err'
5464f5a1
NN
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; } &&
6052 { ac_try='test -s conftest$ac_exeext'
6053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6054 (eval $ac_try) 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 ac_cv_working_alloca_h=yes
6059else
6060 echo "$as_me: failed program was:" >&5
6061sed 's/^/| /' conftest.$ac_ext >&5
6062
6063ac_cv_working_alloca_h=no
6064fi
6065rm -f conftest.err conftest.$ac_objext \
6066 conftest$ac_exeext conftest.$ac_ext
6067fi
6068echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6069echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6070if test $ac_cv_working_alloca_h = yes; then
6071
6072cat >>confdefs.h <<\_ACEOF
252b5132 6073#define HAVE_ALLOCA_H 1
5464f5a1 6074_ACEOF
252b5132
RH
6075
6076fi
6077
5464f5a1
NN
6078echo "$as_me:$LINENO: checking for alloca" >&5
6079echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6080if test "${ac_cv_func_alloca_works+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6082else
5464f5a1
NN
6083 cat >conftest.$ac_ext <<_ACEOF
6084/* confdefs.h. */
6085_ACEOF
6086cat confdefs.h >>conftest.$ac_ext
6087cat >>conftest.$ac_ext <<_ACEOF
6088/* end confdefs.h. */
252b5132
RH
6089#ifdef __GNUC__
6090# define alloca __builtin_alloca
6091#else
6092# ifdef _MSC_VER
6093# include <malloc.h>
6094# define alloca _alloca
6095# else
6096# if HAVE_ALLOCA_H
6097# include <alloca.h>
6098# else
6099# ifdef _AIX
6100 #pragma alloca
6101# else
6102# ifndef alloca /* predefined by HP cc +Olibcalls */
6103char *alloca ();
6104# endif
6105# endif
6106# endif
6107# endif
6108#endif
6109
5464f5a1
NN
6110int
6111main ()
6112{
6113char *p = (char *) alloca (1);
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
8fb84ecc
AC
6127 { ac_try='test -z "$ac_c_werror_flag"
6128 || test ! -s conftest.err'
5464f5a1
NN
6129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 (eval $ac_try) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest$ac_exeext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
252b5132
RH
6140 ac_cv_func_alloca_works=yes
6141else
5464f5a1
NN
6142 echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145ac_cv_func_alloca_works=no
252b5132 6146fi
5464f5a1
NN
6147rm -f conftest.err conftest.$ac_objext \
6148 conftest$ac_exeext conftest.$ac_ext
252b5132 6149fi
5464f5a1
NN
6150echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6151echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6152
252b5132 6153if test $ac_cv_func_alloca_works = yes; then
252b5132 6154
5464f5a1
NN
6155cat >>confdefs.h <<\_ACEOF
6156#define HAVE_ALLOCA 1
6157_ACEOF
b3baf5d0 6158
5464f5a1 6159else
6be7c12c 6160 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5464f5a1
NN
6161# that cause trouble. Some versions do not even contain alloca or
6162# contain a buggy version. If you still want to use their alloca,
6163# use ar to extract alloca.o from them instead of compiling alloca.c.
6164
6165ALLOCA=alloca.$ac_objext
6166
6167cat >>confdefs.h <<\_ACEOF
252b5132 6168#define C_ALLOCA 1
5464f5a1 6169_ACEOF
252b5132 6170
6be7c12c 6171
5464f5a1
NN
6172echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6173echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6174if test "${ac_cv_os_cray+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6176else
5464f5a1
NN
6177 cat >conftest.$ac_ext <<_ACEOF
6178/* confdefs.h. */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h. */
252b5132
RH
6183#if defined(CRAY) && ! defined(CRAY2)
6184webecray
6185#else
6186wenotbecray
6187#endif
6188
5464f5a1 6189_ACEOF
252b5132 6190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 6191 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6192 ac_cv_os_cray=yes
6193else
252b5132
RH
6194 ac_cv_os_cray=no
6195fi
6196rm -f conftest*
6197
6198fi
5464f5a1
NN
6199echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6200echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6201if test $ac_cv_os_cray = yes; then
5464f5a1
NN
6202 for ac_func in _getb67 GETB67 getb67; do
6203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6204echo "$as_me:$LINENO: checking for $ac_func" >&5
6205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6206if eval "test \"\${$as_ac_var+set}\" = set"; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208else
6209 cat >conftest.$ac_ext <<_ACEOF
6210/* confdefs.h. */
6211_ACEOF
6212cat confdefs.h >>conftest.$ac_ext
6213cat >>conftest.$ac_ext <<_ACEOF
6214/* end confdefs.h. */
6215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6217#define $ac_func innocuous_$ac_func
6218
252b5132 6219/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6220 which can conflict with char $ac_func (); below.
6221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6222 <limits.h> exists even on freestanding compilers. */
6223
6224#ifdef __STDC__
6225# include <limits.h>
6226#else
6227# include <assert.h>
6228#endif
6be7c12c 6229
5464f5a1 6230#undef $ac_func
252b5132 6231
5464f5a1
NN
6232/* Override any gcc2 internal prototype to avoid an error. */
6233#ifdef __cplusplus
6234extern "C"
6235{
6236#endif
6237/* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */
6239char $ac_func ();
252b5132
RH
6240/* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6244choke me
6245#else
5464f5a1
NN
6246char (*f) () = $ac_func;
6247#endif
6248#ifdef __cplusplus
6249}
252b5132
RH
6250#endif
6251
5464f5a1
NN
6252int
6253main ()
6254{
6255return f != $ac_func;
6256 ;
6257 return 0;
6258}
6259_ACEOF
6260rm -f conftest.$ac_objext conftest$ac_exeext
6261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
8fb84ecc
AC
6269 { ac_try='test -z "$ac_c_werror_flag"
6270 || test ! -s conftest.err'
5464f5a1
NN
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272 (eval $ac_try) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; } &&
6276 { ac_try='test -s conftest$ac_exeext'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; }; then
6282 eval "$as_ac_var=yes"
6283else
6284 echo "$as_me: failed program was:" >&5
6285sed 's/^/| /' conftest.$ac_ext >&5
6286
6287eval "$as_ac_var=no"
6288fi
6289rm -f conftest.err conftest.$ac_objext \
6290 conftest$ac_exeext conftest.$ac_ext
6291fi
6292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6293echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6294if test `eval echo '${'$as_ac_var'}'` = yes; then
6295
6296cat >>confdefs.h <<_ACEOF
252b5132 6297#define CRAY_STACKSEG_END $ac_func
5464f5a1 6298_ACEOF
252b5132 6299
5464f5a1 6300 break
252b5132
RH
6301fi
6302
5464f5a1 6303 done
252b5132
RH
6304fi
6305
5464f5a1
NN
6306echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6307echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6308if test "${ac_cv_c_stack_direction+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6310else
6311 if test "$cross_compiling" = yes; then
6312 ac_cv_c_stack_direction=0
6313else
5464f5a1
NN
6314 cat >conftest.$ac_ext <<_ACEOF
6315/* confdefs.h. */
6316_ACEOF
6317cat confdefs.h >>conftest.$ac_ext
6318cat >>conftest.$ac_ext <<_ACEOF
6319/* end confdefs.h. */
6320int
252b5132
RH
6321find_stack_direction ()
6322{
6323 static char *addr = 0;
6324 auto char dummy;
6325 if (addr == 0)
6326 {
6327 addr = &dummy;
6328 return find_stack_direction ();
6329 }
6330 else
6331 return (&dummy > addr) ? 1 : -1;
6332}
5464f5a1
NN
6333
6334int
252b5132
RH
6335main ()
6336{
5464f5a1 6337 exit (find_stack_direction () < 0);
252b5132 6338}
5464f5a1
NN
6339_ACEOF
6340rm -f conftest$ac_exeext
6341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6342 (eval $ac_link) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6347 (eval $ac_try) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; }; then
252b5132
RH
6351 ac_cv_c_stack_direction=1
6352else
5464f5a1
NN
6353 echo "$as_me: program exited with status $ac_status" >&5
6354echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357( exit $ac_status )
6358ac_cv_c_stack_direction=-1
252b5132 6359fi
5464f5a1 6360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6361fi
252b5132 6362fi
5464f5a1
NN
6363echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6364echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6365
5464f5a1 6366cat >>confdefs.h <<_ACEOF
252b5132 6367#define STACK_DIRECTION $ac_cv_c_stack_direction
5464f5a1
NN
6368_ACEOF
6369
252b5132
RH
6370
6371fi
6372
5464f5a1
NN
6373
6374
6375for ac_header in stdlib.h unistd.h
252b5132 6376do
5464f5a1
NN
6377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378if eval "test \"\${$as_ac_Header+set}\" = set"; then
6379 echo "$as_me:$LINENO: checking for $ac_header" >&5
6380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6381if eval "test \"\${$as_ac_Header+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383fi
6384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386else
6387 # Is the header compilable?
6388echo "$as_me:$LINENO: checking $ac_header usability" >&5
6389echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6390cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
6396$ac_includes_default
6397#include <$ac_header>
6398_ACEOF
6399rm -f conftest.$ac_objext
6400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6401 (eval $ac_compile) 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
8fb84ecc
AC
6408 { ac_try='test -z "$ac_c_werror_flag"
6409 || test ! -s conftest.err'
5464f5a1
NN
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411 (eval $ac_try) 2>&5
6412 ac_status=$?
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; } &&
6415 { ac_try='test -s conftest.$ac_objext'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417 (eval $ac_try) 2>&5
6418 ac_status=$?
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; }; then
6421 ac_header_compiler=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426ac_header_compiler=no
6427fi
6428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6429echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6430echo "${ECHO_T}$ac_header_compiler" >&6
6431
6432# Is the header present?
6433echo "$as_me:$LINENO: checking $ac_header presence" >&5
6434echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6435cat >conftest.$ac_ext <<_ACEOF
6436/* confdefs.h. */
6437_ACEOF
6438cat confdefs.h >>conftest.$ac_ext
6439cat >>conftest.$ac_ext <<_ACEOF
6440/* end confdefs.h. */
6441#include <$ac_header>
6442_ACEOF
6443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null; then
6451 if test -s conftest.err; then
6452 ac_cpp_err=$ac_c_preproc_warn_flag
6453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6454 else
6455 ac_cpp_err=
6456 fi
252b5132 6457else
5464f5a1 6458 ac_cpp_err=yes
252b5132 6459fi
5464f5a1
NN
6460if test -z "$ac_cpp_err"; then
6461 ac_header_preproc=yes
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466 ac_header_preproc=no
252b5132 6467fi
5464f5a1
NN
6468rm -f conftest.err conftest.$ac_ext
6469echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6470echo "${ECHO_T}$ac_header_preproc" >&6
6471
6472# So? What about this header?
6473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6474 yes:no: )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6476echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6478echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6479 ac_header_preproc=yes
6480 ;;
6481 no:yes:* )
6482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6483echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6485echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6487echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6489echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6493echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6494 (
6495 cat <<\_ASBOX
6496## ------------------------------------------ ##
6497## Report this to the AC_PACKAGE_NAME lists. ##
6498## ------------------------------------------ ##
6499_ASBOX
6500 ) |
6501 sed "s/^/$as_me: WARNING: /" >&2
6502 ;;
6503esac
6504echo "$as_me:$LINENO: checking for $ac_header" >&5
6505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6508else
5464f5a1
NN
6509 eval "$as_ac_Header=\$ac_header_preproc"
6510fi
6511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6513
252b5132 6514fi
5464f5a1
NN
6515if test `eval echo '${'$as_ac_Header'}'` = yes; then
6516 cat >>confdefs.h <<_ACEOF
6517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6518_ACEOF
6519
6520fi
6521
252b5132
RH
6522done
6523
5464f5a1 6524
252b5132
RH
6525for ac_func in getpagesize
6526do
5464f5a1
NN
6527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6528echo "$as_me:$LINENO: checking for $ac_func" >&5
6529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6530if eval "test \"\${$as_ac_var+set}\" = set"; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533 cat >conftest.$ac_ext <<_ACEOF
6534/* confdefs.h. */
6535_ACEOF
6536cat confdefs.h >>conftest.$ac_ext
6537cat >>conftest.$ac_ext <<_ACEOF
6538/* end confdefs.h. */
6539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6541#define $ac_func innocuous_$ac_func
6542
252b5132 6543/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6544 which can conflict with char $ac_func (); below.
6545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6546 <limits.h> exists even on freestanding compilers. */
6547
6548#ifdef __STDC__
6549# include <limits.h>
6550#else
6551# include <assert.h>
6552#endif
6be7c12c 6553
5464f5a1 6554#undef $ac_func
252b5132 6555
5464f5a1
NN
6556/* Override any gcc2 internal prototype to avoid an error. */
6557#ifdef __cplusplus
6558extern "C"
6559{
6560#endif
6561/* We use char because int might match the return type of a gcc2
6562 builtin and then its argument prototype would still apply. */
6563char $ac_func ();
252b5132
RH
6564/* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6568choke me
6569#else
5464f5a1
NN
6570char (*f) () = $ac_func;
6571#endif
6572#ifdef __cplusplus
6573}
252b5132
RH
6574#endif
6575
5464f5a1
NN
6576int
6577main ()
6578{
6579return f != $ac_func;
6580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest.$ac_objext conftest$ac_exeext
6585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6586 (eval $ac_link) 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
8fb84ecc
AC
6593 { ac_try='test -z "$ac_c_werror_flag"
6594 || test ! -s conftest.err'
5464f5a1
NN
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; } &&
6600 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6602 (eval $ac_try) 2>&5
6603 ac_status=$?
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6606 eval "$as_ac_var=yes"
6607else
6608 echo "$as_me: failed program was:" >&5
6609sed 's/^/| /' conftest.$ac_ext >&5
6610
6611eval "$as_ac_var=no"
6612fi
6613rm -f conftest.err conftest.$ac_objext \
6614 conftest$ac_exeext conftest.$ac_ext
6615fi
6616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6617echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6618if test `eval echo '${'$as_ac_var'}'` = yes; then
6619 cat >>confdefs.h <<_ACEOF
6620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6621_ACEOF
252b5132 6622
252b5132
RH
6623fi
6624done
6625
5464f5a1
NN
6626echo "$as_me:$LINENO: checking for working mmap" >&5
6627echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6628if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6630else
6631 if test "$cross_compiling" = yes; then
6632 ac_cv_func_mmap_fixed_mapped=no
6633else
5464f5a1
NN
6634 cat >conftest.$ac_ext <<_ACEOF
6635/* confdefs.h. */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h. */
6640$ac_includes_default
6641/* malloc might have been renamed as rpl_malloc. */
6642#undef malloc
6be7c12c 6643
252b5132
RH
6644/* Thanks to Mike Haertel and Jim Avera for this test.
6645 Here is a matrix of mmap possibilities:
6646 mmap private not fixed
6647 mmap private fixed at somewhere currently unmapped
6648 mmap private fixed at somewhere already mapped
6649 mmap shared not fixed
6650 mmap shared fixed at somewhere currently unmapped
6651 mmap shared fixed at somewhere already mapped
6652 For private mappings, we should verify that changes cannot be read()
6653 back from the file, nor mmap's back from the file at a different
6654 address. (There have been systems where private was not correctly
6655 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 6656 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6657 like early versions of FreeBSD and possibly contemporary NetBSD.)
6658 For shared mappings, we should conversely verify that changes get
5464f5a1 6659 propagated back to all the places they're supposed to be.
252b5132
RH
6660
6661 Grep wants private fixed already mapped.
6662 The main things grep needs to know about mmap are:
6663 * does it exist and is it safe to write into the mmap'd area
6664 * how to use it (BSD variants) */
5464f5a1 6665
252b5132
RH
6666#include <fcntl.h>
6667#include <sys/mman.h>
6668
5464f5a1
NN
6669#if !STDC_HEADERS && !HAVE_STDLIB_H
6670char *malloc ();
6671#endif
6be7c12c 6672
5464f5a1
NN
6673/* This mess was copied from the GNU getpagesize.h. */
6674#if !HAVE_GETPAGESIZE
252b5132 6675/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 6676# if !HAVE_SYS_PARAM_H
252b5132
RH
6677# define HAVE_SYS_PARAM_H 1
6678# endif
6679
6680# ifdef _SC_PAGESIZE
6681# define getpagesize() sysconf(_SC_PAGESIZE)
6682# else /* no _SC_PAGESIZE */
5464f5a1 6683# if HAVE_SYS_PARAM_H
252b5132
RH
6684# include <sys/param.h>
6685# ifdef EXEC_PAGESIZE
6686# define getpagesize() EXEC_PAGESIZE
6687# else /* no EXEC_PAGESIZE */
6688# ifdef NBPG
6689# define getpagesize() NBPG * CLSIZE
6690# ifndef CLSIZE
6691# define CLSIZE 1
6692# endif /* no CLSIZE */
6693# else /* no NBPG */
6694# ifdef NBPC
6695# define getpagesize() NBPC
6696# else /* no NBPC */
6697# ifdef PAGESIZE
6698# define getpagesize() PAGESIZE
6699# endif /* PAGESIZE */
6700# endif /* no NBPC */
6701# endif /* no NBPG */
6702# endif /* no EXEC_PAGESIZE */
6703# else /* no HAVE_SYS_PARAM_H */
6704# define getpagesize() 8192 /* punt totally */
6705# endif /* no HAVE_SYS_PARAM_H */
6706# endif /* no _SC_PAGESIZE */
6707
6708#endif /* no HAVE_GETPAGESIZE */
6709
252b5132 6710int
5464f5a1 6711main ()
252b5132 6712{
5464f5a1
NN
6713 char *data, *data2, *data3;
6714 int i, pagesize;
6715 int fd;
6716
6717 pagesize = getpagesize ();
6718
6719 /* First, make a file with some known garbage in it. */
6720 data = (char *) malloc (pagesize);
6721 if (!data)
6722 exit (1);
6723 for (i = 0; i < pagesize; ++i)
6724 *(data + i) = rand ();
6725 umask (0);
6726 fd = creat ("conftest.mmap", 0600);
6727 if (fd < 0)
6728 exit (1);
6729 if (write (fd, data, pagesize) != pagesize)
6730 exit (1);
6731 close (fd);
6732
6733 /* Next, try to mmap the file at a fixed address which already has
6734 something else allocated at it. If we can, also make sure that
6735 we see the same garbage. */
6736 fd = open ("conftest.mmap", O_RDWR);
6737 if (fd < 0)
6738 exit (1);
6739 data2 = (char *) malloc (2 * pagesize);
6740 if (!data2)
6741 exit (1);
6742 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6743 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6744 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6745 exit (1);
6746 for (i = 0; i < pagesize; ++i)
6747 if (*(data + i) != *(data2 + i))
6748 exit (1);
6749
6750 /* Finally, make sure that changes to the mapped area do not
6751 percolate back to the file as seen by read(). (This is a bug on
6752 some variants of i386 svr4.0.) */
6753 for (i = 0; i < pagesize; ++i)
6754 *(data2 + i) = *(data2 + i) + 1;
6755 data3 = (char *) malloc (pagesize);
6756 if (!data3)
6757 exit (1);
6758 if (read (fd, data3, pagesize) != pagesize)
6759 exit (1);
6760 for (i = 0; i < pagesize; ++i)
6761 if (*(data + i) != *(data3 + i))
6762 exit (1);
6763 close (fd);
6764 exit (0);
252b5132 6765}
5464f5a1
NN
6766_ACEOF
6767rm -f conftest$ac_exeext
6768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6769 (eval $ac_link) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
252b5132
RH
6778 ac_cv_func_mmap_fixed_mapped=yes
6779else
5464f5a1
NN
6780 echo "$as_me: program exited with status $ac_status" >&5
6781echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784( exit $ac_status )
6785ac_cv_func_mmap_fixed_mapped=no
252b5132 6786fi
5464f5a1 6787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6788fi
252b5132 6789fi
5464f5a1
NN
6790echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6791echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6be7c12c 6792if test $ac_cv_func_mmap_fixed_mapped = yes; then
5464f5a1
NN
6793
6794cat >>confdefs.h <<\_ACEOF
252b5132 6795#define HAVE_MMAP 1
5464f5a1 6796_ACEOF
252b5132
RH
6797
6798fi
5464f5a1
NN
6799rm -f conftest.mmap
6800
6801
252b5132 6802
5464f5a1
NN
6803
6804
6805
6806
6807
6808
6809
6810
6811for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6812unistd.h values.h sys/param.h
6813do
5464f5a1
NN
6814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816 echo "$as_me:$LINENO: checking for $ac_header" >&5
6817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6818if eval "test \"\${$as_ac_Header+set}\" = set"; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820fi
6821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6822echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6823else
6824 # Is the header compilable?
6825echo "$as_me:$LINENO: checking $ac_header usability" >&5
6826echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6827cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h. */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h. */
6833$ac_includes_default
6834#include <$ac_header>
6835_ACEOF
6836rm -f conftest.$ac_objext
6837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6838 (eval $ac_compile) 2>conftest.er1
6839 ac_status=$?
6840 grep -v '^ *+' conftest.er1 >conftest.err
6841 rm -f conftest.er1
6842 cat conftest.err >&5
6843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
8fb84ecc
AC
6845 { ac_try='test -z "$ac_c_werror_flag"
6846 || test ! -s conftest.err'
5464f5a1
NN
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; } &&
6852 { ac_try='test -s conftest.$ac_objext'
6853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854 (eval $ac_try) 2>&5
6855 ac_status=$?
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); }; }; then
6858 ac_header_compiler=yes
6859else
6860 echo "$as_me: failed program was:" >&5
6861sed 's/^/| /' conftest.$ac_ext >&5
6862
6863ac_header_compiler=no
6864fi
6865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6866echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6867echo "${ECHO_T}$ac_header_compiler" >&6
6868
6869# Is the header present?
6870echo "$as_me:$LINENO: checking $ac_header presence" >&5
6871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6872cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h. */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h. */
6878#include <$ac_header>
6879_ACEOF
6880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882 ac_status=$?
6883 grep -v '^ *+' conftest.er1 >conftest.err
6884 rm -f conftest.er1
6885 cat conftest.err >&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } >/dev/null; then
6888 if test -s conftest.err; then
6889 ac_cpp_err=$ac_c_preproc_warn_flag
6890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6891 else
6892 ac_cpp_err=
6893 fi
252b5132 6894else
5464f5a1 6895 ac_cpp_err=yes
252b5132 6896fi
5464f5a1
NN
6897if test -z "$ac_cpp_err"; then
6898 ac_header_preproc=yes
6899else
6900 echo "$as_me: failed program was:" >&5
6901sed 's/^/| /' conftest.$ac_ext >&5
6902
6903 ac_header_preproc=no
252b5132 6904fi
5464f5a1
NN
6905rm -f conftest.err conftest.$ac_ext
6906echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6907echo "${ECHO_T}$ac_header_preproc" >&6
6908
6909# So? What about this header?
6910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6911 yes:no: )
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6916 ac_header_preproc=yes
6917 ;;
6918 no:yes:* )
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6931 (
6932 cat <<\_ASBOX
6933## ------------------------------------------ ##
6934## Report this to the AC_PACKAGE_NAME lists. ##
6935## ------------------------------------------ ##
6936_ASBOX
6937 ) |
6938 sed "s/^/$as_me: WARNING: /" >&2
6939 ;;
6940esac
6941echo "$as_me:$LINENO: checking for $ac_header" >&5
6942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6943if eval "test \"\${$as_ac_Header+set}\" = set"; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 6945else
5464f5a1
NN
6946 eval "$as_ac_Header=\$ac_header_preproc"
6947fi
6948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6950
6951fi
6952if test `eval echo '${'$as_ac_Header'}'` = yes; then
6953 cat >>confdefs.h <<_ACEOF
6954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6955_ACEOF
6956
252b5132 6957fi
5464f5a1 6958
252b5132
RH
6959done
6960
5464f5a1
NN
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6972__argz_count __argz_stringify __argz_next
6973do
5464f5a1
NN
6974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6975echo "$as_me:$LINENO: checking for $ac_func" >&5
6976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6977if eval "test \"\${$as_ac_var+set}\" = set"; then
6978 echo $ECHO_N "(cached) $ECHO_C" >&6
6979else
6980 cat >conftest.$ac_ext <<_ACEOF
6981/* confdefs.h. */
6982_ACEOF
6983cat confdefs.h >>conftest.$ac_ext
6984cat >>conftest.$ac_ext <<_ACEOF
6985/* end confdefs.h. */
6986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6988#define $ac_func innocuous_$ac_func
6989
252b5132 6990/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
6991 which can conflict with char $ac_func (); below.
6992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993 <limits.h> exists even on freestanding compilers. */
6994
6995#ifdef __STDC__
6996# include <limits.h>
6997#else
6998# include <assert.h>
6999#endif
7000
7001#undef $ac_func
7002
252b5132 7003/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7004#ifdef __cplusplus
7005extern "C"
7006{
7007#endif
252b5132 7008/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7009 builtin and then its argument prototype would still apply. */
7010char $ac_func ();
252b5132
RH
7011/* The GNU C library defines this for functions which it implements
7012 to always fail with ENOSYS. Some functions are actually named
7013 something starting with __ and the normal name is an alias. */
7014#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7015choke me
7016#else
5464f5a1
NN
7017char (*f) () = $ac_func;
7018#endif
7019#ifdef __cplusplus
7020}
252b5132
RH
7021#endif
7022
5464f5a1
NN
7023int
7024main ()
7025{
7026return f != $ac_func;
7027 ;
7028 return 0;
7029}
7030_ACEOF
7031rm -f conftest.$ac_objext conftest$ac_exeext
7032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033 (eval $ac_link) 2>conftest.er1
7034 ac_status=$?
7035 grep -v '^ *+' conftest.er1 >conftest.err
7036 rm -f conftest.er1
7037 cat conftest.err >&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); } &&
8fb84ecc
AC
7040 { ac_try='test -z "$ac_c_werror_flag"
7041 || test ! -s conftest.err'
5464f5a1
NN
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; } &&
7047 { ac_try='test -s conftest$ac_exeext'
7048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049 (eval $ac_try) 2>&5
7050 ac_status=$?
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7053 eval "$as_ac_var=yes"
7054else
7055 echo "$as_me: failed program was:" >&5
7056sed 's/^/| /' conftest.$ac_ext >&5
7057
7058eval "$as_ac_var=no"
7059fi
7060rm -f conftest.err conftest.$ac_objext \
7061 conftest$ac_exeext conftest.$ac_ext
7062fi
7063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7064echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7065if test `eval echo '${'$as_ac_var'}'` = yes; then
7066 cat >>confdefs.h <<_ACEOF
7067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7068_ACEOF
252b5132 7069
252b5132
RH
7070fi
7071done
7072
b3baf5d0 7073
6be7c12c 7074 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5464f5a1
NN
7075
7076for ac_func in stpcpy
252b5132 7077do
5464f5a1
NN
7078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7079echo "$as_me:$LINENO: checking for $ac_func" >&5
7080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7081if eval "test \"\${$as_ac_var+set}\" = set"; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 cat >conftest.$ac_ext <<_ACEOF
7085/* confdefs.h. */
7086_ACEOF
7087cat confdefs.h >>conftest.$ac_ext
7088cat >>conftest.$ac_ext <<_ACEOF
7089/* end confdefs.h. */
7090/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7092#define $ac_func innocuous_$ac_func
7093
252b5132 7094/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7095 which can conflict with char $ac_func (); below.
7096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097 <limits.h> exists even on freestanding compilers. */
7098
7099#ifdef __STDC__
7100# include <limits.h>
7101#else
7102# include <assert.h>
7103#endif
6be7c12c 7104
5464f5a1 7105#undef $ac_func
252b5132 7106
5464f5a1
NN
7107/* Override any gcc2 internal prototype to avoid an error. */
7108#ifdef __cplusplus
7109extern "C"
7110{
7111#endif
7112/* We use char because int might match the return type of a gcc2
7113 builtin and then its argument prototype would still apply. */
7114char $ac_func ();
252b5132
RH
7115/* The GNU C library defines this for functions which it implements
7116 to always fail with ENOSYS. Some functions are actually named
7117 something starting with __ and the normal name is an alias. */
7118#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7119choke me
7120#else
5464f5a1
NN
7121char (*f) () = $ac_func;
7122#endif
7123#ifdef __cplusplus
7124}
252b5132
RH
7125#endif
7126
5464f5a1
NN
7127int
7128main ()
7129{
7130return f != $ac_func;
7131 ;
7132 return 0;
7133}
7134_ACEOF
7135rm -f conftest.$ac_objext conftest$ac_exeext
7136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7137 (eval $ac_link) 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
8fb84ecc
AC
7144 { ac_try='test -z "$ac_c_werror_flag"
7145 || test ! -s conftest.err'
5464f5a1
NN
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; } &&
7151 { ac_try='test -s conftest$ac_exeext'
7152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153 (eval $ac_try) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); }; }; then
7157 eval "$as_ac_var=yes"
7158else
7159 echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162eval "$as_ac_var=no"
7163fi
7164rm -f conftest.err conftest.$ac_objext \
7165 conftest$ac_exeext conftest.$ac_ext
7166fi
7167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7168echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7169if test `eval echo '${'$as_ac_var'}'` = yes; then
7170 cat >>confdefs.h <<_ACEOF
7171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7172_ACEOF
252b5132 7173
252b5132
RH
7174fi
7175done
7176
7177 fi
7178 if test "${ac_cv_func_stpcpy}" = "yes"; then
5464f5a1
NN
7179
7180cat >>confdefs.h <<\_ACEOF
252b5132 7181#define HAVE_STPCPY 1
5464f5a1 7182_ACEOF
252b5132
RH
7183
7184 fi
7185
7186 if test $ac_cv_header_locale_h = yes; then
5464f5a1
NN
7187 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7188echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7189if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h. */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h. */
252b5132 7198#include <locale.h>
5464f5a1
NN
7199int
7200main ()
7201{
252b5132 7202return LC_MESSAGES
5464f5a1
NN
7203 ;
7204 return 0;
7205}
7206_ACEOF
7207rm -f conftest.$ac_objext conftest$ac_exeext
7208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7209 (eval $ac_link) 2>conftest.er1
7210 ac_status=$?
7211 grep -v '^ *+' conftest.er1 >conftest.err
7212 rm -f conftest.er1
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
8fb84ecc
AC
7216 { ac_try='test -z "$ac_c_werror_flag"
7217 || test ! -s conftest.err'
5464f5a1
NN
7218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219 (eval $ac_try) 2>&5
7220 ac_status=$?
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); }; } &&
7223 { ac_try='test -s conftest$ac_exeext'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
252b5132
RH
7229 am_cv_val_LC_MESSAGES=yes
7230else
5464f5a1
NN
7231 echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
7234am_cv_val_LC_MESSAGES=no
252b5132 7235fi
5464f5a1
NN
7236rm -f conftest.err conftest.$ac_objext \
7237 conftest$ac_exeext conftest.$ac_ext
252b5132 7238fi
5464f5a1
NN
7239echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7240echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6be7c12c 7241 if test $am_cv_val_LC_MESSAGES = yes; then
5464f5a1
NN
7242
7243cat >>confdefs.h <<\_ACEOF
252b5132 7244#define HAVE_LC_MESSAGES 1
5464f5a1 7245_ACEOF
252b5132
RH
7246
7247 fi
7248 fi
5464f5a1
NN
7249 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7250echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7251 # Check whether --enable-nls or --disable-nls was given.
7252if test "${enable_nls+set}" = set; then
7253 enableval="$enable_nls"
7254 USE_NLS=$enableval
7255else
7256 USE_NLS=yes
5464f5a1
NN
7257fi;
7258 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7259echo "${ECHO_T}$USE_NLS" >&6
6be7c12c 7260
252b5132
RH
7261
7262 USE_INCLUDED_LIBINTL=no
7263
7264 if test "$USE_NLS" = "yes"; then
5464f5a1
NN
7265 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7266echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7267
7268# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7269if test "${with_included_gettext+set}" = set; then
7270 withval="$with_included_gettext"
7271 nls_cv_force_use_gnu_gettext=$withval
7272else
7273 nls_cv_force_use_gnu_gettext=no
5464f5a1
NN
7274fi;
7275 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7276echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7277
7278 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7279 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7280 nls_cv_header_intl=
7281 nls_cv_header_libgt=
a53bf506 7282 CATOBJEXT=
252b5132 7283
5464f5a1
NN
7284 if test "${ac_cv_header_libintl_h+set}" = set; then
7285 echo "$as_me:$LINENO: checking for libintl.h" >&5
7286echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7287if test "${ac_cv_header_libintl_h+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
7289fi
7290echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7291echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7292else
7293 # Is the header compilable?
7294echo "$as_me:$LINENO: checking libintl.h usability" >&5
7295echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7296cat >conftest.$ac_ext <<_ACEOF
7297/* confdefs.h. */
7298_ACEOF
7299cat confdefs.h >>conftest.$ac_ext
7300cat >>conftest.$ac_ext <<_ACEOF
7301/* end confdefs.h. */
7302$ac_includes_default
252b5132 7303#include <libintl.h>
5464f5a1
NN
7304_ACEOF
7305rm -f conftest.$ac_objext
7306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7307 (eval $ac_compile) 2>conftest.er1
7308 ac_status=$?
7309 grep -v '^ *+' conftest.er1 >conftest.err
7310 rm -f conftest.er1
7311 cat conftest.err >&5
7312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
8fb84ecc
AC
7314 { ac_try='test -z "$ac_c_werror_flag"
7315 || test ! -s conftest.err'
5464f5a1
NN
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7317 (eval $ac_try) 2>&5
7318 ac_status=$?
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323 (eval $ac_try) 2>&5
7324 ac_status=$?
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7327 ac_header_compiler=yes
7328else
7329 echo "$as_me: failed program was:" >&5
7330sed 's/^/| /' conftest.$ac_ext >&5
7331
7332ac_header_compiler=no
7333fi
7334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7336echo "${ECHO_T}$ac_header_compiler" >&6
7337
7338# Is the header present?
7339echo "$as_me:$LINENO: checking libintl.h presence" >&5
7340echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7341cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h. */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h. */
7347#include <libintl.h>
7348_ACEOF
7349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7351 ac_status=$?
7352 grep -v '^ *+' conftest.er1 >conftest.err
7353 rm -f conftest.er1
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } >/dev/null; then
7357 if test -s conftest.err; then
7358 ac_cpp_err=$ac_c_preproc_warn_flag
7359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7360 else
7361 ac_cpp_err=
7362 fi
252b5132 7363else
5464f5a1 7364 ac_cpp_err=yes
252b5132 7365fi
5464f5a1
NN
7366if test -z "$ac_cpp_err"; then
7367 ac_header_preproc=yes
7368else
7369 echo "$as_me: failed program was:" >&5
7370sed 's/^/| /' conftest.$ac_ext >&5
7371
7372 ac_header_preproc=no
252b5132 7373fi
5464f5a1
NN
7374rm -f conftest.err conftest.$ac_ext
7375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7376echo "${ECHO_T}$ac_header_preproc" >&6
7377
7378# So? What about this header?
7379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7380 yes:no: )
7381 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7382echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7384echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7385 ac_header_preproc=yes
7386 ;;
7387 no:yes:* )
7388 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7389echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7390 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7391echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7393echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7395echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7397echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7399echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7400 (
7401 cat <<\_ASBOX
7402## ------------------------------------------ ##
7403## Report this to the AC_PACKAGE_NAME lists. ##
7404## ------------------------------------------ ##
7405_ASBOX
7406 ) |
7407 sed "s/^/$as_me: WARNING: /" >&2
7408 ;;
7409esac
7410echo "$as_me:$LINENO: checking for libintl.h" >&5
7411echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7412if test "${ac_cv_header_libintl_h+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7414else
5464f5a1
NN
7415 ac_cv_header_libintl_h=$ac_header_preproc
7416fi
7417echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7418echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7419
7420fi
7421if test $ac_cv_header_libintl_h = yes; then
7422 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7423echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7424if test "${gt_cv_func_gettext_libc+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427 cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
252b5132 7433#include <libintl.h>
5464f5a1
NN
7434int
7435main ()
7436{
252b5132 7437return (int) gettext ("")
5464f5a1
NN
7438 ;
7439 return 0;
7440}
7441_ACEOF
7442rm -f conftest.$ac_objext conftest$ac_exeext
7443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7444 (eval $ac_link) 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } &&
8fb84ecc
AC
7451 { ac_try='test -z "$ac_c_werror_flag"
7452 || test ! -s conftest.err'
5464f5a1
NN
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; } &&
7458 { ac_try='test -s conftest$ac_exeext'
7459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 (eval $ac_try) 2>&5
7461 ac_status=$?
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); }; }; then
252b5132
RH
7464 gt_cv_func_gettext_libc=yes
7465else
5464f5a1
NN
7466 echo "$as_me: failed program was:" >&5
7467sed 's/^/| /' conftest.$ac_ext >&5
7468
7469gt_cv_func_gettext_libc=no
252b5132 7470fi
5464f5a1
NN
7471rm -f conftest.err conftest.$ac_objext \
7472 conftest$ac_exeext conftest.$ac_ext
252b5132 7473fi
5464f5a1
NN
7474echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7475echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7476
7477 if test "$gt_cv_func_gettext_libc" != "yes"; then
5464f5a1
NN
7478 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7479echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7480if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7482else
5464f5a1 7483 ac_check_lib_save_LIBS=$LIBS
252b5132 7484LIBS="-lintl $LIBS"
5464f5a1
NN
7485cat >conftest.$ac_ext <<_ACEOF
7486/* confdefs.h. */
7487_ACEOF
7488cat confdefs.h >>conftest.$ac_ext
7489cat >>conftest.$ac_ext <<_ACEOF
7490/* end confdefs.h. */
7491
252b5132 7492/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
7493#ifdef __cplusplus
7494extern "C"
7495#endif
252b5132 7496/* We use char because int might match the return type of a gcc2
5464f5a1
NN
7497 builtin and then its argument prototype would still apply. */
7498char bindtextdomain ();
7499int
7500main ()
7501{
7502bindtextdomain ();
7503 ;
7504 return 0;
7505}
7506_ACEOF
7507rm -f conftest.$ac_objext conftest$ac_exeext
7508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
8fb84ecc
AC
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
5464f5a1
NN
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 ac_cv_lib_intl_bindtextdomain=yes
7530else
7531 echo "$as_me: failed program was:" >&5
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534ac_cv_lib_intl_bindtextdomain=no
7535fi
7536rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538LIBS=$ac_check_lib_save_LIBS
7539fi
7540echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7541echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7542if test $ac_cv_lib_intl_bindtextdomain = yes; then
7543 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7544echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7545if test "${gt_cv_func_gettext_libintl+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h. */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h. */
252b5132 7554
5464f5a1
NN
7555int
7556main ()
7557{
252b5132 7558return (int) gettext ("")
5464f5a1
NN
7559 ;
7560 return 0;
7561}
7562_ACEOF
7563rm -f conftest.$ac_objext conftest$ac_exeext
7564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>conftest.er1
7566 ac_status=$?
7567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
8fb84ecc
AC
7572 { ac_try='test -z "$ac_c_werror_flag"
7573 || test ! -s conftest.err'
5464f5a1
NN
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; } &&
7579 { ac_try='test -s conftest$ac_exeext'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; }; then
252b5132
RH
7585 gt_cv_func_gettext_libintl=yes
7586else
5464f5a1
NN
7587 echo "$as_me: failed program was:" >&5
7588sed 's/^/| /' conftest.$ac_ext >&5
7589
7590gt_cv_func_gettext_libintl=no
252b5132 7591fi
5464f5a1
NN
7592rm -f conftest.err conftest.$ac_objext \
7593 conftest$ac_exeext conftest.$ac_ext
252b5132 7594fi
5464f5a1
NN
7595echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7596echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7597fi
7598
7599 fi
7600
7601 if test "$gt_cv_func_gettext_libc" = "yes" \
7602 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5464f5a1
NN
7603
7604cat >>confdefs.h <<\_ACEOF
252b5132 7605#define HAVE_GETTEXT 1
5464f5a1 7606_ACEOF
252b5132
RH
7607
7608 # Extract the first word of "msgfmt", so it can be a program name with args.
7609set dummy msgfmt; ac_word=$2
5464f5a1
NN
7610echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612if test "${ac_cv_path_MSGFMT+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7614else
7615 case "$MSGFMT" in
7616 /*)
7617 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7618 ;;
7619 *)
7620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7621 for ac_dir in $PATH; do
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f $ac_dir/$ac_word; then
7624 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7625 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7626 break
7627 fi
7628 fi
7629 done
7630 IFS="$ac_save_ifs"
7631 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7632 ;;
7633esac
7634fi
7635MSGFMT="$ac_cv_path_MSGFMT"
7636if test -n "$MSGFMT"; then
5464f5a1
NN
7637 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7638echo "${ECHO_T}$MSGFMT" >&6
252b5132 7639else
5464f5a1
NN
7640 echo "$as_me:$LINENO: result: no" >&5
7641echo "${ECHO_T}no" >&6
252b5132
RH
7642fi
7643 if test "$MSGFMT" != "no"; then
5464f5a1
NN
7644
7645for ac_func in dcgettext
252b5132 7646do
5464f5a1
NN
7647as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7648echo "$as_me:$LINENO: checking for $ac_func" >&5
7649echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7650if eval "test \"\${$as_ac_var+set}\" = set"; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653 cat >conftest.$ac_ext <<_ACEOF
7654/* confdefs.h. */
7655_ACEOF
7656cat confdefs.h >>conftest.$ac_ext
7657cat >>conftest.$ac_ext <<_ACEOF
7658/* end confdefs.h. */
7659/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7661#define $ac_func innocuous_$ac_func
7662
252b5132 7663/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
7664 which can conflict with char $ac_func (); below.
7665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666 <limits.h> exists even on freestanding compilers. */
7667
7668#ifdef __STDC__
7669# include <limits.h>
7670#else
7671# include <assert.h>
7672#endif
6be7c12c 7673
5464f5a1 7674#undef $ac_func
252b5132 7675
5464f5a1
NN
7676/* Override any gcc2 internal prototype to avoid an error. */
7677#ifdef __cplusplus
7678extern "C"
7679{
7680#endif
7681/* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7683char $ac_func ();
252b5132
RH
7684/* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7688choke me
7689#else
5464f5a1
NN
7690char (*f) () = $ac_func;
7691#endif
7692#ifdef __cplusplus
7693}
252b5132
RH
7694#endif
7695
5464f5a1
NN
7696int
7697main ()
7698{
7699return f != $ac_func;
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704rm -f conftest.$ac_objext conftest$ac_exeext
7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
8fb84ecc
AC
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
5464f5a1
NN
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 eval "$as_ac_var=yes"
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731eval "$as_ac_var=no"
7732fi
7733rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7735fi
7736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7737echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7738if test `eval echo '${'$as_ac_var'}'` = yes; then
7739 cat >>confdefs.h <<_ACEOF
7740#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7741_ACEOF
252b5132 7742
252b5132
RH
7743fi
7744done
7745
7746 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7747set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7748echo "$as_me:$LINENO: checking for $ac_word" >&5
7749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7750if test "${ac_cv_path_GMSGFMT+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7752else
5464f5a1
NN
7753 case $GMSGFMT in
7754 [\\/]* | ?:[\\/]*)
252b5132
RH
7755 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7756 ;;
252b5132 7757 *)
5464f5a1
NN
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7759for as_dir in $PATH
7760do
7761 IFS=$as_save_IFS
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 break 2
7768 fi
7769done
7770done
7771
252b5132
RH
7772 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7773 ;;
7774esac
7775fi
5464f5a1
NN
7776GMSGFMT=$ac_cv_path_GMSGFMT
7777
252b5132 7778if test -n "$GMSGFMT"; then
5464f5a1
NN
7779 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7780echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7781else
5464f5a1
NN
7782 echo "$as_me:$LINENO: result: no" >&5
7783echo "${ECHO_T}no" >&6
252b5132
RH
7784fi
7785
7786 # Extract the first word of "xgettext", so it can be a program name with args.
7787set dummy xgettext; ac_word=$2
5464f5a1
NN
7788echo "$as_me:$LINENO: checking for $ac_word" >&5
7789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7790if test "${ac_cv_path_XGETTEXT+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7792else
7793 case "$XGETTEXT" in
7794 /*)
7795 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7796 ;;
7797 *)
7798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7799 for ac_dir in $PATH; do
7800 test -z "$ac_dir" && ac_dir=.
7801 if test -f $ac_dir/$ac_word; then
7802 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7803 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7804 break
7805 fi
7806 fi
7807 done
7808 IFS="$ac_save_ifs"
7809 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7810 ;;
7811esac
7812fi
7813XGETTEXT="$ac_cv_path_XGETTEXT"
7814if test -n "$XGETTEXT"; then
5464f5a1
NN
7815 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7816echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7817else
5464f5a1
NN
7818 echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6
252b5132
RH
7820fi
7821
5464f5a1
NN
7822 cat >conftest.$ac_ext <<_ACEOF
7823/* confdefs.h. */
7824_ACEOF
7825cat confdefs.h >>conftest.$ac_ext
7826cat >>conftest.$ac_ext <<_ACEOF
7827/* end confdefs.h. */
252b5132 7828
5464f5a1
NN
7829int
7830main ()
7831{
252b5132
RH
7832extern int _nl_msg_cat_cntr;
7833 return _nl_msg_cat_cntr
5464f5a1
NN
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); } &&
8fb84ecc
AC
7847 { ac_try='test -z "$ac_c_werror_flag"
7848 || test ! -s conftest.err'
5464f5a1
NN
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
252b5132
RH
7860 CATOBJEXT=.gmo
7861 DATADIRNAME=share
7862else
5464f5a1
NN
7863 echo "$as_me: failed program was:" >&5
7864sed 's/^/| /' conftest.$ac_ext >&5
7865
7866CATOBJEXT=.mo
252b5132
RH
7867 DATADIRNAME=lib
7868fi
5464f5a1
NN
7869rm -f conftest.err conftest.$ac_objext \
7870 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7871 INSTOBJEXT=.mo
7872 fi
7873 fi
5464f5a1 7874
b3baf5d0 7875fi
252b5132 7876
6be7c12c 7877
5464f5a1
NN
7878
7879
a53bf506 7880 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7881 # Neither gettext nor catgets in included in the C library.
7882 # Fall back on GNU gettext library (assuming it is present).
7883 nls_cv_use_gnu_gettext=yes
252b5132
RH
7884 fi
7885 fi
7886
7887 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7888 INTLOBJS="\$(GETTOBJS)"
7889 # Extract the first word of "msgfmt", so it can be a program name with args.
7890set dummy msgfmt; ac_word=$2
5464f5a1
NN
7891echo "$as_me:$LINENO: checking for $ac_word" >&5
7892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7893if test "${ac_cv_path_MSGFMT+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7895else
7896 case "$MSGFMT" in
7897 /*)
7898 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7899 ;;
7900 *)
7901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7902 for ac_dir in $PATH; do
7903 test -z "$ac_dir" && ac_dir=.
7904 if test -f $ac_dir/$ac_word; then
7905 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7906 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7907 break
7908 fi
7909 fi
7910 done
7911 IFS="$ac_save_ifs"
7912 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7913 ;;
7914esac
7915fi
7916MSGFMT="$ac_cv_path_MSGFMT"
7917if test -n "$MSGFMT"; then
5464f5a1
NN
7918 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7919echo "${ECHO_T}$MSGFMT" >&6
252b5132 7920else
5464f5a1
NN
7921 echo "$as_me:$LINENO: result: no" >&5
7922echo "${ECHO_T}no" >&6
252b5132
RH
7923fi
7924
7925 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7926set dummy gmsgfmt; ac_word=$2
5464f5a1
NN
7927echo "$as_me:$LINENO: checking for $ac_word" >&5
7928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7929if test "${ac_cv_path_GMSGFMT+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7931else
5464f5a1
NN
7932 case $GMSGFMT in
7933 [\\/]* | ?:[\\/]*)
252b5132
RH
7934 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7935 ;;
252b5132 7936 *)
5464f5a1
NN
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
7943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7944 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948done
7949done
7950
252b5132
RH
7951 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7952 ;;
7953esac
7954fi
5464f5a1
NN
7955GMSGFMT=$ac_cv_path_GMSGFMT
7956
252b5132 7957if test -n "$GMSGFMT"; then
5464f5a1
NN
7958 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7959echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7960else
5464f5a1
NN
7961 echo "$as_me:$LINENO: result: no" >&5
7962echo "${ECHO_T}no" >&6
252b5132
RH
7963fi
7964
7965 # Extract the first word of "xgettext", so it can be a program name with args.
7966set dummy xgettext; ac_word=$2
5464f5a1
NN
7967echo "$as_me:$LINENO: checking for $ac_word" >&5
7968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7969if test "${ac_cv_path_XGETTEXT+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7971else
7972 case "$XGETTEXT" in
7973 /*)
7974 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7975 ;;
7976 *)
7977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7978 for ac_dir in $PATH; do
7979 test -z "$ac_dir" && ac_dir=.
7980 if test -f $ac_dir/$ac_word; then
7981 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7982 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7983 break
7984 fi
7985 fi
7986 done
7987 IFS="$ac_save_ifs"
7988 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7989 ;;
7990esac
7991fi
7992XGETTEXT="$ac_cv_path_XGETTEXT"
7993if test -n "$XGETTEXT"; then
5464f5a1
NN
7994 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7995echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7996else
5464f5a1
NN
7997 echo "$as_me:$LINENO: result: no" >&5
7998echo "${ECHO_T}no" >&6
252b5132
RH
7999fi
8000
5464f5a1 8001
252b5132
RH
8002 USE_INCLUDED_LIBINTL=yes
8003 CATOBJEXT=.gmo
8004 INSTOBJEXT=.mo
8005 DATADIRNAME=share
8006 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8007 INTLLIBS=$INTLDEPS
8008 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8009 nls_cv_header_intl=libintl.h
8010 nls_cv_header_libgt=libgettext.h
8011 fi
8012
8013 if test "$XGETTEXT" != ":"; then
8014 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8015 : ;
8016 else
5464f5a1
NN
8017 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8018echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8019 XGETTEXT=":"
8020 fi
8021 fi
8022
8023 # We need to process the po/ directory.
8024 POSUB=po
8025 else
8026 DATADIRNAME=share
8027 nls_cv_header_intl=libintl.h
8028 nls_cv_header_libgt=libgettext.h
8029 fi
8030
8031 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8032 # because some of the sources are only built for this goal.
8033 if test "$PACKAGE" = gettext; then
8034 USE_NLS=yes
8035 USE_INCLUDED_LIBINTL=yes
8036 fi
8037
8038 for lang in $ALL_LINGUAS; do
8039 GMOFILES="$GMOFILES $lang.gmo"
8040 POFILES="$POFILES $lang.po"
8041 done
8042
5464f5a1
NN
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
c46f8c51
AC
8054 if test "x$CATOBJEXT" != "x"; then
8055
8056cat >>confdefs.h <<\_ACEOF
8057#define ENABLE_NLS 1
8058_ACEOF
8059
8060 fi
5464f5a1 8061
6be7c12c 8062
252b5132
RH
8063 if test "x$CATOBJEXT" != "x"; then
8064 if test "x$ALL_LINGUAS" = "x"; then
8065 LINGUAS=
8066 else
5464f5a1
NN
8067 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8068echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8069 NEW_LINGUAS=
8070 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8071 case "$ALL_LINGUAS" in
8072 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8073 esac
8074 done
8075 LINGUAS=$NEW_LINGUAS
5464f5a1
NN
8076 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8077echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8078 fi
8079
8080 if test -n "$LINGUAS"; then
8081 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8082 fi
8083 fi
8084
8085 if test $ac_cv_header_locale_h = yes; then
8086 INCLUDE_LOCALE_H="#include <locale.h>"
8087 else
8088 INCLUDE_LOCALE_H="\
8089/* The system does not provide the header <locale.h>. Take care yourself. */"
8090 fi
5464f5a1 8091
252b5132
RH
8092
8093 if test -f $srcdir/po2tbl.sed.in; then
8094 if test "$CATOBJEXT" = ".cat"; then
5464f5a1
NN
8095 if test "${ac_cv_header_linux_version_h+set}" = set; then
8096 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8097echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8098if test "${ac_cv_header_linux_version_h+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100fi
8101echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8102echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8103else
8104 # Is the header compilable?
8105echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8106echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8107cat >conftest.$ac_ext <<_ACEOF
8108/* confdefs.h. */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
8112/* end confdefs.h. */
8113$ac_includes_default
252b5132 8114#include <linux/version.h>
5464f5a1
NN
8115_ACEOF
8116rm -f conftest.$ac_objext
8117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8118 (eval $ac_compile) 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8fb84ecc
AC
8125 { ac_try='test -z "$ac_c_werror_flag"
8126 || test ! -s conftest.err'
5464f5a1
NN
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; } &&
8132 { ac_try='test -s conftest.$ac_objext'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 (eval $ac_try) 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; }; then
8138 ac_header_compiler=yes
8139else
8140 echo "$as_me: failed program was:" >&5
8141sed 's/^/| /' conftest.$ac_ext >&5
8142
8143ac_header_compiler=no
8144fi
8145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8146echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8147echo "${ECHO_T}$ac_header_compiler" >&6
8148
8149# Is the header present?
8150echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8151echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8152cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158#include <linux/version.h>
8159_ACEOF
8160if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev/null; then
8168 if test -s conftest.err; then
8169 ac_cpp_err=$ac_c_preproc_warn_flag
8170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8171 else
8172 ac_cpp_err=
8173 fi
252b5132 8174else
5464f5a1 8175 ac_cpp_err=yes
252b5132 8176fi
5464f5a1
NN
8177if test -z "$ac_cpp_err"; then
8178 ac_header_preproc=yes
8179else
8180 echo "$as_me: failed program was:" >&5
8181sed 's/^/| /' conftest.$ac_ext >&5
8182
8183 ac_header_preproc=no
8184fi
8185rm -f conftest.err conftest.$ac_ext
8186echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8187echo "${ECHO_T}$ac_header_preproc" >&6
8188
8189# So? What about this header?
8190case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8191 yes:no: )
8192 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8193echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8194 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8195echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8196 ac_header_preproc=yes
8197 ;;
8198 no:yes:* )
8199 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8200echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8202echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8204echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8206echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8208echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8209 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8210echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8211 (
8212 cat <<\_ASBOX
8213## ------------------------------------------ ##
8214## Report this to the AC_PACKAGE_NAME lists. ##
8215## ------------------------------------------ ##
8216_ASBOX
8217 ) |
8218 sed "s/^/$as_me: WARNING: /" >&2
8219 ;;
8220esac
8221echo "$as_me:$LINENO: checking for linux/version.h" >&5
8222echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8223if test "${ac_cv_header_linux_version_h+set}" = set; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8225else
8226 ac_cv_header_linux_version_h=$ac_header_preproc
8227fi
8228echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8229echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8230
252b5132 8231fi
5464f5a1 8232if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8233 msgformat=linux
8234else
5464f5a1 8235 msgformat=xopen
252b5132
RH
8236fi
8237
6be7c12c 8238
5464f5a1 8239
252b5132
RH
8240 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8241 fi
8242 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8243 $srcdir/po2tbl.sed.in > po2tbl.sed
8244 fi
8245
8246 if test "$PACKAGE" = "gettext"; then
8247 GT_NO="#NO#"
8248 GT_YES=
8249 else
8250 GT_NO=
8251 GT_YES="#YES#"
8252 fi
5464f5a1
NN
8253
8254
252b5132
RH
8255
8256 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5464f5a1 8257
252b5132
RH
8258
8259 l=
5464f5a1 8260
252b5132 8261
3c3bdf30 8262 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8263 test -d po || mkdir po
8264 if test "x$srcdir" != "x."; then
8265 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8266 posrcprefix="$srcdir/"
8267 else
8268 posrcprefix="../$srcdir/"
8269 fi
8270 else
8271 posrcprefix="../"
8272 fi
8273 rm -f po/POTFILES
8274 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8275 < $srcdir/po/POTFILES.in > po/POTFILES
8276 fi
5464f5a1 8277
252b5132
RH
8278
8279# Permit host specific settings.
8280. ${srcdir}/configure.host
8281
6be7c12c 8282
252b5132
RH
8283# Find a good install program. We prefer a C program (faster),
8284# so one script is as good as another. But avoid the broken or
8285# incompatible versions:
8286# SysV /etc/install, /usr/sbin/install
8287# SunOS /usr/etc/install
8288# IRIX /sbin/install
8289# AIX /bin/install
5464f5a1 8290# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8291# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8292# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8293# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5464f5a1 8294# OS/2's system install, which has a completely different semantic
252b5132 8295# ./install, which can be erroneously created by make from ./install.sh.
5464f5a1
NN
8296echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8297echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8298if test -z "$INSTALL"; then
5464f5a1
NN
8299if test "${ac_cv_path_install+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8301else
5464f5a1
NN
8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 # Account for people who put trailing slashes in PATH elements.
8308case $as_dir/ in
8309 ./ | .// | /cC/* | \
8310 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8311 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8312 /usr/ucb/* ) ;;
8313 *)
8314 # OSF1 and SCO ODT 3.0 have their own names for install.
8315 # Don't use installbsd from OSF since it installs stuff as root
8316 # by default.
8317 for ac_prog in ginstall scoinst install; do
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8320 if test $ac_prog = install &&
5464f5a1 8321 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8322 # AIX install. It has an incompatible calling convention.
8323 :
5464f5a1
NN
8324 elif test $ac_prog = install &&
8325 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8326 # program-specific install script used by HP pwplus--don't use.
8327 :
252b5132 8328 else
5464f5a1
NN
8329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8330 break 3
252b5132
RH
8331 fi
8332 fi
8333 done
5464f5a1
NN
8334 done
8335 ;;
8336esac
8337done
8338
252b5132
RH
8339
8340fi
8341 if test "${ac_cv_path_install+set}" = set; then
5464f5a1 8342 INSTALL=$ac_cv_path_install
252b5132
RH
8343 else
8344 # As a last resort, use the slow shell script. We don't cache a
8345 # path for INSTALL within a source directory, because that will
8346 # break other packages using the cache if that directory is
8347 # removed, or if the path is relative.
5464f5a1 8348 INSTALL=$ac_install_sh
252b5132
RH
8349 fi
8350fi
5464f5a1
NN
8351echo "$as_me:$LINENO: result: $INSTALL" >&5
8352echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8353
8354# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8355# It thinks the first close brace ends the variable substitution.
8356test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8357
5464f5a1 8358test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8359
8360test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8361
6be7c12c 8362
252b5132 8363BFD_HOST_64BIT_LONG=0
ec317fb1 8364BFD_HOST_LONG_LONG=0
252b5132
RH
8365BFD_HOST_64_BIT_DEFINED=0
8366BFD_HOST_64_BIT=
8367BFD_HOST_U_64_BIT=
252b5132 8368
5464f5a1
NN
8369echo "$as_me:$LINENO: checking for long long" >&5
8370echo $ECHO_N "checking for long long... $ECHO_C" >&6
8371if test "${bfd_cv_has_long_long+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
ec317fb1 8373else
5464f5a1
NN
8374 cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
ec317fb1 8380
5464f5a1
NN
8381int
8382main ()
8383{
ec317fb1 8384unsigned long long ll = 18446744073709551615ULL;
5464f5a1
NN
8385 ;
8386 return 0;
8387}
8388_ACEOF
8389rm -f conftest.$ac_objext
8390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8391 (eval $ac_compile) 2>conftest.er1
8392 ac_status=$?
8393 grep -v '^ *+' conftest.er1 >conftest.err
8394 rm -f conftest.er1
8395 cat conftest.err >&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8fb84ecc
AC
8398 { ac_try='test -z "$ac_c_werror_flag"
8399 || test ! -s conftest.err'
5464f5a1
NN
8400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401 (eval $ac_try) 2>&5
8402 ac_status=$?
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest.$ac_objext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
ec317fb1
ILT
8411 bfd_cv_has_long_long=yes
8412else
5464f5a1
NN
8413 echo "$as_me: failed program was:" >&5
8414sed 's/^/| /' conftest.$ac_ext >&5
8415
8416bfd_cv_has_long_long=no
ec317fb1 8417fi
5464f5a1 8418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ec317fb1
ILT
8419fi
8420
5464f5a1
NN
8421echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8422echo "${ECHO_T}$bfd_cv_has_long_long" >&6
ec317fb1
ILT
8423if test $bfd_cv_has_long_long = yes; then
8424 BFD_HOST_LONG_LONG=1
5464f5a1
NN
8425 echo "$as_me:$LINENO: checking size of long long" >&5
8426echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8427if test "${ac_cv_sizeof_long_long+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8429else
8430 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8431 cat >conftest.$ac_ext <<_ACEOF
8432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
6726e1ea
L
8437#include "confdefs.h"
8438#include <sys/types.h>
8439
8440
5464f5a1
NN
8441int
8442main ()
8443{
6726e1ea 8444switch (0) case 0: case (sizeof (long long) == $ac_size):;
5464f5a1
NN
8445 ;
8446 return 0;
8447}
8448_ACEOF
8449rm -f conftest.$ac_objext
8450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8451 (eval $ac_compile) 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8fb84ecc
AC
8458 { ac_try='test -z "$ac_c_werror_flag"
8459 || test ! -s conftest.err'
5464f5a1
NN
8460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 (eval $ac_try) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; } &&
8465 { ac_try='test -s conftest.$ac_objext'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 (eval $ac_try) 2>&5
8468 ac_status=$?
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; }; then
6726e1ea
L
8471 ac_cv_sizeof_long_long=$ac_size
8472else
5464f5a1
NN
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
6726e1ea 8476fi
5464f5a1 8477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8478 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8479done
8480
8481fi
8482
8483if test x$ac_cv_sizeof_long_long = x ; then
5464f5a1
NN
8484 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8485echo "$as_me: error: cannot determine a size for long long" >&2;}
8486 { (exit 1); exit 1; }; }
6726e1ea 8487fi
5464f5a1
NN
8488echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8489echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8490
8491cat >>confdefs.h <<_ACEOF
6726e1ea 8492#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5464f5a1 8493_ACEOF
6726e1ea
L
8494
8495
8496fi
8497
5464f5a1
NN
8498echo "$as_me:$LINENO: checking size of long" >&5
8499echo $ECHO_N "checking size of long... $ECHO_C" >&6
8500if test "${ac_cv_sizeof_long+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
6726e1ea
L
8502else
8503 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
8504 cat >conftest.$ac_ext <<_ACEOF
8505/* confdefs.h. */
8506_ACEOF
8507cat confdefs.h >>conftest.$ac_ext
8508cat >>conftest.$ac_ext <<_ACEOF
8509/* end confdefs.h. */
6726e1ea
L
8510#include "confdefs.h"
8511#include <sys/types.h>
8512
8513
5464f5a1
NN
8514int
8515main ()
8516{
6726e1ea 8517switch (0) case 0: case (sizeof (long) == $ac_size):;
5464f5a1
NN
8518 ;
8519 return 0;
8520}
8521_ACEOF
8522rm -f conftest.$ac_objext
8523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8524 (eval $ac_compile) 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8fb84ecc
AC
8531 { ac_try='test -z "$ac_c_werror_flag"
8532 || test ! -s conftest.err'
5464f5a1
NN
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; } &&
8538 { ac_try='test -s conftest.$ac_objext'
8539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8540 (eval $ac_try) 2>&5
8541 ac_status=$?
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); }; }; then
6726e1ea
L
8544 ac_cv_sizeof_long=$ac_size
8545else
5464f5a1
NN
8546 echo "$as_me: failed program was:" >&5
8547sed 's/^/| /' conftest.$ac_ext >&5
8548
6726e1ea 8549fi
5464f5a1 8550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726e1ea
L
8551 if test x$ac_cv_sizeof_long != x ; then break; fi
8552done
8553
8554fi
8555
8556if test x$ac_cv_sizeof_long = x ; then
5464f5a1
NN
8557 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8558echo "$as_me: error: cannot determine a size for long" >&2;}
8559 { (exit 1); exit 1; }; }
6726e1ea 8560fi
5464f5a1
NN
8561echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8562echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8563
8564cat >>confdefs.h <<_ACEOF
6726e1ea 8565#define SIZEOF_LONG $ac_cv_sizeof_long
5464f5a1 8566_ACEOF
6726e1ea
L
8567
8568
8569if test "x${ac_cv_sizeof_long}" = "x8"; then
8570 host64=true
ccba357f
AM
8571 BFD_HOST_64BIT_LONG=1
8572 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8573 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 8574elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
ccba357f
AM
8575 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8576 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
6726e1ea
L
8577fi
8578
ccba357f 8579if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 8580 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
8581 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8582 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
8583fi
8584
8585
8586
6be7c12c
AO
8587
8588
8589
8590
252b5132
RH
8591# Put a plausible default for CC_FOR_BUILD in Makefile.
8592if test -z "$CC_FOR_BUILD"; then
8593 if test "x$cross_compiling" = "xno"; then
8594 CC_FOR_BUILD='$(CC)'
8595 else
8596 CC_FOR_BUILD=gcc
8597 fi
8598fi
8599
8600# Also set EXEEXT_FOR_BUILD.
8601if test "x$cross_compiling" = "xno"; then
8602 EXEEXT_FOR_BUILD='$(EXEEXT)'
8603else
5464f5a1
NN
8604 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8605echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8606if test "${bfd_cv_build_exeext+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8608else
aab08431
ILT
8609 rm -f conftest*
8610 echo 'int main () { return 0; }' > conftest.c
8611 bfd_cv_build_exeext=
8612 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8613 for file in conftest.*; do
8614 case $file in
8615 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8616 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8617 esac
8618 done
8619 rm -f conftest*
8620 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8621fi
5464f5a1
NN
8622echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8623echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8624 EXEEXT_FOR_BUILD=""
8625 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8626fi
8627
6be7c12c 8628
5464f5a1
NN
8629
8630
8631
8632
8633
8634
8635for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
252b5132 8636do
5464f5a1
NN
8637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8638if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639 echo "$as_me:$LINENO: checking for $ac_header" >&5
8640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8641if eval "test \"\${$as_ac_Header+set}\" = set"; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643fi
8644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8645echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8646else
8647 # Is the header compilable?
8648echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8650cat >conftest.$ac_ext <<_ACEOF
8651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
8656$ac_includes_default
8657#include <$ac_header>
8658_ACEOF
8659rm -f conftest.$ac_objext
8660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8fb84ecc
AC
8668 { ac_try='test -z "$ac_c_werror_flag"
8669 || test ! -s conftest.err'
5464f5a1
NN
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 (eval $ac_try) 2>&5
8678 ac_status=$?
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 ac_header_compiler=yes
8682else
8683 echo "$as_me: failed program was:" >&5
8684sed 's/^/| /' conftest.$ac_ext >&5
8685
8686ac_header_compiler=no
8687fi
8688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8689echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8690echo "${ECHO_T}$ac_header_compiler" >&6
8691
8692# Is the header present?
8693echo "$as_me:$LINENO: checking $ac_header presence" >&5
8694echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8695cat >conftest.$ac_ext <<_ACEOF
8696/* confdefs.h. */
8697_ACEOF
8698cat confdefs.h >>conftest.$ac_ext
8699cat >>conftest.$ac_ext <<_ACEOF
8700/* end confdefs.h. */
8701#include <$ac_header>
8702_ACEOF
8703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8705 ac_status=$?
8706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } >/dev/null; then
8711 if test -s conftest.err; then
8712 ac_cpp_err=$ac_c_preproc_warn_flag
8713 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8714 else
8715 ac_cpp_err=
8716 fi
252b5132 8717else
5464f5a1 8718 ac_cpp_err=yes
252b5132 8719fi
5464f5a1
NN
8720if test -z "$ac_cpp_err"; then
8721 ac_header_preproc=yes
8722else
8723 echo "$as_me: failed program was:" >&5
8724sed 's/^/| /' conftest.$ac_ext >&5
8725
8726 ac_header_preproc=no
252b5132 8727fi
5464f5a1
NN
8728rm -f conftest.err conftest.$ac_ext
8729echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730echo "${ECHO_T}$ac_header_preproc" >&6
8731
8732# So? What about this header?
8733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8734 yes:no: )
8735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8736echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8738echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8739 ac_header_preproc=yes
8740 ;;
8741 no:yes:* )
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8743echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8745echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8747echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8749echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8751echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8753echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8754 (
8755 cat <<\_ASBOX
8756## ------------------------------------------ ##
8757## Report this to the AC_PACKAGE_NAME lists. ##
8758## ------------------------------------------ ##
8759_ASBOX
8760 ) |
8761 sed "s/^/$as_me: WARNING: /" >&2
8762 ;;
8763esac
8764echo "$as_me:$LINENO: checking for $ac_header" >&5
8765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8766if eval "test \"\${$as_ac_Header+set}\" = set"; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8768else
5464f5a1
NN
8769 eval "$as_ac_Header=\$ac_header_preproc"
8770fi
8771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773
252b5132 8774fi
5464f5a1
NN
8775if test `eval echo '${'$as_ac_Header'}'` = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778_ACEOF
8779
8780fi
8781
252b5132
RH
8782done
8783
5464f5a1
NN
8784
8785
8786
8787for ac_header in fcntl.h sys/file.h sys/time.h
252b5132 8788do
5464f5a1
NN
8789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8790if eval "test \"\${$as_ac_Header+set}\" = set"; then
8791 echo "$as_me:$LINENO: checking for $ac_header" >&5
8792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795fi
8796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8798else
8799 # Is the header compilable?
8800echo "$as_me:$LINENO: checking $ac_header usability" >&5
8801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8802cat >conftest.$ac_ext <<_ACEOF
8803/* confdefs.h. */
8804_ACEOF
8805cat confdefs.h >>conftest.$ac_ext
8806cat >>conftest.$ac_ext <<_ACEOF
8807/* end confdefs.h. */
8808$ac_includes_default
8809#include <$ac_header>
8810_ACEOF
8811rm -f conftest.$ac_objext
8812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8813 (eval $ac_compile) 2>conftest.er1
8814 ac_status=$?
8815 grep -v '^ *+' conftest.er1 >conftest.err
8816 rm -f conftest.er1
8817 cat conftest.err >&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8fb84ecc
AC
8820 { ac_try='test -z "$ac_c_werror_flag"
8821 || test ! -s conftest.err'
5464f5a1
NN
8822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8823 (eval $ac_try) 2>&5
8824 ac_status=$?
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8829 (eval $ac_try) 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 ac_header_compiler=yes
8834else
8835 echo "$as_me: failed program was:" >&5
8836sed 's/^/| /' conftest.$ac_ext >&5
8837
8838ac_header_compiler=no
8839fi
8840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8842echo "${ECHO_T}$ac_header_compiler" >&6
8843
8844# Is the header present?
8845echo "$as_me:$LINENO: checking $ac_header presence" >&5
8846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8847cat >conftest.$ac_ext <<_ACEOF
8848/* confdefs.h. */
8849_ACEOF
8850cat confdefs.h >>conftest.$ac_ext
8851cat >>conftest.$ac_ext <<_ACEOF
8852/* end confdefs.h. */
8853#include <$ac_header>
8854_ACEOF
8855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8857 ac_status=$?
8858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); } >/dev/null; then
8863 if test -s conftest.err; then
8864 ac_cpp_err=$ac_c_preproc_warn_flag
8865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8866 else
8867 ac_cpp_err=
8868 fi
252b5132 8869else
5464f5a1 8870 ac_cpp_err=yes
252b5132 8871fi
5464f5a1
NN
8872if test -z "$ac_cpp_err"; then
8873 ac_header_preproc=yes
8874else
8875 echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878 ac_header_preproc=no
252b5132 8879fi
5464f5a1
NN
8880rm -f conftest.err conftest.$ac_ext
8881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8882echo "${ECHO_T}$ac_header_preproc" >&6
8883
8884# So? What about this header?
8885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8886 yes:no: )
8887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8891 ac_header_preproc=yes
8892 ;;
8893 no:yes:* )
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8906 (
8907 cat <<\_ASBOX
8908## ------------------------------------------ ##
8909## Report this to the AC_PACKAGE_NAME lists. ##
8910## ------------------------------------------ ##
8911_ASBOX
8912 ) |
8913 sed "s/^/$as_me: WARNING: /" >&2
8914 ;;
8915esac
8916echo "$as_me:$LINENO: checking for $ac_header" >&5
8917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8918if eval "test \"\${$as_ac_Header+set}\" = set"; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 8920else
5464f5a1
NN
8921 eval "$as_ac_Header=\$ac_header_preproc"
8922fi
8923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8925
8926fi
8927if test `eval echo '${'$as_ac_Header'}'` = yes; then
8928 cat >>confdefs.h <<_ACEOF
8929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8930_ACEOF
8931
252b5132 8932fi
5464f5a1 8933
252b5132
RH
8934done
8935
5464f5a1
NN
8936echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8937echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8938if test "${ac_cv_header_time+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940else
8941 cat >conftest.$ac_ext <<_ACEOF
8942/* confdefs.h. */
8943_ACEOF
8944cat confdefs.h >>conftest.$ac_ext
8945cat >>conftest.$ac_ext <<_ACEOF
8946/* end confdefs.h. */
252b5132
RH
8947#include <sys/types.h>
8948#include <sys/time.h>
8949#include <time.h>
5464f5a1
NN
8950
8951int
8952main ()
8953{
8954if ((struct tm *) 0)
8955return 0;
8956 ;
8957 return 0;
8958}
8959_ACEOF
8960rm -f conftest.$ac_objext
8961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8963 ac_status=$?
8964 grep -v '^ *+' conftest.er1 >conftest.err
8965 rm -f conftest.er1
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8fb84ecc
AC
8969 { ac_try='test -z "$ac_c_werror_flag"
8970 || test ! -s conftest.err'
5464f5a1
NN
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 (eval $ac_try) 2>&5
8973 ac_status=$?
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
252b5132
RH
8982 ac_cv_header_time=yes
8983else
5464f5a1
NN
8984 echo "$as_me: failed program was:" >&5
8985sed 's/^/| /' conftest.$ac_ext >&5
8986
8987ac_cv_header_time=no
252b5132 8988fi
5464f5a1 8989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8990fi
5464f5a1
NN
8991echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8992echo "${ECHO_T}$ac_cv_header_time" >&6
6be7c12c 8993if test $ac_cv_header_time = yes; then
5464f5a1
NN
8994
8995cat >>confdefs.h <<\_ACEOF
252b5132 8996#define TIME_WITH_SYS_TIME 1
5464f5a1 8997_ACEOF
252b5132
RH
8998
8999fi
9000
5464f5a1
NN
9001
9002
9003
9004
9005
252b5132 9006ac_header_dirent=no
5464f5a1
NN
9007for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9008 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9009echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9010echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9011if eval "test \"\${$as_ac_Header+set}\" = set"; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013else
9014 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
252b5132
RH
9020#include <sys/types.h>
9021#include <$ac_hdr>
5464f5a1
NN
9022
9023int
9024main ()
9025{
9026if ((DIR *) 0)
9027return 0;
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext
9033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9034 (eval $ac_compile) 2>conftest.er1
9035 ac_status=$?
9036 grep -v '^ *+' conftest.er1 >conftest.err
9037 rm -f conftest.er1
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
8fb84ecc
AC
9041 { ac_try='test -z "$ac_c_werror_flag"
9042 || test ! -s conftest.err'
5464f5a1
NN
9043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044 (eval $ac_try) 2>&5
9045 ac_status=$?
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); }; } &&
9048 { ac_try='test -s conftest.$ac_objext'
9049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 (eval $ac_try) 2>&5
9051 ac_status=$?
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9054 eval "$as_ac_Header=yes"
9055else
9056 echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059eval "$as_ac_Header=no"
9060fi
9061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9062fi
9063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9065if test `eval echo '${'$as_ac_Header'}'` = yes; then
9066 cat >>confdefs.h <<_ACEOF
9067#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9068_ACEOF
9069
9070ac_header_dirent=$ac_hdr; break
252b5132 9071fi
5464f5a1 9072
252b5132
RH
9073done
9074# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9075if test $ac_header_dirent = dirent.h; then
5464f5a1
NN
9076 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9077echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9078if test "${ac_cv_search_opendir+set}" = set; then
9079 echo $ECHO_N "(cached) $ECHO_C" >&6
9080else
9081 ac_func_search_save_LIBS=$LIBS
9082ac_cv_search_opendir=no
9083cat >conftest.$ac_ext <<_ACEOF
9084/* confdefs.h. */
9085_ACEOF
9086cat confdefs.h >>conftest.$ac_ext
9087cat >>conftest.$ac_ext <<_ACEOF
9088/* end confdefs.h. */
9089
252b5132 9090/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9091#ifdef __cplusplus
9092extern "C"
9093#endif
252b5132 9094/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9095 builtin and then its argument prototype would still apply. */
9096char opendir ();
9097int
9098main ()
9099{
9100opendir ();
9101 ;
9102 return 0;
9103}
9104_ACEOF
9105rm -f conftest.$ac_objext conftest$ac_exeext
9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>conftest.er1
9108 ac_status=$?
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); } &&
8fb84ecc
AC
9114 { ac_try='test -z "$ac_c_werror_flag"
9115 || test ! -s conftest.err'
5464f5a1
NN
9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117 (eval $ac_try) 2>&5
9118 ac_status=$?
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_search_opendir="none required"
9128else
9129 echo "$as_me: failed program was:" >&5
9130sed 's/^/| /' conftest.$ac_ext >&5
9131
9132fi
9133rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135if test "$ac_cv_search_opendir" = no; then
9136 for ac_lib in dir; do
9137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139/* confdefs.h. */
9140_ACEOF
9141cat confdefs.h >>conftest.$ac_ext
9142cat >>conftest.$ac_ext <<_ACEOF
9143/* end confdefs.h. */
6be7c12c 9144
5464f5a1
NN
9145/* Override any gcc2 internal prototype to avoid an error. */
9146#ifdef __cplusplus
9147extern "C"
9148#endif
9149/* We use char because int might match the return type of a gcc2
9150 builtin and then its argument prototype would still apply. */
9151char opendir ();
9152int
9153main ()
9154{
9155opendir ();
9156 ;
9157 return 0;
9158}
9159_ACEOF
9160rm -f conftest.$ac_objext conftest$ac_exeext
9161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
8fb84ecc
AC
9169 { ac_try='test -z "$ac_c_werror_flag"
9170 || test ! -s conftest.err'
5464f5a1
NN
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_cv_search_opendir="-l$ac_lib"
9183break
9184else
9185 echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188fi
9189rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191 done
6be7c12c 9192fi
5464f5a1 9193LIBS=$ac_func_search_save_LIBS
6be7c12c 9194fi
5464f5a1
NN
9195echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9196echo "${ECHO_T}$ac_cv_search_opendir" >&6
9197if test "$ac_cv_search_opendir" != no; then
9198 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9199
252b5132
RH
9200fi
9201
9202else
5464f5a1
NN
9203 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9204echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9205if test "${ac_cv_search_opendir+set}" = set; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
b3baf5d0 9207else
5464f5a1
NN
9208 ac_func_search_save_LIBS=$LIBS
9209ac_cv_search_opendir=no
9210cat >conftest.$ac_ext <<_ACEOF
9211/* confdefs.h. */
9212_ACEOF
9213cat confdefs.h >>conftest.$ac_ext
9214cat >>conftest.$ac_ext <<_ACEOF
9215/* end confdefs.h. */
9216
6be7c12c 9217/* Override any gcc2 internal prototype to avoid an error. */
5464f5a1
NN
9218#ifdef __cplusplus
9219extern "C"
9220#endif
6be7c12c 9221/* We use char because int might match the return type of a gcc2
5464f5a1
NN
9222 builtin and then its argument prototype would still apply. */
9223char opendir ();
9224int
9225main ()
9226{
9227opendir ();
9228 ;
9229 return 0;
9230}
9231_ACEOF
9232rm -f conftest.$ac_objext conftest$ac_exeext
9233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
8fb84ecc
AC
9241 { ac_try='test -z "$ac_c_werror_flag"
9242 || test ! -s conftest.err'
5464f5a1
NN
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; } &&
9248 { ac_try='test -s conftest$ac_exeext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_search_opendir="none required"
9255else
9256 echo "$as_me: failed program was:" >&5
9257sed 's/^/| /' conftest.$ac_ext >&5
9258
9259fi
9260rm -f conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262if test "$ac_cv_search_opendir" = no; then
9263 for ac_lib in x; do
9264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9265 cat >conftest.$ac_ext <<_ACEOF
9266/* confdefs.h. */
9267_ACEOF
9268cat confdefs.h >>conftest.$ac_ext
9269cat >>conftest.$ac_ext <<_ACEOF
9270/* end confdefs.h. */
6be7c12c 9271
5464f5a1
NN
9272/* Override any gcc2 internal prototype to avoid an error. */
9273#ifdef __cplusplus
9274extern "C"
9275#endif
9276/* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9278char opendir ();
9279int
9280main ()
9281{
9282opendir ();
9283 ;
9284 return 0;
9285}
9286_ACEOF
9287rm -f conftest.$ac_objext conftest$ac_exeext
9288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } &&
8fb84ecc
AC
9296 { ac_try='test -z "$ac_c_werror_flag"
9297 || test ! -s conftest.err'
5464f5a1
NN
9298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 (eval $ac_try) 2>&5
9300 ac_status=$?
9301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302 (exit $ac_status); }; } &&
9303 { ac_try='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 (eval $ac_try) 2>&5
9306 ac_status=$?
9307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9309 ac_cv_search_opendir="-l$ac_lib"
9310break
9311else
9312 echo "$as_me: failed program was:" >&5
9313sed 's/^/| /' conftest.$ac_ext >&5
9314
9315fi
9316rm -f conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318 done
6be7c12c 9319fi
5464f5a1 9320LIBS=$ac_func_search_save_LIBS
6be7c12c 9321fi
5464f5a1
NN
9322echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9323echo "${ECHO_T}$ac_cv_search_opendir" >&6
9324if test "$ac_cv_search_opendir" != no; then
9325 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9326
252b5132
RH
9327fi
9328
9329fi
9330
5464f5a1
NN
9331
9332
9333
9334
9335
9336
9337
633fd09f 9338for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
252b5132 9339do
5464f5a1
NN
9340as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9341echo "$as_me:$LINENO: checking for $ac_func" >&5
9342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9343if eval "test \"\${$as_ac_var+set}\" = set"; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9345else
9346 cat >conftest.$ac_ext <<_ACEOF
9347/* confdefs.h. */
9348_ACEOF
9349cat confdefs.h >>conftest.$ac_ext
9350cat >>conftest.$ac_ext <<_ACEOF
9351/* end confdefs.h. */
9352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354#define $ac_func innocuous_$ac_func
9355
252b5132 9356/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9357 which can conflict with char $ac_func (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9360
9361#ifdef __STDC__
9362# include <limits.h>
9363#else
9364# include <assert.h>
9365#endif
6be7c12c 9366
5464f5a1 9367#undef $ac_func
252b5132 9368
5464f5a1
NN
9369/* Override any gcc2 internal prototype to avoid an error. */
9370#ifdef __cplusplus
9371extern "C"
9372{
9373#endif
9374/* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9376char $ac_func ();
252b5132
RH
9377/* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9381choke me
9382#else
5464f5a1
NN
9383char (*f) () = $ac_func;
9384#endif
9385#ifdef __cplusplus
9386}
252b5132
RH
9387#endif
9388
5464f5a1
NN
9389int
9390main ()
9391{
9392return f != $ac_func;
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397rm -f conftest.$ac_objext conftest$ac_exeext
9398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } &&
8fb84ecc
AC
9406 { ac_try='test -z "$ac_c_werror_flag"
9407 || test ! -s conftest.err'
5464f5a1
NN
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; } &&
9413 { ac_try='test -s conftest$ac_exeext'
9414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 (eval $ac_try) 2>&5
9416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; }; then
9419 eval "$as_ac_var=yes"
9420else
9421 echo "$as_me: failed program was:" >&5
9422sed 's/^/| /' conftest.$ac_ext >&5
9423
9424eval "$as_ac_var=no"
9425fi
9426rm -f conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext conftest.$ac_ext
9428fi
9429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9431if test `eval echo '${'$as_ac_var'}'` = yes; then
9432 cat >>confdefs.h <<_ACEOF
9433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9434_ACEOF
252b5132 9435
252b5132
RH
9436fi
9437done
9438
5464f5a1 9439
49c97a80
ILT
9440for ac_func in strtoull
9441do
5464f5a1
NN
9442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9443echo "$as_me:$LINENO: checking for $ac_func" >&5
9444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9445if eval "test \"\${$as_ac_var+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448 cat >conftest.$ac_ext <<_ACEOF
9449/* confdefs.h. */
9450_ACEOF
9451cat confdefs.h >>conftest.$ac_ext
9452cat >>conftest.$ac_ext <<_ACEOF
9453/* end confdefs.h. */
9454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9456#define $ac_func innocuous_$ac_func
9457
49c97a80 9458/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
9459 which can conflict with char $ac_func (); below.
9460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461 <limits.h> exists even on freestanding compilers. */
9462
9463#ifdef __STDC__
9464# include <limits.h>
9465#else
9466# include <assert.h>
9467#endif
49c97a80 9468
5464f5a1 9469#undef $ac_func
49c97a80 9470
5464f5a1
NN
9471/* Override any gcc2 internal prototype to avoid an error. */
9472#ifdef __cplusplus
9473extern "C"
9474{
9475#endif
9476/* We use char because int might match the return type of a gcc2
9477 builtin and then its argument prototype would still apply. */
9478char $ac_func ();
49c97a80
ILT
9479/* The GNU C library defines this for functions which it implements
9480 to always fail with ENOSYS. Some functions are actually named
9481 something starting with __ and the normal name is an alias. */
9482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483choke me
9484#else
5464f5a1
NN
9485char (*f) () = $ac_func;
9486#endif
9487#ifdef __cplusplus
9488}
49c97a80
ILT
9489#endif
9490
5464f5a1
NN
9491int
9492main ()
9493{
9494return f != $ac_func;
9495 ;
9496 return 0;
9497}
9498_ACEOF
9499rm -f conftest.$ac_objext conftest$ac_exeext
9500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501 (eval $ac_link) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
8fb84ecc
AC
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
5464f5a1
NN
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 eval "$as_ac_var=yes"
9522else
9523 echo "$as_me: failed program was:" >&5
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
9526eval "$as_ac_var=no"
9527fi
9528rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530fi
9531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533if test `eval echo '${'$as_ac_var'}'` = yes; then
9534 cat >>confdefs.h <<_ACEOF
9535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536_ACEOF
49c97a80 9537
49c97a80
ILT
9538fi
9539done
9540
6be7c12c
AO
9541
9542
252b5132 9543case "${host}" in
855b0be7 9544*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
5464f5a1
NN
9545
9546cat >>confdefs.h <<\_ACEOF
252b5132 9547#define USE_BINARY_FOPEN 1
5464f5a1 9548_ACEOF
252b5132
RH
9549 ;;
9550esac
9551
5464f5a1
NN
9552echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9553echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9554if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9556else
5464f5a1
NN
9557 cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h. */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h. */
252b5132
RH
9563
9564#include <stdio.h>
9565#ifdef HAVE_STRING_H
9566#include <string.h>
9567#else
9568#ifdef HAVE_STRINGS_H
9569#include <strings.h>
9570#endif
9571#endif
9572#ifdef HAVE_STDLIB_H
9573#include <stdlib.h>
9574#endif
9575#ifdef HAVE_UNISTD_H
9576#include <unistd.h>
9577#endif
5464f5a1
NN
9578int
9579main ()
9580{
252b5132 9581char *(*pfn) = (char *(*)) strstr
5464f5a1
NN
9582 ;
9583 return 0;
9584}
9585_ACEOF
9586rm -f conftest.$ac_objext
9587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
8fb84ecc
AC
9595 { ac_try='test -z "$ac_c_werror_flag"
9596 || test ! -s conftest.err'
5464f5a1
NN
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 (eval $ac_try) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; } &&
9602 { ac_try='test -s conftest.$ac_objext'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; }; then
252b5132
RH
9608 bfd_cv_decl_needed_strstr=no
9609else
5464f5a1
NN
9610 echo "$as_me: failed program was:" >&5
9611sed 's/^/| /' conftest.$ac_ext >&5
9612
9613bfd_cv_decl_needed_strstr=yes
252b5132 9614fi
5464f5a1 9615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9616fi
9617
5464f5a1
NN
9618echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9619echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9620if test $bfd_cv_decl_needed_strstr = yes; then
5464f5a1
NN
9621
9622cat >>confdefs.h <<\_ACEOF
252b5132 9623#define NEED_DECLARATION_STRSTR 1
5464f5a1 9624_ACEOF
252b5132
RH
9625
9626fi
9627
5464f5a1
NN
9628echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9629echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9630if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9632else
5464f5a1
NN
9633 cat >conftest.$ac_ext <<_ACEOF
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
252b5132
RH
9639
9640#include <stdio.h>
9641#ifdef HAVE_STRING_H
9642#include <string.h>
9643#else
9644#ifdef HAVE_STRINGS_H
9645#include <strings.h>
9646#endif
9647#endif
9648#ifdef HAVE_STDLIB_H
9649#include <stdlib.h>
9650#endif
9651#ifdef HAVE_UNISTD_H
9652#include <unistd.h>
9653#endif
5464f5a1
NN
9654int
9655main ()
9656{
9657char *(*pfn) = (char *(*)) malloc
9658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext
9663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9664 (eval $ac_compile) 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
8fb84ecc
AC
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
5464f5a1
NN
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
252b5132
RH
9684 bfd_cv_decl_needed_malloc=no
9685else
5464f5a1
NN
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689bfd_cv_decl_needed_malloc=yes
252b5132 9690fi
5464f5a1 9691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9692fi
9693
5464f5a1
NN
9694echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9695echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
252b5132 9696if test $bfd_cv_decl_needed_malloc = yes; then
5464f5a1
NN
9697
9698cat >>confdefs.h <<\_ACEOF
252b5132 9699#define NEED_DECLARATION_MALLOC 1
5464f5a1 9700_ACEOF
252b5132
RH
9701
9702fi
9703
5464f5a1
NN
9704echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9705echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9706if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9708else
5464f5a1
NN
9709 cat >conftest.$ac_ext <<_ACEOF
9710/* confdefs.h. */
9711_ACEOF
9712cat confdefs.h >>conftest.$ac_ext
9713cat >>conftest.$ac_ext <<_ACEOF
9714/* end confdefs.h. */
252b5132
RH
9715
9716#include <stdio.h>
9717#ifdef HAVE_STRING_H
9718#include <string.h>
9719#else
9720#ifdef HAVE_STRINGS_H
9721#include <strings.h>
9722#endif
9723#endif
9724#ifdef HAVE_STDLIB_H
9725#include <stdlib.h>
9726#endif
9727#ifdef HAVE_UNISTD_H
9728#include <unistd.h>
9729#endif
5464f5a1
NN
9730int
9731main ()
9732{
252b5132 9733char *(*pfn) = (char *(*)) realloc
5464f5a1
NN
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext
9739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
8fb84ecc
AC
9747 { ac_try='test -z "$ac_c_werror_flag"
9748 || test ! -s conftest.err'
5464f5a1
NN
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest.$ac_objext'
9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 (eval $ac_try) 2>&5
9757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
252b5132
RH
9760 bfd_cv_decl_needed_realloc=no
9761else
5464f5a1
NN
9762 echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
9764
9765bfd_cv_decl_needed_realloc=yes
252b5132 9766fi
5464f5a1 9767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9768fi
9769
5464f5a1
NN
9770echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9771echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
252b5132 9772if test $bfd_cv_decl_needed_realloc = yes; then
5464f5a1
NN
9773
9774cat >>confdefs.h <<\_ACEOF
252b5132 9775#define NEED_DECLARATION_REALLOC 1
5464f5a1 9776_ACEOF
252b5132
RH
9777
9778fi
9779
5464f5a1
NN
9780echo "$as_me:$LINENO: checking whether free must be declared" >&5
9781echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9782if test "${bfd_cv_decl_needed_free+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9784else
5464f5a1
NN
9785 cat >conftest.$ac_ext <<_ACEOF
9786/* confdefs.h. */
9787_ACEOF
9788cat confdefs.h >>conftest.$ac_ext
9789cat >>conftest.$ac_ext <<_ACEOF
9790/* end confdefs.h. */
252b5132
RH
9791
9792#include <stdio.h>
9793#ifdef HAVE_STRING_H
9794#include <string.h>
9795#else
9796#ifdef HAVE_STRINGS_H
9797#include <strings.h>
9798#endif
9799#endif
9800#ifdef HAVE_STDLIB_H
9801#include <stdlib.h>
9802#endif
9803#ifdef HAVE_UNISTD_H
9804#include <unistd.h>
9805#endif
5464f5a1
NN
9806int
9807main ()
9808{
252b5132 9809char *(*pfn) = (char *(*)) free
5464f5a1
NN
9810 ;
9811 return 0;
9812}
9813_ACEOF
9814rm -f conftest.$ac_objext
9815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816 (eval $ac_compile) 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
8fb84ecc
AC
9823 { ac_try='test -z "$ac_c_werror_flag"
9824 || test ! -s conftest.err'
5464f5a1
NN
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
252b5132
RH
9836 bfd_cv_decl_needed_free=no
9837else
5464f5a1
NN
9838 echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841bfd_cv_decl_needed_free=yes
252b5132 9842fi
5464f5a1 9843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9844fi
9845
5464f5a1
NN
9846echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9847echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 9848if test $bfd_cv_decl_needed_free = yes; then
5464f5a1
NN
9849
9850cat >>confdefs.h <<\_ACEOF
252b5132 9851#define NEED_DECLARATION_FREE 1
5464f5a1 9852_ACEOF
252b5132
RH
9853
9854fi
9855
5464f5a1
NN
9856echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9857echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9858if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9860else
5464f5a1
NN
9861 cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h. */
252b5132
RH
9867
9868#include <stdio.h>
9869#ifdef HAVE_STRING_H
9870#include <string.h>
9871#else
9872#ifdef HAVE_STRINGS_H
9873#include <strings.h>
9874#endif
9875#endif
9876#ifdef HAVE_STDLIB_H
9877#include <stdlib.h>
9878#endif
9879#ifdef HAVE_UNISTD_H
9880#include <unistd.h>
9881#endif
5464f5a1
NN
9882int
9883main ()
9884{
252b5132 9885char *(*pfn) = (char *(*)) getenv
5464f5a1
NN
9886 ;
9887 return 0;
9888}
9889_ACEOF
9890rm -f conftest.$ac_objext
9891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9892 (eval $ac_compile) 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
8fb84ecc
AC
9899 { ac_try='test -z "$ac_c_werror_flag"
9900 || test ! -s conftest.err'
5464f5a1
NN
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9902 (eval $ac_try) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
252b5132
RH
9912 bfd_cv_decl_needed_getenv=no
9913else
5464f5a1
NN
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
9917bfd_cv_decl_needed_getenv=yes
252b5132 9918fi
5464f5a1 9919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9920fi
9921
5464f5a1
NN
9922echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9923echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9924if test $bfd_cv_decl_needed_getenv = yes; then
5464f5a1
NN
9925
9926cat >>confdefs.h <<\_ACEOF
252b5132 9927#define NEED_DECLARATION_GETENV 1
5464f5a1 9928_ACEOF
252b5132
RH
9929
9930fi
9931
6be7c12c 9932
252b5132
RH
9933# If we are configured native, pick a core file support file.
9934COREFILE=
9935COREFLAG=
9936TRAD_HEADER=
9937if test "${target}" = "${host}"; then
9938 case "${host}" in
13dfd2d0 9939 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
46d59bfa
DB
9940 COREFILE=''
9941 ;;
252b5132
RH
9942 alpha*-*-linux-gnu*)
9943 COREFILE=trad-core.lo
9944 TRAD_HEADER='"hosts/alphalinux.h"'
9945 ;;
690cc98b
NC
9946 alpha*-*-netbsd* | alpha*-*-openbsd*)
9947 COREFILE=netbsd-core.lo
9948 ;;
252b5132 9949 alpha*-*-*) COREFILE=osf-core.lo ;;
13dfd2d0
NC
9950 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9951 COREFILE='' ;;
61d0bc33 9952 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
252b5132
RH
9953 arm-*-riscix) COREFILE=trad-core.lo ;;
9954 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9955 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9956 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9957 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9958 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
eef0f186
MK
9959 hppa*-*-netbsd* | hppa*-*-openbsd*)
9960 COREFILE=netbsd-core.lo
9961 ;;
9962
dc810e39 9963 i370-*-*)
5b93d8bb
AM
9964 COREFILE=trad-core.lo
9965 TRAD_HEADER='"hosts/i370linux.h"'
9966 ;;
9967
80c7c40a 9968 i[3-7]86-sequent-bsd*)
5b93d8bb 9969 COREFILE=trad-core.lo
252b5132
RH
9970 TRAD_HEADER='"hosts/symmetry.h"'
9971 ;;
80c7c40a
NC
9972 i[3-7]86-sequent-sysv4*) ;;
9973 i[3-7]86-sequent-sysv*)
252b5132
RH
9974 COREFILE=trad-core.lo
9975 TRAD_HEADER='"hosts/symmetry.h"'
9976 ;;
80c7c40a 9977 i[3-7]86-*-bsdi)
7e3b3466
NC
9978 COREFILE=
9979 ;;
d2bef492 9980 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
9981 COREFILE=trad-core.lo
9982 TRAD_HEADER='"hosts/i386bsd.h"'
9983 ;;
13dfd2d0 9984 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
d4af9775
DB
9985 COREFILE=''
9986 TRAD_HEADER='"hosts/i386bsd.h"'
9987 ;;
4615568e 9988 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
252b5132
RH
9989 COREFILE=netbsd-core.lo
9990 ;;
80c7c40a 9991 i[3-7]86-esix-sysv3*)
252b5132
RH
9992 COREFILE=trad-core.lo
9993 TRAD_HEADER='"hosts/esix.h"'
9994 ;;
80c7c40a 9995 i[3-7]86-*-sco3.2v5*)
252b5132
RH
9996 COREFILE=sco5-core.lo
9997 ;;
80c7c40a 9998 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
252b5132
RH
9999 COREFILE=trad-core.lo
10000 TRAD_HEADER='"hosts/i386sco.h"'
10001 ;;
80c7c40a 10002 i[3-7]86-*-mach3*)
252b5132
RH
10003 COREFILE=trad-core.lo
10004 TRAD_HEADER='"hosts/i386mach3.h"'
10005 ;;
80c7c40a 10006 i[3-7]86-*-linux-gnu*)
252b5132
RH
10007 COREFILE=trad-core.lo
10008 TRAD_HEADER='"hosts/i386linux.h"'
10009 ;;
80c7c40a
NC
10010 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
10011 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
252b5132
RH
10012 i860-*-mach3* | i860-*-osf1*)
10013 COREFILE=trad-core.lo
10014 TRAD_HEADER='"hosts/i860mach3.h"'
10015 ;;
252b5132
RH
10016 mips-*-netbsd* | mips*-*-openbsd*)
10017 COREFILE=netbsd-core.lo
10018 ;;
10019 mips-dec-*)
10020 COREFILE=trad-core.lo
10021 TRAD_HEADER='"hosts/decstation.h"'
10022 ;;
10023 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
10024 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
10025 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
252b5132
RH
10026 mips-*-sysv4*) ;;
10027 mips-*-sysv* | mips-*-riscos*)
10028 COREFILE=trad-core.lo
10029 TRAD_HEADER='"hosts/riscos.h"'
10030 ;;
10031 mips-sony-bsd*)
10032 COREFILE=trad-core.lo
10033 TRAD_HEADER='"hosts/news-mips.h"'
10034 ;;
10035 m68*-bull*-sysv*)
10036 COREFILE=trad-core.lo
10037 TRAD_HEADER='"hosts/dpx2.h"'
10038 ;;
10039 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
10040 m68*-hp-bsd*)
10041 COREFILE=trad-core.lo
10042 TRAD_HEADER='"hosts/hp300bsd.h"'
10043 ;;
10044 m68*-*-linux-gnu*)
10045 COREFILE=trad-core.lo
10046 TRAD_HEADER='"hosts/m68klinux.h"'
10047 ;;
10048 m68*-motorola-sysv*)
10049 COREFILE=trad-core.lo
10050 TRAD_HEADER='"hosts/delta68.h"'
10051 ;;
10052 m68*-sony-*)
10053 COREFILE=trad-core.lo
10054 TRAD_HEADER='"hosts/news.h"'
10055 ;;
10056 m68*-*-netbsd* | m68*-*-openbsd*)
10057 COREFILE=netbsd-core.lo
10058 ;;
10059 m68*-apple-aux*)
10060 COREFILE=trad-core.lo
10061 TRAD_HEADER='"hosts/m68kaux.h"'
10062 ;;
eb1e0e80
NC
10063 m88*-*-sysv4*)
10064 ;;
10065 m88*-motorola-sysv*)
10066 COREFILE=ptrace-core.lo
10067 ;;
252b5132
RH
10068 m88*-*-mach3*)
10069 COREFILE=trad-core.lo
10070 TRAD_HEADER='"hosts/m88kmach3.h"'
10071 ;;
c6f8758f
NC
10072 m88*-*-openbsd*)
10073 COREFILE=netbsd-core.lo
10074 ;;
252b5132
RH
10075 ns32k-pc532-mach)
10076 COREFILE=trad-core.lo
10077 TRAD_HEADER='"hosts/pc532mach.h"'
10078 ;;
10079 ns32k-*-netbsd* | ns32k-*-openbsd*)
10080 COREFILE=netbsd-core.lo
10081 ;;
eb1e0e80
NC
10082 rs6000-*-lynx*)
10083 COREFILE=lynx-core.lo
10084 ;;
10085 rs6000-*-aix5.* | powerpc-*-aix5.*)
10086 COREFILE=rs6000-core.lo
10087 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10088 ;;
83954261 10089 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
653f71ca
KB
10090 COREFILE=rs6000-core.lo
10091 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
83954261
AM
10092 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10093 # have c_impl as a member of struct core_dumpx
5464f5a1
NN
10094 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10095echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10096 cat >conftest.$ac_ext <<_ACEOF
10097/* confdefs.h. */
10098_ACEOF
10099cat confdefs.h >>conftest.$ac_ext
10100cat >>conftest.$ac_ext <<_ACEOF
10101/* end confdefs.h. */
83954261 10102#include <core.h>
5464f5a1
NN
10103int
10104main ()
10105{
83954261 10106struct core_dumpx c; c.c_impl = 0;
5464f5a1
NN
10107 ;
10108 return 0;
10109}
10110_ACEOF
10111rm -f conftest.$ac_objext
10112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10113 (eval $ac_compile) 2>conftest.er1
10114 ac_status=$?
10115 grep -v '^ *+' conftest.er1 >conftest.err
10116 rm -f conftest.er1
10117 cat conftest.err >&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
8fb84ecc
AC
10120 { ac_try='test -z "$ac_c_werror_flag"
10121 || test ! -s conftest.err'
5464f5a1
NN
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; } &&
10127 { ac_try='test -s conftest.$ac_objext'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133
10134cat >>confdefs.h <<\_ACEOF
83954261 10135#define HAVE_ST_C_IMPL 1
5464f5a1 10136_ACEOF
83954261 10137
5464f5a1
NN
10138 echo "$as_me:$LINENO: result: yes" >&5
10139echo "${ECHO_T}yes" >&6
83954261 10140else
5464f5a1
NN
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144echo "$as_me:$LINENO: result: no" >&5
10145echo "${ECHO_T}no" >&6
83954261 10146fi
5464f5a1 10147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
653f71ca 10148 ;;
252b5132
RH
10149 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10150 rs6000-*-*) COREFILE=rs6000-core.lo ;;
252b5132
RH
10151 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10152 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10153 powerpc-*-beos*) ;;
13dfd2d0
NC
10154 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10155 COREFILE='' ;;
252b5132 10156 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
d4af9775 10157 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
dc810e39 10158 s390*-*-*) COREFILE=trad-core.lo ;;
8d05742f 10159 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
a9bf1154 10160 sparc-*-netbsd* | sparc*-*-openbsd*)
252b5132
RH
10161 COREFILE=netbsd-core.lo
10162 ;;
10163 tahoe-*-*)
10164 COREFILE=trad-core.lo
10165 TRAD_HEADER='"hosts/tahoe.h"'
10166 ;;
de6e5e1a
NC
10167 vax-*-netbsd* | vax-*-openbsd*)
10168 COREFILE=netbsd-core.lo
10169 ;;
252b5132
RH
10170 vax-*-ultrix2*)
10171 COREFILE=trad-core.lo
10172 TRAD_HEADER='"hosts/vaxult2.h"'
10173 ;;
10174 vax-*-ultrix*)
10175 COREFILE=trad-core.lo
10176 TRAD_HEADER='"hosts/vaxult2.h"'
10177 ;;
f8fc3443
NC
10178 vax-*-linux-gnu*)
10179 COREFILE=trad-core.lo
10180 TRAD_HEADER='"hosts/vaxlinux.h"'
10181 ;;
252b5132
RH
10182 vax-*-*)
10183 COREFILE=trad-core.lo
10184 TRAD_HEADER='"hosts/vaxbsd.h"'
10185 ;;
85cfd8d3
MK
10186 x86_64-*-netbsd* | x86_64-*-openbsd*)
10187 COREFILE=netbsd-core.lo
10188 ;;
252b5132
RH
10189 esac
10190
10191 case "$COREFILE" in
10192 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10193 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10194 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10195 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10196 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10197 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10198 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10199 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10200 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10201 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10202 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10203 esac
10204
10205 # ELF corefile support has several flavors, but all of
10206 # them use something called <sys/procfs.h>
5464f5a1
NN
10207
10208for ac_header in sys/procfs.h
252b5132 10209do
5464f5a1
NN
10210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10211if eval "test \"\${$as_ac_Header+set}\" = set"; then
10212 echo "$as_me:$LINENO: checking for $ac_header" >&5
10213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10214if eval "test \"\${$as_ac_Header+set}\" = set"; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216fi
10217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10219else
10220 # Is the header compilable?
10221echo "$as_me:$LINENO: checking $ac_header usability" >&5
10222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10223cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
10229$ac_includes_default
10230#include <$ac_header>
10231_ACEOF
10232rm -f conftest.$ac_objext
10233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10234 (eval $ac_compile) 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
8fb84ecc
AC
10241 { ac_try='test -z "$ac_c_werror_flag"
10242 || test ! -s conftest.err'
5464f5a1
NN
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; } &&
10248 { ac_try='test -s conftest.$ac_objext'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; }; then
10254 ac_header_compiler=yes
10255else
10256 echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
10259ac_header_compiler=no
10260fi
10261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263echo "${ECHO_T}$ac_header_compiler" >&6
10264
10265# Is the header present?
10266echo "$as_me:$LINENO: checking $ac_header presence" >&5
10267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10268cat >conftest.$ac_ext <<_ACEOF
10269/* confdefs.h. */
10270_ACEOF
10271cat confdefs.h >>conftest.$ac_ext
10272cat >>conftest.$ac_ext <<_ACEOF
10273/* end confdefs.h. */
10274#include <$ac_header>
10275_ACEOF
10276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10278 ac_status=$?
10279 grep -v '^ *+' conftest.er1 >conftest.err
10280 rm -f conftest.er1
10281 cat conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } >/dev/null; then
10284 if test -s conftest.err; then
10285 ac_cpp_err=$ac_c_preproc_warn_flag
10286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10287 else
10288 ac_cpp_err=
10289 fi
252b5132 10290else
5464f5a1 10291 ac_cpp_err=yes
252b5132 10292fi
5464f5a1
NN
10293if test -z "$ac_cpp_err"; then
10294 ac_header_preproc=yes
10295else
10296 echo "$as_me: failed program was:" >&5
10297sed 's/^/| /' conftest.$ac_ext >&5
10298
10299 ac_header_preproc=no
252b5132 10300fi
5464f5a1
NN
10301rm -f conftest.err conftest.$ac_ext
10302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10303echo "${ECHO_T}$ac_header_preproc" >&6
10304
10305# So? What about this header?
10306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10307 yes:no: )
10308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10312 ac_header_preproc=yes
10313 ;;
10314 no:yes:* )
10315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10327 (
10328 cat <<\_ASBOX
10329## ------------------------------------------ ##
10330## Report this to the AC_PACKAGE_NAME lists. ##
10331## ------------------------------------------ ##
10332_ASBOX
10333 ) |
10334 sed "s/^/$as_me: WARNING: /" >&2
10335 ;;
10336esac
10337echo "$as_me:$LINENO: checking for $ac_header" >&5
10338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10339if eval "test \"\${$as_ac_Header+set}\" = set"; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 10341else
5464f5a1
NN
10342 eval "$as_ac_Header=\$ac_header_preproc"
10343fi
10344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10346
252b5132 10347fi
5464f5a1
NN
10348if test `eval echo '${'$as_ac_Header'}'` = yes; then
10349 cat >>confdefs.h <<_ACEOF
10350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10351_ACEOF
10352
10353fi
10354
252b5132
RH
10355done
10356
10357 if test "$ac_cv_header_sys_procfs_h" = yes; then
5464f5a1
NN
10358 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10359echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10360 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363 cat >conftest.$ac_ext <<_ACEOF
10364/* confdefs.h. */
10365_ACEOF
10366cat confdefs.h >>conftest.$ac_ext
10367cat >>conftest.$ac_ext <<_ACEOF
10368/* end confdefs.h. */
7ee38065
MS
10369
10370#define _SYSCALL32
252b5132 10371#include <sys/procfs.h>
5464f5a1
NN
10372int
10373main ()
10374{
252b5132 10375prstatus_t avar
5464f5a1
NN
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext
10381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382 (eval $ac_compile) 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
8fb84ecc
AC
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
5464f5a1
NN
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest.$ac_objext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
252b5132
RH
10402 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10403else
5464f5a1
NN
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
10407bfd_cv_have_sys_procfs_type_prstatus_t=no
10408
252b5132 10409fi
5464f5a1 10410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10411fi
10412
10413 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5464f5a1
NN
10414
10415cat >>confdefs.h <<\_ACEOF
252b5132 10416#define HAVE_PRSTATUS_T 1
5464f5a1 10417_ACEOF
252b5132
RH
10418
10419 fi
5464f5a1
NN
10420 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10421echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
252b5132 10422
5464f5a1
NN
10423 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10424echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10425 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10427else
5464f5a1
NN
10428 cat >conftest.$ac_ext <<_ACEOF
10429/* confdefs.h. */
10430_ACEOF
10431cat confdefs.h >>conftest.$ac_ext
10432cat >>conftest.$ac_ext <<_ACEOF
10433/* end confdefs.h. */
7ee38065
MS
10434
10435#define _SYSCALL32
10436#include <sys/procfs.h>
5464f5a1
NN
10437int
10438main ()
10439{
7ee38065 10440prstatus32_t avar
5464f5a1
NN
10441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
8fb84ecc
AC
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
5464f5a1
NN
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest.$ac_objext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
7ee38065
MS
10467 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10468else
5464f5a1
NN
10469 echo "$as_me: failed program was:" >&5
10470sed 's/^/| /' conftest.$ac_ext >&5
10471
10472bfd_cv_have_sys_procfs_type_prstatus32_t=no
10473
7ee38065 10474fi
5464f5a1 10475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10476fi
10477
10478 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5464f5a1
NN
10479
10480cat >>confdefs.h <<\_ACEOF
7ee38065 10481#define HAVE_PRSTATUS32_T 1
5464f5a1 10482_ACEOF
7ee38065
MS
10483
10484 fi
5464f5a1
NN
10485 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10486echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7ee38065 10487
5464f5a1
NN
10488 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10489echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10490 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10492else
5464f5a1
NN
10493 cat >conftest.$ac_ext <<_ACEOF
10494/* confdefs.h. */
10495_ACEOF
10496cat confdefs.h >>conftest.$ac_ext
10497cat >>conftest.$ac_ext <<_ACEOF
10498/* end confdefs.h. */
7ee38065
MS
10499
10500#define _SYSCALL32
252b5132 10501#include <sys/procfs.h>
5464f5a1
NN
10502int
10503main ()
10504{
252b5132 10505prstatus_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10506 ;
10507 return 0;
10508}
10509_ACEOF
10510rm -f conftest.$ac_objext
10511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10512 (eval $ac_compile) 2>conftest.er1
10513 ac_status=$?
10514 grep -v '^ *+' conftest.er1 >conftest.err
10515 rm -f conftest.er1
10516 cat conftest.err >&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
8fb84ecc
AC
10519 { ac_try='test -z "$ac_c_werror_flag"
10520 || test ! -s conftest.err'
5464f5a1
NN
10521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522 (eval $ac_try) 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest.$ac_objext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
252b5132
RH
10532 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10533else
5464f5a1
NN
10534 echo "$as_me: failed program was:" >&5
10535sed 's/^/| /' conftest.$ac_ext >&5
10536
10537bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10538
252b5132 10539fi
5464f5a1 10540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10541fi
10542
10543 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5464f5a1
NN
10544
10545cat >>confdefs.h <<\_ACEOF
252b5132 10546#define HAVE_PRSTATUS_T_PR_WHO 1
5464f5a1 10547_ACEOF
252b5132
RH
10548
10549 fi
5464f5a1
NN
10550 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10551echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
252b5132 10552
5464f5a1
NN
10553 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10554echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10555 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10557else
5464f5a1
NN
10558 cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h. */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h. */
7ee38065
MS
10564
10565#define _SYSCALL32
10566#include <sys/procfs.h>
5464f5a1
NN
10567int
10568main ()
10569{
7ee38065 10570prstatus32_t avar; void* aref = (void*) &avar.pr_who
5464f5a1
NN
10571 ;
10572 return 0;
10573}
10574_ACEOF
10575rm -f conftest.$ac_objext
10576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
8fb84ecc
AC
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
5464f5a1
NN
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
7ee38065
MS
10597 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10598else
5464f5a1
NN
10599 echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10603
7ee38065 10604fi
5464f5a1 10605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10606fi
10607
10608 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464f5a1
NN
10609
10610cat >>confdefs.h <<\_ACEOF
7ee38065 10611#define HAVE_PRSTATUS32_T_PR_WHO 1
5464f5a1 10612_ACEOF
7ee38065
MS
10613
10614 fi
5464f5a1
NN
10615 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10616echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7ee38065 10617
5464f5a1
NN
10618 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10619echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10620 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10622else
5464f5a1
NN
10623 cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h. */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h. */
7ee38065
MS
10629
10630#define _SYSCALL32
252b5132 10631#include <sys/procfs.h>
5464f5a1
NN
10632int
10633main ()
10634{
252b5132 10635pstatus_t avar
5464f5a1
NN
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640rm -f conftest.$ac_objext
10641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10642 (eval $ac_compile) 2>conftest.er1
10643 ac_status=$?
10644 grep -v '^ *+' conftest.er1 >conftest.err
10645 rm -f conftest.er1
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
8fb84ecc
AC
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
5464f5a1
NN
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest.$ac_objext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
252b5132
RH
10662 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10663else
5464f5a1
NN
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667bfd_cv_have_sys_procfs_type_pstatus_t=no
10668
252b5132 10669fi
5464f5a1 10670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10671fi
10672
10673 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5464f5a1
NN
10674
10675cat >>confdefs.h <<\_ACEOF
252b5132 10676#define HAVE_PSTATUS_T 1
5464f5a1 10677_ACEOF
252b5132
RH
10678
10679 fi
5464f5a1
NN
10680 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10681echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
252b5132 10682
5464f5a1
NN
10683 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10684echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10685 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 10687else
5464f5a1
NN
10688 cat >conftest.$ac_ext <<_ACEOF
10689/* confdefs.h. */
10690_ACEOF
10691cat confdefs.h >>conftest.$ac_ext
10692cat >>conftest.$ac_ext <<_ACEOF
10693/* end confdefs.h. */
f572a39d
AM
10694
10695#define _SYSCALL32
10696#include <sys/procfs.h>
5464f5a1
NN
10697int
10698main ()
10699{
f572a39d 10700pxstatus_t avar
5464f5a1
NN
10701 ;
10702 return 0;
10703}
10704_ACEOF
10705rm -f conftest.$ac_objext
10706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10707 (eval $ac_compile) 2>conftest.er1
10708 ac_status=$?
10709 grep -v '^ *+' conftest.er1 >conftest.err
10710 rm -f conftest.er1
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
8fb84ecc
AC
10714 { ac_try='test -z "$ac_c_werror_flag"
10715 || test ! -s conftest.err'
5464f5a1
NN
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10718 ac_status=$?
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; } &&
10721 { ac_try='test -s conftest.$ac_objext'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10724 ac_status=$?
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; }; then
f572a39d
AM
10727 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10728else
5464f5a1
NN
10729 echo "$as_me: failed program was:" >&5
10730sed 's/^/| /' conftest.$ac_ext >&5
10731
10732bfd_cv_have_sys_procfs_type_pxstatus_t=no
10733
f572a39d 10734fi
5464f5a1 10735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
10736fi
10737
10738 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5464f5a1
NN
10739
10740cat >>confdefs.h <<\_ACEOF
f572a39d 10741#define HAVE_PXSTATUS_T 1
5464f5a1 10742_ACEOF
f572a39d
AM
10743
10744 fi
5464f5a1
NN
10745 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10746echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
f572a39d 10747
5464f5a1
NN
10748 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10749echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10750 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10752else
5464f5a1
NN
10753 cat >conftest.$ac_ext <<_ACEOF
10754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
7ee38065
MS
10759
10760#define _SYSCALL32
10761#include <sys/procfs.h>
5464f5a1
NN
10762int
10763main ()
10764{
7ee38065 10765pstatus32_t avar
5464f5a1
NN
10766 ;
10767 return 0;
10768}
10769_ACEOF
10770rm -f conftest.$ac_objext
10771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772 (eval $ac_compile) 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
8fb84ecc
AC
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
5464f5a1
NN
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
7ee38065
MS
10792 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10793else
5464f5a1
NN
10794 echo "$as_me: failed program was:" >&5
10795sed 's/^/| /' conftest.$ac_ext >&5
10796
10797bfd_cv_have_sys_procfs_type_pstatus32_t=no
10798
7ee38065 10799fi
5464f5a1 10800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10801fi
10802
10803 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5464f5a1
NN
10804
10805cat >>confdefs.h <<\_ACEOF
7ee38065 10806#define HAVE_PSTATUS32_T 1
5464f5a1 10807_ACEOF
7ee38065
MS
10808
10809 fi
5464f5a1
NN
10810 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10811echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7ee38065 10812
5464f5a1
NN
10813 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10814echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10815 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10817else
5464f5a1
NN
10818 cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
7ee38065
MS
10824
10825#define _SYSCALL32
252b5132 10826#include <sys/procfs.h>
5464f5a1
NN
10827int
10828main ()
10829{
252b5132 10830prpsinfo_t avar
5464f5a1
NN
10831 ;
10832 return 0;
10833}
10834_ACEOF
10835rm -f conftest.$ac_objext
10836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10837 (eval $ac_compile) 2>conftest.er1
10838 ac_status=$?
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
8fb84ecc
AC
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
5464f5a1
NN
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest.$ac_objext'
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
252b5132
RH
10857 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10858else
5464f5a1
NN
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10863
252b5132 10864fi
5464f5a1 10865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10866fi
10867
10868 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5464f5a1
NN
10869
10870cat >>confdefs.h <<\_ACEOF
252b5132 10871#define HAVE_PRPSINFO_T 1
5464f5a1 10872_ACEOF
252b5132
RH
10873
10874 fi
5464f5a1
NN
10875 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10876echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
252b5132 10877
5464f5a1
NN
10878 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10879echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10880 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 10882else
5464f5a1
NN
10883 cat >conftest.$ac_ext <<_ACEOF
10884/* confdefs.h. */
10885_ACEOF
10886cat confdefs.h >>conftest.$ac_ext
10887cat >>conftest.$ac_ext <<_ACEOF
10888/* end confdefs.h. */
7ee38065
MS
10889
10890#define _SYSCALL32
10891#include <sys/procfs.h>
5464f5a1
NN
10892int
10893main ()
10894{
7ee38065 10895prpsinfo32_t avar
5464f5a1
NN
10896 ;
10897 return 0;
10898}
10899_ACEOF
10900rm -f conftest.$ac_objext
10901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902 (eval $ac_compile) 2>conftest.er1
10903 ac_status=$?
10904 grep -v '^ *+' conftest.er1 >conftest.err
10905 rm -f conftest.er1
10906 cat conftest.err >&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
8fb84ecc
AC
10909 { ac_try='test -z "$ac_c_werror_flag"
10910 || test ! -s conftest.err'
5464f5a1
NN
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10913 ac_status=$?
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; } &&
10916 { ac_try='test -s conftest.$ac_objext'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
7ee38065
MS
10922 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10923else
5464f5a1
NN
10924 echo "$as_me: failed program was:" >&5
10925sed 's/^/| /' conftest.$ac_ext >&5
10926
10927bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10928
7ee38065 10929fi
5464f5a1 10930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
10931fi
10932
10933 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5464f5a1
NN
10934
10935cat >>confdefs.h <<\_ACEOF
7ee38065 10936#define HAVE_PRPSINFO32_T 1
5464f5a1 10937_ACEOF
7ee38065
MS
10938
10939 fi
5464f5a1
NN
10940 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10941echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7ee38065 10942
5464f5a1
NN
10943 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10944echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10945 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10947else
5464f5a1
NN
10948 cat >conftest.$ac_ext <<_ACEOF
10949/* confdefs.h. */
10950_ACEOF
10951cat confdefs.h >>conftest.$ac_ext
10952cat >>conftest.$ac_ext <<_ACEOF
10953/* end confdefs.h. */
7ee38065
MS
10954
10955#define _SYSCALL32
252b5132 10956#include <sys/procfs.h>
5464f5a1
NN
10957int
10958main ()
10959{
252b5132 10960psinfo_t avar
5464f5a1
NN
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext
10966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10967 (eval $ac_compile) 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
8fb84ecc
AC
10974 { ac_try='test -z "$ac_c_werror_flag"
10975 || test ! -s conftest.err'
5464f5a1
NN
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest.$ac_objext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10984 ac_status=$?
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
252b5132
RH
10987 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10988else
5464f5a1
NN
10989 echo "$as_me: failed program was:" >&5
10990sed 's/^/| /' conftest.$ac_ext >&5
10991
10992bfd_cv_have_sys_procfs_type_psinfo_t=no
10993
252b5132 10994fi
5464f5a1 10995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
10996fi
10997
10998 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5464f5a1
NN
10999
11000cat >>confdefs.h <<\_ACEOF
252b5132 11001#define HAVE_PSINFO_T 1
5464f5a1 11002_ACEOF
252b5132
RH
11003
11004 fi
5464f5a1
NN
11005 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
11006echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
252b5132 11007
5464f5a1
NN
11008 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
11009echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
11010 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
7ee38065 11012else
5464f5a1
NN
11013 cat >conftest.$ac_ext <<_ACEOF
11014/* confdefs.h. */
11015_ACEOF
11016cat confdefs.h >>conftest.$ac_ext
11017cat >>conftest.$ac_ext <<_ACEOF
11018/* end confdefs.h. */
7ee38065
MS
11019
11020#define _SYSCALL32
11021#include <sys/procfs.h>
5464f5a1
NN
11022int
11023main ()
11024{
7ee38065 11025psinfo32_t avar
5464f5a1
NN
11026 ;
11027 return 0;
11028}
11029_ACEOF
11030rm -f conftest.$ac_objext
11031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032 (eval $ac_compile) 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
8fb84ecc
AC
11039 { ac_try='test -z "$ac_c_werror_flag"
11040 || test ! -s conftest.err'
5464f5a1
NN
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest.$ac_objext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
7ee38065
MS
11052 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
11053else
5464f5a1
NN
11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
11057bfd_cv_have_sys_procfs_type_psinfo32_t=no
11058
7ee38065 11059fi
5464f5a1 11060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7ee38065
MS
11061fi
11062
11063 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5464f5a1
NN
11064
11065cat >>confdefs.h <<\_ACEOF
7ee38065 11066#define HAVE_PSINFO32_T 1
5464f5a1 11067_ACEOF
7ee38065
MS
11068
11069 fi
5464f5a1
NN
11070 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
11071echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7ee38065 11072
5464f5a1
NN
11073 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
11074echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
11075 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11077else
5464f5a1
NN
11078 cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
7ee38065
MS
11084
11085#define _SYSCALL32
252b5132 11086#include <sys/procfs.h>
5464f5a1
NN
11087int
11088main ()
11089{
252b5132 11090lwpstatus_t avar
5464f5a1
NN
11091 ;
11092 return 0;
11093}
11094_ACEOF
11095rm -f conftest.$ac_objext
11096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>conftest.er1
11098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
8fb84ecc
AC
11104 { ac_try='test -z "$ac_c_werror_flag"
11105 || test ! -s conftest.err'
5464f5a1
NN
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; } &&
11111 { ac_try='test -s conftest.$ac_objext'
11112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11113 (eval $ac_try) 2>&5
11114 ac_status=$?
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); }; }; then
252b5132
RH
11117 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11118else
5464f5a1
NN
11119 echo "$as_me: failed program was:" >&5
11120sed 's/^/| /' conftest.$ac_ext >&5
11121
11122bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11123
252b5132 11124fi
5464f5a1 11125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11126fi
11127
11128 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5464f5a1
NN
11129
11130cat >>confdefs.h <<\_ACEOF
252b5132 11131#define HAVE_LWPSTATUS_T 1
5464f5a1 11132_ACEOF
252b5132
RH
11133
11134 fi
5464f5a1
NN
11135 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11136echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
252b5132 11137
5464f5a1
NN
11138 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11139echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11140 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
f572a39d 11142else
5464f5a1
NN
11143 cat >conftest.$ac_ext <<_ACEOF
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
f572a39d
AM
11149
11150#define _SYSCALL32
11151#include <sys/procfs.h>
5464f5a1
NN
11152int
11153main ()
11154{
f572a39d 11155lwpxstatus_t avar
5464f5a1
NN
11156 ;
11157 return 0;
11158}
11159_ACEOF
11160rm -f conftest.$ac_objext
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162 (eval $ac_compile) 2>conftest.er1
11163 ac_status=$?
11164 grep -v '^ *+' conftest.er1 >conftest.err
11165 rm -f conftest.er1
11166 cat conftest.err >&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); } &&
8fb84ecc
AC
11169 { ac_try='test -z "$ac_c_werror_flag"
11170 || test ! -s conftest.err'
5464f5a1
NN
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; } &&
11176 { ac_try='test -s conftest.$ac_objext'
11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11178 (eval $ac_try) 2>&5
11179 ac_status=$?
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); }; }; then
f572a39d
AM
11182 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11183else
5464f5a1
NN
11184 echo "$as_me: failed program was:" >&5
11185sed 's/^/| /' conftest.$ac_ext >&5
11186
11187bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11188
f572a39d 11189fi
5464f5a1 11190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f572a39d
AM
11191fi
11192
11193 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5464f5a1
NN
11194
11195cat >>confdefs.h <<\_ACEOF
f572a39d 11196#define HAVE_LWPXSTATUS_T 1
5464f5a1 11197_ACEOF
f572a39d
AM
11198
11199 fi
5464f5a1
NN
11200 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11201echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
f572a39d 11202
5464f5a1
NN
11203 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11204echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11205 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11207else
5464f5a1
NN
11208 cat >conftest.$ac_ext <<_ACEOF
11209/* confdefs.h. */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h. */
7ee38065
MS
11214
11215#define _SYSCALL32
252b5132 11216#include <sys/procfs.h>
5464f5a1
NN
11217int
11218main ()
11219{
252b5132 11220lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5464f5a1
NN
11221 ;
11222 return 0;
11223}
11224_ACEOF
11225rm -f conftest.$ac_objext
11226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
8fb84ecc
AC
11234 { ac_try='test -z "$ac_c_werror_flag"
11235 || test ! -s conftest.err'
5464f5a1
NN
11236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11237 (eval $ac_try) 2>&5
11238 ac_status=$?
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; } &&
11241 { ac_try='test -s conftest.$ac_objext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
252b5132
RH
11247 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11248else
5464f5a1
NN
11249 echo "$as_me: failed program was:" >&5
11250sed 's/^/| /' conftest.$ac_ext >&5
11251
11252bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11253
252b5132 11254fi
5464f5a1 11255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11256fi
11257
11258 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5464f5a1
NN
11259
11260cat >>confdefs.h <<\_ACEOF
252b5132 11261#define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5464f5a1 11262_ACEOF
252b5132
RH
11263
11264 fi
5464f5a1
NN
11265 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11266echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
252b5132 11267
5464f5a1
NN
11268 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11269echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11270 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 11272else
5464f5a1
NN
11273 cat >conftest.$ac_ext <<_ACEOF
11274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
7ee38065
MS
11279
11280#define _SYSCALL32
252b5132 11281#include <sys/procfs.h>
5464f5a1
NN
11282int
11283main ()
11284{
252b5132 11285lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5464f5a1
NN
11286 ;
11287 return 0;
11288}
11289_ACEOF
11290rm -f conftest.$ac_objext
11291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11292 (eval $ac_compile) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
8fb84ecc
AC
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
5464f5a1
NN
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest.$ac_objext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
252b5132
RH
11312 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11313else
5464f5a1
NN
11314 echo "$as_me: failed program was:" >&5
11315sed 's/^/| /' conftest.$ac_ext >&5
11316
11317bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11318
252b5132 11319fi
5464f5a1 11320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11321fi
11322
11323 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5464f5a1
NN
11324
11325cat >>confdefs.h <<\_ACEOF
252b5132 11326#define HAVE_LWPSTATUS_T_PR_REG 1
5464f5a1 11327_ACEOF
252b5132
RH
11328
11329 fi
5464f5a1
NN
11330 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11331echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
252b5132 11332
5464f5a1
NN
11333 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11334echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11335 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11336 echo $ECHO_N "(cached) $ECHO_C" >&6
e3c976c4 11337else
5464f5a1
NN
11338 cat >conftest.$ac_ext <<_ACEOF
11339/* confdefs.h. */
11340_ACEOF
11341cat confdefs.h >>conftest.$ac_ext
11342cat >>conftest.$ac_ext <<_ACEOF
11343/* end confdefs.h. */
7ee38065
MS
11344
11345#define _SYSCALL32
e3c976c4 11346#include <sys/procfs.h>
5464f5a1
NN
11347int
11348main ()
11349{
e3c976c4 11350win32_pstatus_t avar
5464f5a1
NN
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355rm -f conftest.$ac_objext
11356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11357 (eval $ac_compile) 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } &&
8fb84ecc
AC
11364 { ac_try='test -z "$ac_c_werror_flag"
11365 || test ! -s conftest.err'
5464f5a1
NN
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; } &&
11371 { ac_try='test -s conftest.$ac_objext'
11372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11373 (eval $ac_try) 2>&5
11374 ac_status=$?
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); }; }; then
e3c976c4
ILT
11377 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11378else
5464f5a1
NN
11379 echo "$as_me: failed program was:" >&5
11380sed 's/^/| /' conftest.$ac_ext >&5
11381
11382bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11383
e3c976c4 11384fi
5464f5a1 11385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
11386fi
11387
e3c976c4 11388 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5464f5a1
NN
11389
11390cat >>confdefs.h <<\_ACEOF
e3c976c4 11391#define HAVE_WIN32_PSTATUS_T 1
5464f5a1 11392_ACEOF
16e9c715
NC
11393
11394 fi
5464f5a1
NN
11395 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11396echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
e3c976c4
ILT
11397
11398 fi
11399fi
16e9c715 11400
b3baf5d0 11401
6be7c12c 11402if test -n "$TRAD_HEADER"; then
5464f5a1
NN
11403
11404cat >>confdefs.h <<_ACEOF
252b5132 11405#define TRAD_HEADER $TRAD_HEADER
5464f5a1 11406_ACEOF
252b5132 11407
3f9b03b5 11408fi
252b5132
RH
11409
11410# Horrible hacks to build DLLs on Windows.
11411WIN32LDFLAGS=
11412WIN32LIBADD=
11413case "${host}" in
11414*-*-cygwin*)
11415 if test "$enable_shared" = "yes"; then
11416 WIN32LDFLAGS="-no-undefined"
11417 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11418 fi
11419 ;;
78be1d6e 11420*-*-linux*)
39691762
L
11421 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11422 # libiberty.a.
ca51bfff
L
11423 case "${host}" in
11424 mips*-*-linux*)
11425 # Linux/MIPS uses PIC by default.
11426 if test "$enable_shared" = "yes"; then
11427 WIN32LIBADD="-L../libiberty -liberty"
11428 fi
11429 ;;
11430 *)
66e25bab 11431 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 11432 if test -n "$x"; then
ca51bfff
L
11433 WIN32LIBADD="-L../libiberty/pic -liberty"
11434 fi
11435 ;;
11436 esac
39691762 11437 ;;
252b5132
RH
11438esac
11439
6be7c12c
AO
11440
11441
252b5132
RH
11442# target stuff:
11443
11444# Canonicalize the secondary target names.
11445if test -n "$enable_targets" ; then
11446 for targ in `echo $enable_targets | sed 's/,/ /g'`
11447 do
6d83c84b 11448 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
11449 if test -n "$result" ; then
11450 canon_targets="$canon_targets $result"
11451 else
11452 # Allow targets that config.sub doesn't recognize, like "all".
11453 canon_targets="$canon_targets $targ"
11454 fi
11455 done
11456fi
11457
11458all_targets=false
11459defvec=
11460selvecs=
08f74004 11461assocvecs=
252b5132
RH
11462selarchs=
11463TDEFINES=
11464for targ in $target $canon_targets
11465do
11466 if test "x$targ" = "xall"; then
11467 all_targets=true
08f74004 11468 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
252b5132
RH
11469 else
11470 . $srcdir/config.bfd
11471 if test "x$targ" = "x$target"; then
11472 defvec=$targ_defvec
11473 fi
11474 selvecs="$selvecs $targ_defvec $targ_selvecs"
11475 selarchs="$selarchs $targ_archs"
11476 TDEFINES="$TDEFINES $targ_cflags"
11477 fi
11478done
11479
6be7c12c 11480
252b5132
RH
11481# This processing still needs to be done if we're to decide properly whether
11482# 64-bit support needs to be compiled in. Currently, it will be included if
11483# the default or any other explicitly requested target requires it; it
11484# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 11485# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
11486# used.
11487
11488# uniq the default and selected vectors in all the configured targets.
11489f=""
11490for i in $selvecs ; do
11491 case " $f " in
11492 *" $i "*) ;;
11493 *) f="$f $i" ;;
11494 esac
11495done
11496selvecs="$f"
11497
6be7c12c 11498
08f74004
AM
11499# uniq the associated vectors in all the configured targets.
11500f=""
11501for i in $assocvecs ; do
11502 case " $f " in
11503 *" $i "*) ;;
11504 *) f="$f $i" ;;
11505 esac
11506done
11507assocvecs="$f"
11508
11509
252b5132
RH
11510# uniq the architectures in all the configured targets.
11511f=""
11512for i in $selarchs ; do
11513 case " $f " in
11514 *" $i "*) ;;
11515 *) f="$f $i" ;;
11516 esac
11517done
11518selarchs="$f"
11519
11520# Target backend .o files.
11521tb=
11522
65765700 11523elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
252b5132
RH
11524
11525for vec in $selvecs
11526do
69263e90 11527 target_size=32
252b5132
RH
11528 case "$vec" in
11529 # This list is alphabetized to make it easy to compare
dc810e39
AM
11530 # with the two vector lists in targets.c. For the same reason,
11531 # use one entry per line, even though this leads to long lines.
252b5132
RH
11532 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11533 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
341ca622 11534 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
252b5132
RH
11535 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11536 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11537 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
252b5132 11538 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
dc810e39
AM
11539 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11540 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11541 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11542 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11543 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11544 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11545 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11546 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11547 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11548 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11549 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
252b5132
RH
11550 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11551 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
fac41780 11552 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
dc810e39 11553 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
73c3cd1c 11554 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
adde6300 11555 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
dc810e39 11556 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
252b5132 11557 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
7f266840 11558 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
e5a52504 11559 bfd_elf32_bigarm_symbian_vec)
7f266840 11560 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
11561 bfd_elf32_bigarm_vxworks_vec)
11562 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11563 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
0949843d 11564 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
06c15ad7 11565 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
5464f5a1 11566 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
252b5132
RH
11567 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11568 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
d172d4ba 11569 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
252b5132 11570 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
4e5ba5b7 11571 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
43850d5b 11572 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
e01b0e69 11573 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
dc810e39 11574 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
225247f0 11575 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
dc810e39 11576 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
5b93d8bb 11577 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
b6821651
AM
11578 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11579 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
9d751335 11580 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
dc810e39 11581 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
b2ef150d 11582 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
dc810e39 11583 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fcf12726 11584 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
cf88bb9f 11585 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
a75473eb 11586 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
252b5132 11587 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
dc810e39 11588 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
e5a52504 11589 bfd_elf32_littlearm_symbian_vec)
7f266840 11590 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
4e7fd91e
PB
11591 bfd_elf32_littlearm_vxworks_vec)
11592 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
7f266840 11593 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
c6e90b02 11594 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
252b5132 11595 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6edf0760
NC
11596 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11597 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11598 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
f5a6f915
SC
11599 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11600 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
252b5132
RH
11601 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11602 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11603 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11604 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11605 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11606 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
2469cfa2 11607 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
8a397dad
TS
11608 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11609 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11610 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11611 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
b3baf5d0 11612 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
3b16e843 11613 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
0bcb993b
ILT
11614 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11615 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
b6821651
AM
11616 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11617 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
a85d7ed0 11618 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
eb1e0e80
NC
11619 # FIXME: We include cofflink.lo not because it's needed for
11620 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11621 # which needs it but does not list it. Should be fixed in right place.
9cba27b2
JT
11622 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11623 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
2bc3c89a
AM
11624 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11625 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11626 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11627 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
b6821651
AM
11628 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11629 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11630 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
85fbca6a 11631 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
b6821651
AM
11632 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11633 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11634 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
252b5132 11635 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
c6e90b02
TS
11636 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11637 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
dc810e39 11638 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
252b5132 11639 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
90ace9e9 11640 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
93fbbb04 11641 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
e0001a05
NC
11642 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11643 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
2238051f 11644 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11645 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11646 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11647 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39
AM
11648 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11649 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
dc810e39 11650 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fcf12726 11651 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
dc810e39
AM
11652 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11653 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02 11654 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
3c3bdf30 11655 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
dc810e39
AM
11656 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11657 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11658 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
341ca622
AM
11659 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11660 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
2bc3c89a
AM
11661 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11662 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11663 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11664 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
dc810e39 11665 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
c6e90b02
TS
11666 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11667 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
dc810e39 11668 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
3c3bdf30 11669 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
dc810e39
AM
11670 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11671 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11672 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11673 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
06c15ad7 11674 cris_aout_vec) tb="$tb aout-cris.lo" ;;
dc810e39 11675 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
252b5132 11676 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
252b5132 11677 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
dc810e39
AM
11678 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11679 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
252b5132
RH
11680 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11681 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11682 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11683 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11684 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11685 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11686 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11687 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11688 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11689 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11690 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11691 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
252b5132
RH
11692 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11693 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11694 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11695 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
dc810e39 11696 i386msdos_vec) tb="$tb i386msdos.lo" ;;
252b5132
RH
11697 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11698 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
dc810e39
AM
11699 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11700 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
252b5132
RH
11701 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11702 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11703 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11704 ieee_vec) tb="$tb ieee.lo" ;;
dc810e39
AM
11705 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11706 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
252b5132
RH
11707 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11708 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11709 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11710 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11711 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11712 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
252b5132
RH
11713 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11714 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
341ca622 11715 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
c6f8758f 11716 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
7499d566 11717 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
93509525
KD
11718 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11719 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11720 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
277d1b5e
ILT
11721 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11722 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11723 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11724 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
dc810e39
AM
11725 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11726 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
252b5132 11727 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
dc810e39 11728 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
252b5132 11729 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
252b5132 11730 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
dc810e39 11731 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
3b16e843 11732 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
252b5132 11733 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
dc810e39 11734 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
93509525
KD
11735 pef_vec) tb="$tb pef.lo" ;;
11736 pef_xlib_vec) tb="$tb pef.lo" ;;
e135f41b 11737 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6768c14a 11738 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11739 ppcboot_vec) tb="$tb ppcboot.lo" ;;
dc810e39 11740 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
eb1e0e80 11741 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
dc810e39 11742 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
252b5132 11743 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11744 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
252b5132 11745 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
dc810e39 11746 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
60bcf0fa
NC
11747 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11748 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
252b5132 11749 som_vec) tb="$tb som.lo" ;;
dc810e39 11750 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
252b5132
RH
11751 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11752 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11753 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11754 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11755 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
252b5132 11756 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
93509525 11757 sym_vec) tb="$tb xsym.lo" ;;
252b5132
RH
11758 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11759 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
026df7c5
NC
11760 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11761 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11762 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11763 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11764 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11765 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
81635ce4 11766 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11767 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11768 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11769 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
81635ce4 11770 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
dc810e39 11771 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
252b5132 11772 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
90ace9e9 11773 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
3c2bfad6 11774 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
ba26fd96 11775 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
252b5132 11776 versados_vec) tb="$tb versados.lo" ;;
dc810e39 11777 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
252b5132
RH
11778 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11779 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11780 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11781 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11782
341ca622
AM
11783 # These appear out of order in targets.c
11784 srec_vec) tb="$tb srec.lo" ;;
11785 symbolsrec_vec) tb="$tb srec.lo" ;;
11786 tekhex_vec) tb="$tb tekhex.lo" ;;
11787 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11788 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11789
252b5132 11790 "") ;;
5464f5a1
NN
11791 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11792echo "$as_me: error: *** unknown target vector $vec" >&2;}
11793 { (exit 1); exit 1; }; } ;;
252b5132 11794 esac
69263e90
AM
11795
11796 if test ${target_size} = 64; then
11797 target64=true
11798 fi
11799 if test x"${vec}" = x"${defvec}"; then
11800 bfd_default_target_size=${target_size}
11801 fi
252b5132
RH
11802done
11803
11804# Target architecture .o files.
11805# A couple of CPUs use shorter file names to avoid problems on DOS
11806# filesystems.
11807ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11808
11809# Weed out duplicate .o files.
11810f=""
11811for i in $tb ; do
11812 case " $f " in
11813 *" $i "*) ;;
11814 *) f="$f $i" ;;
11815 esac
11816done
11817tb="$f"
11818
11819f=""
11820for i in $ta ; do
11821 case " $f " in
11822 *" $i "*) ;;
11823 *) f="$f $i" ;;
11824 esac
11825done
11826ta="$f"
11827
11828bfd_backends="$tb"
11829bfd_machines="$ta"
11830
11831if test x${all_targets} = xtrue ; then
11832 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11833 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11834 selvecs=
11835 havevecs=
11836 selarchs=
08f74004
AM
11837 test -n "$assocvecs" &&
11838 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
11839else # all_targets is true
11840 # Only set these if they will be nonempty, for the clever echo.
11841 havevecs=
08f74004 11842 assocvecs=
252b5132
RH
11843 test -n "$selvecs" &&
11844 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11845 test -n "$selvecs" &&
11846 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11847 test -n "$selarchs" &&
11848 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11849fi # all_targets is true
11850
11851case ${host64}-${target64}-${want64} in
11852 *true*)
11853 wordsize=64
2858ef35 11854 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
252b5132 11855 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
ccba357f 11856 if test $BFD_HOST_64_BIT_DEFINED = 0; then
5464f5a1
NN
11857 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11858echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11860echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
252b5132 11861 fi
966abd70
HPN
11862 if test -n "$GCC" ; then
11863 bad_64bit_gcc=no;
5464f5a1
NN
11864 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11865echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
966abd70 11866 # Add more tests for gcc versions with non-working 64-bit support here.
5464f5a1
NN
11867 cat >conftest.$ac_ext <<_ACEOF
11868/* confdefs.h. */
11869_ACEOF
11870cat confdefs.h >>conftest.$ac_ext
11871cat >>conftest.$ac_ext <<_ACEOF
11872/* end confdefs.h. */
966abd70 11873:__GNUC__:__GNUC_MINOR__:__i386__:
5464f5a1 11874_ACEOF
966abd70 11875if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464f5a1 11876 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
966abd70 11877 bad_64bit_gcc=yes;
5464f5a1
NN
11878 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11879echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
966abd70 11880else
5464f5a1
NN
11881 echo "$as_me:$LINENO: result: no" >&5
11882echo "${ECHO_T}no" >&6
966abd70
HPN
11883fi
11884rm -f conftest*
11885
11886 if test $bad_64bit_gcc = yes ; then
5464f5a1
NN
11887 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11888echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11889 { (exit 1); exit 1; }; }
966abd70
HPN
11890 fi
11891 fi
252b5132
RH
11892 ;;
11893 false-false-false)
11894 wordsize=32
2858ef35 11895 bfd_libs='$(BFD32_LIBS)'
252b5132
RH
11896 all_backends='$(BFD32_BACKENDS)'
11897 ;;
11898esac
11899
6be7c12c
AO
11900
11901
11902
11903
11904
69263e90 11905
2858ef35 11906
1012372a
AC
11907# Determine the host dependant file_ptr a.k.a. off_t type. In order
11908# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11909# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11910# Hopefully a reasonable assumption since fseeko et.al. should be
11911# upward compatible.
5464f5a1
NN
11912
11913
11914
11915
1012372a
AC
11916for ac_func in ftello ftello64 fseeko fseeko64
11917do
5464f5a1
NN
11918as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919echo "$as_me:$LINENO: checking for $ac_func" >&5
11920echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11921if eval "test \"\${$as_ac_var+set}\" = set"; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 cat >conftest.$ac_ext <<_ACEOF
11925/* confdefs.h. */
11926_ACEOF
11927cat confdefs.h >>conftest.$ac_ext
11928cat >>conftest.$ac_ext <<_ACEOF
11929/* end confdefs.h. */
11930/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932#define $ac_func innocuous_$ac_func
11933
1012372a 11934/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
11938
11939#ifdef __STDC__
11940# include <limits.h>
11941#else
11942# include <assert.h>
11943#endif
1012372a 11944
5464f5a1 11945#undef $ac_func
1012372a 11946
5464f5a1
NN
11947/* Override any gcc2 internal prototype to avoid an error. */
11948#ifdef __cplusplus
11949extern "C"
11950{
11951#endif
11952/* We use char because int might match the return type of a gcc2
11953 builtin and then its argument prototype would still apply. */
11954char $ac_func ();
1012372a
AC
11955/* The GNU C library defines this for functions which it implements
11956 to always fail with ENOSYS. Some functions are actually named
11957 something starting with __ and the normal name is an alias. */
11958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11959choke me
11960#else
5464f5a1
NN
11961char (*f) () = $ac_func;
11962#endif
11963#ifdef __cplusplus
11964}
1012372a
AC
11965#endif
11966
5464f5a1
NN
11967int
11968main ()
11969{
11970return f != $ac_func;
11971 ;
11972 return 0;
11973}
11974_ACEOF
11975rm -f conftest.$ac_objext conftest$ac_exeext
11976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977 (eval $ac_link) 2>conftest.er1
11978 ac_status=$?
11979 grep -v '^ *+' conftest.er1 >conftest.err
11980 rm -f conftest.er1
11981 cat conftest.err >&5
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } &&
8fb84ecc
AC
11984 { ac_try='test -z "$ac_c_werror_flag"
11985 || test ! -s conftest.err'
5464f5a1
NN
11986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987 (eval $ac_try) 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; } &&
11991 { ac_try='test -s conftest$ac_exeext'
11992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11993 (eval $ac_try) 2>&5
11994 ac_status=$?
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); }; }; then
11997 eval "$as_ac_var=yes"
11998else
11999 echo "$as_me: failed program was:" >&5
12000sed 's/^/| /' conftest.$ac_ext >&5
12001
12002eval "$as_ac_var=no"
12003fi
12004rm -f conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext
12006fi
12007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12008echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12009if test `eval echo '${'$as_ac_var'}'` = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12012_ACEOF
1012372a 12013
1012372a
AC
12014fi
12015done
12016
1012372a 12017if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5464f5a1
NN
12018 echo "$as_me:$LINENO: checking size of off_t" >&5
12019echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12020if test "${ac_cv_sizeof_off_t+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
1012372a
AC
12022else
12023 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5464f5a1
NN
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
1012372a
AC
12030#include "confdefs.h"
12031#include <sys/types.h>
12032
12033
5464f5a1
NN
12034int
12035main ()
12036{
1012372a 12037switch (0) case 0: case (sizeof (off_t) == $ac_size):;
5464f5a1
NN
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext
12043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
8fb84ecc
AC
12051 { ac_try='test -z "$ac_c_werror_flag"
12052 || test ! -s conftest.err'
5464f5a1
NN
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
1012372a
AC
12064 ac_cv_sizeof_off_t=$ac_size
12065else
5464f5a1
NN
12066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
1012372a 12069fi
5464f5a1 12070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1012372a
AC
12071 if test x$ac_cv_sizeof_off_t != x ; then break; fi
12072done
12073
12074fi
12075
12076if test x$ac_cv_sizeof_off_t = x ; then
5464f5a1
NN
12077 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
12078echo "$as_me: error: cannot determine a size for off_t" >&2;}
12079 { (exit 1); exit 1; }; }
1012372a 12080fi
5464f5a1
NN
12081echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12082echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12083
12084cat >>confdefs.h <<_ACEOF
1012372a 12085#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
5464f5a1 12086_ACEOF
1012372a
AC
12087
12088
1012372a 12089fi
5464f5a1
NN
12090echo "$as_me:$LINENO: checking file_ptr type" >&5
12091echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
ccba357f
AM
12092bfd_file_ptr="long"
12093bfd_ufile_ptr="unsigned long"
12094if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
12095 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
12096 bfd_file_ptr=BFD_HOST_64_BIT
12097 bfd_ufile_ptr=BFD_HOST_U_64_BIT
12098fi
5464f5a1
NN
12099echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
12100echo "${ECHO_T}$bfd_file_ptr" >&6
1012372a
AC
12101
12102
12103
12104
252b5132
RH
12105tdefaults=""
12106test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12107test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
08f74004 12108test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
252b5132
RH
12109test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12110test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12111
6be7c12c 12112
5464f5a1
NN
12113
12114
12115for ac_header in stdlib.h unistd.h
252b5132 12116do
5464f5a1
NN
12117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12118if eval "test \"\${$as_ac_Header+set}\" = set"; then
12119 echo "$as_me:$LINENO: checking for $ac_header" >&5
12120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12121if eval "test \"\${$as_ac_Header+set}\" = set"; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123fi
12124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12126else
12127 # Is the header compilable?
12128echo "$as_me:$LINENO: checking $ac_header usability" >&5
12129echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12130cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136$ac_includes_default
12137#include <$ac_header>
12138_ACEOF
12139rm -f conftest.$ac_objext
12140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } &&
8fb84ecc
AC
12148 { ac_try='test -z "$ac_c_werror_flag"
12149 || test ! -s conftest.err'
5464f5a1
NN
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest.$ac_objext'
12156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12158 ac_status=$?
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_header_compiler=yes
12162else
12163 echo "$as_me: failed program was:" >&5
12164sed 's/^/| /' conftest.$ac_ext >&5
12165
12166ac_header_compiler=no
12167fi
12168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12169echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12170echo "${ECHO_T}$ac_header_compiler" >&6
12171
12172# Is the header present?
12173echo "$as_me:$LINENO: checking $ac_header presence" >&5
12174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12175cat >conftest.$ac_ext <<_ACEOF
12176/* confdefs.h. */
12177_ACEOF
12178cat confdefs.h >>conftest.$ac_ext
12179cat >>conftest.$ac_ext <<_ACEOF
12180/* end confdefs.h. */
12181#include <$ac_header>
12182_ACEOF
12183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12185 ac_status=$?
12186 grep -v '^ *+' conftest.er1 >conftest.err
12187 rm -f conftest.er1
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } >/dev/null; then
12191 if test -s conftest.err; then
12192 ac_cpp_err=$ac_c_preproc_warn_flag
12193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12194 else
12195 ac_cpp_err=
12196 fi
252b5132 12197else
5464f5a1 12198 ac_cpp_err=yes
252b5132 12199fi
5464f5a1
NN
12200if test -z "$ac_cpp_err"; then
12201 ac_header_preproc=yes
12202else
12203 echo "$as_me: failed program was:" >&5
12204sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 ac_header_preproc=no
252b5132 12207fi
5464f5a1
NN
12208rm -f conftest.err conftest.$ac_ext
12209echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12210echo "${ECHO_T}$ac_header_preproc" >&6
12211
12212# So? What about this header?
12213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12214 yes:no: )
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12219 ac_header_preproc=yes
12220 ;;
12221 no:yes:* )
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12234 (
12235 cat <<\_ASBOX
12236## ------------------------------------------ ##
12237## Report this to the AC_PACKAGE_NAME lists. ##
12238## ------------------------------------------ ##
12239_ASBOX
12240 ) |
12241 sed "s/^/$as_me: WARNING: /" >&2
12242 ;;
12243esac
12244echo "$as_me:$LINENO: checking for $ac_header" >&5
12245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12246if eval "test \"\${$as_ac_Header+set}\" = set"; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
6be7c12c 12248else
5464f5a1
NN
12249 eval "$as_ac_Header=\$ac_header_preproc"
12250fi
12251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12253
12254fi
12255if test `eval echo '${'$as_ac_Header'}'` = yes; then
12256 cat >>confdefs.h <<_ACEOF
12257#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12258_ACEOF
12259
252b5132 12260fi
5464f5a1 12261
252b5132
RH
12262done
12263
5464f5a1 12264
252b5132
RH
12265for ac_func in getpagesize
12266do
5464f5a1
NN
12267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12268echo "$as_me:$LINENO: checking for $ac_func" >&5
12269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12270if eval "test \"\${$as_ac_var+set}\" = set"; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272else
12273 cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
12279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281#define $ac_func innocuous_$ac_func
12282
252b5132 12283/* System header to define __stub macros and hopefully few prototypes,
5464f5a1
NN
12284 which can conflict with char $ac_func (); below.
12285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 <limits.h> exists even on freestanding compilers. */
12287
12288#ifdef __STDC__
12289# include <limits.h>
12290#else
12291# include <assert.h>
12292#endif
6be7c12c 12293
5464f5a1 12294#undef $ac_func
252b5132 12295
5464f5a1
NN
12296/* Override any gcc2 internal prototype to avoid an error. */
12297#ifdef __cplusplus
12298extern "C"
12299{
12300#endif
12301/* We use char because int might match the return type of a gcc2
12302 builtin and then its argument prototype would still apply. */
12303char $ac_func ();
252b5132
RH
12304/* The GNU C library defines this for functions which it implements
12305 to always fail with ENOSYS. Some functions are actually named
12306 something starting with __ and the normal name is an alias. */
12307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12308choke me
12309#else
5464f5a1
NN
12310char (*f) () = $ac_func;
12311#endif
12312#ifdef __cplusplus
12313}
252b5132
RH
12314#endif
12315
5464f5a1
NN
12316int
12317main ()
12318{
12319return f != $ac_func;
12320 ;
12321 return 0;
12322}
12323_ACEOF
12324rm -f conftest.$ac_objext conftest$ac_exeext
12325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12326 (eval $ac_link) 2>conftest.er1
12327 ac_status=$?
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); } &&
8fb84ecc
AC
12333 { ac_try='test -z "$ac_c_werror_flag"
12334 || test ! -s conftest.err'
5464f5a1
NN
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; } &&
12340 { ac_try='test -s conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 eval "$as_ac_var=yes"
12347else
12348 echo "$as_me: failed program was:" >&5
12349sed 's/^/| /' conftest.$ac_ext >&5
12350
12351eval "$as_ac_var=no"
12352fi
12353rm -f conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12355fi
12356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12357echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12358if test `eval echo '${'$as_ac_var'}'` = yes; then
12359 cat >>confdefs.h <<_ACEOF
12360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12361_ACEOF
252b5132 12362
252b5132
RH
12363fi
12364done
12365
5464f5a1
NN
12366echo "$as_me:$LINENO: checking for working mmap" >&5
12367echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12368if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
12370else
12371 if test "$cross_compiling" = yes; then
12372 ac_cv_func_mmap_fixed_mapped=no
12373else
5464f5a1
NN
12374 cat >conftest.$ac_ext <<_ACEOF
12375/* confdefs.h. */
12376_ACEOF
12377cat confdefs.h >>conftest.$ac_ext
12378cat >>conftest.$ac_ext <<_ACEOF
12379/* end confdefs.h. */
12380$ac_includes_default
12381/* malloc might have been renamed as rpl_malloc. */
12382#undef malloc
6be7c12c 12383
252b5132
RH
12384/* Thanks to Mike Haertel and Jim Avera for this test.
12385 Here is a matrix of mmap possibilities:
12386 mmap private not fixed
12387 mmap private fixed at somewhere currently unmapped
12388 mmap private fixed at somewhere already mapped
12389 mmap shared not fixed
12390 mmap shared fixed at somewhere currently unmapped
12391 mmap shared fixed at somewhere already mapped
12392 For private mappings, we should verify that changes cannot be read()
12393 back from the file, nor mmap's back from the file at a different
12394 address. (There have been systems where private was not correctly
12395 implemented like the infamous i386 svr4.0, and systems where the
5464f5a1 12396 VM page cache was not coherent with the file system buffer cache
252b5132
RH
12397 like early versions of FreeBSD and possibly contemporary NetBSD.)
12398 For shared mappings, we should conversely verify that changes get
5464f5a1 12399 propagated back to all the places they're supposed to be.
252b5132
RH
12400
12401 Grep wants private fixed already mapped.
12402 The main things grep needs to know about mmap are:
12403 * does it exist and is it safe to write into the mmap'd area
12404 * how to use it (BSD variants) */
5464f5a1 12405
252b5132
RH
12406#include <fcntl.h>
12407#include <sys/mman.h>
12408
5464f5a1
NN
12409#if !STDC_HEADERS && !HAVE_STDLIB_H
12410char *malloc ();
12411#endif
6be7c12c 12412
5464f5a1
NN
12413/* This mess was copied from the GNU getpagesize.h. */
12414#if !HAVE_GETPAGESIZE
252b5132 12415/* Assume that all systems that can run configure have sys/param.h. */
5464f5a1 12416# if !HAVE_SYS_PARAM_H
252b5132
RH
12417# define HAVE_SYS_PARAM_H 1
12418# endif
12419
12420# ifdef _SC_PAGESIZE
12421# define getpagesize() sysconf(_SC_PAGESIZE)
12422# else /* no _SC_PAGESIZE */
5464f5a1 12423# if HAVE_SYS_PARAM_H
252b5132
RH
12424# include <sys/param.h>
12425# ifdef EXEC_PAGESIZE
12426# define getpagesize() EXEC_PAGESIZE
12427# else /* no EXEC_PAGESIZE */
12428# ifdef NBPG
12429# define getpagesize() NBPG * CLSIZE
12430# ifndef CLSIZE
12431# define CLSIZE 1
12432# endif /* no CLSIZE */
12433# else /* no NBPG */
12434# ifdef NBPC
12435# define getpagesize() NBPC
12436# else /* no NBPC */
12437# ifdef PAGESIZE
12438# define getpagesize() PAGESIZE
12439# endif /* PAGESIZE */
12440# endif /* no NBPC */
12441# endif /* no NBPG */
12442# endif /* no EXEC_PAGESIZE */
12443# else /* no HAVE_SYS_PARAM_H */
12444# define getpagesize() 8192 /* punt totally */
12445# endif /* no HAVE_SYS_PARAM_H */
12446# endif /* no _SC_PAGESIZE */
12447
5464f5a1
NN
12448#endif /* no HAVE_GETPAGESIZE */
12449
12450int
12451main ()
12452{
12453 char *data, *data2, *data3;
12454 int i, pagesize;
12455 int fd;
12456
12457 pagesize = getpagesize ();
12458
12459 /* First, make a file with some known garbage in it. */
12460 data = (char *) malloc (pagesize);
12461 if (!data)
12462 exit (1);
12463 for (i = 0; i < pagesize; ++i)
12464 *(data + i) = rand ();
12465 umask (0);
12466 fd = creat ("conftest.mmap", 0600);
12467 if (fd < 0)
12468 exit (1);
12469 if (write (fd, data, pagesize) != pagesize)
12470 exit (1);
12471 close (fd);
12472
12473 /* Next, try to mmap the file at a fixed address which already has
12474 something else allocated at it. If we can, also make sure that
12475 we see the same garbage. */
12476 fd = open ("conftest.mmap", O_RDWR);
12477 if (fd < 0)
12478 exit (1);
12479 data2 = (char *) malloc (2 * pagesize);
12480 if (!data2)
12481 exit (1);
12482 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12483 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12484 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12485 exit (1);
12486 for (i = 0; i < pagesize; ++i)
12487 if (*(data + i) != *(data2 + i))
12488 exit (1);
12489
12490 /* Finally, make sure that changes to the mapped area do not
12491 percolate back to the file as seen by read(). (This is a bug on
12492 some variants of i386 svr4.0.) */
12493 for (i = 0; i < pagesize; ++i)
12494 *(data2 + i) = *(data2 + i) + 1;
12495 data3 = (char *) malloc (pagesize);
12496 if (!data3)
12497 exit (1);
12498 if (read (fd, data3, pagesize) != pagesize)
12499 exit (1);
12500 for (i = 0; i < pagesize; ++i)
12501 if (*(data + i) != *(data3 + i))
12502 exit (1);
12503 close (fd);
12504 exit (0);
12505}
12506_ACEOF
12507rm -f conftest$ac_exeext
12508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518 ac_cv_func_mmap_fixed_mapped=yes
12519else
12520 echo "$as_me: program exited with status $ac_status" >&5
12521echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
12524( exit $ac_status )
12525ac_cv_func_mmap_fixed_mapped=no
12526fi
12527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12528fi
12529fi
12530echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12531echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12532if test $ac_cv_func_mmap_fixed_mapped = yes; then
12533
12534cat >>confdefs.h <<\_ACEOF
12535#define HAVE_MMAP 1
12536_ACEOF
12537
12538fi
12539rm -f conftest.mmap
12540
12541
12542
12543for ac_func in madvise mprotect
12544do
12545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12546echo "$as_me:$LINENO: checking for $ac_func" >&5
12547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12548if eval "test \"\${$as_ac_var+set}\" = set"; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550else
12551 cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h. */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
12556/* end confdefs.h. */
12557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12559#define $ac_func innocuous_$ac_func
12560
12561/* System header to define __stub macros and hopefully few prototypes,
12562 which can conflict with char $ac_func (); below.
12563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12564 <limits.h> exists even on freestanding compilers. */
12565
12566#ifdef __STDC__
12567# include <limits.h>
12568#else
12569# include <assert.h>
12570#endif
12571
12572#undef $ac_func
12573
12574/* Override any gcc2 internal prototype to avoid an error. */
12575#ifdef __cplusplus
12576extern "C"
12577{
12578#endif
12579/* We use char because int might match the return type of a gcc2
12580 builtin and then its argument prototype would still apply. */
12581char $ac_func ();
12582/* The GNU C library defines this for functions which it implements
12583 to always fail with ENOSYS. Some functions are actually named
12584 something starting with __ and the normal name is an alias. */
12585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12586choke me
12587#else
12588char (*f) () = $ac_func;
12589#endif
12590#ifdef __cplusplus
12591}
12592#endif
12593
12594int
12595main ()
12596{
12597return f != $ac_func;
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext conftest$ac_exeext
12603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604 (eval $ac_link) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
8fb84ecc
AC
12611 { ac_try='test -z "$ac_c_werror_flag"
12612 || test ! -s conftest.err'
5464f5a1
NN
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest$ac_exeext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 eval "$as_ac_var=yes"
12625else
12626 echo "$as_me: failed program was:" >&5
12627sed 's/^/| /' conftest.$ac_ext >&5
12628
12629eval "$as_ac_var=no"
12630fi
12631rm -f conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633fi
12634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12636if test `eval echo '${'$as_ac_var'}'` = yes; then
12637 cat >>confdefs.h <<_ACEOF
12638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12639_ACEOF
12640
12641fi
12642done
12643
12644case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12645 true+yes )
12646cat >>confdefs.h <<\_ACEOF
12647#define USE_MMAP 1
12648_ACEOF
12649 ;;
12650esac
12651
12652rm -f doc/config.status
12653 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12654
12655 ac_config_commands="$ac_config_commands default"
12656
12657cat >confcache <<\_ACEOF
12658# This file is a shell script that caches the results of configure
12659# tests run on this system so they can be shared between configure
12660# scripts and configure runs, see configure's option --config-cache.
12661# It is not useful on other systems. If it contains results you don't
12662# want to keep, you may remove or edit it.
12663#
12664# config.status only pays attention to the cache file if you give it
12665# the --recheck option to rerun configure.
12666#
12667# `ac_cv_env_foo' variables (set or unset) will be overridden when
12668# loading this file, other *unset* `ac_cv_foo' will be assigned the
12669# following values.
12670
12671_ACEOF
12672
12673# The following way of writing the cache mishandles newlines in values,
12674# but we know of no workaround that is simple, portable, and efficient.
12675# So, don't put newlines in cache variables' values.
12676# Ultrix sh set writes to stderr and can't be redirected directly,
12677# and sets the high bit in the cache file unless we assign to the vars.
12678{
12679 (set) 2>&1 |
12680 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12681 *ac_space=\ *)
12682 # `set' does not quote correctly, so add quotes (double-quote
12683 # substitution turns \\\\ into \\, and sed turns \\ into \).
12684 sed -n \
12685 "s/'/'\\\\''/g;
12686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12687 ;;
12688 *)
12689 # `set' quotes correctly as required by POSIX, so do not add quotes.
12690 sed -n \
12691 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12692 ;;
12693 esac;
12694} |
12695 sed '
12696 t clear
12697 : clear
12698 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12699 t end
12700 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12701 : end' >>confcache
12702if diff $cache_file confcache >/dev/null 2>&1; then :; else
12703 if test -w $cache_file; then
12704 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12705 cat confcache >$cache_file
12706 else
12707 echo "not updating unwritable cache $cache_file"
12708 fi
12709fi
12710rm -f confcache
12711
12712test "x$prefix" = xNONE && prefix=$ac_default_prefix
12713# Let make expand exec_prefix.
12714test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12715
12716# VPATH may cause trouble with some makes, so we remove $(srcdir),
12717# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12718# trailing colons and then remove the whole line if VPATH becomes empty
12719# (actually we leave an empty line to preserve line numbers).
12720if test "x$srcdir" = x.; then
12721 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12722s/:*\$(srcdir):*/:/;
12723s/:*\${srcdir}:*/:/;
12724s/:*@srcdir@:*/:/;
12725s/^\([^=]*=[ ]*\):*/\1/;
12726s/:*$//;
12727s/^[^=]*=[ ]*$//;
12728}'
12729fi
12730
12731DEFS=-DHAVE_CONFIG_H
12732
12733ac_libobjs=
12734ac_ltlibobjs=
12735for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12736 # 1. Remove the extension, and $U if already installed.
12737 ac_i=`echo "$ac_i" |
12738 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12739 # 2. Add them.
12740 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12741 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12742done
12743LIBOBJS=$ac_libobjs
12744
12745LTLIBOBJS=$ac_ltlibobjs
12746
12747
f5385ebf
AM
12748if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12749 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12750Usually this means the macro was only invoked conditionally." >&5
12751echo "$as_me: error: conditional \"AMDEP\" was never defined.
12752Usually this means the macro was only invoked conditionally." >&2;}
12753 { (exit 1); exit 1; }; }
12754fi
12755if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12756 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12757Usually this means the macro was only invoked conditionally." >&5
12758echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12759Usually this means the macro was only invoked conditionally." >&2;}
12760 { (exit 1); exit 1; }; }
12761fi
12762if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12763 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12764Usually this means the macro was only invoked conditionally." >&5
12765echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12766Usually this means the macro was only invoked conditionally." >&2;}
12767 { (exit 1); exit 1; }; }
12768fi
12769if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12770 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12771Usually this means the macro was only invoked conditionally." >&5
12772echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12773Usually this means the macro was only invoked conditionally." >&2;}
12774 { (exit 1); exit 1; }; }
12775fi
5464f5a1
NN
12776
12777: ${CONFIG_STATUS=./config.status}
12778ac_clean_files_save=$ac_clean_files
12779ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12780{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12781echo "$as_me: creating $CONFIG_STATUS" >&6;}
12782cat >$CONFIG_STATUS <<_ACEOF
12783#! $SHELL
12784# Generated by $as_me.
12785# Run this file to recreate the current configuration.
12786# Compiler output produced by configure, useful for debugging
12787# configure, is in config.log if it exists.
12788
12789debug=false
12790ac_cs_recheck=false
12791ac_cs_silent=false
12792SHELL=\${CONFIG_SHELL-$SHELL}
12793_ACEOF
12794
12795cat >>$CONFIG_STATUS <<\_ACEOF
12796## --------------------- ##
12797## M4sh Initialization. ##
12798## --------------------- ##
12799
12800# Be Bourne compatible
12801if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12802 emulate sh
12803 NULLCMD=:
12804 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12805 # is contrary to our usage. Disable this feature.
12806 alias -g '${1+"$@"}'='"$@"'
12807elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12808 set -o posix
12809fi
12810DUALCASE=1; export DUALCASE # for MKS sh
12811
12812# Support unset when possible.
12813if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12814 as_unset=unset
12815else
12816 as_unset=false
12817fi
12818
12819
12820# Work around bugs in pre-3.0 UWIN ksh.
12821$as_unset ENV MAIL MAILPATH
12822PS1='$ '
12823PS2='> '
12824PS4='+ '
12825
12826# NLS nuisances.
12827for as_var in \
12828 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12829 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12830 LC_TELEPHONE LC_TIME
12831do
12832 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12833 eval $as_var=C; export $as_var
12834 else
12835 $as_unset $as_var
12836 fi
12837done
12838
12839# Required to use basename.
12840if expr a : '\(a\)' >/dev/null 2>&1; then
12841 as_expr=expr
12842else
12843 as_expr=false
12844fi
12845
12846if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12847 as_basename=basename
12848else
12849 as_basename=false
12850fi
252b5132 12851
6be7c12c 12852
5464f5a1
NN
12853# Name of the executable.
12854as_me=`$as_basename "$0" ||
12855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12856 X"$0" : 'X\(//\)$' \| \
12857 X"$0" : 'X\(/\)$' \| \
12858 . : '\(.\)' 2>/dev/null ||
12859echo X/"$0" |
12860 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12861 /^X\/\(\/\/\)$/{ s//\1/; q; }
12862 /^X\/\(\/\).*/{ s//\1/; q; }
12863 s/.*/./; q'`
12864
12865
12866# PATH needs CR, and LINENO needs CR and PATH.
12867# Avoid depending upon Character Ranges.
12868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12871as_cr_digits='0123456789'
12872as_cr_alnum=$as_cr_Letters$as_cr_digits
12873
12874# The user is always right.
12875if test "${PATH_SEPARATOR+set}" != set; then
12876 echo "#! /bin/sh" >conf$$.sh
12877 echo "exit 0" >>conf$$.sh
12878 chmod +x conf$$.sh
12879 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12880 PATH_SEPARATOR=';'
12881 else
12882 PATH_SEPARATOR=:
12883 fi
12884 rm -f conf$$.sh
12885fi
12886
12887
12888 as_lineno_1=$LINENO
12889 as_lineno_2=$LINENO
12890 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12891 test "x$as_lineno_1" != "x$as_lineno_2" &&
12892 test "x$as_lineno_3" = "x$as_lineno_2" || {
12893 # Find who we are. Look in the path if we contain no path at all
12894 # relative or not.
12895 case $0 in
12896 *[\\/]* ) as_myself=$0 ;;
12897 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12898for as_dir in $PATH
12899do
12900 IFS=$as_save_IFS
12901 test -z "$as_dir" && as_dir=.
12902 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12903done
12904
12905 ;;
12906 esac
12907 # We did not find ourselves, most probably we were run as `sh COMMAND'
12908 # in which case we are not to be found in the path.
12909 if test "x$as_myself" = x; then
12910 as_myself=$0
12911 fi
12912 if test ! -f "$as_myself"; then
12913 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12914echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12915 { (exit 1); exit 1; }; }
12916 fi
12917 case $CONFIG_SHELL in
12918 '')
12919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for as_base in sh bash ksh sh5; do
12925 case $as_dir in
12926 /*)
12927 if ("$as_dir/$as_base" -c '
12928 as_lineno_1=$LINENO
12929 as_lineno_2=$LINENO
12930 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12931 test "x$as_lineno_1" != "x$as_lineno_2" &&
12932 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12933 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12934 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12935 CONFIG_SHELL=$as_dir/$as_base
12936 export CONFIG_SHELL
12937 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12938 fi;;
12939 esac
12940 done
12941done
12942;;
12943 esac
12944
12945 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12946 # uniformly replaced by the line number. The first 'sed' inserts a
12947 # line-number line before each line; the second 'sed' does the real
12948 # work. The second script uses 'N' to pair each line-number line
12949 # with the numbered line, and appends trailing '-' during
12950 # substitution so that $LINENO is not a special case at line end.
12951 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12952 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12953 sed '=' <$as_myself |
12954 sed '
12955 N
12956 s,$,-,
12957 : loop
12958 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12959 t loop
12960 s,-$,,
12961 s,^['$as_cr_digits']*\n,,
12962 ' >$as_me.lineno &&
12963 chmod +x $as_me.lineno ||
12964 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12965echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12966 { (exit 1); exit 1; }; }
12967
12968 # Don't try to exec as it changes $[0], causing all sort of problems
12969 # (the dirname of $[0] is not the place where we might find the
12970 # original and so on. Autoconf is especially sensible to this).
12971 . ./$as_me.lineno
12972 # Exit status is that of the last command.
12973 exit
252b5132 12974}
6be7c12c 12975
5464f5a1
NN
12976
12977case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12978 *c*,-n*) ECHO_N= ECHO_C='
12979' ECHO_T=' ' ;;
12980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12982esac
12983
12984if expr a : '\(a\)' >/dev/null 2>&1; then
12985 as_expr=expr
252b5132 12986else
5464f5a1 12987 as_expr=false
252b5132 12988fi
5464f5a1
NN
12989
12990rm -f conf$$ conf$$.exe conf$$.file
12991echo >conf$$.file
12992if ln -s conf$$.file conf$$ 2>/dev/null; then
12993 # We could just check for DJGPP; but this test a) works b) is more generic
12994 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12995 if test -f conf$$.exe; then
12996 # Don't use ln at all; we don't have any links
12997 as_ln_s='cp -p'
12998 else
12999 as_ln_s='ln -s'
13000 fi
13001elif ln conf$$.file conf$$ 2>/dev/null; then
13002 as_ln_s=ln
13003else
13004 as_ln_s='cp -p'
252b5132 13005fi
5464f5a1 13006rm -f conf$$ conf$$.exe conf$$.file
6be7c12c 13007
5464f5a1
NN
13008if mkdir -p . 2>/dev/null; then
13009 as_mkdir_p=:
13010else
13011 test -d ./-p && rmdir ./-p
13012 as_mkdir_p=false
252b5132 13013fi
b3baf5d0 13014
5464f5a1 13015as_executable_p="test -f"
252b5132 13016
5464f5a1
NN
13017# Sed expression to map a string onto a valid CPP name.
13018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 13019
5464f5a1
NN
13020# Sed expression to map a string onto a valid variable name.
13021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6be7c12c 13022
252b5132 13023
5464f5a1
NN
13024# IFS
13025# We need space, tab and new line, in precisely that order.
13026as_nl='
13027'
13028IFS=" $as_nl"
252b5132 13029
5464f5a1
NN
13030# CDPATH.
13031$as_unset CDPATH
13032
13033exec 6>&1
13034
13035# Open the log real soon, to keep \$[0] and so on meaningful, and to
13036# report actual input values of CONFIG_FILES etc. instead of their
13037# values after options handling. Logging --version etc. is OK.
13038exec 5>>config.log
13039{
13040 echo
13041 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13042## Running $as_me. ##
13043_ASBOX
13044} >&5
13045cat >&5 <<_CSEOF
13046
13047This file was extended by $as_me, which was
13048generated by GNU Autoconf 2.59. Invocation command line was
13049
13050 CONFIG_FILES = $CONFIG_FILES
13051 CONFIG_HEADERS = $CONFIG_HEADERS
13052 CONFIG_LINKS = $CONFIG_LINKS
13053 CONFIG_COMMANDS = $CONFIG_COMMANDS
13054 $ $0 $@
13055
13056_CSEOF
13057echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13058echo >&5
13059_ACEOF
13060
13061# Files that config.status was made for.
13062if test -n "$ac_config_files"; then
13063 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6be7c12c 13064fi
5464f5a1
NN
13065
13066if test -n "$ac_config_headers"; then
13067 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6be7c12c 13068fi
252b5132 13069
5464f5a1
NN
13070if test -n "$ac_config_links"; then
13071 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
252b5132 13072fi
252b5132 13073
5464f5a1
NN
13074if test -n "$ac_config_commands"; then
13075 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13076fi
252b5132 13077
5464f5a1
NN
13078cat >>$CONFIG_STATUS <<\_ACEOF
13079
13080ac_cs_usage="\
13081\`$as_me' instantiates files from templates according to the
13082current configuration.
13083
13084Usage: $0 [OPTIONS] [FILE]...
13085
13086 -h, --help print this help, then exit
13087 -V, --version print version number, then exit
13088 -q, --quiet do not print progress messages
13089 -d, --debug don't remove temporary files
13090 --recheck update $as_me by reconfiguring in the same conditions
13091 --file=FILE[:TEMPLATE]
13092 instantiate the configuration file FILE
13093 --header=FILE[:TEMPLATE]
13094 instantiate the configuration header FILE
13095
13096Configuration files:
13097$config_files
13098
13099Configuration headers:
13100$config_headers
13101
13102Configuration commands:
13103$config_commands
13104
13105Report bugs to <bug-autoconf@gnu.org>."
13106_ACEOF
13107
13108cat >>$CONFIG_STATUS <<_ACEOF
13109ac_cs_version="\\
13110config.status
13111configured by $0, generated by GNU Autoconf 2.59,
13112 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13113
13114Copyright (C) 2003 Free Software Foundation, Inc.
13115This config.status script is free software; the Free Software Foundation
13116gives unlimited permission to copy, distribute and modify it."
13117srcdir=$srcdir
13118INSTALL="$INSTALL"
13119_ACEOF
13120
13121cat >>$CONFIG_STATUS <<\_ACEOF
13122# If no file are specified by the user, then we need to provide default
13123# value. By we need to know if files were specified by the user.
13124ac_need_defaults=:
13125while test $# != 0
13126do
13127 case $1 in
13128 --*=*)
13129 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13130 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13131 ac_shift=:
6be7c12c 13132 ;;
5464f5a1
NN
13133 -*)
13134 ac_option=$1
13135 ac_optarg=$2
13136 ac_shift=shift
6be7c12c 13137 ;;
5464f5a1
NN
13138 *) # This is not an option, so the user has probably given explicit
13139 # arguments.
13140 ac_option=$1
13141 ac_need_defaults=false;;
13142 esac
252b5132 13143
5464f5a1
NN
13144 case $ac_option in
13145 # Handling of the options.
13146_ACEOF
13147cat >>$CONFIG_STATUS <<\_ACEOF
13148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13149 ac_cs_recheck=: ;;
13150 --version | --vers* | -V )
13151 echo "$ac_cs_version"; exit 0 ;;
13152 --he | --h)
13153 # Conflict between --help and --header
13154 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13155Try \`$0 --help' for more information." >&5
13156echo "$as_me: error: ambiguous option: $1
13157Try \`$0 --help' for more information." >&2;}
13158 { (exit 1); exit 1; }; };;
13159 --help | --hel | -h )
13160 echo "$ac_cs_usage"; exit 0 ;;
13161 --debug | --d* | -d )
13162 debug=: ;;
13163 --file | --fil | --fi | --f )
13164 $ac_shift
13165 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13166 ac_need_defaults=false;;
13167 --header | --heade | --head | --hea )
13168 $ac_shift
13169 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13170 ac_need_defaults=false;;
13171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13172 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13173 ac_cs_silent=: ;;
6be7c12c 13174
5464f5a1
NN
13175 # This is an error.
13176 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13177Try \`$0 --help' for more information." >&5
13178echo "$as_me: error: unrecognized option: $1
13179Try \`$0 --help' for more information." >&2;}
13180 { (exit 1); exit 1; }; } ;;
252b5132 13181
5464f5a1 13182 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 13183
5464f5a1
NN
13184 esac
13185 shift
13186done
6be7c12c 13187
5464f5a1 13188ac_configure_extra_args=
252b5132 13189
5464f5a1
NN
13190if $ac_cs_silent; then
13191 exec 6>/dev/null
13192 ac_configure_extra_args="$ac_configure_extra_args --silent"
13193fi
6be7c12c 13194
5464f5a1
NN
13195_ACEOF
13196cat >>$CONFIG_STATUS <<_ACEOF
13197if \$ac_cs_recheck; then
13198 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13199 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13200fi
13201
13202_ACEOF
13203
13204cat >>$CONFIG_STATUS <<_ACEOF
6be7c12c 13205#
5464f5a1 13206# INIT-COMMANDS section.
6be7c12c 13207#
b3baf5d0 13208
f5385ebf 13209AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5464f5a1
NN
13210
13211
13212_ACEOF
13213
13214
13215
13216cat >>$CONFIG_STATUS <<\_ACEOF
13217for ac_config_target in $ac_config_targets
252b5132 13218do
5464f5a1
NN
13219 case "$ac_config_target" in
13220 # Handling of arguments.
13221 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13222 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13223 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13224 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
f5385ebf 13225 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5464f5a1
NN
13226 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13227 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13228 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13229echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13230 { (exit 1); exit 1; }; };;
252b5132
RH
13231 esac
13232done
13233
5464f5a1
NN
13234# If the user did not use the arguments to specify the items to instantiate,
13235# then the envvar interface is used. Set only those that are not.
13236# We use the long form for the default assignment because of an extremely
13237# bizarre bug on SunOS 4.1.3.
13238if $ac_need_defaults; then
13239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13242fi
13243
13244# Have a temporary directory for convenience. Make it in the build tree
13245# simply because there is no reason to put it here, and in addition,
13246# creating and moving files from /tmp can sometimes cause problems.
13247# Create a temporary directory, and hook for its removal unless debugging.
13248$debug ||
13249{
13250 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13251 trap '{ (exit 1); exit 1; }' 1 2 13 15
13252}
b3baf5d0 13253
5464f5a1 13254# Create a (secure) tmp directory for tmp files.
b3baf5d0 13255
5464f5a1
NN
13256{
13257 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13258 test -n "$tmp" && test -d "$tmp"
13259} ||
13260{
13261 tmp=./confstat$$-$RANDOM
13262 (umask 077 && mkdir $tmp)
13263} ||
13264{
13265 echo "$me: cannot create a temporary directory in ." >&2
13266 { (exit 1); exit 1; }
13267}
13268
13269_ACEOF
13270
13271cat >>$CONFIG_STATUS <<_ACEOF
13272
13273#
13274# CONFIG_FILES section.
13275#
b3baf5d0 13276
5464f5a1
NN
13277# No need to generate the scripts if there are no CONFIG_FILES.
13278# This happens for instance when ./config.status config.h
13279if test -n "\$CONFIG_FILES"; then
13280 # Protect against being on the right side of a sed subst in config.status.
13281 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13282 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13283s,@SHELL@,$SHELL,;t t
13284s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13285s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13286s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13287s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13288s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13289s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13290s,@exec_prefix@,$exec_prefix,;t t
13291s,@prefix@,$prefix,;t t
13292s,@program_transform_name@,$program_transform_name,;t t
13293s,@bindir@,$bindir,;t t
13294s,@sbindir@,$sbindir,;t t
13295s,@libexecdir@,$libexecdir,;t t
13296s,@datadir@,$datadir,;t t
13297s,@sysconfdir@,$sysconfdir,;t t
13298s,@sharedstatedir@,$sharedstatedir,;t t
13299s,@localstatedir@,$localstatedir,;t t
13300s,@libdir@,$libdir,;t t
13301s,@includedir@,$includedir,;t t
13302s,@oldincludedir@,$oldincludedir,;t t
13303s,@infodir@,$infodir,;t t
13304s,@mandir@,$mandir,;t t
13305s,@build_alias@,$build_alias,;t t
13306s,@host_alias@,$host_alias,;t t
13307s,@target_alias@,$target_alias,;t t
13308s,@DEFS@,$DEFS,;t t
13309s,@ECHO_C@,$ECHO_C,;t t
13310s,@ECHO_N@,$ECHO_N,;t t
13311s,@ECHO_T@,$ECHO_T,;t t
13312s,@LIBS@,$LIBS,;t t
13313s,@build@,$build,;t t
13314s,@build_cpu@,$build_cpu,;t t
13315s,@build_vendor@,$build_vendor,;t t
13316s,@build_os@,$build_os,;t t
13317s,@host@,$host,;t t
13318s,@host_cpu@,$host_cpu,;t t
13319s,@host_vendor@,$host_vendor,;t t
13320s,@host_os@,$host_os,;t t
13321s,@target@,$target,;t t
13322s,@target_cpu@,$target_cpu,;t t
13323s,@target_vendor@,$target_vendor,;t t
13324s,@target_os@,$target_os,;t t
13325s,@CC@,$CC,;t t
13326s,@CFLAGS@,$CFLAGS,;t t
13327s,@LDFLAGS@,$LDFLAGS,;t t
13328s,@CPPFLAGS@,$CPPFLAGS,;t t
13329s,@ac_ct_CC@,$ac_ct_CC,;t t
13330s,@EXEEXT@,$EXEEXT,;t t
13331s,@OBJEXT@,$OBJEXT,;t t
13332s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13333s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13334s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5385ebf 13335s,@CYGPATH_W@,$CYGPATH_W,;t t
5464f5a1
NN
13336s,@PACKAGE@,$PACKAGE,;t t
13337s,@VERSION@,$VERSION,;t t
13338s,@ACLOCAL@,$ACLOCAL,;t t
13339s,@AUTOCONF@,$AUTOCONF,;t t
13340s,@AUTOMAKE@,$AUTOMAKE,;t t
13341s,@AUTOHEADER@,$AUTOHEADER,;t t
13342s,@MAKEINFO@,$MAKEINFO,;t t
f5385ebf
AM
13343s,@install_sh@,$install_sh,;t t
13344s,@STRIP@,$STRIP,;t t
13345s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13346s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13347s,@mkdir_p@,$mkdir_p,;t t
13348s,@AWK@,$AWK,;t t
5464f5a1 13349s,@SET_MAKE@,$SET_MAKE,;t t
f5385ebf
AM
13350s,@am__leading_dot@,$am__leading_dot,;t t
13351s,@AMTAR@,$AMTAR,;t t
13352s,@am__tar@,$am__tar,;t t
13353s,@am__untar@,$am__untar,;t t
13354s,@DEPDIR@,$DEPDIR,;t t
13355s,@am__include@,$am__include,;t t
13356s,@am__quote@,$am__quote,;t t
13357s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13358s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13359s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13360s,@CCDEPMODE@,$CCDEPMODE,;t t
13361s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13362s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5464f5a1
NN
13363s,@AR@,$AR,;t t
13364s,@ac_ct_AR@,$ac_ct_AR,;t t
13365s,@RANLIB@,$RANLIB,;t t
13366s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13367s,@LN_S@,$LN_S,;t t
5464f5a1
NN
13368s,@LIBTOOL@,$LIBTOOL,;t t
13369s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13370s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13371s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13372s,@MAINT@,$MAINT,;t t
13373s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13374s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
13375s,@host_noncanonical@,$host_noncanonical,;t t
13376s,@target_noncanonical@,$target_noncanonical,;t t
5464f5a1
NN
13377s,@bfdlibdir@,$bfdlibdir,;t t
13378s,@bfdincludedir@,$bfdincludedir,;t t
13379s,@CPP@,$CPP,;t t
13380s,@EGREP@,$EGREP,;t t
13381s,@ALLOCA@,$ALLOCA,;t t
13382s,@USE_NLS@,$USE_NLS,;t t
13383s,@MSGFMT@,$MSGFMT,;t t
13384s,@GMSGFMT@,$GMSGFMT,;t t
13385s,@XGETTEXT@,$XGETTEXT,;t t
13386s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13387s,@CATALOGS@,$CATALOGS,;t t
13388s,@CATOBJEXT@,$CATOBJEXT,;t t
13389s,@DATADIRNAME@,$DATADIRNAME,;t t
13390s,@GMOFILES@,$GMOFILES,;t t
13391s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13392s,@INTLDEPS@,$INTLDEPS,;t t
13393s,@INTLLIBS@,$INTLLIBS,;t t
13394s,@INTLOBJS@,$INTLOBJS,;t t
13395s,@POFILES@,$POFILES,;t t
13396s,@POSUB@,$POSUB,;t t
13397s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13398s,@GT_NO@,$GT_NO,;t t
13399s,@GT_YES@,$GT_YES,;t t
13400s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13401s,@l@,$l,;t t
13402s,@HDEFINES@,$HDEFINES,;t t
13403s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13404s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13405s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13406s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13407s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13408s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13409s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13410s,@COREFILE@,$COREFILE,;t t
13411s,@COREFLAG@,$COREFLAG,;t t
13412s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13413s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13414s,@TDEFINES@,$TDEFINES,;t t
13415s,@wordsize@,$wordsize,;t t
13416s,@bfd_libs@,$bfd_libs,;t t
13417s,@all_backends@,$all_backends,;t t
13418s,@bfd_backends@,$bfd_backends,;t t
13419s,@bfd_machines@,$bfd_machines,;t t
13420s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13421s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13422s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13423s,@tdefaults@,$tdefaults,;t t
13424s,@LIBOBJS@,$LIBOBJS,;t t
13425s,@LTLIBOBJS@,$LTLIBOBJS,;t t
252b5132 13426CEOF
252b5132 13427
5464f5a1
NN
13428_ACEOF
13429
13430 cat >>$CONFIG_STATUS <<\_ACEOF
13431 # Split the substitutions into bite-sized pieces for seds with
13432 # small command number limits, like on Digital OSF/1 and HP-UX.
13433 ac_max_sed_lines=48
13434 ac_sed_frag=1 # Number of current file.
13435 ac_beg=1 # First line for current file.
13436 ac_end=$ac_max_sed_lines # Line after last line for current file.
13437 ac_more_lines=:
13438 ac_sed_cmds=
13439 while $ac_more_lines; do
13440 if test $ac_beg -gt 1; then
13441 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
252b5132 13442 else
5464f5a1
NN
13443 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13444 fi
13445 if test ! -s $tmp/subs.frag; then
13446 ac_more_lines=false
13447 else
13448 # The purpose of the label and of the branching condition is to
13449 # speed up the sed processing (if there are no `@' at all, there
13450 # is no need to browse any of the substitutions).
13451 # These are the two extra sed commands mentioned above.
13452 (echo ':t
13453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13454 if test -z "$ac_sed_cmds"; then
13455 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13456 else
13457 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13458 fi
13459 ac_sed_frag=`expr $ac_sed_frag + 1`
13460 ac_beg=$ac_end
13461 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 13462 fi
5464f5a1
NN
13463 done
13464 if test -z "$ac_sed_cmds"; then
13465 ac_sed_cmds=cat
252b5132 13466 fi
5464f5a1 13467fi # test -n "$CONFIG_FILES"
6be7c12c 13468
5464f5a1
NN
13469_ACEOF
13470cat >>$CONFIG_STATUS <<\_ACEOF
13471for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 13472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13473 case $ac_file in
13474 - | *:- | *:-:* ) # input from stdin
13475 cat >$tmp/stdin
13476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13480 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13481 esac
13482
5464f5a1
NN
13483 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13484 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13486 X"$ac_file" : 'X\(//\)[^/]' \| \
13487 X"$ac_file" : 'X\(//\)$' \| \
13488 X"$ac_file" : 'X\(/\)' \| \
13489 . : '\(.\)' 2>/dev/null ||
13490echo X"$ac_file" |
13491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13493 /^X\(\/\/\)$/{ s//\1/; q; }
13494 /^X\(\/\).*/{ s//\1/; q; }
13495 s/.*/./; q'`
13496 { if $as_mkdir_p; then
13497 mkdir -p "$ac_dir"
252b5132 13498 else
5464f5a1
NN
13499 as_dir="$ac_dir"
13500 as_dirs=
13501 while test ! -d "$as_dir"; do
13502 as_dirs="$as_dir $as_dirs"
13503 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13505 X"$as_dir" : 'X\(//\)[^/]' \| \
13506 X"$as_dir" : 'X\(//\)$' \| \
13507 X"$as_dir" : 'X\(/\)' \| \
13508 . : '\(.\)' 2>/dev/null ||
13509echo X"$as_dir" |
13510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13511 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13512 /^X\(\/\/\)$/{ s//\1/; q; }
13513 /^X\(\/\).*/{ s//\1/; q; }
13514 s/.*/./; q'`
13515 done
13516 test ! -n "$as_dirs" || mkdir $as_dirs
13517 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13518echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13519 { (exit 1); exit 1; }; }; }
13520
13521 ac_builddir=.
13522
13523if test "$ac_dir" != .; then
13524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13525 # A "../" for each directory in $ac_dir_suffix.
13526 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13527else
13528 ac_dir_suffix= ac_top_builddir=
13529fi
252b5132 13530
5464f5a1
NN
13531case $srcdir in
13532 .) # No --srcdir option. We are building in place.
13533 ac_srcdir=.
13534 if test -z "$ac_top_builddir"; then
13535 ac_top_srcdir=.
13536 else
13537 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13538 fi ;;
13539 [\\/]* | ?:[\\/]* ) # Absolute path.
13540 ac_srcdir=$srcdir$ac_dir_suffix;
13541 ac_top_srcdir=$srcdir ;;
252b5132 13542 *) # Relative path.
5464f5a1
NN
13543 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13544 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13545esac
252b5132 13546
5464f5a1
NN
13547# Do not use `cd foo && pwd` to compute absolute paths, because
13548# the directories may not exist.
13549case `pwd` in
13550.) ac_abs_builddir="$ac_dir";;
13551*)
13552 case "$ac_dir" in
13553 .) ac_abs_builddir=`pwd`;;
13554 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13555 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13556 esac;;
13557esac
13558case $ac_abs_builddir in
13559.) ac_abs_top_builddir=${ac_top_builddir}.;;
13560*)
13561 case ${ac_top_builddir}. in
13562 .) ac_abs_top_builddir=$ac_abs_builddir;;
13563 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13564 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13565 esac;;
13566esac
13567case $ac_abs_builddir in
13568.) ac_abs_srcdir=$ac_srcdir;;
13569*)
13570 case $ac_srcdir in
13571 .) ac_abs_srcdir=$ac_abs_builddir;;
13572 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13573 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13574 esac;;
13575esac
13576case $ac_abs_builddir in
13577.) ac_abs_top_srcdir=$ac_top_srcdir;;
13578*)
13579 case $ac_top_srcdir in
13580 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13581 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13582 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13583 esac;;
13584esac
252b5132 13585
5464f5a1
NN
13586
13587 case $INSTALL in
13588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13589 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6be7c12c 13590 esac
252b5132 13591
8fb84ecc
AC
13592 if test x"$ac_file" != x-; then
13593 { echo "$as_me:$LINENO: creating $ac_file" >&5
13594echo "$as_me: creating $ac_file" >&6;}
13595 rm -f "$ac_file"
13596 fi
5464f5a1
NN
13597 # Let's still pretend it is `configure' which instantiates (i.e., don't
13598 # use $as_me), people would be surprised to read:
13599 # /* config.h. Generated by config.status. */
13600 if test x"$ac_file" = x-; then
13601 configure_input=
13602 else
13603 configure_input="$ac_file. "
13604 fi
13605 configure_input=$configure_input"Generated from `echo $ac_file_in |
13606 sed 's,.*/,,'` by configure."
13607
13608 # First look for the input files in the build tree, otherwise in the
13609 # src tree.
13610 ac_file_inputs=`IFS=:
13611 for f in $ac_file_in; do
13612 case $f in
13613 -) echo $tmp/stdin ;;
13614 [\\/$]*)
13615 # Absolute (can't be DOS-style, as IFS=:)
13616 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13617echo "$as_me: error: cannot find input file: $f" >&2;}
13618 { (exit 1); exit 1; }; }
13619 echo "$f";;
13620 *) # Relative
13621 if test -f "$f"; then
13622 # Build tree
13623 echo "$f"
13624 elif test -f "$srcdir/$f"; then
13625 # Source tree
13626 echo "$srcdir/$f"
13627 else
13628 # /dev/null tree
13629 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13630echo "$as_me: error: cannot find input file: $f" >&2;}
13631 { (exit 1); exit 1; }; }
13632 fi;;
13633 esac
13634 done` || { (exit 1); exit 1; }
5464f5a1
NN
13635_ACEOF
13636cat >>$CONFIG_STATUS <<_ACEOF
13637 sed "$ac_vpsub
13638$extrasub
13639_ACEOF
13640cat >>$CONFIG_STATUS <<\_ACEOF
13641:t
13642/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13643s,@configure_input@,$configure_input,;t t
13644s,@srcdir@,$ac_srcdir,;t t
13645s,@abs_srcdir@,$ac_abs_srcdir,;t t
13646s,@top_srcdir@,$ac_top_srcdir,;t t
13647s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13648s,@builddir@,$ac_builddir,;t t
13649s,@abs_builddir@,$ac_abs_builddir,;t t
13650s,@top_builddir@,$ac_top_builddir,;t t
13651s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13652s,@INSTALL@,$ac_INSTALL,;t t
13653" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13654 rm -f $tmp/stdin
13655 if test x"$ac_file" != x-; then
13656 mv $tmp/out $ac_file
13657 else
13658 cat $tmp/out
13659 rm -f $tmp/out
13660 fi
13661
13662done
13663_ACEOF
13664cat >>$CONFIG_STATUS <<\_ACEOF
13665
13666#
13667# CONFIG_HEADER section.
13668#
252b5132
RH
13669
13670# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13671# NAME is the cpp macro being defined and VALUE is the value it is being given.
13672#
13673# ac_d sets the value in "#define NAME VALUE" lines.
5464f5a1
NN
13674ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13675ac_dB='[ ].*$,\1#\2'
13676ac_dC=' '
13677ac_dD=',;t'
13678# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13679ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13680ac_uB='$,\1#\2define\3'
252b5132 13681ac_uC=' '
5464f5a1
NN
13682ac_uD=',;t'
13683
13684for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 13685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5464f5a1
NN
13686 case $ac_file in
13687 - | *:- | *:-:* ) # input from stdin
13688 cat >$tmp/stdin
13689 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13691 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13693 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
13694 esac
13695
5464f5a1
NN
13696 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13697echo "$as_me: creating $ac_file" >&6;}
13698
13699 # First look for the input files in the build tree, otherwise in the
13700 # src tree.
13701 ac_file_inputs=`IFS=:
13702 for f in $ac_file_in; do
13703 case $f in
13704 -) echo $tmp/stdin ;;
13705 [\\/$]*)
13706 # Absolute (can't be DOS-style, as IFS=:)
13707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13708echo "$as_me: error: cannot find input file: $f" >&2;}
13709 { (exit 1); exit 1; }; }
13710 # Do quote $f, to prevent DOS paths from being IFS'd.
13711 echo "$f";;
13712 *) # Relative
13713 if test -f "$f"; then
13714 # Build tree
13715 echo "$f"
13716 elif test -f "$srcdir/$f"; then
13717 # Source tree
13718 echo "$srcdir/$f"
13719 else
13720 # /dev/null tree
13721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13722echo "$as_me: error: cannot find input file: $f" >&2;}
13723 { (exit 1); exit 1; }; }
13724 fi;;
13725 esac
13726 done` || { (exit 1); exit 1; }
13727 # Remove the trailing spaces.
13728 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13729
13730_ACEOF
13731
13732# Transform confdefs.h into two sed scripts, `conftest.defines' and
13733# `conftest.undefs', that substitutes the proper values into
13734# config.h.in to produce config.h. The first handles `#define'
13735# templates, and the second `#undef' templates.
13736# And first: Protect against being on the right side of a sed subst in
13737# config.status. Protect against being in an unquoted here document
13738# in config.status.
13739rm -f conftest.defines conftest.undefs
13740# Using a here document instead of a string reduces the quoting nightmare.
13741# Putting comments in sed scripts is not portable.
13742#
13743# `end' is used to avoid that the second main sed command (meant for
13744# 0-ary CPP macros) applies to n-ary macro definitions.
13745# See the Autoconf documentation for `clear'.
13746cat >confdef2sed.sed <<\_ACEOF
13747s/[\\&,]/\\&/g
13748s,[\\$`],\\&,g
13749t clear
13750: clear
13751s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13752t end
13753s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13754: end
13755_ACEOF
13756# If some macros were called several times there might be several times
13757# the same #defines, which is useless. Nevertheless, we may not want to
13758# sort them, since we want the *last* AC-DEFINE to be honored.
13759uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13760sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13761rm -f confdef2sed.sed
252b5132
RH
13762
13763# This sed command replaces #undef with comments. This is necessary, for
13764# example, in the case of _POSIX_SOURCE, which is predefined and required
13765# on some systems where configure will not decide to define it.
5464f5a1
NN
13766cat >>conftest.undefs <<\_ACEOF
13767s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13768_ACEOF
13769
13770# Break up conftest.defines because some shells have a limit on the size
13771# of here documents, and old seds have small limits too (100 cmds).
13772echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13773echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13774echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13775echo ' :' >>$CONFIG_STATUS
13776rm -f conftest.tail
13777while grep . conftest.defines >/dev/null
13778do
13779 # Write a limited-size here document to $tmp/defines.sed.
13780 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13781 # Speed up: don't consider the non `#define' lines.
13782 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13783 # Work around the forget-to-reset-the-flag bug.
13784 echo 't clr' >>$CONFIG_STATUS
13785 echo ': clr' >>$CONFIG_STATUS
13786 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13787 echo 'CEOF
13788 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13789 rm -f $tmp/in
13790 mv $tmp/out $tmp/in
13791' >>$CONFIG_STATUS
13792 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13793 rm -f conftest.defines
13794 mv conftest.tail conftest.defines
13795done
13796rm -f conftest.defines
13797echo ' fi # grep' >>$CONFIG_STATUS
13798echo >>$CONFIG_STATUS
252b5132 13799
5464f5a1
NN
13800# Break up conftest.undefs because some shells have a limit on the size
13801# of here documents, and old seds have small limits too (100 cmds).
13802echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 13803rm -f conftest.tail
5464f5a1 13804while grep . conftest.undefs >/dev/null
252b5132 13805do
5464f5a1
NN
13806 # Write a limited-size here document to $tmp/undefs.sed.
13807 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13808 # Speed up: don't consider the non `#undef'
13809 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13810 # Work around the forget-to-reset-the-flag bug.
13811 echo 't clr' >>$CONFIG_STATUS
13812 echo ': clr' >>$CONFIG_STATUS
13813 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 13814 echo 'CEOF
5464f5a1
NN
13815 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13816 rm -f $tmp/in
13817 mv $tmp/out $tmp/in
13818' >>$CONFIG_STATUS
13819 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13820 rm -f conftest.undefs
13821 mv conftest.tail conftest.undefs
252b5132 13822done
5464f5a1
NN
13823rm -f conftest.undefs
13824
13825cat >>$CONFIG_STATUS <<\_ACEOF
13826 # Let's still pretend it is `configure' which instantiates (i.e., don't
13827 # use $as_me), people would be surprised to read:
13828 # /* config.h. Generated by config.status. */
13829 if test x"$ac_file" = x-; then
13830 echo "/* Generated by configure. */" >$tmp/config.h
13831 else
13832 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13833 fi
13834 cat $tmp/in >>$tmp/config.h
13835 rm -f $tmp/in
13836 if test x"$ac_file" != x-; then
13837 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13838 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13839echo "$as_me: $ac_file is unchanged" >&6;}
13840 else
13841 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13842$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13843 X"$ac_file" : 'X\(//\)[^/]' \| \
13844 X"$ac_file" : 'X\(//\)$' \| \
13845 X"$ac_file" : 'X\(/\)' \| \
13846 . : '\(.\)' 2>/dev/null ||
13847echo X"$ac_file" |
13848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13850 /^X\(\/\/\)$/{ s//\1/; q; }
13851 /^X\(\/\).*/{ s//\1/; q; }
13852 s/.*/./; q'`
13853 { if $as_mkdir_p; then
13854 mkdir -p "$ac_dir"
252b5132 13855 else
5464f5a1
NN
13856 as_dir="$ac_dir"
13857 as_dirs=
13858 while test ! -d "$as_dir"; do
13859 as_dirs="$as_dir $as_dirs"
13860 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13862 X"$as_dir" : 'X\(//\)[^/]' \| \
13863 X"$as_dir" : 'X\(//\)$' \| \
13864 X"$as_dir" : 'X\(/\)' \| \
13865 . : '\(.\)' 2>/dev/null ||
13866echo X"$as_dir" |
13867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13869 /^X\(\/\/\)$/{ s//\1/; q; }
13870 /^X\(\/\).*/{ s//\1/; q; }
13871 s/.*/./; q'`
13872 done
13873 test ! -n "$as_dirs" || mkdir $as_dirs
13874 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13875echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13876 { (exit 1); exit 1; }; }; }
13877
13878 rm -f $ac_file
13879 mv $tmp/config.h $ac_file
252b5132 13880 fi
5464f5a1
NN
13881 else
13882 cat $tmp/config.h
13883 rm -f $tmp/config.h
252b5132 13884 fi
f5385ebf
AM
13885# Compute $ac_file's index in $config_headers.
13886_am_stamp_count=1
13887for _am_header in $config_headers :; do
13888 case $_am_header in
13889 $ac_file | $ac_file:* )
13890 break ;;
13891 * )
13892 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13893 esac
13894done
13895echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13896$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13897 X$ac_file : 'X\(//\)[^/]' \| \
13898 X$ac_file : 'X\(//\)$' \| \
13899 X$ac_file : 'X\(/\)' \| \
13900 . : '\(.\)' 2>/dev/null ||
13901echo X$ac_file |
13902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13904 /^X\(\/\/\)$/{ s//\1/; q; }
13905 /^X\(\/\).*/{ s//\1/; q; }
13906 s/.*/./; q'`/stamp-h$_am_stamp_count
5464f5a1
NN
13907done
13908_ACEOF
13909cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 13910
5464f5a1
NN
13911#
13912# CONFIG_COMMANDS section.
13913#
13914for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13915 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13916 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13917 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13918$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13919 X"$ac_dest" : 'X\(//\)[^/]' \| \
13920 X"$ac_dest" : 'X\(//\)$' \| \
13921 X"$ac_dest" : 'X\(/\)' \| \
13922 . : '\(.\)' 2>/dev/null ||
13923echo X"$ac_dest" |
13924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13925 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13926 /^X\(\/\/\)$/{ s//\1/; q; }
13927 /^X\(\/\).*/{ s//\1/; q; }
13928 s/.*/./; q'`
13929 { if $as_mkdir_p; then
13930 mkdir -p "$ac_dir"
13931 else
13932 as_dir="$ac_dir"
13933 as_dirs=
13934 while test ! -d "$as_dir"; do
13935 as_dirs="$as_dir $as_dirs"
13936 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13938 X"$as_dir" : 'X\(//\)[^/]' \| \
13939 X"$as_dir" : 'X\(//\)$' \| \
13940 X"$as_dir" : 'X\(/\)' \| \
13941 . : '\(.\)' 2>/dev/null ||
13942echo X"$as_dir" |
13943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13945 /^X\(\/\/\)$/{ s//\1/; q; }
13946 /^X\(\/\).*/{ s//\1/; q; }
13947 s/.*/./; q'`
13948 done
13949 test ! -n "$as_dirs" || mkdir $as_dirs
13950 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13951echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13952 { (exit 1); exit 1; }; }; }
b3baf5d0 13953
5464f5a1 13954 ac_builddir=.
b3baf5d0 13955
5464f5a1
NN
13956if test "$ac_dir" != .; then
13957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13958 # A "../" for each directory in $ac_dir_suffix.
13959 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13960else
13961 ac_dir_suffix= ac_top_builddir=
13962fi
13963
13964case $srcdir in
13965 .) # No --srcdir option. We are building in place.
13966 ac_srcdir=.
13967 if test -z "$ac_top_builddir"; then
13968 ac_top_srcdir=.
13969 else
13970 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13971 fi ;;
13972 [\\/]* | ?:[\\/]* ) # Absolute path.
13973 ac_srcdir=$srcdir$ac_dir_suffix;
13974 ac_top_srcdir=$srcdir ;;
13975 *) # Relative path.
13976 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13977 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13978esac
13979
13980# Do not use `cd foo && pwd` to compute absolute paths, because
13981# the directories may not exist.
13982case `pwd` in
13983.) ac_abs_builddir="$ac_dir";;
13984*)
13985 case "$ac_dir" in
13986 .) ac_abs_builddir=`pwd`;;
13987 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13988 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13989 esac;;
13990esac
13991case $ac_abs_builddir in
13992.) ac_abs_top_builddir=${ac_top_builddir}.;;
13993*)
13994 case ${ac_top_builddir}. in
13995 .) ac_abs_top_builddir=$ac_abs_builddir;;
13996 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13997 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13998 esac;;
13999esac
14000case $ac_abs_builddir in
14001.) ac_abs_srcdir=$ac_srcdir;;
14002*)
14003 case $ac_srcdir in
14004 .) ac_abs_srcdir=$ac_abs_builddir;;
14005 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14006 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14007 esac;;
14008esac
14009case $ac_abs_builddir in
14010.) ac_abs_top_srcdir=$ac_top_srcdir;;
14011*)
14012 case $ac_top_srcdir in
14013 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14014 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14015 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14016 esac;;
14017esac
14018
14019
14020 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14021echo "$as_me: executing $ac_dest commands" >&6;}
14022 case $ac_dest in
f5385ebf
AM
14023 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14024 # Strip MF so we end up with the name of the file.
14025 mf=`echo "$mf" | sed -e 's/:.*$//'`
14026 # Check whether this is an Automake generated Makefile or not.
14027 # We used to match only the files named `Makefile.in', but
14028 # some people rename them; so instead we look at the file content.
14029 # Grep'ing the first line is not enough: some people post-process
14030 # each Makefile.in and add a new line on top of each file to say so.
14031 # So let's grep whole file.
14032 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14033 dirpart=`(dirname "$mf") 2>/dev/null ||
14034$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14035 X"$mf" : 'X\(//\)[^/]' \| \
14036 X"$mf" : 'X\(//\)$' \| \
14037 X"$mf" : 'X\(/\)' \| \
14038 . : '\(.\)' 2>/dev/null ||
14039echo X"$mf" |
14040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14042 /^X\(\/\/\)$/{ s//\1/; q; }
14043 /^X\(\/\).*/{ s//\1/; q; }
14044 s/.*/./; q'`
14045 else
14046 continue
14047 fi
14048 # Extract the definition of DEPDIR, am__include, and am__quote
14049 # from the Makefile without running `make'.
14050 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14051 test -z "$DEPDIR" && continue
14052 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14053 test -z "am__include" && continue
14054 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14055 # When using ansi2knr, U may be empty or an underscore; expand it
14056 U=`sed -n 's/^U = //p' < "$mf"`
14057 # Find all dependency output files, they are included files with
14058 # $(DEPDIR) in their names. We invoke sed twice because it is the
14059 # simplest approach to changing $(DEPDIR) to its actual value in the
14060 # expansion.
14061 for file in `sed -n "
14062 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14063 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14064 # Make sure the directory exists.
14065 test -f "$dirpart/$file" && continue
14066 fdir=`(dirname "$file") 2>/dev/null ||
14067$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14068 X"$file" : 'X\(//\)[^/]' \| \
14069 X"$file" : 'X\(//\)$' \| \
14070 X"$file" : 'X\(/\)' \| \
14071 . : '\(.\)' 2>/dev/null ||
14072echo X"$file" |
14073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14075 /^X\(\/\/\)$/{ s//\1/; q; }
14076 /^X\(\/\).*/{ s//\1/; q; }
14077 s/.*/./; q'`
14078 { if $as_mkdir_p; then
14079 mkdir -p $dirpart/$fdir
14080 else
14081 as_dir=$dirpart/$fdir
14082 as_dirs=
14083 while test ! -d "$as_dir"; do
14084 as_dirs="$as_dir $as_dirs"
14085 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14086$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14087 X"$as_dir" : 'X\(//\)[^/]' \| \
14088 X"$as_dir" : 'X\(//\)$' \| \
14089 X"$as_dir" : 'X\(/\)' \| \
14090 . : '\(.\)' 2>/dev/null ||
14091echo X"$as_dir" |
14092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14094 /^X\(\/\/\)$/{ s//\1/; q; }
14095 /^X\(\/\).*/{ s//\1/; q; }
14096 s/.*/./; q'`
14097 done
14098 test ! -n "$as_dirs" || mkdir $as_dirs
14099 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14100echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14101 { (exit 1); exit 1; }; }; }
14102
14103 # echo "creating $dirpart/$file"
14104 echo '# dummy' > "$dirpart/$file"
14105 done
14106done
14107 ;;
5464f5a1
NN
14108 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14109 esac
14110done
14111_ACEOF
14112
14113cat >>$CONFIG_STATUS <<\_ACEOF
14114
14115{ (exit 0); exit 0; }
14116_ACEOF
252b5132 14117chmod +x $CONFIG_STATUS
5464f5a1
NN
14118ac_clean_files=$ac_clean_files_save
14119
14120
14121# configure is writing to config.log, and then calls config.status.
14122# config.status does its own redirection, appending to config.log.
14123# Unfortunately, on DOS this fails, as config.log is still kept open
14124# by configure, so config.status won't be able to write to it; its
14125# output is simply discarded. So we exec the FD to /dev/null,
14126# effectively closing config.log, so it can be properly (re)opened and
14127# appended to by config.status. When coming back to configure, we
14128# need to make the FD available again.
14129if test "$no_create" != yes; then
14130 ac_cs_success=:
14131 ac_config_status_args=
14132 test "$silent" = yes &&
14133 ac_config_status_args="$ac_config_status_args --quiet"
14134 exec 5>/dev/null
14135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14136 exec 5>>config.log
14137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14138 # would make configure fail if this is the last instruction.
14139 $ac_cs_success || { (exit 1); exit 1; }
14140fi
252b5132 14141
55c80943 14142
This page took 1.402795 seconds and 4 git commands to generate.