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