]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - opcodes/configure
* merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
[thirdparty/binutils-gdb.git] / opcodes / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
979273e3 3# Generated by GNU Autoconf 2.59.
252b5132 4#
979273e3 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.
979273e3
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
979273e3
NN
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
979273e3
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="z8k-dis.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
8ae85421 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 CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
979273e3 313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
979273e3
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.
979273e3 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
979273e3
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
979273e3 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
979273e3 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=*)
979273e3 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
979273e3 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979273e3 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=*)
979273e3
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=*)
979273e3 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
979273e3 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
979273e3
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-*)
979273e3 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
979273e3
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
979273e3 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=*)
979273e3 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
979273e3
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)
979273e3 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
979273e3 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=*)
979273e3 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=*)
979273e3 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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 \
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 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=*)
979273e3 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
979273e3 561 site=$ac_optarg ;;
1fe1f39c 562
252b5132
RH
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979273e3 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=*)
979273e3 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
979273e3 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
979273e3 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
979273e3
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
979273e3 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
979273e3
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'`
979273e3
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
979273e3 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
979273e3 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
979273e3
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=*)
979273e3 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=*)
979273e3 624 x_libraries=$ac_optarg ;;
252b5132 625
979273e3
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
979273e3
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 *)
979273e3
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
979273e3
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
979273e3
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
252b5132 668
979273e3
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
979273e3
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
979273e3
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
979273e3
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.
979273e3
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
979273e3
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
979273e3
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
979273e3
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
252b5132 773
979273e3
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
979273e3 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
979273e3
NN
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 787
979273e3 788Defaults for the options are specified in brackets.
ac48eca1 789
979273e3
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]
ac48eca1 809
979273e3
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'.
ac48eca1 814
979273e3 815For better control, use the options below.
ac48eca1 816
979273e3
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
ac48eca1 831
979273e3 832 cat <<\_ACEOF
252b5132 833
979273e3
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
979273e3
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
979273e3 846if test -n "$ac_init_help"; then
252b5132 847
979273e3 848 cat <<\_ACEOF
252b5132 849
979273e3
NN
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8ae85421
AM
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
979273e3
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-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
569acd2c 861 --enable-werror treat compile warnings as errors
979273e3 862 --enable-build-warnings Enable build-time compiler warnings if gcc is used
8ae85421
AM
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
979273e3
NN
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
867 --enable-cgen-maint=dir build cgen generated files
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-included-gettext use the GNU gettext library included here
252b5132 875
979273e3
NN
876Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
a2d91340 884
979273e3
NN
885Use these variables to override the choices made by `configure' or to help
886it to find libraries and programs with nonstandard names/locations.
887
888_ACEOF
a2d91340
AC
889fi
890
979273e3
NN
891if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
897
898if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902else
903 ac_dir_suffix= ac_top_builddir=
904fi
a2d91340 905
979273e3
NN
906case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
a2d91340 913 fi ;;
979273e3
NN
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
a2d91340
AC
920esac
921
979273e3
NN
922# Do not use `cd foo && pwd` to compute absolute paths, because
923# the directories may not exist.
924case `pwd` in
925.) ac_abs_builddir="$ac_dir";;
926*)
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
a2d91340 932esac
979273e3
NN
933case $ac_abs_builddir in
934.) ac_abs_top_builddir=${ac_top_builddir}.;;
935*)
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_srcdir=$ac_srcdir;;
944*)
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950esac
951case $ac_abs_builddir in
952.) ac_abs_top_srcdir=$ac_top_srcdir;;
953*)
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
a2d91340
AC
959esac
960
979273e3
NN
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
975 fi
8ae85421 976 cd $ac_popdir
979273e3
NN
977 done
978fi
a2d91340 979
979273e3
NN
980test -n "$ac_init_help" && exit 0
981if $ac_init_version; then
982 cat <<\_ACEOF
252b5132 983
979273e3
NN
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
2c73f9d8 994
979273e3
NN
995It was created by $as_me, which was
996generated by GNU Autoconf 2.59. Invocation command line was
252b5132 997
979273e3 998 $ $0 $@
252b5132 999
979273e3
NN
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012
1013/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015
1016/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1023
1024_ASUNAME
1025
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
252b5132 1033
979273e3 1034} >&5
75798298 1035
979273e3 1036cat >&5 <<_ACEOF
252b5132 1037
252b5132 1038
979273e3
NN
1039## ----------- ##
1040## Core tests. ##
1041## ----------- ##
1042
1043_ACEOF
1044
1045
1046# Keep a trace of the command line.
1047# Strip out --no-create and --no-recursion so they do not pile up.
1048# Strip out --silent because we don't want to record it for future runs.
1049# Also quote any args containing shell meta-characters.
1050# Make two passes to allow for proper duplicate-argument suppression.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
1058 for ac_arg
1059 do
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 2)
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1083 ;;
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1086 fi
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1090 ;;
1091 esac
1092 done
1093done
1094$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096
1097# When interrupted or exit'd, cleanup temporary files, and complete
1098# config.log. We remove comments because anyway the quotes in there
1099# would cause problems or look ugly.
1100# WARNING: Be sure not to use single quotes in there, as some shells,
1101# such as our DU 5.0 friend, will then `close' the trap.
1102trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1104 {
1105 echo
1106
1107 cat <<\_ASBOX
1108## ---------------- ##
1109## Cache variables. ##
1110## ---------------- ##
1111_ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1114{
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1121 ;;
1122 *)
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1125 ;;
1126 esac;
1127}
1128 echo
1129
1130 cat <<\_ASBOX
1131## ----------------- ##
1132## Output variables. ##
1133## ----------------- ##
1134_ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1137 do
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1142
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145## ------------- ##
1146## Output files. ##
1147## ------------- ##
1148_ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1151 do
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1156 fi
1157
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160## ----------- ##
1161## confdefs.h. ##
1162## ----------- ##
1163_ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1167 fi
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1175 ' 0
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210_ACEOF
1211
1212
1213# Let the site file select an alternate cache file if it wants to.
1214# Prefer explicitly selected file to automatically selected ones.
1215if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 fi
1221fi
1222for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1267 *)
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1289 fi
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_compiler_gnu=$ac_cv_c_compiler_gnu
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325ac_aux_dir=
1326for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1339 fi
1340done
1341if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1345fi
1346ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1349
1350# Make sure we can run config.sub.
1351$ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1355
1356echo "$as_me:$LINENO: checking build system type" >&5
1357echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360else
1361 ac_cv_build_alias=$build_alias
1362test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1372
1373fi
1374echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375echo "${ECHO_T}$ac_cv_build" >&6
1376build=$ac_cv_build
1377build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1380
1381
1382echo "$as_me:$LINENO: checking host system type" >&5
1383echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386else
1387 ac_cv_host_alias=$host_alias
1388test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1394
1395fi
1396echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397echo "${ECHO_T}$ac_cv_host" >&6
1398host=$ac_cv_host
1399host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1402
1403
1404echo "$as_me:$LINENO: checking target system type" >&5
1405echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_target_alias=$target_alias
1410test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1416
1417fi
1418echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419echo "${ECHO_T}$ac_cv_target" >&6
1420target=$ac_cv_target
1421target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1424
1425
1426# The aliases save the names the user supplied, while $host etc.
1427# will get canonicalized.
1428test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432ac_ext=c
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440echo "$as_me:$LINENO: checking for $ac_word" >&5
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
1460done
1461
1462fi
1463fi
1464CC=$ac_cv_prog_CC
1465if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467echo "${ECHO_T}$CC" >&6
1468else
1469 echo "$as_me:$LINENO: result: no" >&5
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477set dummy gcc; ac_word=$2
1478echo "$as_me:$LINENO: checking for $ac_word" >&5
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497done
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
1507 echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511 CC=$ac_ct_CC
1512else
1513 CC="$ac_cv_prog_CC"
1514fi
1515
1516if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519set dummy ${ac_tool_prefix}cc; ac_word=$2
1520echo "$as_me:$LINENO: checking for $ac_word" >&5
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
1540done
1541
1542fi
1543fi
1544CC=$ac_cv_prog_CC
1545if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547echo "${ECHO_T}$CC" >&6
1548else
1549 echo "$as_me:$LINENO: result: no" >&5
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553fi
1554if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557set dummy cc; ac_word=$2
1558echo "$as_me:$LINENO: checking for $ac_word" >&5
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565else
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577done
1578done
1579
1580fi
1581fi
1582ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585echo "${ECHO_T}$ac_ct_CC" >&6
1586else
1587 echo "$as_me:$LINENO: result: no" >&5
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591 CC=$ac_ct_CC
1592else
1593 CC="$ac_cv_prog_CC"
1594fi
1595
1596fi
1597if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:$LINENO: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
1608 ac_prog_rejected=no
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
1625done
1626
1627if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1637 fi
1638fi
1639fi
1640fi
1641CC=$ac_cv_prog_CC
1642if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644echo "${ECHO_T}$CC" >&6
1645else
1646 echo "$as_me:$LINENO: result: no" >&5
1647echo "${ECHO_T}no" >&6
1648fi
1649
1650fi
1651if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657echo "$as_me:$LINENO: checking for $ac_word" >&5
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
1677done
1678
1679fi
1680fi
1681CC=$ac_cv_prog_CC
1682if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684echo "${ECHO_T}$CC" >&6
1685else
1686 echo "$as_me:$LINENO: result: no" >&5
1687echo "${ECHO_T}no" >&6
1688fi
1689
1690 test -n "$CC" && break
1691 done
1692fi
1693if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698set dummy $ac_prog; ac_word=$2
1699echo "$as_me:$LINENO: checking for $ac_word" >&5
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718done
1719done
1720
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
1728 echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732 test -n "$ac_ct_CC" && break
1733done
1734
1735 CC=$ac_ct_CC
1736fi
1737
1738fi
1739
1740
1741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
1748echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
1768/* confdefs.h. */
1769_ACEOF
1770cat confdefs.h >>conftest.$ac_ext
1771cat >>conftest.$ac_ext <<_ACEOF
1772/* end confdefs.h. */
1773
1774int
1775main ()
1776{
1777
1778 ;
1779 return 0;
1780}
1781_ACEOF
1782ac_clean_files_save=$ac_clean_files
1783ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784# Try to create an executable without -o first, disregard a.out.
1785# It will help us diagnose broken compilers, and finding out an intuition
1786# of exeext.
1787echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797# resort.
1798
1799# Be careful to initialize this variable, since it used to be cached.
1800# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801ac_cv_exeext=
1802# b.out is created by i960 compilers.
1803for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1804do
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1808 ;;
1809 conftest.$ac_ext )
1810 # This is the source file.
1811 ;;
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1823 * )
1824 break;;
1825 esac
1826done
1827else
1828 echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: C compiler cannot create executables
1834See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1836fi
1837
1838ac_exeext=$ac_cv_exeext
1839echo "$as_me:$LINENO: result: $ac_file" >&5
1840echo "${ECHO_T}$ac_file" >&6
1841
1842# Check the compiler produces executables we can run. If not, either
1843# the compiler is broken, or we cross compile.
1844echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847# If not cross compiling, check that we can run a simple program.
1848if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&5
1863echo "$as_me: error: cannot run C compiled programs.
1864If you meant to cross compile, use \`--host'.
1865See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1867 fi
1868 fi
1869fi
1870echo "$as_me:$LINENO: result: yes" >&5
1871echo "${ECHO_T}yes" >&6
1872
1873rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874ac_clean_files=$ac_clean_files_save
1875# Check the compiler produces executables we can run. If not, either
1876# the compiler is broken, or we cross compile.
1877echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880echo "${ECHO_T}$cross_compiling" >&6
1881
1882echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891# work properly (i.e., refer to `conftest.exe'), while it won't with
1892# `rm'.
1893for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902done
1903else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&5
1906echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
1911rm -f conftest$ac_cv_exeext
1912echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913echo "${ECHO_T}$ac_cv_exeext" >&6
1914
1915rm -f conftest.$ac_ext
1916EXEEXT=$ac_cv_exeext
1917ac_exeext=$EXEEXT
1918echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923 cat >conftest.$ac_ext <<_ACEOF
1924/* confdefs.h. */
1925_ACEOF
1926cat confdefs.h >>conftest.$ac_ext
1927cat >>conftest.$ac_ext <<_ACEOF
1928/* end confdefs.h. */
1929
1930int
1931main ()
1932{
1933
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938rm -f conftest.o conftest.obj
1939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950done
1951else
1952 echo "$as_me: failed program was:" >&5
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
1955{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&5
1957echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1960fi
1961
1962rm -f conftest.$ac_cv_objext conftest.$ac_ext
1963fi
1964echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965echo "${ECHO_T}$ac_cv_objext" >&6
1966OBJEXT=$ac_cv_objext
1967ac_objext=$OBJEXT
1968echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983#ifndef __GNUC__
1984 choke me
1985#endif
1986
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991rm -f conftest.$ac_objext
1992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
8ae85421
AM
2000 { ac_try='test -z "$ac_c_werror_flag"
2001 || test ! -s conftest.err'
979273e3
NN
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; } &&
2007 { ac_try='test -s conftest.$ac_objext'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 ac_compiler_gnu=yes
2014else
2015 echo "$as_me: failed program was:" >&5
2016sed 's/^/| /' conftest.$ac_ext >&5
2017
2018ac_compiler_gnu=no
2019fi
2020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2021ac_cv_c_compiler_gnu=$ac_compiler_gnu
2022
2023fi
2024echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2025echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2026GCC=`test $ac_compiler_gnu = yes && echo yes`
2027ac_test_CFLAGS=${CFLAGS+set}
2028ac_save_CFLAGS=$CFLAGS
2029CFLAGS="-g"
2030echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2031echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2032if test "${ac_cv_prog_cc_g+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035 cat >conftest.$ac_ext <<_ACEOF
2036/* confdefs.h. */
2037_ACEOF
2038cat confdefs.h >>conftest.$ac_ext
2039cat >>conftest.$ac_ext <<_ACEOF
2040/* end confdefs.h. */
2041
2042int
2043main ()
2044{
2045
2046 ;
2047 return 0;
2048}
2049_ACEOF
2050rm -f conftest.$ac_objext
2051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>conftest.er1
2053 ac_status=$?
2054 grep -v '^ *+' conftest.er1 >conftest.err
2055 rm -f conftest.er1
2056 cat conftest.err >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); } &&
8ae85421
AM
2059 { ac_try='test -z "$ac_c_werror_flag"
2060 || test ! -s conftest.err'
979273e3
NN
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; } &&
2066 { ac_try='test -s conftest.$ac_objext'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068 (eval $ac_try) 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2072 ac_cv_prog_cc_g=yes
2073else
2074 echo "$as_me: failed program was:" >&5
2075sed 's/^/| /' conftest.$ac_ext >&5
2076
2077ac_cv_prog_cc_g=no
2078fi
2079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2080fi
2081echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2082echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2083if test "$ac_test_CFLAGS" = set; then
2084 CFLAGS=$ac_save_CFLAGS
2085elif test $ac_cv_prog_cc_g = yes; then
2086 if test "$GCC" = yes; then
2087 CFLAGS="-g -O2"
2088 else
2089 CFLAGS="-g"
2090 fi
2091else
2092 if test "$GCC" = yes; then
2093 CFLAGS="-O2"
2094 else
2095 CFLAGS=
2096 fi
2097fi
2098echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2099echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2100if test "${ac_cv_prog_cc_stdc+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103 ac_cv_prog_cc_stdc=no
2104ac_save_CC=$CC
2105cat >conftest.$ac_ext <<_ACEOF
2106/* confdefs.h. */
2107_ACEOF
2108cat confdefs.h >>conftest.$ac_ext
2109cat >>conftest.$ac_ext <<_ACEOF
2110/* end confdefs.h. */
2111#include <stdarg.h>
2112#include <stdio.h>
2113#include <sys/types.h>
2114#include <sys/stat.h>
2115/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2116struct buf { int x; };
2117FILE * (*rcsopen) (struct buf *, struct stat *, int);
2118static char *e (p, i)
2119 char **p;
2120 int i;
2121{
2122 return p[i];
2123}
2124static char *f (char * (*g) (char **, int), char **p, ...)
2125{
2126 char *s;
2127 va_list v;
2128 va_start (v,p);
2129 s = g (p, va_arg (v,int));
2130 va_end (v);
2131 return s;
2132}
2133
2134/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2135 function prototypes and stuff, but not '\xHH' hex character constants.
2136 These don't provoke an error unfortunately, instead are silently treated
2137 as 'x'. The following induces an error, until -std1 is added to get
2138 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2139 array size at least. It's necessary to write '\x00'==0 to get something
2140 that's true only with -std1. */
2141int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2142
2143int test (int i, double x);
2144struct s1 {int (*f) (int a);};
2145struct s2 {int (*f) (double a);};
2146int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2147int argc;
2148char **argv;
2149int
2150main ()
2151{
2152return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2153 ;
2154 return 0;
2155}
2156_ACEOF
2157# Don't try gcc -ansi; that turns off useful extensions and
2158# breaks some systems' header files.
2159# AIX -qlanglvl=ansi
2160# Ultrix and OSF/1 -std1
2161# HP-UX 10.20 and later -Ae
2162# HP-UX older versions -Aa -D_HPUX_SOURCE
2163# SVR4 -Xc -D__EXTENSIONS__
2164for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2165do
2166 CC="$ac_save_CC $ac_arg"
2167 rm -f conftest.$ac_objext
2168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>conftest.er1
2170 ac_status=$?
2171 grep -v '^ *+' conftest.er1 >conftest.err
2172 rm -f conftest.er1
2173 cat conftest.err >&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); } &&
8ae85421
AM
2176 { ac_try='test -z "$ac_c_werror_flag"
2177 || test ! -s conftest.err'
979273e3
NN
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; } &&
2183 { ac_try='test -s conftest.$ac_objext'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; }; then
2189 ac_cv_prog_cc_stdc=$ac_arg
2190break
2191else
2192 echo "$as_me: failed program was:" >&5
2193sed 's/^/| /' conftest.$ac_ext >&5
2194
2195fi
2196rm -f conftest.err conftest.$ac_objext
2197done
2198rm -f conftest.$ac_ext conftest.$ac_objext
2199CC=$ac_save_CC
2200
2201fi
2202
2203case "x$ac_cv_prog_cc_stdc" in
2204 x|xno)
2205 echo "$as_me:$LINENO: result: none needed" >&5
2206echo "${ECHO_T}none needed" >&6 ;;
2207 *)
2208 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2209echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2210 CC="$CC $ac_cv_prog_cc_stdc" ;;
2211esac
2212
2213# Some people use a C++ compiler to compile C. Since we use `exit',
2214# in C++ we need to declare it. In case someone uses the same compiler
2215# for both compiling C and C++ we need to have the C++ compiler decide
2216# the declaration of exit, since it's the most demanding environment.
2217cat >conftest.$ac_ext <<_ACEOF
2218#ifndef __cplusplus
2219 choke me
2220#endif
2221_ACEOF
2222rm -f conftest.$ac_objext
2223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>conftest.er1
2225 ac_status=$?
2226 grep -v '^ *+' conftest.er1 >conftest.err
2227 rm -f conftest.er1
2228 cat conftest.err >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); } &&
8ae85421
AM
2231 { ac_try='test -z "$ac_c_werror_flag"
2232 || test ! -s conftest.err'
979273e3
NN
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2244 for ac_declaration in \
2245 '' \
2246 'extern "C" void std::exit (int) throw (); using std::exit;' \
2247 'extern "C" void std::exit (int); using std::exit;' \
2248 'extern "C" void exit (int) throw ();' \
2249 'extern "C" void exit (int);' \
2250 'void exit (int);'
2251do
2252 cat >conftest.$ac_ext <<_ACEOF
2253/* confdefs.h. */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h. */
2258$ac_declaration
2259#include <stdlib.h>
2260int
2261main ()
2262{
2263exit (42);
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.$ac_objext
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2271 ac_status=$?
2272 grep -v '^ *+' conftest.er1 >conftest.err
2273 rm -f conftest.er1
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
8ae85421
AM
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
979273e3
NN
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286 (eval $ac_try) 2>&5
2287 ac_status=$?
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2290 :
2291else
2292 echo "$as_me: failed program was:" >&5
2293sed 's/^/| /' conftest.$ac_ext >&5
2294
2295continue
2296fi
2297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299/* confdefs.h. */
2300_ACEOF
2301cat confdefs.h >>conftest.$ac_ext
2302cat >>conftest.$ac_ext <<_ACEOF
2303/* end confdefs.h. */
2304$ac_declaration
2305int
2306main ()
2307{
2308exit (42);
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313rm -f conftest.$ac_objext
2314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
8ae85421
AM
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
979273e3
NN
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 break
2336else
2337 echo "$as_me: failed program was:" >&5
2338sed 's/^/| /' conftest.$ac_ext >&5
2339
2340fi
2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2342done
2343rm -f conftest*
2344if test -n "$ac_declaration"; then
2345 echo '#ifdef __cplusplus' >>confdefs.h
2346 echo $ac_declaration >>confdefs.h
2347 echo '#endif' >>confdefs.h
2348fi
2349
2350else
2351 echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
2361
2362
8ae85421
AM
2363echo "$as_me:$LINENO: checking for library containing strerror" >&5
2364echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2365if test "${ac_cv_search_strerror+set}" = set; then
979273e3
NN
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
8ae85421
AM
2368 ac_func_search_save_LIBS=$LIBS
2369ac_cv_search_strerror=no
979273e3
NN
2370cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
2376
2377/* Override any gcc2 internal prototype to avoid an error. */
2378#ifdef __cplusplus
2379extern "C"
2380#endif
2381/* We use char because int might match the return type of a gcc2
2382 builtin and then its argument prototype would still apply. */
2383char strerror ();
2384int
2385main ()
2386{
2387strerror ();
2388 ;
2389 return 0;
2390}
2391_ACEOF
2392rm -f conftest.$ac_objext conftest$ac_exeext
2393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2394 (eval $ac_link) 2>conftest.er1
2395 ac_status=$?
2396 grep -v '^ *+' conftest.er1 >conftest.err
2397 rm -f conftest.er1
2398 cat conftest.err >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); } &&
8ae85421
AM
2401 { ac_try='test -z "$ac_c_werror_flag"
2402 || test ! -s conftest.err'
979273e3
NN
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404 (eval $ac_try) 2>&5
2405 ac_status=$?
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; } &&
2408 { ac_try='test -s conftest$ac_exeext'
2409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 (eval $ac_try) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
8ae85421 2414 ac_cv_search_strerror="none required"
979273e3
NN
2415else
2416 echo "$as_me: failed program was:" >&5
2417sed 's/^/| /' conftest.$ac_ext >&5
2418
979273e3
NN
2419fi
2420rm -f conftest.err conftest.$ac_objext \
2421 conftest$ac_exeext conftest.$ac_ext
8ae85421
AM
2422if test "$ac_cv_search_strerror" = no; then
2423 for ac_lib in cposix; do
2424 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2425 cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
2431
2432/* Override any gcc2 internal prototype to avoid an error. */
2433#ifdef __cplusplus
2434extern "C"
2435#endif
2436/* We use char because int might match the return type of a gcc2
2437 builtin and then its argument prototype would still apply. */
2438char strerror ();
2439int
2440main ()
2441{
2442strerror ();
2443 ;
2444 return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext conftest$ac_exeext
2448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2449 (eval $ac_link) 2>conftest.er1
2450 ac_status=$?
2451 grep -v '^ *+' conftest.er1 >conftest.err
2452 rm -f conftest.er1
2453 cat conftest.err >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); } &&
2456 { ac_try='test -z "$ac_c_werror_flag"
2457 || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459 (eval $ac_try) 2>&5
2460 ac_status=$?
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest$ac_exeext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 (eval $ac_try) 2>&5
2466 ac_status=$?
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2469 ac_cv_search_strerror="-l$ac_lib"
2470break
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
979273e3 2475fi
8ae85421
AM
2476rm -f conftest.err conftest.$ac_objext \
2477 conftest$ac_exeext conftest.$ac_ext
2478 done
979273e3 2479fi
8ae85421
AM
2480LIBS=$ac_func_search_save_LIBS
2481fi
2482echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2483echo "${ECHO_T}$ac_cv_search_strerror" >&6
2484if test "$ac_cv_search_strerror" != no; then
2485 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
979273e3 2486
8ae85421 2487fi
979273e3
NN
2488
2489
2490# We currently only use the version number for the name of any shared
2491# library. For user convenience, we always use the same version
2492# number that BFD is using.
2493BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2494
8ae85421 2495am__api_version="1.9"
979273e3
NN
2496# Find a good install program. We prefer a C program (faster),
2497# so one script is as good as another. But avoid the broken or
2498# incompatible versions:
2499# SysV /etc/install, /usr/sbin/install
2500# SunOS /usr/etc/install
2501# IRIX /sbin/install
2502# AIX /bin/install
2503# AmigaOS /C/install, which installs bootblocks on floppy discs
2504# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2505# AFS /usr/afsws/bin/install, which mishandles nonexistent args
252b5132 2506# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 2507# OS/2's system install, which has a completely different semantic
252b5132 2508# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
2509echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2510echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2511if test -z "$INSTALL"; then
979273e3
NN
2512if test "${ac_cv_path_install+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2514else
979273e3
NN
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 # Account for people who put trailing slashes in PATH elements.
2521case $as_dir/ in
2522 ./ | .// | /cC/* | \
2523 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2524 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2525 /usr/ucb/* ) ;;
2526 *)
2527 # OSF1 and SCO ODT 3.0 have their own names for install.
2528 # Don't use installbsd from OSF since it installs stuff as root
2529 # by default.
2530 for ac_prog in ginstall scoinst install; do
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2533 if test $ac_prog = install &&
979273e3 2534 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2535 # AIX install. It has an incompatible calling convention.
2536 :
979273e3
NN
2537 elif test $ac_prog = install &&
2538 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2539 # program-specific install script used by HP pwplus--don't use.
2540 :
252b5132 2541 else
979273e3
NN
2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543 break 3
252b5132
RH
2544 fi
2545 fi
2546 done
979273e3
NN
2547 done
2548 ;;
2549esac
2550done
2551
252b5132
RH
2552
2553fi
2554 if test "${ac_cv_path_install+set}" = set; then
979273e3 2555 INSTALL=$ac_cv_path_install
252b5132
RH
2556 else
2557 # As a last resort, use the slow shell script. We don't cache a
2558 # path for INSTALL within a source directory, because that will
2559 # break other packages using the cache if that directory is
2560 # removed, or if the path is relative.
979273e3 2561 INSTALL=$ac_install_sh
252b5132
RH
2562 fi
2563fi
979273e3
NN
2564echo "$as_me:$LINENO: result: $INSTALL" >&5
2565echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2566
2567# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2568# It thinks the first close brace ends the variable substitution.
2569test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2570
979273e3 2571test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2572
2573test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2574
979273e3
NN
2575echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2576echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2577# Just in case
2578sleep 1
8ae85421 2579echo timestamp > conftest.file
252b5132
RH
2580# Do `set' in a subshell so we don't clobber the current shell's
2581# arguments. Must try -L first in case configure is actually a
2582# symlink; some systems play weird games with the mod time of symlinks
2583# (eg FreeBSD returns the mod time of the symlink's containing
2584# directory).
2585if (
8ae85421 2586 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2587 if test "$*" = "X"; then
2588 # -L didn't work.
8ae85421 2589 set X `ls -t $srcdir/configure conftest.file`
252b5132 2590 fi
8ae85421
AM
2591 rm -f conftest.file
2592 if test "$*" != "X $srcdir/configure conftest.file" \
2593 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2594
2595 # If neither matched, then we have a broken ls. This can happen
2596 # if, for instance, CONFIG_SHELL is bash and it inherits a
2597 # broken ls alias from the environment. This has actually
2598 # happened. Such a system could not be considered "sane".
979273e3
NN
2599 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2600alias in your environment" >&5
2601echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2602alias in your environment" >&2;}
2603 { (exit 1); exit 1; }; }
252b5132
RH
2604 fi
2605
8ae85421 2606 test "$2" = conftest.file
252b5132
RH
2607 )
2608then
2609 # Ok.
2610 :
2611else
979273e3
NN
2612 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2613Check your system clock" >&5
2614echo "$as_me: error: newly created file is older than distributed files!
2615Check your system clock" >&2;}
2616 { (exit 1); exit 1; }; }
252b5132 2617fi
979273e3
NN
2618echo "$as_me:$LINENO: result: yes" >&5
2619echo "${ECHO_T}yes" >&6
252b5132 2620test "$program_prefix" != NONE &&
979273e3 2621 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2622# Use a double $ so make ignores it.
2623test "$program_suffix" != NONE &&
979273e3
NN
2624 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2625# Double any \ or $. echo might interpret backslashes.
2626# By default was `s,x,x', remove it if useless.
2627cat <<\_ACEOF >conftest.sed
2628s/[\\$]/&&/g;s/;s,x,x,$//
2629_ACEOF
2630program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2631rm conftest.sed
2632
8ae85421
AM
2633# expand $ac_aux_dir to an absolute path
2634am_aux_dir=`cd $ac_aux_dir && pwd`
2635
2636test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2637# Use eval to expand $SHELL
2638if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640else
2641 am_missing_run=
2642 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2643echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644fi
2645
2646if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2647 # We used to keeping the `.' as first argument, in order to
2648 # allow $(mkdir_p) to be used without argument. As in
2649 # $(mkdir_p) $(somedir)
2650 # where $(somedir) is conditionally defined. However this is wrong
2651 # for two reasons:
2652 # 1. if the package is installed by a user who cannot write `.'
2653 # make install will fail,
2654 # 2. the above comment should most certainly read
2655 # $(mkdir_p) $(DESTDIR)$(somedir)
2656 # so it does not work when $(somedir) is undefined and
2657 # $(DESTDIR) is not.
2658 # To support the latter case, we have to write
2659 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2660 # so the `.' trick is pointless.
2661 mkdir_p='mkdir -p --'
2662else
2663 # On NextStep and OpenStep, the `mkdir' command does not
2664 # recognize any option. It will interpret all options as
2665 # directories to create, and then abort because `.' already
2666 # exists.
2667 for d in ./-p ./--version;
2668 do
2669 test -d $d && rmdir $d
2670 done
2671 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2672 if test -f "$ac_aux_dir/mkinstalldirs"; then
2673 mkdir_p='$(mkinstalldirs)'
2674 else
2675 mkdir_p='$(install_sh) -d'
2676 fi
2677fi
2678
2679for ac_prog in gawk mawk nawk awk
2680do
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682set dummy $ac_prog; ac_word=$2
2683echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2685if test "${ac_cv_prog_AWK+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687else
2688 if test -n "$AWK"; then
2689 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690else
2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_AWK="$ac_prog"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702done
2703done
2704
2705fi
2706fi
2707AWK=$ac_cv_prog_AWK
2708if test -n "$AWK"; then
2709 echo "$as_me:$LINENO: result: $AWK" >&5
2710echo "${ECHO_T}$AWK" >&6
2711else
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
2714fi
2715
2716 test -n "$AWK" && break
2717done
2718
979273e3
NN
2719echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2720echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2721set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2722if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725 cat >conftest.make <<\_ACEOF
252b5132 2726all:
979273e3
NN
2727 @echo 'ac_maketemp="$(MAKE)"'
2728_ACEOF
252b5132 2729# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
979273e3 2730eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2731if test -n "$ac_maketemp"; then
2732 eval ac_cv_prog_make_${ac_make}_set=yes
2733else
2734 eval ac_cv_prog_make_${ac_make}_set=no
2735fi
979273e3 2736rm -f conftest.make
252b5132
RH
2737fi
2738if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
979273e3
NN
2739 echo "$as_me:$LINENO: result: yes" >&5
2740echo "${ECHO_T}yes" >&6
252b5132
RH
2741 SET_MAKE=
2742else
979273e3
NN
2743 echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6
252b5132
RH
2745 SET_MAKE="MAKE=${MAKE-make}"
2746fi
2747
8ae85421
AM
2748rm -rf .tst 2>/dev/null
2749mkdir .tst 2>/dev/null
2750if test -d .tst; then
2751 am__leading_dot=.
2752else
2753 am__leading_dot=_
2754fi
2755rmdir .tst 2>/dev/null
2756
2757DEPDIR="${am__leading_dot}deps"
2758
2759 ac_config_commands="$ac_config_commands depfiles"
2760
2761
2762am_make=${MAKE-make}
2763cat > confinc << 'END'
2764am__doit:
2765 @echo done
2766.PHONY: am__doit
2767END
2768# If we don't find an include directive, just comment out the code.
2769echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2770echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2771am__include="#"
2772am__quote=
2773_am_result=none
2774# First try GNU make style include.
2775echo "include confinc" > confmf
2776# We grep out `Entering directory' and `Leaving directory'
2777# messages which can occur if `w' ends up in MAKEFLAGS.
2778# In particular we don't look at `^make:' because GNU make might
2779# be invoked under some other name (usually "gmake"), in which
2780# case it prints its new name instead of `make'.
2781if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2782 am__include=include
2783 am__quote=
2784 _am_result=GNU
2785fi
2786# Now try BSD make style include.
2787if test "$am__include" = "#"; then
2788 echo '.include "confinc"' > confmf
2789 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2790 am__include=.include
2791 am__quote="\""
2792 _am_result=BSD
2793 fi
2794fi
2795
2796
2797echo "$as_me:$LINENO: result: $_am_result" >&5
2798echo "${ECHO_T}$_am_result" >&6
2799rm -f confinc confmf
2800
2801# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2802if test "${enable_dependency_tracking+set}" = set; then
2803 enableval="$enable_dependency_tracking"
2804
2805fi;
2806if test "x$enable_dependency_tracking" != xno; then
2807 am_depcomp="$ac_aux_dir/depcomp"
2808 AMDEPBACKSLASH='\'
2809fi
2810
2811
2812if test "x$enable_dependency_tracking" != xno; then
2813 AMDEP_TRUE=
2814 AMDEP_FALSE='#'
2815else
2816 AMDEP_TRUE='#'
2817 AMDEP_FALSE=
2818fi
252b5132 2819
252b5132 2820
252b5132 2821
8ae85421
AM
2822# test to see if srcdir already configured
2823if test "`cd $srcdir && pwd`" != "`pwd`" &&
2824 test -f $srcdir/config.status; then
979273e3
NN
2825 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2826echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2827 { (exit 1); exit 1; }; }
252b5132 2828fi
979273e3 2829
8ae85421
AM
2830# test whether we have cygpath
2831if test -z "$CYGPATH_W"; then
2832 if (cygpath --version) >/dev/null 2>/dev/null; then
2833 CYGPATH_W='cygpath -w'
2834 else
2835 CYGPATH_W=echo
2836 fi
2837fi
2838
2839
2840# Define the identity of the package.
2841 PACKAGE=opcodes
2842 VERSION=${BFD_VERSION}
2843
2844
979273e3 2845cat >>confdefs.h <<_ACEOF
252b5132 2846#define PACKAGE "$PACKAGE"
979273e3 2847_ACEOF
252b5132 2848
979273e3
NN
2849
2850cat >>confdefs.h <<_ACEOF
252b5132 2851#define VERSION "$VERSION"
979273e3 2852_ACEOF
252b5132 2853
8ae85421 2854# Some tools Automake needs.
252b5132 2855
8ae85421 2856ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
252b5132 2857
8ae85421
AM
2858
2859AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860
2861
2862AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863
2864
2865AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866
2867
2868MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2869
2870install_sh=${install_sh-"$am_aux_dir/install-sh"}
2871
2872# Installed binaries are usually stripped using `strip' when the user
2873# run `make install-strip'. However `strip' might not be the right
2874# tool to use in cross-compilation environments, therefore Automake
2875# will honor the `STRIP' environment variable to overrule this program.
2876if test "$cross_compiling" != no; then
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2879set dummy ${ac_tool_prefix}strip; ac_word=$2
2880echo "$as_me:$LINENO: checking for $ac_word" >&5
2881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2882if test "${ac_cv_prog_STRIP+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2884else
2885 if test -n "$STRIP"; then
2886 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2898 fi
2899done
2900done
2901
2902fi
2903fi
2904STRIP=$ac_cv_prog_STRIP
2905if test -n "$STRIP"; then
2906 echo "$as_me:$LINENO: result: $STRIP" >&5
2907echo "${ECHO_T}$STRIP" >&6
252b5132 2908else
8ae85421
AM
2909 echo "$as_me:$LINENO: result: no" >&5
2910echo "${ECHO_T}no" >&6
252b5132
RH
2911fi
2912
8ae85421
AM
2913fi
2914if test -z "$ac_cv_prog_STRIP"; then
2915 ac_ct_STRIP=$STRIP
2916 # Extract the first word of "strip", so it can be a program name with args.
2917set dummy strip; ac_word=$2
2918echo "$as_me:$LINENO: checking for $ac_word" >&5
2919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2920if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2922else
2923 if test -n "$ac_ct_STRIP"; then
2924 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_ac_ct_STRIP="strip"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
2938done
2939
2940 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2941fi
2942fi
2943ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2944if test -n "$ac_ct_STRIP"; then
2945 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2946echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2947else
8ae85421
AM
2948 echo "$as_me:$LINENO: result: no" >&5
2949echo "${ECHO_T}no" >&6
252b5132
RH
2950fi
2951
8ae85421 2952 STRIP=$ac_ct_STRIP
252b5132 2953else
8ae85421 2954 STRIP="$ac_cv_prog_STRIP"
252b5132
RH
2955fi
2956
8ae85421
AM
2957fi
2958INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2959
2960# We need awk for the "check" target. The system "awk" is bad on
2961# some platforms.
2962# Always define AMTAR for backward compatibility.
2963
2964AMTAR=${AMTAR-"${am_missing_run}tar"}
2965
2966am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2967
2968
2969
2970
2971depcc="$CC" am_compiler_list=
2972
2973echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2974echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2975if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2977else
8ae85421
AM
2978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2979 # We make a subdir and do the tests there. Otherwise we can end up
2980 # making bogus files that we don't know about and never remove. For
2981 # instance it was reported that on HP-UX the gcc test will end up
2982 # making a dummy file named `D' -- because `-MD' means `put the output
2983 # in D'.
2984 mkdir conftest.dir
2985 # Copy depcomp to subdir because otherwise we won't find it if we're
2986 # using a relative directory.
2987 cp "$am_depcomp" conftest.dir
2988 cd conftest.dir
2989 # We will build objects and dependencies in a subdirectory because
2990 # it helps to detect inapplicable dependency modes. For instance
2991 # both Tru64's cc and ICC support -MD to output dependencies as a
2992 # side effect of compilation, but ICC will put the dependencies in
2993 # the current directory while Tru64 will put them in the object
2994 # directory.
2995 mkdir sub
2996
2997 am_cv_CC_dependencies_compiler_type=none
2998 if test "$am_compiler_list" = ""; then
2999 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3000 fi
3001 for depmode in $am_compiler_list; do
3002 # Setup a source with many dependencies, because some compilers
3003 # like to wrap large dependency lists on column 80 (with \), and
3004 # we should not choose a depcomp mode which is confused by this.
3005 #
3006 # We need to recreate these files for each test, as the compiler may
3007 # overwrite some of them when testing with obscure command lines.
3008 # This happens at least with the AIX C compiler.
3009 : > sub/conftest.c
3010 for i in 1 2 3 4 5 6; do
3011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3013 # Solaris 8's {/usr,}/bin/sh.
3014 touch sub/conftst$i.h
3015 done
3016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3017
3018 case $depmode in
3019 nosideeffect)
3020 # after this tag, mechanisms are not by side-effect, so they'll
3021 # only be used when explicitly requested
3022 if test "x$enable_dependency_tracking" = xyes; then
3023 continue
3024 else
3025 break
3026 fi
3027 ;;
3028 none) break ;;
3029 esac
3030 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3031 # mode. It turns out that the SunPro C++ compiler does not properly
3032 # handle `-M -o', and we need to detect this.
3033 if depmode=$depmode \
3034 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3036 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3037 >/dev/null 2>conftest.err &&
3038 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3039 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3040 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3041 # icc doesn't choke on unknown options, it will just issue warnings
3042 # or remarks (even with -Werror). So we grep stderr for any message
3043 # that says an option was ignored or not supported.
3044 # When given -MP, icc 7.0 and 7.1 complain thusly:
3045 # icc: Command line warning: ignoring option '-M'; no argument required
3046 # The diagnosis changed in icc 8.0:
3047 # icc: Command line remark: option '-MP' not supported
3048 if (grep 'ignoring option' conftest.err ||
3049 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3050 am_cv_CC_dependencies_compiler_type=$depmode
3051 break
3052 fi
3053 fi
3054 done
3055
3056 cd ..
3057 rm -rf conftest.dir
3058else
3059 am_cv_CC_dependencies_compiler_type=none
3060fi
3061
252b5132 3062fi
8ae85421
AM
3063echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3064echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3065CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3066
3067
252b5132 3068
8ae85421
AM
3069if
3070 test "x$enable_dependency_tracking" != xno \
3071 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3072 am__fastdepCC_TRUE=
3073 am__fastdepCC_FALSE='#'
252b5132 3074else
8ae85421
AM
3075 am__fastdepCC_TRUE='#'
3076 am__fastdepCC_FALSE=
252b5132
RH
3077fi
3078
3079
3080
8ae85421 3081
979273e3
NN
3082if test -n "$ac_tool_prefix"; then
3083 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
252b5132 3084set dummy ${ac_tool_prefix}ar; ac_word=$2
979273e3
NN
3085echo "$as_me:$LINENO: checking for $ac_word" >&5
3086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3087if test "${ac_cv_prog_AR+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3089else
3090 if test -n "$AR"; then
3091 ac_cv_prog_AR="$AR" # Let the user override the test.
3092else
979273e3
NN
3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_AR="${ac_tool_prefix}ar"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 break 2
3103 fi
3104done
3105done
3106
252b5132
RH
3107fi
3108fi
979273e3 3109AR=$ac_cv_prog_AR
252b5132 3110if test -n "$AR"; then
979273e3
NN
3111 echo "$as_me:$LINENO: result: $AR" >&5
3112echo "${ECHO_T}$AR" >&6
252b5132 3113else
979273e3
NN
3114 echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6
3116fi
3117
252b5132 3118fi
979273e3
NN
3119if test -z "$ac_cv_prog_AR"; then
3120 ac_ct_AR=$AR
3121 # Extract the first word of "ar", so it can be a program name with args.
3122set dummy ar; ac_word=$2
3123echo "$as_me:$LINENO: checking for $ac_word" >&5
3124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128 if test -n "$ac_ct_AR"; then
3129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_ac_ct_AR="ar"
3139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140 break 2
3141 fi
3142done
3143done
252b5132 3144
979273e3
NN
3145fi
3146fi
3147ac_ct_AR=$ac_cv_prog_ac_ct_AR
3148if test -n "$ac_ct_AR"; then
3149 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3150echo "${ECHO_T}$ac_ct_AR" >&6
3151else
3152 echo "$as_me:$LINENO: result: no" >&5
3153echo "${ECHO_T}no" >&6
3154fi
252b5132 3155
979273e3
NN
3156 AR=$ac_ct_AR
3157else
3158 AR="$ac_cv_prog_AR"
3159fi
252b5132 3160
979273e3
NN
3161if test -n "$ac_tool_prefix"; then
3162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
252b5132 3163set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
3164echo "$as_me:$LINENO: checking for $ac_word" >&5
3165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3166if test "${ac_cv_prog_RANLIB+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3168else
3169 if test -n "$RANLIB"; then
3170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3171else
979273e3
NN
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3182 fi
3183done
3184done
3185
252b5132
RH
3186fi
3187fi
979273e3 3188RANLIB=$ac_cv_prog_RANLIB
252b5132 3189if test -n "$RANLIB"; then
979273e3
NN
3190 echo "$as_me:$LINENO: result: $RANLIB" >&5
3191echo "${ECHO_T}$RANLIB" >&6
252b5132 3192else
979273e3
NN
3193 echo "$as_me:$LINENO: result: no" >&5
3194echo "${ECHO_T}no" >&6
252b5132
RH
3195fi
3196
979273e3 3197fi
252b5132 3198if test -z "$ac_cv_prog_RANLIB"; then
979273e3 3199 ac_ct_RANLIB=$RANLIB
252b5132
RH
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201set dummy ranlib; ac_word=$2
979273e3
NN
3202echo "$as_me:$LINENO: checking for $ac_word" >&5
3203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3206else
979273e3
NN
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 3209else
979273e3
NN
3210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211for as_dir in $PATH
3212do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_RANLIB="ranlib"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221done
3222done
3223
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132
RH
3225fi
3226fi
979273e3
NN
3227ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3230echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 3231else
979273e3
NN
3232 echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
252b5132
RH
3234fi
3235
979273e3 3236 RANLIB=$ac_ct_RANLIB
252b5132 3237else
979273e3 3238 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
3239fi
3240
3241
3242# Check whether --enable-shared or --disable-shared was given.
3243if test "${enable_shared+set}" = set; then
3244 enableval="$enable_shared"
3245 p=${PACKAGE-default}
87e6d782 3246case $enableval in
252b5132
RH
3247yes) enable_shared=yes ;;
3248no) enable_shared=no ;;
3249*)
3250 enable_shared=no
3251 # Look at the argument we got. We use all the common list separators.
3252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3253 for pkg in $enableval; do
3254 if test "X$pkg" = "X$p"; then
3255 enable_shared=yes
3256 fi
3257 done
3258 IFS="$ac_save_ifs"
3259 ;;
3260esac
3261else
3262 enable_shared=no
979273e3 3263fi;
252b5132
RH
3264
3265# Check whether --enable-static or --disable-static was given.
3266if test "${enable_static+set}" = set; then
3267 enableval="$enable_static"
3268 p=${PACKAGE-default}
87e6d782 3269case $enableval in
252b5132
RH
3270yes) enable_static=yes ;;
3271no) enable_static=no ;;
3272*)
3273 enable_static=no
3274 # Look at the argument we got. We use all the common list separators.
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3276 for pkg in $enableval; do
3277 if test "X$pkg" = "X$p"; then
3278 enable_static=yes
3279 fi
3280 done
3281 IFS="$ac_save_ifs"
3282 ;;
3283esac
3284else
3285 enable_static=yes
979273e3 3286fi;
252b5132
RH
3287# Check whether --enable-fast-install or --disable-fast-install was given.
3288if test "${enable_fast_install+set}" = set; then
3289 enableval="$enable_fast_install"
3290 p=${PACKAGE-default}
87e6d782 3291case $enableval in
252b5132
RH
3292yes) enable_fast_install=yes ;;
3293no) enable_fast_install=no ;;
3294*)
3295 enable_fast_install=no
3296 # Look at the argument we got. We use all the common list separators.
3297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3298 for pkg in $enableval; do
3299 if test "X$pkg" = "X$p"; then
3300 enable_fast_install=yes
3301 fi
3302 done
3303 IFS="$ac_save_ifs"
3304 ;;
3305esac
3306else
3307 enable_fast_install=yes
979273e3 3308fi;
75798298 3309
252b5132
RH
3310# Check whether --with-gnu-ld or --without-gnu-ld was given.
3311if test "${with_gnu_ld+set}" = set; then
3312 withval="$with_gnu_ld"
3313 test "$withval" = no || with_gnu_ld=yes
3314else
3315 with_gnu_ld=no
979273e3 3316fi;
252b5132 3317ac_prog=ld
87e6d782 3318if test "$GCC" = yes; then
252b5132 3319 # Check if gcc -print-prog-name=ld gives a path.
979273e3
NN
3320 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3321echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3322 case $host in
3323 *-*-mingw*)
3324 # gcc leaves a trailing carriage return which upsets mingw
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3326 *)
3327 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3328 esac
87e6d782 3329 case $ac_prog in
252b5132 3330 # Accept absolute paths.
a74801ba 3331 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
3332 re_direlt='/[^/][^/]*/\.\./'
3333 # Canonicalize the path of ld
3334 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3335 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3336 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3337 done
3338 test -z "$LD" && LD="$ac_prog"
3339 ;;
3340 "")
3341 # If it fails, then pretend we aren't using GCC.
3342 ac_prog=ld
3343 ;;
3344 *)
3345 # If it is relative, then search for the first ld in PATH.
3346 with_gnu_ld=unknown
3347 ;;
3348 esac
3349elif test "$with_gnu_ld" = yes; then
979273e3
NN
3350 echo "$as_me:$LINENO: checking for GNU ld" >&5
3351echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3352else
979273e3
NN
3353 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3354echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3355fi
979273e3
NN
3356if test "${lt_cv_path_LD+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3358else
3359 if test -z "$LD"; then
a74801ba 3360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3361 for ac_dir in $PATH; do
3362 test -z "$ac_dir" && ac_dir=.
a74801ba 3363 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
87e6d782 3364 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3365 # Check to see if the program is GNU ld. I'd rather use --version,
3366 # but apparently some GNU ld's only accept -v.
3367 # Break only if it was the GNU/non-GNU ld that we prefer.
87e6d782 3368 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3369 test "$with_gnu_ld" != no && break
3370 else
3371 test "$with_gnu_ld" != yes && break
3372 fi
3373 fi
3374 done
3375 IFS="$ac_save_ifs"
3376else
87e6d782 3377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3378fi
3379fi
3380
87e6d782 3381LD="$lt_cv_path_LD"
252b5132 3382if test -n "$LD"; then
979273e3
NN
3383 echo "$as_me:$LINENO: result: $LD" >&5
3384echo "${ECHO_T}$LD" >&6
252b5132 3385else
979273e3
NN
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
252b5132 3388fi
979273e3
NN
3389test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3390echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3391 { (exit 1); exit 1; }; }
3392echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3393echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3394if test "${lt_cv_prog_gnu_ld+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3396else
3397 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3398if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
87e6d782 3399 lt_cv_prog_gnu_ld=yes
252b5132 3400else
87e6d782 3401 lt_cv_prog_gnu_ld=no
252b5132
RH
3402fi
3403fi
979273e3
NN
3404echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3405echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
87e6d782 3406with_gnu_ld=$lt_cv_prog_gnu_ld
ac48eca1
AO
3407
3408
979273e3
NN
3409echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3410echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3411if test "${lt_cv_ld_reload_flag+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3413else
3414 lt_cv_ld_reload_flag='-r'
3415fi
979273e3
NN
3416echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3417echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3418reload_flag=$lt_cv_ld_reload_flag
3419test -n "$reload_flag" && reload_flag=" $reload_flag"
252b5132 3420
979273e3
NN
3421echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3422echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3423if test "${lt_cv_path_NM+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3425else
3426 if test -n "$NM"; then
3427 # Let the user override the test.
87e6d782 3428 lt_cv_path_NM="$NM"
252b5132 3429else
a74801ba 3430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3431 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3432 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3433 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3434 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3435 # Check to see if the nm accepts a BSD-compat flag.
3436 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3437 # nm: unknown option "B" ignored
90f2472a
AO
3438 # Tru64's nm complains that /dev/null is an invalid object file
3439 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
87e6d782 3440 lt_cv_path_NM="$tmp_nm -B"
252b5132 3441 break
ac48eca1 3442 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
87e6d782 3443 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3444 break
3445 else
87e6d782 3446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3447 continue # so that we can try to find one that supports BSD flags
3448 fi
3449 fi
3450 done
3451 IFS="$ac_save_ifs"
87e6d782 3452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3453fi
3454fi
3455
87e6d782 3456NM="$lt_cv_path_NM"
979273e3
NN
3457echo "$as_me:$LINENO: result: $NM" >&5
3458echo "${ECHO_T}$NM" >&6
252b5132 3459
979273e3
NN
3460echo "$as_me:$LINENO: checking whether ln -s works" >&5
3461echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3462LN_S=$as_ln_s
3463if test "$LN_S" = "ln -s"; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465echo "${ECHO_T}yes" >&6
252b5132 3466else
979273e3
NN
3467 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3468echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3469fi
3470
979273e3
NN
3471echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3472echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3473if test "${lt_cv_deplibs_check_method+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3475else
d64552c5 3476 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3477lt_cv_file_magic_test_file=
3478lt_cv_deplibs_check_method='unknown'
3479# Need to set the preceding variable on all platforms that support
3480# interlibrary dependencies.
3481# 'none' -- dependencies not supported.
3482# `unknown' -- same as none, but documents that we really don't know.
3483# 'pass_all' -- all dependencies passed with no checks.
3484# 'test_compile' -- check by making test program.
3485# 'file_magic [regex]' -- check by looking for files in library path
3486# which responds to the $file_magic_cmd with a given egrep regex.
3487# If you have `file' or equivalent on your system and you're not sure
3488# whether `pass_all' will *always* work, you probably want this one.
3489
87e6d782
NC
3490case $host_os in
3491aix*)
ac48eca1
AO
3492 lt_cv_deplibs_check_method=pass_all
3493 ;;
3494
3495beos*)
3496 lt_cv_deplibs_check_method=pass_all
3497 ;;
3498
3499bsdi4*)
87e6d782
NC
3500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3501 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3502 lt_cv_file_magic_test_file=/shlib/libc.so
3503 ;;
3504
d64552c5 3505cygwin* | mingw* |pw32*)
ac48eca1 3506 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3507 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3508 ;;
3509
87e6d782
NC
3510darwin* | rhapsody*)
3511 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3512 lt_cv_file_magic_cmd='/usr/bin/file -L'
3513 case "$host_os" in
3514 rhapsody* | darwin1.012)
3515 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 ;;
3517 *) # Darwin 1.3 on
3518 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 ;;
3520 esac
3521 ;;
3522
979273e3 3523freebsd* | kfreebsd*-gnu)
ac48eca1 3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
87e6d782 3525 case $host_cpu in
ac48eca1 3526 i*86 )
90f2472a
AO
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
87e6d782
NC
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3532 ;;
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3536 fi
3537 ;;
3538
3539gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3541 ;;
3542
87e6d782 3543hpux10.20*|hpux11*)
4867be41
DJ
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3549 ;;
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3554 ;;
3555 esac
ac48eca1
AO
3556 ;;
3557
3558irix5* | irix6*)
87e6d782 3559 case $host_os in
ac48eca1
AO
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3563 ;;
3564 *)
87e6d782 3565 case $LD in
ac48eca1
AO
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
87e6d782
NC
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3573 ;;
ac48eca1
AO
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3577 ;;
3578
3579# This must be Linux ELF.
90f2472a 3580linux-gnu*)
87e6d782 3581 case $host_cpu in
71bee782 3582 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3583 lt_cv_deplibs_check_method=pass_all ;;
3584 *)
3585 # glibc up to 2.1.1 does not perform some relocations on ARM
87e6d782
NC
3586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3587 esac
ac48eca1
AO
3588 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3589 ;;
3590
979273e3 3591netbsd* | knetbsd*-gnu)
87e6d782
NC
3592 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3593 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3594 else
87e6d782 3595 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3596 fi
3597 ;;
3598
87e6d782
NC
3599newsos6)
3600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3601 lt_cv_file_magic_cmd=/usr/bin/file
3602 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3603 ;;
3604
ac48eca1
AO
3605osf3* | osf4* | osf5*)
3606 # this will be overridden with pass_all, but let us keep it just in case
3607 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3608 lt_cv_file_magic_test_file=/shlib/libc.so
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611
3612sco3.2v5*)
3613 lt_cv_deplibs_check_method=pass_all
3614 ;;
3615
3616solaris*)
3617 lt_cv_deplibs_check_method=pass_all
3618 lt_cv_file_magic_test_file=/lib/libc.so
3619 ;;
3620
6be7c12c
AO
3621sysv5uw[78]* | sysv4*uw2*)
3622 lt_cv_deplibs_check_method=pass_all
3623 ;;
3624
ac48eca1 3625sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
87e6d782 3626 case $host_vendor in
ac48eca1
AO
3627 ncr)
3628 lt_cv_deplibs_check_method=pass_all
3629 ;;
3630 motorola)
87e6d782
NC
3631 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]'
3632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
979273e3
NN
3633 ;;
3634 esac
3635 ;;
3636esac
ac48eca1 3637
979273e3
NN
3638fi
3639echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3640echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3641file_magic_cmd=$lt_cv_file_magic_cmd
3642deplibs_check_method=$lt_cv_deplibs_check_method
ac48eca1
AO
3643
3644
ac48eca1 3645
ac48eca1
AO
3646
3647# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3648
3649# Only perform the check for file, if the check method requires it
87e6d782 3650case $deplibs_check_method in
ac48eca1 3651file_magic*)
d64552c5 3652 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
979273e3
NN
3653 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3654echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3655if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3657else
87e6d782 3658 case $MAGIC_CMD in
ac48eca1 3659 /*)
d64552c5 3660 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3661 ;;
3662 ?:/*)
d64552c5 3663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3664 ;;
3665 *)
d64552c5 3666 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 ac_dummy="/usr/bin:$PATH"
3669 for ac_dir in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir=.
3671 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3672 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3673 if test -n "$file_magic_test_file"; then
87e6d782 3674 case $deplibs_check_method in
ac48eca1
AO
3675 "file_magic "*)
3676 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3678 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3679 egrep "$file_magic_regex" > /dev/null; then
3680 :
3681 else
3682 cat <<EOF 1>&2
3683
3684*** Warning: the command libtool uses to detect shared libraries,
3685*** $file_magic_cmd, produces output that libtool cannot recognize.
3686*** The result is that libtool may fail to recognize shared libraries
3687*** as such. This will affect the creation of libtool libraries that
3688*** depend on shared libraries, but programs linked with such libtool
3689*** libraries will work regardless of this problem. Nevertheless, you
3690*** may want to report the problem to your system manager and/or to
3691*** bug-libtool@gnu.org
3692
3693EOF
3694 fi ;;
3695 esac
3696 fi
3697 break
3698 fi
3699 done
3700 IFS="$ac_save_ifs"
d64552c5 3701 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3702 ;;
3703esac
3704fi
3705
d64552c5
AO
3706MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3707if test -n "$MAGIC_CMD"; then
979273e3
NN
3708 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3709echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3710else
979273e3
NN
3711 echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
ac48eca1
AO
3713fi
3714
d64552c5 3715if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3716 if test -n "$ac_tool_prefix"; then
979273e3
NN
3717 echo "$as_me:$LINENO: checking for file" >&5
3718echo $ECHO_N "checking for file... $ECHO_C" >&6
3719if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3721else
87e6d782 3722 case $MAGIC_CMD in
ac48eca1 3723 /*)
d64552c5 3724 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3725 ;;
3726 ?:/*)
d64552c5 3727 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3728 ;;
3729 *)
d64552c5 3730 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3732 ac_dummy="/usr/bin:$PATH"
3733 for ac_dir in $ac_dummy; do
3734 test -z "$ac_dir" && ac_dir=.
3735 if test -f $ac_dir/file; then
d64552c5 3736 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3737 if test -n "$file_magic_test_file"; then
87e6d782 3738 case $deplibs_check_method in
ac48eca1
AO
3739 "file_magic "*)
3740 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3743 egrep "$file_magic_regex" > /dev/null; then
3744 :
3745 else
3746 cat <<EOF 1>&2
3747
3748*** Warning: the command libtool uses to detect shared libraries,
3749*** $file_magic_cmd, produces output that libtool cannot recognize.
3750*** The result is that libtool may fail to recognize shared libraries
3751*** as such. This will affect the creation of libtool libraries that
3752*** depend on shared libraries, but programs linked with such libtool
3753*** libraries will work regardless of this problem. Nevertheless, you
3754*** may want to report the problem to your system manager and/or to
3755*** bug-libtool@gnu.org
3756
3757EOF
3758 fi ;;
3759 esac
3760 fi
3761 break
3762 fi
3763 done
3764 IFS="$ac_save_ifs"
d64552c5 3765 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3766 ;;
3767esac
3768fi
3769
d64552c5
AO
3770MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3771if test -n "$MAGIC_CMD"; then
979273e3
NN
3772 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3773echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3774else
979273e3
NN
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
ac48eca1
AO
3777fi
3778
3779 else
d64552c5 3780 MAGIC_CMD=:
ac48eca1
AO
3781 fi
3782fi
3783
3784 fi
3785 ;;
3786esac
3787
979273e3
NN
3788if test -n "$ac_tool_prefix"; then
3789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
979273e3
NN
3791echo "$as_me:$LINENO: checking for $ac_word" >&5
3792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793if test "${ac_cv_prog_RANLIB+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3795else
3796 if test -n "$RANLIB"; then
3797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3798else
979273e3
NN
3799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800for as_dir in $PATH
3801do
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3809 fi
3810done
3811done
3812
ac48eca1
AO
3813fi
3814fi
979273e3 3815RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3816if test -n "$RANLIB"; then
979273e3
NN
3817 echo "$as_me:$LINENO: result: $RANLIB" >&5
3818echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3819else
979273e3
NN
3820 echo "$as_me:$LINENO: result: no" >&5
3821echo "${ECHO_T}no" >&6
ac48eca1
AO
3822fi
3823
979273e3 3824fi
ac48eca1 3825if test -z "$ac_cv_prog_RANLIB"; then
979273e3 3826 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3827 # Extract the first word of "ranlib", so it can be a program name with args.
3828set dummy ranlib; ac_word=$2
979273e3
NN
3829echo "$as_me:$LINENO: checking for $ac_word" >&5
3830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3833else
979273e3
NN
3834 if test -n "$ac_ct_RANLIB"; then
3835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ac48eca1 3836else
979273e3
NN
3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838for as_dir in $PATH
3839do
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844 ac_cv_prog_ac_ct_RANLIB="ranlib"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3847 fi
3848done
3849done
3850
3851 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3852fi
3853fi
979273e3
NN
3854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3855if test -n "$ac_ct_RANLIB"; then
3856 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3857echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3858else
979273e3
NN
3859 echo "$as_me:$LINENO: result: no" >&5
3860echo "${ECHO_T}no" >&6
ac48eca1
AO
3861fi
3862
979273e3 3863 RANLIB=$ac_ct_RANLIB
ac48eca1 3864else
979273e3 3865 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3866fi
3867
979273e3
NN
3868if test -n "$ac_tool_prefix"; then
3869 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3870set dummy ${ac_tool_prefix}strip; ac_word=$2
979273e3
NN
3871echo "$as_me:$LINENO: checking for $ac_word" >&5
3872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873if test "${ac_cv_prog_STRIP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3875else
3876 if test -n "$STRIP"; then
3877 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3878else
979273e3
NN
3879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890done
3891done
3892
ac48eca1
AO
3893fi
3894fi
979273e3 3895STRIP=$ac_cv_prog_STRIP
ac48eca1 3896if test -n "$STRIP"; then
979273e3
NN
3897 echo "$as_me:$LINENO: result: $STRIP" >&5
3898echo "${ECHO_T}$STRIP" >&6
ac48eca1 3899else
979273e3
NN
3900 echo "$as_me:$LINENO: result: no" >&5
3901echo "${ECHO_T}no" >&6
ac48eca1
AO
3902fi
3903
979273e3 3904fi
ac48eca1 3905if test -z "$ac_cv_prog_STRIP"; then
979273e3 3906 ac_ct_STRIP=$STRIP
ac48eca1
AO
3907 # Extract the first word of "strip", so it can be a program name with args.
3908set dummy strip; ac_word=$2
979273e3
NN
3909echo "$as_me:$LINENO: checking for $ac_word" >&5
3910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3913else
979273e3
NN
3914 if test -n "$ac_ct_STRIP"; then
3915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3916else
979273e3
NN
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_ac_ct_STRIP="strip"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 break 2
3927 fi
3928done
3929done
3930
3931 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3932fi
3933fi
979273e3
NN
3934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3935if test -n "$ac_ct_STRIP"; then
3936 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3937echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3938else
979273e3
NN
3939 echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6
ac48eca1
AO
3941fi
3942
979273e3 3943 STRIP=$ac_ct_STRIP
ac48eca1 3944else
979273e3 3945 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3946fi
3947
252b5132
RH
3948
3949# Check for any special flags to pass to ltconfig.
3950libtool_flags="--cache-file=$cache_file"
3951test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3952test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3953test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
87e6d782
NC
3954test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3955test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3956
a74801ba
ILT
3957
3958# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3959if test "${enable_libtool_lock+set}" = set; then
3960 enableval="$enable_libtool_lock"
a74801ba 3961
979273e3 3962fi;
a74801ba
ILT
3963test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3964test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3965
979273e3 3966
ac48eca1
AO
3967# Check whether --with-pic or --without-pic was given.
3968if test "${with_pic+set}" = set; then
3969 withval="$with_pic"
3970 pic_mode="$withval"
3971else
3972 pic_mode=default
979273e3 3973fi;
ac48eca1
AO
3974test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3975test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3976
252b5132
RH
3977# Some flags need to be propagated to the compiler or linker for good
3978# libtool support.
87e6d782 3979case $host in
252b5132
RH
3980*-*-irix6*)
3981 # Find out which ABI we are using.
1ad12f97 3982 echo '#line 3982 "configure"' > conftest.$ac_ext
979273e3
NN
3983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3984 (eval $ac_compile) 2>&5
3985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); }; then
e0001a05
NC
3988 if test "$lt_cv_prog_gnu_ld" = yes; then
3989 case `/usr/bin/file conftest.$ac_objext` in
3990 *32-bit*)
3991 LD="${LD-ld} -melf32bsmip"
3992 ;;
3993 *N32*)
3994 LD="${LD-ld} -melf32bmipn32"
3995 ;;
3996 *64-bit*)
3997 LD="${LD-ld} -melf64bmip"
3998 ;;
3999 esac
4000 else
87e6d782 4001 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
4002 *32-bit*)
4003 LD="${LD-ld} -32"
4004 ;;
4005 *N32*)
4006 LD="${LD-ld} -n32"
4007 ;;
4008 *64-bit*)
4009 LD="${LD-ld} -64"
4010 ;;
4011 esac
e0001a05 4012 fi
252b5132
RH
4013 fi
4014 rm -rf conftest*
4015 ;;
4016
4867be41
DJ
4017ia64-*-hpux*)
4018 # Find out which ABI we are using.
4019 echo 'int i;' > conftest.$ac_ext
979273e3
NN
4020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; then
4867be41
DJ
4025 case "`/usr/bin/file conftest.o`" in
4026 *ELF-32*)
4027 HPUX_IA64_MODE="32"
4028 ;;
4029 *ELF-64*)
4030 HPUX_IA64_MODE="64"
4031 ;;
4032 esac
4033 fi
4034 rm -rf conftest*
4035 ;;
4036
252b5132
RH
4037*-*-sco3.2v5*)
4038 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4039 SAVE_CFLAGS="$CFLAGS"
4040 CFLAGS="$CFLAGS -belf"
979273e3
NN
4041 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4042echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4043if test "${lt_cv_cc_needs_belf+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4045else
979273e3
NN
4046
4047
ac48eca1 4048 ac_ext=c
ac48eca1 4049ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4053
979273e3
NN
4054 cat >conftest.$ac_ext <<_ACEOF
4055/* confdefs.h. */
4056_ACEOF
4057cat confdefs.h >>conftest.$ac_ext
4058cat >>conftest.$ac_ext <<_ACEOF
4059/* end confdefs.h. */
252b5132 4060
979273e3
NN
4061int
4062main ()
4063{
252b5132 4064
979273e3
NN
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext conftest$ac_exeext
4070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4071 (eval $ac_link) 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } &&
8ae85421
AM
4078 { ac_try='test -z "$ac_c_werror_flag"
4079 || test ! -s conftest.err'
979273e3
NN
4080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4081 (eval $ac_try) 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; } &&
4085 { ac_try='test -s conftest$ac_exeext'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4087 (eval $ac_try) 2>&5
4088 ac_status=$?
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
252b5132
RH
4091 lt_cv_cc_needs_belf=yes
4092else
979273e3
NN
4093 echo "$as_me: failed program was:" >&5
4094sed 's/^/| /' conftest.$ac_ext >&5
4095
4096lt_cv_cc_needs_belf=no
252b5132 4097fi
979273e3
NN
4098rm -f conftest.err conftest.$ac_objext \
4099 conftest$ac_exeext conftest.$ac_ext
ac48eca1 4100 ac_ext=c
ac48eca1 4101ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
4102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4105
252b5132 4106fi
979273e3
NN
4107echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4108echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
4109 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4110 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4111 CFLAGS="$SAVE_CFLAGS"
4112 fi
4113 ;;
4114
252b5132
RH
4115
4116esac
4117
252b5132
RH
4118
4119# Save cache, so that ltconfig can load it
979273e3 4120cat >confcache <<\_ACEOF
252b5132
RH
4121# This file is a shell script that caches the results of configure
4122# tests run on this system so they can be shared between configure
979273e3
NN
4123# scripts and configure runs, see configure's option --config-cache.
4124# It is not useful on other systems. If it contains results you don't
4125# want to keep, you may remove or edit it.
252b5132 4126#
979273e3
NN
4127# config.status only pays attention to the cache file if you give it
4128# the --recheck option to rerun configure.
252b5132 4129#
979273e3
NN
4130# `ac_cv_env_foo' variables (set or unset) will be overridden when
4131# loading this file, other *unset* `ac_cv_foo' will be assigned the
4132# following values.
4133
4134_ACEOF
4135
252b5132
RH
4136# The following way of writing the cache mishandles newlines in values,
4137# but we know of no workaround that is simple, portable, and efficient.
4138# So, don't put newlines in cache variables' values.
4139# Ultrix sh set writes to stderr and can't be redirected directly,
4140# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
4141{
4142 (set) 2>&1 |
4143 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4144 *ac_space=\ *)
4145 # `set' does not quote correctly, so add quotes (double-quote
4146 # substitution turns \\\\ into \\, and sed turns \\ into \).
4147 sed -n \
4148 "s/'/'\\\\''/g;
4149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4150 ;;
4151 *)
4152 # `set' quotes correctly as required by POSIX, so do not add quotes.
4153 sed -n \
4154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4155 ;;
4156 esac;
4157} |
4158 sed '
4159 t clear
4160 : clear
4161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4162 t end
4163 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4164 : end' >>confcache
4165if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 4166 if test -w $cache_file; then
979273e3
NN
4167 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4168 cat confcache >$cache_file
252b5132
RH
4169 else
4170 echo "not updating unwritable cache $cache_file"
4171 fi
4172fi
4173rm -f confcache
4174
252b5132 4175# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4176AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4177MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4178LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4179AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4180objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4181deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4182${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4183$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
979273e3
NN
4184|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4185echo "$as_me: error: libtool configure failed" >&2;}
4186 { (exit 1); exit 1; }; }
252b5132
RH
4187
4188# Reload cache, that may have been modified by ltconfig
4189if test -r "$cache_file"; then
979273e3
NN
4190 # Some versions of bash will fail to source /dev/null (special
4191 # files actually), so we avoid doing that.
4192 if test -f "$cache_file"; then
4193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4194echo "$as_me: loading cache $cache_file" >&6;}
4195 case $cache_file in
4196 [\\/]* | ?:[\\/]* ) . $cache_file;;
4197 *) . ./$cache_file;;
4198 esac
4199 fi
252b5132 4200else
979273e3
NN
4201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4202echo "$as_me: creating cache $cache_file" >&6;}
4203 >$cache_file
252b5132
RH
4204fi
4205
4206
4207# This can be used to rebuild libtool when needed
ac48eca1 4208LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
4209
4210# Always use our own libtool.
4211LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4212
4213# Redirect the config.log output again, so that the ltconfig log is not
4214# clobbered by the next message.
4215exec 5>>./config.log
4216
ac48eca1 4217
979273e3
NN
4218
4219
4220
4221
ac48eca1 4222
252b5132
RH
4223# Check whether --enable-targets or --disable-targets was given.
4224if test "${enable_targets+set}" = set; then
4225 enableval="$enable_targets"
4226 case "${enableval}" in
979273e3
NN
4227 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4228echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4229 { (exit 1); exit 1; }; }
252b5132
RH
4230 ;;
4231 no) enable_targets= ;;
4232 *) enable_targets=$enableval ;;
4233esac
979273e3 4234fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4235if test "${enable_commonbfdlib+set}" = set; then
4236 enableval="$enable_commonbfdlib"
4237 case "${enableval}" in
4238 yes) commonbfdlib=true ;;
4239 no) commonbfdlib=false ;;
979273e3
NN
4240 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
4241echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
4242 { (exit 1); exit 1; }; } ;;
252b5132 4243esac
979273e3 4244fi;
0218d1e4 4245build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4246
569acd2c
NC
4247# Check whether --enable-werror or --disable-werror was given.
4248if test "${enable_werror+set}" = set; then
4249 enableval="$enable_werror"
1ad12f97
NC
4250 case "${enableval}" in
4251 yes | y) ERROR_ON_WARNING="yes" ;;
4252 no | n) ERROR_ON_WARNING="no" ;;
569acd2c
NC
4253 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4254echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
1ad12f97
NC
4255 { (exit 1); exit 1; }; } ;;
4256 esac
4257fi;
4258
569acd2c 4259# Enable -Werror by default, suppressing it only for --disable-werror
1ad12f97
NC
4260# or --disable-build-warnings.
4261if test "${ERROR_ON_WARNING}" != no
4262then
4263 build_warnings="$build_warnings -Werror"
4264fi
4265
a2d91340
AC
4266# Check whether --enable-build-warnings or --disable-build-warnings was given.
4267if test "${enable_build_warnings+set}" = set; then
4268 enableval="$enable_build_warnings"
4269 case "${enableval}" in
4270 yes) ;;
4271 no) build_warnings="-w";;
4272 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4273 build_warnings="${build_warnings} ${t}";;
4274 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4275 build_warnings="${t} ${build_warnings}";;
4276 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4277esac
4278if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4279 echo "Setting warning flags = $build_warnings" 6>&1
4280fi
979273e3 4281fi; WARN_CFLAGS=""
a2d91340
AC
4282if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4283 WARN_CFLAGS="${build_warnings}"
4284fi
4285
4286
979273e3 4287 ac_config_headers="$ac_config_headers config.h:config.in"
252b5132 4288
252b5132
RH
4289
4290if test -z "$target" ; then
979273e3
NN
4291 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4292echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4293 { (exit 1); exit 1; }; }
252b5132 4294fi
252b5132 4295
979273e3
NN
4296echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4297echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
4298 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4299if test "${enable_maintainer_mode+set}" = set; then
4300 enableval="$enable_maintainer_mode"
4301 USE_MAINTAINER_MODE=$enableval
4302else
4303 USE_MAINTAINER_MODE=no
979273e3
NN
4304fi;
4305 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4306echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 4307
252b5132
RH
4308
4309if test $USE_MAINTAINER_MODE = yes; then
4310 MAINTAINER_MODE_TRUE=
4311 MAINTAINER_MODE_FALSE='#'
4312else
4313 MAINTAINER_MODE_TRUE='#'
4314 MAINTAINER_MODE_FALSE=
4315fi
8ae85421 4316
252b5132 4317 MAINT=$MAINTAINER_MODE_TRUE
252b5132 4318
979273e3 4319
24443139
AS
4320 case ${build_alias} in
4321 "") build_noncanonical=${build} ;;
4322 *) build_noncanonical=${build_alias} ;;
4323esac
4324
4325 case ${host_alias} in
4326 "") host_noncanonical=${build_noncanonical} ;;
4327 *) host_noncanonical=${host_alias} ;;
4328esac
4329
4330 case ${target_alias} in
4331 "") target_noncanonical=${host_noncanonical} ;;
4332 *) target_noncanonical=${target_alias} ;;
4333esac
4334
979273e3
NN
4335echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4336echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
81172ff2
AM
4337 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4338if test "${enable_install_libbfd+set}" = set; then
4339 enableval="$enable_install_libbfd"
4340 install_libbfd_p=$enableval
4341else
2469cfa2 4342 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
81172ff2
AM
4343 install_libbfd_p=yes
4344 else
4345 install_libbfd_p=no
4346 fi
979273e3
NN
4347fi;
4348 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4349echo "${ECHO_T}$install_libbfd_p" >&6
81172ff2 4350
81172ff2
AM
4351
4352if test $install_libbfd_p = yes; then
4353 INSTALL_LIBBFD_TRUE=
4354 INSTALL_LIBBFD_FALSE='#'
4355else
4356 INSTALL_LIBBFD_TRUE='#'
4357 INSTALL_LIBBFD_FALSE=
4358fi
8ae85421 4359
979273e3 4360 # Need _noncanonical variables for this.
24443139
AS
4361
4362
4363
4364
81172ff2
AM
4365 # libbfd.a is a host library containing target dependent code
4366 bfdlibdir='$(libdir)'
4367 bfdincludedir='$(includedir)'
4368 if test "${host}" != "${target}"; then
979273e3
NN
4369 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4370 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
81172ff2 4371 fi
81172ff2
AM
4372
4373
252b5132
RH
4374
4375
979273e3
NN
4376
4377
4378# host-specific stuff:
4379
4380ac_ext=c
4381ac_cpp='$CPP $CPPFLAGS'
4382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4387set dummy ${ac_tool_prefix}gcc; ac_word=$2
4388echo "$as_me:$LINENO: checking for $ac_word" >&5
4389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390if test "${ac_cv_prog_CC+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4392else
979273e3
NN
4393 if test -n "$CC"; then
4394 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4395else
979273e3
NN
4396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
252b5132 4406 fi
979273e3
NN
4407done
4408done
4409
4410fi
252b5132 4411fi
979273e3
NN
4412CC=$ac_cv_prog_CC
4413if test -n "$CC"; then
4414 echo "$as_me:$LINENO: result: $CC" >&5
4415echo "${ECHO_T}$CC" >&6
4416else
4417 echo "$as_me:$LINENO: result: no" >&5
4418echo "${ECHO_T}no" >&6
252b5132
RH
4419fi
4420
979273e3
NN
4421fi
4422if test -z "$ac_cv_prog_CC"; then
4423 ac_ct_CC=$CC
4424 # Extract the first word of "gcc", so it can be a program name with args.
4425set dummy gcc; ac_word=$2
4426echo "$as_me:$LINENO: checking for $ac_word" >&5
4427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4428if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431 if test -n "$ac_ct_CC"; then
4432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4433else
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_ac_ct_CC="gcc"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 break 2
4444 fi
4445done
4446done
252b5132 4447
979273e3
NN
4448fi
4449fi
4450ac_ct_CC=$ac_cv_prog_ac_ct_CC
4451if test -n "$ac_ct_CC"; then
4452 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4453echo "${ECHO_T}$ac_ct_CC" >&6
4454else
4455 echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6
4457fi
252b5132 4458
979273e3
NN
4459 CC=$ac_ct_CC
4460else
4461 CC="$ac_cv_prog_CC"
4462fi
252b5132 4463
979273e3
NN
4464if test -z "$CC"; then
4465 if test -n "$ac_tool_prefix"; then
4466 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4467set dummy ${ac_tool_prefix}cc; ac_word=$2
4468echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470if test "${ac_cv_prog_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4472else
4473 if test -n "$CC"; then
4474 ac_cv_prog_CC="$CC" # Let the user override the test.
4475else
979273e3
NN
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483 ac_cv_prog_CC="${ac_tool_prefix}cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485 break 2
4486 fi
4487done
4488done
4489
252b5132
RH
4490fi
4491fi
979273e3 4492CC=$ac_cv_prog_CC
252b5132 4493if test -n "$CC"; then
979273e3
NN
4494 echo "$as_me:$LINENO: result: $CC" >&5
4495echo "${ECHO_T}$CC" >&6
4496else
4497 echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6
4499fi
4500
4501fi
4502if test -z "$ac_cv_prog_CC"; then
4503 ac_ct_CC=$CC
4504 # Extract the first word of "cc", so it can be a program name with args.
4505set dummy cc; ac_word=$2
4506echo "$as_me:$LINENO: checking for $ac_word" >&5
4507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4508if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510else
4511 if test -n "$ac_ct_CC"; then
4512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_ac_ct_CC="cc"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4524 fi
4525done
4526done
4527
4528fi
4529fi
4530ac_ct_CC=$ac_cv_prog_ac_ct_CC
4531if test -n "$ac_ct_CC"; then
4532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4533echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4534else
979273e3
NN
4535 echo "$as_me:$LINENO: result: no" >&5
4536echo "${ECHO_T}no" >&6
252b5132
RH
4537fi
4538
979273e3
NN
4539 CC=$ac_ct_CC
4540else
4541 CC="$ac_cv_prog_CC"
4542fi
4543
4544fi
252b5132
RH
4545if test -z "$CC"; then
4546 # Extract the first word of "cc", so it can be a program name with args.
4547set dummy cc; ac_word=$2
979273e3
NN
4548echo "$as_me:$LINENO: checking for $ac_word" >&5
4549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550if test "${ac_cv_prog_CC+set}" = set; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4552else
4553 if test -n "$CC"; then
4554 ac_cv_prog_CC="$CC" # Let the user override the test.
4555else
252b5132 4556 ac_prog_rejected=no
979273e3
NN
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4565 ac_prog_rejected=yes
4566 continue
4567 fi
4568 ac_cv_prog_CC="cc"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573done
4574
252b5132
RH
4575if test $ac_prog_rejected = yes; then
4576 # We found a bogon in the path, so make sure we never use it.
4577 set dummy $ac_cv_prog_CC
4578 shift
979273e3 4579 if test $# != 0; then
252b5132
RH
4580 # We chose a different compiler from the bogus one.
4581 # However, it has the same basename, so the bogon will be chosen
4582 # first if we set CC to just the basename; use the full file name.
4583 shift
979273e3 4584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
4585 fi
4586fi
4587fi
4588fi
979273e3 4589CC=$ac_cv_prog_CC
252b5132 4590if test -n "$CC"; then
979273e3
NN
4591 echo "$as_me:$LINENO: result: $CC" >&5
4592echo "${ECHO_T}$CC" >&6
252b5132 4593else
979273e3
NN
4594 echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6
252b5132
RH
4596fi
4597
979273e3
NN
4598fi
4599if test -z "$CC"; then
4600 if test -n "$ac_tool_prefix"; then
4601 for ac_prog in cl
4602 do
4603 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4604set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4605echo "$as_me:$LINENO: checking for $ac_word" >&5
4606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607if test "${ac_cv_prog_CC+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4609else
4610 if test -n "$CC"; then
4611 ac_cv_prog_CC="$CC" # Let the user override the test.
4612else
979273e3
NN
4613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624done
4625done
4626
4627fi
4628fi
4629CC=$ac_cv_prog_CC
4630if test -n "$CC"; then
4631 echo "$as_me:$LINENO: result: $CC" >&5
4632echo "${ECHO_T}$CC" >&6
4633else
4634 echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6
4636fi
4637
4638 test -n "$CC" && break
252b5132 4639 done
252b5132 4640fi
979273e3
NN
4641if test -z "$CC"; then
4642 ac_ct_CC=$CC
4643 for ac_prog in cl
4644do
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646set dummy $ac_prog; ac_word=$2
4647echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652 if test -n "$ac_ct_CC"; then
4653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_CC="$ac_prog"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666done
4667done
4668
4669fi
4670fi
4671ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672if test -n "$ac_ct_CC"; then
4673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4674echo "${ECHO_T}$ac_ct_CC" >&6
4675else
4676 echo "$as_me:$LINENO: result: no" >&5
4677echo "${ECHO_T}no" >&6
4678fi
4679
4680 test -n "$ac_ct_CC" && break
4681done
4682
4683 CC=$ac_ct_CC
4684fi
4685
4686fi
4687
4688
4689test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4690See \`config.log' for more details." >&5
4691echo "$as_me: error: no acceptable C compiler found in \$PATH
4692See \`config.log' for more details." >&2;}
4693 { (exit 1); exit 1; }; }
4694
4695# Provide some information about the compiler.
4696echo "$as_me:$LINENO:" \
4697 "checking for C compiler version" >&5
4698ac_compiler=`set X $ac_compile; echo $2`
4699{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4700 (eval $ac_compiler --version </dev/null >&5) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4705 (eval $ac_compiler -v </dev/null >&5) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4709{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4710 (eval $ac_compiler -V </dev/null >&5) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }
4714
4715echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4716echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4717if test "${ac_cv_c_compiler_gnu+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720 cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726
4727int
4728main ()
4729{
4730#ifndef __GNUC__
4731 choke me
4732#endif
4733
4734 ;
4735 return 0;
4736}
4737_ACEOF
4738rm -f conftest.$ac_objext
4739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
8ae85421
AM
4747 { ac_try='test -z "$ac_c_werror_flag"
4748 || test ! -s conftest.err'
979273e3
NN
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4756 (eval $ac_try) 2>&5
4757 ac_status=$?
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_compiler_gnu=yes
4761else
4762 echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765ac_compiler_gnu=no
4766fi
4767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4768ac_cv_c_compiler_gnu=$ac_compiler_gnu
4769
4770fi
4771echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4772echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4773GCC=`test $ac_compiler_gnu = yes && echo yes`
4774ac_test_CFLAGS=${CFLAGS+set}
4775ac_save_CFLAGS=$CFLAGS
4776CFLAGS="-g"
4777echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4778echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4779if test "${ac_cv_prog_cc_g+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781else
4782 cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h. */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h. */
4788
4789int
4790main ()
4791{
4792
4793 ;
4794 return 0;
4795}
4796_ACEOF
4797rm -f conftest.$ac_objext
4798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
8ae85421
AM
4806 { ac_try='test -z "$ac_c_werror_flag"
4807 || test ! -s conftest.err'
979273e3
NN
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; } &&
4813 { ac_try='test -s conftest.$ac_objext'
4814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 (eval $ac_try) 2>&5
4816 ac_status=$?
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); }; }; then
4819 ac_cv_prog_cc_g=yes
4820else
4821 echo "$as_me: failed program was:" >&5
4822sed 's/^/| /' conftest.$ac_ext >&5
4823
4824ac_cv_prog_cc_g=no
4825fi
4826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 4827fi
979273e3
NN
4828echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4829echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4830if test "$ac_test_CFLAGS" = set; then
4831 CFLAGS=$ac_save_CFLAGS
4832elif test $ac_cv_prog_cc_g = yes; then
4833 if test "$GCC" = yes; then
4834 CFLAGS="-g -O2"
4835 else
4836 CFLAGS="-g"
4837 fi
252b5132 4838else
979273e3
NN
4839 if test "$GCC" = yes; then
4840 CFLAGS="-O2"
4841 else
4842 CFLAGS=
252b5132 4843 fi
979273e3
NN
4844fi
4845echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4846echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4847if test "${ac_cv_prog_cc_stdc+set}" = set; then
4848 echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850 ac_cv_prog_cc_stdc=no
4851ac_save_CC=$CC
4852cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h. */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h. */
4858#include <stdarg.h>
4859#include <stdio.h>
4860#include <sys/types.h>
4861#include <sys/stat.h>
4862/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4863struct buf { int x; };
4864FILE * (*rcsopen) (struct buf *, struct stat *, int);
4865static char *e (p, i)
4866 char **p;
4867 int i;
4868{
4869 return p[i];
4870}
4871static char *f (char * (*g) (char **, int), char **p, ...)
4872{
4873 char *s;
4874 va_list v;
4875 va_start (v,p);
4876 s = g (p, va_arg (v,int));
4877 va_end (v);
4878 return s;
4879}
4880
4881/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4882 function prototypes and stuff, but not '\xHH' hex character constants.
4883 These don't provoke an error unfortunately, instead are silently treated
4884 as 'x'. The following induces an error, until -std1 is added to get
4885 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4886 array size at least. It's necessary to write '\x00'==0 to get something
4887 that's true only with -std1. */
4888int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4889
4890int test (int i, double x);
4891struct s1 {int (*f) (int a);};
4892struct s2 {int (*f) (double a);};
4893int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4894int argc;
4895char **argv;
4896int
4897main ()
4898{
4899return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4900 ;
4901 return 0;
4902}
4903_ACEOF
4904# Don't try gcc -ansi; that turns off useful extensions and
4905# breaks some systems' header files.
4906# AIX -qlanglvl=ansi
4907# Ultrix and OSF/1 -std1
4908# HP-UX 10.20 and later -Ae
4909# HP-UX older versions -Aa -D_HPUX_SOURCE
4910# SVR4 -Xc -D__EXTENSIONS__
4911for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4912do
4913 CC="$ac_save_CC $ac_arg"
4914 rm -f conftest.$ac_objext
4915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
8ae85421
AM
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
979273e3
NN
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
4936 ac_cv_prog_cc_stdc=$ac_arg
4937break
4938else
4939 echo "$as_me: failed program was:" >&5
4940sed 's/^/| /' conftest.$ac_ext >&5
4941
4942fi
4943rm -f conftest.err conftest.$ac_objext
4944done
4945rm -f conftest.$ac_ext conftest.$ac_objext
4946CC=$ac_save_CC
4947
252b5132
RH
4948fi
4949
979273e3
NN
4950case "x$ac_cv_prog_cc_stdc" in
4951 x|xno)
4952 echo "$as_me:$LINENO: result: none needed" >&5
4953echo "${ECHO_T}none needed" >&6 ;;
4954 *)
4955 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4956echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4957 CC="$CC $ac_cv_prog_cc_stdc" ;;
4958esac
252b5132 4959
979273e3
NN
4960# Some people use a C++ compiler to compile C. Since we use `exit',
4961# in C++ we need to declare it. In case someone uses the same compiler
4962# for both compiling C and C++ we need to have the C++ compiler decide
4963# the declaration of exit, since it's the most demanding environment.
4964cat >conftest.$ac_ext <<_ACEOF
4965#ifndef __cplusplus
4966 choke me
4967#endif
4968_ACEOF
4969rm -f conftest.$ac_objext
4970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>conftest.er1
4972 ac_status=$?
4973 grep -v '^ *+' conftest.er1 >conftest.err
4974 rm -f conftest.er1
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
8ae85421
AM
4978 { ac_try='test -z "$ac_c_werror_flag"
4979 || test ! -s conftest.err'
979273e3
NN
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981 (eval $ac_try) 2>&5
4982 ac_status=$?
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; } &&
4985 { ac_try='test -s conftest.$ac_objext'
4986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4987 (eval $ac_try) 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 for ac_declaration in \
4992 '' \
4993 'extern "C" void std::exit (int) throw (); using std::exit;' \
4994 'extern "C" void std::exit (int); using std::exit;' \
4995 'extern "C" void exit (int) throw ();' \
4996 'extern "C" void exit (int);' \
4997 'void exit (int);'
4998do
4999 cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h. */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h. */
5005$ac_declaration
5006#include <stdlib.h>
5007int
5008main ()
5009{
5010exit (42);
5011 ;
5012 return 0;
5013}
5014_ACEOF
5015rm -f conftest.$ac_objext
5016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5017 (eval $ac_compile) 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } &&
8ae85421
AM
5024 { ac_try='test -z "$ac_c_werror_flag"
5025 || test ! -s conftest.err'
979273e3
NN
5026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027 (eval $ac_try) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest.$ac_objext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 :
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5041
979273e3
NN
5042continue
5043fi
5044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045 cat >conftest.$ac_ext <<_ACEOF
5046/* confdefs.h. */
5047_ACEOF
5048cat confdefs.h >>conftest.$ac_ext
5049cat >>conftest.$ac_ext <<_ACEOF
5050/* end confdefs.h. */
5051$ac_declaration
5052int
5053main ()
5054{
5055exit (42);
5056 ;
5057 return 0;
5058}
5059_ACEOF
5060rm -f conftest.$ac_objext
5061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062 (eval $ac_compile) 2>conftest.er1
5063 ac_status=$?
5064 grep -v '^ *+' conftest.er1 >conftest.err
5065 rm -f conftest.er1
5066 cat conftest.err >&5
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } &&
8ae85421
AM
5069 { ac_try='test -z "$ac_c_werror_flag"
5070 || test ! -s conftest.err'
979273e3
NN
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; } &&
5076 { ac_try='test -s conftest.$ac_objext'
5077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078 (eval $ac_try) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; }; then
5082 break
5083else
5084 echo "$as_me: failed program was:" >&5
5085sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5086
979273e3
NN
5087fi
5088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5089done
5090rm -f conftest*
5091if test -n "$ac_declaration"; then
5092 echo '#ifdef __cplusplus' >>confdefs.h
5093 echo $ac_declaration >>confdefs.h
5094 echo '#endif' >>confdefs.h
5095fi
252b5132 5096
252b5132 5097else
979273e3
NN
5098 echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
252b5132 5101fi
979273e3 5102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5103ac_ext=c
252b5132 5104ac_cpp='$CPP $CPPFLAGS'
979273e3
NN
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132 5108
252b5132 5109
979273e3
NN
5110ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl"
5111if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5113set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5114echo "$as_me:$LINENO: checking for $ac_word" >&5
5115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5116if test "${ac_cv_prog_RANLIB+set}" = set; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5118else
979273e3
NN
5119 if test -n "$RANLIB"; then
5120 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
252b5132 5121else
979273e3
NN
5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123for as_dir in $PATH
5124do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133done
5134done
5135
252b5132
RH
5136fi
5137fi
979273e3
NN
5138RANLIB=$ac_cv_prog_RANLIB
5139if test -n "$RANLIB"; then
5140 echo "$as_me:$LINENO: result: $RANLIB" >&5
5141echo "${ECHO_T}$RANLIB" >&6
252b5132 5142else
979273e3
NN
5143 echo "$as_me:$LINENO: result: no" >&5
5144echo "${ECHO_T}no" >&6
252b5132
RH
5145fi
5146
979273e3
NN
5147fi
5148if test -z "$ac_cv_prog_RANLIB"; then
5149 ac_ct_RANLIB=$RANLIB
5150 # Extract the first word of "ranlib", so it can be a program name with args.
5151set dummy ranlib; ac_word=$2
5152echo "$as_me:$LINENO: checking for $ac_word" >&5
5153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5156else
979273e3
NN
5157 if test -n "$ac_ct_RANLIB"; then
5158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
252b5132 5159else
979273e3
NN
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_RANLIB="ranlib"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
5172done
252b5132 5173
979273e3 5174 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
252b5132 5175fi
979273e3
NN
5176fi
5177ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5178if test -n "$ac_ct_RANLIB"; then
5179 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5180echo "${ECHO_T}$ac_ct_RANLIB" >&6
252b5132 5181else
979273e3
NN
5182 echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
252b5132
RH
5184fi
5185
979273e3
NN
5186 RANLIB=$ac_ct_RANLIB
5187else
5188 RANLIB="$ac_cv_prog_RANLIB"
5189fi
252b5132 5190
979273e3
NN
5191ac_ext=c
5192ac_cpp='$CPP $CPPFLAGS'
5193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195ac_compiler_gnu=$ac_cv_c_compiler_gnu
5196echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5197echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
252b5132
RH
5198# On Suns, sometimes $CPP names a directory.
5199if test -n "$CPP" && test -d "$CPP"; then
5200 CPP=
5201fi
5202if test -z "$CPP"; then
979273e3
NN
5203 if test "${ac_cv_prog_CPP+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5205else
979273e3
NN
5206 # Double quotes because CPP needs to be expanded
5207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5208 do
5209 ac_preproc_ok=false
5210for ac_c_preproc_warn_flag in '' yes
5211do
5212 # Use a header file that comes with gcc, so configuring glibc
5213 # with a fresh cross-compiler works.
5214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5215 # <limits.h> exists even on freestanding compilers.
252b5132 5216 # On the NeXT, cc -E runs the code through the compiler's parser,
979273e3
NN
5217 # not just through cpp. "Syntax error" is here to catch this case.
5218 cat >conftest.$ac_ext <<_ACEOF
5219/* confdefs.h. */
5220_ACEOF
5221cat confdefs.h >>conftest.$ac_ext
5222cat >>conftest.$ac_ext <<_ACEOF
5223/* end confdefs.h. */
5224#ifdef __STDC__
5225# include <limits.h>
5226#else
5227# include <assert.h>
5228#endif
5229 Syntax error
5230_ACEOF
5231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } >/dev/null; then
5239 if test -s conftest.err; then
5240 ac_cpp_err=$ac_c_preproc_warn_flag
5241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5242 else
5243 ac_cpp_err=
5244 fi
252b5132 5245else
979273e3
NN
5246 ac_cpp_err=yes
5247fi
5248if test -z "$ac_cpp_err"; then
252b5132
RH
5249 :
5250else
979273e3
NN
5251 echo "$as_me: failed program was:" >&5
5252sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 # Broken: fails on valid input.
5255continue
5256fi
5257rm -f conftest.err conftest.$ac_ext
5258
5259 # OK, works on sane cases. Now check whether non-existent headers
5260 # can be detected and how.
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5271 ac_status=$?
5272 grep -v '^ *+' conftest.er1 >conftest.err
5273 rm -f conftest.er1
5274 cat conftest.err >&5
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); } >/dev/null; then
5277 if test -s conftest.err; then
5278 ac_cpp_err=$ac_c_preproc_warn_flag
5279 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5280 else
5281 ac_cpp_err=
5282 fi
252b5132 5283else
979273e3 5284 ac_cpp_err=yes
252b5132 5285fi
979273e3
NN
5286if test -z "$ac_cpp_err"; then
5287 # Broken: success on invalid input.
5288continue
5289else
5290 echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 # Passes both tests.
5294ac_preproc_ok=:
5295break
252b5132 5296fi
979273e3
NN
5297rm -f conftest.err conftest.$ac_ext
5298
5299done
5300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5301rm -f conftest.err conftest.$ac_ext
5302if $ac_preproc_ok; then
5303 break
252b5132 5304fi
979273e3
NN
5305
5306 done
5307 ac_cv_prog_CPP=$CPP
5308
252b5132 5309fi
979273e3 5310 CPP=$ac_cv_prog_CPP
252b5132 5311else
979273e3 5312 ac_cv_prog_CPP=$CPP
252b5132 5313fi
979273e3
NN
5314echo "$as_me:$LINENO: result: $CPP" >&5
5315echo "${ECHO_T}$CPP" >&6
5316ac_preproc_ok=false
5317for ac_c_preproc_warn_flag in '' yes
5318do
5319 # Use a header file that comes with gcc, so configuring glibc
5320 # with a fresh cross-compiler works.
5321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322 # <limits.h> exists even on freestanding compilers.
5323 # On the NeXT, cc -E runs the code through the compiler's parser,
5324 # not just through cpp. "Syntax error" is here to catch this case.
5325 cat >conftest.$ac_ext <<_ACEOF
5326/* confdefs.h. */
5327_ACEOF
5328cat confdefs.h >>conftest.$ac_ext
5329cat >>conftest.$ac_ext <<_ACEOF
5330/* end confdefs.h. */
5331#ifdef __STDC__
5332# include <limits.h>
5333#else
5334# include <assert.h>
5335#endif
5336 Syntax error
5337_ACEOF
5338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } >/dev/null; then
5346 if test -s conftest.err; then
5347 ac_cpp_err=$ac_c_preproc_warn_flag
5348 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5349 else
5350 ac_cpp_err=
5351 fi
ac48eca1 5352else
979273e3
NN
5353 ac_cpp_err=yes
5354fi
5355if test -z "$ac_cpp_err"; then
5356 :
ac48eca1 5357else
979273e3
NN
5358 echo "$as_me: failed program was:" >&5
5359sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 # Broken: fails on valid input.
5362continue
5363fi
5364rm -f conftest.err conftest.$ac_ext
5365
5366 # OK, works on sane cases. Now check whether non-existent headers
5367 # can be detected and how.
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374#include <ac_nonexistent.h>
5375_ACEOF
5376if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } >/dev/null; then
5384 if test -s conftest.err; then
5385 ac_cpp_err=$ac_c_preproc_warn_flag
5386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387 else
5388 ac_cpp_err=
5389 fi
5390else
5391 ac_cpp_err=yes
ac48eca1 5392fi
979273e3
NN
5393if test -z "$ac_cpp_err"; then
5394 # Broken: success on invalid input.
5395continue
5396else
5397 echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
5400 # Passes both tests.
5401ac_preproc_ok=:
5402break
ac48eca1 5403fi
979273e3
NN
5404rm -f conftest.err conftest.$ac_ext
5405
5406done
5407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5408rm -f conftest.err conftest.$ac_ext
5409if $ac_preproc_ok; then
5410 :
5411else
5412 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5413See \`config.log' for more details." >&5
5414echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5415See \`config.log' for more details." >&2;}
5416 { (exit 1); exit 1; }; }
5417fi
5418
5419ac_ext=c
5420ac_cpp='$CPP $CPPFLAGS'
5421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425
5426echo "$as_me:$LINENO: checking for egrep" >&5
5427echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5428if test "${ac_cv_prog_egrep+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5430else
979273e3
NN
5431 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5432 then ac_cv_prog_egrep='grep -E'
5433 else ac_cv_prog_egrep='egrep'
5434 fi
ac48eca1 5435fi
979273e3
NN
5436echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5437echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5438 EGREP=$ac_cv_prog_egrep
ac48eca1 5439
979273e3
NN
5440
5441echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5442echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5443if test "${ac_cv_header_stdc+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5445else
979273e3
NN
5446 cat >conftest.$ac_ext <<_ACEOF
5447/* confdefs.h. */
5448_ACEOF
5449cat confdefs.h >>conftest.$ac_ext
5450cat >>conftest.$ac_ext <<_ACEOF
5451/* end confdefs.h. */
252b5132
RH
5452#include <stdlib.h>
5453#include <stdarg.h>
5454#include <string.h>
5455#include <float.h>
979273e3
NN
5456
5457int
5458main ()
5459{
5460
5461 ;
5462 return 0;
5463}
5464_ACEOF
5465rm -f conftest.$ac_objext
5466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467 (eval $ac_compile) 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } &&
8ae85421
AM
5474 { ac_try='test -z "$ac_c_werror_flag"
5475 || test ! -s conftest.err'
979273e3
NN
5476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5477 (eval $ac_try) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }; } &&
5481 { ac_try='test -s conftest.$ac_objext'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; }; then
252b5132
RH
5487 ac_cv_header_stdc=yes
5488else
979273e3
NN
5489 echo "$as_me: failed program was:" >&5
5490sed 's/^/| /' conftest.$ac_ext >&5
5491
5492ac_cv_header_stdc=no
252b5132 5493fi
979273e3 5494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5495
5496if test $ac_cv_header_stdc = yes; then
5497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
979273e3
NN
5498 cat >conftest.$ac_ext <<_ACEOF
5499/* confdefs.h. */
5500_ACEOF
5501cat confdefs.h >>conftest.$ac_ext
5502cat >>conftest.$ac_ext <<_ACEOF
5503/* end confdefs.h. */
252b5132 5504#include <string.h>
979273e3
NN
5505
5506_ACEOF
252b5132 5507if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5508 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5509 :
5510else
252b5132
RH
5511 ac_cv_header_stdc=no
5512fi
5513rm -f conftest*
5514
5515fi
5516
5517if test $ac_cv_header_stdc = yes; then
5518 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
979273e3
NN
5519 cat >conftest.$ac_ext <<_ACEOF
5520/* confdefs.h. */
5521_ACEOF
5522cat confdefs.h >>conftest.$ac_ext
5523cat >>conftest.$ac_ext <<_ACEOF
5524/* end confdefs.h. */
252b5132 5525#include <stdlib.h>
979273e3
NN
5526
5527_ACEOF
252b5132 5528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 5529 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5530 :
5531else
252b5132
RH
5532 ac_cv_header_stdc=no
5533fi
5534rm -f conftest*
5535
5536fi
5537
5538if test $ac_cv_header_stdc = yes; then
5539 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
979273e3 5540 if test "$cross_compiling" = yes; then
252b5132
RH
5541 :
5542else
979273e3
NN
5543 cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h. */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h. */
252b5132 5549#include <ctype.h>
979273e3
NN
5550#if ((' ' & 0x0FF) == 0x020)
5551# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5552# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5553#else
5554# define ISLOWER(c) \
5555 (('a' <= (c) && (c) <= 'i') \
5556 || ('j' <= (c) && (c) <= 'r') \
5557 || ('s' <= (c) && (c) <= 'z'))
5558# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5559#endif
252b5132 5560
979273e3
NN
5561#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5562int
5563main ()
5564{
5565 int i;
5566 for (i = 0; i < 256; i++)
5567 if (XOR (islower (i), ISLOWER (i))
5568 || toupper (i) != TOUPPER (i))
5569 exit(2);
5570 exit (0);
5571}
5572_ACEOF
5573rm -f conftest$ac_exeext
5574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5575 (eval $ac_link) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
252b5132
RH
5584 :
5585else
979273e3
NN
5586 echo "$as_me: program exited with status $ac_status" >&5
5587echo "$as_me: failed program was:" >&5
5588sed 's/^/| /' conftest.$ac_ext >&5
5589
5590( exit $ac_status )
5591ac_cv_header_stdc=no
252b5132 5592fi
979273e3 5593rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5594fi
252b5132
RH
5595fi
5596fi
979273e3
NN
5597echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5598echo "${ECHO_T}$ac_cv_header_stdc" >&6
252b5132 5599if test $ac_cv_header_stdc = yes; then
979273e3
NN
5600
5601cat >>confdefs.h <<\_ACEOF
252b5132 5602#define STDC_HEADERS 1
979273e3 5603_ACEOF
252b5132
RH
5604
5605fi
5606
979273e3
NN
5607echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5608echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5609if test "${ac_cv_c_const+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
252b5132 5618
979273e3
NN
5619int
5620main ()
5621{
5622/* FIXME: Include the comments suggested by Paul. */
5623#ifndef __cplusplus
5624 /* Ultrix mips cc rejects this. */
5625 typedef int charset[2];
5626 const charset x;
5627 /* SunOS 4.1.1 cc rejects this. */
5628 char const *const *ccp;
5629 char **p;
5630 /* NEC SVR4.0.2 mips cc rejects this. */
5631 struct point {int x, y;};
5632 static struct point const zero = {0,0};
5633 /* AIX XL C 1.02.0.0 rejects this.
5634 It does not let you subtract one const X* pointer from another in
5635 an arm of an if-expression whose if-part is not a constant
5636 expression */
5637 const char *g = "string";
5638 ccp = &g + (g ? g-g : 0);
5639 /* HPUX 7.0 cc rejects these. */
5640 ++ccp;
5641 p = (char**) ccp;
5642 ccp = (char const *const *) p;
5643 { /* SCO 3.2v4 cc rejects this. */
5644 char *t;
5645 char const *s = 0 ? (char *) 0 : (char const *) 0;
5646
5647 *t++ = 0;
5648 }
5649 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5650 int x[] = {25, 17};
5651 const int *foo = &x[0];
5652 ++foo;
5653 }
5654 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5655 typedef const int *iptr;
5656 iptr p = 0;
5657 ++p;
5658 }
5659 { /* AIX XL C 1.02.0.0 rejects this saying
5660 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5661 struct s { int j; const int *ap[3]; };
5662 struct s *b; b->j = 5;
5663 }
5664 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5665 const int foo = 10;
5666 }
5667#endif
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673rm -f conftest.$ac_objext
5674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5675 (eval $ac_compile) 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
8ae85421
AM
5682 { ac_try='test -z "$ac_c_werror_flag"
5683 || test ! -s conftest.err'
979273e3
NN
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest.$ac_objext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
252b5132
RH
5695 ac_cv_c_const=yes
5696else
979273e3
NN
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700ac_cv_c_const=no
252b5132 5701fi
979273e3 5702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5703fi
979273e3
NN
5704echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5705echo "${ECHO_T}$ac_cv_c_const" >&6
252b5132 5706if test $ac_cv_c_const = no; then
979273e3
NN
5707
5708cat >>confdefs.h <<\_ACEOF
5709#define const
5710_ACEOF
252b5132
RH
5711
5712fi
5713
979273e3
NN
5714echo "$as_me:$LINENO: checking for inline" >&5
5715echo $ECHO_N "checking for inline... $ECHO_C" >&6
5716if test "${ac_cv_c_inline+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5718else
5719 ac_cv_c_inline=no
5720for ac_kw in inline __inline__ __inline; do
979273e3
NN
5721 cat >conftest.$ac_ext <<_ACEOF
5722/* confdefs.h. */
5723_ACEOF
5724cat confdefs.h >>conftest.$ac_ext
5725cat >>conftest.$ac_ext <<_ACEOF
5726/* end confdefs.h. */
5727#ifndef __cplusplus
5728typedef int foo_t;
5729static $ac_kw foo_t static_foo () {return 0; }
5730$ac_kw foo_t foo () {return 0; }
5731#endif
5732
5733_ACEOF
5734rm -f conftest.$ac_objext
5735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736 (eval $ac_compile) 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } &&
8ae85421
AM
5743 { ac_try='test -z "$ac_c_werror_flag"
5744 || test ! -s conftest.err'
979273e3
NN
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; } &&
5750 { ac_try='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_cv_c_inline=$ac_kw; break
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763done
5764
5765fi
5766echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5767echo "${ECHO_T}$ac_cv_c_inline" >&6
5768
5769
5770case $ac_cv_c_inline in
5771 inline | yes) ;;
5772 *)
5773 case $ac_cv_c_inline in
5774 no) ac_val=;;
5775 *) ac_val=$ac_cv_c_inline;;
5776 esac
5777 cat >>confdefs.h <<_ACEOF
5778#ifndef __cplusplus
5779#define inline $ac_val
5780#endif
5781_ACEOF
5782 ;;
5783esac
5784
5785# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5786
5787
5788
5789
5790
5791
5792
5793
252b5132 5794
979273e3
NN
5795for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5796 inttypes.h stdint.h unistd.h
5797do
5798as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5799echo "$as_me:$LINENO: checking for $ac_header" >&5
5800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5801if eval "test \"\${$as_ac_Header+set}\" = set"; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 cat >conftest.$ac_ext <<_ACEOF
5805/* confdefs.h. */
5806_ACEOF
5807cat confdefs.h >>conftest.$ac_ext
5808cat >>conftest.$ac_ext <<_ACEOF
5809/* end confdefs.h. */
5810$ac_includes_default
5811
5812#include <$ac_header>
5813_ACEOF
5814rm -f conftest.$ac_objext
5815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5816 (eval $ac_compile) 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
8ae85421
AM
5823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
979273e3
NN
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest.$ac_objext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 eval "$as_ac_Header=yes"
5837else
5838 echo "$as_me: failed program was:" >&5
5839sed 's/^/| /' conftest.$ac_ext >&5
5840
5841eval "$as_ac_Header=no"
5842fi
5843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5844fi
5845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5847if test `eval echo '${'$as_ac_Header'}'` = yes; then
5848 cat >>confdefs.h <<_ACEOF
5849#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5850_ACEOF
252b5132
RH
5851
5852fi
5853
979273e3
NN
5854done
5855
252b5132 5856
979273e3
NN
5857echo "$as_me:$LINENO: checking for off_t" >&5
5858echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5859if test "${ac_cv_type_off_t+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5861else
979273e3
NN
5862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868$ac_includes_default
5869int
5870main ()
5871{
5872if ((off_t *) 0)
5873 return 0;
5874if (sizeof (off_t))
5875 return 0;
5876 ;
5877 return 0;
5878}
5879_ACEOF
5880rm -f conftest.$ac_objext
5881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>conftest.er1
5883 ac_status=$?
5884 grep -v '^ *+' conftest.er1 >conftest.err
5885 rm -f conftest.er1
5886 cat conftest.err >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); } &&
8ae85421
AM
5889 { ac_try='test -z "$ac_c_werror_flag"
5890 || test ! -s conftest.err'
979273e3
NN
5891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892 (eval $ac_try) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); }; } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
a2d91340 5902 ac_cv_type_off_t=yes
252b5132 5903else
979273e3
NN
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5906
979273e3 5907ac_cv_type_off_t=no
252b5132 5908fi
979273e3
NN
5909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5910fi
5911echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5912echo "${ECHO_T}$ac_cv_type_off_t" >&6
5913if test $ac_cv_type_off_t = yes; then
5914 :
5915else
5916
5917cat >>confdefs.h <<_ACEOF
252b5132 5918#define off_t long
979273e3 5919_ACEOF
252b5132
RH
5920
5921fi
5922
979273e3
NN
5923echo "$as_me:$LINENO: checking for size_t" >&5
5924echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5925if test "${ac_cv_type_size_t+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5927else
979273e3
NN
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934$ac_includes_default
5935int
5936main ()
5937{
5938if ((size_t *) 0)
5939 return 0;
5940if (sizeof (size_t))
5941 return 0;
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946rm -f conftest.$ac_objext
5947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5948 (eval $ac_compile) 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } &&
8ae85421
AM
5955 { ac_try='test -z "$ac_c_werror_flag"
5956 || test ! -s conftest.err'
979273e3
NN
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; } &&
5962 { ac_try='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
a2d91340 5968 ac_cv_type_size_t=yes
252b5132 5969else
979273e3
NN
5970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5972
979273e3
NN
5973ac_cv_type_size_t=no
5974fi
5975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5976fi
979273e3
NN
5977echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5978echo "${ECHO_T}$ac_cv_type_size_t" >&6
5979if test $ac_cv_type_size_t = yes; then
5980 :
5981else
5982
5983cat >>confdefs.h <<_ACEOF
252b5132 5984#define size_t unsigned
979273e3 5985_ACEOF
252b5132
RH
5986
5987fi
5988
5989# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5990# for constant arguments. Useless!
979273e3
NN
5991echo "$as_me:$LINENO: checking for working alloca.h" >&5
5992echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5993if test "${ac_cv_working_alloca_h+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5995else
5996 cat >conftest.$ac_ext <<_ACEOF
5997/* confdefs.h. */
5998_ACEOF
5999cat confdefs.h >>conftest.$ac_ext
6000cat >>conftest.$ac_ext <<_ACEOF
6001/* end confdefs.h. */
252b5132 6002#include <alloca.h>
979273e3
NN
6003int
6004main ()
6005{
6006char *p = (char *) alloca (2 * sizeof (int));
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext conftest$ac_exeext
6012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
8ae85421
AM
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
979273e3
NN
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_working_alloca_h=yes
6034else
6035 echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038ac_cv_working_alloca_h=no
6039fi
6040rm -f conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042fi
6043echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6044echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6045if test $ac_cv_working_alloca_h = yes; then
6046
6047cat >>confdefs.h <<\_ACEOF
252b5132 6048#define HAVE_ALLOCA_H 1
979273e3 6049_ACEOF
252b5132
RH
6050
6051fi
6052
979273e3
NN
6053echo "$as_me:$LINENO: checking for alloca" >&5
6054echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6055if test "${ac_cv_func_alloca_works+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6057else
979273e3
NN
6058 cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
252b5132
RH
6064#ifdef __GNUC__
6065# define alloca __builtin_alloca
6066#else
6067# ifdef _MSC_VER
6068# include <malloc.h>
6069# define alloca _alloca
6070# else
6071# if HAVE_ALLOCA_H
6072# include <alloca.h>
6073# else
6074# ifdef _AIX
6075 #pragma alloca
6076# else
6077# ifndef alloca /* predefined by HP cc +Olibcalls */
6078char *alloca ();
6079# endif
6080# endif
6081# endif
6082# endif
6083#endif
6084
979273e3
NN
6085int
6086main ()
6087{
6088char *p = (char *) alloca (1);
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093rm -f conftest.$ac_objext conftest$ac_exeext
6094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095 (eval $ac_link) 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } &&
8ae85421
AM
6102 { ac_try='test -z "$ac_c_werror_flag"
6103 || test ! -s conftest.err'
979273e3
NN
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest$ac_exeext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
252b5132
RH
6115 ac_cv_func_alloca_works=yes
6116else
979273e3
NN
6117 echo "$as_me: failed program was:" >&5
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
6120ac_cv_func_alloca_works=no
252b5132 6121fi
979273e3
NN
6122rm -f conftest.err conftest.$ac_objext \
6123 conftest$ac_exeext conftest.$ac_ext
252b5132 6124fi
979273e3
NN
6125echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6126echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6127
252b5132 6128if test $ac_cv_func_alloca_works = yes; then
252b5132 6129
979273e3
NN
6130cat >>confdefs.h <<\_ACEOF
6131#define HAVE_ALLOCA 1
6132_ACEOF
252b5132 6133
979273e3 6134else
252b5132 6135 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
979273e3
NN
6136# that cause trouble. Some versions do not even contain alloca or
6137# contain a buggy version. If you still want to use their alloca,
6138# use ar to extract alloca.o from them instead of compiling alloca.c.
6139
6140ALLOCA=alloca.$ac_objext
6141
6142cat >>confdefs.h <<\_ACEOF
252b5132 6143#define C_ALLOCA 1
979273e3 6144_ACEOF
252b5132
RH
6145
6146
979273e3
NN
6147echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6148echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6149if test "${ac_cv_os_cray+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6151else
979273e3
NN
6152 cat >conftest.$ac_ext <<_ACEOF
6153/* confdefs.h. */
6154_ACEOF
6155cat confdefs.h >>conftest.$ac_ext
6156cat >>conftest.$ac_ext <<_ACEOF
6157/* end confdefs.h. */
252b5132
RH
6158#if defined(CRAY) && ! defined(CRAY2)
6159webecray
6160#else
6161wenotbecray
6162#endif
6163
979273e3 6164_ACEOF
252b5132 6165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
979273e3 6166 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6167 ac_cv_os_cray=yes
6168else
252b5132
RH
6169 ac_cv_os_cray=no
6170fi
6171rm -f conftest*
6172
6173fi
979273e3
NN
6174echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6175echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 6176if test $ac_cv_os_cray = yes; then
979273e3
NN
6177 for ac_func in _getb67 GETB67 getb67; do
6178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6179echo "$as_me:$LINENO: checking for $ac_func" >&5
6180echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6181if eval "test \"\${$as_ac_var+set}\" = set"; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6183else
6184 cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
6190/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6192#define $ac_func innocuous_$ac_func
6193
252b5132 6194/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6195 which can conflict with char $ac_func (); below.
6196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6197 <limits.h> exists even on freestanding compilers. */
6198
6199#ifdef __STDC__
6200# include <limits.h>
6201#else
6202# include <assert.h>
6203#endif
252b5132 6204
979273e3 6205#undef $ac_func
252b5132 6206
979273e3
NN
6207/* Override any gcc2 internal prototype to avoid an error. */
6208#ifdef __cplusplus
6209extern "C"
6210{
6211#endif
6212/* We use char because int might match the return type of a gcc2
6213 builtin and then its argument prototype would still apply. */
6214char $ac_func ();
252b5132
RH
6215/* The GNU C library defines this for functions which it implements
6216 to always fail with ENOSYS. Some functions are actually named
6217 something starting with __ and the normal name is an alias. */
6218#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6219choke me
6220#else
979273e3
NN
6221char (*f) () = $ac_func;
6222#endif
6223#ifdef __cplusplus
6224}
252b5132
RH
6225#endif
6226
979273e3
NN
6227int
6228main ()
6229{
6230return f != $ac_func;
6231 ;
6232 return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext conftest$ac_exeext
6236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6237 (eval $ac_link) 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } &&
8ae85421
AM
6244 { ac_try='test -z "$ac_c_werror_flag"
6245 || test ! -s conftest.err'
979273e3
NN
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 eval "$as_ac_var=yes"
6258else
6259 echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262eval "$as_ac_var=no"
6263fi
6264rm -f conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext
6266fi
6267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6268echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6269if test `eval echo '${'$as_ac_var'}'` = yes; then
6270
6271cat >>confdefs.h <<_ACEOF
252b5132 6272#define CRAY_STACKSEG_END $ac_func
979273e3 6273_ACEOF
252b5132 6274
979273e3 6275 break
252b5132
RH
6276fi
6277
979273e3 6278 done
252b5132
RH
6279fi
6280
979273e3
NN
6281echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6282echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6283if test "${ac_cv_c_stack_direction+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6285else
6286 if test "$cross_compiling" = yes; then
6287 ac_cv_c_stack_direction=0
6288else
979273e3
NN
6289 cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h. */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h. */
6295int
252b5132
RH
6296find_stack_direction ()
6297{
6298 static char *addr = 0;
6299 auto char dummy;
6300 if (addr == 0)
6301 {
6302 addr = &dummy;
6303 return find_stack_direction ();
6304 }
6305 else
6306 return (&dummy > addr) ? 1 : -1;
6307}
979273e3
NN
6308
6309int
252b5132
RH
6310main ()
6311{
979273e3 6312 exit (find_stack_direction () < 0);
252b5132 6313}
979273e3
NN
6314_ACEOF
6315rm -f conftest$ac_exeext
6316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6317 (eval $ac_link) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
252b5132
RH
6326 ac_cv_c_stack_direction=1
6327else
979273e3
NN
6328 echo "$as_me: program exited with status $ac_status" >&5
6329echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332( exit $ac_status )
6333ac_cv_c_stack_direction=-1
252b5132 6334fi
979273e3 6335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6336fi
252b5132 6337fi
979273e3
NN
6338echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6339echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6340
979273e3 6341cat >>confdefs.h <<_ACEOF
252b5132 6342#define STACK_DIRECTION $ac_cv_c_stack_direction
979273e3
NN
6343_ACEOF
6344
252b5132
RH
6345
6346fi
6347
979273e3
NN
6348
6349
6350for ac_header in stdlib.h unistd.h
252b5132 6351do
979273e3
NN
6352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353if eval "test \"\${$as_ac_Header+set}\" = set"; then
6354 echo "$as_me:$LINENO: checking for $ac_header" >&5
6355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6356if eval "test \"\${$as_ac_Header+set}\" = set"; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6358fi
6359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6361else
6362 # Is the header compilable?
6363echo "$as_me:$LINENO: checking $ac_header usability" >&5
6364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6365cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h. */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h. */
6371$ac_includes_default
6372#include <$ac_header>
6373_ACEOF
6374rm -f conftest.$ac_objext
6375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376 (eval $ac_compile) 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } &&
8ae85421
AM
6383 { ac_try='test -z "$ac_c_werror_flag"
6384 || test ! -s conftest.err'
979273e3
NN
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386 (eval $ac_try) 2>&5
6387 ac_status=$?
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6396 ac_header_compiler=yes
6397else
6398 echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401ac_header_compiler=no
6402fi
6403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6405echo "${ECHO_T}$ac_header_compiler" >&6
6406
6407# Is the header present?
6408echo "$as_me:$LINENO: checking $ac_header presence" >&5
6409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6410cat >conftest.$ac_ext <<_ACEOF
6411/* confdefs.h. */
6412_ACEOF
6413cat confdefs.h >>conftest.$ac_ext
6414cat >>conftest.$ac_ext <<_ACEOF
6415/* end confdefs.h. */
6416#include <$ac_header>
6417_ACEOF
6418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev/null; then
6426 if test -s conftest.err; then
6427 ac_cpp_err=$ac_c_preproc_warn_flag
6428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6429 else
6430 ac_cpp_err=
6431 fi
252b5132 6432else
979273e3 6433 ac_cpp_err=yes
252b5132 6434fi
979273e3
NN
6435if test -z "$ac_cpp_err"; then
6436 ac_header_preproc=yes
6437else
6438 echo "$as_me: failed program was:" >&5
6439sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 ac_header_preproc=no
252b5132 6442fi
979273e3
NN
6443rm -f conftest.err conftest.$ac_ext
6444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6445echo "${ECHO_T}$ac_header_preproc" >&6
6446
6447# So? What about this header?
6448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6449 yes:no: )
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6454 ac_header_preproc=yes
6455 ;;
6456 no:yes:* )
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6469 (
6470 cat <<\_ASBOX
6471## ------------------------------------------ ##
6472## Report this to the AC_PACKAGE_NAME lists. ##
6473## ------------------------------------------ ##
6474_ASBOX
6475 ) |
6476 sed "s/^/$as_me: WARNING: /" >&2
6477 ;;
6478esac
6479echo "$as_me:$LINENO: checking for $ac_header" >&5
6480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6481if eval "test \"\${$as_ac_Header+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6483else
979273e3
NN
6484 eval "$as_ac_Header=\$ac_header_preproc"
6485fi
6486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6488
6489fi
6490if test `eval echo '${'$as_ac_Header'}'` = yes; then
6491 cat >>confdefs.h <<_ACEOF
6492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6493_ACEOF
6494
252b5132 6495fi
979273e3 6496
252b5132
RH
6497done
6498
979273e3 6499
252b5132
RH
6500for ac_func in getpagesize
6501do
979273e3
NN
6502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6503echo "$as_me:$LINENO: checking for $ac_func" >&5
6504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6505if eval "test \"\${$as_ac_var+set}\" = set"; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
6514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6516#define $ac_func innocuous_$ac_func
6517
252b5132 6518/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6519 which can conflict with char $ac_func (); below.
6520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6521 <limits.h> exists even on freestanding compilers. */
252b5132 6522
979273e3
NN
6523#ifdef __STDC__
6524# include <limits.h>
6525#else
6526# include <assert.h>
6527#endif
252b5132 6528
979273e3
NN
6529#undef $ac_func
6530
6531/* Override any gcc2 internal prototype to avoid an error. */
6532#ifdef __cplusplus
6533extern "C"
6534{
6535#endif
6536/* We use char because int might match the return type of a gcc2
6537 builtin and then its argument prototype would still apply. */
6538char $ac_func ();
252b5132
RH
6539/* The GNU C library defines this for functions which it implements
6540 to always fail with ENOSYS. Some functions are actually named
6541 something starting with __ and the normal name is an alias. */
6542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6543choke me
6544#else
979273e3
NN
6545char (*f) () = $ac_func;
6546#endif
6547#ifdef __cplusplus
6548}
252b5132
RH
6549#endif
6550
979273e3
NN
6551int
6552main ()
6553{
6554return f != $ac_func;
6555 ;
6556 return 0;
6557}
6558_ACEOF
6559rm -f conftest.$ac_objext conftest$ac_exeext
6560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6561 (eval $ac_link) 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
8ae85421
AM
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
979273e3
NN
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest$ac_exeext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 eval "$as_ac_var=yes"
6582else
6583 echo "$as_me: failed program was:" >&5
6584sed 's/^/| /' conftest.$ac_ext >&5
6585
6586eval "$as_ac_var=no"
6587fi
6588rm -f conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590fi
6591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6592echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6593if test `eval echo '${'$as_ac_var'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6596_ACEOF
252b5132 6597
252b5132
RH
6598fi
6599done
6600
979273e3
NN
6601echo "$as_me:$LINENO: checking for working mmap" >&5
6602echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6603if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6605else
6606 if test "$cross_compiling" = yes; then
6607 ac_cv_func_mmap_fixed_mapped=no
6608else
979273e3
NN
6609 cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h. */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h. */
6615$ac_includes_default
6616/* malloc might have been renamed as rpl_malloc. */
6617#undef malloc
252b5132
RH
6618
6619/* Thanks to Mike Haertel and Jim Avera for this test.
6620 Here is a matrix of mmap possibilities:
6621 mmap private not fixed
6622 mmap private fixed at somewhere currently unmapped
6623 mmap private fixed at somewhere already mapped
6624 mmap shared not fixed
6625 mmap shared fixed at somewhere currently unmapped
6626 mmap shared fixed at somewhere already mapped
6627 For private mappings, we should verify that changes cannot be read()
6628 back from the file, nor mmap's back from the file at a different
6629 address. (There have been systems where private was not correctly
6630 implemented like the infamous i386 svr4.0, and systems where the
979273e3 6631 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6632 like early versions of FreeBSD and possibly contemporary NetBSD.)
6633 For shared mappings, we should conversely verify that changes get
979273e3 6634 propagated back to all the places they're supposed to be.
252b5132
RH
6635
6636 Grep wants private fixed already mapped.
6637 The main things grep needs to know about mmap are:
6638 * does it exist and is it safe to write into the mmap'd area
6639 * how to use it (BSD variants) */
979273e3 6640
252b5132
RH
6641#include <fcntl.h>
6642#include <sys/mman.h>
6643
979273e3
NN
6644#if !STDC_HEADERS && !HAVE_STDLIB_H
6645char *malloc ();
6646#endif
252b5132 6647
979273e3
NN
6648/* This mess was copied from the GNU getpagesize.h. */
6649#if !HAVE_GETPAGESIZE
252b5132 6650/* Assume that all systems that can run configure have sys/param.h. */
979273e3 6651# if !HAVE_SYS_PARAM_H
252b5132
RH
6652# define HAVE_SYS_PARAM_H 1
6653# endif
6654
6655# ifdef _SC_PAGESIZE
6656# define getpagesize() sysconf(_SC_PAGESIZE)
6657# else /* no _SC_PAGESIZE */
979273e3 6658# if HAVE_SYS_PARAM_H
252b5132
RH
6659# include <sys/param.h>
6660# ifdef EXEC_PAGESIZE
6661# define getpagesize() EXEC_PAGESIZE
6662# else /* no EXEC_PAGESIZE */
6663# ifdef NBPG
6664# define getpagesize() NBPG * CLSIZE
6665# ifndef CLSIZE
6666# define CLSIZE 1
6667# endif /* no CLSIZE */
6668# else /* no NBPG */
6669# ifdef NBPC
6670# define getpagesize() NBPC
6671# else /* no NBPC */
6672# ifdef PAGESIZE
6673# define getpagesize() PAGESIZE
6674# endif /* PAGESIZE */
6675# endif /* no NBPC */
6676# endif /* no NBPG */
6677# endif /* no EXEC_PAGESIZE */
6678# else /* no HAVE_SYS_PARAM_H */
6679# define getpagesize() 8192 /* punt totally */
6680# endif /* no HAVE_SYS_PARAM_H */
6681# endif /* no _SC_PAGESIZE */
6682
6683#endif /* no HAVE_GETPAGESIZE */
6684
252b5132 6685int
979273e3 6686main ()
252b5132 6687{
979273e3
NN
6688 char *data, *data2, *data3;
6689 int i, pagesize;
6690 int fd;
6691
6692 pagesize = getpagesize ();
6693
6694 /* First, make a file with some known garbage in it. */
6695 data = (char *) malloc (pagesize);
6696 if (!data)
6697 exit (1);
6698 for (i = 0; i < pagesize; ++i)
6699 *(data + i) = rand ();
6700 umask (0);
6701 fd = creat ("conftest.mmap", 0600);
6702 if (fd < 0)
6703 exit (1);
6704 if (write (fd, data, pagesize) != pagesize)
6705 exit (1);
6706 close (fd);
6707
6708 /* Next, try to mmap the file at a fixed address which already has
6709 something else allocated at it. If we can, also make sure that
6710 we see the same garbage. */
6711 fd = open ("conftest.mmap", O_RDWR);
6712 if (fd < 0)
6713 exit (1);
6714 data2 = (char *) malloc (2 * pagesize);
6715 if (!data2)
6716 exit (1);
6717 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6718 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6719 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6720 exit (1);
6721 for (i = 0; i < pagesize; ++i)
6722 if (*(data + i) != *(data2 + i))
6723 exit (1);
6724
6725 /* Finally, make sure that changes to the mapped area do not
6726 percolate back to the file as seen by read(). (This is a bug on
6727 some variants of i386 svr4.0.) */
6728 for (i = 0; i < pagesize; ++i)
6729 *(data2 + i) = *(data2 + i) + 1;
6730 data3 = (char *) malloc (pagesize);
6731 if (!data3)
6732 exit (1);
6733 if (read (fd, data3, pagesize) != pagesize)
6734 exit (1);
6735 for (i = 0; i < pagesize; ++i)
6736 if (*(data + i) != *(data3 + i))
6737 exit (1);
6738 close (fd);
6739 exit (0);
252b5132 6740}
979273e3
NN
6741_ACEOF
6742rm -f conftest$ac_exeext
6743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 (eval $ac_try) 2>&5
6750 ac_status=$?
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
252b5132
RH
6753 ac_cv_func_mmap_fixed_mapped=yes
6754else
979273e3
NN
6755 echo "$as_me: program exited with status $ac_status" >&5
6756echo "$as_me: failed program was:" >&5
6757sed 's/^/| /' conftest.$ac_ext >&5
6758
6759( exit $ac_status )
6760ac_cv_func_mmap_fixed_mapped=no
252b5132 6761fi
979273e3 6762rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6763fi
252b5132 6764fi
979273e3
NN
6765echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6766echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 6767if test $ac_cv_func_mmap_fixed_mapped = yes; then
979273e3
NN
6768
6769cat >>confdefs.h <<\_ACEOF
252b5132 6770#define HAVE_MMAP 1
979273e3 6771_ACEOF
252b5132
RH
6772
6773fi
979273e3
NN
6774rm -f conftest.mmap
6775
6776
6777
6778
252b5132 6779
979273e3
NN
6780
6781
6782
6783
6784
6785
6786for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6787unistd.h values.h sys/param.h
6788do
979273e3
NN
6789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6790if eval "test \"\${$as_ac_Header+set}\" = set"; then
6791 echo "$as_me:$LINENO: checking for $ac_header" >&5
6792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6793if eval "test \"\${$as_ac_Header+set}\" = set"; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795fi
6796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6798else
6799 # Is the header compilable?
6800echo "$as_me:$LINENO: checking $ac_header usability" >&5
6801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6802cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h. */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h. */
6808$ac_includes_default
6809#include <$ac_header>
6810_ACEOF
6811rm -f conftest.$ac_objext
6812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6813 (eval $ac_compile) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
8ae85421
AM
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
979273e3
NN
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest.$ac_objext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_header_compiler=yes
6834else
6835 echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838ac_header_compiler=no
6839fi
6840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6842echo "${ECHO_T}$ac_header_compiler" >&6
6843
6844# Is the header present?
6845echo "$as_me:$LINENO: checking $ac_header presence" >&5
6846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6847cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h. */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
6852/* end confdefs.h. */
6853#include <$ac_header>
6854_ACEOF
6855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6857 ac_status=$?
6858 grep -v '^ *+' conftest.er1 >conftest.err
6859 rm -f conftest.er1
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev/null; then
6863 if test -s conftest.err; then
6864 ac_cpp_err=$ac_c_preproc_warn_flag
6865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6866 else
6867 ac_cpp_err=
6868 fi
252b5132 6869else
979273e3 6870 ac_cpp_err=yes
252b5132 6871fi
979273e3
NN
6872if test -z "$ac_cpp_err"; then
6873 ac_header_preproc=yes
6874else
6875 echo "$as_me: failed program was:" >&5
6876sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_header_preproc=no
252b5132 6879fi
979273e3
NN
6880rm -f conftest.err conftest.$ac_ext
6881echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6882echo "${ECHO_T}$ac_header_preproc" >&6
6883
6884# So? What about this header?
6885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6886 yes:no: )
6887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6888echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6890echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6891 ac_header_preproc=yes
6892 ;;
6893 no:yes:* )
6894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6895echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6897echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6899echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6901echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6903echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6905echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6906 (
6907 cat <<\_ASBOX
6908## ------------------------------------------ ##
6909## Report this to the AC_PACKAGE_NAME lists. ##
6910## ------------------------------------------ ##
6911_ASBOX
6912 ) |
6913 sed "s/^/$as_me: WARNING: /" >&2
6914 ;;
6915esac
6916echo "$as_me:$LINENO: checking for $ac_header" >&5
6917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6918if eval "test \"\${$as_ac_Header+set}\" = set"; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6920else
979273e3
NN
6921 eval "$as_ac_Header=\$ac_header_preproc"
6922fi
6923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6925
6926fi
6927if test `eval echo '${'$as_ac_Header'}'` = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6930_ACEOF
6931
252b5132 6932fi
979273e3 6933
252b5132
RH
6934done
6935
979273e3
NN
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6947__argz_count __argz_stringify __argz_next
6948do
979273e3
NN
6949as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6950echo "$as_me:$LINENO: checking for $ac_func" >&5
6951echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6952if eval "test \"\${$as_ac_var+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6963#define $ac_func innocuous_$ac_func
6964
252b5132 6965/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
6966 which can conflict with char $ac_func (); below.
6967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6968 <limits.h> exists even on freestanding compilers. */
6969
6970#ifdef __STDC__
6971# include <limits.h>
6972#else
6973# include <assert.h>
6974#endif
252b5132 6975
979273e3 6976#undef $ac_func
252b5132 6977
979273e3
NN
6978/* Override any gcc2 internal prototype to avoid an error. */
6979#ifdef __cplusplus
6980extern "C"
6981{
6982#endif
6983/* We use char because int might match the return type of a gcc2
6984 builtin and then its argument prototype would still apply. */
6985char $ac_func ();
252b5132
RH
6986/* The GNU C library defines this for functions which it implements
6987 to always fail with ENOSYS. Some functions are actually named
6988 something starting with __ and the normal name is an alias. */
6989#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6990choke me
6991#else
979273e3
NN
6992char (*f) () = $ac_func;
6993#endif
6994#ifdef __cplusplus
6995}
252b5132
RH
6996#endif
6997
979273e3
NN
6998int
6999main ()
7000{
7001return f != $ac_func;
7002 ;
7003 return 0;
7004}
7005_ACEOF
7006rm -f conftest.$ac_objext conftest$ac_exeext
7007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7008 (eval $ac_link) 2>conftest.er1
7009 ac_status=$?
7010 grep -v '^ *+' conftest.er1 >conftest.err
7011 rm -f conftest.er1
7012 cat conftest.err >&5
7013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014 (exit $ac_status); } &&
8ae85421
AM
7015 { ac_try='test -z "$ac_c_werror_flag"
7016 || test ! -s conftest.err'
979273e3
NN
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; } &&
7022 { ac_try='test -s conftest$ac_exeext'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; }; then
7028 eval "$as_ac_var=yes"
7029else
7030 echo "$as_me: failed program was:" >&5
7031sed 's/^/| /' conftest.$ac_ext >&5
7032
7033eval "$as_ac_var=no"
7034fi
7035rm -f conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7037fi
7038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7039echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7040if test `eval echo '${'$as_ac_var'}'` = yes; then
7041 cat >>confdefs.h <<_ACEOF
7042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7043_ACEOF
252b5132 7044
252b5132
RH
7045fi
7046done
7047
7048
7049 if test "${ac_cv_func_stpcpy+set}" != "set"; then
979273e3
NN
7050
7051for ac_func in stpcpy
252b5132 7052do
979273e3
NN
7053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7054echo "$as_me:$LINENO: checking for $ac_func" >&5
7055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7056if eval "test \"\${$as_ac_var+set}\" = set"; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058else
7059 cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h. */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h. */
7065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7067#define $ac_func innocuous_$ac_func
7068
252b5132 7069/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
7070 which can conflict with char $ac_func (); below.
7071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7072 <limits.h> exists even on freestanding compilers. */
7073
7074#ifdef __STDC__
7075# include <limits.h>
7076#else
7077# include <assert.h>
7078#endif
252b5132 7079
979273e3 7080#undef $ac_func
252b5132 7081
979273e3
NN
7082/* Override any gcc2 internal prototype to avoid an error. */
7083#ifdef __cplusplus
7084extern "C"
7085{
7086#endif
7087/* We use char because int might match the return type of a gcc2
7088 builtin and then its argument prototype would still apply. */
7089char $ac_func ();
252b5132
RH
7090/* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7094choke me
7095#else
979273e3
NN
7096char (*f) () = $ac_func;
7097#endif
7098#ifdef __cplusplus
7099}
252b5132
RH
7100#endif
7101
979273e3
NN
7102int
7103main ()
7104{
7105return f != $ac_func;
7106 ;
7107 return 0;
7108}
7109_ACEOF
7110rm -f conftest.$ac_objext conftest$ac_exeext
7111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7112 (eval $ac_link) 2>conftest.er1
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
8ae85421
AM
7119 { ac_try='test -z "$ac_c_werror_flag"
7120 || test ! -s conftest.err'
979273e3
NN
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122 (eval $ac_try) 2>&5
7123 ac_status=$?
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; } &&
7126 { ac_try='test -s conftest$ac_exeext'
7127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128 (eval $ac_try) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); }; }; then
7132 eval "$as_ac_var=yes"
7133else
7134 echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137eval "$as_ac_var=no"
7138fi
7139rm -f conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141fi
7142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7144if test `eval echo '${'$as_ac_var'}'` = yes; then
7145 cat >>confdefs.h <<_ACEOF
7146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7147_ACEOF
252b5132 7148
252b5132
RH
7149fi
7150done
7151
7152 fi
7153 if test "${ac_cv_func_stpcpy}" = "yes"; then
979273e3
NN
7154
7155cat >>confdefs.h <<\_ACEOF
252b5132 7156#define HAVE_STPCPY 1
979273e3 7157_ACEOF
252b5132
RH
7158
7159 fi
7160
7161 if test $ac_cv_header_locale_h = yes; then
979273e3
NN
7162 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7163echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7164if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
252b5132 7173#include <locale.h>
979273e3
NN
7174int
7175main ()
7176{
252b5132 7177return LC_MESSAGES
979273e3
NN
7178 ;
7179 return 0;
7180}
7181_ACEOF
7182rm -f conftest.$ac_objext conftest$ac_exeext
7183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7184 (eval $ac_link) 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
8ae85421
AM
7191 { ac_try='test -z "$ac_c_werror_flag"
7192 || test ! -s conftest.err'
979273e3
NN
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
252b5132
RH
7204 am_cv_val_LC_MESSAGES=yes
7205else
979273e3
NN
7206 echo "$as_me: failed program was:" >&5
7207sed 's/^/| /' conftest.$ac_ext >&5
7208
7209am_cv_val_LC_MESSAGES=no
252b5132 7210fi
979273e3
NN
7211rm -f conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
252b5132 7213fi
979273e3
NN
7214echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7215echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
252b5132 7216 if test $am_cv_val_LC_MESSAGES = yes; then
979273e3
NN
7217
7218cat >>confdefs.h <<\_ACEOF
252b5132 7219#define HAVE_LC_MESSAGES 1
979273e3 7220_ACEOF
252b5132
RH
7221
7222 fi
7223 fi
979273e3
NN
7224 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7225echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7226 # Check whether --enable-nls or --disable-nls was given.
7227if test "${enable_nls+set}" = set; then
7228 enableval="$enable_nls"
7229 USE_NLS=$enableval
7230else
7231 USE_NLS=yes
979273e3
NN
7232fi;
7233 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7234echo "${ECHO_T}$USE_NLS" >&6
252b5132 7235
252b5132
RH
7236
7237 USE_INCLUDED_LIBINTL=no
7238
7239 if test "$USE_NLS" = "yes"; then
979273e3
NN
7240 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7241echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7242
7243# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7244if test "${with_included_gettext+set}" = set; then
7245 withval="$with_included_gettext"
7246 nls_cv_force_use_gnu_gettext=$withval
7247else
7248 nls_cv_force_use_gnu_gettext=no
979273e3
NN
7249fi;
7250 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7251echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7252
7253 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7254 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7255 nls_cv_header_intl=
7256 nls_cv_header_libgt=
a53bf506 7257 CATOBJEXT=
252b5132 7258
979273e3
NN
7259 if test "${ac_cv_header_libintl_h+set}" = set; then
7260 echo "$as_me:$LINENO: checking for libintl.h" >&5
7261echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7262if test "${ac_cv_header_libintl_h+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264fi
7265echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7266echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7267else
7268 # Is the header compilable?
7269echo "$as_me:$LINENO: checking libintl.h usability" >&5
7270echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7271cat >conftest.$ac_ext <<_ACEOF
7272/* confdefs.h. */
7273_ACEOF
7274cat confdefs.h >>conftest.$ac_ext
7275cat >>conftest.$ac_ext <<_ACEOF
7276/* end confdefs.h. */
7277$ac_includes_default
252b5132 7278#include <libintl.h>
979273e3
NN
7279_ACEOF
7280rm -f conftest.$ac_objext
7281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
8ae85421
AM
7289 { ac_try='test -z "$ac_c_werror_flag"
7290 || test ! -s conftest.err'
979273e3
NN
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 ac_header_compiler=yes
7303else
7304 echo "$as_me: failed program was:" >&5
7305sed 's/^/| /' conftest.$ac_ext >&5
7306
7307ac_header_compiler=no
7308fi
7309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7311echo "${ECHO_T}$ac_header_compiler" >&6
7312
7313# Is the header present?
7314echo "$as_me:$LINENO: checking libintl.h presence" >&5
7315echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7316cat >conftest.$ac_ext <<_ACEOF
7317/* confdefs.h. */
7318_ACEOF
7319cat confdefs.h >>conftest.$ac_ext
7320cat >>conftest.$ac_ext <<_ACEOF
7321/* end confdefs.h. */
7322#include <libintl.h>
7323_ACEOF
7324if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } >/dev/null; then
7332 if test -s conftest.err; then
7333 ac_cpp_err=$ac_c_preproc_warn_flag
7334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7335 else
7336 ac_cpp_err=
7337 fi
252b5132 7338else
979273e3 7339 ac_cpp_err=yes
252b5132 7340fi
979273e3
NN
7341if test -z "$ac_cpp_err"; then
7342 ac_header_preproc=yes
7343else
7344 echo "$as_me: failed program was:" >&5
7345sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_header_preproc=no
7348fi
7349rm -f conftest.err conftest.$ac_ext
7350echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7351echo "${ECHO_T}$ac_header_preproc" >&6
7352
7353# So? What about this header?
7354case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7355 yes:no: )
7356 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7357echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7358 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7359echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7360 ac_header_preproc=yes
7361 ;;
7362 no:yes:* )
7363 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7364echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7365 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7366echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7367 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7368echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7369 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7370echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7371 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7372echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7374echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7375 (
7376 cat <<\_ASBOX
7377## ------------------------------------------ ##
7378## Report this to the AC_PACKAGE_NAME lists. ##
7379## ------------------------------------------ ##
7380_ASBOX
7381 ) |
7382 sed "s/^/$as_me: WARNING: /" >&2
7383 ;;
7384esac
7385echo "$as_me:$LINENO: checking for libintl.h" >&5
7386echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7387if test "${ac_cv_header_libintl_h+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 ac_cv_header_libintl_h=$ac_header_preproc
7391fi
7392echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7393echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7394
252b5132 7395fi
979273e3
NN
7396if test $ac_cv_header_libintl_h = yes; then
7397 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7398echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7399if test "${gt_cv_func_gettext_libc+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7401else
979273e3
NN
7402 cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
252b5132 7408#include <libintl.h>
979273e3
NN
7409int
7410main ()
7411{
252b5132 7412return (int) gettext ("")
979273e3
NN
7413 ;
7414 return 0;
7415}
7416_ACEOF
7417rm -f conftest.$ac_objext conftest$ac_exeext
7418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7419 (eval $ac_link) 2>conftest.er1
7420 ac_status=$?
7421 grep -v '^ *+' conftest.er1 >conftest.err
7422 rm -f conftest.er1
7423 cat conftest.err >&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); } &&
8ae85421
AM
7426 { ac_try='test -z "$ac_c_werror_flag"
7427 || test ! -s conftest.err'
979273e3
NN
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429 (eval $ac_try) 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; } &&
7433 { ac_try='test -s conftest$ac_exeext'
7434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435 (eval $ac_try) 2>&5
7436 ac_status=$?
7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
252b5132
RH
7439 gt_cv_func_gettext_libc=yes
7440else
979273e3
NN
7441 echo "$as_me: failed program was:" >&5
7442sed 's/^/| /' conftest.$ac_ext >&5
7443
7444gt_cv_func_gettext_libc=no
252b5132 7445fi
979273e3
NN
7446rm -f conftest.err conftest.$ac_objext \
7447 conftest$ac_exeext conftest.$ac_ext
252b5132 7448fi
979273e3
NN
7449echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7450echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7451
7452 if test "$gt_cv_func_gettext_libc" != "yes"; then
979273e3
NN
7453 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7454echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7455if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7457else
979273e3 7458 ac_check_lib_save_LIBS=$LIBS
252b5132 7459LIBS="-lintl $LIBS"
979273e3
NN
7460cat >conftest.$ac_ext <<_ACEOF
7461/* confdefs.h. */
7462_ACEOF
7463cat confdefs.h >>conftest.$ac_ext
7464cat >>conftest.$ac_ext <<_ACEOF
7465/* end confdefs.h. */
7466
252b5132 7467/* Override any gcc2 internal prototype to avoid an error. */
979273e3
NN
7468#ifdef __cplusplus
7469extern "C"
7470#endif
252b5132 7471/* We use char because int might match the return type of a gcc2
979273e3
NN
7472 builtin and then its argument prototype would still apply. */
7473char bindtextdomain ();
7474int
7475main ()
7476{
7477bindtextdomain ();
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
8ae85421
AM
7491 { ac_try='test -z "$ac_c_werror_flag"
7492 || test ! -s conftest.err'
979273e3
NN
7493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 (eval $ac_try) 2>&5
7495 ac_status=$?
7496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); }; } &&
7498 { ac_try='test -s conftest$ac_exeext'
7499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500 (eval $ac_try) 2>&5
7501 ac_status=$?
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); }; }; then
7504 ac_cv_lib_intl_bindtextdomain=yes
7505else
7506 echo "$as_me: failed program was:" >&5
7507sed 's/^/| /' conftest.$ac_ext >&5
7508
7509ac_cv_lib_intl_bindtextdomain=no
7510fi
7511rm -f conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
7513LIBS=$ac_check_lib_save_LIBS
7514fi
7515echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7516echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7517if test $ac_cv_lib_intl_bindtextdomain = yes; then
7518 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7519echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7520if test "${gt_cv_func_gettext_libintl+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523 cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h. */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h. */
252b5132 7529
979273e3
NN
7530int
7531main ()
7532{
252b5132 7533return (int) gettext ("")
979273e3
NN
7534 ;
7535 return 0;
7536}
7537_ACEOF
7538rm -f conftest.$ac_objext conftest$ac_exeext
7539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7540 (eval $ac_link) 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } &&
8ae85421
AM
7547 { ac_try='test -z "$ac_c_werror_flag"
7548 || test ! -s conftest.err'
979273e3
NN
7549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7550 (eval $ac_try) 2>&5
7551 ac_status=$?
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); }; } &&
7554 { ac_try='test -s conftest$ac_exeext'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
252b5132
RH
7560 gt_cv_func_gettext_libintl=yes
7561else
979273e3
NN
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565gt_cv_func_gettext_libintl=no
252b5132 7566fi
979273e3
NN
7567rm -f conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
252b5132 7569fi
979273e3
NN
7570echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7571echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7572fi
7573
7574 fi
7575
7576 if test "$gt_cv_func_gettext_libc" = "yes" \
7577 || test "$gt_cv_func_gettext_libintl" = "yes"; then
979273e3
NN
7578
7579cat >>confdefs.h <<\_ACEOF
252b5132 7580#define HAVE_GETTEXT 1
979273e3 7581_ACEOF
252b5132
RH
7582
7583 # Extract the first word of "msgfmt", so it can be a program name with args.
7584set dummy msgfmt; ac_word=$2
979273e3
NN
7585echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7587if test "${ac_cv_path_MSGFMT+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7589else
7590 case "$MSGFMT" in
7591 /*)
7592 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7596 for ac_dir in $PATH; do
7597 test -z "$ac_dir" && ac_dir=.
7598 if test -f $ac_dir/$ac_word; then
7599 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7600 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7601 break
7602 fi
7603 fi
7604 done
7605 IFS="$ac_save_ifs"
7606 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7607 ;;
7608esac
7609fi
7610MSGFMT="$ac_cv_path_MSGFMT"
7611if test -n "$MSGFMT"; then
979273e3
NN
7612 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7613echo "${ECHO_T}$MSGFMT" >&6
252b5132 7614else
979273e3
NN
7615 echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6
252b5132
RH
7617fi
7618 if test "$MSGFMT" != "no"; then
979273e3
NN
7619
7620for ac_func in dcgettext
252b5132 7621do
979273e3
NN
7622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7623echo "$as_me:$LINENO: checking for $ac_func" >&5
7624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7625if eval "test \"\${$as_ac_var+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 cat >conftest.$ac_ext <<_ACEOF
7629/* confdefs.h. */
7630_ACEOF
7631cat confdefs.h >>conftest.$ac_ext
7632cat >>conftest.$ac_ext <<_ACEOF
7633/* end confdefs.h. */
7634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7636#define $ac_func innocuous_$ac_func
7637
252b5132 7638/* System header to define __stub macros and hopefully few prototypes,
979273e3
NN
7639 which can conflict with char $ac_func (); below.
7640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7641 <limits.h> exists even on freestanding compilers. */
7642
7643#ifdef __STDC__
7644# include <limits.h>
7645#else
7646# include <assert.h>
7647#endif
252b5132 7648
979273e3 7649#undef $ac_func
252b5132 7650
979273e3
NN
7651/* Override any gcc2 internal prototype to avoid an error. */
7652#ifdef __cplusplus
7653extern "C"
7654{
7655#endif
7656/* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7658char $ac_func ();
252b5132
RH
7659/* The GNU C library defines this for functions which it implements
7660 to always fail with ENOSYS. Some functions are actually named
7661 something starting with __ and the normal name is an alias. */
7662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7663choke me
7664#else
979273e3
NN
7665char (*f) () = $ac_func;
7666#endif
7667#ifdef __cplusplus
7668}
252b5132
RH
7669#endif
7670
979273e3
NN
7671int
7672main ()
7673{
7674return f != $ac_func;
7675 ;
7676 return 0;
7677}
7678_ACEOF
7679rm -f conftest.$ac_objext conftest$ac_exeext
7680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7681 (eval $ac_link) 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
8ae85421
AM
7688 { ac_try='test -z "$ac_c_werror_flag"
7689 || test ! -s conftest.err'
979273e3
NN
7690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691 (eval $ac_try) 2>&5
7692 ac_status=$?
7693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694 (exit $ac_status); }; } &&
7695 { ac_try='test -s conftest$ac_exeext'
7696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697 (eval $ac_try) 2>&5
7698 ac_status=$?
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); }; }; then
7701 eval "$as_ac_var=yes"
7702else
7703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
7706eval "$as_ac_var=no"
7707fi
7708rm -f conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710fi
7711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7713if test `eval echo '${'$as_ac_var'}'` = yes; then
7714 cat >>confdefs.h <<_ACEOF
7715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7716_ACEOF
252b5132 7717
252b5132
RH
7718fi
7719done
7720
7721 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7722set dummy gmsgfmt; ac_word=$2
979273e3
NN
7723echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725if test "${ac_cv_path_GMSGFMT+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7727else
979273e3
NN
7728 case $GMSGFMT in
7729 [\\/]* | ?:[\\/]*)
252b5132
RH
7730 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7731 ;;
252b5132 7732 *)
979273e3
NN
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734for as_dir in $PATH
7735do
7736 IFS=$as_save_IFS
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 break 2
7743 fi
7744done
7745done
7746
252b5132
RH
7747 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7748 ;;
7749esac
7750fi
979273e3
NN
7751GMSGFMT=$ac_cv_path_GMSGFMT
7752
252b5132 7753if test -n "$GMSGFMT"; then
979273e3
NN
7754 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7755echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7756else
979273e3
NN
7757 echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
252b5132
RH
7759fi
7760
7761 # Extract the first word of "xgettext", so it can be a program name with args.
7762set dummy xgettext; ac_word=$2
979273e3
NN
7763echo "$as_me:$LINENO: checking for $ac_word" >&5
7764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7765if test "${ac_cv_path_XGETTEXT+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7767else
7768 case "$XGETTEXT" in
7769 /*)
7770 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7771 ;;
7772 *)
7773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7774 for ac_dir in $PATH; do
7775 test -z "$ac_dir" && ac_dir=.
7776 if test -f $ac_dir/$ac_word; then
7777 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7778 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7779 break
7780 fi
7781 fi
7782 done
7783 IFS="$ac_save_ifs"
7784 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7785 ;;
7786esac
7787fi
7788XGETTEXT="$ac_cv_path_XGETTEXT"
7789if test -n "$XGETTEXT"; then
979273e3
NN
7790 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7791echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7792else
979273e3
NN
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
252b5132
RH
7795fi
7796
979273e3
NN
7797 cat >conftest.$ac_ext <<_ACEOF
7798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
252b5132 7803
979273e3
NN
7804int
7805main ()
7806{
252b5132
RH
7807extern int _nl_msg_cat_cntr;
7808 return _nl_msg_cat_cntr
979273e3
NN
7809 ;
7810 return 0;
7811}
7812_ACEOF
7813rm -f conftest.$ac_objext conftest$ac_exeext
7814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>conftest.er1
7816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
8ae85421
AM
7822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
979273e3
NN
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
252b5132
RH
7835 CATOBJEXT=.gmo
7836 DATADIRNAME=share
7837else
979273e3
NN
7838 echo "$as_me: failed program was:" >&5
7839sed 's/^/| /' conftest.$ac_ext >&5
7840
7841CATOBJEXT=.mo
252b5132
RH
7842 DATADIRNAME=lib
7843fi
979273e3
NN
7844rm -f conftest.err conftest.$ac_objext \
7845 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7846 INSTOBJEXT=.mo
7847 fi
7848 fi
979273e3 7849
252b5132
RH
7850fi
7851
7852
979273e3
NN
7853
7854
a53bf506 7855 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
45181ed1
AC
7856 # Neither gettext nor catgets in included in the C library.
7857 # Fall back on GNU gettext library (assuming it is present).
7858 nls_cv_use_gnu_gettext=yes
252b5132
RH
7859 fi
7860 fi
7861
7862 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7863 INTLOBJS="\$(GETTOBJS)"
7864 # Extract the first word of "msgfmt", so it can be a program name with args.
7865set dummy msgfmt; ac_word=$2
979273e3
NN
7866echo "$as_me:$LINENO: checking for $ac_word" >&5
7867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7868if test "${ac_cv_path_MSGFMT+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7870else
7871 case "$MSGFMT" in
7872 /*)
7873 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7874 ;;
7875 *)
7876 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7877 for ac_dir in $PATH; do
7878 test -z "$ac_dir" && ac_dir=.
7879 if test -f $ac_dir/$ac_word; then
7880 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7881 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7882 break
7883 fi
7884 fi
7885 done
7886 IFS="$ac_save_ifs"
7887 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7888 ;;
7889esac
7890fi
7891MSGFMT="$ac_cv_path_MSGFMT"
7892if test -n "$MSGFMT"; then
979273e3
NN
7893 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7894echo "${ECHO_T}$MSGFMT" >&6
252b5132 7895else
979273e3
NN
7896 echo "$as_me:$LINENO: result: no" >&5
7897echo "${ECHO_T}no" >&6
252b5132
RH
7898fi
7899
7900 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7901set dummy gmsgfmt; ac_word=$2
979273e3
NN
7902echo "$as_me:$LINENO: checking for $ac_word" >&5
7903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7904if test "${ac_cv_path_GMSGFMT+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7906else
979273e3
NN
7907 case $GMSGFMT in
7908 [\\/]* | ?:[\\/]*)
252b5132
RH
7909 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7910 ;;
252b5132 7911 *)
979273e3
NN
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
7924done
7925
252b5132
RH
7926 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7927 ;;
7928esac
7929fi
979273e3
NN
7930GMSGFMT=$ac_cv_path_GMSGFMT
7931
252b5132 7932if test -n "$GMSGFMT"; then
979273e3
NN
7933 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7934echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7935else
979273e3
NN
7936 echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
252b5132
RH
7938fi
7939
7940 # Extract the first word of "xgettext", so it can be a program name with args.
7941set dummy xgettext; ac_word=$2
979273e3
NN
7942echo "$as_me:$LINENO: checking for $ac_word" >&5
7943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7944if test "${ac_cv_path_XGETTEXT+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7946else
7947 case "$XGETTEXT" in
7948 /*)
7949 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7950 ;;
7951 *)
7952 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7953 for ac_dir in $PATH; do
7954 test -z "$ac_dir" && ac_dir=.
7955 if test -f $ac_dir/$ac_word; then
7956 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7957 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7958 break
7959 fi
7960 fi
7961 done
7962 IFS="$ac_save_ifs"
7963 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7964 ;;
7965esac
7966fi
7967XGETTEXT="$ac_cv_path_XGETTEXT"
7968if test -n "$XGETTEXT"; then
979273e3
NN
7969 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7970echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7971else
979273e3
NN
7972 echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
252b5132
RH
7974fi
7975
979273e3 7976
252b5132
RH
7977 USE_INCLUDED_LIBINTL=yes
7978 CATOBJEXT=.gmo
7979 INSTOBJEXT=.mo
7980 DATADIRNAME=share
7981 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7982 INTLLIBS=$INTLDEPS
7983 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7984 nls_cv_header_intl=libintl.h
7985 nls_cv_header_libgt=libgettext.h
7986 fi
7987
7988 if test "$XGETTEXT" != ":"; then
7989 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7990 : ;
7991 else
979273e3
NN
7992 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7993echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7994 XGETTEXT=":"
7995 fi
7996 fi
7997
7998 # We need to process the po/ directory.
7999 POSUB=po
8000 else
8001 DATADIRNAME=share
8002 nls_cv_header_intl=libintl.h
8003 nls_cv_header_libgt=libgettext.h
8004 fi
8005
8006 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8007 # because some of the sources are only built for this goal.
8008 if test "$PACKAGE" = gettext; then
8009 USE_NLS=yes
8010 USE_INCLUDED_LIBINTL=yes
8011 fi
8012
8013 for lang in $ALL_LINGUAS; do
8014 GMOFILES="$GMOFILES $lang.gmo"
8015 POFILES="$POFILES $lang.po"
8016 done
8017
979273e3
NN
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
c46f8c51
AC
8029 if test "x$CATOBJEXT" != "x"; then
8030
8031cat >>confdefs.h <<\_ACEOF
8032#define ENABLE_NLS 1
8033_ACEOF
8034
8035 fi
979273e3 8036
252b5132
RH
8037
8038 if test "x$CATOBJEXT" != "x"; then
8039 if test "x$ALL_LINGUAS" = "x"; then
8040 LINGUAS=
8041 else
979273e3
NN
8042 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8043echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8044 NEW_LINGUAS=
8045 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8046 case "$ALL_LINGUAS" in
8047 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8048 esac
8049 done
8050 LINGUAS=$NEW_LINGUAS
979273e3
NN
8051 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8052echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8053 fi
8054
8055 if test -n "$LINGUAS"; then
8056 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8057 fi
8058 fi
8059
8060 if test $ac_cv_header_locale_h = yes; then
8061 INCLUDE_LOCALE_H="#include <locale.h>"
8062 else
8063 INCLUDE_LOCALE_H="\
8064/* The system does not provide the header <locale.h>. Take care yourself. */"
8065 fi
979273e3 8066
252b5132
RH
8067
8068 if test -f $srcdir/po2tbl.sed.in; then
8069 if test "$CATOBJEXT" = ".cat"; then
979273e3
NN
8070 if test "${ac_cv_header_linux_version_h+set}" = set; then
8071 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8072echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8073if test "${ac_cv_header_linux_version_h+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075fi
8076echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8077echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8078else
8079 # Is the header compilable?
8080echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8081echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8082cat >conftest.$ac_ext <<_ACEOF
8083/* confdefs.h. */
8084_ACEOF
8085cat confdefs.h >>conftest.$ac_ext
8086cat >>conftest.$ac_ext <<_ACEOF
8087/* end confdefs.h. */
8088$ac_includes_default
252b5132 8089#include <linux/version.h>
979273e3
NN
8090_ACEOF
8091rm -f conftest.$ac_objext
8092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8093 (eval $ac_compile) 2>conftest.er1
8094 ac_status=$?
8095 grep -v '^ *+' conftest.er1 >conftest.err
8096 rm -f conftest.er1
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } &&
8ae85421
AM
8100 { ac_try='test -z "$ac_c_werror_flag"
8101 || test ! -s conftest.err'
979273e3
NN
8102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 (eval $ac_try) 2>&5
8104 ac_status=$?
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); }; } &&
8107 { ac_try='test -s conftest.$ac_objext'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8109 (eval $ac_try) 2>&5
8110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; }; then
8113 ac_header_compiler=yes
8114else
8115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118ac_header_compiler=no
8119fi
8120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8122echo "${ECHO_T}$ac_header_compiler" >&6
8123
8124# Is the header present?
8125echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8126echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8127cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133#include <linux/version.h>
8134_ACEOF
8135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8137 ac_status=$?
8138 grep -v '^ *+' conftest.er1 >conftest.err
8139 rm -f conftest.er1
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } >/dev/null; then
8143 if test -s conftest.err; then
8144 ac_cpp_err=$ac_c_preproc_warn_flag
8145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8146 else
8147 ac_cpp_err=
8148 fi
252b5132 8149else
979273e3 8150 ac_cpp_err=yes
252b5132 8151fi
979273e3
NN
8152if test -z "$ac_cpp_err"; then
8153 ac_header_preproc=yes
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_header_preproc=no
8159fi
8160rm -f conftest.err conftest.$ac_ext
8161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8162echo "${ECHO_T}$ac_header_preproc" >&6
8163
8164# So? What about this header?
8165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8166 yes:no: )
8167 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8168echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8169 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8170echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8171 ac_header_preproc=yes
8172 ;;
8173 no:yes:* )
8174 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8175echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8177echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8179echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8181echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8183echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8185echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8186 (
8187 cat <<\_ASBOX
8188## ------------------------------------------ ##
8189## Report this to the AC_PACKAGE_NAME lists. ##
8190## ------------------------------------------ ##
8191_ASBOX
8192 ) |
8193 sed "s/^/$as_me: WARNING: /" >&2
8194 ;;
8195esac
8196echo "$as_me:$LINENO: checking for linux/version.h" >&5
8197echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8198if test "${ac_cv_header_linux_version_h+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201 ac_cv_header_linux_version_h=$ac_header_preproc
8202fi
8203echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8204echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8205
252b5132 8206fi
979273e3 8207if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8208 msgformat=linux
8209else
979273e3 8210 msgformat=xopen
252b5132
RH
8211fi
8212
8213
979273e3 8214
252b5132
RH
8215 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8216 fi
8217 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8218 $srcdir/po2tbl.sed.in > po2tbl.sed
8219 fi
8220
8221 if test "$PACKAGE" = "gettext"; then
8222 GT_NO="#NO#"
8223 GT_YES=
8224 else
8225 GT_NO=
8226 GT_YES="#YES#"
8227 fi
979273e3
NN
8228
8229
252b5132
RH
8230
8231 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
979273e3 8232
252b5132
RH
8233
8234 l=
979273e3 8235
252b5132 8236
fcd8210c 8237 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8238 test -d po || mkdir po
8239 if test "x$srcdir" != "x."; then
8240 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8241 posrcprefix="$srcdir/"
8242 else
8243 posrcprefix="../$srcdir/"
8244 fi
8245 else
8246 posrcprefix="../"
8247 fi
8248 rm -f po/POTFILES
8249 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8250 < $srcdir/po/POTFILES.in > po/POTFILES
8251 fi
979273e3 8252
252b5132
RH
8253
8254. ${srcdir}/../bfd/configure.host
8255
b6849f55
NC
8256# Put a plausible default for CC_FOR_BUILD in Makefile.
8257if test -z "$CC_FOR_BUILD"; then
8258 if test "x$cross_compiling" = "xno"; then
8259 CC_FOR_BUILD='$(CC)'
8260 else
8261 CC_FOR_BUILD=gcc
8262 fi
8263fi
8264
8265# Also set EXEEXT_FOR_BUILD.
8266if test "x$cross_compiling" = "xno"; then
8267 EXEEXT_FOR_BUILD='$(EXEEXT)'
8268else
979273e3
NN
8269 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8270echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8271if test "${bfd_cv_build_exeext+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
b6849f55
NC
8273else
8274 rm -f conftest*
8275 echo 'int main () { return 0; }' > conftest.c
8276 bfd_cv_build_exeext=
8277 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8278 for file in conftest.*; do
8279 case $file in
8280 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8281 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8282 esac
8283 done
8284 rm -f conftest*
8285 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8286fi
979273e3
NN
8287echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8288echo "${ECHO_T}$bfd_cv_build_exeext" >&6
b6849f55
NC
8289 EXEEXT_FOR_BUILD=""
8290 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8291fi
8292
8293
252b5132
RH
8294
8295# Find a good install program. We prefer a C program (faster),
8296# so one script is as good as another. But avoid the broken or
8297# incompatible versions:
8298# SysV /etc/install, /usr/sbin/install
8299# SunOS /usr/etc/install
8300# IRIX /sbin/install
8301# AIX /bin/install
979273e3 8302# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8303# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8304# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8305# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
979273e3 8306# OS/2's system install, which has a completely different semantic
252b5132 8307# ./install, which can be erroneously created by make from ./install.sh.
979273e3
NN
8308echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8309echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8310if test -z "$INSTALL"; then
979273e3
NN
8311if test "${ac_cv_path_install+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8313else
979273e3
NN
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315for as_dir in $PATH
8316do
8317 IFS=$as_save_IFS
8318 test -z "$as_dir" && as_dir=.
8319 # Account for people who put trailing slashes in PATH elements.
8320case $as_dir/ in
8321 ./ | .// | /cC/* | \
8322 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8323 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8324 /usr/ucb/* ) ;;
8325 *)
8326 # OSF1 and SCO ODT 3.0 have their own names for install.
8327 # Don't use installbsd from OSF since it installs stuff as root
8328 # by default.
8329 for ac_prog in ginstall scoinst install; do
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8332 if test $ac_prog = install &&
979273e3 8333 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8334 # AIX install. It has an incompatible calling convention.
8335 :
979273e3
NN
8336 elif test $ac_prog = install &&
8337 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8338 # program-specific install script used by HP pwplus--don't use.
8339 :
252b5132 8340 else
979273e3
NN
8341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8342 break 3
252b5132
RH
8343 fi
8344 fi
8345 done
979273e3
NN
8346 done
8347 ;;
8348esac
8349done
8350
252b5132
RH
8351
8352fi
8353 if test "${ac_cv_path_install+set}" = set; then
979273e3 8354 INSTALL=$ac_cv_path_install
252b5132
RH
8355 else
8356 # As a last resort, use the slow shell script. We don't cache a
8357 # path for INSTALL within a source directory, because that will
8358 # break other packages using the cache if that directory is
8359 # removed, or if the path is relative.
979273e3 8360 INSTALL=$ac_install_sh
252b5132
RH
8361 fi
8362fi
979273e3
NN
8363echo "$as_me:$LINENO: result: $INSTALL" >&5
8364echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8365
8366# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8367# It thinks the first close brace ends the variable substitution.
8368test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8369
979273e3 8370test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8371
8372test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8373
8374
979273e3
NN
8375
8376
8377
8378for ac_header in string.h strings.h stdlib.h
252b5132 8379do
979273e3
NN
8380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8381if eval "test \"\${$as_ac_Header+set}\" = set"; then
8382 echo "$as_me:$LINENO: checking for $ac_header" >&5
8383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8384if eval "test \"\${$as_ac_Header+set}\" = set"; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386fi
8387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8389else
8390 # Is the header compilable?
8391echo "$as_me:$LINENO: checking $ac_header usability" >&5
8392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8393cat >conftest.$ac_ext <<_ACEOF
8394/* confdefs.h. */
8395_ACEOF
8396cat confdefs.h >>conftest.$ac_ext
8397cat >>conftest.$ac_ext <<_ACEOF
8398/* end confdefs.h. */
8399$ac_includes_default
8400#include <$ac_header>
8401_ACEOF
8402rm -f conftest.$ac_objext
8403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8404 (eval $ac_compile) 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } &&
8ae85421
AM
8411 { ac_try='test -z "$ac_c_werror_flag"
8412 || test ! -s conftest.err'
979273e3
NN
8413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8414 (eval $ac_try) 2>&5
8415 ac_status=$?
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); }; } &&
8418 { ac_try='test -s conftest.$ac_objext'
8419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420 (eval $ac_try) 2>&5
8421 ac_status=$?
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 ac_header_compiler=yes
8425else
8426 echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429ac_header_compiler=no
8430fi
8431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8433echo "${ECHO_T}$ac_header_compiler" >&6
8434
8435# Is the header present?
8436echo "$as_me:$LINENO: checking $ac_header presence" >&5
8437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8438cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h. */
8444#include <$ac_header>
8445_ACEOF
8446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8448 ac_status=$?
8449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } >/dev/null; then
8454 if test -s conftest.err; then
8455 ac_cpp_err=$ac_c_preproc_warn_flag
8456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8457 else
8458 ac_cpp_err=
8459 fi
252b5132 8460else
979273e3 8461 ac_cpp_err=yes
252b5132 8462fi
979273e3
NN
8463if test -z "$ac_cpp_err"; then
8464 ac_header_preproc=yes
8465else
8466 echo "$as_me: failed program was:" >&5
8467sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 ac_header_preproc=no
252b5132 8470fi
979273e3
NN
8471rm -f conftest.err conftest.$ac_ext
8472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8473echo "${ECHO_T}$ac_header_preproc" >&6
8474
8475# So? What about this header?
8476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8477 yes:no: )
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8482 ac_header_preproc=yes
8483 ;;
8484 no:yes:* )
8485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8497 (
8498 cat <<\_ASBOX
8499## ------------------------------------------ ##
8500## Report this to the AC_PACKAGE_NAME lists. ##
8501## ------------------------------------------ ##
8502_ASBOX
8503 ) |
8504 sed "s/^/$as_me: WARNING: /" >&2
8505 ;;
8506esac
8507echo "$as_me:$LINENO: checking for $ac_header" >&5
8508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8509if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8511else
979273e3
NN
8512 eval "$as_ac_Header=\$ac_header_preproc"
8513fi
8514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8516
8517fi
8518if test `eval echo '${'$as_ac_Header'}'` = yes; then
8519 cat >>confdefs.h <<_ACEOF
8520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8521_ACEOF
8522
252b5132 8523fi
979273e3 8524
252b5132
RH
8525done
8526
8527
4bd60896
JG
8528echo "$as_me:$LINENO: checking whether basename is declared" >&5
8529echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
8530if test "${ac_cv_have_decl_basename+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8532else
8533 cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
8539#include "sysdep.h"
8540
8541int
8542main ()
8543{
8544#ifndef basename
8545 char *p = (char *) basename;
8546#endif
8547
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext
8553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8554 (eval $ac_compile) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -z "$ac_c_werror_flag"
8562 || test ! -s conftest.err'
8563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 (eval $ac_try) 2>&5
8565 ac_status=$?
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); }; } &&
8568 { ac_try='test -s conftest.$ac_objext'
8569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 (eval $ac_try) 2>&5
8571 ac_status=$?
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); }; }; then
8574 ac_cv_have_decl_basename=yes
8575else
8576 echo "$as_me: failed program was:" >&5
8577sed 's/^/| /' conftest.$ac_ext >&5
8578
8579ac_cv_have_decl_basename=no
8580fi
8581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8582fi
8583echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
8584echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
8585if test $ac_cv_have_decl_basename = yes; then
8586
8587cat >>confdefs.h <<_ACEOF
8588#define HAVE_DECL_BASENAME 1
8589_ACEOF
8590
8591
8592else
8593 cat >>confdefs.h <<_ACEOF
8594#define HAVE_DECL_BASENAME 0
8595_ACEOF
8596
8597
8598fi
8599
8600
8601
6e31aea3
BE
8602cgen_maint=no
8603cgendir='$(srcdir)/../cgen'
8604
8605# Check whether --enable-cgen-maint or --disable-cgen-maint was given.
8606if test "${enable_cgen_maint+set}" = set; then
8607 enableval="$enable_cgen_maint"
8608 case "${enableval}" in
8609 yes) cgen_maint=yes ;;
8610 no) cgen_maint=no ;;
8611 *)
8612 # argument is cgen install directory (not implemented yet).
8613 # Having a `share' directory might be more appropriate for the .scm,
8614 # .cpu, etc. files.
8615 cgen_maint=yes
8616 cgendir=${cgen_maint}/lib/cgen
8617 ;;
8618esac
979273e3 8619fi;
6e31aea3
BE
8620
8621if test x${cgen_maint} = xyes; then
8622 CGEN_MAINT_TRUE=
8623 CGEN_MAINT_FALSE='#'
8624else
8625 CGEN_MAINT_TRUE='#'
8626 CGEN_MAINT_FALSE=
8627fi
8628
252b5132 8629
8ae85421 8630
252b5132
RH
8631using_cgen=no
8632
8633# Horrible hacks to build DLLs on Windows.
8634WIN32LDFLAGS=
8635WIN32LIBADD=
8636case "${host}" in
8637*-*-cygwin*)
8638 if test "$enable_shared" = "yes"; then
8639 WIN32LDFLAGS="-no-undefined"
8640 WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
8641 fi
8642 ;;
8643esac
8644
8645
8646
8647# target-specific stuff:
8648
8649# Canonicalize the secondary target names.
8650if test -n "$enable_targets" ; then
8651 for targ in `echo $enable_targets | sed 's/,/ /g'`
8652 do
6d83c84b 8653 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
8654 if test -n "$result" ; then
8655 canon_targets="$canon_targets $result"
8656 else
8657 # Allow targets that config.sub doesn't recognize, like "all".
8658 canon_targets="$canon_targets $targ"
8659 fi
8660 done
8661fi
8662
8663all_targets=false
8664selarchs=
8665for targ in $target $canon_targets
8666do
8667 if test "x$targ" = "xall" ; then
8668 all_targets=true
8669 else
8670 . $srcdir/../bfd/config.bfd
8671 selarchs="$selarchs $targ_archs"
8672 fi
979273e3 8673done
252b5132
RH
8674
8675# Utility var, documents generic cgen support files.
8676
8677cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo"
8678
8679# We don't do any links based on the target system, just makefile config.
8680
8681if test x${all_targets} = xfalse ; then
8682
8683 # Target architecture .o files.
8684 ta=
8685
8686 for arch in $selarchs
8687 do
8688 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
8689 archdefs="$archdefs -DARCH_$ad"
8690 case "$arch" in
8691 bfd_a29k_arch) ta="$ta a29k-dis.lo" ;;
8692 bfd_alliant_arch) ;;
8693 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;;
0d2bcfaf 8694 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
252b5132 8695 bfd_arm_arch) ta="$ta arm-dis.lo" ;;
adde6300 8696 bfd_avr_arch) ta="$ta avr-dis.lo" ;;
252b5132 8697 bfd_convex_arch) ;;
6c95a37f 8698 bfd_cris_arch) ta="$ta cris-dis.lo cris-opc.lo" ;;
1fe1f39c 8699 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;;
252b5132
RH
8700 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;;
8701 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;;
d172d4ba 8702 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;;
252b5132
RH
8703 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
8704 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;;
8705 bfd_h8500_arch) ta="$ta h8500-dis.lo" ;;
8706 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;;
5b93d8bb 8707 bfd_i370_arch) ta="$ta i370-dis.lo i370-opc.lo" ;;
252b5132 8708 bfd_i386_arch) ta="$ta i386-dis.lo" ;;
9d751335 8709 bfd_i860_arch) ta="$ta i860-dis.lo" ;;
252b5132 8710 bfd_i960_arch) ta="$ta i960-dis.lo" ;;
800eeca4 8711 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;;
a40cbfa3 8712 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
47b1a55a 8713 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
252b5132 8714 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
60bcf0fa
NC
8715 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
8716 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
252b5132
RH
8717 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;;
8718 bfd_m88k_arch) ta="$ta m88k-dis.lo" ;;
7499d566 8719 bfd_maxq_arch) ta="$ta maxq-dis.lo" ;;
252b5132
RH
8720 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;;
8721 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
3c3bdf30 8722 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;;
252b5132
RH
8723 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;;
8724 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;;
2469cfa2 8725 bfd_msp430_arch) ta="$ta msp430-dis.lo" ;;
252b5132 8726 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;;
87e6d782 8727 bfd_openrisc_arch) ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
3b16e843 8728 bfd_or32_arch) ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
e135f41b 8729 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
1e608f98 8730 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;;
252b5132 8731 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 8732 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
5dd0794d 8733 bfd_pyramid_arch) ;;
252b5132
RH
8734 bfd_romp_arch) ;;
8735 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;;
a85d7ed0 8736 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;;
09919455 8737 bfd_sh_arch)
d28847ce 8738 # We can't decide what we want just from the CPU family.
e8b872bb
AO
8739 # We want SH5 support unless a specific version of sh is
8740 # specified, as in sh3-elf, sh3b-linux-gnu, etc.
ca0f2ed6
HPN
8741 # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
8742 for t in $target $canon_targets; do
8743 case $t in
5b0e55b6 8744 all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
942e7dd9 8745 sh-*-linux* | shl-*-linux*)
d28847ce 8746 ta="$ta sh64-dis.lo sh64-opc.lo"
ca0f2ed6
HPN
8747 archdefs="$archdefs -DINCLUDE_SHMEDIA"
8748 break;;
8749 esac;
8750 done
09919455 8751 ta="$ta sh-dis.lo" ;;
252b5132
RH
8752 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;;
8753 bfd_tahoe_arch) ;;
8754 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;;
026df7c5 8755 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;;
5c84d377 8756 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
252b5132
RH
8757 bfd_tic80_arch) ta="$ta tic80-dis.lo tic80-opc.lo" ;;
8758 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8759 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8760 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;;
8761 bfd_vax_arch) ta="$ta vax-dis.lo" ;;
8762 bfd_w65_arch) ta="$ta w65-dis.lo" ;;
8763 bfd_we32k_arch) ;;
93fbbb04 8764 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
e0001a05 8765 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;;
252b5132 8766 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;;
fd3c93d5 8767 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
252b5132
RH
8768
8769 "") ;;
979273e3
NN
8770 *) { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
8771echo "$as_me: error: *** unknown target architecture $arch" >&2;}
8772 { (exit 1); exit 1; }; } ;;
252b5132
RH
8773 esac
8774 done
8775
8776 if test $using_cgen = yes ; then
8777 ta="$ta $cgen_files"
8778 fi
8779
8780 # Weed out duplicate .o files.
8781 f=""
8782 for i in $ta ; do
8783 case " $f " in
8784 *" $i "*) ;;
8785 *) f="$f $i" ;;
8786 esac
8787 done
8788 ta="$f"
8789
8790 # And duplicate -D flags.
8791 f=""
8792 for i in $archdefs ; do
8793 case " $f " in
8794 *" $i "*) ;;
8795 *) f="$f $i" ;;
8796 esac
8797 done
8798 archdefs="$f"
8799
8800 BFD_MACHINES="$ta"
8801
8802else # all_targets is true
8803 archdefs=-DARCH_all
8804 BFD_MACHINES='$(ALL_MACHINES)'
8805fi
8806
8807
8808
8809
979273e3
NN
8810 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
8811
8812 ac_config_commands="$ac_config_commands default"
8813
8814cat >confcache <<\_ACEOF
252b5132
RH
8815# This file is a shell script that caches the results of configure
8816# tests run on this system so they can be shared between configure
979273e3
NN
8817# scripts and configure runs, see configure's option --config-cache.
8818# It is not useful on other systems. If it contains results you don't
8819# want to keep, you may remove or edit it.
252b5132 8820#
979273e3
NN
8821# config.status only pays attention to the cache file if you give it
8822# the --recheck option to rerun configure.
252b5132 8823#
979273e3
NN
8824# `ac_cv_env_foo' variables (set or unset) will be overridden when
8825# loading this file, other *unset* `ac_cv_foo' will be assigned the
8826# following values.
8827
8828_ACEOF
8829
252b5132
RH
8830# The following way of writing the cache mishandles newlines in values,
8831# but we know of no workaround that is simple, portable, and efficient.
8832# So, don't put newlines in cache variables' values.
8833# Ultrix sh set writes to stderr and can't be redirected directly,
8834# and sets the high bit in the cache file unless we assign to the vars.
979273e3
NN
8835{
8836 (set) 2>&1 |
8837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8838 *ac_space=\ *)
8839 # `set' does not quote correctly, so add quotes (double-quote
8840 # substitution turns \\\\ into \\, and sed turns \\ into \).
8841 sed -n \
8842 "s/'/'\\\\''/g;
8843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8844 ;;
8845 *)
8846 # `set' quotes correctly as required by POSIX, so do not add quotes.
8847 sed -n \
8848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8849 ;;
8850 esac;
8851} |
8852 sed '
8853 t clear
8854 : clear
8855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8856 t end
8857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8858 : end' >>confcache
8859if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 8860 if test -w $cache_file; then
979273e3
NN
8861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8862 cat confcache >$cache_file
252b5132
RH
8863 else
8864 echo "not updating unwritable cache $cache_file"
8865 fi
8866fi
8867rm -f confcache
8868
252b5132
RH
8869test "x$prefix" = xNONE && prefix=$ac_default_prefix
8870# Let make expand exec_prefix.
8871test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8872
979273e3
NN
8873# VPATH may cause trouble with some makes, so we remove $(srcdir),
8874# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8875# trailing colons and then remove the whole line if VPATH becomes empty
8876# (actually we leave an empty line to preserve line numbers).
252b5132 8877if test "x$srcdir" = x.; then
979273e3
NN
8878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8879s/:*\$(srcdir):*/:/;
8880s/:*\${srcdir}:*/:/;
8881s/:*@srcdir@:*/:/;
8882s/^\([^=]*=[ ]*\):*/\1/;
8883s/:*$//;
8884s/^[^=]*=[ ]*$//;
8885}'
252b5132
RH
8886fi
8887
252b5132
RH
8888DEFS=-DHAVE_CONFIG_H
8889
979273e3
NN
8890ac_libobjs=
8891ac_ltlibobjs=
8892for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8893 # 1. Remove the extension, and $U if already installed.
8894 ac_i=`echo "$ac_i" |
8895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8896 # 2. Add them.
8897 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8898 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8899done
8900LIBOBJS=$ac_libobjs
252b5132 8901
979273e3
NN
8902LTLIBOBJS=$ac_ltlibobjs
8903
8904
8ae85421
AM
8905if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8906 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8907Usually this means the macro was only invoked conditionally." >&5
8908echo "$as_me: error: conditional \"AMDEP\" was never defined.
8909Usually this means the macro was only invoked conditionally." >&2;}
8910 { (exit 1); exit 1; }; }
8911fi
8912if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8913 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8914Usually this means the macro was only invoked conditionally." >&5
8915echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8916Usually this means the macro was only invoked conditionally." >&2;}
8917 { (exit 1); exit 1; }; }
8918fi
8919if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8920 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8921Usually this means the macro was only invoked conditionally." >&5
8922echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8923Usually this means the macro was only invoked conditionally." >&2;}
8924 { (exit 1); exit 1; }; }
8925fi
8926if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
8927 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
8928Usually this means the macro was only invoked conditionally." >&5
8929echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
8930Usually this means the macro was only invoked conditionally." >&2;}
8931 { (exit 1); exit 1; }; }
8932fi
8933if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
8934 { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
8935Usually this means the macro was only invoked conditionally." >&5
8936echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
8937Usually this means the macro was only invoked conditionally." >&2;}
8938 { (exit 1); exit 1; }; }
8939fi
979273e3
NN
8940
8941: ${CONFIG_STATUS=./config.status}
8942ac_clean_files_save=$ac_clean_files
8943ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8944{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8945echo "$as_me: creating $CONFIG_STATUS" >&6;}
8946cat >$CONFIG_STATUS <<_ACEOF
8947#! $SHELL
8948# Generated by $as_me.
252b5132 8949# Run this file to recreate the current configuration.
252b5132 8950# Compiler output produced by configure, useful for debugging
979273e3 8951# configure, is in config.log if it exists.
252b5132 8952
979273e3
NN
8953debug=false
8954ac_cs_recheck=false
8955ac_cs_silent=false
8956SHELL=\${CONFIG_SHELL-$SHELL}
8957_ACEOF
8958
8959cat >>$CONFIG_STATUS <<\_ACEOF
8960## --------------------- ##
8961## M4sh Initialization. ##
8962## --------------------- ##
8963
8964# Be Bourne compatible
8965if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8966 emulate sh
8967 NULLCMD=:
8968 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8969 # is contrary to our usage. Disable this feature.
8970 alias -g '${1+"$@"}'='"$@"'
8971elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8972 set -o posix
8973fi
8974DUALCASE=1; export DUALCASE # for MKS sh
8975
8976# Support unset when possible.
8977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8978 as_unset=unset
8979else
8980 as_unset=false
8981fi
8982
8983
8984# Work around bugs in pre-3.0 UWIN ksh.
8985$as_unset ENV MAIL MAILPATH
8986PS1='$ '
8987PS2='> '
8988PS4='+ '
8989
8990# NLS nuisances.
8991for as_var in \
8992 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8993 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8994 LC_TELEPHONE LC_TIME
252b5132 8995do
979273e3
NN
8996 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8997 eval $as_var=C; export $as_var
8998 else
8999 $as_unset $as_var
9000 fi
252b5132
RH
9001done
9002
979273e3
NN
9003# Required to use basename.
9004if expr a : '\(a\)' >/dev/null 2>&1; then
9005 as_expr=expr
9006else
9007 as_expr=false
9008fi
9009
9010if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9011 as_basename=basename
9012else
9013 as_basename=false
9014fi
252b5132 9015
252b5132 9016
979273e3
NN
9017# Name of the executable.
9018as_me=`$as_basename "$0" ||
9019$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9020 X"$0" : 'X\(//\)$' \| \
9021 X"$0" : 'X\(/\)$' \| \
9022 . : '\(.\)' 2>/dev/null ||
9023echo X/"$0" |
9024 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9025 /^X\/\(\/\/\)$/{ s//\1/; q; }
9026 /^X\/\(\/\).*/{ s//\1/; q; }
9027 s/.*/./; q'`
252b5132 9028
252b5132 9029
979273e3
NN
9030# PATH needs CR, and LINENO needs CR and PATH.
9031# Avoid depending upon Character Ranges.
9032as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9033as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9034as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9035as_cr_digits='0123456789'
9036as_cr_alnum=$as_cr_Letters$as_cr_digits
9037
9038# The user is always right.
9039if test "${PATH_SEPARATOR+set}" != set; then
9040 echo "#! /bin/sh" >conf$$.sh
9041 echo "exit 0" >>conf$$.sh
9042 chmod +x conf$$.sh
9043 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9044 PATH_SEPARATOR=';'
252b5132 9045 else
979273e3
NN
9046 PATH_SEPARATOR=:
9047 fi
9048 rm -f conf$$.sh
9049fi
9050
9051
9052 as_lineno_1=$LINENO
9053 as_lineno_2=$LINENO
9054 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9055 test "x$as_lineno_1" != "x$as_lineno_2" &&
9056 test "x$as_lineno_3" = "x$as_lineno_2" || {
9057 # Find who we are. Look in the path if we contain no path at all
9058 # relative or not.
9059 case $0 in
9060 *[\\/]* ) as_myself=$0 ;;
9061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062for as_dir in $PATH
9063do
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9067done
9068
9069 ;;
9070 esac
9071 # We did not find ourselves, most probably we were run as `sh COMMAND'
9072 # in which case we are not to be found in the path.
9073 if test "x$as_myself" = x; then
9074 as_myself=$0
9075 fi
9076 if test ! -f "$as_myself"; then
9077 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9078echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9079 { (exit 1); exit 1; }; }
252b5132 9080 fi
979273e3
NN
9081 case $CONFIG_SHELL in
9082 '')
9083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9085do
9086 IFS=$as_save_IFS
9087 test -z "$as_dir" && as_dir=.
9088 for as_base in sh bash ksh sh5; do
9089 case $as_dir in
9090 /*)
9091 if ("$as_dir/$as_base" -c '
9092 as_lineno_1=$LINENO
9093 as_lineno_2=$LINENO
9094 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9095 test "x$as_lineno_1" != "x$as_lineno_2" &&
9096 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9097 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9098 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9099 CONFIG_SHELL=$as_dir/$as_base
9100 export CONFIG_SHELL
9101 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9102 fi;;
9103 esac
9104 done
9105done
9106;;
9107 esac
9108
9109 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9110 # uniformly replaced by the line number. The first 'sed' inserts a
9111 # line-number line before each line; the second 'sed' does the real
9112 # work. The second script uses 'N' to pair each line-number line
9113 # with the numbered line, and appends trailing '-' during
9114 # substitution so that $LINENO is not a special case at line end.
9115 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9116 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9117 sed '=' <$as_myself |
9118 sed '
9119 N
9120 s,$,-,
9121 : loop
9122 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9123 t loop
9124 s,-$,,
9125 s,^['$as_cr_digits']*\n,,
9126 ' >$as_me.lineno &&
9127 chmod +x $as_me.lineno ||
9128 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9129echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9130 { (exit 1); exit 1; }; }
9131
9132 # Don't try to exec as it changes $[0], causing all sort of problems
9133 # (the dirname of $[0] is not the place where we might find the
9134 # original and so on. Autoconf is especially sensible to this).
9135 . ./$as_me.lineno
9136 # Exit status is that of the last command.
9137 exit
9138}
9139
9140
9141case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9142 *c*,-n*) ECHO_N= ECHO_C='
9143' ECHO_T=' ' ;;
9144 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9145 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9146esac
9147
9148if expr a : '\(a\)' >/dev/null 2>&1; then
9149 as_expr=expr
9150else
9151 as_expr=false
9152fi
9153
9154rm -f conf$$ conf$$.exe conf$$.file
9155echo >conf$$.file
9156if ln -s conf$$.file conf$$ 2>/dev/null; then
9157 # We could just check for DJGPP; but this test a) works b) is more generic
9158 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9159 if test -f conf$$.exe; then
9160 # Don't use ln at all; we don't have any links
9161 as_ln_s='cp -p'
252b5132 9162 else
979273e3 9163 as_ln_s='ln -s'
252b5132 9164 fi
979273e3
NN
9165elif ln conf$$.file conf$$ 2>/dev/null; then
9166 as_ln_s=ln
9167else
9168 as_ln_s='cp -p'
9169fi
9170rm -f conf$$ conf$$.exe conf$$.file
9171
9172if mkdir -p . 2>/dev/null; then
9173 as_mkdir_p=:
9174else
9175 test -d ./-p && rmdir ./-p
9176 as_mkdir_p=false
9177fi
9178
9179as_executable_p="test -f"
9180
9181# Sed expression to map a string onto a valid CPP name.
9182as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9183
9184# Sed expression to map a string onto a valid variable name.
9185as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9186
9187
9188# IFS
9189# We need space, tab and new line, in precisely that order.
9190as_nl='
9191'
9192IFS=" $as_nl"
9193
9194# CDPATH.
9195$as_unset CDPATH
9196
9197exec 6>&1
9198
9199# Open the log real soon, to keep \$[0] and so on meaningful, and to
9200# report actual input values of CONFIG_FILES etc. instead of their
9201# values after options handling. Logging --version etc. is OK.
9202exec 5>>config.log
9203{
9204 echo
9205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9206## Running $as_me. ##
9207_ASBOX
9208} >&5
9209cat >&5 <<_CSEOF
9210
9211This file was extended by $as_me, which was
9212generated by GNU Autoconf 2.59. Invocation command line was
9213
9214 CONFIG_FILES = $CONFIG_FILES
9215 CONFIG_HEADERS = $CONFIG_HEADERS
9216 CONFIG_LINKS = $CONFIG_LINKS
9217 CONFIG_COMMANDS = $CONFIG_COMMANDS
9218 $ $0 $@
9219
9220_CSEOF
9221echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9222echo >&5
9223_ACEOF
9224
9225# Files that config.status was made for.
9226if test -n "$ac_config_files"; then
9227 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9228fi
9229
9230if test -n "$ac_config_headers"; then
9231 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9232fi
9233
9234if test -n "$ac_config_links"; then
9235 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9236fi
9237
9238if test -n "$ac_config_commands"; then
9239 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9240fi
9241
9242cat >>$CONFIG_STATUS <<\_ACEOF
9243
9244ac_cs_usage="\
9245\`$as_me' instantiates files from templates according to the
9246current configuration.
9247
9248Usage: $0 [OPTIONS] [FILE]...
9249
9250 -h, --help print this help, then exit
9251 -V, --version print version number, then exit
9252 -q, --quiet do not print progress messages
9253 -d, --debug don't remove temporary files
9254 --recheck update $as_me by reconfiguring in the same conditions
9255 --file=FILE[:TEMPLATE]
9256 instantiate the configuration file FILE
9257 --header=FILE[:TEMPLATE]
9258 instantiate the configuration header FILE
9259
9260Configuration files:
9261$config_files
9262
9263Configuration headers:
9264$config_headers
9265
9266Configuration commands:
9267$config_commands
9268
9269Report bugs to <bug-autoconf@gnu.org>."
9270_ACEOF
9271
9272cat >>$CONFIG_STATUS <<_ACEOF
9273ac_cs_version="\\
9274config.status
9275configured by $0, generated by GNU Autoconf 2.59,
9276 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9277
9278Copyright (C) 2003 Free Software Foundation, Inc.
9279This config.status script is free software; the Free Software Foundation
9280gives unlimited permission to copy, distribute and modify it."
9281srcdir=$srcdir
9282INSTALL="$INSTALL"
9283_ACEOF
9284
9285cat >>$CONFIG_STATUS <<\_ACEOF
9286# If no file are specified by the user, then we need to provide default
9287# value. By we need to know if files were specified by the user.
9288ac_need_defaults=:
9289while test $# != 0
9290do
9291 case $1 in
9292 --*=*)
9293 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9294 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9295 ac_shift=:
9296 ;;
9297 -*)
9298 ac_option=$1
9299 ac_optarg=$2
9300 ac_shift=shift
9301 ;;
9302 *) # This is not an option, so the user has probably given explicit
9303 # arguments.
9304 ac_option=$1
9305 ac_need_defaults=false;;
9306 esac
9307
9308 case $ac_option in
9309 # Handling of the options.
9310_ACEOF
9311cat >>$CONFIG_STATUS <<\_ACEOF
9312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9313 ac_cs_recheck=: ;;
9314 --version | --vers* | -V )
9315 echo "$ac_cs_version"; exit 0 ;;
9316 --he | --h)
9317 # Conflict between --help and --header
9318 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9319Try \`$0 --help' for more information." >&5
9320echo "$as_me: error: ambiguous option: $1
9321Try \`$0 --help' for more information." >&2;}
9322 { (exit 1); exit 1; }; };;
9323 --help | --hel | -h )
9324 echo "$ac_cs_usage"; exit 0 ;;
9325 --debug | --d* | -d )
9326 debug=: ;;
9327 --file | --fil | --fi | --f )
9328 $ac_shift
9329 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9330 ac_need_defaults=false;;
9331 --header | --heade | --head | --hea )
9332 $ac_shift
9333 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9334 ac_need_defaults=false;;
9335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9336 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9337 ac_cs_silent=: ;;
9338
9339 # This is an error.
9340 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9341Try \`$0 --help' for more information." >&5
9342echo "$as_me: error: unrecognized option: $1
9343Try \`$0 --help' for more information." >&2;}
9344 { (exit 1); exit 1; }; } ;;
9345
9346 *) ac_config_targets="$ac_config_targets $1" ;;
9347
9348 esac
9349 shift
252b5132 9350done
979273e3
NN
9351
9352ac_configure_extra_args=
9353
9354if $ac_cs_silent; then
9355 exec 6>/dev/null
9356 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 9357fi
252b5132 9358
979273e3
NN
9359_ACEOF
9360cat >>$CONFIG_STATUS <<_ACEOF
9361if \$ac_cs_recheck; then
9362 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9363 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9364fi
252b5132 9365
979273e3
NN
9366_ACEOF
9367
9368cat >>$CONFIG_STATUS <<_ACEOF
9369#
9370# INIT-COMMANDS section.
9371#
9372
8ae85421 9373AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
979273e3
NN
9374
9375
9376_ACEOF
9377
9378
9379
9380cat >>$CONFIG_STATUS <<\_ACEOF
9381for ac_config_target in $ac_config_targets
9382do
9383 case "$ac_config_target" in
9384 # Handling of arguments.
9385 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9386 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8ae85421 9387 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
979273e3
NN
9388 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9389 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
9390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9391echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9392 { (exit 1); exit 1; }; };;
252b5132 9393 esac
979273e3 9394done
252b5132 9395
979273e3
NN
9396# If the user did not use the arguments to specify the items to instantiate,
9397# then the envvar interface is used. Set only those that are not.
9398# We use the long form for the default assignment because of an extremely
9399# bizarre bug on SunOS 4.1.3.
9400if $ac_need_defaults; then
9401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9403 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9404fi
9405
9406# Have a temporary directory for convenience. Make it in the build tree
9407# simply because there is no reason to put it here, and in addition,
9408# creating and moving files from /tmp can sometimes cause problems.
9409# Create a temporary directory, and hook for its removal unless debugging.
9410$debug ||
9411{
9412 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9413 trap '{ (exit 1); exit 1; }' 1 2 13 15
9414}
252b5132 9415
979273e3
NN
9416# Create a (secure) tmp directory for tmp files.
9417
9418{
9419 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9420 test -n "$tmp" && test -d "$tmp"
9421} ||
9422{
9423 tmp=./confstat$$-$RANDOM
9424 (umask 077 && mkdir $tmp)
9425} ||
9426{
9427 echo "$me: cannot create a temporary directory in ." >&2
9428 { (exit 1); exit 1; }
9429}
9430
9431_ACEOF
9432
9433cat >>$CONFIG_STATUS <<_ACEOF
9434
9435#
9436# CONFIG_FILES section.
9437#
9438
9439# No need to generate the scripts if there are no CONFIG_FILES.
9440# This happens for instance when ./config.status config.h
9441if test -n "\$CONFIG_FILES"; then
9442 # Protect against being on the right side of a sed subst in config.status.
9443 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9444 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9445s,@SHELL@,$SHELL,;t t
9446s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9447s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9448s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9449s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9450s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9451s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9452s,@exec_prefix@,$exec_prefix,;t t
9453s,@prefix@,$prefix,;t t
9454s,@program_transform_name@,$program_transform_name,;t t
9455s,@bindir@,$bindir,;t t
9456s,@sbindir@,$sbindir,;t t
9457s,@libexecdir@,$libexecdir,;t t
9458s,@datadir@,$datadir,;t t
9459s,@sysconfdir@,$sysconfdir,;t t
9460s,@sharedstatedir@,$sharedstatedir,;t t
9461s,@localstatedir@,$localstatedir,;t t
9462s,@libdir@,$libdir,;t t
9463s,@includedir@,$includedir,;t t
9464s,@oldincludedir@,$oldincludedir,;t t
9465s,@infodir@,$infodir,;t t
9466s,@mandir@,$mandir,;t t
9467s,@build_alias@,$build_alias,;t t
9468s,@host_alias@,$host_alias,;t t
9469s,@target_alias@,$target_alias,;t t
9470s,@DEFS@,$DEFS,;t t
9471s,@ECHO_C@,$ECHO_C,;t t
9472s,@ECHO_N@,$ECHO_N,;t t
9473s,@ECHO_T@,$ECHO_T,;t t
9474s,@LIBS@,$LIBS,;t t
9475s,@build@,$build,;t t
9476s,@build_cpu@,$build_cpu,;t t
9477s,@build_vendor@,$build_vendor,;t t
9478s,@build_os@,$build_os,;t t
9479s,@host@,$host,;t t
9480s,@host_cpu@,$host_cpu,;t t
9481s,@host_vendor@,$host_vendor,;t t
9482s,@host_os@,$host_os,;t t
9483s,@target@,$target,;t t
9484s,@target_cpu@,$target_cpu,;t t
9485s,@target_vendor@,$target_vendor,;t t
9486s,@target_os@,$target_os,;t t
9487s,@CC@,$CC,;t t
9488s,@CFLAGS@,$CFLAGS,;t t
9489s,@LDFLAGS@,$LDFLAGS,;t t
9490s,@CPPFLAGS@,$CPPFLAGS,;t t
9491s,@ac_ct_CC@,$ac_ct_CC,;t t
9492s,@EXEEXT@,$EXEEXT,;t t
9493s,@OBJEXT@,$OBJEXT,;t t
9494s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9495s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9496s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8ae85421 9497s,@CYGPATH_W@,$CYGPATH_W,;t t
979273e3
NN
9498s,@PACKAGE@,$PACKAGE,;t t
9499s,@VERSION@,$VERSION,;t t
9500s,@ACLOCAL@,$ACLOCAL,;t t
9501s,@AUTOCONF@,$AUTOCONF,;t t
9502s,@AUTOMAKE@,$AUTOMAKE,;t t
9503s,@AUTOHEADER@,$AUTOHEADER,;t t
9504s,@MAKEINFO@,$MAKEINFO,;t t
8ae85421
AM
9505s,@install_sh@,$install_sh,;t t
9506s,@STRIP@,$STRIP,;t t
9507s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9508s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9509s,@mkdir_p@,$mkdir_p,;t t
9510s,@AWK@,$AWK,;t t
979273e3 9511s,@SET_MAKE@,$SET_MAKE,;t t
8ae85421
AM
9512s,@am__leading_dot@,$am__leading_dot,;t t
9513s,@AMTAR@,$AMTAR,;t t
9514s,@am__tar@,$am__tar,;t t
9515s,@am__untar@,$am__untar,;t t
9516s,@DEPDIR@,$DEPDIR,;t t
9517s,@am__include@,$am__include,;t t
9518s,@am__quote@,$am__quote,;t t
9519s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9520s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9521s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9522s,@CCDEPMODE@,$CCDEPMODE,;t t
9523s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9524s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
979273e3
NN
9525s,@AR@,$AR,;t t
9526s,@ac_ct_AR@,$ac_ct_AR,;t t
9527s,@RANLIB@,$RANLIB,;t t
9528s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9529s,@LN_S@,$LN_S,;t t
979273e3
NN
9530s,@LIBTOOL@,$LIBTOOL,;t t
9531s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9532s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9533s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9534s,@MAINT@,$MAINT,;t t
9535s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
9536s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
24443139
AS
9537s,@host_noncanonical@,$host_noncanonical,;t t
9538s,@target_noncanonical@,$target_noncanonical,;t t
979273e3
NN
9539s,@bfdlibdir@,$bfdlibdir,;t t
9540s,@bfdincludedir@,$bfdincludedir,;t t
9541s,@CPP@,$CPP,;t t
9542s,@EGREP@,$EGREP,;t t
9543s,@ALLOCA@,$ALLOCA,;t t
9544s,@USE_NLS@,$USE_NLS,;t t
9545s,@MSGFMT@,$MSGFMT,;t t
9546s,@GMSGFMT@,$GMSGFMT,;t t
9547s,@XGETTEXT@,$XGETTEXT,;t t
9548s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9549s,@CATALOGS@,$CATALOGS,;t t
9550s,@CATOBJEXT@,$CATOBJEXT,;t t
9551s,@DATADIRNAME@,$DATADIRNAME,;t t
9552s,@GMOFILES@,$GMOFILES,;t t
9553s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9554s,@INTLDEPS@,$INTLDEPS,;t t
9555s,@INTLLIBS@,$INTLLIBS,;t t
9556s,@INTLOBJS@,$INTLOBJS,;t t
9557s,@POFILES@,$POFILES,;t t
9558s,@POSUB@,$POSUB,;t t
9559s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9560s,@GT_NO@,$GT_NO,;t t
9561s,@GT_YES@,$GT_YES,;t t
9562s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9563s,@l@,$l,;t t
9564s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9565s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9566s,@HDEFINES@,$HDEFINES,;t t
9567s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
9568s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
9569s,@cgendir@,$cgendir,;t t
9570s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9571s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9572s,@archdefs@,$archdefs,;t t
9573s,@BFD_MACHINES@,$BFD_MACHINES,;t t
9574s,@LIBOBJS@,$LIBOBJS,;t t
9575s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9576CEOF
9577
9578_ACEOF
9579
9580 cat >>$CONFIG_STATUS <<\_ACEOF
9581 # Split the substitutions into bite-sized pieces for seds with
9582 # small command number limits, like on Digital OSF/1 and HP-UX.
9583 ac_max_sed_lines=48
9584 ac_sed_frag=1 # Number of current file.
9585 ac_beg=1 # First line for current file.
9586 ac_end=$ac_max_sed_lines # Line after last line for current file.
9587 ac_more_lines=:
9588 ac_sed_cmds=
9589 while $ac_more_lines; do
9590 if test $ac_beg -gt 1; then
9591 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9592 else
9593 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9594 fi
9595 if test ! -s $tmp/subs.frag; then
9596 ac_more_lines=false
9597 else
9598 # The purpose of the label and of the branching condition is to
9599 # speed up the sed processing (if there are no `@' at all, there
9600 # is no need to browse any of the substitutions).
9601 # These are the two extra sed commands mentioned above.
9602 (echo ':t
9603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9604 if test -z "$ac_sed_cmds"; then
9605 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9606 else
9607 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9608 fi
9609 ac_sed_frag=`expr $ac_sed_frag + 1`
9610 ac_beg=$ac_end
9611 ac_end=`expr $ac_end + $ac_max_sed_lines`
9612 fi
9613 done
9614 if test -z "$ac_sed_cmds"; then
9615 ac_sed_cmds=cat
252b5132 9616 fi
979273e3 9617fi # test -n "$CONFIG_FILES"
252b5132 9618
979273e3
NN
9619_ACEOF
9620cat >>$CONFIG_STATUS <<\_ACEOF
9621for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9622 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9623 case $ac_file in
9624 - | *:- | *:-:* ) # input from stdin
9625 cat >$tmp/stdin
9626 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9627 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9628 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9629 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9630 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9631 esac
9632
979273e3
NN
9633 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9634 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9635$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9636 X"$ac_file" : 'X\(//\)[^/]' \| \
9637 X"$ac_file" : 'X\(//\)$' \| \
9638 X"$ac_file" : 'X\(/\)' \| \
9639 . : '\(.\)' 2>/dev/null ||
9640echo X"$ac_file" |
9641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9643 /^X\(\/\/\)$/{ s//\1/; q; }
9644 /^X\(\/\).*/{ s//\1/; q; }
9645 s/.*/./; q'`
9646 { if $as_mkdir_p; then
9647 mkdir -p "$ac_dir"
9648 else
9649 as_dir="$ac_dir"
9650 as_dirs=
9651 while test ! -d "$as_dir"; do
9652 as_dirs="$as_dir $as_dirs"
9653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9655 X"$as_dir" : 'X\(//\)[^/]' \| \
9656 X"$as_dir" : 'X\(//\)$' \| \
9657 X"$as_dir" : 'X\(/\)' \| \
9658 . : '\(.\)' 2>/dev/null ||
9659echo X"$as_dir" |
9660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9662 /^X\(\/\/\)$/{ s//\1/; q; }
9663 /^X\(\/\).*/{ s//\1/; q; }
9664 s/.*/./; q'`
9665 done
9666 test ! -n "$as_dirs" || mkdir $as_dirs
9667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9668echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9669 { (exit 1); exit 1; }; }; }
9670
9671 ac_builddir=.
9672
9673if test "$ac_dir" != .; then
9674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9675 # A "../" for each directory in $ac_dir_suffix.
9676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9677else
9678 ac_dir_suffix= ac_top_builddir=
9679fi
9680
9681case $srcdir in
9682 .) # No --srcdir option. We are building in place.
9683 ac_srcdir=.
9684 if test -z "$ac_top_builddir"; then
9685 ac_top_srcdir=.
9686 else
9687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9688 fi ;;
9689 [\\/]* | ?:[\\/]* ) # Absolute path.
9690 ac_srcdir=$srcdir$ac_dir_suffix;
9691 ac_top_srcdir=$srcdir ;;
9692 *) # Relative path.
9693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9695esac
9696
9697# Do not use `cd foo && pwd` to compute absolute paths, because
9698# the directories may not exist.
9699case `pwd` in
9700.) ac_abs_builddir="$ac_dir";;
9701*)
9702 case "$ac_dir" in
9703 .) ac_abs_builddir=`pwd`;;
9704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9706 esac;;
9707esac
9708case $ac_abs_builddir in
9709.) ac_abs_top_builddir=${ac_top_builddir}.;;
9710*)
9711 case ${ac_top_builddir}. in
9712 .) ac_abs_top_builddir=$ac_abs_builddir;;
9713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9715 esac;;
9716esac
9717case $ac_abs_builddir in
9718.) ac_abs_srcdir=$ac_srcdir;;
9719*)
9720 case $ac_srcdir in
9721 .) ac_abs_srcdir=$ac_abs_builddir;;
9722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9724 esac;;
9725esac
9726case $ac_abs_builddir in
9727.) ac_abs_top_srcdir=$ac_top_srcdir;;
9728*)
9729 case $ac_top_srcdir in
9730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9733 esac;;
9734esac
252b5132 9735
979273e3
NN
9736
9737 case $INSTALL in
9738 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9739 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
9740 esac
9741
8ae85421
AM
9742 if test x"$ac_file" != x-; then
9743 { echo "$as_me:$LINENO: creating $ac_file" >&5
9744echo "$as_me: creating $ac_file" >&6;}
9745 rm -f "$ac_file"
9746 fi
979273e3
NN
9747 # Let's still pretend it is `configure' which instantiates (i.e., don't
9748 # use $as_me), people would be surprised to read:
9749 # /* config.h. Generated by config.status. */
9750 if test x"$ac_file" = x-; then
9751 configure_input=
9752 else
9753 configure_input="$ac_file. "
9754 fi
9755 configure_input=$configure_input"Generated from `echo $ac_file_in |
9756 sed 's,.*/,,'` by configure."
9757
9758 # First look for the input files in the build tree, otherwise in the
9759 # src tree.
9760 ac_file_inputs=`IFS=:
9761 for f in $ac_file_in; do
9762 case $f in
9763 -) echo $tmp/stdin ;;
9764 [\\/$]*)
9765 # Absolute (can't be DOS-style, as IFS=:)
9766 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9767echo "$as_me: error: cannot find input file: $f" >&2;}
9768 { (exit 1); exit 1; }; }
9769 echo "$f";;
9770 *) # Relative
9771 if test -f "$f"; then
9772 # Build tree
9773 echo "$f"
9774 elif test -f "$srcdir/$f"; then
9775 # Source tree
9776 echo "$srcdir/$f"
9777 else
9778 # /dev/null tree
9779 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9780echo "$as_me: error: cannot find input file: $f" >&2;}
9781 { (exit 1); exit 1; }; }
9782 fi;;
9783 esac
9784 done` || { (exit 1); exit 1; }
979273e3
NN
9785_ACEOF
9786cat >>$CONFIG_STATUS <<_ACEOF
9787 sed "$ac_vpsub
9788$extrasub
9789_ACEOF
9790cat >>$CONFIG_STATUS <<\_ACEOF
9791:t
9792/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9793s,@configure_input@,$configure_input,;t t
9794s,@srcdir@,$ac_srcdir,;t t
9795s,@abs_srcdir@,$ac_abs_srcdir,;t t
9796s,@top_srcdir@,$ac_top_srcdir,;t t
9797s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9798s,@builddir@,$ac_builddir,;t t
9799s,@abs_builddir@,$ac_abs_builddir,;t t
9800s,@top_builddir@,$ac_top_builddir,;t t
9801s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9802s,@INSTALL@,$ac_INSTALL,;t t
9803" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9804 rm -f $tmp/stdin
9805 if test x"$ac_file" != x-; then
9806 mv $tmp/out $ac_file
9807 else
9808 cat $tmp/out
9809 rm -f $tmp/out
9810 fi
9811
9812done
9813_ACEOF
9814cat >>$CONFIG_STATUS <<\_ACEOF
9815
9816#
9817# CONFIG_HEADER section.
9818#
252b5132
RH
9819
9820# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9821# NAME is the cpp macro being defined and VALUE is the value it is being given.
9822#
9823# ac_d sets the value in "#define NAME VALUE" lines.
979273e3
NN
9824ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9825ac_dB='[ ].*$,\1#\2'
9826ac_dC=' '
9827ac_dD=',;t'
9828# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9829ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9830ac_uB='$,\1#\2define\3'
252b5132 9831ac_uC=' '
979273e3
NN
9832ac_uD=',;t'
9833
9834for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 9835 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
979273e3
NN
9836 case $ac_file in
9837 - | *:- | *:-:* ) # input from stdin
9838 cat >$tmp/stdin
9839 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9841 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9843 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
9844 esac
9845
979273e3
NN
9846 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9847echo "$as_me: creating $ac_file" >&6;}
9848
9849 # First look for the input files in the build tree, otherwise in the
9850 # src tree.
9851 ac_file_inputs=`IFS=:
9852 for f in $ac_file_in; do
9853 case $f in
9854 -) echo $tmp/stdin ;;
9855 [\\/$]*)
9856 # Absolute (can't be DOS-style, as IFS=:)
9857 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9858echo "$as_me: error: cannot find input file: $f" >&2;}
9859 { (exit 1); exit 1; }; }
9860 # Do quote $f, to prevent DOS paths from being IFS'd.
9861 echo "$f";;
9862 *) # Relative
9863 if test -f "$f"; then
9864 # Build tree
9865 echo "$f"
9866 elif test -f "$srcdir/$f"; then
9867 # Source tree
9868 echo "$srcdir/$f"
9869 else
9870 # /dev/null tree
9871 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9872echo "$as_me: error: cannot find input file: $f" >&2;}
9873 { (exit 1); exit 1; }; }
9874 fi;;
9875 esac
9876 done` || { (exit 1); exit 1; }
9877 # Remove the trailing spaces.
9878 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9879
9880_ACEOF
9881
9882# Transform confdefs.h into two sed scripts, `conftest.defines' and
9883# `conftest.undefs', that substitutes the proper values into
9884# config.h.in to produce config.h. The first handles `#define'
9885# templates, and the second `#undef' templates.
9886# And first: Protect against being on the right side of a sed subst in
9887# config.status. Protect against being in an unquoted here document
9888# in config.status.
9889rm -f conftest.defines conftest.undefs
9890# Using a here document instead of a string reduces the quoting nightmare.
9891# Putting comments in sed scripts is not portable.
9892#
9893# `end' is used to avoid that the second main sed command (meant for
9894# 0-ary CPP macros) applies to n-ary macro definitions.
9895# See the Autoconf documentation for `clear'.
9896cat >confdef2sed.sed <<\_ACEOF
9897s/[\\&,]/\\&/g
9898s,[\\$`],\\&,g
9899t clear
9900: clear
9901s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9902t end
9903s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9904: end
9905_ACEOF
9906# If some macros were called several times there might be several times
9907# the same #defines, which is useless. Nevertheless, we may not want to
9908# sort them, since we want the *last* AC-DEFINE to be honored.
9909uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9910sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9911rm -f confdef2sed.sed
252b5132
RH
9912
9913# This sed command replaces #undef with comments. This is necessary, for
9914# example, in the case of _POSIX_SOURCE, which is predefined and required
9915# on some systems where configure will not decide to define it.
979273e3
NN
9916cat >>conftest.undefs <<\_ACEOF
9917s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9918_ACEOF
9919
9920# Break up conftest.defines because some shells have a limit on the size
9921# of here documents, and old seds have small limits too (100 cmds).
9922echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9923echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9924echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9925echo ' :' >>$CONFIG_STATUS
9926rm -f conftest.tail
9927while grep . conftest.defines >/dev/null
9928do
9929 # Write a limited-size here document to $tmp/defines.sed.
9930 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9931 # Speed up: don't consider the non `#define' lines.
9932 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9933 # Work around the forget-to-reset-the-flag bug.
9934 echo 't clr' >>$CONFIG_STATUS
9935 echo ': clr' >>$CONFIG_STATUS
9936 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9937 echo 'CEOF
9938 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9939 rm -f $tmp/in
9940 mv $tmp/out $tmp/in
9941' >>$CONFIG_STATUS
9942 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9943 rm -f conftest.defines
9944 mv conftest.tail conftest.defines
9945done
9946rm -f conftest.defines
9947echo ' fi # grep' >>$CONFIG_STATUS
9948echo >>$CONFIG_STATUS
252b5132 9949
979273e3
NN
9950# Break up conftest.undefs because some shells have a limit on the size
9951# of here documents, and old seds have small limits too (100 cmds).
9952echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 9953rm -f conftest.tail
979273e3 9954while grep . conftest.undefs >/dev/null
252b5132 9955do
979273e3
NN
9956 # Write a limited-size here document to $tmp/undefs.sed.
9957 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9958 # Speed up: don't consider the non `#undef'
9959 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9960 # Work around the forget-to-reset-the-flag bug.
9961 echo 't clr' >>$CONFIG_STATUS
9962 echo ': clr' >>$CONFIG_STATUS
9963 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 9964 echo 'CEOF
979273e3
NN
9965 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9966 rm -f $tmp/in
9967 mv $tmp/out $tmp/in
9968' >>$CONFIG_STATUS
9969 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9970 rm -f conftest.undefs
9971 mv conftest.tail conftest.undefs
252b5132 9972done
979273e3
NN
9973rm -f conftest.undefs
9974
9975cat >>$CONFIG_STATUS <<\_ACEOF
9976 # Let's still pretend it is `configure' which instantiates (i.e., don't
9977 # use $as_me), people would be surprised to read:
9978 # /* config.h. Generated by config.status. */
9979 if test x"$ac_file" = x-; then
9980 echo "/* Generated by configure. */" >$tmp/config.h
9981 else
9982 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9983 fi
9984 cat $tmp/in >>$tmp/config.h
9985 rm -f $tmp/in
9986 if test x"$ac_file" != x-; then
9987 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9988 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9989echo "$as_me: $ac_file is unchanged" >&6;}
9990 else
9991 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9992$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9993 X"$ac_file" : 'X\(//\)[^/]' \| \
9994 X"$ac_file" : 'X\(//\)$' \| \
9995 X"$ac_file" : 'X\(/\)' \| \
9996 . : '\(.\)' 2>/dev/null ||
9997echo X"$ac_file" |
9998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9999 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10000 /^X\(\/\/\)$/{ s//\1/; q; }
10001 /^X\(\/\).*/{ s//\1/; q; }
10002 s/.*/./; q'`
10003 { if $as_mkdir_p; then
10004 mkdir -p "$ac_dir"
252b5132 10005 else
979273e3
NN
10006 as_dir="$ac_dir"
10007 as_dirs=
10008 while test ! -d "$as_dir"; do
10009 as_dirs="$as_dir $as_dirs"
10010 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10011$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10012 X"$as_dir" : 'X\(//\)[^/]' \| \
10013 X"$as_dir" : 'X\(//\)$' \| \
10014 X"$as_dir" : 'X\(/\)' \| \
10015 . : '\(.\)' 2>/dev/null ||
10016echo X"$as_dir" |
10017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10019 /^X\(\/\/\)$/{ s//\1/; q; }
10020 /^X\(\/\).*/{ s//\1/; q; }
10021 s/.*/./; q'`
10022 done
10023 test ! -n "$as_dirs" || mkdir $as_dirs
10024 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10025echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10026 { (exit 1); exit 1; }; }; }
10027
10028 rm -f $ac_file
10029 mv $tmp/config.h $ac_file
252b5132 10030 fi
979273e3
NN
10031 else
10032 cat $tmp/config.h
10033 rm -f $tmp/config.h
252b5132 10034 fi
8ae85421
AM
10035# Compute $ac_file's index in $config_headers.
10036_am_stamp_count=1
10037for _am_header in $config_headers :; do
10038 case $_am_header in
10039 $ac_file | $ac_file:* )
10040 break ;;
10041 * )
10042 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10043 esac
10044done
10045echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10046$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10047 X$ac_file : 'X\(//\)[^/]' \| \
10048 X$ac_file : 'X\(//\)$' \| \
10049 X$ac_file : 'X\(/\)' \| \
10050 . : '\(.\)' 2>/dev/null ||
10051echo X$ac_file |
10052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10054 /^X\(\/\/\)$/{ s//\1/; q; }
10055 /^X\(\/\).*/{ s//\1/; q; }
10056 s/.*/./; q'`/stamp-h$_am_stamp_count
979273e3
NN
10057done
10058_ACEOF
10059cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 10060
979273e3
NN
10061#
10062# CONFIG_COMMANDS section.
10063#
10064for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10065 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10066 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10067 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10068$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10069 X"$ac_dest" : 'X\(//\)[^/]' \| \
10070 X"$ac_dest" : 'X\(//\)$' \| \
10071 X"$ac_dest" : 'X\(/\)' \| \
10072 . : '\(.\)' 2>/dev/null ||
10073echo X"$ac_dest" |
10074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10076 /^X\(\/\/\)$/{ s//\1/; q; }
10077 /^X\(\/\).*/{ s//\1/; q; }
10078 s/.*/./; q'`
10079 { if $as_mkdir_p; then
10080 mkdir -p "$ac_dir"
10081 else
10082 as_dir="$ac_dir"
10083 as_dirs=
10084 while test ! -d "$as_dir"; do
10085 as_dirs="$as_dir $as_dirs"
10086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10088 X"$as_dir" : 'X\(//\)[^/]' \| \
10089 X"$as_dir" : 'X\(//\)$' \| \
10090 X"$as_dir" : 'X\(/\)' \| \
10091 . : '\(.\)' 2>/dev/null ||
10092echo X"$as_dir" |
10093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10095 /^X\(\/\/\)$/{ s//\1/; q; }
10096 /^X\(\/\).*/{ s//\1/; q; }
10097 s/.*/./; q'`
10098 done
10099 test ! -n "$as_dirs" || mkdir $as_dirs
10100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10102 { (exit 1); exit 1; }; }; }
252b5132 10103
979273e3 10104 ac_builddir=.
252b5132 10105
979273e3
NN
10106if test "$ac_dir" != .; then
10107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10108 # A "../" for each directory in $ac_dir_suffix.
10109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10110else
10111 ac_dir_suffix= ac_top_builddir=
10112fi
10113
10114case $srcdir in
10115 .) # No --srcdir option. We are building in place.
10116 ac_srcdir=.
10117 if test -z "$ac_top_builddir"; then
10118 ac_top_srcdir=.
10119 else
10120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10121 fi ;;
10122 [\\/]* | ?:[\\/]* ) # Absolute path.
10123 ac_srcdir=$srcdir$ac_dir_suffix;
10124 ac_top_srcdir=$srcdir ;;
10125 *) # Relative path.
10126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10128esac
10129
10130# Do not use `cd foo && pwd` to compute absolute paths, because
10131# the directories may not exist.
10132case `pwd` in
10133.) ac_abs_builddir="$ac_dir";;
10134*)
10135 case "$ac_dir" in
10136 .) ac_abs_builddir=`pwd`;;
10137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10139 esac;;
10140esac
10141case $ac_abs_builddir in
10142.) ac_abs_top_builddir=${ac_top_builddir}.;;
10143*)
10144 case ${ac_top_builddir}. in
10145 .) ac_abs_top_builddir=$ac_abs_builddir;;
10146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10148 esac;;
10149esac
10150case $ac_abs_builddir in
10151.) ac_abs_srcdir=$ac_srcdir;;
10152*)
10153 case $ac_srcdir in
10154 .) ac_abs_srcdir=$ac_abs_builddir;;
10155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10157 esac;;
10158esac
10159case $ac_abs_builddir in
10160.) ac_abs_top_srcdir=$ac_top_srcdir;;
10161*)
10162 case $ac_top_srcdir in
10163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10166 esac;;
10167esac
10168
10169
10170 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10171echo "$as_me: executing $ac_dest commands" >&6;}
10172 case $ac_dest in
8ae85421
AM
10173 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10174 # Strip MF so we end up with the name of the file.
10175 mf=`echo "$mf" | sed -e 's/:.*$//'`
10176 # Check whether this is an Automake generated Makefile or not.
10177 # We used to match only the files named `Makefile.in', but
10178 # some people rename them; so instead we look at the file content.
10179 # Grep'ing the first line is not enough: some people post-process
10180 # each Makefile.in and add a new line on top of each file to say so.
10181 # So let's grep whole file.
10182 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10183 dirpart=`(dirname "$mf") 2>/dev/null ||
10184$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10185 X"$mf" : 'X\(//\)[^/]' \| \
10186 X"$mf" : 'X\(//\)$' \| \
10187 X"$mf" : 'X\(/\)' \| \
10188 . : '\(.\)' 2>/dev/null ||
10189echo X"$mf" |
10190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10192 /^X\(\/\/\)$/{ s//\1/; q; }
10193 /^X\(\/\).*/{ s//\1/; q; }
10194 s/.*/./; q'`
10195 else
10196 continue
10197 fi
10198 # Extract the definition of DEPDIR, am__include, and am__quote
10199 # from the Makefile without running `make'.
10200 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10201 test -z "$DEPDIR" && continue
10202 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10203 test -z "am__include" && continue
10204 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10205 # When using ansi2knr, U may be empty or an underscore; expand it
10206 U=`sed -n 's/^U = //p' < "$mf"`
10207 # Find all dependency output files, they are included files with
10208 # $(DEPDIR) in their names. We invoke sed twice because it is the
10209 # simplest approach to changing $(DEPDIR) to its actual value in the
10210 # expansion.
10211 for file in `sed -n "
10212 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10213 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10214 # Make sure the directory exists.
10215 test -f "$dirpart/$file" && continue
10216 fdir=`(dirname "$file") 2>/dev/null ||
10217$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10218 X"$file" : 'X\(//\)[^/]' \| \
10219 X"$file" : 'X\(//\)$' \| \
10220 X"$file" : 'X\(/\)' \| \
10221 . : '\(.\)' 2>/dev/null ||
10222echo X"$file" |
10223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10225 /^X\(\/\/\)$/{ s//\1/; q; }
10226 /^X\(\/\).*/{ s//\1/; q; }
10227 s/.*/./; q'`
10228 { if $as_mkdir_p; then
10229 mkdir -p $dirpart/$fdir
10230 else
10231 as_dir=$dirpart/$fdir
10232 as_dirs=
10233 while test ! -d "$as_dir"; do
10234 as_dirs="$as_dir $as_dirs"
10235 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10237 X"$as_dir" : 'X\(//\)[^/]' \| \
10238 X"$as_dir" : 'X\(//\)$' \| \
10239 X"$as_dir" : 'X\(/\)' \| \
10240 . : '\(.\)' 2>/dev/null ||
10241echo X"$as_dir" |
10242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10244 /^X\(\/\/\)$/{ s//\1/; q; }
10245 /^X\(\/\).*/{ s//\1/; q; }
10246 s/.*/./; q'`
10247 done
10248 test ! -n "$as_dirs" || mkdir $as_dirs
10249 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10250echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10251 { (exit 1); exit 1; }; }; }
10252
10253 # echo "creating $dirpart/$file"
10254 echo '# dummy' > "$dirpart/$file"
10255 done
10256done
10257 ;;
979273e3
NN
10258 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
10259 esac
10260done
10261_ACEOF
10262
10263cat >>$CONFIG_STATUS <<\_ACEOF
10264
10265{ (exit 0); exit 0; }
10266_ACEOF
252b5132 10267chmod +x $CONFIG_STATUS
979273e3
NN
10268ac_clean_files=$ac_clean_files_save
10269
10270
10271# configure is writing to config.log, and then calls config.status.
10272# config.status does its own redirection, appending to config.log.
10273# Unfortunately, on DOS this fails, as config.log is still kept open
10274# by configure, so config.status won't be able to write to it; its
10275# output is simply discarded. So we exec the FD to /dev/null,
10276# effectively closing config.log, so it can be properly (re)opened and
10277# appended to by config.status. When coming back to configure, we
10278# need to make the FD available again.
10279if test "$no_create" != yes; then
10280 ac_cs_success=:
10281 ac_config_status_args=
10282 test "$silent" = yes &&
10283 ac_config_status_args="$ac_config_status_args --quiet"
10284 exec 5>/dev/null
10285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10286 exec 5>>config.log
10287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10288 # would make configure fail if this is the last instruction.
10289 $ac_cs_success || { (exit 1); exit 1; }
10290fi
252b5132 10291