]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/configure
* config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
[thirdparty/binutils-gdb.git] / ld / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
e5a52504 3# Generated by GNU Autoconf 2.59.
252b5132 4#
e5a52504 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.
e5a52504
MM
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
e5a52504
MM
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
e5a52504
MM
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
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL use_sysroot TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l YACC LEX LEXLIB LEX_OUTPUT_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES HOSTING_CRT0 HOSTING_LIBS NATIVE_LIB_DIRS STRINGIFY EMUL EMULATION_OFILES EMUL_EXTRA_OFILES LIB_PATH EMULATION_LIBPATH TESTBFDLIB LIBOBJS LTLIBOBJS'
313ac_subst_files='TDIRS'
252b5132
RH
314
315# Initialize some variables set by options.
e5a52504
MM
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.
e5a52504 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
e5a52504
MM
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
e5a52504 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
e5a52504 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=*)
e5a52504 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
e5a52504 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e5a52504 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=*)
e5a52504
MM
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=*)
e5a52504 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
e5a52504 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
e5a52504
MM
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-*)
e5a52504 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
e5a52504
MM
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
e5a52504 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=*)
e5a52504 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
e5a52504
MM
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)
e5a52504 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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 \
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
e5a52504 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=*)
e5a52504 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=*)
e5a52504 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
e5a52504 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e5a52504 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
e5a52504
MM
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
e5a52504 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
e5a52504
MM
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'`
e5a52504
MM
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
e5a52504 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
e5a52504 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
e5a52504
MM
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=*)
e5a52504 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=*)
e5a52504 624 x_libraries=$ac_optarg ;;
252b5132 625
e5a52504
MM
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
e5a52504
MM
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 *)
e5a52504
MM
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
e5a52504
MM
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
e5a52504
MM
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
e5a52504
MM
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
e5a52504
MM
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
e5a52504
MM
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
e5a52504
MM
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.
e5a52504
MM
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
e5a52504
MM
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
e5a52504
MM
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
e5a52504
MM
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
e5a52504
MM
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
e5a52504 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
e5a52504
MM
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
e5a52504 788Defaults for the options are specified in brackets.
ac48eca1 789
e5a52504
MM
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
e5a52504
MM
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
e5a52504 815For better control, use the options below.
ac48eca1 816
e5a52504
MM
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
e5a52504 832 cat <<\_ACEOF
252b5132 833
e5a52504
MM
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
e5a52504
MM
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
e5a52504 846if test -n "$ac_init_help"; then
252b5132 847
e5a52504 848 cat <<\_ACEOF
252b5132 849
e5a52504
MM
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 builds
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)
861 --enable-build-warnings enable build-time compiler warnings if gcc is used
862 --disable-nls do not use Native Language Support
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865
866Optional Packages:
867 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
868 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-pic try to use only PIC/non-PIC objects default=use both
871 --with-lib-path=dir1:dir2... set default LIB_PATH
872 --with-sysroot=DIR Search for usr/lib et al within DIR.
873 --with-included-gettext use the GNU gettext library included here
874
875Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
883
884Use these variables to override the choices made by `configure' or to help
885it to find libraries and programs with nonstandard names/locations.
886
887_ACEOF
888fi
889
890if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901else
902 ac_dir_suffix= ac_top_builddir=
903fi
904
905case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
919esac
920
e5a52504
MM
921# Do not use `cd foo && pwd` to compute absolute paths, because
922# the directories may not exist.
923case `pwd` in
924.) ac_abs_builddir="$ac_dir";;
925*)
926 case "$ac_dir" in
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 esac;;
931esac
932case $ac_abs_builddir in
933.) ac_abs_top_builddir=${ac_top_builddir}.;;
934*)
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 esac;;
940esac
941case $ac_abs_builddir in
942.) ac_abs_srcdir=$ac_srcdir;;
943*)
944 case $ac_srcdir in
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 esac;;
949esac
950case $ac_abs_builddir in
951.) ac_abs_top_srcdir=$ac_top_srcdir;;
952*)
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957 esac;;
958esac
a2d91340 959
e5a52504
MM
960 cd $ac_dir
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
963 echo
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
966 echo
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
970 echo
971 $ac_configure --help
972 else
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974 fi
975 cd $ac_popdir
976 done
a2d91340
AC
977fi
978
e5a52504
MM
979test -n "$ac_init_help" && exit 0
980if $ac_init_version; then
981 cat <<\_ACEOF
a2d91340 982
e5a52504
MM
983Copyright (C) 2003 Free Software Foundation, Inc.
984This configure script is free software; the Free Software Foundation
985gives unlimited permission to copy, distribute and modify it.
986_ACEOF
987 exit 0
988fi
989exec 5>config.log
990cat >&5 <<_ACEOF
991This file contains any messages produced by compilers while
992running configure, to aid debugging if configure makes a mistake.
a2d91340 993
e5a52504
MM
994It was created by $as_me, which was
995generated by GNU Autoconf 2.59. Invocation command line was
a2d91340 996
e5a52504 997 $ $0 $@
a2d91340 998
e5a52504
MM
999_ACEOF
1000{
1001cat <<_ASUNAME
1002## --------- ##
1003## Platform. ##
1004## --------- ##
1005
1006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011
1012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014
1015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1022
1023_ASUNAME
1024
1025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1026for as_dir in $PATH
1027do
1028 IFS=$as_save_IFS
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1031done
252b5132 1032
e5a52504 1033} >&5
5d64ca4e 1034
e5a52504 1035cat >&5 <<_ACEOF
5d64ca4e 1036
5d64ca4e 1037
e5a52504
MM
1038## ----------- ##
1039## Core tests. ##
1040## ----------- ##
5d64ca4e 1041
e5a52504 1042_ACEOF
2469cfa2 1043
252b5132 1044
e5a52504
MM
1045# Keep a trace of the command line.
1046# Strip out --no-create and --no-recursion so they do not pile up.
1047# Strip out --silent because we don't want to record it for future runs.
1048# Also quote any args containing shell meta-characters.
1049# Make two passes to allow for proper duplicate-argument suppression.
1050ac_configure_args=
1051ac_configure_args0=
1052ac_configure_args1=
1053ac_sep=
1054ac_must_keep_next=false
1055for ac_pass in 1 2
1056do
1057 for ac_arg
1058 do
1059 case $ac_arg in
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 continue ;;
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1066 esac
1067 case $ac_pass in
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 2)
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1073 else
1074 case $ac_arg in
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1081 esac
1082 ;;
1083 -* ) ac_must_keep_next=true ;;
1084 esac
1085 fi
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1088 ac_sep=" "
1089 ;;
1090 esac
1091 done
1092done
1093$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095
1096# When interrupted or exit'd, cleanup temporary files, and complete
1097# config.log. We remove comments because anyway the quotes in there
1098# would cause problems or look ugly.
1099# WARNING: Be sure not to use single quotes in there, as some shells,
1100# such as our DU 5.0 friend, will then `close' the trap.
1101trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1103 {
1104 echo
1105
1106 cat <<\_ASBOX
1107## ---------------- ##
1108## Cache variables. ##
1109## ---------------- ##
1110_ASBOX
1111 echo
1112 # The following way of writing the cache mishandles newlines in values,
1113{
1114 (set) 2>&1 |
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1116 *ac_space=\ *)
1117 sed -n \
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1120 ;;
252b5132 1121 *)
e5a52504
MM
1122 sed -n \
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1124 ;;
1125 esac;
1126}
1127 echo
1128
1129 cat <<\_ASBOX
1130## ----------------- ##
1131## Output variables. ##
1132## ----------------- ##
1133_ASBOX
1134 echo
1135 for ac_var in $ac_subst_vars
1136 do
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1139 done | sort
1140 echo
1141
1142 if test -n "$ac_subst_files"; then
1143 cat <<\_ASBOX
1144## ------------- ##
1145## Output files. ##
1146## ------------- ##
1147_ASBOX
1148 echo
1149 for ac_var in $ac_subst_files
1150 do
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1153 done | sort
1154 echo
1155 fi
1156
1157 if test -s confdefs.h; then
1158 cat <<\_ASBOX
1159## ----------- ##
1160## confdefs.h. ##
1161## ----------- ##
1162_ASBOX
1163 echo
1164 sed "/^$/d" confdefs.h | sort
1165 echo
1166 fi
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1170 } >&5
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1173 exit $exit_status
1174 ' 0
1175for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1177done
1178ac_signal=0
1179
1180# confdefs.h avoids OS command line length limits that DEFS can exceed.
1181rm -rf conftest* confdefs.h
1182# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1183echo >confdefs.h
1184
1185# Predefined preprocessor variables.
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_NAME "$PACKAGE_NAME"
1189_ACEOF
1190
1191
1192cat >>confdefs.h <<_ACEOF
1193#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1194_ACEOF
1195
1196
1197cat >>confdefs.h <<_ACEOF
1198#define PACKAGE_VERSION "$PACKAGE_VERSION"
1199_ACEOF
1200
1201
1202cat >>confdefs.h <<_ACEOF
1203#define PACKAGE_STRING "$PACKAGE_STRING"
1204_ACEOF
1205
1206
1207cat >>confdefs.h <<_ACEOF
1208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1209_ACEOF
1210
1211
1212# Let the site file select an alternate cache file if it wants to.
1213# Prefer explicitly selected file to automatically selected ones.
1214if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 else
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1219 fi
1220fi
1221for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1226 . "$ac_site_file"
1227 fi
1228done
1229
1230if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235echo "$as_me: loading cache $cache_file" >&6;}
1236 case $cache_file in
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1239 esac
1240 fi
1241else
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243echo "$as_me: creating cache $cache_file" >&6;}
1244 >$cache_file
1245fi
1246
1247# Check that the precious variables saved in the cache have kept the same
1248# value.
1249ac_cache_corrupted=false
1250for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1257 set,)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,set)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,);;
1266 *)
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1275 fi;;
1276 esac
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1279 case $ac_new_val in
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1283 esac
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1287 esac
1288 fi
1289done
1290if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1296fi
1297
1298ac_ext=c
1299ac_cpp='$CPP $CPPFLAGS'
1300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323ac_aux_dir=
1324for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1325 if test -f $ac_dir/install-sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install-sh -c"
1328 break
1329 elif test -f $ac_dir/install.sh; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/install.sh -c"
1332 break
1333 elif test -f $ac_dir/shtool; then
1334 ac_aux_dir=$ac_dir
1335 ac_install_sh="$ac_aux_dir/shtool install -c"
1336 break
1337 fi
1338done
1339if test -z "$ac_aux_dir"; then
1340 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1341echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1342 { (exit 1); exit 1; }; }
1343fi
1344ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1345ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1346ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
1348# Make sure we can run config.sub.
1349$ac_config_sub sun4 >/dev/null 2>&1 ||
1350 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1351echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1352 { (exit 1); exit 1; }; }
1353
1354echo "$as_me:$LINENO: checking build system type" >&5
1355echo $ECHO_N "checking build system type... $ECHO_C" >&6
1356if test "${ac_cv_build+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1358else
1359 ac_cv_build_alias=$build_alias
1360test -z "$ac_cv_build_alias" &&
1361 ac_cv_build_alias=`$ac_config_guess`
1362test -z "$ac_cv_build_alias" &&
1363 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1364echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1365 { (exit 1); exit 1; }; }
1366ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1367 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1368echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1369 { (exit 1); exit 1; }; }
1370
1371fi
1372echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1373echo "${ECHO_T}$ac_cv_build" >&6
1374build=$ac_cv_build
1375build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1376build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1377build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1378
1379
1380echo "$as_me:$LINENO: checking host system type" >&5
1381echo $ECHO_N "checking host system type... $ECHO_C" >&6
1382if test "${ac_cv_host+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 ac_cv_host_alias=$host_alias
1386test -z "$ac_cv_host_alias" &&
1387 ac_cv_host_alias=$ac_cv_build_alias
1388ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1389 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1390echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1391 { (exit 1); exit 1; }; }
1392
1393fi
1394echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1395echo "${ECHO_T}$ac_cv_host" >&6
1396host=$ac_cv_host
1397host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400
1401
1402echo "$as_me:$LINENO: checking target system type" >&5
1403echo $ECHO_N "checking target system type... $ECHO_C" >&6
1404if test "${ac_cv_target+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406else
1407 ac_cv_target_alias=$target_alias
1408test "x$ac_cv_target_alias" = "x" &&
1409 ac_cv_target_alias=$ac_cv_host_alias
1410ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1411 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1412echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1413 { (exit 1); exit 1; }; }
1414
1415fi
1416echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1417echo "${ECHO_T}$ac_cv_target" >&6
1418target=$ac_cv_target
1419target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424# The aliases save the names the user supplied, while $host etc.
1425# will get canonicalized.
1426test -n "$target_alias" &&
1427 test "$program_prefix$program_suffix$program_transform_name" = \
1428 NONENONEs,x,x, &&
1429 program_prefix=${target_alias}-
1430ac_ext=c
1431ac_cpp='$CPP $CPPFLAGS'
1432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1434ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435if test -n "$ac_tool_prefix"; then
1436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1437set dummy ${ac_tool_prefix}gcc; ac_word=$2
1438echo "$as_me:$LINENO: checking for $ac_word" >&5
1439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440if test "${ac_cv_prog_CC+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442else
1443 if test -n "$CC"; then
1444 ac_cv_prog_CC="$CC" # Let the user override the test.
1445else
1446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447for as_dir in $PATH
1448do
1449 IFS=$as_save_IFS
1450 test -z "$as_dir" && as_dir=.
1451 for ac_exec_ext in '' $ac_executable_extensions; do
1452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457done
1458done
1459
1460fi
1461fi
1462CC=$ac_cv_prog_CC
1463if test -n "$CC"; then
1464 echo "$as_me:$LINENO: result: $CC" >&5
1465echo "${ECHO_T}$CC" >&6
1466else
1467 echo "$as_me:$LINENO: result: no" >&5
1468echo "${ECHO_T}no" >&6
1469fi
1470
1471fi
1472if test -z "$ac_cv_prog_CC"; then
1473 ac_ct_CC=$CC
1474 # Extract the first word of "gcc", so it can be a program name with args.
1475set dummy gcc; ac_word=$2
1476echo "$as_me:$LINENO: checking for $ac_word" >&5
1477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1480else
1481 if test -n "$ac_ct_CC"; then
1482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1483else
1484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485for as_dir in $PATH
1486do
1487 IFS=$as_save_IFS
1488 test -z "$as_dir" && as_dir=.
1489 for ac_exec_ext in '' $ac_executable_extensions; do
1490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491 ac_cv_prog_ac_ct_CC="gcc"
1492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493 break 2
1494 fi
1495done
1496done
1497
1498fi
1499fi
1500ac_ct_CC=$ac_cv_prog_ac_ct_CC
1501if test -n "$ac_ct_CC"; then
1502 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1503echo "${ECHO_T}$ac_ct_CC" >&6
1504else
1505 echo "$as_me:$LINENO: result: no" >&5
1506echo "${ECHO_T}no" >&6
1507fi
1508
1509 CC=$ac_ct_CC
1510else
1511 CC="$ac_cv_prog_CC"
1512fi
1513
1514if test -z "$CC"; then
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1517set dummy ${ac_tool_prefix}cc; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}cc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542CC=$ac_cv_prog_CC
1543if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545echo "${ECHO_T}$CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551fi
1552if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "cc", so it can be a program name with args.
1555set dummy cc; ac_word=$2
1556echo "$as_me:$LINENO: checking for $ac_word" >&5
1557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563else
1564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565for as_dir in $PATH
1566do
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
1576done
1577
1578fi
1579fi
1580ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583echo "${ECHO_T}$ac_ct_CC" >&6
1584else
1585 echo "$as_me:$LINENO: result: no" >&5
1586echo "${ECHO_T}no" >&6
1587fi
1588
1589 CC=$ac_ct_CC
1590else
1591 CC="$ac_cv_prog_CC"
1592fi
1593
1594fi
1595if test -z "$CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597set dummy cc; ac_word=$2
1598echo "$as_me:$LINENO: checking for $ac_word" >&5
1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605else
1606 ac_prog_rejected=no
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
1609do
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1615 ac_prog_rejected=yes
1616 continue
1617 fi
1618 ac_cv_prog_CC="cc"
1619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1620 break 2
1621 fi
1622done
1623done
1624
1625if test $ac_prog_rejected = yes; then
1626 # We found a bogon in the path, so make sure we never use it.
1627 set dummy $ac_cv_prog_CC
1628 shift
1629 if test $# != 0; then
1630 # We chose a different compiler from the bogus one.
1631 # However, it has the same basename, so the bogon will be chosen
1632 # first if we set CC to just the basename; use the full file name.
1633 shift
1634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1635 fi
1636fi
1637fi
1638fi
1639CC=$ac_cv_prog_CC
1640if test -n "$CC"; then
1641 echo "$as_me:$LINENO: result: $CC" >&5
1642echo "${ECHO_T}$CC" >&6
1643else
1644 echo "$as_me:$LINENO: result: no" >&5
1645echo "${ECHO_T}no" >&6
1646fi
1647
1648fi
1649if test -z "$CC"; then
1650 if test -n "$ac_tool_prefix"; then
1651 for ac_prog in cl
1652 do
1653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1655echo "$as_me:$LINENO: checking for $ac_word" >&5
1656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657if test "${ac_cv_prog_CC+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 if test -n "$CC"; then
1661 ac_cv_prog_CC="$CC" # Let the user override the test.
1662else
1663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 for ac_exec_ext in '' $ac_executable_extensions; do
1669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 break 2
1673 fi
1674done
1675done
1676
1677fi
1678fi
1679CC=$ac_cv_prog_CC
1680if test -n "$CC"; then
1681 echo "$as_me:$LINENO: result: $CC" >&5
1682echo "${ECHO_T}$CC" >&6
1683else
1684 echo "$as_me:$LINENO: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688 test -n "$CC" && break
1689 done
1690fi
1691if test -z "$CC"; then
1692 ac_ct_CC=$CC
1693 for ac_prog in cl
1694do
1695 # Extract the first word of "$ac_prog", so it can be a program name with args.
1696set dummy $ac_prog; ac_word=$2
1697echo "$as_me:$LINENO: checking for $ac_word" >&5
1698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1701else
1702 if test -n "$ac_ct_CC"; then
1703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1704else
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_ac_ct_CC="$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 break 2
1715 fi
1716done
1717done
1718
1719fi
1720fi
1721ac_ct_CC=$ac_cv_prog_ac_ct_CC
1722if test -n "$ac_ct_CC"; then
1723 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1724echo "${ECHO_T}$ac_ct_CC" >&6
1725else
1726 echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730 test -n "$ac_ct_CC" && break
1731done
1732
1733 CC=$ac_ct_CC
1734fi
1735
1736fi
1737
1738
1739test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1740See \`config.log' for more details." >&5
1741echo "$as_me: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744
1745# Provide some information about the compiler.
1746echo "$as_me:$LINENO:" \
1747 "checking for C compiler version" >&5
1748ac_compiler=`set X $ac_compile; echo $2`
1749{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1750 (eval $ac_compiler --version </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1755 (eval $ac_compiler -v </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1760 (eval $ac_compiler -V </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764
1765cat >conftest.$ac_ext <<_ACEOF
1766/* confdefs.h. */
1767_ACEOF
1768cat confdefs.h >>conftest.$ac_ext
1769cat >>conftest.$ac_ext <<_ACEOF
1770/* end confdefs.h. */
1771
1772int
1773main ()
1774{
1775
1776 ;
1777 return 0;
1778}
1779_ACEOF
1780ac_clean_files_save=$ac_clean_files
1781ac_clean_files="$ac_clean_files a.out a.exe b.out"
1782# Try to create an executable without -o first, disregard a.out.
1783# It will help us diagnose broken compilers, and finding out an intuition
1784# of exeext.
1785echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1786echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789 (eval $ac_link_default) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; then
1793 # Find the output, starting from the most likely. This scheme is
1794# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795# resort.
1796
1797# Be careful to initialize this variable, since it used to be cached.
1798# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799ac_cv_exeext=
1800# b.out is created by i960 compilers.
1801for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1802do
1803 test -f "$ac_file" || continue
1804 case $ac_file in
1805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1806 ;;
1807 conftest.$ac_ext )
1808 # This is the source file.
1809 ;;
1810 [ab].out )
1811 # We found the default executable, but exeext='' is most
1812 # certainly right.
1813 break;;
1814 *.* )
1815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1816 # FIXME: I believe we export ac_cv_exeext for Libtool,
1817 # but it would be cool to find out if it's true. Does anybody
1818 # maintain Libtool? --akim.
1819 export ac_cv_exeext
1820 break;;
1821 * )
1822 break;;
1823 esac
1824done
1825else
1826 echo "$as_me: failed program was:" >&5
1827sed 's/^/| /' conftest.$ac_ext >&5
1828
1829{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1830See \`config.log' for more details." >&5
1831echo "$as_me: error: C compiler cannot create executables
1832See \`config.log' for more details." >&2;}
1833 { (exit 77); exit 77; }; }
1834fi
1835
1836ac_exeext=$ac_cv_exeext
1837echo "$as_me:$LINENO: result: $ac_file" >&5
1838echo "${ECHO_T}$ac_file" >&6
1839
1840# Check the compiler produces executables we can run. If not, either
1841# the compiler is broken, or we cross compile.
1842echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1843echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1844# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1845# If not cross compiling, check that we can run a simple program.
1846if test "$cross_compiling" != yes; then
1847 if { ac_try='./$ac_file'
1848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1849 (eval $ac_try) 2>&5
1850 ac_status=$?
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }; }; then
1853 cross_compiling=no
1854 else
1855 if test "$cross_compiling" = maybe; then
1856 cross_compiling=yes
1857 else
1858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1859If you meant to cross compile, use \`--host'.
1860See \`config.log' for more details." >&5
1861echo "$as_me: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
1866 fi
1867fi
1868echo "$as_me:$LINENO: result: yes" >&5
1869echo "${ECHO_T}yes" >&6
1870
1871rm -f a.out a.exe conftest$ac_cv_exeext b.out
1872ac_clean_files=$ac_clean_files_save
1873# Check the compiler produces executables we can run. If not, either
1874# the compiler is broken, or we cross compile.
1875echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1877echo "$as_me:$LINENO: result: $cross_compiling" >&5
1878echo "${ECHO_T}$cross_compiling" >&6
1879
1880echo "$as_me:$LINENO: checking for suffix of executables" >&5
1881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1883 (eval $ac_link) 2>&5
1884 ac_status=$?
1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1886 (exit $ac_status); }; then
1887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1888# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1889# work properly (i.e., refer to `conftest.exe'), while it won't with
1890# `rm'.
1891for ac_file in conftest.exe conftest conftest.*; do
1892 test -f "$ac_file" || continue
1893 case $ac_file in
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 export ac_cv_exeext
1897 break;;
1898 * ) break;;
1899 esac
1900done
1901else
1902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1903See \`config.log' for more details." >&5
1904echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1905See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1907fi
1908
1909rm -f conftest$ac_cv_exeext
1910echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1911echo "${ECHO_T}$ac_cv_exeext" >&6
1912
1913rm -f conftest.$ac_ext
1914EXEEXT=$ac_cv_exeext
1915ac_exeext=$EXEEXT
1916echo "$as_me:$LINENO: checking for suffix of object files" >&5
1917echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1918if test "${ac_cv_objext+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921 cat >conftest.$ac_ext <<_ACEOF
1922/* confdefs.h. */
1923_ACEOF
1924cat confdefs.h >>conftest.$ac_ext
1925cat >>conftest.$ac_ext <<_ACEOF
1926/* end confdefs.h. */
1927
1928int
1929main ()
1930{
1931
1932 ;
1933 return 0;
1934}
1935_ACEOF
1936rm -f conftest.o conftest.obj
1937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1938 (eval $ac_compile) 2>&5
1939 ac_status=$?
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; then
1942 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1943 case $ac_file in
1944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1945 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946 break;;
1947 esac
1948done
1949else
1950 echo "$as_me: failed program was:" >&5
1951sed 's/^/| /' conftest.$ac_ext >&5
1952
1953{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot compute suffix of object files: cannot compile
1956See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1958fi
1959
1960rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961fi
1962echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1963echo "${ECHO_T}$ac_cv_objext" >&6
1964OBJEXT=$ac_cv_objext
1965ac_objext=$OBJEXT
1966echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1967echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 cat >conftest.$ac_ext <<_ACEOF
1972/* confdefs.h. */
1973_ACEOF
1974cat confdefs.h >>conftest.$ac_ext
1975cat >>conftest.$ac_ext <<_ACEOF
1976/* end confdefs.h. */
1977
1978int
1979main ()
1980{
1981#ifndef __GNUC__
1982 choke me
1983#endif
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.$ac_objext
1990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1991 (eval $ac_compile) 2>conftest.er1
1992 ac_status=$?
1993 grep -v '^ *+' conftest.er1 >conftest.err
1994 rm -f conftest.er1
1995 cat conftest.err >&5
1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997 (exit $ac_status); } &&
1998 { ac_try='test -z "$ac_c_werror_flag"
1999 || test ! -s conftest.err'
2000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001 (eval $ac_try) 2>&5
2002 ac_status=$?
2003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004 (exit $ac_status); }; } &&
2005 { ac_try='test -s conftest.$ac_objext'
2006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007 (eval $ac_try) 2>&5
2008 ac_status=$?
2009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010 (exit $ac_status); }; }; then
2011 ac_compiler_gnu=yes
2012else
2013 echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016ac_compiler_gnu=no
2017fi
2018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2019ac_cv_c_compiler_gnu=$ac_compiler_gnu
2020
2021fi
2022echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2023echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2024GCC=`test $ac_compiler_gnu = yes && echo yes`
2025ac_test_CFLAGS=${CFLAGS+set}
2026ac_save_CFLAGS=$CFLAGS
2027CFLAGS="-g"
2028echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2029echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2030if test "${ac_cv_prog_cc_g+set}" = set; then
2031 echo $ECHO_N "(cached) $ECHO_C" >&6
2032else
2033 cat >conftest.$ac_ext <<_ACEOF
2034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
2039
2040int
2041main ()
2042{
2043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048rm -f conftest.$ac_objext
2049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2050 (eval $ac_compile) 2>conftest.er1
2051 ac_status=$?
2052 grep -v '^ *+' conftest.er1 >conftest.err
2053 rm -f conftest.er1
2054 cat conftest.err >&5
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); } &&
2057 { ac_try='test -z "$ac_c_werror_flag"
2058 || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071else
2072 echo "$as_me: failed program was:" >&5
2073sed 's/^/| /' conftest.$ac_ext >&5
2074
2075ac_cv_prog_cc_g=no
2076fi
2077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2078fi
2079echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2088 fi
2089else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2094 fi
2095fi
2096echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100else
2101 ac_cv_prog_cc_stdc=no
2102ac_save_CC=$CC
2103cat >conftest.$ac_ext <<_ACEOF
2104/* confdefs.h. */
2105_ACEOF
2106cat confdefs.h >>conftest.$ac_ext
2107cat >>conftest.$ac_ext <<_ACEOF
2108/* end confdefs.h. */
2109#include <stdarg.h>
2110#include <stdio.h>
2111#include <sys/types.h>
2112#include <sys/stat.h>
2113/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114struct buf { int x; };
2115FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116static char *e (p, i)
2117 char **p;
2118 int i;
2119{
2120 return p[i];
2121}
2122static char *f (char * (*g) (char **, int), char **p, ...)
2123{
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2130}
2131
2132/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2140
2141int test (int i, double x);
2142struct s1 {int (*f) (int a);};
2143struct s2 {int (*f) (double a);};
2144int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145int argc;
2146char **argv;
2147int
2148main ()
2149{
2150return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155# Don't try gcc -ansi; that turns off useful extensions and
2156# breaks some systems' header files.
2157# AIX -qlanglvl=ansi
2158# Ultrix and OSF/1 -std1
2159# HP-UX 10.20 and later -Ae
2160# HP-UX older versions -Aa -D_HPUX_SOURCE
2161# SVR4 -Xc -D__EXTENSIONS__
2162for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2163do
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag"
2175 || test ! -s conftest.err'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; } &&
2181 { ac_try='test -s conftest.$ac_objext'
2182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2183 (eval $ac_try) 2>&5
2184 ac_status=$?
2185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186 (exit $ac_status); }; }; then
2187 ac_cv_prog_cc_stdc=$ac_arg
2188break
2189else
2190 echo "$as_me: failed program was:" >&5
2191sed 's/^/| /' conftest.$ac_ext >&5
2192
2193fi
2194rm -f conftest.err conftest.$ac_objext
2195done
2196rm -f conftest.$ac_ext conftest.$ac_objext
2197CC=$ac_save_CC
2198
2199fi
2200
2201case "x$ac_cv_prog_cc_stdc" in
2202 x|xno)
2203 echo "$as_me:$LINENO: result: none needed" >&5
2204echo "${ECHO_T}none needed" >&6 ;;
2205 *)
2206 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2207echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2208 CC="$CC $ac_cv_prog_cc_stdc" ;;
2209esac
2210
2211# Some people use a C++ compiler to compile C. Since we use `exit',
2212# in C++ we need to declare it. In case someone uses the same compiler
2213# for both compiling C and C++ we need to have the C++ compiler decide
2214# the declaration of exit, since it's the most demanding environment.
2215cat >conftest.$ac_ext <<_ACEOF
2216#ifndef __cplusplus
2217 choke me
2218#endif
2219_ACEOF
2220rm -f conftest.$ac_objext
2221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 (eval $ac_try) 2>&5
2233 ac_status=$?
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 for ac_declaration in \
2243 '' \
2244 'extern "C" void std::exit (int) throw (); using std::exit;' \
2245 'extern "C" void std::exit (int); using std::exit;' \
2246 'extern "C" void exit (int) throw ();' \
2247 'extern "C" void exit (int);' \
2248 'void exit (int);'
2249do
2250 cat >conftest.$ac_ext <<_ACEOF
2251/* confdefs.h. */
2252_ACEOF
2253cat confdefs.h >>conftest.$ac_ext
2254cat >>conftest.$ac_ext <<_ACEOF
2255/* end confdefs.h. */
2256$ac_declaration
2257#include <stdlib.h>
2258int
2259main ()
2260{
2261exit (42);
2262 ;
2263 return 0;
2264}
2265_ACEOF
2266rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2268 (eval $ac_compile) 2>conftest.er1
2269 ac_status=$?
2270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
2275 { ac_try='test -z "$ac_c_werror_flag"
2276 || test ! -s conftest.err'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; } &&
2282 { ac_try='test -s conftest.$ac_objext'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; }; then
2288 :
2289else
2290 echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293continue
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h. */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h. */
2302$ac_declaration
2303int
2304main ()
2305{
2306exit (42);
2307 ;
2308 return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>conftest.er1
2314 ac_status=$?
2315 grep -v '^ *+' conftest.er1 >conftest.err
2316 rm -f conftest.er1
2317 cat conftest.err >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -z "$ac_c_werror_flag"
2321 || test ! -s conftest.err'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 (eval $ac_try) 2>&5
2324 ac_status=$?
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 (eval $ac_try) 2>&5
2330 ac_status=$?
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 break
2334else
2335 echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338fi
2339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2340done
2341rm -f conftest*
2342if test -n "$ac_declaration"; then
2343 echo '#ifdef __cplusplus' >>confdefs.h
2344 echo $ac_declaration >>confdefs.h
2345 echo '#endif' >>confdefs.h
2346fi
2347
2348else
2349 echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352fi
2353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359
2360
2361echo "$as_me:$LINENO: checking for library containing strerror" >&5
2362echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2363if test "${ac_cv_search_strerror+set}" = set; then
2364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 ac_func_search_save_LIBS=$LIBS
2367ac_cv_search_strerror=no
2368cat >conftest.$ac_ext <<_ACEOF
2369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
2374
2375/* Override any gcc2 internal prototype to avoid an error. */
2376#ifdef __cplusplus
2377extern "C"
2378#endif
2379/* We use char because int might match the return type of a gcc2
2380 builtin and then its argument prototype would still apply. */
2381char strerror ();
2382int
2383main ()
2384{
2385strerror ();
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext conftest$ac_exeext
2391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2392 (eval $ac_link) 2>conftest.er1
2393 ac_status=$?
2394 grep -v '^ *+' conftest.er1 >conftest.err
2395 rm -f conftest.er1
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag"
2400 || test ! -s conftest.err'
2401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; } &&
2406 { ac_try='test -s conftest$ac_exeext'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 (eval $ac_try) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2412 ac_cv_search_strerror="none required"
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
2418rm -f conftest.err conftest.$ac_objext \
2419 conftest$ac_exeext conftest.$ac_ext
2420if test "$ac_cv_search_strerror" = no; then
2421 for ac_lib in cposix; do
2422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2423 cat >conftest.$ac_ext <<_ACEOF
2424/* confdefs.h. */
2425_ACEOF
2426cat confdefs.h >>conftest.$ac_ext
2427cat >>conftest.$ac_ext <<_ACEOF
2428/* end confdefs.h. */
2429
2430/* Override any gcc2 internal prototype to avoid an error. */
2431#ifdef __cplusplus
2432extern "C"
2433#endif
2434/* We use char because int might match the return type of a gcc2
2435 builtin and then its argument prototype would still apply. */
2436char strerror ();
2437int
2438main ()
2439{
2440strerror ();
2441 ;
2442 return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext conftest$ac_exeext
2446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2447 (eval $ac_link) 2>conftest.er1
2448 ac_status=$?
2449 grep -v '^ *+' conftest.er1 >conftest.err
2450 rm -f conftest.er1
2451 cat conftest.err >&5
2452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453 (exit $ac_status); } &&
2454 { ac_try='test -z "$ac_c_werror_flag"
2455 || test ! -s conftest.err'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; } &&
2461 { ac_try='test -s conftest$ac_exeext'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463 (eval $ac_try) 2>&5
2464 ac_status=$?
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; }; then
2467 ac_cv_search_strerror="-l$ac_lib"
2468break
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473fi
2474rm -f conftest.err conftest.$ac_objext \
2475 conftest$ac_exeext conftest.$ac_ext
2476 done
2477fi
2478LIBS=$ac_func_search_save_LIBS
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2481echo "${ECHO_T}$ac_cv_search_strerror" >&6
2482if test "$ac_cv_search_strerror" != no; then
2483 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2484
2485fi
2486
2487
2488BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2489am__api_version="1.7"
2490# Find a good install program. We prefer a C program (faster),
2491# so one script is as good as another. But avoid the broken or
2492# incompatible versions:
2493# SysV /etc/install, /usr/sbin/install
2494# SunOS /usr/etc/install
2495# IRIX /sbin/install
2496# AIX /bin/install
2497# AmigaOS /C/install, which installs bootblocks on floppy discs
2498# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2499# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2500# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2501# OS/2's system install, which has a completely different semantic
2502# ./install, which can be erroneously created by make from ./install.sh.
2503echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2504echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2505if test -z "$INSTALL"; then
2506if test "${ac_cv_path_install+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510for as_dir in $PATH
2511do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 # Account for people who put trailing slashes in PATH elements.
2515case $as_dir/ in
2516 ./ | .// | /cC/* | \
2517 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2518 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2519 /usr/ucb/* ) ;;
2520 *)
2521 # OSF1 and SCO ODT 3.0 have their own names for install.
2522 # Don't use installbsd from OSF since it installs stuff as root
2523 # by default.
2524 for ac_prog in ginstall scoinst install; do
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2527 if test $ac_prog = install &&
e5a52504 2528 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2529 # AIX install. It has an incompatible calling convention.
2530 :
e5a52504
MM
2531 elif test $ac_prog = install &&
2532 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # program-specific install script used by HP pwplus--don't use.
2534 :
252b5132 2535 else
e5a52504
MM
2536 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2537 break 3
252b5132
RH
2538 fi
2539 fi
2540 done
e5a52504
MM
2541 done
2542 ;;
2543esac
2544done
2545
252b5132
RH
2546
2547fi
2548 if test "${ac_cv_path_install+set}" = set; then
e5a52504 2549 INSTALL=$ac_cv_path_install
252b5132
RH
2550 else
2551 # As a last resort, use the slow shell script. We don't cache a
2552 # path for INSTALL within a source directory, because that will
2553 # break other packages using the cache if that directory is
2554 # removed, or if the path is relative.
e5a52504 2555 INSTALL=$ac_install_sh
252b5132
RH
2556 fi
2557fi
e5a52504
MM
2558echo "$as_me:$LINENO: result: $INSTALL" >&5
2559echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2560
2561# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2562# It thinks the first close brace ends the variable substitution.
2563test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564
e5a52504 2565test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2566
2567test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568
e5a52504
MM
2569echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2570echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2571# Just in case
2572sleep 1
e5a52504 2573echo timestamp > conftest.file
252b5132
RH
2574# Do `set' in a subshell so we don't clobber the current shell's
2575# arguments. Must try -L first in case configure is actually a
2576# symlink; some systems play weird games with the mod time of symlinks
2577# (eg FreeBSD returns the mod time of the symlink's containing
2578# directory).
2579if (
e5a52504 2580 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2581 if test "$*" = "X"; then
2582 # -L didn't work.
e5a52504 2583 set X `ls -t $srcdir/configure conftest.file`
252b5132 2584 fi
e5a52504
MM
2585 rm -f conftest.file
2586 if test "$*" != "X $srcdir/configure conftest.file" \
2587 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2588
2589 # If neither matched, then we have a broken ls. This can happen
2590 # if, for instance, CONFIG_SHELL is bash and it inherits a
2591 # broken ls alias from the environment. This has actually
2592 # happened. Such a system could not be considered "sane".
e5a52504
MM
2593 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2594alias in your environment" >&5
2595echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2596alias in your environment" >&2;}
2597 { (exit 1); exit 1; }; }
252b5132
RH
2598 fi
2599
e5a52504 2600 test "$2" = conftest.file
252b5132
RH
2601 )
2602then
2603 # Ok.
2604 :
2605else
e5a52504
MM
2606 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2607Check your system clock" >&5
2608echo "$as_me: error: newly created file is older than distributed files!
2609Check your system clock" >&2;}
2610 { (exit 1); exit 1; }; }
252b5132 2611fi
e5a52504
MM
2612echo "$as_me:$LINENO: result: yes" >&5
2613echo "${ECHO_T}yes" >&6
252b5132 2614test "$program_prefix" != NONE &&
e5a52504 2615 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2616# Use a double $ so make ignores it.
2617test "$program_suffix" != NONE &&
e5a52504
MM
2618 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2619# Double any \ or $. echo might interpret backslashes.
2620# By default was `s,x,x', remove it if useless.
2621cat <<\_ACEOF >conftest.sed
2622s/[\\$]/&&/g;s/;s,x,x,$//
2623_ACEOF
2624program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2625rm conftest.sed
2626
2627
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
2641for ac_prog in gawk mawk nawk awk
2642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
2645echo "$as_me:$LINENO: checking for $ac_word" >&5
2646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647if test "${ac_cv_prog_AWK+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649else
2650 if test -n "$AWK"; then
2651 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_AWK="$ac_prog"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665done
2666
2667fi
2668fi
2669AWK=$ac_cv_prog_AWK
2670if test -n "$AWK"; then
2671 echo "$as_me:$LINENO: result: $AWK" >&5
2672echo "${ECHO_T}$AWK" >&6
2673else
2674 echo "$as_me:$LINENO: result: no" >&5
2675echo "${ECHO_T}no" >&6
2676fi
252b5132 2677
e5a52504
MM
2678 test -n "$AWK" && break
2679done
252b5132 2680
e5a52504
MM
2681echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2682echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2683set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2684if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2686else
e5a52504 2687 cat >conftest.make <<\_ACEOF
252b5132 2688all:
e5a52504
MM
2689 @echo 'ac_maketemp="$(MAKE)"'
2690_ACEOF
252b5132 2691# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e5a52504 2692eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2693if test -n "$ac_maketemp"; then
2694 eval ac_cv_prog_make_${ac_make}_set=yes
2695else
2696 eval ac_cv_prog_make_${ac_make}_set=no
2697fi
e5a52504 2698rm -f conftest.make
252b5132
RH
2699fi
2700if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e5a52504
MM
2701 echo "$as_me:$LINENO: result: yes" >&5
2702echo "${ECHO_T}yes" >&6
252b5132
RH
2703 SET_MAKE=
2704else
e5a52504
MM
2705 echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
252b5132
RH
2707 SET_MAKE="MAKE=${MAKE-make}"
2708fi
2709
e5a52504
MM
2710rm -rf .tst 2>/dev/null
2711mkdir .tst 2>/dev/null
2712if test -d .tst; then
2713 am__leading_dot=.
2714else
2715 am__leading_dot=_
2716fi
2717rmdir .tst 2>/dev/null
2718
2719DEPDIR="${am__leading_dot}deps"
2720
2721 ac_config_commands="$ac_config_commands depfiles"
2722
2723
2724am_make=${MAKE-make}
2725cat > confinc << 'END'
2726am__doit:
2727 @echo done
2728.PHONY: am__doit
2729END
2730# If we don't find an include directive, just comment out the code.
2731echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2732echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2733am__include="#"
2734am__quote=
2735_am_result=none
2736# First try GNU make style include.
2737echo "include confinc" > confmf
2738# We grep out `Entering directory' and `Leaving directory'
2739# messages which can occur if `w' ends up in MAKEFLAGS.
2740# In particular we don't look at `^make:' because GNU make might
2741# be invoked under some other name (usually "gmake"), in which
2742# case it prints its new name instead of `make'.
2743if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2744 am__include=include
2745 am__quote=
2746 _am_result=GNU
2747fi
2748# Now try BSD make style include.
2749if test "$am__include" = "#"; then
2750 echo '.include "confinc"' > confmf
2751 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2752 am__include=.include
2753 am__quote="\""
2754 _am_result=BSD
2755 fi
252b5132 2756fi
252b5132 2757
252b5132 2758
e5a52504
MM
2759echo "$as_me:$LINENO: result: $_am_result" >&5
2760echo "${ECHO_T}$_am_result" >&6
2761rm -f confinc confmf
252b5132 2762
e5a52504
MM
2763# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2764if test "${enable_dependency_tracking+set}" = set; then
2765 enableval="$enable_dependency_tracking"
252b5132 2766
e5a52504
MM
2767fi;
2768if test "x$enable_dependency_tracking" != xno; then
2769 am_depcomp="$ac_aux_dir/depcomp"
2770 AMDEPBACKSLASH='\'
252b5132
RH
2771fi
2772
252b5132 2773
e5a52504
MM
2774if test "x$enable_dependency_tracking" != xno; then
2775 AMDEP_TRUE=
2776 AMDEP_FALSE='#'
252b5132 2777else
e5a52504
MM
2778 AMDEP_TRUE='#'
2779 AMDEP_FALSE=
252b5132
RH
2780fi
2781
e5a52504
MM
2782
2783
2784 # test to see if srcdir already configured
2785if test "`cd $srcdir && pwd`" != "`pwd`" &&
2786 test -f $srcdir/config.status; then
2787 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2788echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2789 { (exit 1); exit 1; }; }
252b5132
RH
2790fi
2791
e5a52504
MM
2792# test whether we have cygpath
2793if test -z "$CYGPATH_W"; then
2794 if (cygpath --version) >/dev/null 2>/dev/null; then
2795 CYGPATH_W='cygpath -w'
2796 else
2797 CYGPATH_W=echo
2798 fi
252b5132
RH
2799fi
2800
2801
e5a52504
MM
2802# Define the identity of the package.
2803 PACKAGE=ld
2804 VERSION=${BFD_VERSION}
252b5132 2805
252b5132 2806
e5a52504
MM
2807cat >>confdefs.h <<_ACEOF
2808#define PACKAGE "$PACKAGE"
2809_ACEOF
252b5132 2810
252b5132 2811
e5a52504
MM
2812cat >>confdefs.h <<_ACEOF
2813#define VERSION "$VERSION"
2814_ACEOF
2815
2816# Some tools Automake needs.
2817
2818ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2819
2820
2821AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2822
2823
2824AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2825
2826
2827AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2828
2829
2830MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2831
2832
2833AMTAR=${AMTAR-"${am_missing_run}tar"}
2834
2835install_sh=${install_sh-"$am_aux_dir/install-sh"}
2836
2837# Installed binaries are usually stripped using `strip' when the user
2838# run `make install-strip'. However `strip' might not be the right
2839# tool to use in cross-compilation environments, therefore Automake
2840# will honor the `STRIP' environment variable to overrule this program.
2841if test "$cross_compiling" != no; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2844set dummy ${ac_tool_prefix}strip; ac_word=$2
2845echo "$as_me:$LINENO: checking for $ac_word" >&5
2846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847if test "${ac_cv_prog_STRIP+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2469cfa2 2849else
e5a52504
MM
2850 if test -n "$STRIP"; then
2851 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2469cfa2 2852else
e5a52504
MM
2853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854for as_dir in $PATH
2855do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864done
2865done
2866
2469cfa2
NC
2867fi
2868fi
e5a52504
MM
2869STRIP=$ac_cv_prog_STRIP
2870if test -n "$STRIP"; then
2871 echo "$as_me:$LINENO: result: $STRIP" >&5
2872echo "${ECHO_T}$STRIP" >&6
2469cfa2 2873else
e5a52504
MM
2874 echo "$as_me:$LINENO: result: no" >&5
2875echo "${ECHO_T}no" >&6
2469cfa2
NC
2876fi
2877
e5a52504
MM
2878fi
2879if test -z "$ac_cv_prog_STRIP"; then
2880 ac_ct_STRIP=$STRIP
2881 # Extract the first word of "strip", so it can be a program name with args.
2882set dummy strip; ac_word=$2
2883echo "$as_me:$LINENO: checking for $ac_word" >&5
2884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2885if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2469cfa2 2887else
e5a52504
MM
2888 if test -n "$ac_ct_STRIP"; then
2889 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2469cfa2 2890else
e5a52504
MM
2891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892for as_dir in $PATH
2893do
2894 IFS=$as_save_IFS
2895 test -z "$as_dir" && as_dir=.
2896 for ac_exec_ext in '' $ac_executable_extensions; do
2897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2898 ac_cv_prog_ac_ct_STRIP="strip"
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 break 2
2469cfa2 2901 fi
e5a52504
MM
2902done
2903done
2904
2905 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2469cfa2
NC
2906fi
2907fi
e5a52504
MM
2908ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2909if test -n "$ac_ct_STRIP"; then
2910 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2911echo "${ECHO_T}$ac_ct_STRIP" >&6
2469cfa2 2912else
e5a52504
MM
2913 echo "$as_me:$LINENO: result: no" >&5
2914echo "${ECHO_T}no" >&6
2469cfa2
NC
2915fi
2916
e5a52504 2917 STRIP=$ac_ct_STRIP
2469cfa2 2918else
e5a52504 2919 STRIP="$ac_cv_prog_STRIP"
2469cfa2 2920fi
e5a52504 2921
2469cfa2 2922fi
e5a52504 2923INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2469cfa2 2924
e5a52504
MM
2925# We need awk for the "check" target. The system "awk" is bad on
2926# some platforms.
2469cfa2 2927
2469cfa2 2928
e5a52504 2929depcc="$CC" am_compiler_list=
2469cfa2 2930
e5a52504
MM
2931echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2932echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2933if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2934 echo $ECHO_N "(cached) $ECHO_C" >&6
2935else
2936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2937 # We make a subdir and do the tests there. Otherwise we can end up
2938 # making bogus files that we don't know about and never remove. For
2939 # instance it was reported that on HP-UX the gcc test will end up
2940 # making a dummy file named `D' -- because `-MD' means `put the output
2941 # in D'.
2942 mkdir conftest.dir
2943 # Copy depcomp to subdir because otherwise we won't find it if we're
2944 # using a relative directory.
2945 cp "$am_depcomp" conftest.dir
2946 cd conftest.dir
2947 # We will build objects and dependencies in a subdirectory because
2948 # it helps to detect inapplicable dependency modes. For instance
2949 # both Tru64's cc and ICC support -MD to output dependencies as a
2950 # side effect of compilation, but ICC will put the dependencies in
2951 # the current directory while Tru64 will put them in the object
2952 # directory.
2953 mkdir sub
2469cfa2 2954
e5a52504
MM
2955 am_cv_CC_dependencies_compiler_type=none
2956 if test "$am_compiler_list" = ""; then
2957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2469cfa2 2958 fi
e5a52504
MM
2959 for depmode in $am_compiler_list; do
2960 # Setup a source with many dependencies, because some compilers
2961 # like to wrap large dependency lists on column 80 (with \), and
2962 # we should not choose a depcomp mode which is confused by this.
2963 #
2964 # We need to recreate these files for each test, as the compiler may
2965 # overwrite some of them when testing with obscure command lines.
2966 # This happens at least with the AIX C compiler.
2967 : > sub/conftest.c
2968 for i in 1 2 3 4 5 6; do
2969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2970 : > sub/conftst$i.h
2971 done
2972 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2469cfa2 2973
e5a52504
MM
2974 case $depmode in
2975 nosideeffect)
2976 # after this tag, mechanisms are not by side-effect, so they'll
2977 # only be used when explicitly requested
2978 if test "x$enable_dependency_tracking" = xyes; then
2979 continue
2980 else
2981 break
2982 fi
2983 ;;
2984 none) break ;;
2985 esac
2986 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2987 # mode. It turns out that the SunPro C++ compiler does not properly
2988 # handle `-M -o', and we need to detect this.
2989 if depmode=$depmode \
2990 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2992 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2993 >/dev/null 2>conftest.err &&
2994 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2995 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2996 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2997 # icc doesn't choke on unknown options, it will just issue warnings
2998 # (even with -Werror). So we grep stderr for any message
2999 # that says an option was ignored.
3000 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3001 am_cv_CC_dependencies_compiler_type=$depmode
3002 break
3003 fi
3004 fi
3005 done
2469cfa2 3006
e5a52504
MM
3007 cd ..
3008 rm -rf conftest.dir
2469cfa2 3009else
e5a52504 3010 am_cv_CC_dependencies_compiler_type=none
2469cfa2 3011fi
e5a52504 3012
2469cfa2 3013fi
e5a52504
MM
3014echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3015echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3016CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2469cfa2 3017
2469cfa2 3018
2469cfa2 3019
e5a52504
MM
3020if
3021 test "x$enable_dependency_tracking" != xno \
3022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3023 am__fastdepCC_TRUE=
3024 am__fastdepCC_FALSE='#'
2469cfa2 3025else
e5a52504
MM
3026 am__fastdepCC_TRUE='#'
3027 am__fastdepCC_FALSE=
2469cfa2 3028fi
2469cfa2 3029
2469cfa2 3030
e5a52504
MM
3031
3032
3033# Check whether --enable-shared or --disable-shared was given.
3034if test "${enable_shared+set}" = set; then
3035 enableval="$enable_shared"
3036 p=${PACKAGE-default}
3037case $enableval in
3038yes) enable_shared=yes ;;
3039no) enable_shared=no ;;
3040*)
3041 enable_shared=no
3042 # Look at the argument we got. We use all the common list separators.
3043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3044 for pkg in $enableval; do
3045 if test "X$pkg" = "X$p"; then
3046 enable_shared=yes
3047 fi
3048 done
3049 IFS="$ac_save_ifs"
3050 ;;
3051esac
2469cfa2 3052else
e5a52504
MM
3053 enable_shared=yes
3054fi;
3055# Check whether --enable-static or --disable-static was given.
3056if test "${enable_static+set}" = set; then
3057 enableval="$enable_static"
3058 p=${PACKAGE-default}
3059case $enableval in
3060yes) enable_static=yes ;;
3061no) enable_static=no ;;
3062*)
3063 enable_static=no
3064 # Look at the argument we got. We use all the common list separators.
3065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3066 for pkg in $enableval; do
3067 if test "X$pkg" = "X$p"; then
3068 enable_static=yes
3069 fi
3070 done
3071 IFS="$ac_save_ifs"
3072 ;;
3073esac
3074else
3075 enable_static=yes
3076fi;
3077# Check whether --enable-fast-install or --disable-fast-install was given.
3078if test "${enable_fast_install+set}" = set; then
3079 enableval="$enable_fast_install"
3080 p=${PACKAGE-default}
3081case $enableval in
3082yes) enable_fast_install=yes ;;
3083no) enable_fast_install=no ;;
3084*)
3085 enable_fast_install=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_fast_install=yes
3091 fi
3092 done
3093 IFS="$ac_save_ifs"
3094 ;;
3095esac
3096else
3097 enable_fast_install=yes
3098fi;
2469cfa2 3099
252b5132
RH
3100# Check whether --with-gnu-ld or --without-gnu-ld was given.
3101if test "${with_gnu_ld+set}" = set; then
3102 withval="$with_gnu_ld"
3103 test "$withval" = no || with_gnu_ld=yes
3104else
3105 with_gnu_ld=no
e5a52504 3106fi;
252b5132 3107ac_prog=ld
c7e40348 3108if test "$GCC" = yes; then
252b5132 3109 # Check if gcc -print-prog-name=ld gives a path.
e5a52504
MM
3110 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3111echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3112 case $host in
3113 *-*-mingw*)
3114 # gcc leaves a trailing carriage return which upsets mingw
3115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3116 *)
3117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3118 esac
c7e40348 3119 case $ac_prog in
252b5132 3120 # Accept absolute paths.
a74801ba 3121 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
3122 re_direlt='/[^/][^/]*/\.\./'
3123 # Canonicalize the path of ld
3124 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3126 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3127 done
3128 test -z "$LD" && LD="$ac_prog"
3129 ;;
3130 "")
3131 # If it fails, then pretend we aren't using GCC.
3132 ac_prog=ld
3133 ;;
3134 *)
3135 # If it is relative, then search for the first ld in PATH.
3136 with_gnu_ld=unknown
3137 ;;
3138 esac
3139elif test "$with_gnu_ld" = yes; then
e5a52504
MM
3140 echo "$as_me:$LINENO: checking for GNU ld" >&5
3141echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3142else
e5a52504
MM
3143 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3144echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3145fi
e5a52504
MM
3146if test "${lt_cv_path_LD+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3148else
3149 if test -z "$LD"; then
a74801ba 3150 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3151 for ac_dir in $PATH; do
3152 test -z "$ac_dir" && ac_dir=.
a74801ba 3153 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c7e40348 3154 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3155 # Check to see if the program is GNU ld. I'd rather use --version,
3156 # but apparently some GNU ld's only accept -v.
3157 # Break only if it was the GNU/non-GNU ld that we prefer.
c7e40348 3158 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3159 test "$with_gnu_ld" != no && break
3160 else
3161 test "$with_gnu_ld" != yes && break
3162 fi
3163 fi
3164 done
3165 IFS="$ac_save_ifs"
3166else
c7e40348 3167 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3168fi
3169fi
3170
c7e40348 3171LD="$lt_cv_path_LD"
252b5132 3172if test -n "$LD"; then
e5a52504
MM
3173 echo "$as_me:$LINENO: result: $LD" >&5
3174echo "${ECHO_T}$LD" >&6
252b5132 3175else
e5a52504
MM
3176 echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
252b5132 3178fi
e5a52504
MM
3179test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3180echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3181 { (exit 1); exit 1; }; }
3182echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3183echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3184if test "${lt_cv_prog_gnu_ld+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3186else
3187 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3188if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c7e40348 3189 lt_cv_prog_gnu_ld=yes
252b5132 3190else
c7e40348 3191 lt_cv_prog_gnu_ld=no
252b5132
RH
3192fi
3193fi
e5a52504
MM
3194echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3195echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c7e40348 3196with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3197
3198
e5a52504
MM
3199echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3200echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3201if test "${lt_cv_ld_reload_flag+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3203else
3204 lt_cv_ld_reload_flag='-r'
3205fi
e5a52504
MM
3206echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3207echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3208reload_flag=$lt_cv_ld_reload_flag
3209test -n "$reload_flag" && reload_flag=" $reload_flag"
3210
e5a52504
MM
3211echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3212echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3213if test "${lt_cv_path_NM+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3215else
3216 if test -n "$NM"; then
3217 # Let the user override the test.
c7e40348 3218 lt_cv_path_NM="$NM"
252b5132 3219else
a74801ba 3220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3221 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3222 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3223 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3224 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3225 # Check to see if the nm accepts a BSD-compat flag.
3226 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3227 # nm: unknown option "B" ignored
58cccadb
AO
3228 # Tru64's nm complains that /dev/null is an invalid object file
3229 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c7e40348 3230 lt_cv_path_NM="$tmp_nm -B"
252b5132 3231 break
ac48eca1 3232 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c7e40348 3233 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3234 break
3235 else
c7e40348 3236 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3237 continue # so that we can try to find one that supports BSD flags
3238 fi
3239 fi
3240 done
3241 IFS="$ac_save_ifs"
c7e40348 3242 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3243fi
3244fi
3245
c7e40348 3246NM="$lt_cv_path_NM"
e5a52504
MM
3247echo "$as_me:$LINENO: result: $NM" >&5
3248echo "${ECHO_T}$NM" >&6
252b5132 3249
e5a52504
MM
3250echo "$as_me:$LINENO: checking whether ln -s works" >&5
3251echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3252LN_S=$as_ln_s
3253if test "$LN_S" = "ln -s"; then
3254 echo "$as_me:$LINENO: result: yes" >&5
3255echo "${ECHO_T}yes" >&6
252b5132 3256else
e5a52504
MM
3257 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3258echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3259fi
3260
e5a52504
MM
3261echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3262echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3263if test "${lt_cv_deplibs_check_method+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3265else
d64552c5 3266 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3267lt_cv_file_magic_test_file=
3268lt_cv_deplibs_check_method='unknown'
3269# Need to set the preceding variable on all platforms that support
3270# interlibrary dependencies.
3271# 'none' -- dependencies not supported.
3272# `unknown' -- same as none, but documents that we really don't know.
3273# 'pass_all' -- all dependencies passed with no checks.
3274# 'test_compile' -- check by making test program.
3275# 'file_magic [regex]' -- check by looking for files in library path
3276# which responds to the $file_magic_cmd with a given egrep regex.
3277# If you have `file' or equivalent on your system and you're not sure
3278# whether `pass_all' will *always* work, you probably want this one.
3279
c7e40348
NC
3280case $host_os in
3281aix*)
ac48eca1
AO
3282 lt_cv_deplibs_check_method=pass_all
3283 ;;
3284
3285beos*)
3286 lt_cv_deplibs_check_method=pass_all
3287 ;;
3288
3289bsdi4*)
c7e40348
NC
3290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3291 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3292 lt_cv_file_magic_test_file=/shlib/libc.so
3293 ;;
3294
d64552c5 3295cygwin* | mingw* |pw32*)
ac48eca1 3296 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3297 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3298 ;;
3299
c7e40348
NC
3300darwin* | rhapsody*)
3301 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3302 lt_cv_file_magic_cmd='/usr/bin/file -L'
3303 case "$host_os" in
3304 rhapsody* | darwin1.012)
3305 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3306 ;;
3307 *) # Darwin 1.3 on
3308 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3309 ;;
3310 esac
3311 ;;
3312
e5a52504 3313freebsd* | kfreebsd*-gnu)
ac48eca1 3314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c7e40348 3315 case $host_cpu in
ac48eca1 3316 i*86 )
58cccadb
AO
3317 # Not sure whether the presence of OpenBSD here was a mistake.
3318 # Let's accept both of them until this is cleared up.
c7e40348
NC
3319 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3320 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3322 ;;
3323 esac
3324 else
3325 lt_cv_deplibs_check_method=pass_all
3326 fi
3327 ;;
3328
3329gnu*)
3330 lt_cv_deplibs_check_method=pass_all
3331 ;;
3332
c7e40348 3333hpux10.20*|hpux11*)
4867be41
DJ
3334 case $host_cpu in
3335 hppa*)
3336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3337 lt_cv_file_magic_cmd=/usr/bin/file
3338 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3339 ;;
3340 ia64*)
3341 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3342 lt_cv_file_magic_cmd=/usr/bin/file
3343 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3344 ;;
3345 esac
ac48eca1
AO
3346 ;;
3347
3348irix5* | irix6*)
c7e40348 3349 case $host_os in
ac48eca1
AO
3350 irix5*)
3351 # this will be overridden with pass_all, but let us keep it just in case
3352 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3353 ;;
3354 *)
c7e40348 3355 case $LD in
ac48eca1
AO
3356 *-32|*"-32 ") libmagic=32-bit;;
3357 *-n32|*"-n32 ") libmagic=N32;;
3358 *-64|*"-64 ") libmagic=64-bit;;
3359 *) libmagic=never-match;;
3360 esac
3361 # this will be overridden with pass_all, but let us keep it just in case
c7e40348
NC
3362 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3363 ;;
ac48eca1
AO
3364 esac
3365 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3366 lt_cv_deplibs_check_method=pass_all
3367 ;;
3368
3369# This must be Linux ELF.
58cccadb 3370linux-gnu*)
c7e40348 3371 case $host_cpu in
8d9cd6b1 3372 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3373 lt_cv_deplibs_check_method=pass_all ;;
3374 *)
3375 # glibc up to 2.1.1 does not perform some relocations on ARM
c7e40348
NC
3376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3377 esac
ac48eca1
AO
3378 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3379 ;;
3380
e5a52504 3381netbsd* | knetbsd*-gnu)
c7e40348
NC
3382 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3383 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3384 else
c7e40348 3385 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3386 fi
3387 ;;
3388
c7e40348
NC
3389newsos6)
3390 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3391 lt_cv_file_magic_cmd=/usr/bin/file
3392 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3393 ;;
3394
ac48eca1
AO
3395osf3* | osf4* | osf5*)
3396 # this will be overridden with pass_all, but let us keep it just in case
3397 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3398 lt_cv_file_magic_test_file=/shlib/libc.so
3399 lt_cv_deplibs_check_method=pass_all
3400 ;;
3401
3402sco3.2v5*)
3403 lt_cv_deplibs_check_method=pass_all
3404 ;;
3405
3406solaris*)
3407 lt_cv_deplibs_check_method=pass_all
3408 lt_cv_file_magic_test_file=/lib/libc.so
3409 ;;
3410
6be7c12c
AO
3411sysv5uw[78]* | sysv4*uw2*)
3412 lt_cv_deplibs_check_method=pass_all
3413 ;;
3414
ac48eca1 3415sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c7e40348 3416 case $host_vendor in
ac48eca1
AO
3417 ncr)
3418 lt_cv_deplibs_check_method=pass_all
3419 ;;
3420 motorola)
c7e40348
NC
3421 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]'
3422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3423 ;;
3424 esac
3425 ;;
3426esac
3427
3428fi
e5a52504
MM
3429echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3430echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3431file_magic_cmd=$lt_cv_file_magic_cmd
3432deplibs_check_method=$lt_cv_deplibs_check_method
3433
ac48eca1 3434
ac48eca1 3435
ac48eca1
AO
3436
3437# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3438
3439# Only perform the check for file, if the check method requires it
c7e40348 3440case $deplibs_check_method in
ac48eca1 3441file_magic*)
d64552c5 3442 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
e5a52504
MM
3443 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3444echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3445if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3447else
c7e40348 3448 case $MAGIC_CMD in
ac48eca1 3449 /*)
d64552c5 3450 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3451 ;;
3452 ?:/*)
d64552c5 3453 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3454 ;;
3455 *)
d64552c5 3456 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3458 ac_dummy="/usr/bin:$PATH"
3459 for ac_dir in $ac_dummy; do
3460 test -z "$ac_dir" && ac_dir=.
3461 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3462 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3463 if test -n "$file_magic_test_file"; then
c7e40348 3464 case $deplibs_check_method in
ac48eca1
AO
3465 "file_magic "*)
3466 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3467 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3469 egrep "$file_magic_regex" > /dev/null; then
3470 :
3471 else
3472 cat <<EOF 1>&2
3473
3474*** Warning: the command libtool uses to detect shared libraries,
3475*** $file_magic_cmd, produces output that libtool cannot recognize.
3476*** The result is that libtool may fail to recognize shared libraries
3477*** as such. This will affect the creation of libtool libraries that
3478*** depend on shared libraries, but programs linked with such libtool
3479*** libraries will work regardless of this problem. Nevertheless, you
3480*** may want to report the problem to your system manager and/or to
3481*** bug-libtool@gnu.org
3482
3483EOF
3484 fi ;;
3485 esac
3486 fi
3487 break
3488 fi
3489 done
3490 IFS="$ac_save_ifs"
d64552c5 3491 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3492 ;;
3493esac
3494fi
3495
d64552c5
AO
3496MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3497if test -n "$MAGIC_CMD"; then
e5a52504
MM
3498 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3499echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3500else
e5a52504
MM
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
ac48eca1
AO
3503fi
3504
d64552c5 3505if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3506 if test -n "$ac_tool_prefix"; then
e5a52504
MM
3507 echo "$as_me:$LINENO: checking for file" >&5
3508echo $ECHO_N "checking for file... $ECHO_C" >&6
3509if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3511else
c7e40348 3512 case $MAGIC_CMD in
ac48eca1 3513 /*)
d64552c5 3514 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3515 ;;
3516 ?:/*)
d64552c5 3517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3518 ;;
3519 *)
d64552c5 3520 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3522 ac_dummy="/usr/bin:$PATH"
3523 for ac_dir in $ac_dummy; do
3524 test -z "$ac_dir" && ac_dir=.
3525 if test -f $ac_dir/file; then
d64552c5 3526 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3527 if test -n "$file_magic_test_file"; then
c7e40348 3528 case $deplibs_check_method in
ac48eca1
AO
3529 "file_magic "*)
3530 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3532 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3533 egrep "$file_magic_regex" > /dev/null; then
3534 :
3535 else
3536 cat <<EOF 1>&2
3537
3538*** Warning: the command libtool uses to detect shared libraries,
3539*** $file_magic_cmd, produces output that libtool cannot recognize.
3540*** The result is that libtool may fail to recognize shared libraries
3541*** as such. This will affect the creation of libtool libraries that
3542*** depend on shared libraries, but programs linked with such libtool
3543*** libraries will work regardless of this problem. Nevertheless, you
3544*** may want to report the problem to your system manager and/or to
3545*** bug-libtool@gnu.org
3546
3547EOF
3548 fi ;;
3549 esac
3550 fi
3551 break
3552 fi
3553 done
3554 IFS="$ac_save_ifs"
d64552c5 3555 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3556 ;;
3557esac
3558fi
3559
d64552c5
AO
3560MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3561if test -n "$MAGIC_CMD"; then
e5a52504
MM
3562 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3563echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3564else
e5a52504
MM
3565 echo "$as_me:$LINENO: result: no" >&5
3566echo "${ECHO_T}no" >&6
ac48eca1
AO
3567fi
3568
3569 else
d64552c5 3570 MAGIC_CMD=:
ac48eca1
AO
3571 fi
3572fi
252b5132 3573
ac48eca1
AO
3574 fi
3575 ;;
a74801ba 3576esac
252b5132 3577
e5a52504
MM
3578if test -n "$ac_tool_prefix"; then
3579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3580set dummy ${ac_tool_prefix}ranlib; ac_word=$2
e5a52504
MM
3581echo "$as_me:$LINENO: checking for $ac_word" >&5
3582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3583if test "${ac_cv_prog_RANLIB+set}" = set; then
3584 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3585else
3586 if test -n "$RANLIB"; then
3587 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3588else
e5a52504
MM
3589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3596 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 break 2
3599 fi
3600done
3601done
3602
ac48eca1
AO
3603fi
3604fi
e5a52504 3605RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3606if test -n "$RANLIB"; then
e5a52504
MM
3607 echo "$as_me:$LINENO: result: $RANLIB" >&5
3608echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3609else
e5a52504
MM
3610 echo "$as_me:$LINENO: result: no" >&5
3611echo "${ECHO_T}no" >&6
ac48eca1
AO
3612fi
3613
e5a52504 3614fi
ac48eca1 3615if test -z "$ac_cv_prog_RANLIB"; then
e5a52504 3616 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3617 # Extract the first word of "ranlib", so it can be a program name with args.
3618set dummy ranlib; ac_word=$2
e5a52504
MM
3619echo "$as_me:$LINENO: checking for $ac_word" >&5
3620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3621if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3623else
e5a52504
MM
3624 if test -n "$ac_ct_RANLIB"; then
3625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ac48eca1 3626else
e5a52504
MM
3627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628for as_dir in $PATH
3629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_ac_ct_RANLIB="ranlib"
3635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3637 fi
3638done
3639done
3640
3641 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3642fi
3643fi
e5a52504
MM
3644ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3645if test -n "$ac_ct_RANLIB"; then
3646 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3647echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3648else
e5a52504
MM
3649 echo "$as_me:$LINENO: result: no" >&5
3650echo "${ECHO_T}no" >&6
ac48eca1
AO
3651fi
3652
e5a52504 3653 RANLIB=$ac_ct_RANLIB
ac48eca1 3654else
e5a52504 3655 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3656fi
3657
e5a52504
MM
3658if test -n "$ac_tool_prefix"; then
3659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3660set dummy ${ac_tool_prefix}strip; ac_word=$2
e5a52504
MM
3661echo "$as_me:$LINENO: checking for $ac_word" >&5
3662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663if test "${ac_cv_prog_STRIP+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3665else
3666 if test -n "$STRIP"; then
3667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3668else
e5a52504
MM
3669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670for as_dir in $PATH
3671do
3672 IFS=$as_save_IFS
3673 test -z "$as_dir" && as_dir=.
3674 for ac_exec_ext in '' $ac_executable_extensions; do
3675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3676 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680done
3681done
3682
ac48eca1
AO
3683fi
3684fi
e5a52504 3685STRIP=$ac_cv_prog_STRIP
ac48eca1 3686if test -n "$STRIP"; then
e5a52504
MM
3687 echo "$as_me:$LINENO: result: $STRIP" >&5
3688echo "${ECHO_T}$STRIP" >&6
ac48eca1 3689else
e5a52504
MM
3690 echo "$as_me:$LINENO: result: no" >&5
3691echo "${ECHO_T}no" >&6
ac48eca1
AO
3692fi
3693
e5a52504 3694fi
ac48eca1 3695if test -z "$ac_cv_prog_STRIP"; then
e5a52504 3696 ac_ct_STRIP=$STRIP
ac48eca1
AO
3697 # Extract the first word of "strip", so it can be a program name with args.
3698set dummy strip; ac_word=$2
e5a52504
MM
3699echo "$as_me:$LINENO: checking for $ac_word" >&5
3700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3701if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3703else
e5a52504
MM
3704 if test -n "$ac_ct_STRIP"; then
3705 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3706else
e5a52504
MM
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_STRIP="strip"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718done
3719done
3720
3721 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3722fi
3723fi
e5a52504
MM
3724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3725if test -n "$ac_ct_STRIP"; then
3726 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3727echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3728else
e5a52504
MM
3729 echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
ac48eca1
AO
3731fi
3732
e5a52504 3733 STRIP=$ac_ct_STRIP
ac48eca1 3734else
e5a52504 3735 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3736fi
3737
3738
252b5132
RH
3739# Check for any special flags to pass to ltconfig.
3740libtool_flags="--cache-file=$cache_file"
3741test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3742test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3743test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c7e40348
NC
3744test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3745test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3746
a74801ba
ILT
3747
3748# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3749if test "${enable_libtool_lock+set}" = set; then
3750 enableval="$enable_libtool_lock"
a74801ba 3751
e5a52504 3752fi;
a74801ba
ILT
3753test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3754test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3755
e5a52504 3756
ac48eca1
AO
3757# Check whether --with-pic or --without-pic was given.
3758if test "${with_pic+set}" = set; then
3759 withval="$with_pic"
3760 pic_mode="$withval"
3761else
3762 pic_mode=default
e5a52504 3763fi;
ac48eca1
AO
3764test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3765test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3766
252b5132
RH
3767# Some flags need to be propagated to the compiler or linker for good
3768# libtool support.
c7e40348 3769case $host in
252b5132
RH
3770*-*-irix6*)
3771 # Find out which ABI we are using.
e5a52504
MM
3772 echo '#line 3772 "configure"' > conftest.$ac_ext
3773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; then
715d1656
AO
3778 if test "$lt_cv_prog_gnu_ld" = yes; then
3779 case `/usr/bin/file conftest.$ac_objext` in
3780 *32-bit*)
3781 LD="${LD-ld} -melf32bsmip"
3782 ;;
3783 *N32*)
3784 LD="${LD-ld} -melf32bmipn32"
3785 ;;
3786 *64-bit*)
3787 LD="${LD-ld} -melf64bmip"
3788 ;;
3789 esac
3790 else
c7e40348 3791 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3792 *32-bit*)
3793 LD="${LD-ld} -32"
3794 ;;
3795 *N32*)
3796 LD="${LD-ld} -n32"
3797 ;;
3798 *64-bit*)
3799 LD="${LD-ld} -64"
3800 ;;
3801 esac
715d1656 3802 fi
252b5132
RH
3803 fi
3804 rm -rf conftest*
3805 ;;
3806
4867be41
DJ
3807ia64-*-hpux*)
3808 # Find out which ABI we are using.
3809 echo 'int i;' > conftest.$ac_ext
e5a52504
MM
3810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3811 (eval $ac_compile) 2>&5
3812 ac_status=$?
3813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814 (exit $ac_status); }; then
4867be41
DJ
3815 case "`/usr/bin/file conftest.o`" in
3816 *ELF-32*)
3817 HPUX_IA64_MODE="32"
3818 ;;
3819 *ELF-64*)
3820 HPUX_IA64_MODE="64"
3821 ;;
3822 esac
3823 fi
3824 rm -rf conftest*
3825 ;;
3826
252b5132
RH
3827*-*-sco3.2v5*)
3828 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3829 SAVE_CFLAGS="$CFLAGS"
3830 CFLAGS="$CFLAGS -belf"
e5a52504
MM
3831 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3832echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3833if test "${lt_cv_cc_needs_belf+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3835else
e5a52504
MM
3836
3837
ac48eca1 3838 ac_ext=c
ac48eca1 3839ac_cpp='$CPP $CPPFLAGS'
e5a52504
MM
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3843
e5a52504
MM
3844 cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h. */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h. */
252b5132 3850
e5a52504
MM
3851int
3852main ()
3853{
252b5132 3854
e5a52504
MM
3855 ;
3856 return 0;
3857}
3858_ACEOF
3859rm -f conftest.$ac_objext conftest$ac_exeext
3860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3861 (eval $ac_link) 2>conftest.er1
3862 ac_status=$?
3863 grep -v '^ *+' conftest.er1 >conftest.err
3864 rm -f conftest.er1
3865 cat conftest.err >&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -z "$ac_c_werror_flag"
3869 || test ! -s conftest.err'
3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871 (eval $ac_try) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }; } &&
3875 { ac_try='test -s conftest$ac_exeext'
3876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877 (eval $ac_try) 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; }; then
252b5132
RH
3881 lt_cv_cc_needs_belf=yes
3882else
e5a52504
MM
3883 echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886lt_cv_cc_needs_belf=no
252b5132 3887fi
e5a52504
MM
3888rm -f conftest.err conftest.$ac_objext \
3889 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3890 ac_ext=c
ac48eca1 3891ac_cpp='$CPP $CPPFLAGS'
e5a52504
MM
3892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3894ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3895
252b5132 3896fi
e5a52504
MM
3897echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3898echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
3899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3901 CFLAGS="$SAVE_CFLAGS"
3902 fi
3903 ;;
3904
252b5132
RH
3905
3906esac
3907
252b5132
RH
3908
3909# Save cache, so that ltconfig can load it
e5a52504 3910cat >confcache <<\_ACEOF
252b5132
RH
3911# This file is a shell script that caches the results of configure
3912# tests run on this system so they can be shared between configure
e5a52504
MM
3913# scripts and configure runs, see configure's option --config-cache.
3914# It is not useful on other systems. If it contains results you don't
3915# want to keep, you may remove or edit it.
252b5132 3916#
e5a52504
MM
3917# config.status only pays attention to the cache file if you give it
3918# the --recheck option to rerun configure.
252b5132 3919#
e5a52504
MM
3920# `ac_cv_env_foo' variables (set or unset) will be overridden when
3921# loading this file, other *unset* `ac_cv_foo' will be assigned the
3922# following values.
3923
3924_ACEOF
3925
252b5132
RH
3926# The following way of writing the cache mishandles newlines in values,
3927# but we know of no workaround that is simple, portable, and efficient.
3928# So, don't put newlines in cache variables' values.
3929# Ultrix sh set writes to stderr and can't be redirected directly,
3930# and sets the high bit in the cache file unless we assign to the vars.
e5a52504
MM
3931{
3932 (set) 2>&1 |
3933 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3934 *ac_space=\ *)
3935 # `set' does not quote correctly, so add quotes (double-quote
3936 # substitution turns \\\\ into \\, and sed turns \\ into \).
3937 sed -n \
3938 "s/'/'\\\\''/g;
3939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3940 ;;
3941 *)
3942 # `set' quotes correctly as required by POSIX, so do not add quotes.
3943 sed -n \
3944 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3945 ;;
3946 esac;
3947} |
3948 sed '
3949 t clear
3950 : clear
3951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3952 t end
3953 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3954 : end' >>confcache
3955if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 3956 if test -w $cache_file; then
e5a52504
MM
3957 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3958 cat confcache >$cache_file
252b5132
RH
3959 else
3960 echo "not updating unwritable cache $cache_file"
3961 fi
3962fi
3963rm -f confcache
3964
252b5132 3965# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3966AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3967MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3968LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3969AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3970objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3971deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3972${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3973$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
e5a52504
MM
3974|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3975echo "$as_me: error: libtool configure failed" >&2;}
3976 { (exit 1); exit 1; }; }
252b5132
RH
3977
3978# Reload cache, that may have been modified by ltconfig
3979if test -r "$cache_file"; then
e5a52504
MM
3980 # Some versions of bash will fail to source /dev/null (special
3981 # files actually), so we avoid doing that.
3982 if test -f "$cache_file"; then
3983 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3984echo "$as_me: loading cache $cache_file" >&6;}
3985 case $cache_file in
3986 [\\/]* | ?:[\\/]* ) . $cache_file;;
3987 *) . ./$cache_file;;
3988 esac
3989 fi
252b5132 3990else
e5a52504
MM
3991 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3992echo "$as_me: creating cache $cache_file" >&6;}
3993 >$cache_file
252b5132
RH
3994fi
3995
3996
3997# This can be used to rebuild libtool when needed
ac48eca1 3998LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
3999
4000# Always use our own libtool.
4001LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4002
4003# Redirect the config.log output again, so that the ltconfig log is not
4004# clobbered by the next message.
4005exec 5>>./config.log
4006
ac48eca1 4007
e5a52504
MM
4008
4009
4010
4011
4012
ac48eca1 4013
8e523c23
NC
4014# Check whether --with-lib-path or --without-lib-path was given.
4015if test "${with_lib_path+set}" = set; then
4016 withval="$with_lib_path"
4017 LIB_PATH=$withval
e5a52504 4018fi;
252b5132
RH
4019# Check whether --enable-targets or --disable-targets was given.
4020if test "${enable_targets+set}" = set; then
4021 enableval="$enable_targets"
4022 case "${enableval}" in
e5a52504
MM
4023 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4024echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4025 { (exit 1); exit 1; }; }
252b5132
RH
4026 ;;
4027 no) enable_targets= ;;
4028 *) enable_targets=$enableval ;;
4029esac
e5a52504 4030fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
252b5132
RH
4031if test "${enable_64_bit_bfd+set}" = set; then
4032 enableval="$enable_64_bit_bfd"
4033 case "${enableval}" in
4034 yes) want64=true ;;
4035 no) want64=false ;;
e5a52504
MM
4036 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4037echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4038 { (exit 1); exit 1; }; } ;;
252b5132
RH
4039esac
4040else
4041 want64=false
e5a52504 4042fi;
252b5132 4043
9c8ebd6a
DJ
4044# Check whether --with-sysroot or --without-sysroot was given.
4045if test "${with_sysroot+set}" = set; then
4046 withval="$with_sysroot"
e5a52504 4047
9c8ebd6a 4048 case ${with_sysroot} in
715d1656 4049 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
9c8ebd6a
DJ
4050 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4051 esac
4052
4053 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4054 use_sysroot=yes
4055
4056 if test "x$exec_prefix" = xNONE; then
4057 if test "x$prefix" = xNONE; then
4058 test_prefix=/usr/local
4059 else
4060 test_prefix=$prefix
4061 fi
4062 else
4063 test_prefix=$exec_prefix
4064 fi
4065 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
4066 "${test_prefix}"|"${test_prefix}/"*|\
4067 '${exec_prefix}'|'${exec_prefix}/'*)
9c8ebd6a
DJ
4068 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4069 TARGET_SYSTEM_ROOT_DEFINE="$t"
4070 ;;
4071 esac
4072
4073else
e5a52504 4074
9c8ebd6a
DJ
4075 use_sysroot=no
4076 TARGET_SYSTEM_ROOT=
4077 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4078
e5a52504 4079fi;
9c8ebd6a
DJ
4080
4081
4082
4083
0218d1e4 4084build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
4085# Check whether --enable-build-warnings or --disable-build-warnings was given.
4086if test "${enable_build_warnings+set}" = set; then
4087 enableval="$enable_build_warnings"
4088 case "${enableval}" in
4089 yes) ;;
4090 no) build_warnings="-w";;
4091 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4092 build_warnings="${build_warnings} ${t}";;
4093 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4094 build_warnings="${t} ${build_warnings}";;
4095 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4096esac
4097if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4098 echo "Setting warning flags = $build_warnings" 6>&1
4099fi
e5a52504 4100fi; WARN_CFLAGS=""
a2d91340
AC
4101if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
4102 WARN_CFLAGS="${build_warnings}"
4103fi
4104
4105
e5a52504
MM
4106 ac_config_headers="$ac_config_headers config.h:config.in"
4107
4108
4109if test -z "$target" ; then
4110 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4111echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4112 { (exit 1); exit 1; }; }
4113fi
4114if test -z "$host" ; then
4115 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4116echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4117 { (exit 1); exit 1; }; }
4118fi
4119
4120# host-specific stuff:
252b5132 4121
e5a52504
MM
4122ac_ext=c
4123ac_cpp='$CPP $CPPFLAGS'
4124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129set dummy ${ac_tool_prefix}gcc; ac_word=$2
4130echo "$as_me:$LINENO: checking for $ac_word" >&5
4131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132if test "${ac_cv_prog_CC+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137else
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141 IFS=$as_save_IFS
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4148 fi
4149done
4150done
252b5132 4151
e5a52504
MM
4152fi
4153fi
4154CC=$ac_cv_prog_CC
4155if test -n "$CC"; then
4156 echo "$as_me:$LINENO: result: $CC" >&5
4157echo "${ECHO_T}$CC" >&6
4158else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161fi
252b5132 4162
e5a52504
MM
4163fi
4164if test -z "$ac_cv_prog_CC"; then
4165 ac_ct_CC=$CC
4166 # Extract the first word of "gcc", so it can be a program name with args.
4167set dummy gcc; ac_word=$2
4168echo "$as_me:$LINENO: checking for $ac_word" >&5
4169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4170if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172else
4173 if test -n "$ac_ct_CC"; then
4174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4175else
4176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4183 ac_cv_prog_ac_ct_CC="gcc"
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188done
252b5132 4189
252b5132 4190fi
e5a52504
MM
4191fi
4192ac_ct_CC=$ac_cv_prog_ac_ct_CC
4193if test -n "$ac_ct_CC"; then
4194 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4195echo "${ECHO_T}$ac_ct_CC" >&6
4196else
4197 echo "$as_me:$LINENO: result: no" >&5
4198echo "${ECHO_T}no" >&6
252b5132
RH
4199fi
4200
e5a52504
MM
4201 CC=$ac_ct_CC
4202else
4203 CC="$ac_cv_prog_CC"
4204fi
252b5132 4205
e5a52504
MM
4206if test -z "$CC"; then
4207 if test -n "$ac_tool_prefix"; then
4208 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4209set dummy ${ac_tool_prefix}cc; ac_word=$2
4210echo "$as_me:$LINENO: checking for $ac_word" >&5
4211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212if test "${ac_cv_prog_CC+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4214else
4215 if test -n "$CC"; then
4216 ac_cv_prog_CC="$CC" # Let the user override the test.
4217else
e5a52504
MM
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225 ac_cv_prog_CC="${ac_tool_prefix}cc"
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4228 fi
4229done
4230done
4231
252b5132
RH
4232fi
4233fi
e5a52504 4234CC=$ac_cv_prog_CC
252b5132 4235if test -n "$CC"; then
e5a52504
MM
4236 echo "$as_me:$LINENO: result: $CC" >&5
4237echo "${ECHO_T}$CC" >&6
4238else
4239 echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241fi
4242
4243fi
4244if test -z "$ac_cv_prog_CC"; then
4245 ac_ct_CC=$CC
4246 # Extract the first word of "cc", so it can be a program name with args.
4247set dummy cc; ac_word=$2
4248echo "$as_me:$LINENO: checking for $ac_word" >&5
4249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4250if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4251 echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253 if test -n "$ac_ct_CC"; then
4254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4255else
4256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH
4258do
4259 IFS=$as_save_IFS
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4263 ac_cv_prog_ac_ct_CC="cc"
4264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265 break 2
4266 fi
4267done
4268done
4269
4270fi
4271fi
4272ac_ct_CC=$ac_cv_prog_ac_ct_CC
4273if test -n "$ac_ct_CC"; then
4274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4275echo "${ECHO_T}$ac_ct_CC" >&6
4276else
4277 echo "$as_me:$LINENO: result: no" >&5
4278echo "${ECHO_T}no" >&6
4279fi
4280
4281 CC=$ac_ct_CC
252b5132 4282else
e5a52504 4283 CC="$ac_cv_prog_CC"
252b5132
RH
4284fi
4285
e5a52504 4286fi
252b5132
RH
4287if test -z "$CC"; then
4288 # Extract the first word of "cc", so it can be a program name with args.
4289set dummy cc; ac_word=$2
e5a52504
MM
4290echo "$as_me:$LINENO: checking for $ac_word" >&5
4291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4292if test "${ac_cv_prog_CC+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4294else
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC="$CC" # Let the user override the test.
4297else
252b5132 4298 ac_prog_rejected=no
e5a52504
MM
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302 IFS=$as_save_IFS
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4307 ac_prog_rejected=yes
4308 continue
4309 fi
4310 ac_cv_prog_CC="cc"
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4313 fi
4314done
4315done
4316
252b5132
RH
4317if test $ac_prog_rejected = yes; then
4318 # We found a bogon in the path, so make sure we never use it.
4319 set dummy $ac_cv_prog_CC
4320 shift
e5a52504 4321 if test $# != 0; then
252b5132
RH
4322 # We chose a different compiler from the bogus one.
4323 # However, it has the same basename, so the bogon will be chosen
4324 # first if we set CC to just the basename; use the full file name.
4325 shift
e5a52504 4326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
4327 fi
4328fi
4329fi
4330fi
e5a52504 4331CC=$ac_cv_prog_CC
252b5132 4332if test -n "$CC"; then
e5a52504
MM
4333 echo "$as_me:$LINENO: result: $CC" >&5
4334echo "${ECHO_T}$CC" >&6
252b5132 4335else
e5a52504
MM
4336 echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
252b5132
RH
4338fi
4339
e5a52504
MM
4340fi
4341if test -z "$CC"; then
4342 if test -n "$ac_tool_prefix"; then
4343 for ac_prog in cl
4344 do
4345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4347echo "$as_me:$LINENO: checking for $ac_word" >&5
4348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4349if test "${ac_cv_prog_CC+set}" = set; then
4350 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4351else
4352 if test -n "$CC"; then
4353 ac_cv_prog_CC="$CC" # Let the user override the test.
4354else
e5a52504
MM
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366done
4367done
4368
252b5132
RH
4369fi
4370fi
e5a52504 4371CC=$ac_cv_prog_CC
252b5132 4372if test -n "$CC"; then
e5a52504
MM
4373 echo "$as_me:$LINENO: result: $CC" >&5
4374echo "${ECHO_T}$CC" >&6
252b5132 4375else
e5a52504
MM
4376 echo "$as_me:$LINENO: result: no" >&5
4377echo "${ECHO_T}no" >&6
252b5132 4378fi
252b5132 4379
e5a52504
MM
4380 test -n "$CC" && break
4381 done
4382fi
4383if test -z "$CC"; then
4384 ac_ct_CC=$CC
4385 for ac_prog in cl
4386do
4387 # Extract the first word of "$ac_prog", so it can be a program name with args.
4388set dummy $ac_prog; ac_word=$2
4389echo "$as_me:$LINENO: checking for $ac_word" >&5
4390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393else
4394 if test -n "$ac_ct_CC"; then
4395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_ac_ct_CC="$ac_prog"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
252b5132 4407 fi
e5a52504
MM
4408done
4409done
4410
4411fi
4412fi
4413ac_ct_CC=$ac_cv_prog_ac_ct_CC
4414if test -n "$ac_ct_CC"; then
4415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4416echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4417else
e5a52504
MM
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
252b5132 4420fi
252b5132 4421
e5a52504
MM
4422 test -n "$ac_ct_CC" && break
4423done
252b5132 4424
e5a52504
MM
4425 CC=$ac_ct_CC
4426fi
4427
4428fi
4429
4430
4431test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4432See \`config.log' for more details." >&5
4433echo "$as_me: error: no acceptable C compiler found in \$PATH
4434See \`config.log' for more details." >&2;}
4435 { (exit 1); exit 1; }; }
4436
4437# Provide some information about the compiler.
4438echo "$as_me:$LINENO:" \
4439 "checking for C compiler version" >&5
4440ac_compiler=`set X $ac_compile; echo $2`
4441{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4442 (eval $ac_compiler --version </dev/null >&5) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }
4446{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4447 (eval $ac_compiler -v </dev/null >&5) 2>&5
4448 ac_status=$?
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }
4451{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4452 (eval $ac_compiler -V </dev/null >&5) 2>&5
4453 ac_status=$?
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); }
4456
4457echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4458echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4459if test "${ac_cv_c_compiler_gnu+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468
4469int
4470main ()
4471{
4472#ifndef __GNUC__
4473 choke me
252b5132 4474#endif
252b5132 4475
e5a52504
MM
4476 ;
4477 return 0;
4478}
4479_ACEOF
4480rm -f conftest.$ac_objext
4481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>conftest.er1
4483 ac_status=$?
4484 grep -v '^ *+' conftest.er1 >conftest.err
4485 rm -f conftest.er1
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } &&
4489 { ac_try='test -z "$ac_c_werror_flag"
4490 || test ! -s conftest.err'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498 (eval $ac_try) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); }; }; then
4502 ac_compiler_gnu=yes
4503else
4504 echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507ac_compiler_gnu=no
4508fi
4509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4510ac_cv_c_compiler_gnu=$ac_compiler_gnu
4511
4512fi
4513echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4514echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4515GCC=`test $ac_compiler_gnu = yes && echo yes`
4516ac_test_CFLAGS=${CFLAGS+set}
4517ac_save_CFLAGS=$CFLAGS
4518CFLAGS="-g"
4519echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4520echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4521if test "${ac_cv_prog_cc_g+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523else
4524 cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h. */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h. */
252b5132 4530
e5a52504
MM
4531int
4532main ()
4533{
252b5132 4534
e5a52504
MM
4535 ;
4536 return 0;
4537}
4538_ACEOF
4539rm -f conftest.$ac_objext
4540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>conftest.er1
4542 ac_status=$?
4543 grep -v '^ *+' conftest.er1 >conftest.err
4544 rm -f conftest.er1
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag"
4549 || test ! -s conftest.err'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557 (eval $ac_try) 2>&5
4558 ac_status=$?
4559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
252b5132
RH
4561 ac_cv_prog_cc_g=yes
4562else
e5a52504
MM
4563 echo "$as_me: failed program was:" >&5
4564sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4565
e5a52504 4566ac_cv_prog_cc_g=no
252b5132 4567fi
e5a52504
MM
4568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569fi
4570echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4571echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 4572if test "$ac_test_CFLAGS" = set; then
e5a52504 4573 CFLAGS=$ac_save_CFLAGS
252b5132
RH
4574elif test $ac_cv_prog_cc_g = yes; then
4575 if test "$GCC" = yes; then
4576 CFLAGS="-g -O2"
4577 else
4578 CFLAGS="-g"
4579 fi
4580else
4581 if test "$GCC" = yes; then
4582 CFLAGS="-O2"
4583 else
4584 CFLAGS=
4585 fi
4586fi
e5a52504
MM
4587echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4588echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4589if test "${ac_cv_prog_cc_stdc+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591else
4592 ac_cv_prog_cc_stdc=no
4593ac_save_CC=$CC
4594cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h. */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h. */
4600#include <stdarg.h>
4601#include <stdio.h>
4602#include <sys/types.h>
4603#include <sys/stat.h>
4604/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4605struct buf { int x; };
4606FILE * (*rcsopen) (struct buf *, struct stat *, int);
4607static char *e (p, i)
4608 char **p;
4609 int i;
4610{
4611 return p[i];
4612}
4613static char *f (char * (*g) (char **, int), char **p, ...)
4614{
4615 char *s;
4616 va_list v;
4617 va_start (v,p);
4618 s = g (p, va_arg (v,int));
4619 va_end (v);
4620 return s;
4621}
4622
4623/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4624 function prototypes and stuff, but not '\xHH' hex character constants.
4625 These don't provoke an error unfortunately, instead are silently treated
4626 as 'x'. The following induces an error, until -std1 is added to get
4627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4628 array size at least. It's necessary to write '\x00'==0 to get something
4629 that's true only with -std1. */
4630int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4631
4632int test (int i, double x);
4633struct s1 {int (*f) (int a);};
4634struct s2 {int (*f) (double a);};
4635int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4636int argc;
4637char **argv;
4638int
4639main ()
4640{
4641return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4642 ;
4643 return 0;
4644}
4645_ACEOF
4646# Don't try gcc -ansi; that turns off useful extensions and
4647# breaks some systems' header files.
4648# AIX -qlanglvl=ansi
4649# Ultrix and OSF/1 -std1
4650# HP-UX 10.20 and later -Ae
4651# HP-UX older versions -Aa -D_HPUX_SOURCE
4652# SVR4 -Xc -D__EXTENSIONS__
4653for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654do
4655 CC="$ac_save_CC $ac_arg"
4656 rm -f conftest.$ac_objext
4657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658 (eval $ac_compile) 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } &&
4665 { ac_try='test -z "$ac_c_werror_flag"
4666 || test ! -s conftest.err'
4667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668 (eval $ac_try) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; } &&
4672 { ac_try='test -s conftest.$ac_objext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 ac_cv_prog_cc_stdc=$ac_arg
4679break
4680else
4681 echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684fi
4685rm -f conftest.err conftest.$ac_objext
4686done
4687rm -f conftest.$ac_ext conftest.$ac_objext
4688CC=$ac_save_CC
4689
4690fi
4691
4692case "x$ac_cv_prog_cc_stdc" in
4693 x|xno)
4694 echo "$as_me:$LINENO: result: none needed" >&5
4695echo "${ECHO_T}none needed" >&6 ;;
4696 *)
4697 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4698echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4699 CC="$CC $ac_cv_prog_cc_stdc" ;;
4700esac
4701
4702# Some people use a C++ compiler to compile C. Since we use `exit',
4703# in C++ we need to declare it. In case someone uses the same compiler
4704# for both compiling C and C++ we need to have the C++ compiler decide
4705# the declaration of exit, since it's the most demanding environment.
4706cat >conftest.$ac_ext <<_ACEOF
4707#ifndef __cplusplus
4708 choke me
4709#endif
4710_ACEOF
4711rm -f conftest.$ac_objext
4712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -z "$ac_c_werror_flag"
4721 || test ! -s conftest.err'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723 (eval $ac_try) 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 for ac_declaration in \
4734 '' \
4735 'extern "C" void std::exit (int) throw (); using std::exit;' \
4736 'extern "C" void std::exit (int); using std::exit;' \
4737 'extern "C" void exit (int) throw ();' \
4738 'extern "C" void exit (int);' \
4739 'void exit (int);'
4740do
4741 cat >conftest.$ac_ext <<_ACEOF
4742/* confdefs.h. */
4743_ACEOF
4744cat confdefs.h >>conftest.$ac_ext
4745cat >>conftest.$ac_ext <<_ACEOF
4746/* end confdefs.h. */
4747$ac_declaration
4748#include <stdlib.h>
4749int
4750main ()
4751{
4752exit (42);
4753 ;
4754 return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext
4758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4759 (eval $ac_compile) 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } &&
4766 { ac_try='test -z "$ac_c_werror_flag"
4767 || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769 (eval $ac_try) 2>&5
4770 ac_status=$?
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775 (eval $ac_try) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 :
4780else
4781 echo "$as_me: failed program was:" >&5
4782sed 's/^/| /' conftest.$ac_ext >&5
4783
4784continue
4785fi
4786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h. */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h. */
4793$ac_declaration
4794int
4795main ()
4796{
4797exit (42);
4798 ;
4799 return 0;
4800}
4801_ACEOF
4802rm -f conftest.$ac_objext
4803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_c_werror_flag"
4812 || test ! -s conftest.err'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; } &&
4818 { ac_try='test -s conftest.$ac_objext'
4819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 (eval $ac_try) 2>&5
4821 ac_status=$?
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); }; }; then
4824 break
4825else
4826 echo "$as_me: failed program was:" >&5
4827sed 's/^/| /' conftest.$ac_ext >&5
4828
4829fi
4830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831done
4832rm -f conftest*
4833if test -n "$ac_declaration"; then
4834 echo '#ifdef __cplusplus' >>confdefs.h
4835 echo $ac_declaration >>confdefs.h
4836 echo '#endif' >>confdefs.h
4837fi
4838
4839else
4840 echo "$as_me: failed program was:" >&5
4841sed 's/^/| /' conftest.$ac_ext >&5
4842
4843fi
4844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4845ac_ext=c
4846ac_cpp='$CPP $CPPFLAGS'
4847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849ac_compiler_gnu=$ac_cv_c_compiler_gnu
252b5132
RH
4850
4851# Find a good install program. We prefer a C program (faster),
4852# so one script is as good as another. But avoid the broken or
4853# incompatible versions:
4854# SysV /etc/install, /usr/sbin/install
4855# SunOS /usr/etc/install
4856# IRIX /sbin/install
4857# AIX /bin/install
e5a52504 4858# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
4859# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4860# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4861# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
e5a52504 4862# OS/2's system install, which has a completely different semantic
252b5132 4863# ./install, which can be erroneously created by make from ./install.sh.
e5a52504
MM
4864echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4865echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 4866if test -z "$INSTALL"; then
e5a52504
MM
4867if test "${ac_cv_path_install+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4869else
e5a52504
MM
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 # Account for people who put trailing slashes in PATH elements.
4876case $as_dir/ in
4877 ./ | .// | /cC/* | \
4878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4879 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4880 /usr/ucb/* ) ;;
4881 *)
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4884 # by default.
4885 for ac_prog in ginstall scoinst install; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 4888 if test $ac_prog = install &&
e5a52504 4889 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
4890 # AIX install. It has an incompatible calling convention.
4891 :
e5a52504
MM
4892 elif test $ac_prog = install &&
4893 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4895 :
252b5132 4896 else
e5a52504
MM
4897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4898 break 3
252b5132
RH
4899 fi
4900 fi
4901 done
e5a52504
MM
4902 done
4903 ;;
4904esac
4905done
4906
252b5132
RH
4907
4908fi
4909 if test "${ac_cv_path_install+set}" = set; then
e5a52504 4910 INSTALL=$ac_cv_path_install
252b5132
RH
4911 else
4912 # As a last resort, use the slow shell script. We don't cache a
4913 # path for INSTALL within a source directory, because that will
4914 # break other packages using the cache if that directory is
4915 # removed, or if the path is relative.
e5a52504 4916 INSTALL=$ac_install_sh
252b5132
RH
4917 fi
4918fi
e5a52504
MM
4919echo "$as_me:$LINENO: result: $INSTALL" >&5
4920echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
4921
4922# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4923# It thinks the first close brace ends the variable substitution.
4924test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4925
e5a52504 4926test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
4927
4928test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4929
4930
cd24c222 4931ALL_LINGUAS="fr sv tr es da"
e5a52504
MM
4932if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4935echo "$as_me:$LINENO: checking for $ac_word" >&5
4936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4937if test "${ac_cv_prog_RANLIB+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954done
4955done
4956
4957fi
4958fi
4959RANLIB=$ac_cv_prog_RANLIB
4960if test -n "$RANLIB"; then
4961 echo "$as_me:$LINENO: result: $RANLIB" >&5
4962echo "${ECHO_T}$RANLIB" >&6
4963else
4964 echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966fi
4967
4968fi
4969if test -z "$ac_cv_prog_RANLIB"; then
4970 ac_ct_RANLIB=$RANLIB
4971 # Extract the first word of "ranlib", so it can be a program name with args.
4972set dummy ranlib; ac_word=$2
4973echo "$as_me:$LINENO: checking for $ac_word" >&5
4974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978 if test -n "$ac_ct_RANLIB"; then
4979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_ac_ct_RANLIB="ranlib"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992done
4993done
4994
4995 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4996fi
4997fi
4998ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4999if test -n "$ac_ct_RANLIB"; then
5000 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5001echo "${ECHO_T}$ac_ct_RANLIB" >&6
5002else
5003 echo "$as_me:$LINENO: result: no" >&5
5004echo "${ECHO_T}no" >&6
5005fi
5006
5007 RANLIB=$ac_ct_RANLIB
5008else
5009 RANLIB="$ac_cv_prog_RANLIB"
5010fi
5011
5012ac_ext=c
5013ac_cpp='$CPP $CPPFLAGS'
5014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5016ac_compiler_gnu=$ac_cv_c_compiler_gnu
5017echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5018echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
252b5132
RH
5019# On Suns, sometimes $CPP names a directory.
5020if test -n "$CPP" && test -d "$CPP"; then
5021 CPP=
5022fi
e5a52504
MM
5023if test -z "$CPP"; then
5024 if test "${ac_cv_prog_CPP+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 # Double quotes because CPP needs to be expanded
5028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5029 do
5030 ac_preproc_ok=false
5031for ac_c_preproc_warn_flag in '' yes
5032do
5033 # Use a header file that comes with gcc, so configuring glibc
5034 # with a fresh cross-compiler works.
5035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5036 # <limits.h> exists even on freestanding compilers.
5037 # On the NeXT, cc -E runs the code through the compiler's parser,
5038 # not just through cpp. "Syntax error" is here to catch this case.
5039 cat >conftest.$ac_ext <<_ACEOF
5040/* confdefs.h. */
5041_ACEOF
5042cat confdefs.h >>conftest.$ac_ext
5043cat >>conftest.$ac_ext <<_ACEOF
5044/* end confdefs.h. */
5045#ifdef __STDC__
5046# include <limits.h>
5047#else
5048# include <assert.h>
5049#endif
5050 Syntax error
5051_ACEOF
5052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null; then
5060 if test -s conftest.err; then
5061 ac_cpp_err=$ac_c_preproc_warn_flag
5062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5063 else
5064 ac_cpp_err=
5065 fi
5066else
5067 ac_cpp_err=yes
5068fi
5069if test -z "$ac_cpp_err"; then
5070 :
5071else
5072 echo "$as_me: failed program was:" >&5
5073sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 # Broken: fails on valid input.
5076continue
5077fi
5078rm -f conftest.err conftest.$ac_ext
5079
5080 # OK, works on sane cases. Now check whether non-existent headers
5081 # can be detected and how.
5082 cat >conftest.$ac_ext <<_ACEOF
5083/* confdefs.h. */
5084_ACEOF
5085cat confdefs.h >>conftest.$ac_ext
5086cat >>conftest.$ac_ext <<_ACEOF
5087/* end confdefs.h. */
5088#include <ac_nonexistent.h>
5089_ACEOF
5090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } >/dev/null; then
5098 if test -s conftest.err; then
5099 ac_cpp_err=$ac_c_preproc_warn_flag
5100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5101 else
5102 ac_cpp_err=
5103 fi
5104else
5105 ac_cpp_err=yes
5106fi
5107if test -z "$ac_cpp_err"; then
5108 # Broken: success on invalid input.
5109continue
5110else
5111 echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 # Passes both tests.
5115ac_preproc_ok=:
5116break
5117fi
5118rm -f conftest.err conftest.$ac_ext
5119
5120done
5121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122rm -f conftest.err conftest.$ac_ext
5123if $ac_preproc_ok; then
5124 break
5125fi
5126
5127 done
5128 ac_cv_prog_CPP=$CPP
5129
5130fi
5131 CPP=$ac_cv_prog_CPP
252b5132 5132else
e5a52504
MM
5133 ac_cv_prog_CPP=$CPP
5134fi
5135echo "$as_me:$LINENO: result: $CPP" >&5
5136echo "${ECHO_T}$CPP" >&6
5137ac_preproc_ok=false
5138for ac_c_preproc_warn_flag in '' yes
5139do
5140 # Use a header file that comes with gcc, so configuring glibc
5141 # with a fresh cross-compiler works.
5142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5143 # <limits.h> exists even on freestanding compilers.
252b5132 5144 # On the NeXT, cc -E runs the code through the compiler's parser,
e5a52504
MM
5145 # not just through cpp. "Syntax error" is here to catch this case.
5146 cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152#ifdef __STDC__
5153# include <limits.h>
5154#else
5155# include <assert.h>
5156#endif
5157 Syntax error
5158_ACEOF
5159if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev/null; then
5167 if test -s conftest.err; then
5168 ac_cpp_err=$ac_c_preproc_warn_flag
5169 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5170 else
5171 ac_cpp_err=
5172 fi
252b5132 5173else
e5a52504
MM
5174 ac_cpp_err=yes
5175fi
5176if test -z "$ac_cpp_err"; then
252b5132
RH
5177 :
5178else
e5a52504
MM
5179 echo "$as_me: failed program was:" >&5
5180sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 # Broken: fails on valid input.
5183continue
5184fi
5185rm -f conftest.err conftest.$ac_ext
5186
5187 # OK, works on sane cases. Now check whether non-existent headers
5188 # can be detected and how.
5189 cat >conftest.$ac_ext <<_ACEOF
5190/* confdefs.h. */
5191_ACEOF
5192cat confdefs.h >>conftest.$ac_ext
5193cat >>conftest.$ac_ext <<_ACEOF
5194/* end confdefs.h. */
5195#include <ac_nonexistent.h>
5196_ACEOF
5197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } >/dev/null; then
5205 if test -s conftest.err; then
5206 ac_cpp_err=$ac_c_preproc_warn_flag
5207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5208 else
5209 ac_cpp_err=
5210 fi
252b5132 5211else
e5a52504 5212 ac_cpp_err=yes
252b5132 5213fi
e5a52504
MM
5214if test -z "$ac_cpp_err"; then
5215 # Broken: success on invalid input.
5216continue
252b5132 5217else
e5a52504
MM
5218 echo "$as_me: failed program was:" >&5
5219sed 's/^/| /' conftest.$ac_ext >&5
5220
5221 # Passes both tests.
5222ac_preproc_ok=:
5223break
252b5132 5224fi
e5a52504 5225rm -f conftest.err conftest.$ac_ext
252b5132 5226
e5a52504
MM
5227done
5228# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5229rm -f conftest.err conftest.$ac_ext
5230if $ac_preproc_ok; then
5231 :
ac48eca1 5232else
e5a52504
MM
5233 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5234See \`config.log' for more details." >&5
5235echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5236See \`config.log' for more details." >&2;}
5237 { (exit 1); exit 1; }; }
ac48eca1 5238fi
e5a52504
MM
5239
5240ac_ext=c
5241ac_cpp='$CPP $CPPFLAGS'
5242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245
5246
5247echo "$as_me:$LINENO: checking for egrep" >&5
5248echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5249if test "${ac_cv_prog_egrep+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 5251else
e5a52504
MM
5252 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5253 then ac_cv_prog_egrep='grep -E'
5254 else ac_cv_prog_egrep='egrep'
5255 fi
ac48eca1 5256fi
e5a52504
MM
5257echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5258echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5259 EGREP=$ac_cv_prog_egrep
ac48eca1 5260
e5a52504
MM
5261
5262echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5263echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5264if test "${ac_cv_header_stdc+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5266else
e5a52504
MM
5267 cat >conftest.$ac_ext <<_ACEOF
5268/* confdefs.h. */
5269_ACEOF
5270cat confdefs.h >>conftest.$ac_ext
5271cat >>conftest.$ac_ext <<_ACEOF
5272/* end confdefs.h. */
252b5132
RH
5273#include <stdlib.h>
5274#include <stdarg.h>
5275#include <string.h>
5276#include <float.h>
e5a52504
MM
5277
5278int
5279main ()
5280{
5281
5282 ;
5283 return 0;
5284}
5285_ACEOF
5286rm -f conftest.$ac_objext
5287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5289 ac_status=$?
5290 grep -v '^ *+' conftest.er1 >conftest.err
5291 rm -f conftest.er1
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag"
5296 || test ! -s conftest.err'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; } &&
5302 { ac_try='test -s conftest.$ac_objext'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
252b5132
RH
5308 ac_cv_header_stdc=yes
5309else
e5a52504
MM
5310 echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313ac_cv_header_stdc=no
252b5132 5314fi
e5a52504 5315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5316
5317if test $ac_cv_header_stdc = yes; then
5318 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
e5a52504
MM
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
252b5132 5325#include <string.h>
e5a52504
MM
5326
5327_ACEOF
252b5132 5328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 5329 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5330 :
5331else
252b5132
RH
5332 ac_cv_header_stdc=no
5333fi
5334rm -f conftest*
5335
5336fi
5337
5338if test $ac_cv_header_stdc = yes; then
5339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
e5a52504
MM
5340 cat >conftest.$ac_ext <<_ACEOF
5341/* confdefs.h. */
5342_ACEOF
5343cat confdefs.h >>conftest.$ac_ext
5344cat >>conftest.$ac_ext <<_ACEOF
5345/* end confdefs.h. */
252b5132 5346#include <stdlib.h>
e5a52504
MM
5347
5348_ACEOF
252b5132 5349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 5350 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5351 :
5352else
252b5132
RH
5353 ac_cv_header_stdc=no
5354fi
5355rm -f conftest*
5356
5357fi
5358
5359if test $ac_cv_header_stdc = yes; then
5360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
e5a52504 5361 if test "$cross_compiling" = yes; then
252b5132
RH
5362 :
5363else
e5a52504
MM
5364 cat >conftest.$ac_ext <<_ACEOF
5365/* confdefs.h. */
5366_ACEOF
5367cat confdefs.h >>conftest.$ac_ext
5368cat >>conftest.$ac_ext <<_ACEOF
5369/* end confdefs.h. */
252b5132 5370#include <ctype.h>
e5a52504
MM
5371#if ((' ' & 0x0FF) == 0x020)
5372# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5373# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5374#else
5375# define ISLOWER(c) \
5376 (('a' <= (c) && (c) <= 'i') \
5377 || ('j' <= (c) && (c) <= 'r') \
5378 || ('s' <= (c) && (c) <= 'z'))
5379# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5380#endif
252b5132 5381
e5a52504
MM
5382#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5383int
5384main ()
5385{
5386 int i;
5387 for (i = 0; i < 256; i++)
5388 if (XOR (islower (i), ISLOWER (i))
5389 || toupper (i) != TOUPPER (i))
5390 exit(2);
5391 exit (0);
5392}
5393_ACEOF
5394rm -f conftest$ac_exeext
5395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5396 (eval $ac_link) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
252b5132
RH
5405 :
5406else
e5a52504
MM
5407 echo "$as_me: program exited with status $ac_status" >&5
5408echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411( exit $ac_status )
5412ac_cv_header_stdc=no
252b5132 5413fi
e5a52504 5414rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5415fi
252b5132
RH
5416fi
5417fi
e5a52504
MM
5418echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5419echo "${ECHO_T}$ac_cv_header_stdc" >&6
252b5132 5420if test $ac_cv_header_stdc = yes; then
e5a52504
MM
5421
5422cat >>confdefs.h <<\_ACEOF
252b5132 5423#define STDC_HEADERS 1
e5a52504 5424_ACEOF
252b5132
RH
5425
5426fi
5427
e5a52504
MM
5428echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5429echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5430if test "${ac_cv_c_const+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433 cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h. */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h. */
252b5132 5439
e5a52504
MM
5440int
5441main ()
5442{
5443/* FIXME: Include the comments suggested by Paul. */
5444#ifndef __cplusplus
5445 /* Ultrix mips cc rejects this. */
5446 typedef int charset[2];
5447 const charset x;
5448 /* SunOS 4.1.1 cc rejects this. */
5449 char const *const *ccp;
5450 char **p;
5451 /* NEC SVR4.0.2 mips cc rejects this. */
5452 struct point {int x, y;};
5453 static struct point const zero = {0,0};
5454 /* AIX XL C 1.02.0.0 rejects this.
5455 It does not let you subtract one const X* pointer from another in
5456 an arm of an if-expression whose if-part is not a constant
5457 expression */
5458 const char *g = "string";
5459 ccp = &g + (g ? g-g : 0);
5460 /* HPUX 7.0 cc rejects these. */
5461 ++ccp;
5462 p = (char**) ccp;
5463 ccp = (char const *const *) p;
5464 { /* SCO 3.2v4 cc rejects this. */
5465 char *t;
5466 char const *s = 0 ? (char *) 0 : (char const *) 0;
5467
5468 *t++ = 0;
5469 }
5470 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5471 int x[] = {25, 17};
5472 const int *foo = &x[0];
5473 ++foo;
5474 }
5475 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5476 typedef const int *iptr;
5477 iptr p = 0;
5478 ++p;
5479 }
5480 { /* AIX XL C 1.02.0.0 rejects this saying
5481 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5482 struct s { int j; const int *ap[3]; };
5483 struct s *b; b->j = 5;
5484 }
5485 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5486 const int foo = 10;
5487 }
5488#endif
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496 (eval $ac_compile) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest.$ac_objext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
252b5132
RH
5516 ac_cv_c_const=yes
5517else
e5a52504
MM
5518 echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521ac_cv_c_const=no
252b5132 5522fi
e5a52504 5523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5524fi
e5a52504
MM
5525echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5526echo "${ECHO_T}$ac_cv_c_const" >&6
252b5132 5527if test $ac_cv_c_const = no; then
e5a52504
MM
5528
5529cat >>confdefs.h <<\_ACEOF
5530#define const
5531_ACEOF
252b5132
RH
5532
5533fi
5534
e5a52504
MM
5535echo "$as_me:$LINENO: checking for inline" >&5
5536echo $ECHO_N "checking for inline... $ECHO_C" >&6
5537if test "${ac_cv_c_inline+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5539else
5540 ac_cv_c_inline=no
5541for ac_kw in inline __inline__ __inline; do
e5a52504
MM
5542 cat >conftest.$ac_ext <<_ACEOF
5543/* confdefs.h. */
5544_ACEOF
5545cat confdefs.h >>conftest.$ac_ext
5546cat >>conftest.$ac_ext <<_ACEOF
5547/* end confdefs.h. */
5548#ifndef __cplusplus
5549typedef int foo_t;
5550static $ac_kw foo_t static_foo () {return 0; }
5551$ac_kw foo_t foo () {return 0; }
5552#endif
252b5132 5553
e5a52504
MM
5554_ACEOF
5555rm -f conftest.$ac_objext
5556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557 (eval $ac_compile) 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } &&
5564 { ac_try='test -z "$ac_c_werror_flag"
5565 || test ! -s conftest.err'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567 (eval $ac_try) 2>&5
5568 ac_status=$?
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; } &&
5571 { ac_try='test -s conftest.$ac_objext'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; }; then
252b5132
RH
5577 ac_cv_c_inline=$ac_kw; break
5578else
e5a52504
MM
5579 echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
252b5132 5582fi
e5a52504 5583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5584done
5585
5586fi
e5a52504
MM
5587echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5588echo "${ECHO_T}$ac_cv_c_inline" >&6
5589
252b5132 5590
e5a52504 5591case $ac_cv_c_inline in
252b5132 5592 inline | yes) ;;
e5a52504
MM
5593 *)
5594 case $ac_cv_c_inline in
5595 no) ac_val=;;
5596 *) ac_val=$ac_cv_c_inline;;
5597 esac
5598 cat >>confdefs.h <<_ACEOF
5599#ifndef __cplusplus
5600#define inline $ac_val
5601#endif
5602_ACEOF
5603 ;;
252b5132
RH
5604esac
5605
e5a52504
MM
5606# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5617 inttypes.h stdint.h unistd.h
5618do
5619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5620echo "$as_me:$LINENO: checking for $ac_header" >&5
5621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5622if eval "test \"\${$as_ac_Header+set}\" = set"; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 cat >conftest.$ac_ext <<_ACEOF
5626/* confdefs.h. */
5627_ACEOF
5628cat confdefs.h >>conftest.$ac_ext
5629cat >>conftest.$ac_ext <<_ACEOF
5630/* end confdefs.h. */
5631$ac_includes_default
5632
5633#include <$ac_header>
5634_ACEOF
5635rm -f conftest.$ac_objext
5636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5637 (eval $ac_compile) 2>conftest.er1
5638 ac_status=$?
5639 grep -v '^ *+' conftest.er1 >conftest.err
5640 rm -f conftest.er1
5641 cat conftest.err >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -z "$ac_c_werror_flag"
5645 || test ! -s conftest.err'
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); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653 (eval $ac_try) 2>&5
5654 ac_status=$?
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656 (exit $ac_status); }; }; then
5657 eval "$as_ac_Header=yes"
5658else
5659 echo "$as_me: failed program was:" >&5
5660sed 's/^/| /' conftest.$ac_ext >&5
5661
5662eval "$as_ac_Header=no"
5663fi
5664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5665fi
5666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5668if test `eval echo '${'$as_ac_Header'}'` = yes; then
5669 cat >>confdefs.h <<_ACEOF
5670#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5671_ACEOF
5672
5673fi
5674
5675done
5676
5677
5678echo "$as_me:$LINENO: checking for off_t" >&5
5679echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5680if test "${ac_cv_type_off_t+set}" = set; then
5681 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5682else
e5a52504
MM
5683 cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689$ac_includes_default
5690int
5691main ()
5692{
5693if ((off_t *) 0)
5694 return 0;
5695if (sizeof (off_t))
5696 return 0;
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5703 (eval $ac_compile) 2>conftest.er1
5704 ac_status=$?
5705 grep -v '^ *+' conftest.er1 >conftest.err
5706 rm -f conftest.er1
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -z "$ac_c_werror_flag"
5711 || test ! -s conftest.err'
5712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; } &&
5717 { ac_try='test -s conftest.$ac_objext'
5718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719 (eval $ac_try) 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; }; then
a2d91340 5723 ac_cv_type_off_t=yes
252b5132 5724else
e5a52504
MM
5725 echo "$as_me: failed program was:" >&5
5726sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5727
e5a52504 5728ac_cv_type_off_t=no
252b5132 5729fi
e5a52504
MM
5730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5731fi
5732echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5733echo "${ECHO_T}$ac_cv_type_off_t" >&6
5734if test $ac_cv_type_off_t = yes; then
5735 :
5736else
5737
5738cat >>confdefs.h <<_ACEOF
252b5132 5739#define off_t long
e5a52504 5740_ACEOF
252b5132
RH
5741
5742fi
5743
e5a52504
MM
5744echo "$as_me:$LINENO: checking for size_t" >&5
5745echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5746if test "${ac_cv_type_size_t+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5748else
e5a52504
MM
5749 cat >conftest.$ac_ext <<_ACEOF
5750/* confdefs.h. */
5751_ACEOF
5752cat confdefs.h >>conftest.$ac_ext
5753cat >>conftest.$ac_ext <<_ACEOF
5754/* end confdefs.h. */
5755$ac_includes_default
5756int
5757main ()
5758{
5759if ((size_t *) 0)
5760 return 0;
5761if (sizeof (size_t))
5762 return 0;
5763 ;
5764 return 0;
5765}
5766_ACEOF
5767rm -f conftest.$ac_objext
5768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769 (eval $ac_compile) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag"
5777 || test ! -s conftest.err'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
a2d91340 5789 ac_cv_type_size_t=yes
252b5132 5790else
e5a52504
MM
5791 echo "$as_me: failed program was:" >&5
5792sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5793
e5a52504
MM
5794ac_cv_type_size_t=no
5795fi
5796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5797fi
e5a52504
MM
5798echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5799echo "${ECHO_T}$ac_cv_type_size_t" >&6
5800if test $ac_cv_type_size_t = yes; then
5801 :
5802else
5803
5804cat >>confdefs.h <<_ACEOF
252b5132 5805#define size_t unsigned
e5a52504 5806_ACEOF
252b5132
RH
5807
5808fi
5809
5810# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5811# for constant arguments. Useless!
e5a52504
MM
5812echo "$as_me:$LINENO: checking for working alloca.h" >&5
5813echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5814if test "${ac_cv_working_alloca_h+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h. */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h. */
252b5132 5823#include <alloca.h>
e5a52504
MM
5824int
5825main ()
5826{
5827char *p = (char *) alloca (2 * sizeof (int));
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832rm -f conftest.$ac_objext conftest$ac_exeext
5833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5834 (eval $ac_link) 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } &&
5841 { ac_try='test -z "$ac_c_werror_flag"
5842 || test ! -s conftest.err'
5843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844 (eval $ac_try) 2>&5
5845 ac_status=$?
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; } &&
5848 { ac_try='test -s conftest$ac_exeext'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 ac_cv_working_alloca_h=yes
5855else
5856 echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859ac_cv_working_alloca_h=no
5860fi
5861rm -f conftest.err conftest.$ac_objext \
5862 conftest$ac_exeext conftest.$ac_ext
5863fi
5864echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5865echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5866if test $ac_cv_working_alloca_h = yes; then
5867
5868cat >>confdefs.h <<\_ACEOF
252b5132 5869#define HAVE_ALLOCA_H 1
e5a52504 5870_ACEOF
252b5132
RH
5871
5872fi
5873
e5a52504
MM
5874echo "$as_me:$LINENO: checking for alloca" >&5
5875echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5876if test "${ac_cv_func_alloca_works+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5878else
e5a52504
MM
5879 cat >conftest.$ac_ext <<_ACEOF
5880/* confdefs.h. */
5881_ACEOF
5882cat confdefs.h >>conftest.$ac_ext
5883cat >>conftest.$ac_ext <<_ACEOF
5884/* end confdefs.h. */
252b5132
RH
5885#ifdef __GNUC__
5886# define alloca __builtin_alloca
5887#else
5888# ifdef _MSC_VER
5889# include <malloc.h>
5890# define alloca _alloca
5891# else
5892# if HAVE_ALLOCA_H
5893# include <alloca.h>
5894# else
5895# ifdef _AIX
5896 #pragma alloca
5897# else
5898# ifndef alloca /* predefined by HP cc +Olibcalls */
5899char *alloca ();
5900# endif
5901# endif
5902# endif
5903# endif
5904#endif
5905
e5a52504
MM
5906int
5907main ()
5908{
5909char *p = (char *) alloca (1);
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914rm -f conftest.$ac_objext conftest$ac_exeext
5915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } &&
5923 { ac_try='test -z "$ac_c_werror_flag"
5924 || test ! -s conftest.err'
5925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926 (eval $ac_try) 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932 (eval $ac_try) 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
252b5132
RH
5936 ac_cv_func_alloca_works=yes
5937else
e5a52504
MM
5938 echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941ac_cv_func_alloca_works=no
252b5132 5942fi
e5a52504
MM
5943rm -f conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext conftest.$ac_ext
252b5132 5945fi
e5a52504
MM
5946echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5947echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 5948
252b5132 5949if test $ac_cv_func_alloca_works = yes; then
252b5132 5950
e5a52504
MM
5951cat >>confdefs.h <<\_ACEOF
5952#define HAVE_ALLOCA 1
5953_ACEOF
252b5132 5954
e5a52504 5955else
252b5132 5956 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
e5a52504
MM
5957# that cause trouble. Some versions do not even contain alloca or
5958# contain a buggy version. If you still want to use their alloca,
5959# use ar to extract alloca.o from them instead of compiling alloca.c.
5960
5961ALLOCA=alloca.$ac_objext
5962
5963cat >>confdefs.h <<\_ACEOF
252b5132 5964#define C_ALLOCA 1
e5a52504 5965_ACEOF
252b5132
RH
5966
5967
e5a52504
MM
5968echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5969echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5970if test "${ac_cv_os_cray+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5972else
e5a52504
MM
5973 cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h. */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h. */
252b5132
RH
5979#if defined(CRAY) && ! defined(CRAY2)
5980webecray
5981#else
5982wenotbecray
5983#endif
5984
e5a52504 5985_ACEOF
252b5132 5986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 5987 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
5988 ac_cv_os_cray=yes
5989else
252b5132
RH
5990 ac_cv_os_cray=no
5991fi
5992rm -f conftest*
5993
5994fi
e5a52504
MM
5995echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5996echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 5997if test $ac_cv_os_cray = yes; then
e5a52504
MM
5998 for ac_func in _getb67 GETB67 getb67; do
5999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6000echo "$as_me:$LINENO: checking for $ac_func" >&5
6001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6002if eval "test \"\${$as_ac_var+set}\" = set"; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005 cat >conftest.$ac_ext <<_ACEOF
6006/* confdefs.h. */
6007_ACEOF
6008cat confdefs.h >>conftest.$ac_ext
6009cat >>conftest.$ac_ext <<_ACEOF
6010/* end confdefs.h. */
6011/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6013#define $ac_func innocuous_$ac_func
6014
252b5132 6015/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6016 which can conflict with char $ac_func (); below.
6017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6018 <limits.h> exists even on freestanding compilers. */
252b5132 6019
e5a52504
MM
6020#ifdef __STDC__
6021# include <limits.h>
6022#else
6023# include <assert.h>
6024#endif
252b5132 6025
e5a52504
MM
6026#undef $ac_func
6027
6028/* Override any gcc2 internal prototype to avoid an error. */
6029#ifdef __cplusplus
6030extern "C"
6031{
6032#endif
6033/* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6035char $ac_func ();
252b5132
RH
6036/* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6040choke me
6041#else
e5a52504
MM
6042char (*f) () = $ac_func;
6043#endif
6044#ifdef __cplusplus
6045}
252b5132
RH
6046#endif
6047
e5a52504
MM
6048int
6049main ()
6050{
6051return f != $ac_func;
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest$ac_exeext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 eval "$as_ac_var=yes"
6079else
6080 echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5
6082
6083eval "$as_ac_var=no"
6084fi
6085rm -f conftest.err conftest.$ac_objext \
6086 conftest$ac_exeext conftest.$ac_ext
6087fi
6088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6090if test `eval echo '${'$as_ac_var'}'` = yes; then
6091
6092cat >>confdefs.h <<_ACEOF
252b5132 6093#define CRAY_STACKSEG_END $ac_func
e5a52504 6094_ACEOF
252b5132 6095
e5a52504 6096 break
252b5132
RH
6097fi
6098
e5a52504 6099 done
252b5132
RH
6100fi
6101
e5a52504
MM
6102echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6103echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6104if test "${ac_cv_c_stack_direction+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6106else
6107 if test "$cross_compiling" = yes; then
6108 ac_cv_c_stack_direction=0
6109else
e5a52504
MM
6110 cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h. */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h. */
6116int
252b5132
RH
6117find_stack_direction ()
6118{
6119 static char *addr = 0;
6120 auto char dummy;
6121 if (addr == 0)
6122 {
6123 addr = &dummy;
6124 return find_stack_direction ();
6125 }
6126 else
6127 return (&dummy > addr) ? 1 : -1;
6128}
e5a52504
MM
6129
6130int
252b5132
RH
6131main ()
6132{
e5a52504 6133 exit (find_stack_direction () < 0);
252b5132 6134}
e5a52504
MM
6135_ACEOF
6136rm -f conftest$ac_exeext
6137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
252b5132
RH
6147 ac_cv_c_stack_direction=1
6148else
e5a52504
MM
6149 echo "$as_me: program exited with status $ac_status" >&5
6150echo "$as_me: failed program was:" >&5
6151sed 's/^/| /' conftest.$ac_ext >&5
6152
6153( exit $ac_status )
6154ac_cv_c_stack_direction=-1
252b5132 6155fi
e5a52504 6156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6157fi
252b5132 6158fi
e5a52504
MM
6159echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6160echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6161
e5a52504 6162cat >>confdefs.h <<_ACEOF
252b5132 6163#define STACK_DIRECTION $ac_cv_c_stack_direction
e5a52504
MM
6164_ACEOF
6165
6166
6167fi
6168
6169
6170
6171for ac_header in stdlib.h unistd.h
6172do
6173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6174if eval "test \"\${$as_ac_Header+set}\" = set"; then
6175 echo "$as_me:$LINENO: checking for $ac_header" >&5
6176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6177if eval "test \"\${$as_ac_Header+set}\" = set"; then
6178 echo $ECHO_N "(cached) $ECHO_C" >&6
6179fi
6180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6182else
6183 # Is the header compilable?
6184echo "$as_me:$LINENO: checking $ac_header usability" >&5
6185echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6186cat >conftest.$ac_ext <<_ACEOF
6187/* confdefs.h. */
6188_ACEOF
6189cat confdefs.h >>conftest.$ac_ext
6190cat >>conftest.$ac_ext <<_ACEOF
6191/* end confdefs.h. */
6192$ac_includes_default
6193#include <$ac_header>
6194_ACEOF
6195rm -f conftest.$ac_objext
6196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6197 (eval $ac_compile) 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest.$ac_objext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 ac_header_compiler=yes
6218else
6219 echo "$as_me: failed program was:" >&5
6220sed 's/^/| /' conftest.$ac_ext >&5
6221
6222ac_header_compiler=no
6223fi
6224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6225echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6226echo "${ECHO_T}$ac_header_compiler" >&6
6227
6228# Is the header present?
6229echo "$as_me:$LINENO: checking $ac_header presence" >&5
6230echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6231cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237#include <$ac_header>
6238_ACEOF
6239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } >/dev/null; then
6247 if test -s conftest.err; then
6248 ac_cpp_err=$ac_c_preproc_warn_flag
6249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6250 else
6251 ac_cpp_err=
6252 fi
6253else
6254 ac_cpp_err=yes
6255fi
6256if test -z "$ac_cpp_err"; then
6257 ac_header_preproc=yes
6258else
6259 echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
252b5132 6261
e5a52504 6262 ac_header_preproc=no
252b5132 6263fi
e5a52504
MM
6264rm -f conftest.err conftest.$ac_ext
6265echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6266echo "${ECHO_T}$ac_header_preproc" >&6
252b5132 6267
e5a52504
MM
6268# So? What about this header?
6269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6270 yes:no: )
6271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6275 ac_header_preproc=yes
6276 ;;
6277 no:yes:* )
6278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6290 (
6291 cat <<\_ASBOX
6292## ------------------------------------------ ##
6293## Report this to the AC_PACKAGE_NAME lists. ##
6294## ------------------------------------------ ##
6295_ASBOX
6296 ) |
6297 sed "s/^/$as_me: WARNING: /" >&2
6298 ;;
6299esac
6300echo "$as_me:$LINENO: checking for $ac_header" >&5
6301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6304else
e5a52504 6305 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 6306fi
e5a52504
MM
6307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6309
252b5132 6310fi
e5a52504
MM
6311if test `eval echo '${'$as_ac_Header'}'` = yes; then
6312 cat >>confdefs.h <<_ACEOF
6313#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6314_ACEOF
6315
252b5132 6316fi
e5a52504 6317
252b5132
RH
6318done
6319
e5a52504 6320
252b5132
RH
6321for ac_func in getpagesize
6322do
e5a52504
MM
6323as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6324echo "$as_me:$LINENO: checking for $ac_func" >&5
6325echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6326if eval "test \"\${$as_ac_var+set}\" = set"; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329 cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h. */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h. */
6335/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6337#define $ac_func innocuous_$ac_func
6338
252b5132 6339/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6340 which can conflict with char $ac_func (); below.
6341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6342 <limits.h> exists even on freestanding compilers. */
6343
6344#ifdef __STDC__
6345# include <limits.h>
6346#else
6347# include <assert.h>
6348#endif
252b5132 6349
e5a52504 6350#undef $ac_func
252b5132 6351
e5a52504
MM
6352/* Override any gcc2 internal prototype to avoid an error. */
6353#ifdef __cplusplus
6354extern "C"
6355{
6356#endif
6357/* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6359char $ac_func ();
252b5132
RH
6360/* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6364choke me
6365#else
e5a52504
MM
6366char (*f) () = $ac_func;
6367#endif
6368#ifdef __cplusplus
6369}
252b5132
RH
6370#endif
6371
e5a52504
MM
6372int
6373main ()
6374{
6375return f != $ac_func;
6376 ;
6377 return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext conftest$ac_exeext
6381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382 (eval $ac_link) 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } &&
6389 { ac_try='test -z "$ac_c_werror_flag"
6390 || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest$ac_exeext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 eval "$as_ac_var=yes"
6403else
6404 echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407eval "$as_ac_var=no"
6408fi
6409rm -f conftest.err conftest.$ac_objext \
6410 conftest$ac_exeext conftest.$ac_ext
6411fi
6412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6414if test `eval echo '${'$as_ac_var'}'` = yes; then
6415 cat >>confdefs.h <<_ACEOF
6416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6417_ACEOF
252b5132 6418
252b5132
RH
6419fi
6420done
6421
e5a52504
MM
6422echo "$as_me:$LINENO: checking for working mmap" >&5
6423echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6424if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6426else
6427 if test "$cross_compiling" = yes; then
6428 ac_cv_func_mmap_fixed_mapped=no
6429else
e5a52504
MM
6430 cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h. */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h. */
6436$ac_includes_default
6437/* malloc might have been renamed as rpl_malloc. */
6438#undef malloc
252b5132
RH
6439
6440/* Thanks to Mike Haertel and Jim Avera for this test.
6441 Here is a matrix of mmap possibilities:
6442 mmap private not fixed
6443 mmap private fixed at somewhere currently unmapped
6444 mmap private fixed at somewhere already mapped
6445 mmap shared not fixed
6446 mmap shared fixed at somewhere currently unmapped
6447 mmap shared fixed at somewhere already mapped
6448 For private mappings, we should verify that changes cannot be read()
6449 back from the file, nor mmap's back from the file at a different
6450 address. (There have been systems where private was not correctly
6451 implemented like the infamous i386 svr4.0, and systems where the
e5a52504 6452 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6453 like early versions of FreeBSD and possibly contemporary NetBSD.)
6454 For shared mappings, we should conversely verify that changes get
e5a52504 6455 propagated back to all the places they're supposed to be.
252b5132
RH
6456
6457 Grep wants private fixed already mapped.
6458 The main things grep needs to know about mmap are:
6459 * does it exist and is it safe to write into the mmap'd area
6460 * how to use it (BSD variants) */
e5a52504 6461
252b5132
RH
6462#include <fcntl.h>
6463#include <sys/mman.h>
6464
e5a52504
MM
6465#if !STDC_HEADERS && !HAVE_STDLIB_H
6466char *malloc ();
6467#endif
252b5132 6468
e5a52504
MM
6469/* This mess was copied from the GNU getpagesize.h. */
6470#if !HAVE_GETPAGESIZE
252b5132 6471/* Assume that all systems that can run configure have sys/param.h. */
e5a52504 6472# if !HAVE_SYS_PARAM_H
252b5132
RH
6473# define HAVE_SYS_PARAM_H 1
6474# endif
6475
6476# ifdef _SC_PAGESIZE
6477# define getpagesize() sysconf(_SC_PAGESIZE)
6478# else /* no _SC_PAGESIZE */
e5a52504 6479# if HAVE_SYS_PARAM_H
252b5132
RH
6480# include <sys/param.h>
6481# ifdef EXEC_PAGESIZE
6482# define getpagesize() EXEC_PAGESIZE
6483# else /* no EXEC_PAGESIZE */
6484# ifdef NBPG
6485# define getpagesize() NBPG * CLSIZE
6486# ifndef CLSIZE
6487# define CLSIZE 1
6488# endif /* no CLSIZE */
6489# else /* no NBPG */
6490# ifdef NBPC
6491# define getpagesize() NBPC
6492# else /* no NBPC */
6493# ifdef PAGESIZE
6494# define getpagesize() PAGESIZE
6495# endif /* PAGESIZE */
6496# endif /* no NBPC */
6497# endif /* no NBPG */
6498# endif /* no EXEC_PAGESIZE */
6499# else /* no HAVE_SYS_PARAM_H */
6500# define getpagesize() 8192 /* punt totally */
6501# endif /* no HAVE_SYS_PARAM_H */
6502# endif /* no _SC_PAGESIZE */
6503
6504#endif /* no HAVE_GETPAGESIZE */
6505
252b5132 6506int
e5a52504 6507main ()
252b5132 6508{
e5a52504
MM
6509 char *data, *data2, *data3;
6510 int i, pagesize;
6511 int fd;
6512
6513 pagesize = getpagesize ();
6514
6515 /* First, make a file with some known garbage in it. */
6516 data = (char *) malloc (pagesize);
6517 if (!data)
6518 exit (1);
6519 for (i = 0; i < pagesize; ++i)
6520 *(data + i) = rand ();
6521 umask (0);
6522 fd = creat ("conftest.mmap", 0600);
6523 if (fd < 0)
6524 exit (1);
6525 if (write (fd, data, pagesize) != pagesize)
6526 exit (1);
6527 close (fd);
6528
6529 /* Next, try to mmap the file at a fixed address which already has
6530 something else allocated at it. If we can, also make sure that
6531 we see the same garbage. */
6532 fd = open ("conftest.mmap", O_RDWR);
6533 if (fd < 0)
6534 exit (1);
6535 data2 = (char *) malloc (2 * pagesize);
6536 if (!data2)
6537 exit (1);
6538 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6539 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6540 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6541 exit (1);
6542 for (i = 0; i < pagesize; ++i)
6543 if (*(data + i) != *(data2 + i))
6544 exit (1);
6545
6546 /* Finally, make sure that changes to the mapped area do not
6547 percolate back to the file as seen by read(). (This is a bug on
6548 some variants of i386 svr4.0.) */
6549 for (i = 0; i < pagesize; ++i)
6550 *(data2 + i) = *(data2 + i) + 1;
6551 data3 = (char *) malloc (pagesize);
6552 if (!data3)
6553 exit (1);
6554 if (read (fd, data3, pagesize) != pagesize)
6555 exit (1);
6556 for (i = 0; i < pagesize; ++i)
6557 if (*(data + i) != *(data3 + i))
6558 exit (1);
6559 close (fd);
6560 exit (0);
252b5132 6561}
e5a52504
MM
6562_ACEOF
6563rm -f conftest$ac_exeext
6564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565 (eval $ac_link) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
252b5132
RH
6574 ac_cv_func_mmap_fixed_mapped=yes
6575else
e5a52504
MM
6576 echo "$as_me: program exited with status $ac_status" >&5
6577echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580( exit $ac_status )
6581ac_cv_func_mmap_fixed_mapped=no
252b5132 6582fi
e5a52504 6583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6584fi
252b5132 6585fi
e5a52504
MM
6586echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6587echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 6588if test $ac_cv_func_mmap_fixed_mapped = yes; then
e5a52504
MM
6589
6590cat >>confdefs.h <<\_ACEOF
252b5132 6591#define HAVE_MMAP 1
e5a52504 6592_ACEOF
252b5132
RH
6593
6594fi
e5a52504
MM
6595rm -f conftest.mmap
6596
252b5132 6597
e5a52504
MM
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6608unistd.h values.h sys/param.h
6609do
e5a52504
MM
6610as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612 echo "$as_me:$LINENO: checking for $ac_header" >&5
6613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6614if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616fi
6617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6619else
6620 # Is the header compilable?
6621echo "$as_me:$LINENO: checking $ac_header usability" >&5
6622echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6623cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h. */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
6628/* end confdefs.h. */
6629$ac_includes_default
6630#include <$ac_header>
6631_ACEOF
6632rm -f conftest.$ac_objext
6633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -z "$ac_c_werror_flag"
6642 || test ! -s conftest.err'
6643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 (eval $ac_try) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); }; } &&
6648 { ac_try='test -s conftest.$ac_objext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_header_compiler=yes
6655else
6656 echo "$as_me: failed program was:" >&5
6657sed 's/^/| /' conftest.$ac_ext >&5
6658
6659ac_header_compiler=no
6660fi
6661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6663echo "${ECHO_T}$ac_header_compiler" >&6
6664
6665# Is the header present?
6666echo "$as_me:$LINENO: checking $ac_header presence" >&5
6667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6668cat >conftest.$ac_ext <<_ACEOF
6669/* confdefs.h. */
6670_ACEOF
6671cat confdefs.h >>conftest.$ac_ext
6672cat >>conftest.$ac_ext <<_ACEOF
6673/* end confdefs.h. */
6674#include <$ac_header>
6675_ACEOF
6676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } >/dev/null; then
6684 if test -s conftest.err; then
6685 ac_cpp_err=$ac_c_preproc_warn_flag
6686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6687 else
6688 ac_cpp_err=
6689 fi
252b5132 6690else
e5a52504 6691 ac_cpp_err=yes
252b5132 6692fi
e5a52504
MM
6693if test -z "$ac_cpp_err"; then
6694 ac_header_preproc=yes
6695else
6696 echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699 ac_header_preproc=no
252b5132 6700fi
e5a52504
MM
6701rm -f conftest.err conftest.$ac_ext
6702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6703echo "${ECHO_T}$ac_header_preproc" >&6
6704
6705# So? What about this header?
6706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6707 yes:no: )
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6712 ac_header_preproc=yes
6713 ;;
6714 no:yes:* )
6715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6718echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6722echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6727 (
6728 cat <<\_ASBOX
6729## ------------------------------------------ ##
6730## Report this to the AC_PACKAGE_NAME lists. ##
6731## ------------------------------------------ ##
6732_ASBOX
6733 ) |
6734 sed "s/^/$as_me: WARNING: /" >&2
6735 ;;
6736esac
6737echo "$as_me:$LINENO: checking for $ac_header" >&5
6738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6739if eval "test \"\${$as_ac_Header+set}\" = set"; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6741else
e5a52504
MM
6742 eval "$as_ac_Header=\$ac_header_preproc"
6743fi
6744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6745echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6746
6747fi
6748if test `eval echo '${'$as_ac_Header'}'` = yes; then
6749 cat >>confdefs.h <<_ACEOF
6750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6751_ACEOF
6752
252b5132 6753fi
e5a52504 6754
252b5132
RH
6755done
6756
e5a52504
MM
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6768__argz_count __argz_stringify __argz_next
6769do
e5a52504
MM
6770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6771echo "$as_me:$LINENO: checking for $ac_func" >&5
6772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6773if eval "test \"\${$as_ac_var+set}\" = set"; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6784#define $ac_func innocuous_$ac_func
6785
252b5132 6786/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6787 which can conflict with char $ac_func (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. */
6790
6791#ifdef __STDC__
6792# include <limits.h>
6793#else
6794# include <assert.h>
6795#endif
252b5132 6796
e5a52504 6797#undef $ac_func
252b5132 6798
e5a52504
MM
6799/* Override any gcc2 internal prototype to avoid an error. */
6800#ifdef __cplusplus
6801extern "C"
6802{
6803#endif
6804/* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6806char $ac_func ();
252b5132
RH
6807/* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811choke me
6812#else
e5a52504
MM
6813char (*f) () = $ac_func;
6814#endif
6815#ifdef __cplusplus
6816}
252b5132
RH
6817#endif
6818
e5a52504
MM
6819int
6820main ()
6821{
6822return f != $ac_func;
6823 ;
6824 return 0;
6825}
6826_ACEOF
6827rm -f conftest.$ac_objext conftest$ac_exeext
6828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 eval "$as_ac_var=yes"
6850else
6851 echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
6853
6854eval "$as_ac_var=no"
6855fi
6856rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858fi
6859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6861if test `eval echo '${'$as_ac_var'}'` = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6864_ACEOF
252b5132 6865
252b5132
RH
6866fi
6867done
6868
6869
6870 if test "${ac_cv_func_stpcpy+set}" != "set"; then
e5a52504
MM
6871
6872for ac_func in stpcpy
252b5132 6873do
e5a52504
MM
6874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6875echo "$as_me:$LINENO: checking for $ac_func" >&5
6876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6877if eval "test \"\${$as_ac_var+set}\" = set"; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6888#define $ac_func innocuous_$ac_func
6889
252b5132 6890/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6891 which can conflict with char $ac_func (); below.
6892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6893 <limits.h> exists even on freestanding compilers. */
6894
6895#ifdef __STDC__
6896# include <limits.h>
6897#else
6898# include <assert.h>
6899#endif
252b5132 6900
e5a52504 6901#undef $ac_func
252b5132 6902
e5a52504
MM
6903/* Override any gcc2 internal prototype to avoid an error. */
6904#ifdef __cplusplus
6905extern "C"
6906{
6907#endif
6908/* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6910char $ac_func ();
252b5132
RH
6911/* The GNU C library defines this for functions which it implements
6912 to always fail with ENOSYS. Some functions are actually named
6913 something starting with __ and the normal name is an alias. */
6914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6915choke me
6916#else
e5a52504
MM
6917char (*f) () = $ac_func;
6918#endif
6919#ifdef __cplusplus
6920}
252b5132
RH
6921#endif
6922
e5a52504
MM
6923int
6924main ()
6925{
6926return f != $ac_func;
6927 ;
6928 return 0;
6929}
6930_ACEOF
6931rm -f conftest.$ac_objext conftest$ac_exeext
6932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943 (eval $ac_try) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 eval "$as_ac_var=yes"
6954else
6955 echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958eval "$as_ac_var=no"
6959fi
6960rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962fi
6963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6965if test `eval echo '${'$as_ac_var'}'` = yes; then
6966 cat >>confdefs.h <<_ACEOF
6967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6968_ACEOF
252b5132 6969
252b5132
RH
6970fi
6971done
6972
6973 fi
6974 if test "${ac_cv_func_stpcpy}" = "yes"; then
e5a52504
MM
6975
6976cat >>confdefs.h <<\_ACEOF
252b5132 6977#define HAVE_STPCPY 1
e5a52504 6978_ACEOF
252b5132
RH
6979
6980 fi
6981
6982 if test $ac_cv_header_locale_h = yes; then
e5a52504
MM
6983 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6984echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6985if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
252b5132 6994#include <locale.h>
e5a52504
MM
6995int
6996main ()
6997{
252b5132 6998return LC_MESSAGES
e5a52504
MM
6999 ;
7000 return 0;
7001}
7002_ACEOF
7003rm -f conftest.$ac_objext conftest$ac_exeext
7004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>conftest.er1
7006 ac_status=$?
7007 grep -v '^ *+' conftest.er1 >conftest.err
7008 rm -f conftest.er1
7009 cat conftest.err >&5
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } &&
7012 { ac_try='test -z "$ac_c_werror_flag"
7013 || test ! -s conftest.err'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 (eval $ac_try) 2>&5
7016 ac_status=$?
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; } &&
7019 { ac_try='test -s conftest$ac_exeext'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; }; then
252b5132
RH
7025 am_cv_val_LC_MESSAGES=yes
7026else
e5a52504
MM
7027 echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030am_cv_val_LC_MESSAGES=no
252b5132 7031fi
e5a52504
MM
7032rm -f conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
252b5132 7034fi
e5a52504
MM
7035echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7036echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
252b5132 7037 if test $am_cv_val_LC_MESSAGES = yes; then
e5a52504
MM
7038
7039cat >>confdefs.h <<\_ACEOF
252b5132 7040#define HAVE_LC_MESSAGES 1
e5a52504 7041_ACEOF
252b5132
RH
7042
7043 fi
7044 fi
e5a52504
MM
7045 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7046echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7047 # Check whether --enable-nls or --disable-nls was given.
7048if test "${enable_nls+set}" = set; then
7049 enableval="$enable_nls"
7050 USE_NLS=$enableval
7051else
7052 USE_NLS=yes
e5a52504
MM
7053fi;
7054 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7055echo "${ECHO_T}$USE_NLS" >&6
252b5132 7056
252b5132
RH
7057
7058 USE_INCLUDED_LIBINTL=no
7059
7060 if test "$USE_NLS" = "yes"; then
e5a52504
MM
7061
7062cat >>confdefs.h <<\_ACEOF
252b5132 7063#define ENABLE_NLS 1
e5a52504 7064_ACEOF
252b5132 7065
e5a52504
MM
7066 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7067echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7068
7069# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7070if test "${with_included_gettext+set}" = set; then
7071 withval="$with_included_gettext"
7072 nls_cv_force_use_gnu_gettext=$withval
7073else
7074 nls_cv_force_use_gnu_gettext=no
e5a52504
MM
7075fi;
7076 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7077echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7078
7079 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7080 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7081 nls_cv_header_intl=
7082 nls_cv_header_libgt=
7083 CATOBJEXT=NONE
7084
e5a52504
MM
7085 if test "${ac_cv_header_libintl_h+set}" = set; then
7086 echo "$as_me:$LINENO: checking for libintl.h" >&5
7087echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7088if test "${ac_cv_header_libintl_h+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090fi
7091echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7092echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7093else
7094 # Is the header compilable?
7095echo "$as_me:$LINENO: checking libintl.h usability" >&5
7096echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7097cat >conftest.$ac_ext <<_ACEOF
7098/* confdefs.h. */
7099_ACEOF
7100cat confdefs.h >>conftest.$ac_ext
7101cat >>conftest.$ac_ext <<_ACEOF
7102/* end confdefs.h. */
7103$ac_includes_default
252b5132 7104#include <libintl.h>
e5a52504
MM
7105_ACEOF
7106rm -f conftest.$ac_objext
7107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7108 (eval $ac_compile) 2>conftest.er1
7109 ac_status=$?
7110 grep -v '^ *+' conftest.er1 >conftest.err
7111 rm -f conftest.er1
7112 cat conftest.err >&5
7113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114 (exit $ac_status); } &&
7115 { ac_try='test -z "$ac_c_werror_flag"
7116 || test ! -s conftest.err'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7118 (eval $ac_try) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; } &&
7122 { ac_try='test -s conftest.$ac_objext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 ac_header_compiler=yes
7129else
7130 echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
7132
7133ac_header_compiler=no
7134fi
7135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7136echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7137echo "${ECHO_T}$ac_header_compiler" >&6
7138
7139# Is the header present?
7140echo "$as_me:$LINENO: checking libintl.h presence" >&5
7141echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7142cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h. */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h. */
7148#include <libintl.h>
7149_ACEOF
7150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } >/dev/null; then
7158 if test -s conftest.err; then
7159 ac_cpp_err=$ac_c_preproc_warn_flag
7160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7161 else
7162 ac_cpp_err=
7163 fi
252b5132 7164else
e5a52504 7165 ac_cpp_err=yes
252b5132 7166fi
e5a52504
MM
7167if test -z "$ac_cpp_err"; then
7168 ac_header_preproc=yes
7169else
7170 echo "$as_me: failed program was:" >&5
7171sed 's/^/| /' conftest.$ac_ext >&5
7172
7173 ac_header_preproc=no
7174fi
7175rm -f conftest.err conftest.$ac_ext
7176echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7177echo "${ECHO_T}$ac_header_preproc" >&6
7178
7179# So? What about this header?
7180case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7181 yes:no: )
7182 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7183echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7184 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7185echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7186 ac_header_preproc=yes
7187 ;;
7188 no:yes:* )
7189 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7190echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7192echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7194echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7195 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7196echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7197 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7198echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7199 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7200echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7201 (
7202 cat <<\_ASBOX
7203## ------------------------------------------ ##
7204## Report this to the AC_PACKAGE_NAME lists. ##
7205## ------------------------------------------ ##
7206_ASBOX
7207 ) |
7208 sed "s/^/$as_me: WARNING: /" >&2
7209 ;;
7210esac
7211echo "$as_me:$LINENO: checking for libintl.h" >&5
7212echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7213if test "${ac_cv_header_libintl_h+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 ac_cv_header_libintl_h=$ac_header_preproc
7217fi
7218echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7219echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7220
252b5132 7221fi
e5a52504
MM
7222if test $ac_cv_header_libintl_h = yes; then
7223 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7224echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7225if test "${gt_cv_func_gettext_libc+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7227else
e5a52504
MM
7228 cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h. */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h. */
252b5132 7234#include <libintl.h>
e5a52504
MM
7235int
7236main ()
7237{
252b5132 7238return (int) gettext ("")
e5a52504
MM
7239 ;
7240 return 0;
7241}
7242_ACEOF
7243rm -f conftest.$ac_objext conftest$ac_exeext
7244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245 (eval $ac_link) 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } &&
7252 { ac_try='test -z "$ac_c_werror_flag"
7253 || test ! -s conftest.err'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; } &&
7259 { ac_try='test -s conftest$ac_exeext'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 (eval $ac_try) 2>&5
7262 ac_status=$?
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
252b5132
RH
7265 gt_cv_func_gettext_libc=yes
7266else
e5a52504
MM
7267 echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
7270gt_cv_func_gettext_libc=no
252b5132 7271fi
e5a52504
MM
7272rm -f conftest.err conftest.$ac_objext \
7273 conftest$ac_exeext conftest.$ac_ext
252b5132 7274fi
e5a52504
MM
7275echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7276echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7277
7278 if test "$gt_cv_func_gettext_libc" != "yes"; then
e5a52504
MM
7279 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7280echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7281if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7283else
e5a52504 7284 ac_check_lib_save_LIBS=$LIBS
252b5132 7285LIBS="-lintl $LIBS"
e5a52504
MM
7286cat >conftest.$ac_ext <<_ACEOF
7287/* confdefs.h. */
7288_ACEOF
7289cat confdefs.h >>conftest.$ac_ext
7290cat >>conftest.$ac_ext <<_ACEOF
7291/* end confdefs.h. */
7292
252b5132 7293/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
7294#ifdef __cplusplus
7295extern "C"
7296#endif
252b5132 7297/* We use char because int might match the return type of a gcc2
e5a52504
MM
7298 builtin and then its argument prototype would still apply. */
7299char bindtextdomain ();
7300int
7301main ()
7302{
7303bindtextdomain ();
7304 ;
7305 return 0;
7306}
7307_ACEOF
7308rm -f conftest.$ac_objext conftest$ac_exeext
7309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7310 (eval $ac_link) 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } &&
7317 { ac_try='test -z "$ac_c_werror_flag"
7318 || test ! -s conftest.err'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; } &&
7324 { ac_try='test -s conftest$ac_exeext'
7325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 (eval $ac_try) 2>&5
7327 ac_status=$?
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); }; }; then
7330 ac_cv_lib_intl_bindtextdomain=yes
7331else
7332 echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335ac_cv_lib_intl_bindtextdomain=no
7336fi
7337rm -f conftest.err conftest.$ac_objext \
7338 conftest$ac_exeext conftest.$ac_ext
7339LIBS=$ac_check_lib_save_LIBS
7340fi
7341echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7342echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7343if test $ac_cv_lib_intl_bindtextdomain = yes; then
7344 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7345echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7346if test "${gt_cv_func_gettext_libintl+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349 cat >conftest.$ac_ext <<_ACEOF
7350/* confdefs.h. */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h. */
252b5132 7355
e5a52504
MM
7356int
7357main ()
7358{
252b5132 7359return (int) gettext ("")
e5a52504
MM
7360 ;
7361 return 0;
7362}
7363_ACEOF
7364rm -f conftest.$ac_objext conftest$ac_exeext
7365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>conftest.er1
7367 ac_status=$?
7368 grep -v '^ *+' conftest.er1 >conftest.err
7369 rm -f conftest.er1
7370 cat conftest.err >&5
7371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -z "$ac_c_werror_flag"
7374 || test ! -s conftest.err'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 (eval $ac_try) 2>&5
7377 ac_status=$?
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; } &&
7380 { ac_try='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
252b5132
RH
7386 gt_cv_func_gettext_libintl=yes
7387else
e5a52504
MM
7388 echo "$as_me: failed program was:" >&5
7389sed 's/^/| /' conftest.$ac_ext >&5
7390
7391gt_cv_func_gettext_libintl=no
252b5132 7392fi
e5a52504
MM
7393rm -f conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
252b5132 7395fi
e5a52504
MM
7396echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7397echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7398fi
7399
7400 fi
7401
7402 if test "$gt_cv_func_gettext_libc" = "yes" \
7403 || test "$gt_cv_func_gettext_libintl" = "yes"; then
e5a52504
MM
7404
7405cat >>confdefs.h <<\_ACEOF
252b5132 7406#define HAVE_GETTEXT 1
e5a52504 7407_ACEOF
252b5132
RH
7408
7409 # Extract the first word of "msgfmt", so it can be a program name with args.
7410set dummy msgfmt; ac_word=$2
e5a52504
MM
7411echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413if test "${ac_cv_path_MSGFMT+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7415else
7416 case "$MSGFMT" in
7417 /*)
7418 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7419 ;;
7420 *)
7421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7422 for ac_dir in $PATH; do
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/$ac_word; then
7425 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7426 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7427 break
7428 fi
7429 fi
7430 done
7431 IFS="$ac_save_ifs"
7432 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7433 ;;
7434esac
7435fi
7436MSGFMT="$ac_cv_path_MSGFMT"
7437if test -n "$MSGFMT"; then
e5a52504
MM
7438 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7439echo "${ECHO_T}$MSGFMT" >&6
252b5132 7440else
e5a52504
MM
7441 echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6
252b5132
RH
7443fi
7444 if test "$MSGFMT" != "no"; then
e5a52504
MM
7445
7446for ac_func in dcgettext
252b5132 7447do
e5a52504
MM
7448as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7449echo "$as_me:$LINENO: checking for $ac_func" >&5
7450echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7451if eval "test \"\${$as_ac_var+set}\" = set"; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 cat >conftest.$ac_ext <<_ACEOF
7455/* confdefs.h. */
7456_ACEOF
7457cat confdefs.h >>conftest.$ac_ext
7458cat >>conftest.$ac_ext <<_ACEOF
7459/* end confdefs.h. */
7460/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7462#define $ac_func innocuous_$ac_func
7463
252b5132 7464/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
7465 which can conflict with char $ac_func (); below.
7466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7467 <limits.h> exists even on freestanding compilers. */
7468
7469#ifdef __STDC__
7470# include <limits.h>
7471#else
7472# include <assert.h>
7473#endif
252b5132 7474
e5a52504 7475#undef $ac_func
252b5132 7476
e5a52504
MM
7477/* Override any gcc2 internal prototype to avoid an error. */
7478#ifdef __cplusplus
7479extern "C"
7480{
7481#endif
7482/* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7484char $ac_func ();
252b5132
RH
7485/* The GNU C library defines this for functions which it implements
7486 to always fail with ENOSYS. Some functions are actually named
7487 something starting with __ and the normal name is an alias. */
7488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7489choke me
7490#else
e5a52504
MM
7491char (*f) () = $ac_func;
7492#endif
7493#ifdef __cplusplus
7494}
7495#endif
7496
7497int
7498main ()
7499{
7500return f != $ac_func;
7501 ;
7502 return 0;
7503}
7504_ACEOF
7505rm -f conftest.$ac_objext conftest$ac_exeext
7506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7507 (eval $ac_link) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest$ac_exeext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 eval "$as_ac_var=yes"
7528else
7529 echo "$as_me: failed program was:" >&5
7530sed 's/^/| /' conftest.$ac_ext >&5
7531
7532eval "$as_ac_var=no"
7533fi
7534rm -f conftest.err conftest.$ac_objext \
7535 conftest$ac_exeext conftest.$ac_ext
7536fi
7537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7538echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7539if test `eval echo '${'$as_ac_var'}'` = yes; then
7540 cat >>confdefs.h <<_ACEOF
7541#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7542_ACEOF
252b5132 7543
252b5132
RH
7544fi
7545done
7546
7547 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7548set dummy gmsgfmt; ac_word=$2
e5a52504
MM
7549echo "$as_me:$LINENO: checking for $ac_word" >&5
7550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7551if test "${ac_cv_path_GMSGFMT+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7553else
e5a52504
MM
7554 case $GMSGFMT in
7555 [\\/]* | ?:[\\/]*)
252b5132
RH
7556 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7557 ;;
252b5132 7558 *)
e5a52504
MM
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562 IFS=$as_save_IFS
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 break 2
7569 fi
7570done
7571done
7572
252b5132
RH
7573 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7574 ;;
7575esac
7576fi
e5a52504
MM
7577GMSGFMT=$ac_cv_path_GMSGFMT
7578
252b5132 7579if test -n "$GMSGFMT"; then
e5a52504
MM
7580 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7581echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7582else
e5a52504
MM
7583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
252b5132
RH
7585fi
7586
7587 # Extract the first word of "xgettext", so it can be a program name with args.
7588set dummy xgettext; ac_word=$2
e5a52504
MM
7589echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591if test "${ac_cv_path_XGETTEXT+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7593else
7594 case "$XGETTEXT" in
7595 /*)
7596 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7597 ;;
7598 *)
7599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7600 for ac_dir in $PATH; do
7601 test -z "$ac_dir" && ac_dir=.
7602 if test -f $ac_dir/$ac_word; then
7603 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7604 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7605 break
7606 fi
7607 fi
7608 done
7609 IFS="$ac_save_ifs"
7610 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7611 ;;
7612esac
7613fi
7614XGETTEXT="$ac_cv_path_XGETTEXT"
7615if test -n "$XGETTEXT"; then
e5a52504
MM
7616 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7617echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7618else
e5a52504
MM
7619 echo "$as_me:$LINENO: result: no" >&5
7620echo "${ECHO_T}no" >&6
252b5132
RH
7621fi
7622
e5a52504
MM
7623 cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h. */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h. */
252b5132 7629
e5a52504
MM
7630int
7631main ()
7632{
252b5132
RH
7633extern int _nl_msg_cat_cntr;
7634 return _nl_msg_cat_cntr
e5a52504
MM
7635 ;
7636 return 0;
7637}
7638_ACEOF
7639rm -f conftest.$ac_objext conftest$ac_exeext
7640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } &&
7648 { ac_try='test -z "$ac_c_werror_flag"
7649 || test ! -s conftest.err'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; } &&
7655 { ac_try='test -s conftest$ac_exeext'
7656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7657 (eval $ac_try) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); }; }; then
252b5132
RH
7661 CATOBJEXT=.gmo
7662 DATADIRNAME=share
7663else
e5a52504
MM
7664 echo "$as_me: failed program was:" >&5
7665sed 's/^/| /' conftest.$ac_ext >&5
7666
7667CATOBJEXT=.mo
252b5132
RH
7668 DATADIRNAME=lib
7669fi
e5a52504
MM
7670rm -f conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7672 INSTOBJEXT=.mo
7673 fi
7674 fi
e5a52504 7675
252b5132
RH
7676fi
7677
7678
e5a52504
MM
7679
7680
252b5132
RH
7681 if test "$CATOBJEXT" = "NONE"; then
7682 nls_cv_use_gnu_gettext=yes
7683 fi
7684 fi
7685
7686 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7687 INTLOBJS="\$(GETTOBJS)"
7688 # Extract the first word of "msgfmt", so it can be a program name with args.
7689set dummy msgfmt; ac_word=$2
e5a52504
MM
7690echo "$as_me:$LINENO: checking for $ac_word" >&5
7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692if test "${ac_cv_path_MSGFMT+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7694else
7695 case "$MSGFMT" in
7696 /*)
7697 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7698 ;;
7699 *)
7700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7701 for ac_dir in $PATH; do
7702 test -z "$ac_dir" && ac_dir=.
7703 if test -f $ac_dir/$ac_word; then
7704 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7705 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7706 break
7707 fi
7708 fi
7709 done
7710 IFS="$ac_save_ifs"
7711 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7712 ;;
7713esac
7714fi
7715MSGFMT="$ac_cv_path_MSGFMT"
7716if test -n "$MSGFMT"; then
e5a52504
MM
7717 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7718echo "${ECHO_T}$MSGFMT" >&6
252b5132 7719else
e5a52504
MM
7720 echo "$as_me:$LINENO: result: no" >&5
7721echo "${ECHO_T}no" >&6
252b5132
RH
7722fi
7723
7724 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7725set dummy gmsgfmt; ac_word=$2
e5a52504
MM
7726echo "$as_me:$LINENO: checking for $ac_word" >&5
7727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7728if test "${ac_cv_path_GMSGFMT+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7730else
e5a52504
MM
7731 case $GMSGFMT in
7732 [\\/]* | ?:[\\/]*)
252b5132
RH
7733 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7734 ;;
252b5132 7735 *)
e5a52504
MM
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749
252b5132
RH
7750 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7751 ;;
7752esac
7753fi
e5a52504
MM
7754GMSGFMT=$ac_cv_path_GMSGFMT
7755
252b5132 7756if test -n "$GMSGFMT"; then
e5a52504
MM
7757 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7758echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7759else
e5a52504
MM
7760 echo "$as_me:$LINENO: result: no" >&5
7761echo "${ECHO_T}no" >&6
252b5132
RH
7762fi
7763
7764 # Extract the first word of "xgettext", so it can be a program name with args.
7765set dummy xgettext; ac_word=$2
e5a52504
MM
7766echo "$as_me:$LINENO: checking for $ac_word" >&5
7767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768if test "${ac_cv_path_XGETTEXT+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7770else
7771 case "$XGETTEXT" in
7772 /*)
7773 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7774 ;;
7775 *)
7776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7777 for ac_dir in $PATH; do
7778 test -z "$ac_dir" && ac_dir=.
7779 if test -f $ac_dir/$ac_word; then
7780 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7781 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7782 break
7783 fi
7784 fi
7785 done
7786 IFS="$ac_save_ifs"
7787 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7788 ;;
7789esac
7790fi
7791XGETTEXT="$ac_cv_path_XGETTEXT"
7792if test -n "$XGETTEXT"; then
e5a52504
MM
7793 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7794echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7795else
e5a52504
MM
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
252b5132
RH
7798fi
7799
e5a52504 7800
252b5132
RH
7801 USE_INCLUDED_LIBINTL=yes
7802 CATOBJEXT=.gmo
7803 INSTOBJEXT=.mo
7804 DATADIRNAME=share
7805 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7806 INTLLIBS=$INTLDEPS
7807 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7808 nls_cv_header_intl=libintl.h
7809 nls_cv_header_libgt=libgettext.h
7810 fi
7811
7812 if test "$XGETTEXT" != ":"; then
7813 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7814 : ;
7815 else
e5a52504
MM
7816 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7817echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7818 XGETTEXT=":"
7819 fi
7820 fi
7821
7822 # We need to process the po/ directory.
7823 POSUB=po
7824 else
7825 DATADIRNAME=share
7826 nls_cv_header_intl=libintl.h
7827 nls_cv_header_libgt=libgettext.h
7828 fi
7829
7830 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7831 # because some of the sources are only built for this goal.
7832 if test "$PACKAGE" = gettext; then
7833 USE_NLS=yes
7834 USE_INCLUDED_LIBINTL=yes
7835 fi
7836
7837 for lang in $ALL_LINGUAS; do
7838 GMOFILES="$GMOFILES $lang.gmo"
7839 POFILES="$POFILES $lang.po"
7840 done
7841
e5a52504
MM
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
252b5132
RH
7854
7855 if test "x$CATOBJEXT" != "x"; then
7856 if test "x$ALL_LINGUAS" = "x"; then
7857 LINGUAS=
7858 else
e5a52504
MM
7859 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7860echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7861 NEW_LINGUAS=
7862 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7863 case "$ALL_LINGUAS" in
7864 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7865 esac
7866 done
7867 LINGUAS=$NEW_LINGUAS
e5a52504
MM
7868 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7869echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7870 fi
7871
7872 if test -n "$LINGUAS"; then
7873 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7874 fi
7875 fi
7876
7877 if test $ac_cv_header_locale_h = yes; then
7878 INCLUDE_LOCALE_H="#include <locale.h>"
7879 else
7880 INCLUDE_LOCALE_H="\
7881/* The system does not provide the header <locale.h>. Take care yourself. */"
7882 fi
e5a52504 7883
252b5132
RH
7884
7885 if test -f $srcdir/po2tbl.sed.in; then
7886 if test "$CATOBJEXT" = ".cat"; then
e5a52504
MM
7887 if test "${ac_cv_header_linux_version_h+set}" = set; then
7888 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7889echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7890if test "${ac_cv_header_linux_version_h+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892fi
7893echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7894echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7895else
7896 # Is the header compilable?
7897echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7898echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7899cat >conftest.$ac_ext <<_ACEOF
7900/* confdefs.h. */
7901_ACEOF
7902cat confdefs.h >>conftest.$ac_ext
7903cat >>conftest.$ac_ext <<_ACEOF
7904/* end confdefs.h. */
7905$ac_includes_default
252b5132 7906#include <linux/version.h>
e5a52504
MM
7907_ACEOF
7908rm -f conftest.$ac_objext
7909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7910 (eval $ac_compile) 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } &&
7917 { ac_try='test -z "$ac_c_werror_flag"
7918 || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_header_compiler=yes
7931else
7932 echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
7935ac_header_compiler=no
7936fi
7937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7939echo "${ECHO_T}$ac_header_compiler" >&6
7940
7941# Is the header present?
7942echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7943echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7944cat >conftest.$ac_ext <<_ACEOF
7945/* confdefs.h. */
7946_ACEOF
7947cat confdefs.h >>conftest.$ac_ext
7948cat >>conftest.$ac_ext <<_ACEOF
7949/* end confdefs.h. */
7950#include <linux/version.h>
7951_ACEOF
7952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } >/dev/null; then
7960 if test -s conftest.err; then
7961 ac_cpp_err=$ac_c_preproc_warn_flag
7962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7963 else
7964 ac_cpp_err=
7965 fi
252b5132 7966else
e5a52504 7967 ac_cpp_err=yes
252b5132 7968fi
e5a52504
MM
7969if test -z "$ac_cpp_err"; then
7970 ac_header_preproc=yes
7971else
7972 echo "$as_me: failed program was:" >&5
7973sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 ac_header_preproc=no
7976fi
7977rm -f conftest.err conftest.$ac_ext
7978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7979echo "${ECHO_T}$ac_header_preproc" >&6
7980
7981# So? What about this header?
7982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7983 yes:no: )
7984 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7985echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7986 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7987echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7988 ac_header_preproc=yes
7989 ;;
7990 no:yes:* )
7991 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7992echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7994echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7996echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7998echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8000echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8002echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8003 (
8004 cat <<\_ASBOX
8005## ------------------------------------------ ##
8006## Report this to the AC_PACKAGE_NAME lists. ##
8007## ------------------------------------------ ##
8008_ASBOX
8009 ) |
8010 sed "s/^/$as_me: WARNING: /" >&2
8011 ;;
8012esac
8013echo "$as_me:$LINENO: checking for linux/version.h" >&5
8014echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8015if test "${ac_cv_header_linux_version_h+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018 ac_cv_header_linux_version_h=$ac_header_preproc
8019fi
8020echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8021echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8022
252b5132 8023fi
e5a52504 8024if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8025 msgformat=linux
8026else
e5a52504 8027 msgformat=xopen
252b5132
RH
8028fi
8029
8030
e5a52504 8031
252b5132
RH
8032 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8033 fi
8034 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8035 $srcdir/po2tbl.sed.in > po2tbl.sed
8036 fi
8037
8038 if test "$PACKAGE" = "gettext"; then
8039 GT_NO="#NO#"
8040 GT_YES=
8041 else
8042 GT_NO=
8043 GT_YES="#YES#"
8044 fi
e5a52504
MM
8045
8046
252b5132
RH
8047
8048 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
e5a52504 8049
252b5132
RH
8050
8051 l=
e5a52504 8052
252b5132 8053
fcd8210c 8054 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8055 test -d po || mkdir po
8056 if test "x$srcdir" != "x."; then
8057 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8058 posrcprefix="$srcdir/"
8059 else
8060 posrcprefix="../$srcdir/"
8061 fi
8062 else
8063 posrcprefix="../"
8064 fi
8065 rm -f po/POTFILES
8066 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8067 < $srcdir/po/POTFILES.in > po/POTFILES
8068 fi
252b5132 8069
252b5132
RH
8070
8071
252b5132
RH
8072
8073for ac_prog in 'bison -y' byacc
8074do
e5a52504 8075 # Extract the first word of "$ac_prog", so it can be a program name with args.
252b5132 8076set dummy $ac_prog; ac_word=$2
e5a52504
MM
8077echo "$as_me:$LINENO: checking for $ac_word" >&5
8078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8079if test "${ac_cv_prog_YACC+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8081else
8082 if test -n "$YACC"; then
8083 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8084else
e5a52504
MM
8085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086for as_dir in $PATH
8087do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_YACC="$ac_prog"
8093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096done
8097done
8098
252b5132
RH
8099fi
8100fi
e5a52504 8101YACC=$ac_cv_prog_YACC
252b5132 8102if test -n "$YACC"; then
e5a52504
MM
8103 echo "$as_me:$LINENO: result: $YACC" >&5
8104echo "${ECHO_T}$YACC" >&6
252b5132 8105else
e5a52504
MM
8106 echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
252b5132
RH
8108fi
8109
e5a52504 8110 test -n "$YACC" && break
252b5132
RH
8111done
8112test -n "$YACC" || YACC="yacc"
8113
252b5132
RH
8114for ac_prog in flex lex
8115do
e5a52504 8116 # Extract the first word of "$ac_prog", so it can be a program name with args.
252b5132 8117set dummy $ac_prog; ac_word=$2
e5a52504
MM
8118echo "$as_me:$LINENO: checking for $ac_word" >&5
8119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120if test "${ac_cv_prog_LEX+set}" = set; then
8121 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8122else
8123 if test -n "$LEX"; then
8124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8125else
e5a52504
MM
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_LEX="$ac_prog"
8134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137done
252b5132 8138done
252b5132 8139
252b5132
RH
8140fi
8141fi
e5a52504 8142LEX=$ac_cv_prog_LEX
252b5132 8143if test -n "$LEX"; then
e5a52504
MM
8144 echo "$as_me:$LINENO: result: $LEX" >&5
8145echo "${ECHO_T}$LEX" >&6
252b5132 8146else
e5a52504
MM
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
252b5132
RH
8149fi
8150
e5a52504
MM
8151 test -n "$LEX" && break
8152done
8153test -n "$LEX" || LEX=":"
8154
252b5132
RH
8155if test -z "$LEXLIB"
8156then
e5a52504
MM
8157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8158echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8159if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162 ac_check_lib_save_LIBS=$LIBS
8163LIBS="-lfl $LIBS"
8164cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170
252b5132 8171/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
8172#ifdef __cplusplus
8173extern "C"
8174#endif
252b5132 8175/* We use char because int might match the return type of a gcc2
e5a52504
MM
8176 builtin and then its argument prototype would still apply. */
8177char yywrap ();
8178int
8179main ()
8180{
8181yywrap ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
8187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_lib_fl_yywrap=yes
8209else
8210 echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
8213ac_cv_lib_fl_yywrap=no
8214fi
8215rm -f conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217LIBS=$ac_check_lib_save_LIBS
8218fi
8219echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8220echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8221if test $ac_cv_lib_fl_yywrap = yes; then
8222 LEXLIB="-lfl"
8223else
8224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8225echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8226if test "${ac_cv_lib_l_yywrap+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229 ac_check_lib_save_LIBS=$LIBS
8230LIBS="-ll $LIBS"
8231cat >conftest.$ac_ext <<_ACEOF
8232/* confdefs.h. */
8233_ACEOF
8234cat confdefs.h >>conftest.$ac_ext
8235cat >>conftest.$ac_ext <<_ACEOF
8236/* end confdefs.h. */
252b5132 8237
e5a52504
MM
8238/* Override any gcc2 internal prototype to avoid an error. */
8239#ifdef __cplusplus
8240extern "C"
8241#endif
8242/* We use char because int might match the return type of a gcc2
8243 builtin and then its argument prototype would still apply. */
8244char yywrap ();
8245int
8246main ()
8247{
8248yywrap ();
8249 ;
8250 return 0;
8251}
8252_ACEOF
8253rm -f conftest.$ac_objext conftest$ac_exeext
8254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } &&
8262 { ac_try='test -z "$ac_c_werror_flag"
8263 || test ! -s conftest.err'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; } &&
8269 { ac_try='test -s conftest$ac_exeext'
8270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8271 (eval $ac_try) 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
8275 ac_cv_lib_l_yywrap=yes
8276else
8277 echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
8280ac_cv_lib_l_yywrap=no
8281fi
8282rm -f conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284LIBS=$ac_check_lib_save_LIBS
8285fi
8286echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8287echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8288if test $ac_cv_lib_l_yywrap = yes; then
8289 LEXLIB="-ll"
8290fi
8291
8292fi
8293
8294fi
8295
8296if test "x$LEX" != "x:"; then
8297 echo "$as_me:$LINENO: checking lex output file root" >&5
8298echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8299if test "${ac_cv_prog_lex_root+set}" = set; then
8300 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8301else
8302 # The minimal lex program is just a single line: %%. But some broken lexes
8303# (Solaris, I think it was) want two %% lines, so accommodate them.
e5a52504
MM
8304cat >conftest.l <<_ACEOF
8305%%
8306%%
8307_ACEOF
8308{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8309 (eval $LEX conftest.l) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }
252b5132
RH
8313if test -f lex.yy.c; then
8314 ac_cv_prog_lex_root=lex.yy
8315elif test -f lexyy.c; then
8316 ac_cv_prog_lex_root=lexyy
8317else
e5a52504
MM
8318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8319echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8320 { (exit 1); exit 1; }; }
252b5132
RH
8321fi
8322fi
e5a52504
MM
8323echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8324echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8325rm -f conftest.l
252b5132
RH
8326LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8327
e5a52504
MM
8328echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8329echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8330if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8332else
8333 # POSIX says lex can declare yytext either as a pointer or an array; the
8334# default is implementation-dependent. Figure out which it is, since
8335# not all implementations provide the %pointer and %array declarations.
8336ac_cv_prog_lex_yytext_pointer=no
8337echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
e5a52504 8338ac_save_LIBS=$LIBS
252b5132 8339LIBS="$LIBS $LEXLIB"
e5a52504 8340cat >conftest.$ac_ext <<_ACEOF
252b5132 8341`cat $LEX_OUTPUT_ROOT.c`
e5a52504
MM
8342_ACEOF
8343rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
252b5132
RH
8365 ac_cv_prog_lex_yytext_pointer=yes
8366else
e5a52504
MM
8367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
8369
252b5132 8370fi
e5a52504
MM
8371rm -f conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
8373LIBS=$ac_save_LIBS
252b5132
RH
8374rm -f "${LEX_OUTPUT_ROOT}.c"
8375
8376fi
e5a52504
MM
8377echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
8378echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
252b5132 8379if test $ac_cv_prog_lex_yytext_pointer = yes; then
e5a52504
MM
8380
8381cat >>confdefs.h <<\_ACEOF
252b5132 8382#define YYTEXT_POINTER 1
e5a52504 8383_ACEOF
252b5132
RH
8384
8385fi
8386
e5a52504
MM
8387fi
8388if test "$LEX" = :; then
8389 LEX=${am_missing_run}flex
8390fi
252b5132 8391
e5a52504
MM
8392echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8393echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8394 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8395if test "${enable_maintainer_mode+set}" = set; then
8396 enableval="$enable_maintainer_mode"
8397 USE_MAINTAINER_MODE=$enableval
8398else
8399 USE_MAINTAINER_MODE=no
e5a52504
MM
8400fi;
8401 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8402echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 8403
252b5132
RH
8404
8405if test $USE_MAINTAINER_MODE = yes; then
8406 MAINTAINER_MODE_TRUE=
8407 MAINTAINER_MODE_FALSE='#'
8408else
8409 MAINTAINER_MODE_TRUE='#'
8410 MAINTAINER_MODE_FALSE=
8411fi
e5a52504 8412
252b5132 8413 MAINT=$MAINTAINER_MODE_TRUE
e5a52504 8414
252b5132
RH
8415
8416
8417. ${srcdir}/configure.host
8418
8419
8420
8421
8422
8423
e5a52504
MM
8424
8425
8426
8427
8428for ac_header in string.h strings.h stdlib.h unistd.h
252b5132 8429do
e5a52504
MM
8430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8431if eval "test \"\${$as_ac_Header+set}\" = set"; then
8432 echo "$as_me:$LINENO: checking for $ac_header" >&5
8433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8434if eval "test \"\${$as_ac_Header+set}\" = set"; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436fi
8437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8439else
8440 # Is the header compilable?
8441echo "$as_me:$LINENO: checking $ac_header usability" >&5
8442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8443cat >conftest.$ac_ext <<_ACEOF
8444/* confdefs.h. */
8445_ACEOF
8446cat confdefs.h >>conftest.$ac_ext
8447cat >>conftest.$ac_ext <<_ACEOF
8448/* end confdefs.h. */
8449$ac_includes_default
8450#include <$ac_header>
8451_ACEOF
8452rm -f conftest.$ac_objext
8453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8454 (eval $ac_compile) 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } &&
8461 { ac_try='test -z "$ac_c_werror_flag"
8462 || test ! -s conftest.err'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; } &&
8468 { ac_try='test -s conftest.$ac_objext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470 (eval $ac_try) 2>&5
8471 ac_status=$?
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8474 ac_header_compiler=yes
8475else
8476 echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479ac_header_compiler=no
8480fi
8481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8483echo "${ECHO_T}$ac_header_compiler" >&6
8484
8485# Is the header present?
8486echo "$as_me:$LINENO: checking $ac_header presence" >&5
8487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8488cat >conftest.$ac_ext <<_ACEOF
8489/* confdefs.h. */
8490_ACEOF
8491cat confdefs.h >>conftest.$ac_ext
8492cat >>conftest.$ac_ext <<_ACEOF
8493/* end confdefs.h. */
8494#include <$ac_header>
8495_ACEOF
8496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } >/dev/null; then
8504 if test -s conftest.err; then
8505 ac_cpp_err=$ac_c_preproc_warn_flag
8506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8507 else
8508 ac_cpp_err=
8509 fi
252b5132 8510else
e5a52504 8511 ac_cpp_err=yes
252b5132 8512fi
e5a52504
MM
8513if test -z "$ac_cpp_err"; then
8514 ac_header_preproc=yes
8515else
8516 echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519 ac_header_preproc=no
252b5132 8520fi
e5a52504
MM
8521rm -f conftest.err conftest.$ac_ext
8522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523echo "${ECHO_T}$ac_header_preproc" >&6
8524
8525# So? What about this header?
8526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527 yes:no: )
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532 ac_header_preproc=yes
8533 ;;
8534 no:yes:* )
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8542echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547 (
8548 cat <<\_ASBOX
8549## ------------------------------------------ ##
8550## Report this to the AC_PACKAGE_NAME lists. ##
8551## ------------------------------------------ ##
8552_ASBOX
8553 ) |
8554 sed "s/^/$as_me: WARNING: /" >&2
8555 ;;
8556esac
8557echo "$as_me:$LINENO: checking for $ac_header" >&5
8558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8559if eval "test \"\${$as_ac_Header+set}\" = set"; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8561else
e5a52504
MM
8562 eval "$as_ac_Header=\$ac_header_preproc"
8563fi
8564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8566
8567fi
8568if test `eval echo '${'$as_ac_Header'}'` = yes; then
8569 cat >>confdefs.h <<_ACEOF
8570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8571_ACEOF
8572
252b5132 8573fi
e5a52504 8574
252b5132
RH
8575done
8576
e5a52504
MM
8577
8578
939ba9d0 8579for ac_func in sbrk realpath
252b5132 8580do
e5a52504
MM
8581as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8582echo "$as_me:$LINENO: checking for $ac_func" >&5
8583echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584if eval "test \"\${$as_ac_var+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587 cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
8593/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8595#define $ac_func innocuous_$ac_func
8596
252b5132 8597/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
8598 which can conflict with char $ac_func (); below.
8599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8600 <limits.h> exists even on freestanding compilers. */
8601
8602#ifdef __STDC__
8603# include <limits.h>
8604#else
8605# include <assert.h>
8606#endif
252b5132 8607
e5a52504 8608#undef $ac_func
252b5132 8609
e5a52504
MM
8610/* Override any gcc2 internal prototype to avoid an error. */
8611#ifdef __cplusplus
8612extern "C"
8613{
8614#endif
8615/* We use char because int might match the return type of a gcc2
8616 builtin and then its argument prototype would still apply. */
8617char $ac_func ();
252b5132
RH
8618/* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8622choke me
8623#else
e5a52504
MM
8624char (*f) () = $ac_func;
8625#endif
8626#ifdef __cplusplus
8627}
252b5132
RH
8628#endif
8629
e5a52504
MM
8630int
8631main ()
8632{
8633return f != $ac_func;
8634 ;
8635 return 0;
8636}
8637_ACEOF
8638rm -f conftest.$ac_objext conftest$ac_exeext
8639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 eval "$as_ac_var=yes"
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
8665eval "$as_ac_var=no"
8666fi
8667rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669fi
8670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8672if test `eval echo '${'$as_ac_var'}'` = yes; then
8673 cat >>confdefs.h <<_ACEOF
8674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8675_ACEOF
252b5132 8676
252b5132
RH
8677fi
8678done
8679
e5a52504
MM
8680
8681
8682
8683
8684
252b5132 8685ac_header_dirent=no
e5a52504
MM
8686for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8687 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8688echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8689echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8690if eval "test \"\${$as_ac_Header+set}\" = set"; then
8691 echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693 cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
252b5132
RH
8699#include <sys/types.h>
8700#include <$ac_hdr>
e5a52504
MM
8701
8702int
8703main ()
8704{
8705if ((DIR *) 0)
8706return 0;
8707 ;
8708 return 0;
8709}
8710_ACEOF
8711rm -f conftest.$ac_objext
8712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8713 (eval $ac_compile) 2>conftest.er1
8714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } &&
8720 { ac_try='test -z "$ac_c_werror_flag"
8721 || test ! -s conftest.err'
8722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 (eval $ac_try) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 eval "$as_ac_Header=yes"
8734else
8735 echo "$as_me: failed program was:" >&5
8736sed 's/^/| /' conftest.$ac_ext >&5
8737
8738eval "$as_ac_Header=no"
8739fi
8740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8741fi
8742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8744if test `eval echo '${'$as_ac_Header'}'` = yes; then
8745 cat >>confdefs.h <<_ACEOF
8746#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8747_ACEOF
8748
8749ac_header_dirent=$ac_hdr; break
252b5132 8750fi
e5a52504 8751
252b5132
RH
8752done
8753# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8754if test $ac_header_dirent = dirent.h; then
e5a52504
MM
8755 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8756echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8757if test "${ac_cv_search_opendir+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759else
8760 ac_func_search_save_LIBS=$LIBS
8761ac_cv_search_opendir=no
8762cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768
252b5132 8769/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
8770#ifdef __cplusplus
8771extern "C"
8772#endif
252b5132 8773/* We use char because int might match the return type of a gcc2
e5a52504
MM
8774 builtin and then its argument prototype would still apply. */
8775char opendir ();
8776int
8777main ()
8778{
8779opendir ();
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext conftest$ac_exeext
8785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786 (eval $ac_link) 2>conftest.er1
8787 ac_status=$?
8788 grep -v '^ *+' conftest.er1 >conftest.err
8789 rm -f conftest.er1
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -z "$ac_c_werror_flag"
8794 || test ! -s conftest.err'
8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 (eval $ac_try) 2>&5
8797 ac_status=$?
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); }; } &&
8800 { ac_try='test -s conftest$ac_exeext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 (eval $ac_try) 2>&5
8803 ac_status=$?
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8806 ac_cv_search_opendir="none required"
8807else
8808 echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811fi
8812rm -f conftest.err conftest.$ac_objext \
8813 conftest$ac_exeext conftest.$ac_ext
8814if test "$ac_cv_search_opendir" = no; then
8815 for ac_lib in dir; do
8816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8817 cat >conftest.$ac_ext <<_ACEOF
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h. */
252b5132 8823
e5a52504
MM
8824/* Override any gcc2 internal prototype to avoid an error. */
8825#ifdef __cplusplus
8826extern "C"
8827#endif
8828/* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8830char opendir ();
8831int
8832main ()
8833{
8834opendir ();
8835 ;
8836 return 0;
8837}
8838_ACEOF
8839rm -f conftest.$ac_objext conftest$ac_exeext
8840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>conftest.er1
8842 ac_status=$?
8843 grep -v '^ *+' conftest.er1 >conftest.err
8844 rm -f conftest.er1
8845 cat conftest.err >&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -z "$ac_c_werror_flag"
8849 || test ! -s conftest.err'
8850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 (eval $ac_try) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; } &&
8855 { ac_try='test -s conftest$ac_exeext'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; }; then
8861 ac_cv_search_opendir="-l$ac_lib"
8862break
8863else
8864 echo "$as_me: failed program was:" >&5
8865sed 's/^/| /' conftest.$ac_ext >&5
8866
8867fi
8868rm -f conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870 done
252b5132 8871fi
e5a52504 8872LIBS=$ac_func_search_save_LIBS
252b5132 8873fi
e5a52504
MM
8874echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8875echo "${ECHO_T}$ac_cv_search_opendir" >&6
8876if test "$ac_cv_search_opendir" != no; then
8877 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8878
252b5132
RH
8879fi
8880
8881else
e5a52504
MM
8882 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8883echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8884if test "${ac_cv_search_opendir+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8886else
e5a52504
MM
8887 ac_func_search_save_LIBS=$LIBS
8888ac_cv_search_opendir=no
8889cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h. */
8895
252b5132 8896/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
8897#ifdef __cplusplus
8898extern "C"
8899#endif
252b5132 8900/* We use char because int might match the return type of a gcc2
e5a52504
MM
8901 builtin and then its argument prototype would still apply. */
8902char opendir ();
8903int
8904main ()
8905{
8906opendir ();
8907 ;
8908 return 0;
8909}
8910_ACEOF
8911rm -f conftest.$ac_objext conftest$ac_exeext
8912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_search_opendir="none required"
8934else
8935 echo "$as_me: failed program was:" >&5
8936sed 's/^/| /' conftest.$ac_ext >&5
8937
8938fi
8939rm -f conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext conftest.$ac_ext
8941if test "$ac_cv_search_opendir" = no; then
8942 for ac_lib in x; do
8943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8944 cat >conftest.$ac_ext <<_ACEOF
8945/* confdefs.h. */
8946_ACEOF
8947cat confdefs.h >>conftest.$ac_ext
8948cat >>conftest.$ac_ext <<_ACEOF
8949/* end confdefs.h. */
252b5132 8950
e5a52504
MM
8951/* Override any gcc2 internal prototype to avoid an error. */
8952#ifdef __cplusplus
8953extern "C"
8954#endif
8955/* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8957char opendir ();
8958int
8959main ()
8960{
8961opendir ();
8962 ;
8963 return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978 (eval $ac_try) 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984 (eval $ac_try) 2>&5
8985 ac_status=$?
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8988 ac_cv_search_opendir="-l$ac_lib"
8989break
8990else
8991 echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994fi
8995rm -f conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 done
252b5132 8998fi
e5a52504 8999LIBS=$ac_func_search_save_LIBS
252b5132 9000fi
e5a52504
MM
9001echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9002echo "${ECHO_T}$ac_cv_search_opendir" >&6
9003if test "$ac_cv_search_opendir" != no; then
9004 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9005
252b5132
RH
9006fi
9007
9008fi
9009
9010
9011
9012case "${host}" in
a8100d5b 9013*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
e5a52504
MM
9014
9015cat >>confdefs.h <<\_ACEOF
252b5132 9016#define USE_BINARY_FOPEN 1
e5a52504 9017_ACEOF
252b5132
RH
9018 ;;
9019esac
9020
e5a52504
MM
9021echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9022echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9023if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9025else
e5a52504
MM
9026 cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
252b5132
RH
9032
9033#include <stdio.h>
9034#ifdef HAVE_STRING_H
9035#include <string.h>
9036#else
9037#ifdef HAVE_STRINGS_H
9038#include <strings.h>
9039#endif
9040#endif
9041#ifdef HAVE_STDLIB_H
9042#include <stdlib.h>
9043#endif
9044#ifdef HAVE_UNISTD_H
9045#include <unistd.h>
9046#endif
e5a52504
MM
9047int
9048main ()
9049{
252b5132 9050char *(*pfn) = (char *(*)) strstr
e5a52504
MM
9051 ;
9052 return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext
9056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9058 ac_status=$?
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 (eval $ac_try) 2>&5
9068 ac_status=$?
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 (eval $ac_try) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
252b5132
RH
9077 bfd_cv_decl_needed_strstr=no
9078else
e5a52504
MM
9079 echo "$as_me: failed program was:" >&5
9080sed 's/^/| /' conftest.$ac_ext >&5
9081
9082bfd_cv_decl_needed_strstr=yes
252b5132 9083fi
e5a52504 9084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9085fi
9086
e5a52504
MM
9087echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9088echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9089if test $bfd_cv_decl_needed_strstr = yes; then
e5a52504
MM
9090
9091cat >>confdefs.h <<\_ACEOF
252b5132 9092#define NEED_DECLARATION_STRSTR 1
e5a52504 9093_ACEOF
252b5132
RH
9094
9095fi
9096
e5a52504
MM
9097echo "$as_me:$LINENO: checking whether free must be declared" >&5
9098echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9099if test "${bfd_cv_decl_needed_free+set}" = set; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9101else
e5a52504
MM
9102 cat >conftest.$ac_ext <<_ACEOF
9103/* confdefs.h. */
9104_ACEOF
9105cat confdefs.h >>conftest.$ac_ext
9106cat >>conftest.$ac_ext <<_ACEOF
9107/* end confdefs.h. */
252b5132
RH
9108
9109#include <stdio.h>
9110#ifdef HAVE_STRING_H
9111#include <string.h>
9112#else
9113#ifdef HAVE_STRINGS_H
9114#include <strings.h>
9115#endif
9116#endif
9117#ifdef HAVE_STDLIB_H
9118#include <stdlib.h>
9119#endif
9120#ifdef HAVE_UNISTD_H
9121#include <unistd.h>
9122#endif
e5a52504
MM
9123int
9124main ()
9125{
252b5132 9126char *(*pfn) = (char *(*)) free
e5a52504
MM
9127 ;
9128 return 0;
9129}
9130_ACEOF
9131rm -f conftest.$ac_objext
9132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9133 (eval $ac_compile) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -z "$ac_c_werror_flag"
9141 || test ! -s conftest.err'
9142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 (eval $ac_try) 2>&5
9144 ac_status=$?
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); }; } &&
9147 { ac_try='test -s conftest.$ac_objext'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
252b5132
RH
9153 bfd_cv_decl_needed_free=no
9154else
e5a52504
MM
9155 echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158bfd_cv_decl_needed_free=yes
252b5132 9159fi
e5a52504 9160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9161fi
9162
e5a52504
MM
9163echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9164echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
252b5132 9165if test $bfd_cv_decl_needed_free = yes; then
e5a52504
MM
9166
9167cat >>confdefs.h <<\_ACEOF
252b5132 9168#define NEED_DECLARATION_FREE 1
e5a52504 9169_ACEOF
252b5132
RH
9170
9171fi
9172
e5a52504
MM
9173echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9174echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9175if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9176 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9177else
e5a52504
MM
9178 cat >conftest.$ac_ext <<_ACEOF
9179/* confdefs.h. */
9180_ACEOF
9181cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF
9183/* end confdefs.h. */
252b5132
RH
9184
9185#include <stdio.h>
9186#ifdef HAVE_STRING_H
9187#include <string.h>
9188#else
9189#ifdef HAVE_STRINGS_H
9190#include <strings.h>
9191#endif
9192#endif
9193#ifdef HAVE_STDLIB_H
9194#include <stdlib.h>
9195#endif
9196#ifdef HAVE_UNISTD_H
9197#include <unistd.h>
9198#endif
e5a52504
MM
9199int
9200main ()
9201{
252b5132 9202char *(*pfn) = (char *(*)) sbrk
e5a52504
MM
9203 ;
9204 return 0;
9205}
9206_ACEOF
9207rm -f conftest.$ac_objext
9208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9209 (eval $ac_compile) 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } &&
9216 { ac_try='test -z "$ac_c_werror_flag"
9217 || test ! -s conftest.err'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219 (eval $ac_try) 2>&5
9220 ac_status=$?
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; } &&
9223 { ac_try='test -s conftest.$ac_objext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
252b5132
RH
9229 bfd_cv_decl_needed_sbrk=no
9230else
e5a52504
MM
9231 echo "$as_me: failed program was:" >&5
9232sed 's/^/| /' conftest.$ac_ext >&5
9233
9234bfd_cv_decl_needed_sbrk=yes
252b5132 9235fi
e5a52504 9236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9237fi
9238
e5a52504
MM
9239echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
9240echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
252b5132 9241if test $bfd_cv_decl_needed_sbrk = yes; then
e5a52504
MM
9242
9243cat >>confdefs.h <<\_ACEOF
252b5132 9244#define NEED_DECLARATION_SBRK 1
e5a52504 9245_ACEOF
252b5132
RH
9246
9247fi
9248
e5a52504
MM
9249echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9250echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9251if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9252 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9253else
e5a52504
MM
9254 cat >conftest.$ac_ext <<_ACEOF
9255/* confdefs.h. */
9256_ACEOF
9257cat confdefs.h >>conftest.$ac_ext
9258cat >>conftest.$ac_ext <<_ACEOF
9259/* end confdefs.h. */
252b5132
RH
9260
9261#include <stdio.h>
9262#ifdef HAVE_STRING_H
9263#include <string.h>
9264#else
9265#ifdef HAVE_STRINGS_H
9266#include <strings.h>
9267#endif
9268#endif
9269#ifdef HAVE_STDLIB_H
9270#include <stdlib.h>
9271#endif
9272#ifdef HAVE_UNISTD_H
9273#include <unistd.h>
9274#endif
e5a52504
MM
9275int
9276main ()
9277{
252b5132 9278char *(*pfn) = (char *(*)) getenv
e5a52504
MM
9279 ;
9280 return 0;
9281}
9282_ACEOF
9283rm -f conftest.$ac_objext
9284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -z "$ac_c_werror_flag"
9293 || test ! -s conftest.err'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest.$ac_objext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
252b5132
RH
9305 bfd_cv_decl_needed_getenv=no
9306else
e5a52504
MM
9307 echo "$as_me: failed program was:" >&5
9308sed 's/^/| /' conftest.$ac_ext >&5
9309
9310bfd_cv_decl_needed_getenv=yes
252b5132 9311fi
e5a52504 9312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9313fi
9314
e5a52504
MM
9315echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9316echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9317if test $bfd_cv_decl_needed_getenv = yes; then
e5a52504
MM
9318
9319cat >>confdefs.h <<\_ACEOF
252b5132 9320#define NEED_DECLARATION_GETENV 1
e5a52504 9321_ACEOF
252b5132
RH
9322
9323fi
9324
e5a52504
MM
9325echo "$as_me:$LINENO: checking whether environ must be declared" >&5
9326echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
9327if test "${bfd_cv_decl_needed_environ+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9329else
e5a52504
MM
9330 cat >conftest.$ac_ext <<_ACEOF
9331/* confdefs.h. */
9332_ACEOF
9333cat confdefs.h >>conftest.$ac_ext
9334cat >>conftest.$ac_ext <<_ACEOF
9335/* end confdefs.h. */
252b5132
RH
9336
9337#include <stdio.h>
9338#ifdef HAVE_STRING_H
9339#include <string.h>
9340#else
9341#ifdef HAVE_STRINGS_H
9342#include <strings.h>
9343#endif
9344#endif
9345#ifdef HAVE_STDLIB_H
9346#include <stdlib.h>
9347#endif
9348#ifdef HAVE_UNISTD_H
9349#include <unistd.h>
9350#endif
e5a52504
MM
9351int
9352main ()
9353{
252b5132 9354char *(*pfn) = (char *(*)) environ
e5a52504
MM
9355 ;
9356 return 0;
9357}
9358_ACEOF
9359rm -f conftest.$ac_objext
9360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9361 (eval $ac_compile) 2>conftest.er1
9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -z "$ac_c_werror_flag"
9369 || test ! -s conftest.err'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try='test -s conftest.$ac_objext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 (eval $ac_try) 2>&5
9378 ac_status=$?
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
252b5132
RH
9381 bfd_cv_decl_needed_environ=no
9382else
e5a52504
MM
9383 echo "$as_me: failed program was:" >&5
9384sed 's/^/| /' conftest.$ac_ext >&5
9385
9386bfd_cv_decl_needed_environ=yes
252b5132 9387fi
e5a52504 9388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9389fi
9390
e5a52504
MM
9391echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
9392echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
252b5132 9393if test $bfd_cv_decl_needed_environ = yes; then
e5a52504
MM
9394
9395cat >>confdefs.h <<\_ACEOF
252b5132 9396#define NEED_DECLARATION_ENVIRON 1
e5a52504 9397_ACEOF
252b5132
RH
9398
9399fi
9400
9401
597e2591
ILT
9402# When converting linker scripts into strings for use in emulation
9403# files, use astring.sed if the compiler supports ANSI string
9404# concatenation, or ostring.sed otherwise. This is to support the
9405# broken Microsoft MSVC compiler, which limits the length of string
9406# constants, while still supporting pre-ANSI compilers which do not
9407# support string concatenation.
e5a52504
MM
9408echo "$as_me:$LINENO: checking whether ANSI C string concatenation works" >&5
9409echo $ECHO_N "checking whether ANSI C string concatenation works... $ECHO_C" >&6
9410if test "${ld_cv_string_concatenation+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 cat >conftest.$ac_ext <<_ACEOF
9414/* confdefs.h. */
9415_ACEOF
9416cat confdefs.h >>conftest.$ac_ext
9417cat >>conftest.$ac_ext <<_ACEOF
9418/* end confdefs.h. */
597e2591 9419
e5a52504
MM
9420int
9421main ()
9422{
597e2591 9423char *a = "a" "a";
e5a52504
MM
9424 ;
9425 return 0;
9426}
9427_ACEOF
9428rm -f conftest.$ac_objext
9429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430 (eval $ac_compile) 2>conftest.er1
9431 ac_status=$?
9432 grep -v '^ *+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try='test -z "$ac_c_werror_flag"
9438 || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest.$ac_objext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
e4dabd0e 9450 ld_cv_string_concatenation=yes
597e2591 9451else
e5a52504
MM
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
9455ld_cv_string_concatenation=no
597e2591 9456fi
e5a52504 9457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
597e2591
ILT
9458fi
9459
e5a52504
MM
9460echo "$as_me:$LINENO: result: $ld_cv_string_concatenation" >&5
9461echo "${ECHO_T}$ld_cv_string_concatenation" >&6
e4dabd0e 9462if test "$ld_cv_string_concatenation" = "yes"; then
597e2591
ILT
9463 STRINGIFY=astring.sed
9464else
9465 STRINGIFY=ostring.sed
9466fi
9467
9468
252b5132
RH
9469# target-specific stuff:
9470
9471all_targets=
9472EMUL=
9473all_emuls=
9474all_emul_extras=
ba2be581 9475all_libpath=
252b5132
RH
9476
9477rm -f tdirs
9478
9479for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9480do
9481 if test "$targ_alias" = "all"; then
9482 all_targets=true
9483 else
9484 # Canonicalize the secondary target names.
a8100d5b 9485 result=`$ac_config_sub $targ_alias 2>/dev/null`
252b5132
RH
9486 if test -n "$result"; then
9487 targ=$result
9488 else
9489 targ=$targ_alias
9490 fi
9491
9492 . ${srcdir}/configure.tgt
9493
9494 if test "$targ" = "$target"; then
9495 EMUL=$targ_emul
9496 fi
9497
3336653a 9498 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
252b5132
RH
9499 case " $all_emuls " in
9500 *" e${i}.o "*) ;;
9501 *)
9502 all_emuls="$all_emuls e${i}.o"
9503 eval result=\$tdir_$i
9504 test -z "$result" && result=$targ_alias
9505 echo tdir_$i=$result >> tdirs
9506 ;;
9507 esac
9508 done
9509
e5a52504
MM
9510 for i in $targ_emul $targ_extra_libpath; do
9511 case " $all_libpath " in
9512 *" ${i} "*) ;;
9513 *)
9514 if test -z "$all_libpath"; then
9515 all_libpath=${i}
9516 else
9517 all_libpath="$all_libpath ${i}"
9518 fi
9519 ;;
9520 esac
9521 done
9522
9523 for i in $targ_extra_ofiles; do
9524 case " $all_emul_extras " in
9525 *" ${i} "*) ;;
9526 *)
9527 all_emul_extras="$all_emul_extras ${i}"
9528 ;;
9529 esac
9530 done
9531 fi
9532done
9533
9534
9535
9536TDIRS=tdirs
9537
9538
9539if test x${all_targets} = xtrue; then
9540 if test x${want64} = xtrue; then
9541 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
9542 else
9543 EMULATION_OFILES='$(ALL_EMULATIONS)'
9544 fi
9545 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
9546else
9547 EMULATION_OFILES=$all_emuls
9548 EMUL_EXTRA_OFILES=$all_emul_extras
9549fi
9550
9551
9552
9553
9554EMULATION_LIBPATH=$all_libpath
9555
9556
9557if test x${enable_static} = xno; then
9558 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
9559else
9560 TESTBFDLIB="../bfd/.libs/libbfd.a"
9561fi
9562
9563
9564target_vendor=${target_vendor=$host_vendor}
9565case "$target_vendor" in
9566 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
9567 *) EXTRA_SHLIB_EXTENSION= ;;
9568esac
9569
9570case "$target_os" in
9571 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
9572esac
9573
9574if test x${EXTRA_SHLIB_EXTENSION} != x ; then
9575
9576cat >>confdefs.h <<_ACEOF
9577#define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
9578_ACEOF
9579
9580fi
9581
9582 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
9583 ac_config_commands="$ac_config_commands default"
9584cat >confcache <<\_ACEOF
9585# This file is a shell script that caches the results of configure
9586# tests run on this system so they can be shared between configure
9587# scripts and configure runs, see configure's option --config-cache.
9588# It is not useful on other systems. If it contains results you don't
9589# want to keep, you may remove or edit it.
9590#
9591# config.status only pays attention to the cache file if you give it
9592# the --recheck option to rerun configure.
9593#
9594# `ac_cv_env_foo' variables (set or unset) will be overridden when
9595# loading this file, other *unset* `ac_cv_foo' will be assigned the
9596# following values.
9597
9598_ACEOF
9599
9600# The following way of writing the cache mishandles newlines in values,
9601# but we know of no workaround that is simple, portable, and efficient.
9602# So, don't put newlines in cache variables' values.
9603# Ultrix sh set writes to stderr and can't be redirected directly,
9604# and sets the high bit in the cache file unless we assign to the vars.
9605{
9606 (set) 2>&1 |
9607 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9608 *ac_space=\ *)
9609 # `set' does not quote correctly, so add quotes (double-quote
9610 # substitution turns \\\\ into \\, and sed turns \\ into \).
9611 sed -n \
9612 "s/'/'\\\\''/g;
9613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9614 ;;
9615 *)
9616 # `set' quotes correctly as required by POSIX, so do not add quotes.
9617 sed -n \
9618 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9619 ;;
9620 esac;
9621} |
9622 sed '
9623 t clear
9624 : clear
9625 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9626 t end
9627 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9628 : end' >>confcache
9629if diff $cache_file confcache >/dev/null 2>&1; then :; else
9630 if test -w $cache_file; then
9631 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9632 cat confcache >$cache_file
9633 else
9634 echo "not updating unwritable cache $cache_file"
9635 fi
9636fi
9637rm -f confcache
9638
9639test "x$prefix" = xNONE && prefix=$ac_default_prefix
9640# Let make expand exec_prefix.
9641test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9642
9643# VPATH may cause trouble with some makes, so we remove $(srcdir),
9644# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9645# trailing colons and then remove the whole line if VPATH becomes empty
9646# (actually we leave an empty line to preserve line numbers).
9647if test "x$srcdir" = x.; then
9648 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9649s/:*\$(srcdir):*/:/;
9650s/:*\${srcdir}:*/:/;
9651s/:*@srcdir@:*/:/;
9652s/^\([^=]*=[ ]*\):*/\1/;
9653s/:*$//;
9654s/^[^=]*=[ ]*$//;
9655}'
9656fi
9657
9658DEFS=-DHAVE_CONFIG_H
9659
9660ac_libobjs=
9661ac_ltlibobjs=
9662for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9663 # 1. Remove the extension, and $U if already installed.
9664 ac_i=`echo "$ac_i" |
9665 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9666 # 2. Add them.
9667 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9668 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9669done
9670LIBOBJS=$ac_libobjs
9671
9672LTLIBOBJS=$ac_ltlibobjs
9673
9674
9675if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9676 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9677Usually this means the macro was only invoked conditionally." >&5
9678echo "$as_me: error: conditional \"AMDEP\" was never defined.
9679Usually this means the macro was only invoked conditionally." >&2;}
9680 { (exit 1); exit 1; }; }
9681fi
9682if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9683 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9684Usually this means the macro was only invoked conditionally." >&5
9685echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9686Usually this means the macro was only invoked conditionally." >&2;}
9687 { (exit 1); exit 1; }; }
9688fi
9689if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
9690 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
9691Usually this means the macro was only invoked conditionally." >&5
9692echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
9693Usually this means the macro was only invoked conditionally." >&2;}
9694 { (exit 1); exit 1; }; }
9695fi
9696
9697: ${CONFIG_STATUS=./config.status}
9698ac_clean_files_save=$ac_clean_files
9699ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9700{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9701echo "$as_me: creating $CONFIG_STATUS" >&6;}
9702cat >$CONFIG_STATUS <<_ACEOF
9703#! $SHELL
9704# Generated by $as_me.
9705# Run this file to recreate the current configuration.
9706# Compiler output produced by configure, useful for debugging
9707# configure, is in config.log if it exists.
9708
9709debug=false
9710ac_cs_recheck=false
9711ac_cs_silent=false
9712SHELL=\${CONFIG_SHELL-$SHELL}
9713_ACEOF
9714
9715cat >>$CONFIG_STATUS <<\_ACEOF
9716## --------------------- ##
9717## M4sh Initialization. ##
9718## --------------------- ##
9719
9720# Be Bourne compatible
9721if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9722 emulate sh
9723 NULLCMD=:
9724 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9725 # is contrary to our usage. Disable this feature.
9726 alias -g '${1+"$@"}'='"$@"'
9727elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9728 set -o posix
9729fi
9730DUALCASE=1; export DUALCASE # for MKS sh
9731
9732# Support unset when possible.
9733if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9734 as_unset=unset
9735else
9736 as_unset=false
9737fi
9738
9739
9740# Work around bugs in pre-3.0 UWIN ksh.
9741$as_unset ENV MAIL MAILPATH
9742PS1='$ '
9743PS2='> '
9744PS4='+ '
9745
9746# NLS nuisances.
9747for as_var in \
9748 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9749 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9750 LC_TELEPHONE LC_TIME
9751do
9752 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9753 eval $as_var=C; export $as_var
9754 else
9755 $as_unset $as_var
9756 fi
9757done
9758
9759# Required to use basename.
9760if expr a : '\(a\)' >/dev/null 2>&1; then
9761 as_expr=expr
9762else
9763 as_expr=false
9764fi
9765
9766if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9767 as_basename=basename
9768else
9769 as_basename=false
9770fi
9771
9772
9773# Name of the executable.
9774as_me=`$as_basename "$0" ||
9775$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9776 X"$0" : 'X\(//\)$' \| \
9777 X"$0" : 'X\(/\)$' \| \
9778 . : '\(.\)' 2>/dev/null ||
9779echo X/"$0" |
9780 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9781 /^X\/\(\/\/\)$/{ s//\1/; q; }
9782 /^X\/\(\/\).*/{ s//\1/; q; }
9783 s/.*/./; q'`
9784
9785
9786# PATH needs CR, and LINENO needs CR and PATH.
9787# Avoid depending upon Character Ranges.
9788as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9789as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9790as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9791as_cr_digits='0123456789'
9792as_cr_alnum=$as_cr_Letters$as_cr_digits
9793
9794# The user is always right.
9795if test "${PATH_SEPARATOR+set}" != set; then
9796 echo "#! /bin/sh" >conf$$.sh
9797 echo "exit 0" >>conf$$.sh
9798 chmod +x conf$$.sh
9799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9800 PATH_SEPARATOR=';'
9801 else
9802 PATH_SEPARATOR=:
9803 fi
9804 rm -f conf$$.sh
9805fi
9806
3336653a 9807
e5a52504
MM
9808 as_lineno_1=$LINENO
9809 as_lineno_2=$LINENO
9810 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9811 test "x$as_lineno_1" != "x$as_lineno_2" &&
9812 test "x$as_lineno_3" = "x$as_lineno_2" || {
9813 # Find who we are. Look in the path if we contain no path at all
9814 # relative or not.
9815 case $0 in
9816 *[\\/]* ) as_myself=$0 ;;
9817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9823done
9824
9825 ;;
9826 esac
9827 # We did not find ourselves, most probably we were run as `sh COMMAND'
9828 # in which case we are not to be found in the path.
9829 if test "x$as_myself" = x; then
9830 as_myself=$0
9831 fi
9832 if test ! -f "$as_myself"; then
9833 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9834echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9835 { (exit 1); exit 1; }; }
252b5132 9836 fi
e5a52504
MM
9837 case $CONFIG_SHELL in
9838 '')
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9841do
9842 IFS=$as_save_IFS
9843 test -z "$as_dir" && as_dir=.
9844 for as_base in sh bash ksh sh5; do
9845 case $as_dir in
9846 /*)
9847 if ("$as_dir/$as_base" -c '
9848 as_lineno_1=$LINENO
9849 as_lineno_2=$LINENO
9850 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9851 test "x$as_lineno_1" != "x$as_lineno_2" &&
9852 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9853 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9854 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9855 CONFIG_SHELL=$as_dir/$as_base
9856 export CONFIG_SHELL
9857 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9858 fi;;
9859 esac
9860 done
252b5132 9861done
e5a52504
MM
9862;;
9863 esac
252b5132 9864
e5a52504
MM
9865 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9866 # uniformly replaced by the line number. The first 'sed' inserts a
9867 # line-number line before each line; the second 'sed' does the real
9868 # work. The second script uses 'N' to pair each line-number line
9869 # with the numbered line, and appends trailing '-' during
9870 # substitution so that $LINENO is not a special case at line end.
9871 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9872 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9873 sed '=' <$as_myself |
9874 sed '
9875 N
9876 s,$,-,
9877 : loop
9878 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9879 t loop
9880 s,-$,,
9881 s,^['$as_cr_digits']*\n,,
9882 ' >$as_me.lineno &&
9883 chmod +x $as_me.lineno ||
9884 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9885echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9886 { (exit 1); exit 1; }; }
9887
9888 # Don't try to exec as it changes $[0], causing all sort of problems
9889 # (the dirname of $[0] is not the place where we might find the
9890 # original and so on. Autoconf is especially sensible to this).
9891 . ./$as_me.lineno
9892 # Exit status is that of the last command.
9893 exit
9894}
252b5132
RH
9895
9896
e5a52504
MM
9897case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9898 *c*,-n*) ECHO_N= ECHO_C='
9899' ECHO_T=' ' ;;
9900 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9901 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9902esac
252b5132 9903
e5a52504
MM
9904if expr a : '\(a\)' >/dev/null 2>&1; then
9905 as_expr=expr
9906else
9907 as_expr=false
9908fi
252b5132 9909
e5a52504
MM
9910rm -f conf$$ conf$$.exe conf$$.file
9911echo >conf$$.file
9912if ln -s conf$$.file conf$$ 2>/dev/null; then
9913 # We could just check for DJGPP; but this test a) works b) is more generic
9914 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9915 if test -f conf$$.exe; then
9916 # Don't use ln at all; we don't have any links
9917 as_ln_s='cp -p'
252b5132 9918 else
e5a52504 9919 as_ln_s='ln -s'
252b5132 9920 fi
e5a52504
MM
9921elif ln conf$$.file conf$$ 2>/dev/null; then
9922 as_ln_s=ln
252b5132 9923else
e5a52504 9924 as_ln_s='cp -p'
252b5132 9925fi
e5a52504 9926rm -f conf$$ conf$$.exe conf$$.file
252b5132 9927
e5a52504
MM
9928if mkdir -p . 2>/dev/null; then
9929 as_mkdir_p=:
9930else
9931 test -d ./-p && rmdir ./-p
9932 as_mkdir_p=false
9933fi
252b5132 9934
e5a52504 9935as_executable_p="test -f"
252b5132 9936
e5a52504
MM
9937# Sed expression to map a string onto a valid CPP name.
9938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8e523c23 9939
e5a52504
MM
9940# Sed expression to map a string onto a valid variable name.
9941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3336653a
RH
9942
9943
e5a52504
MM
9944# IFS
9945# We need space, tab and new line, in precisely that order.
9946as_nl='
9947'
9948IFS=" $as_nl"
252b5132 9949
e5a52504
MM
9950# CDPATH.
9951$as_unset CDPATH
252b5132 9952
e5a52504 9953exec 6>&1
f234d5fe 9954
e5a52504
MM
9955# Open the log real soon, to keep \$[0] and so on meaningful, and to
9956# report actual input values of CONFIG_FILES etc. instead of their
9957# values after options handling. Logging --version etc. is OK.
9958exec 5>>config.log
9959{
9960 echo
9961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9962## Running $as_me. ##
9963_ASBOX
9964} >&5
9965cat >&5 <<_CSEOF
f234d5fe 9966
e5a52504
MM
9967This file was extended by $as_me, which was
9968generated by GNU Autoconf 2.59. Invocation command line was
9969
9970 CONFIG_FILES = $CONFIG_FILES
9971 CONFIG_HEADERS = $CONFIG_HEADERS
9972 CONFIG_LINKS = $CONFIG_LINKS
9973 CONFIG_COMMANDS = $CONFIG_COMMANDS
9974 $ $0 $@
93a6d436 9975
e5a52504
MM
9976_CSEOF
9977echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9978echo >&5
9979_ACEOF
9980
9981# Files that config.status was made for.
9982if test -n "$ac_config_files"; then
9983 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
93a6d436
JL
9984fi
9985
e5a52504
MM
9986if test -n "$ac_config_headers"; then
9987 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9988fi
9989
9990if test -n "$ac_config_links"; then
9991 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9992fi
9993
9994if test -n "$ac_config_commands"; then
9995 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9996fi
9997
9998cat >>$CONFIG_STATUS <<\_ACEOF
9999
10000ac_cs_usage="\
10001\`$as_me' instantiates files from templates according to the
10002current configuration.
10003
10004Usage: $0 [OPTIONS] [FILE]...
10005
10006 -h, --help print this help, then exit
10007 -V, --version print version number, then exit
10008 -q, --quiet do not print progress messages
10009 -d, --debug don't remove temporary files
10010 --recheck update $as_me by reconfiguring in the same conditions
10011 --file=FILE[:TEMPLATE]
10012 instantiate the configuration file FILE
10013 --header=FILE[:TEMPLATE]
10014 instantiate the configuration header FILE
10015
10016Configuration files:
10017$config_files
10018
10019Configuration headers:
10020$config_headers
10021
10022Configuration commands:
10023$config_commands
10024
10025Report bugs to <bug-autoconf@gnu.org>."
10026_ACEOF
10027
10028cat >>$CONFIG_STATUS <<_ACEOF
10029ac_cs_version="\\
10030config.status
10031configured by $0, generated by GNU Autoconf 2.59,
10032 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10033
10034Copyright (C) 2003 Free Software Foundation, Inc.
10035This config.status script is free software; the Free Software Foundation
10036gives unlimited permission to copy, distribute and modify it."
10037srcdir=$srcdir
10038INSTALL="$INSTALL"
10039_ACEOF
10040
10041cat >>$CONFIG_STATUS <<\_ACEOF
10042# If no file are specified by the user, then we need to provide default
10043# value. By we need to know if files were specified by the user.
10044ac_need_defaults=:
10045while test $# != 0
10046do
10047 case $1 in
10048 --*=*)
10049 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10050 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10051 ac_shift=:
252b5132 10052 ;;
e5a52504
MM
10053 -*)
10054 ac_option=$1
10055 ac_optarg=$2
10056 ac_shift=shift
252b5132 10057 ;;
e5a52504
MM
10058 *) # This is not an option, so the user has probably given explicit
10059 # arguments.
10060 ac_option=$1
10061 ac_need_defaults=false;;
10062 esac
252b5132 10063
e5a52504
MM
10064 case $ac_option in
10065 # Handling of the options.
10066_ACEOF
10067cat >>$CONFIG_STATUS <<\_ACEOF
10068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10069 ac_cs_recheck=: ;;
10070 --version | --vers* | -V )
10071 echo "$ac_cs_version"; exit 0 ;;
10072 --he | --h)
10073 # Conflict between --help and --header
10074 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10075Try \`$0 --help' for more information." >&5
10076echo "$as_me: error: ambiguous option: $1
10077Try \`$0 --help' for more information." >&2;}
10078 { (exit 1); exit 1; }; };;
10079 --help | --hel | -h )
10080 echo "$ac_cs_usage"; exit 0 ;;
10081 --debug | --d* | -d )
10082 debug=: ;;
10083 --file | --fil | --fi | --f )
10084 $ac_shift
10085 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10086 ac_need_defaults=false;;
10087 --header | --heade | --head | --hea )
10088 $ac_shift
10089 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10090 ac_need_defaults=false;;
10091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10092 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10093 ac_cs_silent=: ;;
252b5132 10094
e5a52504
MM
10095 # This is an error.
10096 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10097Try \`$0 --help' for more information." >&5
10098echo "$as_me: error: unrecognized option: $1
10099Try \`$0 --help' for more information." >&2;}
10100 { (exit 1); exit 1; }; } ;;
252b5132 10101
e5a52504 10102 *) ac_config_targets="$ac_config_targets $1" ;;
252b5132 10103
e5a52504
MM
10104 esac
10105 shift
10106done
252b5132 10107
e5a52504 10108ac_configure_extra_args=
252b5132 10109
e5a52504
MM
10110if $ac_cs_silent; then
10111 exec 6>/dev/null
10112 ac_configure_extra_args="$ac_configure_extra_args --silent"
10113fi
252b5132 10114
e5a52504
MM
10115_ACEOF
10116cat >>$CONFIG_STATUS <<_ACEOF
10117if \$ac_cs_recheck; then
10118 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10119 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10120fi
10121
10122_ACEOF
10123
10124cat >>$CONFIG_STATUS <<_ACEOF
252b5132 10125#
e5a52504 10126# INIT-COMMANDS section.
252b5132 10127#
252b5132 10128
e5a52504
MM
10129AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10130
10131_ACEOF
10132
10133
10134
10135cat >>$CONFIG_STATUS <<\_ACEOF
10136for ac_config_target in $ac_config_targets
252b5132 10137do
e5a52504
MM
10138 case "$ac_config_target" in
10139 # Handling of arguments.
10140 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10141 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10142 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10143 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10144 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10145 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10146echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10147 { (exit 1); exit 1; }; };;
252b5132
RH
10148 esac
10149done
10150
e5a52504
MM
10151# If the user did not use the arguments to specify the items to instantiate,
10152# then the envvar interface is used. Set only those that are not.
10153# We use the long form for the default assignment because of an extremely
10154# bizarre bug on SunOS 4.1.3.
10155if $ac_need_defaults; then
10156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10159fi
10160
10161# Have a temporary directory for convenience. Make it in the build tree
10162# simply because there is no reason to put it here, and in addition,
10163# creating and moving files from /tmp can sometimes cause problems.
10164# Create a temporary directory, and hook for its removal unless debugging.
10165$debug ||
10166{
10167 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10168 trap '{ (exit 1); exit 1; }' 1 2 13 15
10169}
10170
10171# Create a (secure) tmp directory for tmp files.
252b5132 10172
e5a52504
MM
10173{
10174 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10175 test -n "$tmp" && test -d "$tmp"
10176} ||
10177{
10178 tmp=./confstat$$-$RANDOM
10179 (umask 077 && mkdir $tmp)
10180} ||
10181{
10182 echo "$me: cannot create a temporary directory in ." >&2
10183 { (exit 1); exit 1; }
10184}
252b5132 10185
e5a52504 10186_ACEOF
252b5132 10187
e5a52504
MM
10188cat >>$CONFIG_STATUS <<_ACEOF
10189
10190#
10191# CONFIG_FILES section.
10192#
10193
10194# No need to generate the scripts if there are no CONFIG_FILES.
10195# This happens for instance when ./config.status config.h
10196if test -n "\$CONFIG_FILES"; then
10197 # Protect against being on the right side of a sed subst in config.status.
10198 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10199 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10200s,@SHELL@,$SHELL,;t t
10201s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10202s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10203s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10204s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10205s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10206s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10207s,@exec_prefix@,$exec_prefix,;t t
10208s,@prefix@,$prefix,;t t
10209s,@program_transform_name@,$program_transform_name,;t t
10210s,@bindir@,$bindir,;t t
10211s,@sbindir@,$sbindir,;t t
10212s,@libexecdir@,$libexecdir,;t t
10213s,@datadir@,$datadir,;t t
10214s,@sysconfdir@,$sysconfdir,;t t
10215s,@sharedstatedir@,$sharedstatedir,;t t
10216s,@localstatedir@,$localstatedir,;t t
10217s,@libdir@,$libdir,;t t
10218s,@includedir@,$includedir,;t t
10219s,@oldincludedir@,$oldincludedir,;t t
10220s,@infodir@,$infodir,;t t
10221s,@mandir@,$mandir,;t t
10222s,@build_alias@,$build_alias,;t t
10223s,@host_alias@,$host_alias,;t t
10224s,@target_alias@,$target_alias,;t t
10225s,@DEFS@,$DEFS,;t t
10226s,@ECHO_C@,$ECHO_C,;t t
10227s,@ECHO_N@,$ECHO_N,;t t
10228s,@ECHO_T@,$ECHO_T,;t t
10229s,@LIBS@,$LIBS,;t t
10230s,@build@,$build,;t t
10231s,@build_cpu@,$build_cpu,;t t
10232s,@build_vendor@,$build_vendor,;t t
10233s,@build_os@,$build_os,;t t
10234s,@host@,$host,;t t
10235s,@host_cpu@,$host_cpu,;t t
10236s,@host_vendor@,$host_vendor,;t t
10237s,@host_os@,$host_os,;t t
10238s,@target@,$target,;t t
10239s,@target_cpu@,$target_cpu,;t t
10240s,@target_vendor@,$target_vendor,;t t
10241s,@target_os@,$target_os,;t t
10242s,@CC@,$CC,;t t
10243s,@CFLAGS@,$CFLAGS,;t t
10244s,@LDFLAGS@,$LDFLAGS,;t t
10245s,@CPPFLAGS@,$CPPFLAGS,;t t
10246s,@ac_ct_CC@,$ac_ct_CC,;t t
10247s,@EXEEXT@,$EXEEXT,;t t
10248s,@OBJEXT@,$OBJEXT,;t t
10249s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10250s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10251s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10252s,@CYGPATH_W@,$CYGPATH_W,;t t
10253s,@PACKAGE@,$PACKAGE,;t t
10254s,@VERSION@,$VERSION,;t t
10255s,@ACLOCAL@,$ACLOCAL,;t t
10256s,@AUTOCONF@,$AUTOCONF,;t t
10257s,@AUTOMAKE@,$AUTOMAKE,;t t
10258s,@AUTOHEADER@,$AUTOHEADER,;t t
10259s,@MAKEINFO@,$MAKEINFO,;t t
10260s,@AMTAR@,$AMTAR,;t t
10261s,@install_sh@,$install_sh,;t t
10262s,@STRIP@,$STRIP,;t t
10263s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10264s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10265s,@AWK@,$AWK,;t t
10266s,@SET_MAKE@,$SET_MAKE,;t t
10267s,@am__leading_dot@,$am__leading_dot,;t t
10268s,@DEPDIR@,$DEPDIR,;t t
10269s,@am__include@,$am__include,;t t
10270s,@am__quote@,$am__quote,;t t
10271s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10272s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10273s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10274s,@CCDEPMODE@,$CCDEPMODE,;t t
10275s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10276s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10277s,@LN_S@,$LN_S,;t t
10278s,@RANLIB@,$RANLIB,;t t
10279s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10280s,@LIBTOOL@,$LIBTOOL,;t t
10281s,@use_sysroot@,$use_sysroot,;t t
10282s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
10283s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
10284s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10285s,@CPP@,$CPP,;t t
10286s,@EGREP@,$EGREP,;t t
10287s,@ALLOCA@,$ALLOCA,;t t
10288s,@USE_NLS@,$USE_NLS,;t t
10289s,@MSGFMT@,$MSGFMT,;t t
10290s,@GMSGFMT@,$GMSGFMT,;t t
10291s,@XGETTEXT@,$XGETTEXT,;t t
10292s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10293s,@CATALOGS@,$CATALOGS,;t t
10294s,@CATOBJEXT@,$CATOBJEXT,;t t
10295s,@DATADIRNAME@,$DATADIRNAME,;t t
10296s,@GMOFILES@,$GMOFILES,;t t
10297s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10298s,@INTLDEPS@,$INTLDEPS,;t t
10299s,@INTLLIBS@,$INTLLIBS,;t t
10300s,@INTLOBJS@,$INTLOBJS,;t t
10301s,@POFILES@,$POFILES,;t t
10302s,@POSUB@,$POSUB,;t t
10303s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10304s,@GT_NO@,$GT_NO,;t t
10305s,@GT_YES@,$GT_YES,;t t
10306s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10307s,@l@,$l,;t t
10308s,@YACC@,$YACC,;t t
10309s,@LEX@,$LEX,;t t
10310s,@LEXLIB@,$LEXLIB,;t t
10311s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10312s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10313s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10314s,@MAINT@,$MAINT,;t t
10315s,@HDEFINES@,$HDEFINES,;t t
10316s,@HOSTING_CRT0@,$HOSTING_CRT0,;t t
10317s,@HOSTING_LIBS@,$HOSTING_LIBS,;t t
10318s,@NATIVE_LIB_DIRS@,$NATIVE_LIB_DIRS,;t t
10319s,@STRINGIFY@,$STRINGIFY,;t t
10320s,@EMUL@,$EMUL,;t t
10321s,@EMULATION_OFILES@,$EMULATION_OFILES,;t t
10322s,@EMUL_EXTRA_OFILES@,$EMUL_EXTRA_OFILES,;t t
10323s,@LIB_PATH@,$LIB_PATH,;t t
10324s,@EMULATION_LIBPATH@,$EMULATION_LIBPATH,;t t
10325s,@TESTBFDLIB@,$TESTBFDLIB,;t t
10326s,@LIBOBJS@,$LIBOBJS,;t t
10327s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10328/@TDIRS@/r $TDIRS
10329s,@TDIRS@,,;t t
252b5132 10330CEOF
252b5132 10331
e5a52504
MM
10332_ACEOF
10333
10334 cat >>$CONFIG_STATUS <<\_ACEOF
10335 # Split the substitutions into bite-sized pieces for seds with
10336 # small command number limits, like on Digital OSF/1 and HP-UX.
10337 ac_max_sed_lines=48
10338 ac_sed_frag=1 # Number of current file.
10339 ac_beg=1 # First line for current file.
10340 ac_end=$ac_max_sed_lines # Line after last line for current file.
10341 ac_more_lines=:
10342 ac_sed_cmds=
10343 while $ac_more_lines; do
10344 if test $ac_beg -gt 1; then
10345 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10346 else
10347 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10348 fi
10349 if test ! -s $tmp/subs.frag; then
10350 ac_more_lines=false
252b5132 10351 else
e5a52504
MM
10352 # The purpose of the label and of the branching condition is to
10353 # speed up the sed processing (if there are no `@' at all, there
10354 # is no need to browse any of the substitutions).
10355 # These are the two extra sed commands mentioned above.
10356 (echo ':t
10357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10358 if test -z "$ac_sed_cmds"; then
10359 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10360 else
10361 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10362 fi
10363 ac_sed_frag=`expr $ac_sed_frag + 1`
10364 ac_beg=$ac_end
10365 ac_end=`expr $ac_end + $ac_max_sed_lines`
252b5132 10366 fi
e5a52504
MM
10367 done
10368 if test -z "$ac_sed_cmds"; then
10369 ac_sed_cmds=cat
252b5132 10370 fi
e5a52504 10371fi # test -n "$CONFIG_FILES"
252b5132 10372
e5a52504
MM
10373_ACEOF
10374cat >>$CONFIG_STATUS <<\_ACEOF
10375for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
252b5132 10376 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e5a52504
MM
10377 case $ac_file in
10378 - | *:- | *:-:* ) # input from stdin
10379 cat >$tmp/stdin
10380 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10382 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10384 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10385 esac
10386
e5a52504
MM
10387 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10388 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10389$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10390 X"$ac_file" : 'X\(//\)[^/]' \| \
10391 X"$ac_file" : 'X\(//\)$' \| \
10392 X"$ac_file" : 'X\(/\)' \| \
10393 . : '\(.\)' 2>/dev/null ||
10394echo X"$ac_file" |
10395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10397 /^X\(\/\/\)$/{ s//\1/; q; }
10398 /^X\(\/\).*/{ s//\1/; q; }
10399 s/.*/./; q'`
10400 { if $as_mkdir_p; then
10401 mkdir -p "$ac_dir"
252b5132 10402 else
e5a52504
MM
10403 as_dir="$ac_dir"
10404 as_dirs=
10405 while test ! -d "$as_dir"; do
10406 as_dirs="$as_dir $as_dirs"
10407 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10408$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10409 X"$as_dir" : 'X\(//\)[^/]' \| \
10410 X"$as_dir" : 'X\(//\)$' \| \
10411 X"$as_dir" : 'X\(/\)' \| \
10412 . : '\(.\)' 2>/dev/null ||
10413echo X"$as_dir" |
10414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10416 /^X\(\/\/\)$/{ s//\1/; q; }
10417 /^X\(\/\).*/{ s//\1/; q; }
10418 s/.*/./; q'`
10419 done
10420 test ! -n "$as_dirs" || mkdir $as_dirs
10421 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10422echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10423 { (exit 1); exit 1; }; }; }
10424
10425 ac_builddir=.
10426
10427if test "$ac_dir" != .; then
10428 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10429 # A "../" for each directory in $ac_dir_suffix.
10430 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10431else
10432 ac_dir_suffix= ac_top_builddir=
10433fi
252b5132 10434
e5a52504
MM
10435case $srcdir in
10436 .) # No --srcdir option. We are building in place.
10437 ac_srcdir=.
10438 if test -z "$ac_top_builddir"; then
10439 ac_top_srcdir=.
10440 else
10441 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10442 fi ;;
10443 [\\/]* | ?:[\\/]* ) # Absolute path.
10444 ac_srcdir=$srcdir$ac_dir_suffix;
10445 ac_top_srcdir=$srcdir ;;
252b5132 10446 *) # Relative path.
e5a52504
MM
10447 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10448 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10449esac
10450
10451# Do not use `cd foo && pwd` to compute absolute paths, because
10452# the directories may not exist.
10453case `pwd` in
10454.) ac_abs_builddir="$ac_dir";;
10455*)
10456 case "$ac_dir" in
10457 .) ac_abs_builddir=`pwd`;;
10458 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10459 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10460 esac;;
10461esac
10462case $ac_abs_builddir in
10463.) ac_abs_top_builddir=${ac_top_builddir}.;;
10464*)
10465 case ${ac_top_builddir}. in
10466 .) ac_abs_top_builddir=$ac_abs_builddir;;
10467 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10468 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10469 esac;;
10470esac
10471case $ac_abs_builddir in
10472.) ac_abs_srcdir=$ac_srcdir;;
10473*)
10474 case $ac_srcdir in
10475 .) ac_abs_srcdir=$ac_abs_builddir;;
10476 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10477 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10478 esac;;
10479esac
10480case $ac_abs_builddir in
10481.) ac_abs_top_srcdir=$ac_top_srcdir;;
10482*)
10483 case $ac_top_srcdir in
10484 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10485 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10486 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10487 esac;;
10488esac
252b5132 10489
252b5132 10490
e5a52504
MM
10491 case $INSTALL in
10492 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10493 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
10494 esac
10495
e5a52504
MM
10496 if test x"$ac_file" != x-; then
10497 { echo "$as_me:$LINENO: creating $ac_file" >&5
10498echo "$as_me: creating $ac_file" >&6;}
10499 rm -f "$ac_file"
10500 fi
10501 # Let's still pretend it is `configure' which instantiates (i.e., don't
10502 # use $as_me), people would be surprised to read:
10503 # /* config.h. Generated by config.status. */
10504 if test x"$ac_file" = x-; then
10505 configure_input=
10506 else
10507 configure_input="$ac_file. "
10508 fi
10509 configure_input=$configure_input"Generated from `echo $ac_file_in |
10510 sed 's,.*/,,'` by configure."
10511
10512 # First look for the input files in the build tree, otherwise in the
10513 # src tree.
10514 ac_file_inputs=`IFS=:
10515 for f in $ac_file_in; do
10516 case $f in
10517 -) echo $tmp/stdin ;;
10518 [\\/$]*)
10519 # Absolute (can't be DOS-style, as IFS=:)
10520 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10521echo "$as_me: error: cannot find input file: $f" >&2;}
10522 { (exit 1); exit 1; }; }
10523 echo "$f";;
10524 *) # Relative
10525 if test -f "$f"; then
10526 # Build tree
10527 echo "$f"
10528 elif test -f "$srcdir/$f"; then
10529 # Source tree
10530 echo "$srcdir/$f"
10531 else
10532 # /dev/null tree
10533 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10534echo "$as_me: error: cannot find input file: $f" >&2;}
10535 { (exit 1); exit 1; }; }
10536 fi;;
10537 esac
10538 done` || { (exit 1); exit 1; }
10539_ACEOF
10540cat >>$CONFIG_STATUS <<_ACEOF
10541 sed "$ac_vpsub
10542$extrasub
10543_ACEOF
10544cat >>$CONFIG_STATUS <<\_ACEOF
10545:t
10546/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10547s,@configure_input@,$configure_input,;t t
10548s,@srcdir@,$ac_srcdir,;t t
10549s,@abs_srcdir@,$ac_abs_srcdir,;t t
10550s,@top_srcdir@,$ac_top_srcdir,;t t
10551s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10552s,@builddir@,$ac_builddir,;t t
10553s,@abs_builddir@,$ac_abs_builddir,;t t
10554s,@top_builddir@,$ac_top_builddir,;t t
10555s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10556s,@INSTALL@,$ac_INSTALL,;t t
10557" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10558 rm -f $tmp/stdin
10559 if test x"$ac_file" != x-; then
10560 mv $tmp/out $ac_file
10561 else
10562 cat $tmp/out
10563 rm -f $tmp/out
10564 fi
10565
10566done
10567_ACEOF
10568cat >>$CONFIG_STATUS <<\_ACEOF
10569
10570#
10571# CONFIG_HEADER section.
10572#
252b5132
RH
10573
10574# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10575# NAME is the cpp macro being defined and VALUE is the value it is being given.
10576#
10577# ac_d sets the value in "#define NAME VALUE" lines.
e5a52504
MM
10578ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10579ac_dB='[ ].*$,\1#\2'
10580ac_dC=' '
10581ac_dD=',;t'
10582# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10583ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10584ac_uB='$,\1#\2define\3'
252b5132 10585ac_uC=' '
e5a52504
MM
10586ac_uD=',;t'
10587
10588for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 10589 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e5a52504
MM
10590 case $ac_file in
10591 - | *:- | *:-:* ) # input from stdin
10592 cat >$tmp/stdin
10593 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10594 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10595 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10596 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10597 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10598 esac
10599
e5a52504
MM
10600 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10601echo "$as_me: creating $ac_file" >&6;}
10602
10603 # First look for the input files in the build tree, otherwise in the
10604 # src tree.
10605 ac_file_inputs=`IFS=:
10606 for f in $ac_file_in; do
10607 case $f in
10608 -) echo $tmp/stdin ;;
10609 [\\/$]*)
10610 # Absolute (can't be DOS-style, as IFS=:)
10611 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10612echo "$as_me: error: cannot find input file: $f" >&2;}
10613 { (exit 1); exit 1; }; }
10614 # Do quote $f, to prevent DOS paths from being IFS'd.
10615 echo "$f";;
10616 *) # Relative
10617 if test -f "$f"; then
10618 # Build tree
10619 echo "$f"
10620 elif test -f "$srcdir/$f"; then
10621 # Source tree
10622 echo "$srcdir/$f"
10623 else
10624 # /dev/null tree
10625 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10626echo "$as_me: error: cannot find input file: $f" >&2;}
10627 { (exit 1); exit 1; }; }
10628 fi;;
10629 esac
10630 done` || { (exit 1); exit 1; }
10631 # Remove the trailing spaces.
10632 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10633
10634_ACEOF
10635
10636# Transform confdefs.h into two sed scripts, `conftest.defines' and
10637# `conftest.undefs', that substitutes the proper values into
10638# config.h.in to produce config.h. The first handles `#define'
10639# templates, and the second `#undef' templates.
10640# And first: Protect against being on the right side of a sed subst in
10641# config.status. Protect against being in an unquoted here document
10642# in config.status.
10643rm -f conftest.defines conftest.undefs
10644# Using a here document instead of a string reduces the quoting nightmare.
10645# Putting comments in sed scripts is not portable.
10646#
10647# `end' is used to avoid that the second main sed command (meant for
10648# 0-ary CPP macros) applies to n-ary macro definitions.
10649# See the Autoconf documentation for `clear'.
10650cat >confdef2sed.sed <<\_ACEOF
10651s/[\\&,]/\\&/g
10652s,[\\$`],\\&,g
10653t clear
10654: clear
10655s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10656t end
10657s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10658: end
10659_ACEOF
10660# If some macros were called several times there might be several times
10661# the same #defines, which is useless. Nevertheless, we may not want to
10662# sort them, since we want the *last* AC-DEFINE to be honored.
10663uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10664sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10665rm -f confdef2sed.sed
252b5132
RH
10666
10667# This sed command replaces #undef with comments. This is necessary, for
10668# example, in the case of _POSIX_SOURCE, which is predefined and required
10669# on some systems where configure will not decide to define it.
e5a52504
MM
10670cat >>conftest.undefs <<\_ACEOF
10671s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10672_ACEOF
10673
10674# Break up conftest.defines because some shells have a limit on the size
10675# of here documents, and old seds have small limits too (100 cmds).
10676echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10677echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10678echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10679echo ' :' >>$CONFIG_STATUS
10680rm -f conftest.tail
10681while grep . conftest.defines >/dev/null
10682do
10683 # Write a limited-size here document to $tmp/defines.sed.
10684 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10685 # Speed up: don't consider the non `#define' lines.
10686 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10687 # Work around the forget-to-reset-the-flag bug.
10688 echo 't clr' >>$CONFIG_STATUS
10689 echo ': clr' >>$CONFIG_STATUS
10690 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10691 echo 'CEOF
10692 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10693 rm -f $tmp/in
10694 mv $tmp/out $tmp/in
10695' >>$CONFIG_STATUS
10696 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10697 rm -f conftest.defines
10698 mv conftest.tail conftest.defines
10699done
10700rm -f conftest.defines
10701echo ' fi # grep' >>$CONFIG_STATUS
10702echo >>$CONFIG_STATUS
252b5132 10703
e5a52504
MM
10704# Break up conftest.undefs because some shells have a limit on the size
10705# of here documents, and old seds have small limits too (100 cmds).
10706echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 10707rm -f conftest.tail
e5a52504 10708while grep . conftest.undefs >/dev/null
252b5132 10709do
e5a52504
MM
10710 # Write a limited-size here document to $tmp/undefs.sed.
10711 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10712 # Speed up: don't consider the non `#undef'
10713 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10714 # Work around the forget-to-reset-the-flag bug.
10715 echo 't clr' >>$CONFIG_STATUS
10716 echo ': clr' >>$CONFIG_STATUS
10717 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 10718 echo 'CEOF
e5a52504
MM
10719 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10720 rm -f $tmp/in
10721 mv $tmp/out $tmp/in
10722' >>$CONFIG_STATUS
10723 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10724 rm -f conftest.undefs
10725 mv conftest.tail conftest.undefs
252b5132 10726done
e5a52504
MM
10727rm -f conftest.undefs
10728
10729cat >>$CONFIG_STATUS <<\_ACEOF
10730 # Let's still pretend it is `configure' which instantiates (i.e., don't
10731 # use $as_me), people would be surprised to read:
10732 # /* config.h. Generated by config.status. */
10733 if test x"$ac_file" = x-; then
10734 echo "/* Generated by configure. */" >$tmp/config.h
10735 else
10736 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10737 fi
10738 cat $tmp/in >>$tmp/config.h
10739 rm -f $tmp/in
10740 if test x"$ac_file" != x-; then
10741 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10742 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10743echo "$as_me: $ac_file is unchanged" >&6;}
10744 else
10745 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10746$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10747 X"$ac_file" : 'X\(//\)[^/]' \| \
10748 X"$ac_file" : 'X\(//\)$' \| \
10749 X"$ac_file" : 'X\(/\)' \| \
10750 . : '\(.\)' 2>/dev/null ||
10751echo X"$ac_file" |
10752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10754 /^X\(\/\/\)$/{ s//\1/; q; }
10755 /^X\(\/\).*/{ s//\1/; q; }
10756 s/.*/./; q'`
10757 { if $as_mkdir_p; then
10758 mkdir -p "$ac_dir"
252b5132 10759 else
e5a52504
MM
10760 as_dir="$ac_dir"
10761 as_dirs=
10762 while test ! -d "$as_dir"; do
10763 as_dirs="$as_dir $as_dirs"
10764 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10766 X"$as_dir" : 'X\(//\)[^/]' \| \
10767 X"$as_dir" : 'X\(//\)$' \| \
10768 X"$as_dir" : 'X\(/\)' \| \
10769 . : '\(.\)' 2>/dev/null ||
10770echo X"$as_dir" |
10771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10773 /^X\(\/\/\)$/{ s//\1/; q; }
10774 /^X\(\/\).*/{ s//\1/; q; }
10775 s/.*/./; q'`
10776 done
10777 test ! -n "$as_dirs" || mkdir $as_dirs
10778 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10779echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10780 { (exit 1); exit 1; }; }; }
10781
10782 rm -f $ac_file
10783 mv $tmp/config.h $ac_file
252b5132 10784 fi
e5a52504
MM
10785 else
10786 cat $tmp/config.h
10787 rm -f $tmp/config.h
252b5132 10788 fi
e5a52504
MM
10789# Compute $ac_file's index in $config_headers.
10790_am_stamp_count=1
10791for _am_header in $config_headers :; do
10792 case $_am_header in
10793 $ac_file | $ac_file:* )
10794 break ;;
10795 * )
10796 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10797 esac
10798done
10799echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10800$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10801 X$ac_file : 'X\(//\)[^/]' \| \
10802 X$ac_file : 'X\(//\)$' \| \
10803 X$ac_file : 'X\(/\)' \| \
10804 . : '\(.\)' 2>/dev/null ||
10805echo X$ac_file |
10806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10808 /^X\(\/\/\)$/{ s//\1/; q; }
10809 /^X\(\/\).*/{ s//\1/; q; }
10810 s/.*/./; q'`/stamp-h$_am_stamp_count
10811done
10812_ACEOF
10813cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 10814
e5a52504
MM
10815#
10816# CONFIG_COMMANDS section.
10817#
10818for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10819 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10820 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10821 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10822$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10823 X"$ac_dest" : 'X\(//\)[^/]' \| \
10824 X"$ac_dest" : 'X\(//\)$' \| \
10825 X"$ac_dest" : 'X\(/\)' \| \
10826 . : '\(.\)' 2>/dev/null ||
10827echo X"$ac_dest" |
10828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10829 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10830 /^X\(\/\/\)$/{ s//\1/; q; }
10831 /^X\(\/\).*/{ s//\1/; q; }
10832 s/.*/./; q'`
10833 { if $as_mkdir_p; then
10834 mkdir -p "$ac_dir"
10835 else
10836 as_dir="$ac_dir"
10837 as_dirs=
10838 while test ! -d "$as_dir"; do
10839 as_dirs="$as_dir $as_dirs"
10840 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10841$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10842 X"$as_dir" : 'X\(//\)[^/]' \| \
10843 X"$as_dir" : 'X\(//\)$' \| \
10844 X"$as_dir" : 'X\(/\)' \| \
10845 . : '\(.\)' 2>/dev/null ||
10846echo X"$as_dir" |
10847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10849 /^X\(\/\/\)$/{ s//\1/; q; }
10850 /^X\(\/\).*/{ s//\1/; q; }
10851 s/.*/./; q'`
10852 done
10853 test ! -n "$as_dirs" || mkdir $as_dirs
10854 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10855echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10856 { (exit 1); exit 1; }; }; }
252b5132 10857
e5a52504 10858 ac_builddir=.
252b5132 10859
e5a52504
MM
10860if test "$ac_dir" != .; then
10861 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10862 # A "../" for each directory in $ac_dir_suffix.
10863 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10864else
10865 ac_dir_suffix= ac_top_builddir=
10866fi
10867
10868case $srcdir in
10869 .) # No --srcdir option. We are building in place.
10870 ac_srcdir=.
10871 if test -z "$ac_top_builddir"; then
10872 ac_top_srcdir=.
10873 else
10874 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10875 fi ;;
10876 [\\/]* | ?:[\\/]* ) # Absolute path.
10877 ac_srcdir=$srcdir$ac_dir_suffix;
10878 ac_top_srcdir=$srcdir ;;
10879 *) # Relative path.
10880 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10881 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10882esac
10883
10884# Do not use `cd foo && pwd` to compute absolute paths, because
10885# the directories may not exist.
10886case `pwd` in
10887.) ac_abs_builddir="$ac_dir";;
10888*)
10889 case "$ac_dir" in
10890 .) ac_abs_builddir=`pwd`;;
10891 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10892 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10893 esac;;
10894esac
10895case $ac_abs_builddir in
10896.) ac_abs_top_builddir=${ac_top_builddir}.;;
10897*)
10898 case ${ac_top_builddir}. in
10899 .) ac_abs_top_builddir=$ac_abs_builddir;;
10900 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10901 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10902 esac;;
10903esac
10904case $ac_abs_builddir in
10905.) ac_abs_srcdir=$ac_srcdir;;
10906*)
10907 case $ac_srcdir in
10908 .) ac_abs_srcdir=$ac_abs_builddir;;
10909 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10910 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10911 esac;;
10912esac
10913case $ac_abs_builddir in
10914.) ac_abs_top_srcdir=$ac_top_srcdir;;
10915*)
10916 case $ac_top_srcdir in
10917 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10918 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10919 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10920 esac;;
10921esac
10922
10923
10924 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10925echo "$as_me: executing $ac_dest commands" >&6;}
10926 case $ac_dest in
10927 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10928 # Strip MF so we end up with the name of the file.
10929 mf=`echo "$mf" | sed -e 's/:.*$//'`
10930 # Check whether this is an Automake generated Makefile or not.
10931 # We used to match only the files named `Makefile.in', but
10932 # some people rename them; so instead we look at the file content.
10933 # Grep'ing the first line is not enough: some people post-process
10934 # each Makefile.in and add a new line on top of each file to say so.
10935 # So let's grep whole file.
10936 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10937 dirpart=`(dirname "$mf") 2>/dev/null ||
10938$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10939 X"$mf" : 'X\(//\)[^/]' \| \
10940 X"$mf" : 'X\(//\)$' \| \
10941 X"$mf" : 'X\(/\)' \| \
10942 . : '\(.\)' 2>/dev/null ||
10943echo X"$mf" |
10944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10945 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10946 /^X\(\/\/\)$/{ s//\1/; q; }
10947 /^X\(\/\).*/{ s//\1/; q; }
10948 s/.*/./; q'`
10949 else
10950 continue
10951 fi
10952 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10953 # Extract the definition of DEP_FILES from the Makefile without
10954 # running `make'.
10955 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10956 test -z "$DEPDIR" && continue
10957 # When using ansi2knr, U may be empty or an underscore; expand it
10958 U=`sed -n -e '/^U = / s///p' < "$mf"`
10959 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10960 # We invoke sed twice because it is the simplest approach to
10961 # changing $(DEPDIR) to its actual value in the expansion.
10962 for file in `sed -n -e '
10963 /^DEP_FILES = .*\\\\$/ {
10964 s/^DEP_FILES = //
10965 :loop
10966 s/\\\\$//
10967 p
10968 n
10969 /\\\\$/ b loop
10970 p
10971 }
10972 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10973 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10974 # Make sure the directory exists.
10975 test -f "$dirpart/$file" && continue
10976 fdir=`(dirname "$file") 2>/dev/null ||
10977$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10978 X"$file" : 'X\(//\)[^/]' \| \
10979 X"$file" : 'X\(//\)$' \| \
10980 X"$file" : 'X\(/\)' \| \
10981 . : '\(.\)' 2>/dev/null ||
10982echo X"$file" |
10983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10985 /^X\(\/\/\)$/{ s//\1/; q; }
10986 /^X\(\/\).*/{ s//\1/; q; }
10987 s/.*/./; q'`
10988 { if $as_mkdir_p; then
10989 mkdir -p $dirpart/$fdir
10990 else
10991 as_dir=$dirpart/$fdir
10992 as_dirs=
10993 while test ! -d "$as_dir"; do
10994 as_dirs="$as_dir $as_dirs"
10995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10996$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10997 X"$as_dir" : 'X\(//\)[^/]' \| \
10998 X"$as_dir" : 'X\(//\)$' \| \
10999 X"$as_dir" : 'X\(/\)' \| \
11000 . : '\(.\)' 2>/dev/null ||
11001echo X"$as_dir" |
11002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11004 /^X\(\/\/\)$/{ s//\1/; q; }
11005 /^X\(\/\).*/{ s//\1/; q; }
11006 s/.*/./; q'`
11007 done
11008 test ! -n "$as_dirs" || mkdir $as_dirs
11009 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11010echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11011 { (exit 1); exit 1; }; }; }
11012
11013 # echo "creating $dirpart/$file"
11014 echo '# dummy' > "$dirpart/$file"
11015 done
11016done
11017 ;;
11018 default ) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11019 esac
11020done
11021_ACEOF
11022
11023cat >>$CONFIG_STATUS <<\_ACEOF
11024
11025{ (exit 0); exit 0; }
11026_ACEOF
252b5132 11027chmod +x $CONFIG_STATUS
e5a52504
MM
11028ac_clean_files=$ac_clean_files_save
11029
11030
11031# configure is writing to config.log, and then calls config.status.
11032# config.status does its own redirection, appending to config.log.
11033# Unfortunately, on DOS this fails, as config.log is still kept open
11034# by configure, so config.status won't be able to write to it; its
11035# output is simply discarded. So we exec the FD to /dev/null,
11036# effectively closing config.log, so it can be properly (re)opened and
11037# appended to by config.status. When coming back to configure, we
11038# need to make the FD available again.
11039if test "$no_create" != yes; then
11040 ac_cs_success=:
11041 ac_config_status_args=
11042 test "$silent" = yes &&
11043 ac_config_status_args="$ac_config_status_args --quiet"
11044 exec 5>/dev/null
11045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11046 exec 5>>config.log
11047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11048 # would make configure fail if this is the last instruction.
11049 $ac_cs_success || { (exit 1); exit 1; }
11050fi
252b5132 11051