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