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