]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/configure
* warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
[thirdparty/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
42ecbf5e 3# Generated by GNU Autoconf 2.59.
252b5132 4#
42ecbf5e 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
42ecbf5e
DJ
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
42ecbf5e
DJ
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
42ecbf5e
DJ
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="ar.c"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL WARN_CFLAGS NO_WERROR YACC LEX LEXLIB LEX_OUTPUT_ROOT 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT HDEFINES AR CC_FOR_BUILD EXEEXT_FOR_BUILD DEMANGLER_NAME NLMCONV_DEFS BUILD_NLMCONV BUILD_SRCONV BUILD_DLLTOOL DLLTOOL_DEFS BUILD_WINDRES BUILD_DLLWRAP BUILD_MISC OBJDUMP_DEFS EMULATION EMULATION_VECTOR LIBOBJS LTLIBOBJS'
313ac_subst_files=''
252b5132
RH
314
315# Initialize some variables set by options.
42ecbf5e
DJ
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
42ecbf5e 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
42ecbf5e
DJ
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
42ecbf5e 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
42ecbf5e 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
42ecbf5e 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
42ecbf5e 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
42ecbf5e 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
42ecbf5e
DJ
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
42ecbf5e 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
42ecbf5e 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
42ecbf5e 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
42ecbf5e 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
42ecbf5e 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
42ecbf5e
DJ
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
42ecbf5e 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
42ecbf5e 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
42ecbf5e 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
42ecbf5e 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
42ecbf5e 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
42ecbf5e 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
42ecbf5e 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
42ecbf5e 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
42ecbf5e 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
42ecbf5e 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42ecbf5e 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
42ecbf5e 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
42ecbf5e 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
42ecbf5e 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
42ecbf5e 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
42ecbf5e 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
42ecbf5e 561 site=$ac_optarg ;;
252b5132
RH
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42ecbf5e 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
42ecbf5e 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
42ecbf5e 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
42ecbf5e 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
42ecbf5e
DJ
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
42ecbf5e 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
42ecbf5e
DJ
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
42ecbf5e 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
42ecbf5e 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
42ecbf5e
DJ
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
42ecbf5e 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
42ecbf5e 624 x_libraries=$ac_optarg ;;
252b5132 625
42ecbf5e
DJ
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
42ecbf5e
DJ
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
42ecbf5e
DJ
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
42ecbf5e
DJ
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132
RH
656fi
657
42ecbf5e
DJ
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
252b5132 668
42ecbf5e
DJ
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
42ecbf5e
DJ
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
42ecbf5e
DJ
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
e5a52504 698
42ecbf5e
DJ
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
42ecbf5e
DJ
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
42ecbf5e
DJ
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
42ecbf5e
DJ
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
42ecbf5e
DJ
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
252b5132 773
42ecbf5e
DJ
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
42ecbf5e 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
42ecbf5e
DJ
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 787
42ecbf5e 788Defaults for the options are specified in brackets.
ac48eca1 789
42ecbf5e
DJ
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
ac48eca1 809
42ecbf5e
DJ
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
ac48eca1 814
42ecbf5e 815For better control, use the options below.
ac48eca1 816
42ecbf5e
DJ
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
ac48eca1 831
42ecbf5e 832 cat <<\_ACEOF
252b5132 833
42ecbf5e
DJ
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
42ecbf5e
DJ
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
42ecbf5e 846if test -n "$ac_init_help"; then
252b5132 847
42ecbf5e 848 cat <<\_ACEOF
252b5132 849
42ecbf5e
DJ
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=yes
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-targets alternative target configurations
860 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
861 --enable-werror treat compile warnings as errors
862 --enable-build-warnings Enable build-time compiler warnings
863 --disable-nls do not use Native Language Support
864 --enable-maintainer-mode enable make rules and dependencies not useful
865 (and sometimes confusing) to the casual installer
866
867Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872 --with-included-gettext use the GNU gettext library included here
252b5132 873
42ecbf5e
DJ
874Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
881 CPP C preprocessor
e5a52504 882
42ecbf5e
DJ
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
252b5132
RH
887fi
888
42ecbf5e
DJ
889if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
252b5132 903
42ecbf5e
DJ
904case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 911 fi ;;
42ecbf5e
DJ
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
918esac
919
42ecbf5e
DJ
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `pwd` in
923.) ac_abs_builddir="$ac_dir";;
924*)
925 case "$ac_dir" in
926 .) ac_abs_builddir=`pwd`;;
927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
929 esac;;
252b5132 930esac
42ecbf5e
DJ
931case $ac_abs_builddir in
932.) ac_abs_top_builddir=${ac_top_builddir}.;;
933*)
934 case ${ac_top_builddir}. in
935 .) ac_abs_top_builddir=$ac_abs_builddir;;
936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
938 esac;;
939esac
940case $ac_abs_builddir in
941.) ac_abs_srcdir=$ac_srcdir;;
942*)
943 case $ac_srcdir in
944 .) ac_abs_srcdir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
947 esac;;
948esac
949case $ac_abs_builddir in
950.) ac_abs_top_srcdir=$ac_top_srcdir;;
951*)
952 case $ac_top_srcdir in
953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
956 esac;;
d15b04bd 957esac
5d64ca4e 958
42ecbf5e
DJ
959 cd $ac_dir
960 # Check for guested configure; otherwise get Cygnus style configure.
961 if test -f $ac_srcdir/configure.gnu; then
962 echo
963 $SHELL $ac_srcdir/configure.gnu --help=recursive
964 elif test -f $ac_srcdir/configure; then
965 echo
966 $SHELL $ac_srcdir/configure --help=recursive
967 elif test -f $ac_srcdir/configure.ac ||
968 test -f $ac_srcdir/configure.in; then
969 echo
970 $ac_configure --help
971 else
972 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973 fi
b7d4af3a 974 cd $ac_popdir
42ecbf5e
DJ
975 done
976fi
5d64ca4e 977
42ecbf5e
DJ
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980 cat <<\_ACEOF
5d64ca4e 981
42ecbf5e
DJ
982Copyright (C) 2003 Free Software Foundation, Inc.
983This configure script is free software; the Free Software Foundation
984gives unlimited permission to copy, distribute and modify it.
985_ACEOF
986 exit 0
987fi
988exec 5>config.log
989cat >&5 <<_ACEOF
990This file contains any messages produced by compilers while
991running configure, to aid debugging if configure makes a mistake.
429cc0ae 992
42ecbf5e
DJ
993It was created by $as_me, which was
994generated by GNU Autoconf 2.59. Invocation command line was
252b5132 995
42ecbf5e 996 $ $0 $@
e5a52504 997
42ecbf5e
DJ
998_ACEOF
999{
1000cat <<_ASUNAME
1001## --------- ##
1002## Platform. ##
1003## --------- ##
1004
1005hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1013
1014/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1021
1022_ASUNAME
1023
1024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025for as_dir in $PATH
1026do
1027 IFS=$as_save_IFS
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1030done
e5a52504 1031
42ecbf5e 1032} >&5
ceae3e33 1033
42ecbf5e 1034cat >&5 <<_ACEOF
e5a52504 1035
42ecbf5e
DJ
1036
1037## ----------- ##
1038## Core tests. ##
1039## ----------- ##
1040
1041_ACEOF
1042
1043
1044# Keep a trace of the command line.
1045# Strip out --no-create and --no-recursion so they do not pile up.
1046# Strip out --silent because we don't want to record it for future runs.
1047# Also quote any args containing shell meta-characters.
1048# Make two passes to allow for proper duplicate-argument suppression.
1049ac_configure_args=
1050ac_configure_args0=
1051ac_configure_args1=
1052ac_sep=
1053ac_must_keep_next=false
1054for ac_pass in 1 2
1055do
1056 for ac_arg
1057 do
1058 case $ac_arg in
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1062 continue ;;
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065 esac
1066 case $ac_pass in
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068 2)
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1072 else
1073 case $ac_arg in
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080 esac
1081 ;;
1082 -* ) ac_must_keep_next=true ;;
1083 esac
1084 fi
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1087 ac_sep=" "
1088 ;;
1089 esac
1090 done
1091done
1092$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095# When interrupted or exit'd, cleanup temporary files, and complete
1096# config.log. We remove comments because anyway the quotes in there
1097# would cause problems or look ugly.
1098# WARNING: Be sure not to use single quotes in there, as some shells,
1099# such as our DU 5.0 friend, will then `close' the trap.
1100trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1102 {
1103 echo
1104
1105 cat <<\_ASBOX
1106## ---------------- ##
1107## Cache variables. ##
1108## ---------------- ##
1109_ASBOX
1110 echo
1111 # The following way of writing the cache mishandles newlines in values,
1112{
1113 (set) 2>&1 |
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115 *ac_space=\ *)
1116 sed -n \
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119 ;;
1120 *)
1121 sed -n \
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ;;
1124 esac;
1125}
1126 echo
1127
1128 cat <<\_ASBOX
1129## ----------------- ##
1130## Output variables. ##
1131## ----------------- ##
1132_ASBOX
1133 echo
1134 for ac_var in $ac_subst_vars
1135 do
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1138 done | sort
1139 echo
1140
1141 if test -n "$ac_subst_files"; then
1142 cat <<\_ASBOX
1143## ------------- ##
1144## Output files. ##
1145## ------------- ##
1146_ASBOX
1147 echo
1148 for ac_var in $ac_subst_files
1149 do
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1152 done | sort
1153 echo
1154 fi
1155
1156 if test -s confdefs.h; then
1157 cat <<\_ASBOX
1158## ----------- ##
1159## confdefs.h. ##
1160## ----------- ##
1161_ASBOX
1162 echo
1163 sed "/^$/d" confdefs.h | sort
1164 echo
1165 fi
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1169 } >&5
1170 rm -f core *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172 exit $exit_status
1173 ' 0
1174for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176done
1177ac_signal=0
1178
1179# confdefs.h avoids OS command line length limits that DEFS can exceed.
1180rm -rf conftest* confdefs.h
1181# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182echo >confdefs.h
1183
1184# Predefined preprocessor variables.
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_NAME "$PACKAGE_NAME"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_VERSION "$PACKAGE_VERSION"
1198_ACEOF
1199
1200
1201cat >>confdefs.h <<_ACEOF
1202#define PACKAGE_STRING "$PACKAGE_STRING"
1203_ACEOF
1204
1205
1206cat >>confdefs.h <<_ACEOF
1207#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208_ACEOF
1209
1210
1211# Let the site file select an alternate cache file if it wants to.
1212# Prefer explicitly selected file to automatically selected ones.
1213if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216 else
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218 fi
1219fi
1220for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1225 . "$ac_site_file"
1226 fi
1227done
1228
1229if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234echo "$as_me: loading cache $cache_file" >&6;}
1235 case $cache_file in
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1238 esac
1239 fi
1240else
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242echo "$as_me: creating cache $cache_file" >&6;}
1243 >$cache_file
1244fi
1245
1246# Check that the precious variables saved in the cache have kept the same
1247# value.
1248ac_cache_corrupted=false
1249for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1256 set,)
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1260 ,set)
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1264 ,);;
1265 *)
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1274 fi;;
1275 esac
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1278 case $ac_new_val in
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1282 esac
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286 esac
1287 fi
1288done
1289if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1295fi
1296
1297ac_ext=c
1298ac_cpp='$CPP $CPPFLAGS'
1299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322ac_aux_dir=
1323for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324 if test -f $ac_dir/install-sh; then
1325 ac_aux_dir=$ac_dir
1326 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 break
1328 elif test -f $ac_dir/install.sh; then
1329 ac_aux_dir=$ac_dir
1330 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 break
1332 elif test -f $ac_dir/shtool; then
1333 ac_aux_dir=$ac_dir
1334 ac_install_sh="$ac_aux_dir/shtool install -c"
1335 break
1336 fi
1337done
1338if test -z "$ac_aux_dir"; then
1339 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341 { (exit 1); exit 1; }; }
1342fi
1343ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346
1347# Make sure we can run config.sub.
1348$ac_config_sub sun4 >/dev/null 2>&1 ||
1349 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1350echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1351 { (exit 1); exit 1; }; }
1352
1353echo "$as_me:$LINENO: checking build system type" >&5
1354echo $ECHO_N "checking build system type... $ECHO_C" >&6
1355if test "${ac_cv_build+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357else
1358 ac_cv_build_alias=$build_alias
1359test -z "$ac_cv_build_alias" &&
1360 ac_cv_build_alias=`$ac_config_guess`
1361test -z "$ac_cv_build_alias" &&
1362 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1363echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1364 { (exit 1); exit 1; }; }
1365ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1366 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1367echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1368 { (exit 1); exit 1; }; }
1369
1370fi
1371echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1372echo "${ECHO_T}$ac_cv_build" >&6
1373build=$ac_cv_build
1374build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1375build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1376build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1377
1378
1379echo "$as_me:$LINENO: checking host system type" >&5
1380echo $ECHO_N "checking host system type... $ECHO_C" >&6
1381if test "${ac_cv_host+set}" = set; then
1382 echo $ECHO_N "(cached) $ECHO_C" >&6
1383else
1384 ac_cv_host_alias=$host_alias
1385test -z "$ac_cv_host_alias" &&
1386 ac_cv_host_alias=$ac_cv_build_alias
1387ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1388 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1389echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1390 { (exit 1); exit 1; }; }
1391
1392fi
1393echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1394echo "${ECHO_T}$ac_cv_host" >&6
1395host=$ac_cv_host
1396host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1399
1400
1401echo "$as_me:$LINENO: checking target system type" >&5
1402echo $ECHO_N "checking target system type... $ECHO_C" >&6
1403if test "${ac_cv_target+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_target_alias=$target_alias
1407test "x$ac_cv_target_alias" = "x" &&
1408 ac_cv_target_alias=$ac_cv_host_alias
1409ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1411echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1413
1414fi
1415echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1416echo "${ECHO_T}$ac_cv_target" >&6
1417target=$ac_cv_target
1418target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423# The aliases save the names the user supplied, while $host etc.
1424# will get canonicalized.
1425test -n "$target_alias" &&
1426 test "$program_prefix$program_suffix$program_transform_name" = \
1427 NONENONEs,x,x, &&
1428 program_prefix=${target_alias}-
1429ac_ext=c
1430ac_cpp='$CPP $CPPFLAGS'
1431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1433ac_compiler_gnu=$ac_cv_c_compiler_gnu
1434if test -n "$ac_tool_prefix"; then
1435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1436set dummy ${ac_tool_prefix}gcc; ac_word=$2
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439if test "${ac_cv_prog_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$CC"; then
1443 ac_cv_prog_CC="$CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461CC=$ac_cv_prog_CC
1462if test -n "$CC"; then
1463 echo "$as_me:$LINENO: result: $CC" >&5
1464echo "${ECHO_T}$CC" >&6
1465else
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
1468fi
1469
1470fi
1471if test -z "$ac_cv_prog_CC"; then
1472 ac_ct_CC=$CC
1473 # Extract the first word of "gcc", so it can be a program name with args.
1474set dummy gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1478 echo $ECHO_N "(cached) $ECHO_C" >&6
1479else
1480 if test -n "$ac_ct_CC"; then
1481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1482else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH
1485do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_ac_ct_CC="gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2
1493 fi
1494done
1495done
1496
1497fi
1498fi
1499ac_ct_CC=$ac_cv_prog_ac_ct_CC
1500if test -n "$ac_ct_CC"; then
1501 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1502echo "${ECHO_T}$ac_ct_CC" >&6
1503else
1504 echo "$as_me:$LINENO: result: no" >&5
1505echo "${ECHO_T}no" >&6
1506fi
1507
1508 CC=$ac_ct_CC
1509else
1510 CC="$ac_cv_prog_CC"
1511fi
1512
1513if test -z "$CC"; then
1514 if test -n "$ac_tool_prefix"; then
1515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1516set dummy ${ac_tool_prefix}cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$CC"; then
1523 ac_cv_prog_CC="$CC" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_CC="${ac_tool_prefix}cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536done
1537done
1538
1539fi
1540fi
1541CC=$ac_cv_prog_CC
1542if test -n "$CC"; then
1543 echo "$as_me:$LINENO: result: $CC" >&5
1544echo "${ECHO_T}$CC" >&6
1545else
1546 echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
1548fi
1549
1550fi
1551if test -z "$ac_cv_prog_CC"; then
1552 ac_ct_CC=$CC
1553 # Extract the first word of "cc", so it can be a program name with args.
1554set dummy cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559else
1560 if test -n "$ac_ct_CC"; then
1561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1562else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_ac_ct_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
1576
1577fi
1578fi
1579ac_ct_CC=$ac_cv_prog_ac_ct_CC
1580if test -n "$ac_ct_CC"; then
1581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1582echo "${ECHO_T}$ac_ct_CC" >&6
1583else
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
1586fi
1587
1588 CC=$ac_ct_CC
1589else
1590 CC="$ac_cv_prog_CC"
1591fi
1592
1593fi
1594if test -z "$CC"; then
1595 # Extract the first word of "cc", so it can be a program name with args.
1596set dummy cc; ac_word=$2
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
1605 ac_prog_rejected=no
1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607for as_dir in $PATH
1608do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1614 ac_prog_rejected=yes
1615 continue
1616 fi
1617 ac_cv_prog_CC="cc"
1618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619 break 2
1620 fi
1621done
1622done
1623
1624if test $ac_prog_rejected = yes; then
1625 # We found a bogon in the path, so make sure we never use it.
1626 set dummy $ac_cv_prog_CC
1627 shift
1628 if test $# != 0; then
1629 # We chose a different compiler from the bogus one.
1630 # However, it has the same basename, so the bogon will be chosen
1631 # first if we set CC to just the basename; use the full file name.
1632 shift
1633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634 fi
1635fi
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640 echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643 echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649 if test -n "$ac_tool_prefix"; then
1650 for ac_prog in cl
1651 do
1652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657 echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659 if test -n "$CC"; then
1660 ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680 echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683 echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687 test -n "$CC" && break
1688 done
1689fi
1690if test -z "$CC"; then
1691 ac_ct_CC=$CC
1692 for ac_prog in cl
1693do
1694 # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701 if test -n "$ac_ct_CC"; then
1702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707 IFS=$as_save_IFS
1708 test -z "$as_dir" && as_dir=.
1709 for ac_exec_ext in '' $ac_executable_extensions; do
1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711 ac_cv_prog_ac_ct_CC="$ac_prog"
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 break 2
1714 fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725 echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729 test -n "$ac_ct_CC" && break
1730done
1731
1732 CC=$ac_ct_CC
1733fi
1734
1735fi
1736
1737
1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1739See \`config.log' for more details." >&5
1740echo "$as_me: error: no acceptable C compiler found in \$PATH
1741See \`config.log' for more details." >&2;}
1742 { (exit 1); exit 1; }; }
1743
1744# Provide some information about the compiler.
1745echo "$as_me:$LINENO:" \
1746 "checking for C compiler version" >&5
1747ac_compiler=`set X $ac_compile; echo $2`
1748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1749 (eval $ac_compiler --version </dev/null >&5) 2>&5
1750 ac_status=$?
1751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752 (exit $ac_status); }
1753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1754 (eval $ac_compiler -v </dev/null >&5) 2>&5
1755 ac_status=$?
1756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757 (exit $ac_status); }
1758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1759 (eval $ac_compiler -V </dev/null >&5) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }
1763
1764cat >conftest.$ac_ext <<_ACEOF
1765/* confdefs.h. */
1766_ACEOF
1767cat confdefs.h >>conftest.$ac_ext
1768cat >>conftest.$ac_ext <<_ACEOF
1769/* end confdefs.h. */
1770
1771int
1772main ()
1773{
1774
1775 ;
1776 return 0;
1777}
1778_ACEOF
1779ac_clean_files_save=$ac_clean_files
1780ac_clean_files="$ac_clean_files a.out a.exe b.out"
1781# Try to create an executable without -o first, disregard a.out.
1782# It will help us diagnose broken compilers, and finding out an intuition
1783# of exeext.
1784echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1785echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1786ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1787if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1788 (eval $ac_link_default) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; then
1792 # Find the output, starting from the most likely. This scheme is
1793# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1794# resort.
1795
1796# Be careful to initialize this variable, since it used to be cached.
1797# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1798ac_cv_exeext=
1799# b.out is created by i960 compilers.
1800for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1801do
1802 test -f "$ac_file" || continue
1803 case $ac_file in
1804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1805 ;;
1806 conftest.$ac_ext )
1807 # This is the source file.
1808 ;;
1809 [ab].out )
1810 # We found the default executable, but exeext='' is most
1811 # certainly right.
1812 break;;
1813 *.* )
1814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1815 # FIXME: I believe we export ac_cv_exeext for Libtool,
1816 # but it would be cool to find out if it's true. Does anybody
1817 # maintain Libtool? --akim.
1818 export ac_cv_exeext
1819 break;;
1820 * )
1821 break;;
1822 esac
1823done
1824else
1825 echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: C compiler cannot create executables
1831See \`config.log' for more details." >&2;}
1832 { (exit 77); exit 77; }; }
1833fi
1834
1835ac_exeext=$ac_cv_exeext
1836echo "$as_me:$LINENO: result: $ac_file" >&5
1837echo "${ECHO_T}$ac_file" >&6
1838
1839# Check the compiler produces executables we can run. If not, either
1840# the compiler is broken, or we cross compile.
1841echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1842echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1843# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1844# If not cross compiling, check that we can run a simple program.
1845if test "$cross_compiling" != yes; then
1846 if { ac_try='./$ac_file'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; }; then
1852 cross_compiling=no
1853 else
1854 if test "$cross_compiling" = maybe; then
1855 cross_compiling=yes
1856 else
1857 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1858If you meant to cross compile, use \`--host'.
1859See \`config.log' for more details." >&5
1860echo "$as_me: error: cannot run C compiled programs.
1861If you meant to cross compile, use \`--host'.
1862See \`config.log' for more details." >&2;}
1863 { (exit 1); exit 1; }; }
1864 fi
1865 fi
1866fi
1867echo "$as_me:$LINENO: result: yes" >&5
1868echo "${ECHO_T}yes" >&6
1869
1870rm -f a.out a.exe conftest$ac_cv_exeext b.out
1871ac_clean_files=$ac_clean_files_save
1872# Check the compiler produces executables we can run. If not, either
1873# the compiler is broken, or we cross compile.
1874echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1875echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1876echo "$as_me:$LINENO: result: $cross_compiling" >&5
1877echo "${ECHO_T}$cross_compiling" >&6
1878
1879echo "$as_me:$LINENO: checking for suffix of executables" >&5
1880echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1882 (eval $ac_link) 2>&5
1883 ac_status=$?
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1887# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1888# work properly (i.e., refer to `conftest.exe'), while it won't with
1889# `rm'.
1890for ac_file in conftest.exe conftest conftest.*; do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1895 export ac_cv_exeext
1896 break;;
1897 * ) break;;
1898 esac
1899done
1900else
1901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1902See \`config.log' for more details." >&5
1903echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1904See \`config.log' for more details." >&2;}
1905 { (exit 1); exit 1; }; }
1906fi
1907
1908rm -f conftest$ac_cv_exeext
1909echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1910echo "${ECHO_T}$ac_cv_exeext" >&6
1911
1912rm -f conftest.$ac_ext
1913EXEEXT=$ac_cv_exeext
1914ac_exeext=$EXEEXT
1915echo "$as_me:$LINENO: checking for suffix of object files" >&5
1916echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1917if test "${ac_cv_objext+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
1920 cat >conftest.$ac_ext <<_ACEOF
1921/* confdefs.h. */
1922_ACEOF
1923cat confdefs.h >>conftest.$ac_ext
1924cat >>conftest.$ac_ext <<_ACEOF
1925/* end confdefs.h. */
1926
1927int
1928main ()
1929{
1930
1931 ;
1932 return 0;
1933}
1934_ACEOF
1935rm -f conftest.o conftest.obj
1936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1937 (eval $ac_compile) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; then
1941 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1944 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1945 break;;
1946 esac
1947done
1948else
1949 echo "$as_me: failed program was:" >&5
1950sed 's/^/| /' conftest.$ac_ext >&5
1951
1952{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1953See \`config.log' for more details." >&5
1954echo "$as_me: error: cannot compute suffix of object files: cannot compile
1955See \`config.log' for more details." >&2;}
1956 { (exit 1); exit 1; }; }
1957fi
1958
1959rm -f conftest.$ac_cv_objext conftest.$ac_ext
1960fi
1961echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1962echo "${ECHO_T}$ac_cv_objext" >&6
1963OBJEXT=$ac_cv_objext
1964ac_objext=$OBJEXT
1965echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1966echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1967if test "${ac_cv_c_compiler_gnu+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969else
1970 cat >conftest.$ac_ext <<_ACEOF
1971/* confdefs.h. */
1972_ACEOF
1973cat confdefs.h >>conftest.$ac_ext
1974cat >>conftest.$ac_ext <<_ACEOF
1975/* end confdefs.h. */
1976
1977int
1978main ()
1979{
1980#ifndef __GNUC__
1981 choke me
1982#endif
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
b7d4af3a
JW
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
42ecbf5e
DJ
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_compiler_gnu=yes
2011else
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
2014
2015ac_compiler_gnu=no
2016fi
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018ac_cv_c_compiler_gnu=$ac_compiler_gnu
2019
2020fi
2021echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2022echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2023GCC=`test $ac_compiler_gnu = yes && echo yes`
2024ac_test_CFLAGS=${CFLAGS+set}
2025ac_save_CFLAGS=$CFLAGS
2026CFLAGS="-g"
2027echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2028echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2029if test "${ac_cv_prog_cc_g+set}" = set; then
2030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032 cat >conftest.$ac_ext <<_ACEOF
2033/* confdefs.h. */
2034_ACEOF
2035cat confdefs.h >>conftest.$ac_ext
2036cat >>conftest.$ac_ext <<_ACEOF
2037/* end confdefs.h. */
2038
2039int
2040main ()
2041{
2042
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047rm -f conftest.$ac_objext
2048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>conftest.er1
2050 ac_status=$?
2051 grep -v '^ *+' conftest.er1 >conftest.err
2052 rm -f conftest.er1
2053 cat conftest.err >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); } &&
b7d4af3a
JW
2056 { ac_try='test -z "$ac_c_werror_flag"
2057 || test ! -s conftest.err'
42ecbf5e
DJ
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; } &&
2063 { ac_try='test -s conftest.$ac_objext'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; }; then
2069 ac_cv_prog_cc_g=yes
2070else
2071 echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074ac_cv_prog_cc_g=no
2075fi
2076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2077fi
2078echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2079echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2080if test "$ac_test_CFLAGS" = set; then
2081 CFLAGS=$ac_save_CFLAGS
2082elif test $ac_cv_prog_cc_g = yes; then
2083 if test "$GCC" = yes; then
2084 CFLAGS="-g -O2"
2085 else
2086 CFLAGS="-g"
2087 fi
2088else
2089 if test "$GCC" = yes; then
2090 CFLAGS="-O2"
2091 else
2092 CFLAGS=
2093 fi
2094fi
2095echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2096echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2097if test "${ac_cv_prog_cc_stdc+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100 ac_cv_prog_cc_stdc=no
2101ac_save_CC=$CC
2102cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h. */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h. */
2108#include <stdarg.h>
2109#include <stdio.h>
2110#include <sys/types.h>
2111#include <sys/stat.h>
2112/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2113struct buf { int x; };
2114FILE * (*rcsopen) (struct buf *, struct stat *, int);
2115static char *e (p, i)
2116 char **p;
2117 int i;
2118{
2119 return p[i];
2120}
2121static char *f (char * (*g) (char **, int), char **p, ...)
2122{
2123 char *s;
2124 va_list v;
2125 va_start (v,p);
2126 s = g (p, va_arg (v,int));
2127 va_end (v);
2128 return s;
2129}
2130
2131/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not '\xHH' hex character constants.
2133 These don't provoke an error unfortunately, instead are silently treated
2134 as 'x'. The following induces an error, until -std1 is added to get
2135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2136 array size at least. It's necessary to write '\x00'==0 to get something
2137 that's true only with -std1. */
2138int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2139
2140int test (int i, double x);
2141struct s1 {int (*f) (int a);};
2142struct s2 {int (*f) (double a);};
2143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2144int argc;
2145char **argv;
2146int
2147main ()
2148{
2149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2150 ;
2151 return 0;
2152}
2153_ACEOF
2154# Don't try gcc -ansi; that turns off useful extensions and
2155# breaks some systems' header files.
2156# AIX -qlanglvl=ansi
2157# Ultrix and OSF/1 -std1
2158# HP-UX 10.20 and later -Ae
2159# HP-UX older versions -Aa -D_HPUX_SOURCE
2160# SVR4 -Xc -D__EXTENSIONS__
2161for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2162do
2163 CC="$ac_save_CC $ac_arg"
2164 rm -f conftest.$ac_objext
2165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2166 (eval $ac_compile) 2>conftest.er1
2167 ac_status=$?
2168 grep -v '^ *+' conftest.er1 >conftest.err
2169 rm -f conftest.er1
2170 cat conftest.err >&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); } &&
b7d4af3a
JW
2173 { ac_try='test -z "$ac_c_werror_flag"
2174 || test ! -s conftest.err'
42ecbf5e
DJ
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187break
2188else
2189 echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192fi
2193rm -f conftest.err conftest.$ac_objext
2194done
2195rm -f conftest.$ac_ext conftest.$ac_objext
2196CC=$ac_save_CC
2197
2198fi
2199
2200case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208esac
2209
2210# Some people use a C++ compiler to compile C. Since we use `exit',
2211# in C++ we need to declare it. In case someone uses the same compiler
2212# for both compiling C and C++ we need to have the C++ compiler decide
2213# the declaration of exit, since it's the most demanding environment.
2214cat >conftest.$ac_ext <<_ACEOF
2215#ifndef __cplusplus
2216 choke me
2217#endif
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
b7d4af3a
JW
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
42ecbf5e
DJ
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 for ac_declaration in \
2242 '' \
2243 'extern "C" void std::exit (int) throw (); using std::exit;' \
2244 'extern "C" void std::exit (int); using std::exit;' \
2245 'extern "C" void exit (int) throw ();' \
2246 'extern "C" void exit (int);' \
2247 'void exit (int);'
2248do
2249 cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
2255$ac_declaration
2256#include <stdlib.h>
2257int
2258main ()
2259{
2260exit (42);
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265rm -f conftest.$ac_objext
2266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>conftest.er1
2268 ac_status=$?
2269 grep -v '^ *+' conftest.er1 >conftest.err
2270 rm -f conftest.er1
2271 cat conftest.err >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); } &&
b7d4af3a
JW
2274 { ac_try='test -z "$ac_c_werror_flag"
2275 || test ! -s conftest.err'
42ecbf5e
DJ
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 :
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292continue
2293fi
2294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
2301$ac_declaration
2302int
2303main ()
2304{
2305exit (42);
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
b7d4af3a
JW
2319 { ac_try='test -z "$ac_c_werror_flag"
2320 || test ! -s conftest.err'
42ecbf5e
DJ
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; }; then
2332 break
2333else
2334 echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337fi
2338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2339done
2340rm -f conftest*
2341if test -n "$ac_declaration"; then
2342 echo '#ifdef __cplusplus' >>confdefs.h
2343 echo $ac_declaration >>confdefs.h
2344 echo '#endif' >>confdefs.h
2345fi
2346
2347else
2348 echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351fi
2352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2353ac_ext=c
2354ac_cpp='$CPP $CPPFLAGS'
2355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2357ac_compiler_gnu=$ac_cv_c_compiler_gnu
2358
2359
2360echo "$as_me:$LINENO: checking for library containing strerror" >&5
2361echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2362if test "${ac_cv_search_strerror+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365 ac_func_search_save_LIBS=$LIBS
2366ac_cv_search_strerror=no
2367cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373
2374/* Override any gcc2 internal prototype to avoid an error. */
2375#ifdef __cplusplus
2376extern "C"
2377#endif
2378/* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380char strerror ();
2381int
2382main ()
2383{
2384strerror ();
2385 ;
2386 return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext conftest$ac_exeext
2390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2391 (eval $ac_link) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } &&
b7d4af3a
JW
2398 { ac_try='test -z "$ac_c_werror_flag"
2399 || test ! -s conftest.err'
42ecbf5e
DJ
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 ac_cv_search_strerror="none required"
2412else
2413 echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416fi
2417rm -f conftest.err conftest.$ac_objext \
2418 conftest$ac_exeext conftest.$ac_ext
2419if test "$ac_cv_search_strerror" = no; then
2420 for ac_lib in cposix; do
2421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2422 cat >conftest.$ac_ext <<_ACEOF
2423/* confdefs.h. */
2424_ACEOF
2425cat confdefs.h >>conftest.$ac_ext
2426cat >>conftest.$ac_ext <<_ACEOF
2427/* end confdefs.h. */
2428
2429/* Override any gcc2 internal prototype to avoid an error. */
2430#ifdef __cplusplus
2431extern "C"
2432#endif
2433/* We use char because int might match the return type of a gcc2
2434 builtin and then its argument prototype would still apply. */
2435char strerror ();
2436int
2437main ()
2438{
2439strerror ();
2440 ;
2441 return 0;
2442}
2443_ACEOF
2444rm -f conftest.$ac_objext conftest$ac_exeext
2445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2446 (eval $ac_link) 2>conftest.er1
2447 ac_status=$?
2448 grep -v '^ *+' conftest.er1 >conftest.err
2449 rm -f conftest.er1
2450 cat conftest.err >&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); } &&
b7d4af3a
JW
2453 { ac_try='test -z "$ac_c_werror_flag"
2454 || test ! -s conftest.err'
42ecbf5e
DJ
2455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456 (eval $ac_try) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; } &&
2460 { ac_try='test -s conftest$ac_exeext'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; }; then
2466 ac_cv_search_strerror="-l$ac_lib"
2467break
2468else
2469 echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472fi
2473rm -f conftest.err conftest.$ac_objext \
2474 conftest$ac_exeext conftest.$ac_ext
2475 done
2476fi
2477LIBS=$ac_func_search_save_LIBS
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2480echo "${ECHO_T}$ac_cv_search_strerror" >&6
2481if test "$ac_cv_search_strerror" != no; then
2482 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2483
2484fi
2485
2486
2487BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2488am__api_version="1.9"
2489# Find a good install program. We prefer a C program (faster),
2490# so one script is as good as another. But avoid the broken or
2491# incompatible versions:
2492# SysV /etc/install, /usr/sbin/install
2493# SunOS /usr/etc/install
2494# IRIX /sbin/install
2495# AIX /bin/install
2496# AmigaOS /C/install, which installs bootblocks on floppy discs
2497# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2498# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2499# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2500# OS/2's system install, which has a completely different semantic
2501# ./install, which can be erroneously created by make from ./install.sh.
2502echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2503echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2504if test -z "$INSTALL"; then
2505if test "${ac_cv_path_install+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 # Account for people who put trailing slashes in PATH elements.
2514case $as_dir/ in
2515 ./ | .// | /cC/* | \
2516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2517 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2518 /usr/ucb/* ) ;;
2519 *)
2520 # OSF1 and SCO ODT 3.0 have their own names for install.
2521 # Don't use installbsd from OSF since it installs stuff as root
2522 # by default.
2523 for ac_prog in ginstall scoinst install; do
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2526 if test $ac_prog = install &&
2527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2528 # AIX install. It has an incompatible calling convention.
2529 :
42ecbf5e
DJ
2530 elif test $ac_prog = install &&
2531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2532 # program-specific install script used by HP pwplus--don't use.
2533 :
252b5132 2534 else
42ecbf5e
DJ
2535 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2536 break 3
252b5132
RH
2537 fi
2538 fi
d15b04bd 2539 done
42ecbf5e
DJ
2540 done
2541 ;;
2542esac
2543done
2544
252b5132
RH
2545
2546fi
2547 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 2548 INSTALL=$ac_cv_path_install
252b5132
RH
2549 else
2550 # As a last resort, use the slow shell script. We don't cache a
2551 # path for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the path is relative.
42ecbf5e 2554 INSTALL=$ac_install_sh
252b5132
RH
2555 fi
2556fi
42ecbf5e
DJ
2557echo "$as_me:$LINENO: result: $INSTALL" >&5
2558echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2559
2560# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561# It thinks the first close brace ends the variable substitution.
2562test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2563
42ecbf5e 2564test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2565
2566test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2567
42ecbf5e
DJ
2568echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2569echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2570# Just in case
2571sleep 1
42ecbf5e 2572echo timestamp > conftest.file
252b5132
RH
2573# Do `set' in a subshell so we don't clobber the current shell's
2574# arguments. Must try -L first in case configure is actually a
2575# symlink; some systems play weird games with the mod time of symlinks
2576# (eg FreeBSD returns the mod time of the symlink's containing
2577# directory).
2578if (
42ecbf5e 2579 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
252b5132
RH
2580 if test "$*" = "X"; then
2581 # -L didn't work.
42ecbf5e 2582 set X `ls -t $srcdir/configure conftest.file`
252b5132 2583 fi
42ecbf5e
DJ
2584 rm -f conftest.file
2585 if test "$*" != "X $srcdir/configure conftest.file" \
2586 && test "$*" != "X conftest.file $srcdir/configure"; then
252b5132
RH
2587
2588 # If neither matched, then we have a broken ls. This can happen
2589 # if, for instance, CONFIG_SHELL is bash and it inherits a
2590 # broken ls alias from the environment. This has actually
2591 # happened. Such a system could not be considered "sane".
42ecbf5e
DJ
2592 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2593alias in your environment" >&5
2594echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2595alias in your environment" >&2;}
2596 { (exit 1); exit 1; }; }
252b5132
RH
2597 fi
2598
42ecbf5e 2599 test "$2" = conftest.file
252b5132
RH
2600 )
2601then
2602 # Ok.
2603 :
2604else
42ecbf5e
DJ
2605 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2606Check your system clock" >&5
2607echo "$as_me: error: newly created file is older than distributed files!
2608Check your system clock" >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613test "$program_prefix" != NONE &&
2614 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2615# Use a double $ so make ignores it.
2616test "$program_suffix" != NONE &&
2617 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2618# Double any \ or $. echo might interpret backslashes.
2619# By default was `s,x,x', remove it if useless.
2620cat <<\_ACEOF >conftest.sed
2621s/[\\$]/&&/g;s/;s,x,x,$//
2622_ACEOF
2623program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2624rm conftest.sed
2625
2626# expand $ac_aux_dir to an absolute path
2627am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2630# Use eval to expand $SHELL
2631if eval "$MISSING --run true"; then
2632 am_missing_run="$MISSING --run "
2633else
2634 am_missing_run=
2635 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2636echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2637fi
2638
2639if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2640 # We used to keeping the `.' as first argument, in order to
2641 # allow $(mkdir_p) to be used without argument. As in
2642 # $(mkdir_p) $(somedir)
2643 # where $(somedir) is conditionally defined. However this is wrong
2644 # for two reasons:
2645 # 1. if the package is installed by a user who cannot write `.'
2646 # make install will fail,
2647 # 2. the above comment should most certainly read
2648 # $(mkdir_p) $(DESTDIR)$(somedir)
2649 # so it does not work when $(somedir) is undefined and
2650 # $(DESTDIR) is not.
2651 # To support the latter case, we have to write
2652 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2653 # so the `.' trick is pointless.
2654 mkdir_p='mkdir -p --'
2655else
2656 # On NextStep and OpenStep, the `mkdir' command does not
2657 # recognize any option. It will interpret all options as
2658 # directories to create, and then abort because `.' already
2659 # exists.
2660 for d in ./-p ./--version;
2661 do
2662 test -d $d && rmdir $d
2663 done
2664 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2665 if test -f "$ac_aux_dir/mkinstalldirs"; then
2666 mkdir_p='$(mkinstalldirs)'
2667 else
2668 mkdir_p='$(install_sh) -d'
2669 fi
2670fi
2671
2672for ac_prog in gawk mawk nawk awk
2673do
2674 # Extract the first word of "$ac_prog", so it can be a program name with args.
2675set dummy $ac_prog; ac_word=$2
2676echo "$as_me:$LINENO: checking for $ac_word" >&5
2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678if test "${ac_cv_prog_AWK+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681 if test -n "$AWK"; then
2682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2683else
2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685for as_dir in $PATH
2686do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_AWK="$ac_prog"
2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695done
2696done
2697
2698fi
2699fi
2700AWK=$ac_cv_prog_AWK
2701if test -n "$AWK"; then
2702 echo "$as_me:$LINENO: result: $AWK" >&5
2703echo "${ECHO_T}$AWK" >&6
2704else
2705 echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6
2707fi
2708
2709 test -n "$AWK" && break
2710done
2711
2712echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2713echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2714set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2715if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 cat >conftest.make <<\_ACEOF
2719all:
2720 @echo 'ac_maketemp="$(MAKE)"'
2721_ACEOF
2722# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2723eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2724if test -n "$ac_maketemp"; then
2725 eval ac_cv_prog_make_${ac_make}_set=yes
2726else
2727 eval ac_cv_prog_make_${ac_make}_set=no
2728fi
2729rm -f conftest.make
2730fi
2731if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2732 echo "$as_me:$LINENO: result: yes" >&5
2733echo "${ECHO_T}yes" >&6
2734 SET_MAKE=
2735else
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
2738 SET_MAKE="MAKE=${MAKE-make}"
2739fi
2740
2741rm -rf .tst 2>/dev/null
2742mkdir .tst 2>/dev/null
2743if test -d .tst; then
2744 am__leading_dot=.
2745else
2746 am__leading_dot=_
2747fi
2748rmdir .tst 2>/dev/null
2749
2750DEPDIR="${am__leading_dot}deps"
2751
2752 ac_config_commands="$ac_config_commands depfiles"
2753
2754
2755am_make=${MAKE-make}
2756cat > confinc << 'END'
2757am__doit:
2758 @echo done
2759.PHONY: am__doit
2760END
2761# If we don't find an include directive, just comment out the code.
2762echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2763echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2764am__include="#"
2765am__quote=
2766_am_result=none
2767# First try GNU make style include.
2768echo "include confinc" > confmf
2769# We grep out `Entering directory' and `Leaving directory'
2770# messages which can occur if `w' ends up in MAKEFLAGS.
2771# In particular we don't look at `^make:' because GNU make might
2772# be invoked under some other name (usually "gmake"), in which
2773# case it prints its new name instead of `make'.
2774if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2775 am__include=include
2776 am__quote=
2777 _am_result=GNU
2778fi
2779# Now try BSD make style include.
2780if test "$am__include" = "#"; then
2781 echo '.include "confinc"' > confmf
2782 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2783 am__include=.include
2784 am__quote="\""
2785 _am_result=BSD
2786 fi
2787fi
2788
2789
2790echo "$as_me:$LINENO: result: $_am_result" >&5
2791echo "${ECHO_T}$_am_result" >&6
2792rm -f confinc confmf
2793
2794# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2795if test "${enable_dependency_tracking+set}" = set; then
2796 enableval="$enable_dependency_tracking"
2797
2798fi;
2799if test "x$enable_dependency_tracking" != xno; then
2800 am_depcomp="$ac_aux_dir/depcomp"
2801 AMDEPBACKSLASH='\'
2802fi
2803
2804
2805if test "x$enable_dependency_tracking" != xno; then
2806 AMDEP_TRUE=
2807 AMDEP_FALSE='#'
2808else
2809 AMDEP_TRUE='#'
2810 AMDEP_FALSE=
2811fi
2812
2813
2814
2815# test to see if srcdir already configured
2816if test "`cd $srcdir && pwd`" != "`pwd`" &&
2817 test -f $srcdir/config.status; then
2818 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2819echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2820 { (exit 1); exit 1; }; }
2821fi
2822
2823# test whether we have cygpath
2824if test -z "$CYGPATH_W"; then
2825 if (cygpath --version) >/dev/null 2>/dev/null; then
2826 CYGPATH_W='cygpath -w'
2827 else
2828 CYGPATH_W=echo
2829 fi
2830fi
2831
2832
2833# Define the identity of the package.
2834 PACKAGE=binutils
2835 VERSION=${BFD_VERSION}
2836
2837
2838cat >>confdefs.h <<_ACEOF
2839#define PACKAGE "$PACKAGE"
2840_ACEOF
2841
2842
2843cat >>confdefs.h <<_ACEOF
2844#define VERSION "$VERSION"
2845_ACEOF
2846
2847# Some tools Automake needs.
2848
2849ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2850
2851
2852AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2853
2854
2855AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2856
2857
2858AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2859
2860
2861MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2862
2863install_sh=${install_sh-"$am_aux_dir/install-sh"}
2864
2865# Installed binaries are usually stripped using `strip' when the user
2866# run `make install-strip'. However `strip' might not be the right
2867# tool to use in cross-compilation environments, therefore Automake
2868# will honor the `STRIP' environment variable to overrule this program.
2869if test "$cross_compiling" != no; then
2870 if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873echo "$as_me:$LINENO: checking for $ac_word" >&5
2874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2875if test "${ac_cv_prog_STRIP+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877else
2878 if test -n "$STRIP"; then
2879 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892done
2893done
2894
252b5132 2895fi
42ecbf5e
DJ
2896fi
2897STRIP=$ac_cv_prog_STRIP
2898if test -n "$STRIP"; then
2899 echo "$as_me:$LINENO: result: $STRIP" >&5
2900echo "${ECHO_T}$STRIP" >&6
d15b04bd 2901else
42ecbf5e
DJ
2902 echo "$as_me:$LINENO: result: no" >&5
2903echo "${ECHO_T}no" >&6
d15b04bd 2904fi
d15b04bd 2905
42ecbf5e
DJ
2906fi
2907if test -z "$ac_cv_prog_STRIP"; then
2908 ac_ct_STRIP=$STRIP
2909 # Extract the first word of "strip", so it can be a program name with args.
2910set dummy strip; ac_word=$2
2911echo "$as_me:$LINENO: checking for $ac_word" >&5
2912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2913if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 2915else
42ecbf5e
DJ
2916 if test -n "$ac_ct_STRIP"; then
2917 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
252b5132 2918else
42ecbf5e
DJ
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_STRIP="strip"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931done
2932
2933 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
252b5132 2934fi
252b5132 2935fi
42ecbf5e
DJ
2936ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2937if test -n "$ac_ct_STRIP"; then
2938 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2939echo "${ECHO_T}$ac_ct_STRIP" >&6
252b5132 2940else
42ecbf5e
DJ
2941 echo "$as_me:$LINENO: result: no" >&5
2942echo "${ECHO_T}no" >&6
252b5132
RH
2943fi
2944
42ecbf5e
DJ
2945 STRIP=$ac_ct_STRIP
2946else
2947 STRIP="$ac_cv_prog_STRIP"
2948fi
252b5132 2949
42ecbf5e
DJ
2950fi
2951INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
252b5132 2952
42ecbf5e
DJ
2953# We need awk for the "check" target. The system "awk" is bad on
2954# some platforms.
2955# Always define AMTAR for backward compatibility.
252b5132 2956
42ecbf5e 2957AMTAR=${AMTAR-"${am_missing_run}tar"}
252b5132 2958
42ecbf5e 2959am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
252b5132
RH
2960
2961
2962
252b5132 2963
42ecbf5e
DJ
2964depcc="$CC" am_compiler_list=
2965
2966echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2967echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2968if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2970else
42ecbf5e
DJ
2971 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2972 # We make a subdir and do the tests there. Otherwise we can end up
2973 # making bogus files that we don't know about and never remove. For
2974 # instance it was reported that on HP-UX the gcc test will end up
2975 # making a dummy file named `D' -- because `-MD' means `put the output
2976 # in D'.
2977 mkdir conftest.dir
2978 # Copy depcomp to subdir because otherwise we won't find it if we're
2979 # using a relative directory.
2980 cp "$am_depcomp" conftest.dir
2981 cd conftest.dir
2982 # We will build objects and dependencies in a subdirectory because
2983 # it helps to detect inapplicable dependency modes. For instance
2984 # both Tru64's cc and ICC support -MD to output dependencies as a
2985 # side effect of compilation, but ICC will put the dependencies in
2986 # the current directory while Tru64 will put them in the object
2987 # directory.
2988 mkdir sub
252b5132 2989
42ecbf5e
DJ
2990 am_cv_CC_dependencies_compiler_type=none
2991 if test "$am_compiler_list" = ""; then
2992 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2993 fi
2994 for depmode in $am_compiler_list; do
2995 # Setup a source with many dependencies, because some compilers
2996 # like to wrap large dependency lists on column 80 (with \), and
2997 # we should not choose a depcomp mode which is confused by this.
2998 #
2999 # We need to recreate these files for each test, as the compiler may
3000 # overwrite some of them when testing with obscure command lines.
3001 # This happens at least with the AIX C compiler.
3002 : > sub/conftest.c
3003 for i in 1 2 3 4 5 6; do
3004 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3005 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3006 # Solaris 8's {/usr,}/bin/sh.
3007 touch sub/conftst$i.h
3008 done
3009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3010
3011 case $depmode in
3012 nosideeffect)
3013 # after this tag, mechanisms are not by side-effect, so they'll
3014 # only be used when explicitly requested
3015 if test "x$enable_dependency_tracking" = xyes; then
3016 continue
3017 else
3018 break
3019 fi
3020 ;;
3021 none) break ;;
3022 esac
3023 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3024 # mode. It turns out that the SunPro C++ compiler does not properly
3025 # handle `-M -o', and we need to detect this.
3026 if depmode=$depmode \
3027 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3028 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3029 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3030 >/dev/null 2>conftest.err &&
3031 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3032 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3033 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3034 # icc doesn't choke on unknown options, it will just issue warnings
3035 # or remarks (even with -Werror). So we grep stderr for any message
3036 # that says an option was ignored or not supported.
3037 # When given -MP, icc 7.0 and 7.1 complain thusly:
3038 # icc: Command line warning: ignoring option '-M'; no argument required
3039 # The diagnosis changed in icc 8.0:
3040 # icc: Command line remark: option '-MP' not supported
3041 if (grep 'ignoring option' conftest.err ||
3042 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3045 fi
3046 fi
3047 done
3048
3049 cd ..
3050 rm -rf conftest.dir
252b5132 3051else
42ecbf5e 3052 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
3053fi
3054
252b5132 3055fi
42ecbf5e
DJ
3056echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3059
3060
252b5132 3061
42ecbf5e
DJ
3062if
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
252b5132 3067else
42ecbf5e
DJ
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
252b5132
RH
3070fi
3071
3072
3073
42ecbf5e 3074
252b5132
RH
3075# Check whether --enable-shared or --disable-shared was given.
3076if test "${enable_shared+set}" = set; then
3077 enableval="$enable_shared"
3078 p=${PACKAGE-default}
6be7c12c 3079case $enableval in
252b5132
RH
3080yes) enable_shared=yes ;;
3081no) enable_shared=no ;;
3082*)
3083 enable_shared=no
3084 # Look at the argument we got. We use all the common list separators.
3085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3086 for pkg in $enableval; do
3087 if test "X$pkg" = "X$p"; then
3088 enable_shared=yes
3089 fi
3090 done
3091 IFS="$ac_save_ifs"
3092 ;;
3093esac
3094else
3095 enable_shared=yes
42ecbf5e 3096fi;
252b5132
RH
3097# Check whether --enable-static or --disable-static was given.
3098if test "${enable_static+set}" = set; then
3099 enableval="$enable_static"
3100 p=${PACKAGE-default}
6be7c12c 3101case $enableval in
252b5132
RH
3102yes) enable_static=yes ;;
3103no) enable_static=no ;;
3104*)
3105 enable_static=no
3106 # Look at the argument we got. We use all the common list separators.
3107 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3108 for pkg in $enableval; do
3109 if test "X$pkg" = "X$p"; then
3110 enable_static=yes
3111 fi
3112 done
3113 IFS="$ac_save_ifs"
3114 ;;
3115esac
3116else
3117 enable_static=yes
42ecbf5e 3118fi;
252b5132
RH
3119# Check whether --enable-fast-install or --disable-fast-install was given.
3120if test "${enable_fast_install+set}" = set; then
3121 enableval="$enable_fast_install"
3122 p=${PACKAGE-default}
6be7c12c 3123case $enableval in
252b5132
RH
3124yes) enable_fast_install=yes ;;
3125no) enable_fast_install=no ;;
3126*)
3127 enable_fast_install=no
3128 # Look at the argument we got. We use all the common list separators.
e5a52504
MM
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3130 for pkg in $enableval; do
3131 if test "X$pkg" = "X$p"; then
3132 enable_fast_install=yes
1a09a22c
NC
3133 fi
3134 done
3135 IFS="$ac_save_ifs"
e5a52504
MM
3136 ;;
3137esac
1a09a22c 3138else
e5a52504 3139 enable_fast_install=yes
42ecbf5e 3140fi;
ceae3e33 3141
252b5132
RH
3142# Check whether --with-gnu-ld or --without-gnu-ld was given.
3143if test "${with_gnu_ld+set}" = set; then
3144 withval="$with_gnu_ld"
3145 test "$withval" = no || with_gnu_ld=yes
3146else
3147 with_gnu_ld=no
42ecbf5e 3148fi;
252b5132 3149ac_prog=ld
6be7c12c 3150if test "$GCC" = yes; then
252b5132 3151 # Check if gcc -print-prog-name=ld gives a path.
42ecbf5e
DJ
3152 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3153echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
3154 case $host in
3155 *-*-mingw*)
3156 # gcc leaves a trailing carriage return which upsets mingw
3157 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 *)
3159 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3160 esac
6be7c12c 3161 case $ac_prog in
252b5132 3162 # Accept absolute paths.
a74801ba 3163 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
3164 re_direlt='/[^/][^/]*/\.\./'
3165 # Canonicalize the path of ld
3166 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3167 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3168 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3169 done
3170 test -z "$LD" && LD="$ac_prog"
3171 ;;
3172 "")
3173 # If it fails, then pretend we aren't using GCC.
3174 ac_prog=ld
3175 ;;
3176 *)
3177 # If it is relative, then search for the first ld in PATH.
3178 with_gnu_ld=unknown
3179 ;;
3180 esac
3181elif test "$with_gnu_ld" = yes; then
42ecbf5e
DJ
3182 echo "$as_me:$LINENO: checking for GNU ld" >&5
3183echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 3184else
42ecbf5e
DJ
3185 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3186echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 3187fi
42ecbf5e
DJ
3188if test "${lt_cv_path_LD+set}" = set; then
3189 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3190else
3191 if test -z "$LD"; then
a74801ba 3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3193 for ac_dir in $PATH; do
3194 test -z "$ac_dir" && ac_dir=.
a74801ba 3195 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 3196 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
3197 # Check to see if the program is GNU ld. I'd rather use --version,
3198 # but apparently some GNU ld's only accept -v.
3199 # Break only if it was the GNU/non-GNU ld that we prefer.
6be7c12c 3200 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
3201 test "$with_gnu_ld" != no && break
3202 else
3203 test "$with_gnu_ld" != yes && break
3204 fi
3205 fi
3206 done
3207 IFS="$ac_save_ifs"
3208else
6be7c12c 3209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
3210fi
3211fi
3212
6be7c12c 3213LD="$lt_cv_path_LD"
252b5132 3214if test -n "$LD"; then
42ecbf5e
DJ
3215 echo "$as_me:$LINENO: result: $LD" >&5
3216echo "${ECHO_T}$LD" >&6
252b5132 3217else
42ecbf5e
DJ
3218 echo "$as_me:$LINENO: result: no" >&5
3219echo "${ECHO_T}no" >&6
252b5132 3220fi
42ecbf5e
DJ
3221test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3222echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3223 { (exit 1); exit 1; }; }
3224echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3225echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3226if test "${lt_cv_prog_gnu_ld+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3228else
3229 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3230if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6be7c12c 3231 lt_cv_prog_gnu_ld=yes
252b5132 3232else
6be7c12c 3233 lt_cv_prog_gnu_ld=no
252b5132
RH
3234fi
3235fi
42ecbf5e
DJ
3236echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3237echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6be7c12c 3238with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
3239
3240
42ecbf5e
DJ
3241echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3242echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3243if test "${lt_cv_ld_reload_flag+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3245else
3246 lt_cv_ld_reload_flag='-r'
3247fi
42ecbf5e
DJ
3248echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3249echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
3250reload_flag=$lt_cv_ld_reload_flag
3251test -n "$reload_flag" && reload_flag=" $reload_flag"
3252
42ecbf5e
DJ
3253echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3254echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3255if test "${lt_cv_path_NM+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3257else
3258 if test -n "$NM"; then
3259 # Let the user override the test.
6be7c12c 3260 lt_cv_path_NM="$NM"
252b5132 3261else
a74801ba 3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
3263 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3264 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
3265 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3266 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
3267 # Check to see if the nm accepts a BSD-compat flag.
3268 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3269 # nm: unknown option "B" ignored
58cccadb
AO
3270 # Tru64's nm complains that /dev/null is an invalid object file
3271 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6be7c12c 3272 lt_cv_path_NM="$tmp_nm -B"
252b5132 3273 break
ac48eca1 3274 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6be7c12c 3275 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
3276 break
3277 else
6be7c12c 3278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
3279 continue # so that we can try to find one that supports BSD flags
3280 fi
3281 fi
3282 done
3283 IFS="$ac_save_ifs"
6be7c12c 3284 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
3285fi
3286fi
3287
6be7c12c 3288NM="$lt_cv_path_NM"
42ecbf5e
DJ
3289echo "$as_me:$LINENO: result: $NM" >&5
3290echo "${ECHO_T}$NM" >&6
252b5132 3291
42ecbf5e
DJ
3292echo "$as_me:$LINENO: checking whether ln -s works" >&5
3293echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3294LN_S=$as_ln_s
3295if test "$LN_S" = "ln -s"; then
3296 echo "$as_me:$LINENO: result: yes" >&5
3297echo "${ECHO_T}yes" >&6
252b5132 3298else
42ecbf5e
DJ
3299 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3300echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
3301fi
3302
42ecbf5e
DJ
3303echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3304echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3305if test "${lt_cv_deplibs_check_method+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3307else
d64552c5 3308 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
3309lt_cv_file_magic_test_file=
3310lt_cv_deplibs_check_method='unknown'
3311# Need to set the preceding variable on all platforms that support
3312# interlibrary dependencies.
3313# 'none' -- dependencies not supported.
3314# `unknown' -- same as none, but documents that we really don't know.
3315# 'pass_all' -- all dependencies passed with no checks.
3316# 'test_compile' -- check by making test program.
3317# 'file_magic [regex]' -- check by looking for files in library path
3318# which responds to the $file_magic_cmd with a given egrep regex.
3319# If you have `file' or equivalent on your system and you're not sure
3320# whether `pass_all' will *always* work, you probably want this one.
3321
6be7c12c
AO
3322case $host_os in
3323aix*)
ac48eca1
AO
3324 lt_cv_deplibs_check_method=pass_all
3325 ;;
3326
3327beos*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331bsdi4*)
6be7c12c
AO
3332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3333 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
3334 lt_cv_file_magic_test_file=/shlib/libc.so
3335 ;;
3336
d64552c5 3337cygwin* | mingw* |pw32*)
ac48eca1 3338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 3339 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
3340 ;;
3341
6be7c12c
AO
3342darwin* | rhapsody*)
3343 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3344 lt_cv_file_magic_cmd='/usr/bin/file -L'
3345 case "$host_os" in
3346 rhapsody* | darwin1.012)
3347 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3348 ;;
3349 *) # Darwin 1.3 on
3350 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3351 ;;
3352 esac
3353 ;;
3354
d15b04bd 3355freebsd* | kfreebsd*-gnu)
ac48eca1 3356 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6be7c12c 3357 case $host_cpu in
ac48eca1 3358 i*86 )
58cccadb
AO
3359 # Not sure whether the presence of OpenBSD here was a mistake.
3360 # Let's accept both of them until this is cleared up.
6be7c12c
AO
3361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3362 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
3363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3364 ;;
3365 esac
3366 else
3367 lt_cv_deplibs_check_method=pass_all
3368 fi
3369 ;;
3370
3371gnu*)
3372 lt_cv_deplibs_check_method=pass_all
3373 ;;
3374
6be7c12c 3375hpux10.20*|hpux11*)
4867be41
DJ
3376 case $host_cpu in
3377 hppa*)
3378 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3379 lt_cv_file_magic_cmd=/usr/bin/file
3380 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3381 ;;
3382 ia64*)
3383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3384 lt_cv_file_magic_cmd=/usr/bin/file
3385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3386 ;;
3387 esac
ac48eca1
AO
3388 ;;
3389
3390irix5* | irix6*)
6be7c12c 3391 case $host_os in
ac48eca1
AO
3392 irix5*)
3393 # this will be overridden with pass_all, but let us keep it just in case
3394 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3395 ;;
3396 *)
6be7c12c 3397 case $LD in
ac48eca1
AO
3398 *-32|*"-32 ") libmagic=32-bit;;
3399 *-n32|*"-n32 ") libmagic=N32;;
3400 *-64|*"-64 ") libmagic=64-bit;;
3401 *) libmagic=never-match;;
3402 esac
3403 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
3404 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3405 ;;
ac48eca1
AO
3406 esac
3407 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3408 lt_cv_deplibs_check_method=pass_all
3409 ;;
3410
3411# This must be Linux ELF.
58cccadb 3412linux-gnu*)
6be7c12c 3413 case $host_cpu in
3c92310f 3414 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3415 lt_cv_deplibs_check_method=pass_all ;;
3416 *)
3417 # glibc up to 2.1.1 does not perform some relocations on ARM
6be7c12c
AO
3418 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3419 esac
ac48eca1
AO
3420 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3421 ;;
3422
d15b04bd 3423netbsd* | knetbsd*-gnu)
6be7c12c
AO
3424 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3425 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3426 else
6be7c12c 3427 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3428 fi
3429 ;;
3430
6be7c12c
AO
3431newsos6)
3432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3433 lt_cv_file_magic_cmd=/usr/bin/file
3434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3435 ;;
3436
ac48eca1
AO
3437osf3* | osf4* | osf5*)
3438 # this will be overridden with pass_all, but let us keep it just in case
3439 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3440 lt_cv_file_magic_test_file=/shlib/libc.so
3441 lt_cv_deplibs_check_method=pass_all
3442 ;;
3443
3444sco3.2v5*)
3445 lt_cv_deplibs_check_method=pass_all
3446 ;;
3447
3448solaris*)
3449 lt_cv_deplibs_check_method=pass_all
3450 lt_cv_file_magic_test_file=/lib/libc.so
3451 ;;
3452
6be7c12c
AO
3453sysv5uw[78]* | sysv4*uw2*)
3454 lt_cv_deplibs_check_method=pass_all
3455 ;;
3456
ac48eca1 3457sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 3458 case $host_vendor in
ac48eca1
AO
3459 ncr)
3460 lt_cv_deplibs_check_method=pass_all
3461 ;;
3462 motorola)
6be7c12c
AO
3463 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]'
3464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3465 ;;
3466 esac
3467 ;;
3468esac
3469
3470fi
42ecbf5e
DJ
3471echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3472echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3473file_magic_cmd=$lt_cv_file_magic_cmd
3474deplibs_check_method=$lt_cv_deplibs_check_method
3475
ac48eca1 3476
ac48eca1 3477
ac48eca1
AO
3478
3479# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3480
3481# Only perform the check for file, if the check method requires it
6be7c12c 3482case $deplibs_check_method in
ac48eca1 3483file_magic*)
d64552c5 3484 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
42ecbf5e
DJ
3485 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3486echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3487if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3489else
6be7c12c 3490 case $MAGIC_CMD in
ac48eca1 3491 /*)
d64552c5 3492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3493 ;;
3494 ?:/*)
d64552c5 3495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3496 ;;
3497 *)
d64552c5 3498 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3500 ac_dummy="/usr/bin:$PATH"
3501 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3504 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3505 if test -n "$file_magic_test_file"; then
6be7c12c 3506 case $deplibs_check_method in
ac48eca1
AO
3507 "file_magic "*)
3508 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3511 egrep "$file_magic_regex" > /dev/null; then
3512 :
3513 else
3514 cat <<EOF 1>&2
3515
3516*** Warning: the command libtool uses to detect shared libraries,
3517*** $file_magic_cmd, produces output that libtool cannot recognize.
3518*** The result is that libtool may fail to recognize shared libraries
3519*** as such. This will affect the creation of libtool libraries that
3520*** depend on shared libraries, but programs linked with such libtool
3521*** libraries will work regardless of this problem. Nevertheless, you
3522*** may want to report the problem to your system manager and/or to
3523*** bug-libtool@gnu.org
3524
3525EOF
3526 fi ;;
3527 esac
3528 fi
3529 break
3530 fi
3531 done
3532 IFS="$ac_save_ifs"
d64552c5 3533 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3534 ;;
3535esac
3536fi
3537
d64552c5
AO
3538MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3539if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3540 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3541echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3542else
42ecbf5e
DJ
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
ac48eca1
AO
3545fi
3546
d64552c5 3547if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3548 if test -n "$ac_tool_prefix"; then
42ecbf5e
DJ
3549 echo "$as_me:$LINENO: checking for file" >&5
3550echo $ECHO_N "checking for file... $ECHO_C" >&6
3551if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3553else
6be7c12c 3554 case $MAGIC_CMD in
ac48eca1 3555 /*)
d64552c5 3556 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3557 ;;
3558 ?:/*)
d64552c5 3559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3560 ;;
3561 *)
d64552c5 3562 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3564 ac_dummy="/usr/bin:$PATH"
3565 for ac_dir in $ac_dummy; do
3566 test -z "$ac_dir" && ac_dir=.
3567 if test -f $ac_dir/file; then
d64552c5 3568 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3569 if test -n "$file_magic_test_file"; then
6be7c12c 3570 case $deplibs_check_method in
ac48eca1
AO
3571 "file_magic "*)
3572 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3575 egrep "$file_magic_regex" > /dev/null; then
3576 :
3577 else
3578 cat <<EOF 1>&2
3579
3580*** Warning: the command libtool uses to detect shared libraries,
3581*** $file_magic_cmd, produces output that libtool cannot recognize.
3582*** The result is that libtool may fail to recognize shared libraries
3583*** as such. This will affect the creation of libtool libraries that
3584*** depend on shared libraries, but programs linked with such libtool
3585*** libraries will work regardless of this problem. Nevertheless, you
3586*** may want to report the problem to your system manager and/or to
3587*** bug-libtool@gnu.org
3588
3589EOF
3590 fi ;;
3591 esac
3592 fi
3593 break
3594 fi
3595 done
3596 IFS="$ac_save_ifs"
d64552c5 3597 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3598 ;;
3599esac
3600fi
3601
d64552c5
AO
3602MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3603if test -n "$MAGIC_CMD"; then
42ecbf5e
DJ
3604 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3605echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3606else
42ecbf5e
DJ
3607 echo "$as_me:$LINENO: result: no" >&5
3608echo "${ECHO_T}no" >&6
ac48eca1
AO
3609fi
3610
3611 else
d64552c5 3612 MAGIC_CMD=:
ac48eca1
AO
3613 fi
3614fi
252b5132 3615
ac48eca1
AO
3616 fi
3617 ;;
a74801ba 3618esac
252b5132 3619
42ecbf5e
DJ
3620if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
42ecbf5e
DJ
3623echo "$as_me:$LINENO: checking for $ac_word" >&5
3624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625if test "${ac_cv_prog_RANLIB+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3627else
3628 if test -n "$RANLIB"; then
3629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3630else
42ecbf5e
DJ
3631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632for as_dir in $PATH
3633do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642done
3643done
3644
ac48eca1
AO
3645fi
3646fi
42ecbf5e 3647RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3648if test -n "$RANLIB"; then
42ecbf5e
DJ
3649 echo "$as_me:$LINENO: result: $RANLIB" >&5
3650echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3651else
42ecbf5e
DJ
3652 echo "$as_me:$LINENO: result: no" >&5
3653echo "${ECHO_T}no" >&6
ac48eca1
AO
3654fi
3655
42ecbf5e 3656fi
ac48eca1 3657if test -z "$ac_cv_prog_RANLIB"; then
42ecbf5e 3658 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3659 # Extract the first word of "ranlib", so it can be a program name with args.
3660set dummy ranlib; ac_word=$2
42ecbf5e
DJ
3661echo "$as_me:$LINENO: checking for $ac_word" >&5
3662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3663if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3665else
42ecbf5e
DJ
3666 if test -n "$ac_ct_RANLIB"; then
3667 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3668else
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_ac_ct_RANLIB="ranlib"
3677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 break 2
3679 fi
3680done
3681done
3682
3683 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3684fi
3685fi
42ecbf5e
DJ
3686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3687if test -n "$ac_ct_RANLIB"; then
3688 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3689echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3690else
42ecbf5e
DJ
3691 echo "$as_me:$LINENO: result: no" >&5
3692echo "${ECHO_T}no" >&6
ac48eca1
AO
3693fi
3694
42ecbf5e 3695 RANLIB=$ac_ct_RANLIB
ac48eca1 3696else
42ecbf5e 3697 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3698fi
3699
42ecbf5e
DJ
3700if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3702set dummy ${ac_tool_prefix}strip; ac_word=$2
42ecbf5e
DJ
3703echo "$as_me:$LINENO: checking for $ac_word" >&5
3704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705if test "${ac_cv_prog_STRIP+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3707else
3708 if test -n "$STRIP"; then
3709 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3710else
42ecbf5e
DJ
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723done
3724
ac48eca1
AO
3725fi
3726fi
42ecbf5e 3727STRIP=$ac_cv_prog_STRIP
ac48eca1 3728if test -n "$STRIP"; then
42ecbf5e
DJ
3729 echo "$as_me:$LINENO: result: $STRIP" >&5
3730echo "${ECHO_T}$STRIP" >&6
ac48eca1 3731else
42ecbf5e
DJ
3732 echo "$as_me:$LINENO: result: no" >&5
3733echo "${ECHO_T}no" >&6
ac48eca1
AO
3734fi
3735
42ecbf5e 3736fi
ac48eca1 3737if test -z "$ac_cv_prog_STRIP"; then
42ecbf5e 3738 ac_ct_STRIP=$STRIP
ac48eca1
AO
3739 # Extract the first word of "strip", so it can be a program name with args.
3740set dummy strip; ac_word=$2
42ecbf5e
DJ
3741echo "$as_me:$LINENO: checking for $ac_word" >&5
3742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3744 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3745else
42ecbf5e
DJ
3746 if test -n "$ac_ct_STRIP"; then
3747 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3748else
42ecbf5e
DJ
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_STRIP="strip"
3757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760done
3761done
3762
3763 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3764fi
3765fi
42ecbf5e
DJ
3766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3767if test -n "$ac_ct_STRIP"; then
3768 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3769echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3770else
42ecbf5e
DJ
3771 echo "$as_me:$LINENO: result: no" >&5
3772echo "${ECHO_T}no" >&6
ac48eca1
AO
3773fi
3774
42ecbf5e 3775 STRIP=$ac_ct_STRIP
ac48eca1 3776else
42ecbf5e 3777 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3778fi
3779
3780
252b5132
RH
3781# Check for any special flags to pass to ltconfig.
3782libtool_flags="--cache-file=$cache_file"
3783test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3784test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3785test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
3786test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3787test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3788
a74801ba
ILT
3789
3790# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3791if test "${enable_libtool_lock+set}" = set; then
3792 enableval="$enable_libtool_lock"
a74801ba 3793
42ecbf5e 3794fi;
a74801ba
ILT
3795test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3796test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3797
42ecbf5e 3798
ac48eca1
AO
3799# Check whether --with-pic or --without-pic was given.
3800if test "${with_pic+set}" = set; then
3801 withval="$with_pic"
3802 pic_mode="$withval"
3803else
3804 pic_mode=default
42ecbf5e 3805fi;
ac48eca1
AO
3806test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3807test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3808
252b5132
RH
3809# Some flags need to be propagated to the compiler or linker for good
3810# libtool support.
6be7c12c 3811case $host in
252b5132
RH
3812*-*-irix6*)
3813 # Find out which ABI we are using.
b7d4af3a 3814 echo '#line 3814 "configure"' > conftest.$ac_ext
42ecbf5e
DJ
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>&5
3817 ac_status=$?
3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819 (exit $ac_status); }; then
27a710e5
NC
3820 if test "$lt_cv_prog_gnu_ld" = yes; then
3821 case `/usr/bin/file conftest.$ac_objext` in
3822 *32-bit*)
3823 LD="${LD-ld} -melf32bsmip"
3824 ;;
3825 *N32*)
3826 LD="${LD-ld} -melf32bmipn32"
3827 ;;
3828 *64-bit*)
3829 LD="${LD-ld} -melf64bmip"
3830 ;;
3831 esac
3832 else
6be7c12c 3833 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3834 *32-bit*)
3835 LD="${LD-ld} -32"
3836 ;;
3837 *N32*)
3838 LD="${LD-ld} -n32"
3839 ;;
3840 *64-bit*)
3841 LD="${LD-ld} -64"
3842 ;;
3843 esac
27a710e5 3844 fi
252b5132
RH
3845 fi
3846 rm -rf conftest*
3847 ;;
3848
4867be41
DJ
3849ia64-*-hpux*)
3850 # Find out which ABI we are using.
3851 echo 'int i;' > conftest.$ac_ext
42ecbf5e
DJ
3852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3853 (eval $ac_compile) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; then
4867be41
DJ
3857 case "`/usr/bin/file conftest.o`" in
3858 *ELF-32*)
3859 HPUX_IA64_MODE="32"
3860 ;;
3861 *ELF-64*)
3862 HPUX_IA64_MODE="64"
3863 ;;
3864 esac
3865 fi
3866 rm -rf conftest*
3867 ;;
3868
252b5132
RH
3869*-*-sco3.2v5*)
3870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3871 SAVE_CFLAGS="$CFLAGS"
3872 CFLAGS="$CFLAGS -belf"
42ecbf5e
DJ
3873 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3874echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3875if test "${lt_cv_cc_needs_belf+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3877else
42ecbf5e
DJ
3878
3879
ac48eca1 3880 ac_ext=c
ac48eca1 3881ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
3882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3885
42ecbf5e
DJ
3886 cat >conftest.$ac_ext <<_ACEOF
3887/* confdefs.h. */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h. */
252b5132 3892
42ecbf5e
DJ
3893int
3894main ()
3895{
252b5132 3896
42ecbf5e
DJ
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext conftest$ac_exeext
3902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903 (eval $ac_link) 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
b7d4af3a
JW
3910 { ac_try='test -z "$ac_c_werror_flag"
3911 || test ! -s conftest.err'
42ecbf5e
DJ
3912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913 (eval $ac_try) 2>&5
3914 ac_status=$?
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); }; } &&
3917 { ac_try='test -s conftest$ac_exeext'
3918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919 (eval $ac_try) 2>&5
3920 ac_status=$?
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); }; }; then
252b5132
RH
3923 lt_cv_cc_needs_belf=yes
3924else
42ecbf5e
DJ
3925 echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928lt_cv_cc_needs_belf=no
252b5132 3929fi
42ecbf5e
DJ
3930rm -f conftest.err conftest.$ac_objext \
3931 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3932 ac_ext=c
ac48eca1 3933ac_cpp='$CPP $CPPFLAGS'
42ecbf5e
DJ
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3937
252b5132 3938fi
42ecbf5e
DJ
3939echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3940echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
3941 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3942 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3943 CFLAGS="$SAVE_CFLAGS"
3944 fi
3945 ;;
3946
252b5132
RH
3947
3948esac
3949
252b5132
RH
3950
3951# Save cache, so that ltconfig can load it
42ecbf5e 3952cat >confcache <<\_ACEOF
252b5132
RH
3953# This file is a shell script that caches the results of configure
3954# tests run on this system so they can be shared between configure
42ecbf5e
DJ
3955# scripts and configure runs, see configure's option --config-cache.
3956# It is not useful on other systems. If it contains results you don't
3957# want to keep, you may remove or edit it.
252b5132 3958#
42ecbf5e
DJ
3959# config.status only pays attention to the cache file if you give it
3960# the --recheck option to rerun configure.
252b5132 3961#
42ecbf5e
DJ
3962# `ac_cv_env_foo' variables (set or unset) will be overridden when
3963# loading this file, other *unset* `ac_cv_foo' will be assigned the
3964# following values.
3965
3966_ACEOF
3967
252b5132
RH
3968# The following way of writing the cache mishandles newlines in values,
3969# but we know of no workaround that is simple, portable, and efficient.
3970# So, don't put newlines in cache variables' values.
3971# Ultrix sh set writes to stderr and can't be redirected directly,
3972# and sets the high bit in the cache file unless we assign to the vars.
42ecbf5e
DJ
3973{
3974 (set) 2>&1 |
3975 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3976 *ac_space=\ *)
3977 # `set' does not quote correctly, so add quotes (double-quote
3978 # substitution turns \\\\ into \\, and sed turns \\ into \).
3979 sed -n \
3980 "s/'/'\\\\''/g;
3981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3982 ;;
3983 *)
3984 # `set' quotes correctly as required by POSIX, so do not add quotes.
3985 sed -n \
3986 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3987 ;;
3988 esac;
3989} |
3990 sed '
3991 t clear
3992 : clear
3993 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3994 t end
3995 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3996 : end' >>confcache
3997if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 3998 if test -w $cache_file; then
42ecbf5e
DJ
3999 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4000 cat confcache >$cache_file
252b5132
RH
4001 else
4002 echo "not updating unwritable cache $cache_file"
4003 fi
4004fi
4005rm -f confcache
4006
252b5132 4007# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 4008AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 4009MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
4010LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4011AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4012objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4013deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 4014${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 4015$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
42ecbf5e
DJ
4016|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4017echo "$as_me: error: libtool configure failed" >&2;}
4018 { (exit 1); exit 1; }; }
252b5132
RH
4019
4020# Reload cache, that may have been modified by ltconfig
4021if test -r "$cache_file"; then
42ecbf5e
DJ
4022 # Some versions of bash will fail to source /dev/null (special
4023 # files actually), so we avoid doing that.
4024 if test -f "$cache_file"; then
4025 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4026echo "$as_me: loading cache $cache_file" >&6;}
4027 case $cache_file in
4028 [\\/]* | ?:[\\/]* ) . $cache_file;;
4029 *) . ./$cache_file;;
4030 esac
4031 fi
252b5132 4032else
42ecbf5e
DJ
4033 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4034echo "$as_me: creating cache $cache_file" >&6;}
4035 >$cache_file
252b5132
RH
4036fi
4037
4038
4039# This can be used to rebuild libtool when needed
ac48eca1 4040LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
4041
4042# Always use our own libtool.
4043LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4044
4045# Redirect the config.log output again, so that the ltconfig log is not
4046# clobbered by the next message.
4047exec 5>>./config.log
4048
ac48eca1 4049
42ecbf5e
DJ
4050
4051
4052
4053
ac48eca1 4054
252b5132
RH
4055# Check whether --enable-targets or --disable-targets was given.
4056if test "${enable_targets+set}" = set; then
4057 enableval="$enable_targets"
4058 case "${enableval}" in
42ecbf5e
DJ
4059 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4060echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4061 { (exit 1); exit 1; }; }
252b5132
RH
4062 ;;
4063 no) enable_targets= ;;
4064 *) enable_targets=$enableval ;;
4065esac
42ecbf5e 4066fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
4067if test "${enable_commonbfdlib+set}" = set; then
4068 enableval="$enable_commonbfdlib"
4069 case "${enableval}" in
4070 yes) commonbfdlib=true ;;
4071 no) commonbfdlib=false ;;
42ecbf5e
DJ
4072 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4073echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4074 { (exit 1); exit 1; }; } ;;
252b5132 4075esac
42ecbf5e 4076fi;
398ee8f1 4077
9e9b66a9 4078WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
1ad12f97 4079
569acd2c
NC
4080# Check whether --enable-werror or --disable-werror was given.
4081if test "${enable_werror+set}" = set; then
4082 enableval="$enable_werror"
1ad12f97
NC
4083 case "${enableval}" in
4084 yes | y) ERROR_ON_WARNING="yes" ;;
4085 no | n) ERROR_ON_WARNING="no" ;;
42ecbf5e
DJ
4086 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4087echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4088 { (exit 1); exit 1; }; } ;;
1ad12f97 4089 esac
42ecbf5e 4090fi;
1ad12f97 4091
9e9b66a9
AM
4092# Enable -Werror by default when using gcc
4093if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4094 ERROR_ON_WARNING=yes
1ad12f97 4095fi
569acd2c 4096
9e9b66a9
AM
4097NO_WERROR=
4098if test "${ERROR_ON_WARNING}" = yes ; then
4099 WARN_CFLAGS="$WARN_CFLAGS -Werror"
4100 NO_WERROR="-Wno-error"
4101fi
42ecbf5e 4102
a2d91340
AC
4103# Check whether --enable-build-warnings or --disable-build-warnings was given.
4104if test "${enable_build_warnings+set}" = set; then
4105 enableval="$enable_build_warnings"
4106 case "${enableval}" in
4107 yes) ;;
9e9b66a9 4108 no) WARN_CFLAGS="-w";;
a2d91340 4109 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9 4110 WARN_CFLAGS="${WARN_CFLAGS} ${t}";;
a2d91340 4111 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
9e9b66a9
AM
4112 WARN_CFLAGS="${t} ${WARN_CFLAGS}";;
4113 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
d15b04bd 4114esac
42ecbf5e 4115fi;
9e9b66a9
AM
4116
4117if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4118 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
d15b04bd 4119fi
9e9b66a9
AM
4120
4121
e5a52504 4122
e5a52504 4123
398ee8f1 4124
42ecbf5e 4125 ac_config_headers="$ac_config_headers config.h:config.in"
d15b04bd
L
4126
4127
4128if test -z "$target" ; then
42ecbf5e
DJ
4129 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4130echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4131 { (exit 1); exit 1; }; }
d15b04bd
L
4132fi
4133if test -z "$host" ; then
42ecbf5e
DJ
4134 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
4135echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
4136 { (exit 1); exit 1; }; }
4137fi
4138
4139ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144if test -n "$ac_tool_prefix"; then
4145 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4146set dummy ${ac_tool_prefix}gcc; ac_word=$2
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149if test "${ac_cv_prog_CC+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
4168
4169fi
4170fi
4171CC=$ac_cv_prog_CC
4172if test -n "$CC"; then
4173 echo "$as_me:$LINENO: result: $CC" >&5
4174echo "${ECHO_T}$CC" >&6
4175else
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
d15b04bd
L
4178fi
4179
42ecbf5e
DJ
4180fi
4181if test -z "$ac_cv_prog_CC"; then
4182 ac_ct_CC=$CC
4183 # Extract the first word of "gcc", so it can be a program name with args.
d15b04bd 4184set dummy gcc; ac_word=$2
42ecbf5e
DJ
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190 if test -n "$ac_ct_CC"; then
4191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_ac_ct_CC="gcc"
4201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4203 fi
4204done
4205done
4206
4207fi
4208fi
4209ac_ct_CC=$ac_cv_prog_ac_ct_CC
4210if test -n "$ac_ct_CC"; then
4211 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4212echo "${ECHO_T}$ac_ct_CC" >&6
4213else
4214 echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
4216fi
4217
4218 CC=$ac_ct_CC
4219else
4220 CC="$ac_cv_prog_CC"
4221fi
4222
4223if test -z "$CC"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}cc; ac_word=$2
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229if test "${ac_cv_prog_CC+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 4231else
d15b04bd
L
4232 if test -n "$CC"; then
4233 ac_cv_prog_CC="$CC" # Let the user override the test.
e5a52504 4234else
42ecbf5e
DJ
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_CC="${ac_tool_prefix}cc"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247done
4248
252b5132 4249fi
e5a52504 4250fi
42ecbf5e 4251CC=$ac_cv_prog_CC
d15b04bd 4252if test -n "$CC"; then
42ecbf5e
DJ
4253 echo "$as_me:$LINENO: result: $CC" >&5
4254echo "${ECHO_T}$CC" >&6
4255else
4256 echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258fi
4259
4260fi
4261if test -z "$ac_cv_prog_CC"; then
4262 ac_ct_CC=$CC
4263 # Extract the first word of "cc", so it can be a program name with args.
4264set dummy cc; ac_word=$2
4265echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270 if test -n "$ac_ct_CC"; then
4271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280 ac_cv_prog_ac_ct_CC="cc"
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284done
4285done
4286
4287fi
4288fi
4289ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290if test -n "$ac_ct_CC"; then
4291 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4292echo "${ECHO_T}$ac_ct_CC" >&6
4293else
4294 echo "$as_me:$LINENO: result: no" >&5
4295echo "${ECHO_T}no" >&6
4296fi
4297
4298 CC=$ac_ct_CC
252b5132 4299else
42ecbf5e 4300 CC="$ac_cv_prog_CC"
252b5132 4301fi
e5a52504 4302
42ecbf5e 4303fi
d15b04bd
L
4304if test -z "$CC"; then
4305 # Extract the first word of "cc", so it can be a program name with args.
4306set dummy cc; ac_word=$2
42ecbf5e
DJ
4307echo "$as_me:$LINENO: checking for $ac_word" >&5
4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309if test "${ac_cv_prog_CC+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4311else
d15b04bd
L
4312 if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4314else
d15b04bd 4315 ac_prog_rejected=no
42ecbf5e
DJ
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4324 ac_prog_rejected=yes
4325 continue
4326 fi
4327 ac_cv_prog_CC="cc"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331done
4332done
4333
d15b04bd
L
4334if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_CC
4337 shift
42ecbf5e 4338 if test $# != 0; then
d15b04bd
L
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set CC to just the basename; use the full file name.
4342 shift
42ecbf5e 4343 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
e5a52504 4344 fi
252b5132
RH
4345fi
4346fi
d15b04bd 4347fi
42ecbf5e 4348CC=$ac_cv_prog_CC
d15b04bd 4349if test -n "$CC"; then
42ecbf5e
DJ
4350 echo "$as_me:$LINENO: result: $CC" >&5
4351echo "${ECHO_T}$CC" >&6
252b5132 4352else
42ecbf5e
DJ
4353 echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6
252b5132
RH
4355fi
4356
42ecbf5e
DJ
4357fi
4358if test -z "$CC"; then
4359 if test -n "$ac_tool_prefix"; then
4360 for ac_prog in cl
4361 do
4362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4364echo "$as_me:$LINENO: checking for $ac_word" >&5
4365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366if test "${ac_cv_prog_CC+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 4368else
d15b04bd
L
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
252b5132 4371else
42ecbf5e
DJ
4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4382 fi
4383done
4384done
4385
252b5132
RH
4386fi
4387fi
42ecbf5e 4388CC=$ac_cv_prog_CC
d15b04bd 4389if test -n "$CC"; then
42ecbf5e
DJ
4390 echo "$as_me:$LINENO: result: $CC" >&5
4391echo "${ECHO_T}$CC" >&6
252b5132 4392else
42ecbf5e
DJ
4393 echo "$as_me:$LINENO: result: no" >&5
4394echo "${ECHO_T}no" >&6
d15b04bd 4395fi
42ecbf5e
DJ
4396
4397 test -n "$CC" && break
4398 done
4399fi
4400if test -z "$CC"; then
4401 ac_ct_CC=$CC
4402 for ac_prog in cl
4403do
4404 # Extract the first word of "$ac_prog", so it can be a program name with args.
4405set dummy $ac_prog; ac_word=$2
4406echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411 if test -n "$ac_ct_CC"; then
4412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_prog_ac_ct_CC="$ac_prog"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
d15b04bd 4424 fi
42ecbf5e
DJ
4425done
4426done
4427
4428fi
4429fi
4430ac_ct_CC=$ac_cv_prog_ac_ct_CC
4431if test -n "$ac_ct_CC"; then
4432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4433echo "${ECHO_T}$ac_ct_CC" >&6
4434else
4435 echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
252b5132
RH
4437fi
4438
42ecbf5e
DJ
4439 test -n "$ac_ct_CC" && break
4440done
e5a52504 4441
42ecbf5e
DJ
4442 CC=$ac_ct_CC
4443fi
4444
4445fi
4446
4447
4448test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4449See \`config.log' for more details." >&5
4450echo "$as_me: error: no acceptable C compiler found in \$PATH
4451See \`config.log' for more details." >&2;}
4452 { (exit 1); exit 1; }; }
4453
4454# Provide some information about the compiler.
4455echo "$as_me:$LINENO:" \
4456 "checking for C compiler version" >&5
4457ac_compiler=`set X $ac_compile; echo $2`
4458{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4459 (eval $ac_compiler --version </dev/null >&5) 2>&5
4460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }
4463{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4464 (eval $ac_compiler -v </dev/null >&5) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); }
4468{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4469 (eval $ac_compiler -V </dev/null >&5) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }
4473
4474echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4475echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4476if test "${ac_cv_c_compiler_gnu+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h. */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h. */
4485
4486int
4487main ()
4488{
4489#ifndef __GNUC__
4490 choke me
4491#endif
e5a52504 4492
42ecbf5e
DJ
4493 ;
4494 return 0;
4495}
4496_ACEOF
4497rm -f conftest.$ac_objext
4498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4499 (eval $ac_compile) 2>conftest.er1
4500 ac_status=$?
4501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); } &&
b7d4af3a
JW
4506 { ac_try='test -z "$ac_c_werror_flag"
4507 || test ! -s conftest.err'
42ecbf5e
DJ
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; } &&
4513 { ac_try='test -s conftest.$ac_objext'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4515 (eval $ac_try) 2>&5
4516 ac_status=$?
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; }; then
4519 ac_compiler_gnu=yes
4520else
4521 echo "$as_me: failed program was:" >&5
4522sed 's/^/| /' conftest.$ac_ext >&5
4523
4524ac_compiler_gnu=no
4525fi
4526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4527ac_cv_c_compiler_gnu=$ac_compiler_gnu
4528
4529fi
4530echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4531echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4532GCC=`test $ac_compiler_gnu = yes && echo yes`
4533ac_test_CFLAGS=${CFLAGS+set}
4534ac_save_CFLAGS=$CFLAGS
4535CFLAGS="-g"
4536echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4537echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4538if test "${ac_cv_prog_cc_g+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else
4541 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */
252b5132 4547
42ecbf5e
DJ
4548int
4549main ()
4550{
d15b04bd 4551
42ecbf5e
DJ
4552 ;
4553 return 0;
4554}
4555_ACEOF
4556rm -f conftest.$ac_objext
4557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4558 (eval $ac_compile) 2>conftest.er1
4559 ac_status=$?
4560 grep -v '^ *+' conftest.er1 >conftest.err
4561 rm -f conftest.er1
4562 cat conftest.err >&5
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); } &&
b7d4af3a
JW
4565 { ac_try='test -z "$ac_c_werror_flag"
4566 || test ! -s conftest.err'
42ecbf5e
DJ
4567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568 (eval $ac_try) 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; } &&
4572 { ac_try='test -s conftest.$ac_objext'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; }; then
4578 ac_cv_prog_cc_g=yes
4579else
4580 echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583ac_cv_prog_cc_g=no
4584fi
4585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586fi
4587echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4588echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4589if test "$ac_test_CFLAGS" = set; then
4590 CFLAGS=$ac_save_CFLAGS
4591elif test $ac_cv_prog_cc_g = yes; then
4592 if test "$GCC" = yes; then
4593 CFLAGS="-g -O2"
d15b04bd 4594 else
42ecbf5e 4595 CFLAGS="-g"
d15b04bd 4596 fi
252b5132 4597else
42ecbf5e
DJ
4598 if test "$GCC" = yes; then
4599 CFLAGS="-O2"
4600 else
4601 CFLAGS=
4602 fi
252b5132 4603fi
42ecbf5e
DJ
4604echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4605echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4606if test "${ac_cv_prog_cc_stdc+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609 ac_cv_prog_cc_stdc=no
4610ac_save_CC=$CC
4611cat >conftest.$ac_ext <<_ACEOF
4612/* confdefs.h. */
4613_ACEOF
4614cat confdefs.h >>conftest.$ac_ext
4615cat >>conftest.$ac_ext <<_ACEOF
4616/* end confdefs.h. */
4617#include <stdarg.h>
4618#include <stdio.h>
4619#include <sys/types.h>
4620#include <sys/stat.h>
4621/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4622struct buf { int x; };
4623FILE * (*rcsopen) (struct buf *, struct stat *, int);
4624static char *e (p, i)
4625 char **p;
4626 int i;
4627{
4628 return p[i];
4629}
4630static char *f (char * (*g) (char **, int), char **p, ...)
4631{
4632 char *s;
4633 va_list v;
4634 va_start (v,p);
4635 s = g (p, va_arg (v,int));
4636 va_end (v);
4637 return s;
4638}
252b5132 4639
42ecbf5e
DJ
4640/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4641 function prototypes and stuff, but not '\xHH' hex character constants.
4642 These don't provoke an error unfortunately, instead are silently treated
4643 as 'x'. The following induces an error, until -std1 is added to get
4644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4645 array size at least. It's necessary to write '\x00'==0 to get something
4646 that's true only with -std1. */
4647int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4648
4649int test (int i, double x);
4650struct s1 {int (*f) (int a);};
4651struct s2 {int (*f) (double a);};
4652int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4653int argc;
4654char **argv;
4655int
4656main ()
4657{
4658return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663# Don't try gcc -ansi; that turns off useful extensions and
4664# breaks some systems' header files.
4665# AIX -qlanglvl=ansi
4666# Ultrix and OSF/1 -std1
4667# HP-UX 10.20 and later -Ae
4668# HP-UX older versions -Aa -D_HPUX_SOURCE
4669# SVR4 -Xc -D__EXTENSIONS__
4670for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4671do
4672 CC="$ac_save_CC $ac_arg"
4673 rm -f conftest.$ac_objext
4674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4675 (eval $ac_compile) 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } &&
b7d4af3a
JW
4682 { ac_try='test -z "$ac_c_werror_flag"
4683 || test ! -s conftest.err'
42ecbf5e
DJ
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; } &&
4689 { ac_try='test -s conftest.$ac_objext'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4691 (eval $ac_try) 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_prog_cc_stdc=$ac_arg
4696break
252b5132 4697else
42ecbf5e
DJ
4698 echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
252b5132 4701fi
42ecbf5e
DJ
4702rm -f conftest.err conftest.$ac_objext
4703done
4704rm -f conftest.$ac_ext conftest.$ac_objext
4705CC=$ac_save_CC
4706
252b5132 4707fi
e5a52504 4708
42ecbf5e
DJ
4709case "x$ac_cv_prog_cc_stdc" in
4710 x|xno)
4711 echo "$as_me:$LINENO: result: none needed" >&5
4712echo "${ECHO_T}none needed" >&6 ;;
4713 *)
4714 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4715echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4716 CC="$CC $ac_cv_prog_cc_stdc" ;;
4717esac
e5a52504 4718
42ecbf5e
DJ
4719# Some people use a C++ compiler to compile C. Since we use `exit',
4720# in C++ we need to declare it. In case someone uses the same compiler
4721# for both compiling C and C++ we need to have the C++ compiler decide
4722# the declaration of exit, since it's the most demanding environment.
4723cat >conftest.$ac_ext <<_ACEOF
4724#ifndef __cplusplus
4725 choke me
4726#endif
4727_ACEOF
4728rm -f conftest.$ac_objext
4729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
b7d4af3a
JW
4737 { ac_try='test -z "$ac_c_werror_flag"
4738 || test ! -s conftest.err'
42ecbf5e
DJ
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 for ac_declaration in \
4751 '' \
4752 'extern "C" void std::exit (int) throw (); using std::exit;' \
4753 'extern "C" void std::exit (int); using std::exit;' \
4754 'extern "C" void exit (int) throw ();' \
4755 'extern "C" void exit (int);' \
4756 'void exit (int);'
4757do
4758 cat >conftest.$ac_ext <<_ACEOF
4759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764$ac_declaration
4765#include <stdlib.h>
4766int
4767main ()
4768{
4769exit (42);
4770 ;
4771 return 0;
4772}
4773_ACEOF
4774rm -f conftest.$ac_objext
4775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>conftest.er1
4777 ac_status=$?
4778 grep -v '^ *+' conftest.er1 >conftest.err
4779 rm -f conftest.er1
4780 cat conftest.err >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
b7d4af3a
JW
4783 { ac_try='test -z "$ac_c_werror_flag"
4784 || test ! -s conftest.err'
42ecbf5e
DJ
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 (eval $ac_try) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4796 :
d15b04bd 4797else
42ecbf5e
DJ
4798 echo "$as_me: failed program was:" >&5
4799sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4800
42ecbf5e
DJ
4801continue
4802fi
4803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4804 cat >conftest.$ac_ext <<_ACEOF
4805/* confdefs.h. */
4806_ACEOF
4807cat confdefs.h >>conftest.$ac_ext
4808cat >>conftest.$ac_ext <<_ACEOF
4809/* end confdefs.h. */
4810$ac_declaration
4811int
4812main ()
4813{
4814exit (42);
4815 ;
4816 return 0;
4817}
4818_ACEOF
4819rm -f conftest.$ac_objext
4820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>conftest.er1
4822 ac_status=$?
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); } &&
b7d4af3a
JW
4828 { ac_try='test -z "$ac_c_werror_flag"
4829 || test ! -s conftest.err'
42ecbf5e
DJ
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4831 (eval $ac_try) 2>&5
4832 ac_status=$?
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837 (eval $ac_try) 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 break
d15b04bd 4842else
42ecbf5e
DJ
4843 echo "$as_me: failed program was:" >&5
4844sed 's/^/| /' conftest.$ac_ext >&5
4845
252b5132 4846fi
42ecbf5e
DJ
4847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4848done
d15b04bd 4849rm -f conftest*
42ecbf5e
DJ
4850if test -n "$ac_declaration"; then
4851 echo '#ifdef __cplusplus' >>confdefs.h
4852 echo $ac_declaration >>confdefs.h
4853 echo '#endif' >>confdefs.h
d15b04bd 4854fi
252b5132 4855
ac48eca1 4856else
42ecbf5e
DJ
4857 echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
d15b04bd 4860fi
42ecbf5e
DJ
4861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862ac_ext=c
4863ac_cpp='$CPP $CPPFLAGS'
4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866ac_compiler_gnu=$ac_cv_c_compiler_gnu
e5a52504 4867
d15b04bd 4868
3e321448
L
4869cat >>confdefs.h <<\_ACEOF
4870#define _GNU_SOURCE 1
4871_ACEOF
4872
4873
4874
d15b04bd
L
4875for ac_prog in 'bison -y' byacc
4876do
42ecbf5e 4877 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 4878set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
4879echo "$as_me:$LINENO: checking for $ac_word" >&5
4880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4881if test "${ac_cv_prog_YACC+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
4883else
4884 if test -n "$YACC"; then
4885 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4886else
42ecbf5e
DJ
4887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888for as_dir in $PATH
4889do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_YACC="$ac_prog"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898done
4899done
4900
ac48eca1
AO
4901fi
4902fi
42ecbf5e 4903YACC=$ac_cv_prog_YACC
d15b04bd 4904if test -n "$YACC"; then
42ecbf5e
DJ
4905 echo "$as_me:$LINENO: result: $YACC" >&5
4906echo "${ECHO_T}$YACC" >&6
e5a52504 4907else
42ecbf5e
DJ
4908 echo "$as_me:$LINENO: result: no" >&5
4909echo "${ECHO_T}no" >&6
e5a52504
MM
4910fi
4911
42ecbf5e 4912 test -n "$YACC" && break
d15b04bd
L
4913done
4914test -n "$YACC" || YACC="yacc"
4915
d15b04bd
L
4916for ac_prog in flex lex
4917do
42ecbf5e 4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
d15b04bd 4919set dummy $ac_prog; ac_word=$2
42ecbf5e
DJ
4920echo "$as_me:$LINENO: checking for $ac_word" >&5
4921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922if test "${ac_cv_prog_LEX+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd
L
4924else
4925 if test -n "$LEX"; then
4926 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4927else
42ecbf5e
DJ
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_LEX="$ac_prog"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939done
d15b04bd 4940done
d15b04bd 4941
d15b04bd 4942fi
e5a52504 4943fi
42ecbf5e 4944LEX=$ac_cv_prog_LEX
d15b04bd 4945if test -n "$LEX"; then
42ecbf5e
DJ
4946 echo "$as_me:$LINENO: result: $LEX" >&5
4947echo "${ECHO_T}$LEX" >&6
e5a52504 4948else
42ecbf5e
DJ
4949 echo "$as_me:$LINENO: result: no" >&5
4950echo "${ECHO_T}no" >&6
e5a52504 4951fi
e5a52504 4952
42ecbf5e
DJ
4953 test -n "$LEX" && break
4954done
4955test -n "$LEX" || LEX=":"
4956
d15b04bd
L
4957if test -z "$LEXLIB"
4958then
42ecbf5e
DJ
4959 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4960echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4961if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964 ac_check_lib_save_LIBS=$LIBS
4965LIBS="-lfl $LIBS"
4966cat >conftest.$ac_ext <<_ACEOF
4967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h. */
4972
d15b04bd 4973/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
4974#ifdef __cplusplus
4975extern "C"
4976#endif
d15b04bd 4977/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
4978 builtin and then its argument prototype would still apply. */
4979char yywrap ();
4980int
4981main ()
4982{
4983yywrap ();
4984 ;
4985 return 0;
4986}
4987_ACEOF
4988rm -f conftest.$ac_objext conftest$ac_exeext
4989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4990 (eval $ac_link) 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
b7d4af3a
JW
4997 { ac_try='test -z "$ac_c_werror_flag"
4998 || test ! -s conftest.err'
42ecbf5e
DJ
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 (eval $ac_try) 2>&5
5001 ac_status=$?
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest$ac_exeext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_lib_fl_yywrap=yes
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015ac_cv_lib_fl_yywrap=no
5016fi
5017rm -f conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5019LIBS=$ac_check_lib_save_LIBS
5020fi
5021echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5022echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5023if test $ac_cv_lib_fl_yywrap = yes; then
5024 LEXLIB="-lfl"
5025else
5026 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5027echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5028if test "${ac_cv_lib_l_yywrap+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030else
5031 ac_check_lib_save_LIBS=$LIBS
5032LIBS="-ll $LIBS"
5033cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
d15b04bd 5039
42ecbf5e
DJ
5040/* Override any gcc2 internal prototype to avoid an error. */
5041#ifdef __cplusplus
5042extern "C"
5043#endif
5044/* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5046char yywrap ();
5047int
5048main ()
5049{
5050yywrap ();
5051 ;
5052 return 0;
5053}
5054_ACEOF
5055rm -f conftest.$ac_objext conftest$ac_exeext
5056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5057 (eval $ac_link) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
b7d4af3a
JW
5064 { ac_try='test -z "$ac_c_werror_flag"
5065 || test ! -s conftest.err'
42ecbf5e
DJ
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; } &&
5071 { ac_try='test -s conftest$ac_exeext'
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; }; then
5077 ac_cv_lib_l_yywrap=yes
5078else
5079 echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
5082ac_cv_lib_l_yywrap=no
5083fi
5084rm -f conftest.err conftest.$ac_objext \
5085 conftest$ac_exeext conftest.$ac_ext
5086LIBS=$ac_check_lib_save_LIBS
5087fi
5088echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5089echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5090if test $ac_cv_lib_l_yywrap = yes; then
5091 LEXLIB="-ll"
5092fi
5093
5094fi
5095
5096fi
5097
5098if test "x$LEX" != "x:"; then
5099 echo "$as_me:$LINENO: checking lex output file root" >&5
5100echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5101if test "${ac_cv_prog_lex_root+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5103else
d15b04bd
L
5104 # The minimal lex program is just a single line: %%. But some broken lexes
5105# (Solaris, I think it was) want two %% lines, so accommodate them.
42ecbf5e
DJ
5106cat >conftest.l <<_ACEOF
5107%%
5108%%
5109_ACEOF
5110{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5111 (eval $LEX conftest.l) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }
d15b04bd
L
5115if test -f lex.yy.c; then
5116 ac_cv_prog_lex_root=lex.yy
5117elif test -f lexyy.c; then
5118 ac_cv_prog_lex_root=lexyy
e5a52504 5119else
42ecbf5e
DJ
5120 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5121echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5122 { (exit 1); exit 1; }; }
e5a52504 5123fi
d15b04bd 5124fi
42ecbf5e
DJ
5125echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5126echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5127rm -f conftest.l
d15b04bd
L
5128LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5129
42ecbf5e
DJ
5130echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5131echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5132if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5134else
d15b04bd
L
5135 # POSIX says lex can declare yytext either as a pointer or an array; the
5136# default is implementation-dependent. Figure out which it is, since
5137# not all implementations provide the %pointer and %array declarations.
5138ac_cv_prog_lex_yytext_pointer=no
5139echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
42ecbf5e 5140ac_save_LIBS=$LIBS
d15b04bd 5141LIBS="$LIBS $LEXLIB"
42ecbf5e 5142cat >conftest.$ac_ext <<_ACEOF
d15b04bd 5143`cat $LEX_OUTPUT_ROOT.c`
42ecbf5e
DJ
5144_ACEOF
5145rm -f conftest.$ac_objext conftest$ac_exeext
5146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5147 (eval $ac_link) 2>conftest.er1
5148 ac_status=$?
5149 grep -v '^ *+' conftest.er1 >conftest.err
5150 rm -f conftest.er1
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } &&
b7d4af3a
JW
5154 { ac_try='test -z "$ac_c_werror_flag"
5155 || test ! -s conftest.err'
42ecbf5e
DJ
5156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 (eval $ac_try) 2>&5
5158 ac_status=$?
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }; } &&
5161 { ac_try='test -s conftest$ac_exeext'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
d15b04bd
L
5167 ac_cv_prog_lex_yytext_pointer=yes
5168else
42ecbf5e
DJ
5169 echo "$as_me: failed program was:" >&5
5170sed 's/^/| /' conftest.$ac_ext >&5
5171
e5a52504 5172fi
42ecbf5e
DJ
5173rm -f conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5175LIBS=$ac_save_LIBS
d15b04bd 5176rm -f "${LEX_OUTPUT_ROOT}.c"
e5a52504 5177
e5a52504 5178fi
42ecbf5e
DJ
5179echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5180echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
d15b04bd 5181if test $ac_cv_prog_lex_yytext_pointer = yes; then
42ecbf5e
DJ
5182
5183cat >>confdefs.h <<\_ACEOF
d15b04bd 5184#define YYTEXT_POINTER 1
42ecbf5e 5185_ACEOF
d15b04bd
L
5186
5187fi
e5a52504 5188
42ecbf5e
DJ
5189fi
5190if test "$LEX" = :; then
5191 LEX=${am_missing_run}flex
5192fi
e5a52504 5193
82d457f6 5194ALL_LINGUAS="fr tr ja es sv da zh_CN ru ro rw zh_TW"
42ecbf5e
DJ
5195if test -n "$ac_tool_prefix"; then
5196 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5197set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5198echo "$as_me:$LINENO: checking for $ac_word" >&5
5199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5200if test "${ac_cv_prog_RANLIB+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
e5a52504 5202else
d15b04bd
L
5203 if test -n "$RANLIB"; then
5204 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5205else
42ecbf5e
DJ
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217done
5218done
5219
d15b04bd
L
5220fi
5221fi
42ecbf5e 5222RANLIB=$ac_cv_prog_RANLIB
d15b04bd 5223if test -n "$RANLIB"; then
42ecbf5e
DJ
5224 echo "$as_me:$LINENO: result: $RANLIB" >&5
5225echo "${ECHO_T}$RANLIB" >&6
5226else
5227 echo "$as_me:$LINENO: result: no" >&5
5228echo "${ECHO_T}no" >&6
5229fi
5230
5231fi
5232if test -z "$ac_cv_prog_RANLIB"; then
5233 ac_ct_RANLIB=$RANLIB
5234 # Extract the first word of "ranlib", so it can be a program name with args.
5235set dummy ranlib; ac_word=$2
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5238if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 if test -n "$ac_ct_RANLIB"; then
5242 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5243else
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_ac_ct_RANLIB="ranlib"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256done
5257
5258 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5259fi
5260fi
5261ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5262if test -n "$ac_ct_RANLIB"; then
5263 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5264echo "${ECHO_T}$ac_ct_RANLIB" >&6
5265else
5266 echo "$as_me:$LINENO: result: no" >&5
5267echo "${ECHO_T}no" >&6
5268fi
5269
5270 RANLIB=$ac_ct_RANLIB
5271else
5272 RANLIB="$ac_cv_prog_RANLIB"
5273fi
5274
5275ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5281echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5282# On Suns, sometimes $CPP names a directory.
5283if test -n "$CPP" && test -d "$CPP"; then
5284 CPP=
5285fi
5286if test -z "$CPP"; then
5287 if test "${ac_cv_prog_CPP+set}" = set; then
5288 echo $ECHO_N "(cached) $ECHO_C" >&6
5289else
5290 # Double quotes because CPP needs to be expanded
5291 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5292 do
5293 ac_preproc_ok=false
5294for ac_c_preproc_warn_flag in '' yes
5295do
5296 # Use a header file that comes with gcc, so configuring glibc
5297 # with a fresh cross-compiler works.
5298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5299 # <limits.h> exists even on freestanding compilers.
5300 # On the NeXT, cc -E runs the code through the compiler's parser,
5301 # not just through cpp. "Syntax error" is here to catch this case.
5302 cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h. */
5304_ACEOF
5305cat confdefs.h >>conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h. */
5308#ifdef __STDC__
5309# include <limits.h>
5310#else
5311# include <assert.h>
5312#endif
5313 Syntax error
5314_ACEOF
5315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } >/dev/null; then
5323 if test -s conftest.err; then
5324 ac_cpp_err=$ac_c_preproc_warn_flag
5325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5326 else
5327 ac_cpp_err=
5328 fi
5329else
5330 ac_cpp_err=yes
5331fi
5332if test -z "$ac_cpp_err"; then
5333 :
5334else
5335 echo "$as_me: failed program was:" >&5
5336sed 's/^/| /' conftest.$ac_ext >&5
5337
5338 # Broken: fails on valid input.
5339continue
5340fi
5341rm -f conftest.err conftest.$ac_ext
5342
5343 # OK, works on sane cases. Now check whether non-existent headers
5344 # can be detected and how.
5345 cat >conftest.$ac_ext <<_ACEOF
5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
5351#include <ac_nonexistent.h>
5352_ACEOF
5353if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null; then
5361 if test -s conftest.err; then
5362 ac_cpp_err=$ac_c_preproc_warn_flag
5363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5364 else
5365 ac_cpp_err=
5366 fi
5367else
5368 ac_cpp_err=yes
5369fi
5370if test -z "$ac_cpp_err"; then
5371 # Broken: success on invalid input.
5372continue
5373else
5374 echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 # Passes both tests.
5378ac_preproc_ok=:
5379break
5380fi
5381rm -f conftest.err conftest.$ac_ext
5382
5383done
5384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5385rm -f conftest.err conftest.$ac_ext
5386if $ac_preproc_ok; then
5387 break
5388fi
5389
5390 done
5391 ac_cv_prog_CPP=$CPP
5392
5393fi
5394 CPP=$ac_cv_prog_CPP
5395else
5396 ac_cv_prog_CPP=$CPP
5397fi
5398echo "$as_me:$LINENO: result: $CPP" >&5
5399echo "${ECHO_T}$CPP" >&6
5400ac_preproc_ok=false
5401for ac_c_preproc_warn_flag in '' yes
5402do
5403 # Use a header file that comes with gcc, so configuring glibc
5404 # with a fresh cross-compiler works.
5405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5406 # <limits.h> exists even on freestanding compilers.
5407 # On the NeXT, cc -E runs the code through the compiler's parser,
5408 # not just through cpp. "Syntax error" is here to catch this case.
5409 cat >conftest.$ac_ext <<_ACEOF
5410/* confdefs.h. */
5411_ACEOF
5412cat confdefs.h >>conftest.$ac_ext
5413cat >>conftest.$ac_ext <<_ACEOF
5414/* end confdefs.h. */
5415#ifdef __STDC__
5416# include <limits.h>
5417#else
5418# include <assert.h>
5419#endif
5420 Syntax error
5421_ACEOF
5422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5424 ac_status=$?
5425 grep -v '^ *+' conftest.er1 >conftest.err
5426 rm -f conftest.er1
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null; then
5430 if test -s conftest.err; then
5431 ac_cpp_err=$ac_c_preproc_warn_flag
5432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5433 else
5434 ac_cpp_err=
5435 fi
5436else
5437 ac_cpp_err=yes
5438fi
5439if test -z "$ac_cpp_err"; then
5440 :
5441else
5442 echo "$as_me: failed program was:" >&5
5443sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 # Broken: fails on valid input.
5446continue
5447fi
5448rm -f conftest.err conftest.$ac_ext
5449
5450 # OK, works on sane cases. Now check whether non-existent headers
5451 # can be detected and how.
5452 cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458#include <ac_nonexistent.h>
5459_ACEOF
5460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5471 else
5472 ac_cpp_err=
5473 fi
5474else
5475 ac_cpp_err=yes
5476fi
5477if test -z "$ac_cpp_err"; then
5478 # Broken: success on invalid input.
5479continue
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 # Passes both tests.
5485ac_preproc_ok=:
5486break
5487fi
5488rm -f conftest.err conftest.$ac_ext
5489
5490done
5491# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492rm -f conftest.err conftest.$ac_ext
5493if $ac_preproc_ok; then
5494 :
5495else
5496 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5497See \`config.log' for more details." >&5
5498echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5499See \`config.log' for more details." >&2;}
5500 { (exit 1); exit 1; }; }
5501fi
5502
5503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508
5509
5510echo "$as_me:$LINENO: checking for egrep" >&5
5511echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5512if test "${ac_cv_prog_egrep+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
d15b04bd 5514else
42ecbf5e
DJ
5515 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5516 then ac_cv_prog_egrep='grep -E'
5517 else ac_cv_prog_egrep='egrep'
5518 fi
e5a52504 5519fi
42ecbf5e
DJ
5520echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5521echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5522 EGREP=$ac_cv_prog_egrep
5523
ac48eca1 5524
42ecbf5e
DJ
5525echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5526echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5527if test "${ac_cv_header_stdc+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5529else
42ecbf5e
DJ
5530 cat >conftest.$ac_ext <<_ACEOF
5531/* confdefs.h. */
5532_ACEOF
5533cat confdefs.h >>conftest.$ac_ext
5534cat >>conftest.$ac_ext <<_ACEOF
5535/* end confdefs.h. */
252b5132
RH
5536#include <stdlib.h>
5537#include <stdarg.h>
5538#include <string.h>
5539#include <float.h>
42ecbf5e
DJ
5540
5541int
5542main ()
5543{
5544
5545 ;
5546 return 0;
5547}
5548_ACEOF
5549rm -f conftest.$ac_objext
5550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5551 (eval $ac_compile) 2>conftest.er1
5552 ac_status=$?
5553 grep -v '^ *+' conftest.er1 >conftest.err
5554 rm -f conftest.er1
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
b7d4af3a
JW
5558 { ac_try='test -z "$ac_c_werror_flag"
5559 || test ! -s conftest.err'
42ecbf5e
DJ
5560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }; } &&
5565 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
252b5132
RH
5571 ac_cv_header_stdc=yes
5572else
42ecbf5e
DJ
5573 echo "$as_me: failed program was:" >&5
5574sed 's/^/| /' conftest.$ac_ext >&5
5575
5576ac_cv_header_stdc=no
252b5132 5577fi
42ecbf5e 5578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5579
5580if test $ac_cv_header_stdc = yes; then
5581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
42ecbf5e
DJ
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
252b5132 5588#include <string.h>
42ecbf5e
DJ
5589
5590_ACEOF
252b5132 5591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 5592 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5593 :
5594else
252b5132
RH
5595 ac_cv_header_stdc=no
5596fi
5597rm -f conftest*
5598
5599fi
5600
5601if test $ac_cv_header_stdc = yes; then
5602 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
42ecbf5e
DJ
5603 cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h. */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h. */
252b5132 5609#include <stdlib.h>
42ecbf5e
DJ
5610
5611_ACEOF
252b5132 5612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 5613 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5614 :
5615else
252b5132
RH
5616 ac_cv_header_stdc=no
5617fi
5618rm -f conftest*
5619
5620fi
5621
5622if test $ac_cv_header_stdc = yes; then
5623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
42ecbf5e 5624 if test "$cross_compiling" = yes; then
252b5132
RH
5625 :
5626else
42ecbf5e
DJ
5627 cat >conftest.$ac_ext <<_ACEOF
5628/* confdefs.h. */
5629_ACEOF
5630cat confdefs.h >>conftest.$ac_ext
5631cat >>conftest.$ac_ext <<_ACEOF
5632/* end confdefs.h. */
252b5132 5633#include <ctype.h>
42ecbf5e
DJ
5634#if ((' ' & 0x0FF) == 0x020)
5635# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5636# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5637#else
5638# define ISLOWER(c) \
5639 (('a' <= (c) && (c) <= 'i') \
5640 || ('j' <= (c) && (c) <= 'r') \
5641 || ('s' <= (c) && (c) <= 'z'))
5642# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5643#endif
d15b04bd 5644
42ecbf5e
DJ
5645#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5646int
5647main ()
5648{
5649 int i;
5650 for (i = 0; i < 256; i++)
5651 if (XOR (islower (i), ISLOWER (i))
5652 || toupper (i) != TOUPPER (i))
5653 exit(2);
5654 exit (0);
5655}
5656_ACEOF
5657rm -f conftest$ac_exeext
5658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659 (eval $ac_link) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
252b5132
RH
5668 :
5669else
42ecbf5e
DJ
5670 echo "$as_me: program exited with status $ac_status" >&5
5671echo "$as_me: failed program was:" >&5
5672sed 's/^/| /' conftest.$ac_ext >&5
5673
5674( exit $ac_status )
5675ac_cv_header_stdc=no
252b5132 5676fi
42ecbf5e 5677rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5678fi
252b5132
RH
5679fi
5680fi
42ecbf5e
DJ
5681echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5682echo "${ECHO_T}$ac_cv_header_stdc" >&6
d15b04bd 5683if test $ac_cv_header_stdc = yes; then
42ecbf5e
DJ
5684
5685cat >>confdefs.h <<\_ACEOF
252b5132 5686#define STDC_HEADERS 1
42ecbf5e 5687_ACEOF
252b5132
RH
5688
5689fi
5690
42ecbf5e
DJ
5691echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5692echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5693if test "${ac_cv_c_const+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5695else
5696 cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h. */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h. */
d15b04bd 5702
42ecbf5e
DJ
5703int
5704main ()
5705{
5706/* FIXME: Include the comments suggested by Paul. */
5707#ifndef __cplusplus
5708 /* Ultrix mips cc rejects this. */
5709 typedef int charset[2];
5710 const charset x;
5711 /* SunOS 4.1.1 cc rejects this. */
5712 char const *const *ccp;
5713 char **p;
5714 /* NEC SVR4.0.2 mips cc rejects this. */
5715 struct point {int x, y;};
5716 static struct point const zero = {0,0};
5717 /* AIX XL C 1.02.0.0 rejects this.
5718 It does not let you subtract one const X* pointer from another in
5719 an arm of an if-expression whose if-part is not a constant
5720 expression */
5721 const char *g = "string";
5722 ccp = &g + (g ? g-g : 0);
5723 /* HPUX 7.0 cc rejects these. */
5724 ++ccp;
5725 p = (char**) ccp;
5726 ccp = (char const *const *) p;
5727 { /* SCO 3.2v4 cc rejects this. */
5728 char *t;
5729 char const *s = 0 ? (char *) 0 : (char const *) 0;
5730
5731 *t++ = 0;
5732 }
5733 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5734 int x[] = {25, 17};
5735 const int *foo = &x[0];
5736 ++foo;
5737 }
5738 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5739 typedef const int *iptr;
5740 iptr p = 0;
5741 ++p;
5742 }
5743 { /* AIX XL C 1.02.0.0 rejects this saying
5744 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5745 struct s { int j; const int *ap[3]; };
5746 struct s *b; b->j = 5;
5747 }
5748 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5749 const int foo = 10;
5750 }
5751#endif
5752
5753 ;
5754 return 0;
5755}
5756_ACEOF
5757rm -f conftest.$ac_objext
5758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>conftest.er1
5760 ac_status=$?
5761 grep -v '^ *+' conftest.er1 >conftest.err
5762 rm -f conftest.er1
5763 cat conftest.err >&5
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
b7d4af3a
JW
5766 { ac_try='test -z "$ac_c_werror_flag"
5767 || test ! -s conftest.err'
42ecbf5e
DJ
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
252b5132
RH
5779 ac_cv_c_const=yes
5780else
42ecbf5e
DJ
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784ac_cv_c_const=no
252b5132 5785fi
42ecbf5e 5786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5787fi
42ecbf5e
DJ
5788echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5789echo "${ECHO_T}$ac_cv_c_const" >&6
d15b04bd 5790if test $ac_cv_c_const = no; then
42ecbf5e
DJ
5791
5792cat >>confdefs.h <<\_ACEOF
5793#define const
5794_ACEOF
252b5132
RH
5795
5796fi
5797
42ecbf5e
DJ
5798echo "$as_me:$LINENO: checking for inline" >&5
5799echo $ECHO_N "checking for inline... $ECHO_C" >&6
5800if test "${ac_cv_c_inline+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5802else
5803 ac_cv_c_inline=no
5804for ac_kw in inline __inline__ __inline; do
42ecbf5e
DJ
5805 cat >conftest.$ac_ext <<_ACEOF
5806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */
5811#ifndef __cplusplus
5812typedef int foo_t;
5813static $ac_kw foo_t static_foo () {return 0; }
5814$ac_kw foo_t foo () {return 0; }
5815#endif
252b5132 5816
42ecbf5e
DJ
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
b7d4af3a
JW
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
42ecbf5e
DJ
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
252b5132
RH
5840 ac_cv_c_inline=$ac_kw; break
5841else
42ecbf5e
DJ
5842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
252b5132 5845fi
42ecbf5e 5846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5847done
5848
5849fi
42ecbf5e
DJ
5850echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5851echo "${ECHO_T}$ac_cv_c_inline" >&6
252b5132 5852
42ecbf5e
DJ
5853
5854case $ac_cv_c_inline in
252b5132 5855 inline | yes) ;;
42ecbf5e
DJ
5856 *)
5857 case $ac_cv_c_inline in
5858 no) ac_val=;;
5859 *) ac_val=$ac_cv_c_inline;;
5860 esac
5861 cat >>confdefs.h <<_ACEOF
5862#ifndef __cplusplus
5863#define inline $ac_val
5864#endif
5865_ACEOF
5866 ;;
252b5132
RH
5867esac
5868
42ecbf5e
DJ
5869# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5880 inttypes.h stdint.h unistd.h
5881do
5882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5883echo "$as_me:$LINENO: checking for $ac_header" >&5
5884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5885if eval "test \"\${$as_ac_Header+set}\" = set"; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888 cat >conftest.$ac_ext <<_ACEOF
5889/* confdefs.h. */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h. */
5894$ac_includes_default
5895
5896#include <$ac_header>
5897_ACEOF
5898rm -f conftest.$ac_objext
5899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900 (eval $ac_compile) 2>conftest.er1
5901 ac_status=$?
5902 grep -v '^ *+' conftest.er1 >conftest.err
5903 rm -f conftest.er1
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
b7d4af3a
JW
5907 { ac_try='test -z "$ac_c_werror_flag"
5908 || test ! -s conftest.err'
42ecbf5e
DJ
5909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 (eval $ac_try) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }; } &&
5914 { ac_try='test -s conftest.$ac_objext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 eval "$as_ac_Header=yes"
5921else
5922 echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
5925eval "$as_ac_Header=no"
5926fi
5927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5928fi
5929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5931if test `eval echo '${'$as_ac_Header'}'` = yes; then
5932 cat >>confdefs.h <<_ACEOF
5933#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5934_ACEOF
5935
5936fi
5937
5938done
5939
5940
5941echo "$as_me:$LINENO: checking for off_t" >&5
5942echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5943if test "${ac_cv_type_off_t+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5945else
42ecbf5e
DJ
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952$ac_includes_default
5953int
5954main ()
5955{
5956if ((off_t *) 0)
5957 return 0;
5958if (sizeof (off_t))
5959 return 0;
5960 ;
5961 return 0;
5962}
5963_ACEOF
5964rm -f conftest.$ac_objext
5965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5966 (eval $ac_compile) 2>conftest.er1
5967 ac_status=$?
5968 grep -v '^ *+' conftest.er1 >conftest.err
5969 rm -f conftest.er1
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
b7d4af3a
JW
5973 { ac_try='test -z "$ac_c_werror_flag"
5974 || test ! -s conftest.err'
42ecbf5e
DJ
5975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976 (eval $ac_try) 2>&5
5977 ac_status=$?
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); }; } &&
5980 { ac_try='test -s conftest.$ac_objext'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; }; then
252b5132
RH
5986 ac_cv_type_off_t=yes
5987else
42ecbf5e
DJ
5988 echo "$as_me: failed program was:" >&5
5989sed 's/^/| /' conftest.$ac_ext >&5
e5a52504 5990
42ecbf5e
DJ
5991ac_cv_type_off_t=no
5992fi
5993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d15b04bd 5994fi
42ecbf5e
DJ
5995echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5996echo "${ECHO_T}$ac_cv_type_off_t" >&6
5997if test $ac_cv_type_off_t = yes; then
5998 :
5999else
6000
6001cat >>confdefs.h <<_ACEOF
252b5132 6002#define off_t long
42ecbf5e 6003_ACEOF
252b5132
RH
6004
6005fi
6006
42ecbf5e
DJ
6007echo "$as_me:$LINENO: checking for size_t" >&5
6008echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6009if test "${ac_cv_type_size_t+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6011else
42ecbf5e
DJ
6012 cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h. */
6014_ACEOF
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h. */
6018$ac_includes_default
6019int
6020main ()
6021{
6022if ((size_t *) 0)
6023 return 0;
6024if (sizeof (size_t))
6025 return 0;
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030rm -f conftest.$ac_objext
6031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032 (eval $ac_compile) 2>conftest.er1
6033 ac_status=$?
6034 grep -v '^ *+' conftest.er1 >conftest.err
6035 rm -f conftest.er1
6036 cat conftest.err >&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
b7d4af3a
JW
6039 { ac_try='test -z "$ac_c_werror_flag"
6040 || test ! -s conftest.err'
42ecbf5e
DJ
6041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042 (eval $ac_try) 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }; } &&
6046 { ac_try='test -s conftest.$ac_objext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 (eval $ac_try) 2>&5
6049 ac_status=$?
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
252b5132
RH
6052 ac_cv_type_size_t=yes
6053else
42ecbf5e
DJ
6054 echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
e5a52504 6056
42ecbf5e 6057ac_cv_type_size_t=no
d15b04bd 6058fi
42ecbf5e
DJ
6059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6060fi
6061echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6062echo "${ECHO_T}$ac_cv_type_size_t" >&6
6063if test $ac_cv_type_size_t = yes; then
6064 :
6065else
6066
6067cat >>confdefs.h <<_ACEOF
252b5132 6068#define size_t unsigned
42ecbf5e 6069_ACEOF
252b5132
RH
6070
6071fi
6072
6073# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6074# for constant arguments. Useless!
42ecbf5e
DJ
6075echo "$as_me:$LINENO: checking for working alloca.h" >&5
6076echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6077if test "${ac_cv_working_alloca_h+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080 cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h. */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h. */
252b5132 6086#include <alloca.h>
42ecbf5e
DJ
6087int
6088main ()
6089{
6090char *p = (char *) alloca (2 * sizeof (int));
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext conftest$ac_exeext
6096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } &&
b7d4af3a
JW
6104 { ac_try='test -z "$ac_c_werror_flag"
6105 || test ! -s conftest.err'
42ecbf5e
DJ
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_cv_working_alloca_h=yes
6118else
6119 echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122ac_cv_working_alloca_h=no
6123fi
6124rm -f conftest.err conftest.$ac_objext \
6125 conftest$ac_exeext conftest.$ac_ext
6126fi
6127echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6128echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6129if test $ac_cv_working_alloca_h = yes; then
6130
6131cat >>confdefs.h <<\_ACEOF
252b5132 6132#define HAVE_ALLOCA_H 1
42ecbf5e 6133_ACEOF
252b5132
RH
6134
6135fi
6136
42ecbf5e
DJ
6137echo "$as_me:$LINENO: checking for alloca" >&5
6138echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6139if test "${ac_cv_func_alloca_works+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6141else
42ecbf5e
DJ
6142 cat >conftest.$ac_ext <<_ACEOF
6143/* confdefs.h. */
6144_ACEOF
6145cat confdefs.h >>conftest.$ac_ext
6146cat >>conftest.$ac_ext <<_ACEOF
6147/* end confdefs.h. */
252b5132
RH
6148#ifdef __GNUC__
6149# define alloca __builtin_alloca
6150#else
6151# ifdef _MSC_VER
6152# include <malloc.h>
6153# define alloca _alloca
6154# else
6155# if HAVE_ALLOCA_H
6156# include <alloca.h>
6157# else
6158# ifdef _AIX
6159 #pragma alloca
6160# else
6161# ifndef alloca /* predefined by HP cc +Olibcalls */
6162char *alloca ();
6163# endif
6164# endif
6165# endif
6166# endif
6167#endif
6168
42ecbf5e
DJ
6169int
6170main ()
6171{
6172char *p = (char *) alloca (1);
6173 ;
6174 return 0;
6175}
6176_ACEOF
6177rm -f conftest.$ac_objext conftest$ac_exeext
6178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } &&
b7d4af3a
JW
6186 { ac_try='test -z "$ac_c_werror_flag"
6187 || test ! -s conftest.err'
42ecbf5e
DJ
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 (eval $ac_try) 2>&5
6190 ac_status=$?
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; } &&
6193 { ac_try='test -s conftest$ac_exeext'
6194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195 (eval $ac_try) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
252b5132
RH
6199 ac_cv_func_alloca_works=yes
6200else
42ecbf5e
DJ
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204ac_cv_func_alloca_works=no
252b5132 6205fi
42ecbf5e
DJ
6206rm -f conftest.err conftest.$ac_objext \
6207 conftest$ac_exeext conftest.$ac_ext
252b5132 6208fi
42ecbf5e
DJ
6209echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6210echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 6211
252b5132 6212if test $ac_cv_func_alloca_works = yes; then
e5a52504 6213
42ecbf5e
DJ
6214cat >>confdefs.h <<\_ACEOF
6215#define HAVE_ALLOCA 1
6216_ACEOF
e5a52504 6217
42ecbf5e 6218else
d15b04bd 6219 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
6220# that cause trouble. Some versions do not even contain alloca or
6221# contain a buggy version. If you still want to use their alloca,
6222# use ar to extract alloca.o from them instead of compiling alloca.c.
6223
6224ALLOCA=alloca.$ac_objext
6225
6226cat >>confdefs.h <<\_ACEOF
252b5132 6227#define C_ALLOCA 1
42ecbf5e 6228_ACEOF
252b5132
RH
6229
6230
42ecbf5e
DJ
6231echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6232echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6233if test "${ac_cv_os_cray+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6235else
42ecbf5e
DJ
6236 cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
252b5132
RH
6242#if defined(CRAY) && ! defined(CRAY2)
6243webecray
6244#else
6245wenotbecray
6246#endif
6247
42ecbf5e 6248_ACEOF
252b5132 6249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 6250 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
6251 ac_cv_os_cray=yes
6252else
252b5132
RH
6253 ac_cv_os_cray=no
6254fi
6255rm -f conftest*
6256
6257fi
42ecbf5e
DJ
6258echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6259echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 6260if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
6261 for ac_func in _getb67 GETB67 getb67; do
6262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6263echo "$as_me:$LINENO: checking for $ac_func" >&5
6264echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6265if eval "test \"\${$as_ac_var+set}\" = set"; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267else
6268 cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h. */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h. */
6274/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6276#define $ac_func innocuous_$ac_func
6277
252b5132 6278/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6279 which can conflict with char $ac_func (); below.
6280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6281 <limits.h> exists even on freestanding compilers. */
6282
6283#ifdef __STDC__
6284# include <limits.h>
6285#else
6286# include <assert.h>
6287#endif
d15b04bd 6288
42ecbf5e 6289#undef $ac_func
d15b04bd 6290
42ecbf5e
DJ
6291/* Override any gcc2 internal prototype to avoid an error. */
6292#ifdef __cplusplus
6293extern "C"
6294{
6295#endif
6296/* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6298char $ac_func ();
252b5132
RH
6299/* The GNU C library defines this for functions which it implements
6300 to always fail with ENOSYS. Some functions are actually named
6301 something starting with __ and the normal name is an alias. */
6302#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303choke me
6304#else
42ecbf5e
DJ
6305char (*f) () = $ac_func;
6306#endif
6307#ifdef __cplusplus
6308}
252b5132
RH
6309#endif
6310
42ecbf5e
DJ
6311int
6312main ()
6313{
6314return f != $ac_func;
6315 ;
6316 return 0;
6317}
6318_ACEOF
6319rm -f conftest.$ac_objext conftest$ac_exeext
6320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
b7d4af3a
JW
6328 { ac_try='test -z "$ac_c_werror_flag"
6329 || test ! -s conftest.err'
42ecbf5e
DJ
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; } &&
6335 { ac_try='test -s conftest$ac_exeext'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; }; then
6341 eval "$as_ac_var=yes"
6342else
6343 echo "$as_me: failed program was:" >&5
6344sed 's/^/| /' conftest.$ac_ext >&5
6345
6346eval "$as_ac_var=no"
6347fi
6348rm -f conftest.err conftest.$ac_objext \
6349 conftest$ac_exeext conftest.$ac_ext
6350fi
6351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6352echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6353if test `eval echo '${'$as_ac_var'}'` = yes; then
6354
6355cat >>confdefs.h <<_ACEOF
252b5132 6356#define CRAY_STACKSEG_END $ac_func
42ecbf5e 6357_ACEOF
252b5132 6358
42ecbf5e 6359 break
252b5132
RH
6360fi
6361
42ecbf5e 6362 done
252b5132
RH
6363fi
6364
42ecbf5e
DJ
6365echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6366echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6367if test "${ac_cv_c_stack_direction+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6369else
6370 if test "$cross_compiling" = yes; then
6371 ac_cv_c_stack_direction=0
6372else
42ecbf5e
DJ
6373 cat >conftest.$ac_ext <<_ACEOF
6374/* confdefs.h. */
6375_ACEOF
6376cat confdefs.h >>conftest.$ac_ext
6377cat >>conftest.$ac_ext <<_ACEOF
6378/* end confdefs.h. */
6379int
252b5132
RH
6380find_stack_direction ()
6381{
6382 static char *addr = 0;
6383 auto char dummy;
6384 if (addr == 0)
6385 {
6386 addr = &dummy;
6387 return find_stack_direction ();
6388 }
6389 else
6390 return (&dummy > addr) ? 1 : -1;
6391}
42ecbf5e
DJ
6392
6393int
252b5132
RH
6394main ()
6395{
42ecbf5e 6396 exit (find_stack_direction () < 0);
252b5132 6397}
42ecbf5e
DJ
6398_ACEOF
6399rm -f conftest$ac_exeext
6400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6401 (eval $ac_link) 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 (eval $ac_try) 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
252b5132
RH
6410 ac_cv_c_stack_direction=1
6411else
42ecbf5e
DJ
6412 echo "$as_me: program exited with status $ac_status" >&5
6413echo "$as_me: failed program was:" >&5
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416( exit $ac_status )
6417ac_cv_c_stack_direction=-1
252b5132 6418fi
42ecbf5e 6419rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6420fi
252b5132 6421fi
42ecbf5e
DJ
6422echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6423echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6424
42ecbf5e 6425cat >>confdefs.h <<_ACEOF
252b5132 6426#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
6427_ACEOF
6428
252b5132
RH
6429
6430fi
6431
42ecbf5e
DJ
6432
6433
6434for ac_header in stdlib.h unistd.h
252b5132 6435do
42ecbf5e
DJ
6436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6437if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438 echo "$as_me:$LINENO: checking for $ac_header" >&5
6439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6440if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6442fi
6443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6445else
6446 # Is the header compilable?
6447echo "$as_me:$LINENO: checking $ac_header usability" >&5
6448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6449cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h. */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h. */
6455$ac_includes_default
6456#include <$ac_header>
6457_ACEOF
6458rm -f conftest.$ac_objext
6459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>conftest.er1
6461 ac_status=$?
6462 grep -v '^ *+' conftest.er1 >conftest.err
6463 rm -f conftest.er1
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
b7d4af3a
JW
6467 { ac_try='test -z "$ac_c_werror_flag"
6468 || test ! -s conftest.err'
42ecbf5e
DJ
6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470 (eval $ac_try) 2>&5
6471 ac_status=$?
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476 (eval $ac_try) 2>&5
6477 ac_status=$?
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_header_compiler=yes
6481else
6482 echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485ac_header_compiler=no
6486fi
6487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6489echo "${ECHO_T}$ac_header_compiler" >&6
6490
6491# Is the header present?
6492echo "$as_me:$LINENO: checking $ac_header presence" >&5
6493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6494cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <$ac_header>
6501_ACEOF
6502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } >/dev/null; then
6510 if test -s conftest.err; then
6511 ac_cpp_err=$ac_c_preproc_warn_flag
6512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6513 else
6514 ac_cpp_err=
6515 fi
252b5132 6516else
42ecbf5e 6517 ac_cpp_err=yes
252b5132 6518fi
42ecbf5e
DJ
6519if test -z "$ac_cpp_err"; then
6520 ac_header_preproc=yes
6521else
6522 echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_header_preproc=no
252b5132 6526fi
42ecbf5e
DJ
6527rm -f conftest.err conftest.$ac_ext
6528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6529echo "${ECHO_T}$ac_header_preproc" >&6
6530
6531# So? What about this header?
6532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6533 yes:no: )
6534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6538 ac_header_preproc=yes
6539 ;;
6540 no:yes:* )
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6553 (
6554 cat <<\_ASBOX
6555## ------------------------------------------ ##
6556## Report this to the AC_PACKAGE_NAME lists. ##
6557## ------------------------------------------ ##
6558_ASBOX
6559 ) |
6560 sed "s/^/$as_me: WARNING: /" >&2
6561 ;;
6562esac
6563echo "$as_me:$LINENO: checking for $ac_header" >&5
6564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6565if eval "test \"\${$as_ac_Header+set}\" = set"; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6567else
42ecbf5e 6568 eval "$as_ac_Header=\$ac_header_preproc"
e5a52504 6569fi
42ecbf5e
DJ
6570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6572
6573fi
6574if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577_ACEOF
6578
6579fi
6580
252b5132
RH
6581done
6582
42ecbf5e 6583
252b5132
RH
6584for ac_func in getpagesize
6585do
42ecbf5e
DJ
6586as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6587echo "$as_me:$LINENO: checking for $ac_func" >&5
6588echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6589if eval "test \"\${$as_ac_var+set}\" = set"; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
6598/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6600#define $ac_func innocuous_$ac_func
6601
252b5132 6602/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
6603 which can conflict with char $ac_func (); below.
6604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6605 <limits.h> exists even on freestanding compilers. */
6606
6607#ifdef __STDC__
6608# include <limits.h>
6609#else
6610# include <assert.h>
6611#endif
d15b04bd 6612
42ecbf5e 6613#undef $ac_func
d15b04bd 6614
42ecbf5e
DJ
6615/* Override any gcc2 internal prototype to avoid an error. */
6616#ifdef __cplusplus
6617extern "C"
6618{
6619#endif
6620/* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6622char $ac_func ();
252b5132
RH
6623/* The GNU C library defines this for functions which it implements
6624 to always fail with ENOSYS. Some functions are actually named
6625 something starting with __ and the normal name is an alias. */
6626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6627choke me
6628#else
42ecbf5e
DJ
6629char (*f) () = $ac_func;
6630#endif
6631#ifdef __cplusplus
6632}
252b5132
RH
6633#endif
6634
42ecbf5e
DJ
6635int
6636main ()
6637{
6638return f != $ac_func;
6639 ;
6640 return 0;
6641}
6642_ACEOF
6643rm -f conftest.$ac_objext conftest$ac_exeext
6644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645 (eval $ac_link) 2>conftest.er1
6646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
b7d4af3a
JW
6652 { ac_try='test -z "$ac_c_werror_flag"
6653 || test ! -s conftest.err'
42ecbf5e
DJ
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 (eval $ac_try) 2>&5
6656 ac_status=$?
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; } &&
6659 { ac_try='test -s conftest$ac_exeext'
6660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 (eval $ac_try) 2>&5
6662 ac_status=$?
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); }; }; then
6665 eval "$as_ac_var=yes"
6666else
6667 echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670eval "$as_ac_var=no"
6671fi
6672rm -f conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674fi
6675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6677if test `eval echo '${'$as_ac_var'}'` = yes; then
6678 cat >>confdefs.h <<_ACEOF
6679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6680_ACEOF
252b5132 6681
252b5132
RH
6682fi
6683done
6684
42ecbf5e
DJ
6685echo "$as_me:$LINENO: checking for working mmap" >&5
6686echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6687if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6689else
6690 if test "$cross_compiling" = yes; then
6691 ac_cv_func_mmap_fixed_mapped=no
6692else
42ecbf5e
DJ
6693 cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699$ac_includes_default
6700/* malloc might have been renamed as rpl_malloc. */
6701#undef malloc
252b5132
RH
6702
6703/* Thanks to Mike Haertel and Jim Avera for this test.
6704 Here is a matrix of mmap possibilities:
6705 mmap private not fixed
6706 mmap private fixed at somewhere currently unmapped
6707 mmap private fixed at somewhere already mapped
6708 mmap shared not fixed
6709 mmap shared fixed at somewhere currently unmapped
6710 mmap shared fixed at somewhere already mapped
6711 For private mappings, we should verify that changes cannot be read()
6712 back from the file, nor mmap's back from the file at a different
6713 address. (There have been systems where private was not correctly
6714 implemented like the infamous i386 svr4.0, and systems where the
42ecbf5e 6715 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6716 like early versions of FreeBSD and possibly contemporary NetBSD.)
6717 For shared mappings, we should conversely verify that changes get
42ecbf5e 6718 propagated back to all the places they're supposed to be.
252b5132
RH
6719
6720 Grep wants private fixed already mapped.
6721 The main things grep needs to know about mmap are:
6722 * does it exist and is it safe to write into the mmap'd area
6723 * how to use it (BSD variants) */
42ecbf5e 6724
252b5132
RH
6725#include <fcntl.h>
6726#include <sys/mman.h>
6727
42ecbf5e
DJ
6728#if !STDC_HEADERS && !HAVE_STDLIB_H
6729char *malloc ();
6730#endif
d15b04bd 6731
42ecbf5e
DJ
6732/* This mess was copied from the GNU getpagesize.h. */
6733#if !HAVE_GETPAGESIZE
252b5132 6734/* Assume that all systems that can run configure have sys/param.h. */
42ecbf5e 6735# if !HAVE_SYS_PARAM_H
252b5132
RH
6736# define HAVE_SYS_PARAM_H 1
6737# endif
6738
6739# ifdef _SC_PAGESIZE
6740# define getpagesize() sysconf(_SC_PAGESIZE)
6741# else /* no _SC_PAGESIZE */
42ecbf5e 6742# if HAVE_SYS_PARAM_H
252b5132
RH
6743# include <sys/param.h>
6744# ifdef EXEC_PAGESIZE
6745# define getpagesize() EXEC_PAGESIZE
6746# else /* no EXEC_PAGESIZE */
6747# ifdef NBPG
6748# define getpagesize() NBPG * CLSIZE
6749# ifndef CLSIZE
6750# define CLSIZE 1
6751# endif /* no CLSIZE */
6752# else /* no NBPG */
6753# ifdef NBPC
6754# define getpagesize() NBPC
6755# else /* no NBPC */
6756# ifdef PAGESIZE
6757# define getpagesize() PAGESIZE
6758# endif /* PAGESIZE */
6759# endif /* no NBPC */
6760# endif /* no NBPG */
6761# endif /* no EXEC_PAGESIZE */
6762# else /* no HAVE_SYS_PARAM_H */
6763# define getpagesize() 8192 /* punt totally */
6764# endif /* no HAVE_SYS_PARAM_H */
6765# endif /* no _SC_PAGESIZE */
6766
6767#endif /* no HAVE_GETPAGESIZE */
6768
252b5132 6769int
42ecbf5e 6770main ()
252b5132 6771{
42ecbf5e
DJ
6772 char *data, *data2, *data3;
6773 int i, pagesize;
6774 int fd;
6775
6776 pagesize = getpagesize ();
6777
6778 /* First, make a file with some known garbage in it. */
6779 data = (char *) malloc (pagesize);
6780 if (!data)
6781 exit (1);
6782 for (i = 0; i < pagesize; ++i)
6783 *(data + i) = rand ();
6784 umask (0);
6785 fd = creat ("conftest.mmap", 0600);
6786 if (fd < 0)
6787 exit (1);
6788 if (write (fd, data, pagesize) != pagesize)
6789 exit (1);
6790 close (fd);
6791
6792 /* Next, try to mmap the file at a fixed address which already has
6793 something else allocated at it. If we can, also make sure that
6794 we see the same garbage. */
6795 fd = open ("conftest.mmap", O_RDWR);
6796 if (fd < 0)
6797 exit (1);
6798 data2 = (char *) malloc (2 * pagesize);
6799 if (!data2)
6800 exit (1);
6801 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6802 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6803 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6804 exit (1);
6805 for (i = 0; i < pagesize; ++i)
6806 if (*(data + i) != *(data2 + i))
6807 exit (1);
6808
6809 /* Finally, make sure that changes to the mapped area do not
6810 percolate back to the file as seen by read(). (This is a bug on
6811 some variants of i386 svr4.0.) */
6812 for (i = 0; i < pagesize; ++i)
6813 *(data2 + i) = *(data2 + i) + 1;
6814 data3 = (char *) malloc (pagesize);
6815 if (!data3)
6816 exit (1);
6817 if (read (fd, data3, pagesize) != pagesize)
6818 exit (1);
6819 for (i = 0; i < pagesize; ++i)
6820 if (*(data + i) != *(data3 + i))
6821 exit (1);
6822 close (fd);
6823 exit (0);
6824}
6825_ACEOF
6826rm -f conftest$ac_exeext
6827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 (eval $ac_try) 2>&5
6834 ac_status=$?
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); }; }; then
252b5132
RH
6837 ac_cv_func_mmap_fixed_mapped=yes
6838else
42ecbf5e
DJ
6839 echo "$as_me: program exited with status $ac_status" >&5
6840echo "$as_me: failed program was:" >&5
6841sed 's/^/| /' conftest.$ac_ext >&5
6842
6843( exit $ac_status )
6844ac_cv_func_mmap_fixed_mapped=no
252b5132 6845fi
42ecbf5e 6846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6847fi
252b5132 6848fi
42ecbf5e
DJ
6849echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6850echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
d15b04bd 6851if test $ac_cv_func_mmap_fixed_mapped = yes; then
42ecbf5e
DJ
6852
6853cat >>confdefs.h <<\_ACEOF
252b5132 6854#define HAVE_MMAP 1
42ecbf5e 6855_ACEOF
252b5132
RH
6856
6857fi
42ecbf5e
DJ
6858rm -f conftest.mmap
6859
6860
6861
6862
6863
6864
6865
6866
6867
e5a52504 6868
42ecbf5e
DJ
6869
6870for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6871unistd.h values.h sys/param.h
6872do
42ecbf5e
DJ
6873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6874if eval "test \"\${$as_ac_Header+set}\" = set"; then
6875 echo "$as_me:$LINENO: checking for $ac_header" >&5
6876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6877if eval "test \"\${$as_ac_Header+set}\" = set"; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879fi
6880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6882else
6883 # Is the header compilable?
6884echo "$as_me:$LINENO: checking $ac_header usability" >&5
6885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6886cat >conftest.$ac_ext <<_ACEOF
6887/* confdefs.h. */
6888_ACEOF
6889cat confdefs.h >>conftest.$ac_ext
6890cat >>conftest.$ac_ext <<_ACEOF
6891/* end confdefs.h. */
6892$ac_includes_default
6893#include <$ac_header>
6894_ACEOF
6895rm -f conftest.$ac_objext
6896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897 (eval $ac_compile) 2>conftest.er1
6898 ac_status=$?
6899 grep -v '^ *+' conftest.er1 >conftest.err
6900 rm -f conftest.er1
6901 cat conftest.err >&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
b7d4af3a
JW
6904 { ac_try='test -z "$ac_c_werror_flag"
6905 || test ! -s conftest.err'
42ecbf5e
DJ
6906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 (eval $ac_try) 2>&5
6908 ac_status=$?
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); }; } &&
6911 { ac_try='test -s conftest.$ac_objext'
6912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 (eval $ac_try) 2>&5
6914 ac_status=$?
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); }; }; then
6917 ac_header_compiler=yes
6918else
6919 echo "$as_me: failed program was:" >&5
6920sed 's/^/| /' conftest.$ac_ext >&5
6921
6922ac_header_compiler=no
6923fi
6924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6926echo "${ECHO_T}$ac_header_compiler" >&6
6927
6928# Is the header present?
6929echo "$as_me:$LINENO: checking $ac_header presence" >&5
6930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6931cat >conftest.$ac_ext <<_ACEOF
6932/* confdefs.h. */
6933_ACEOF
6934cat confdefs.h >>conftest.$ac_ext
6935cat >>conftest.$ac_ext <<_ACEOF
6936/* end confdefs.h. */
6937#include <$ac_header>
6938_ACEOF
6939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6941 ac_status=$?
6942 grep -v '^ *+' conftest.er1 >conftest.err
6943 rm -f conftest.er1
6944 cat conftest.err >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } >/dev/null; then
6947 if test -s conftest.err; then
6948 ac_cpp_err=$ac_c_preproc_warn_flag
6949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6950 else
6951 ac_cpp_err=
6952 fi
252b5132 6953else
42ecbf5e 6954 ac_cpp_err=yes
252b5132 6955fi
42ecbf5e
DJ
6956if test -z "$ac_cpp_err"; then
6957 ac_header_preproc=yes
6958else
6959 echo "$as_me: failed program was:" >&5
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
6962 ac_header_preproc=no
252b5132 6963fi
42ecbf5e
DJ
6964rm -f conftest.err conftest.$ac_ext
6965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6966echo "${ECHO_T}$ac_header_preproc" >&6
6967
6968# So? What about this header?
6969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6970 yes:no: )
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6975 ac_header_preproc=yes
6976 ;;
6977 no:yes:* )
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6990 (
6991 cat <<\_ASBOX
6992## ------------------------------------------ ##
6993## Report this to the AC_PACKAGE_NAME lists. ##
6994## ------------------------------------------ ##
6995_ASBOX
6996 ) |
6997 sed "s/^/$as_me: WARNING: /" >&2
6998 ;;
6999esac
7000echo "$as_me:$LINENO: checking for $ac_header" >&5
7001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7002if eval "test \"\${$as_ac_Header+set}\" = set"; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7004else
42ecbf5e
DJ
7005 eval "$as_ac_Header=\$ac_header_preproc"
7006fi
7007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7009
e5a52504 7010fi
42ecbf5e
DJ
7011if test `eval echo '${'$as_ac_Header'}'` = yes; then
7012 cat >>confdefs.h <<_ACEOF
7013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014_ACEOF
7015
7016fi
7017
252b5132
RH
7018done
7019
42ecbf5e
DJ
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
7031__argz_count __argz_stringify __argz_next
7032do
42ecbf5e
DJ
7033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7034echo "$as_me:$LINENO: checking for $ac_func" >&5
7035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7036if eval "test \"\${$as_ac_var+set}\" = set"; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039 cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h. */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h. */
7045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7047#define $ac_func innocuous_$ac_func
7048
252b5132 7049/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7050 which can conflict with char $ac_func (); below.
7051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7052 <limits.h> exists even on freestanding compilers. */
d15b04bd 7053
42ecbf5e
DJ
7054#ifdef __STDC__
7055# include <limits.h>
7056#else
7057# include <assert.h>
7058#endif
d15b04bd 7059
42ecbf5e
DJ
7060#undef $ac_func
7061
7062/* Override any gcc2 internal prototype to avoid an error. */
7063#ifdef __cplusplus
7064extern "C"
7065{
7066#endif
7067/* We use char because int might match the return type of a gcc2
7068 builtin and then its argument prototype would still apply. */
7069char $ac_func ();
252b5132
RH
7070/* The GNU C library defines this for functions which it implements
7071 to always fail with ENOSYS. Some functions are actually named
7072 something starting with __ and the normal name is an alias. */
7073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7074choke me
7075#else
42ecbf5e
DJ
7076char (*f) () = $ac_func;
7077#endif
7078#ifdef __cplusplus
7079}
252b5132
RH
7080#endif
7081
42ecbf5e
DJ
7082int
7083main ()
7084{
7085return f != $ac_func;
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext conftest$ac_exeext
7091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7092 (eval $ac_link) 2>conftest.er1
7093 ac_status=$?
7094 grep -v '^ *+' conftest.er1 >conftest.err
7095 rm -f conftest.er1
7096 cat conftest.err >&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
b7d4af3a
JW
7099 { ac_try='test -z "$ac_c_werror_flag"
7100 || test ! -s conftest.err'
42ecbf5e
DJ
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; } &&
7106 { ac_try='test -s conftest$ac_exeext'
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; }; then
7112 eval "$as_ac_var=yes"
7113else
7114 echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
7117eval "$as_ac_var=no"
7118fi
7119rm -f conftest.err conftest.$ac_objext \
7120 conftest$ac_exeext conftest.$ac_ext
7121fi
7122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7124if test `eval echo '${'$as_ac_var'}'` = yes; then
7125 cat >>confdefs.h <<_ACEOF
7126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7127_ACEOF
252b5132 7128
252b5132
RH
7129fi
7130done
7131
7132
7133 if test "${ac_cv_func_stpcpy+set}" != "set"; then
42ecbf5e
DJ
7134
7135for ac_func in stpcpy
252b5132 7136do
42ecbf5e
DJ
7137as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7138echo "$as_me:$LINENO: checking for $ac_func" >&5
7139echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7140if eval "test \"\${$as_ac_var+set}\" = set"; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7151#define $ac_func innocuous_$ac_func
7152
252b5132 7153/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7154 which can conflict with char $ac_func (); below.
7155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7156 <limits.h> exists even on freestanding compilers. */
d15b04bd 7157
42ecbf5e
DJ
7158#ifdef __STDC__
7159# include <limits.h>
7160#else
7161# include <assert.h>
7162#endif
d15b04bd 7163
42ecbf5e
DJ
7164#undef $ac_func
7165
7166/* Override any gcc2 internal prototype to avoid an error. */
7167#ifdef __cplusplus
7168extern "C"
7169{
7170#endif
7171/* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */
7173char $ac_func ();
252b5132
RH
7174/* The GNU C library defines this for functions which it implements
7175 to always fail with ENOSYS. Some functions are actually named
7176 something starting with __ and the normal name is an alias. */
7177#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7178choke me
7179#else
42ecbf5e
DJ
7180char (*f) () = $ac_func;
7181#endif
7182#ifdef __cplusplus
7183}
252b5132
RH
7184#endif
7185
42ecbf5e
DJ
7186int
7187main ()
7188{
7189return f != $ac_func;
7190 ;
7191 return 0;
7192}
7193_ACEOF
7194rm -f conftest.$ac_objext conftest$ac_exeext
7195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7196 (eval $ac_link) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
b7d4af3a
JW
7203 { ac_try='test -z "$ac_c_werror_flag"
7204 || test ! -s conftest.err'
42ecbf5e
DJ
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest$ac_exeext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 eval "$as_ac_var=yes"
7217else
7218 echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221eval "$as_ac_var=no"
7222fi
7223rm -f conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225fi
7226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7227echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7228if test `eval echo '${'$as_ac_var'}'` = yes; then
7229 cat >>confdefs.h <<_ACEOF
7230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7231_ACEOF
252b5132 7232
252b5132
RH
7233fi
7234done
7235
7236 fi
7237 if test "${ac_cv_func_stpcpy}" = "yes"; then
42ecbf5e
DJ
7238
7239cat >>confdefs.h <<\_ACEOF
252b5132 7240#define HAVE_STPCPY 1
42ecbf5e 7241_ACEOF
252b5132
RH
7242
7243 fi
7244
7245 if test $ac_cv_header_locale_h = yes; then
42ecbf5e
DJ
7246 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7247echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7248if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 cat >conftest.$ac_ext <<_ACEOF
7252/* confdefs.h. */
7253_ACEOF
7254cat confdefs.h >>conftest.$ac_ext
7255cat >>conftest.$ac_ext <<_ACEOF
7256/* end confdefs.h. */
252b5132 7257#include <locale.h>
42ecbf5e
DJ
7258int
7259main ()
7260{
252b5132 7261return LC_MESSAGES
42ecbf5e
DJ
7262 ;
7263 return 0;
7264}
7265_ACEOF
7266rm -f conftest.$ac_objext conftest$ac_exeext
7267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7268 (eval $ac_link) 2>conftest.er1
7269 ac_status=$?
7270 grep -v '^ *+' conftest.er1 >conftest.err
7271 rm -f conftest.er1
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } &&
b7d4af3a
JW
7275 { ac_try='test -z "$ac_c_werror_flag"
7276 || test ! -s conftest.err'
42ecbf5e
DJ
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278 (eval $ac_try) 2>&5
7279 ac_status=$?
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; } &&
7282 { ac_try='test -s conftest$ac_exeext'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; }; then
252b5132
RH
7288 am_cv_val_LC_MESSAGES=yes
7289else
42ecbf5e
DJ
7290 echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293am_cv_val_LC_MESSAGES=no
252b5132 7294fi
42ecbf5e
DJ
7295rm -f conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
252b5132 7297fi
42ecbf5e
DJ
7298echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7299echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
d15b04bd 7300 if test $am_cv_val_LC_MESSAGES = yes; then
42ecbf5e
DJ
7301
7302cat >>confdefs.h <<\_ACEOF
252b5132 7303#define HAVE_LC_MESSAGES 1
42ecbf5e 7304_ACEOF
252b5132
RH
7305
7306 fi
7307 fi
42ecbf5e
DJ
7308 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7309echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
7310 # Check whether --enable-nls or --disable-nls was given.
7311if test "${enable_nls+set}" = set; then
7312 enableval="$enable_nls"
7313 USE_NLS=$enableval
7314else
7315 USE_NLS=yes
42ecbf5e
DJ
7316fi;
7317 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7318echo "${ECHO_T}$USE_NLS" >&6
252b5132 7319
252b5132
RH
7320
7321 USE_INCLUDED_LIBINTL=no
7322
7323 if test "$USE_NLS" = "yes"; then
42ecbf5e
DJ
7324 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7325echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7326
7327# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
7328if test "${with_included_gettext+set}" = set; then
7329 withval="$with_included_gettext"
7330 nls_cv_force_use_gnu_gettext=$withval
7331else
7332 nls_cv_force_use_gnu_gettext=no
42ecbf5e
DJ
7333fi;
7334 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7335echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
7336
7337 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7338 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7339 nls_cv_header_intl=
d15b04bd 7340 nls_cv_header_libgt=
c46f8c51 7341 CATOBJEXT=
e5a52504 7342
42ecbf5e
DJ
7343 if test "${ac_cv_header_libintl_h+set}" = set; then
7344 echo "$as_me:$LINENO: checking for libintl.h" >&5
7345echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7346if test "${ac_cv_header_libintl_h+set}" = set; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7348fi
7349echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7350echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7351else
7352 # Is the header compilable?
7353echo "$as_me:$LINENO: checking libintl.h usability" >&5
7354echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7355cat >conftest.$ac_ext <<_ACEOF
7356/* confdefs.h. */
7357_ACEOF
7358cat confdefs.h >>conftest.$ac_ext
7359cat >>conftest.$ac_ext <<_ACEOF
7360/* end confdefs.h. */
7361$ac_includes_default
d15b04bd 7362#include <libintl.h>
42ecbf5e
DJ
7363_ACEOF
7364rm -f conftest.$ac_objext
7365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7366 (eval $ac_compile) 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); } &&
b7d4af3a
JW
7373 { ac_try='test -z "$ac_c_werror_flag"
7374 || test ! -s conftest.err'
42ecbf5e
DJ
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_objext'
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
7386 ac_header_compiler=yes
7387else
7388 echo "$as_me: failed program was:" >&5
7389sed 's/^/| /' conftest.$ac_ext >&5
7390
7391ac_header_compiler=no
7392fi
7393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7395echo "${ECHO_T}$ac_header_compiler" >&6
7396
7397# Is the header present?
7398echo "$as_me:$LINENO: checking libintl.h presence" >&5
7399echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7400cat >conftest.$ac_ext <<_ACEOF
7401/* confdefs.h. */
7402_ACEOF
7403cat confdefs.h >>conftest.$ac_ext
7404cat >>conftest.$ac_ext <<_ACEOF
7405/* end confdefs.h. */
7406#include <libintl.h>
7407_ACEOF
7408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } >/dev/null; then
7416 if test -s conftest.err; then
7417 ac_cpp_err=$ac_c_preproc_warn_flag
7418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7419 else
7420 ac_cpp_err=
7421 fi
252b5132 7422else
42ecbf5e 7423 ac_cpp_err=yes
252b5132 7424fi
42ecbf5e
DJ
7425if test -z "$ac_cpp_err"; then
7426 ac_header_preproc=yes
7427else
7428 echo "$as_me: failed program was:" >&5
7429sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 ac_header_preproc=no
252b5132 7432fi
42ecbf5e
DJ
7433rm -f conftest.err conftest.$ac_ext
7434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7435echo "${ECHO_T}$ac_header_preproc" >&6
7436
7437# So? What about this header?
7438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7439 yes:no: )
7440 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7441echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7442 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7443echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7444 ac_header_preproc=yes
7445 ;;
7446 no:yes:* )
7447 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7448echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7450echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7452echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7454echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7456echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7457 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7458echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7459 (
7460 cat <<\_ASBOX
7461## ------------------------------------------ ##
7462## Report this to the AC_PACKAGE_NAME lists. ##
7463## ------------------------------------------ ##
7464_ASBOX
7465 ) |
7466 sed "s/^/$as_me: WARNING: /" >&2
7467 ;;
7468esac
7469echo "$as_me:$LINENO: checking for libintl.h" >&5
7470echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7471if test "${ac_cv_header_libintl_h+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474 ac_cv_header_libintl_h=$ac_header_preproc
7475fi
7476echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7477echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7478
7479fi
7480if test $ac_cv_header_libintl_h = yes; then
7481 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7482echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7483if test "${gt_cv_func_gettext_libc+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7485else
42ecbf5e
DJ
7486 cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h. */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h. */
252b5132 7492#include <libintl.h>
42ecbf5e
DJ
7493int
7494main ()
7495{
252b5132 7496return (int) gettext ("")
42ecbf5e
DJ
7497 ;
7498 return 0;
7499}
7500_ACEOF
7501rm -f conftest.$ac_objext conftest$ac_exeext
7502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7503 (eval $ac_link) 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
b7d4af3a
JW
7510 { ac_try='test -z "$ac_c_werror_flag"
7511 || test ! -s conftest.err'
42ecbf5e
DJ
7512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7513 (eval $ac_try) 2>&5
7514 ac_status=$?
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); }; } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
252b5132
RH
7523 gt_cv_func_gettext_libc=yes
7524else
42ecbf5e
DJ
7525 echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528gt_cv_func_gettext_libc=no
252b5132 7529fi
42ecbf5e
DJ
7530rm -f conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
252b5132 7532fi
42ecbf5e
DJ
7533echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7534echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7535
7536 if test "$gt_cv_func_gettext_libc" != "yes"; then
42ecbf5e
DJ
7537 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7538echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7539if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7541else
42ecbf5e 7542 ac_check_lib_save_LIBS=$LIBS
252b5132 7543LIBS="-lintl $LIBS"
42ecbf5e
DJ
7544cat >conftest.$ac_ext <<_ACEOF
7545/* confdefs.h. */
7546_ACEOF
7547cat confdefs.h >>conftest.$ac_ext
7548cat >>conftest.$ac_ext <<_ACEOF
7549/* end confdefs.h. */
7550
252b5132 7551/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
7552#ifdef __cplusplus
7553extern "C"
7554#endif
252b5132 7555/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
7556 builtin and then its argument prototype would still apply. */
7557char bindtextdomain ();
7558int
7559main ()
7560{
7561bindtextdomain ();
7562 ;
7563 return 0;
7564}
7565_ACEOF
7566rm -f conftest.$ac_objext conftest$ac_exeext
7567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
b7d4af3a
JW
7575 { ac_try='test -z "$ac_c_werror_flag"
7576 || test ! -s conftest.err'
42ecbf5e
DJ
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest$ac_exeext'
7583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584 (eval $ac_try) 2>&5
7585 ac_status=$?
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); }; }; then
7588 ac_cv_lib_intl_bindtextdomain=yes
7589else
7590 echo "$as_me: failed program was:" >&5
7591sed 's/^/| /' conftest.$ac_ext >&5
7592
7593ac_cv_lib_intl_bindtextdomain=no
7594fi
7595rm -f conftest.err conftest.$ac_objext \
7596 conftest$ac_exeext conftest.$ac_ext
7597LIBS=$ac_check_lib_save_LIBS
7598fi
7599echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7600echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7601if test $ac_cv_lib_intl_bindtextdomain = yes; then
7602 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7603echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7604if test "${gt_cv_func_gettext_libintl+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607 cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h. */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h. */
d15b04bd 7613
42ecbf5e
DJ
7614int
7615main ()
7616{
252b5132 7617return (int) gettext ("")
42ecbf5e
DJ
7618 ;
7619 return 0;
7620}
7621_ACEOF
7622rm -f conftest.$ac_objext conftest$ac_exeext
7623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
b7d4af3a
JW
7631 { ac_try='test -z "$ac_c_werror_flag"
7632 || test ! -s conftest.err'
42ecbf5e
DJ
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 (eval $ac_try) 2>&5
7635 ac_status=$?
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640 (eval $ac_try) 2>&5
7641 ac_status=$?
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
252b5132
RH
7644 gt_cv_func_gettext_libintl=yes
7645else
42ecbf5e
DJ
7646 echo "$as_me: failed program was:" >&5
7647sed 's/^/| /' conftest.$ac_ext >&5
7648
7649gt_cv_func_gettext_libintl=no
252b5132 7650fi
42ecbf5e
DJ
7651rm -f conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
252b5132 7653fi
42ecbf5e
DJ
7654echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7655echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7656fi
7657
7658 fi
7659
7660 if test "$gt_cv_func_gettext_libc" = "yes" \
7661 || test "$gt_cv_func_gettext_libintl" = "yes"; then
42ecbf5e
DJ
7662
7663cat >>confdefs.h <<\_ACEOF
252b5132 7664#define HAVE_GETTEXT 1
42ecbf5e 7665_ACEOF
252b5132
RH
7666
7667 # Extract the first word of "msgfmt", so it can be a program name with args.
7668set dummy msgfmt; ac_word=$2
42ecbf5e
DJ
7669echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671if test "${ac_cv_path_MSGFMT+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7673else
7674 case "$MSGFMT" in
7675 /*)
7676 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7680 for ac_dir in $PATH; do
7681 test -z "$ac_dir" && ac_dir=.
7682 if test -f $ac_dir/$ac_word; then
7683 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7684 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7685 break
7686 fi
7687 fi
7688 done
7689 IFS="$ac_save_ifs"
7690 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7691 ;;
7692esac
7693fi
7694MSGFMT="$ac_cv_path_MSGFMT"
7695if test -n "$MSGFMT"; then
42ecbf5e
DJ
7696 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7697echo "${ECHO_T}$MSGFMT" >&6
252b5132 7698else
42ecbf5e
DJ
7699 echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6
252b5132
RH
7701fi
7702 if test "$MSGFMT" != "no"; then
42ecbf5e
DJ
7703
7704for ac_func in dcgettext
252b5132 7705do
42ecbf5e
DJ
7706as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7707echo "$as_me:$LINENO: checking for $ac_func" >&5
7708echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7709if eval "test \"\${$as_ac_var+set}\" = set"; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712 cat >conftest.$ac_ext <<_ACEOF
7713/* confdefs.h. */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h. */
7718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7720#define $ac_func innocuous_$ac_func
7721
252b5132 7722/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
7723 which can conflict with char $ac_func (); below.
7724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7725 <limits.h> exists even on freestanding compilers. */
d15b04bd 7726
42ecbf5e
DJ
7727#ifdef __STDC__
7728# include <limits.h>
7729#else
7730# include <assert.h>
7731#endif
d15b04bd 7732
42ecbf5e
DJ
7733#undef $ac_func
7734
7735/* Override any gcc2 internal prototype to avoid an error. */
7736#ifdef __cplusplus
7737extern "C"
7738{
7739#endif
7740/* We use char because int might match the return type of a gcc2
7741 builtin and then its argument prototype would still apply. */
7742char $ac_func ();
252b5132
RH
7743/* The GNU C library defines this for functions which it implements
7744 to always fail with ENOSYS. Some functions are actually named
7745 something starting with __ and the normal name is an alias. */
7746#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7747choke me
7748#else
42ecbf5e
DJ
7749char (*f) () = $ac_func;
7750#endif
7751#ifdef __cplusplus
7752}
252b5132
RH
7753#endif
7754
42ecbf5e
DJ
7755int
7756main ()
7757{
7758return f != $ac_func;
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext conftest$ac_exeext
7764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
b7d4af3a
JW
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
42ecbf5e
DJ
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 eval "$as_ac_var=yes"
7786else
7787 echo "$as_me: failed program was:" >&5
7788sed 's/^/| /' conftest.$ac_ext >&5
7789
7790eval "$as_ac_var=no"
7791fi
7792rm -f conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794fi
7795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7797if test `eval echo '${'$as_ac_var'}'` = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7800_ACEOF
252b5132 7801
252b5132
RH
7802fi
7803done
7804
7805 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7806set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
7807echo "$as_me:$LINENO: checking for $ac_word" >&5
7808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7809if test "${ac_cv_path_GMSGFMT+set}" = set; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7811else
42ecbf5e
DJ
7812 case $GMSGFMT in
7813 [\\/]* | ?:[\\/]*)
252b5132
RH
7814 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7815 ;;
252b5132 7816 *)
42ecbf5e
DJ
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7827 fi
7828done
7829done
7830
252b5132
RH
7831 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7832 ;;
7833esac
7834fi
42ecbf5e
DJ
7835GMSGFMT=$ac_cv_path_GMSGFMT
7836
252b5132 7837if test -n "$GMSGFMT"; then
42ecbf5e
DJ
7838 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7839echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7840else
42ecbf5e
DJ
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
252b5132
RH
7843fi
7844
7845 # Extract the first word of "xgettext", so it can be a program name with args.
7846set dummy xgettext; ac_word=$2
42ecbf5e
DJ
7847echo "$as_me:$LINENO: checking for $ac_word" >&5
7848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7849if test "${ac_cv_path_XGETTEXT+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7851else
7852 case "$XGETTEXT" in
7853 /*)
7854 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7855 ;;
7856 *)
7857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7858 for ac_dir in $PATH; do
7859 test -z "$ac_dir" && ac_dir=.
7860 if test -f $ac_dir/$ac_word; then
7861 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7862 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7863 break
7864 fi
7865 fi
7866 done
7867 IFS="$ac_save_ifs"
7868 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7869 ;;
7870esac
7871fi
7872XGETTEXT="$ac_cv_path_XGETTEXT"
7873if test -n "$XGETTEXT"; then
42ecbf5e
DJ
7874 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7875echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7876else
42ecbf5e
DJ
7877 echo "$as_me:$LINENO: result: no" >&5
7878echo "${ECHO_T}no" >&6
252b5132
RH
7879fi
7880
42ecbf5e
DJ
7881 cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
252b5132 7887
42ecbf5e
DJ
7888int
7889main ()
7890{
252b5132
RH
7891extern int _nl_msg_cat_cntr;
7892 return _nl_msg_cat_cntr
42ecbf5e
DJ
7893 ;
7894 return 0;
7895}
7896_ACEOF
7897rm -f conftest.$ac_objext conftest$ac_exeext
7898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>conftest.er1
7900 ac_status=$?
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
b7d4af3a
JW
7906 { ac_try='test -z "$ac_c_werror_flag"
7907 || test ! -s conftest.err'
42ecbf5e
DJ
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try='test -s conftest$ac_exeext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
252b5132
RH
7919 CATOBJEXT=.gmo
7920 DATADIRNAME=share
7921else
42ecbf5e
DJ
7922 echo "$as_me: failed program was:" >&5
7923sed 's/^/| /' conftest.$ac_ext >&5
7924
7925CATOBJEXT=.mo
252b5132
RH
7926 DATADIRNAME=lib
7927fi
42ecbf5e
DJ
7928rm -f conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7930 INSTOBJEXT=.mo
7931 fi
7932 fi
42ecbf5e 7933
252b5132
RH
7934fi
7935
7936
42ecbf5e
DJ
7937
7938
c46f8c51
AC
7939 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
7940 # Neither gettext nor catgets in included in the C library.
7941 # Fall back on GNU gettext library (assuming it is present).
7942 nls_cv_use_gnu_gettext=yes
252b5132
RH
7943 fi
7944 fi
7945
7946 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7947 INTLOBJS="\$(GETTOBJS)"
7948 # Extract the first word of "msgfmt", so it can be a program name with args.
7949set dummy msgfmt; ac_word=$2
42ecbf5e
DJ
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_path_MSGFMT+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7954else
7955 case "$MSGFMT" in
7956 /*)
7957 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7958 ;;
7959 *)
7960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7961 for ac_dir in $PATH; do
7962 test -z "$ac_dir" && ac_dir=.
7963 if test -f $ac_dir/$ac_word; then
7964 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7965 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7966 break
7967 fi
7968 fi
7969 done
7970 IFS="$ac_save_ifs"
7971 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7972 ;;
7973esac
7974fi
7975MSGFMT="$ac_cv_path_MSGFMT"
7976if test -n "$MSGFMT"; then
42ecbf5e
DJ
7977 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7978echo "${ECHO_T}$MSGFMT" >&6
252b5132 7979else
42ecbf5e
DJ
7980 echo "$as_me:$LINENO: result: no" >&5
7981echo "${ECHO_T}no" >&6
252b5132
RH
7982fi
7983
7984 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7985set dummy gmsgfmt; ac_word=$2
42ecbf5e
DJ
7986echo "$as_me:$LINENO: checking for $ac_word" >&5
7987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7988if test "${ac_cv_path_GMSGFMT+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7990else
42ecbf5e
DJ
7991 case $GMSGFMT in
7992 [\\/]* | ?:[\\/]*)
252b5132
RH
7993 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7994 ;;
252b5132 7995 *)
42ecbf5e
DJ
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8006 fi
8007done
8008done
8009
252b5132
RH
8010 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8011 ;;
8012esac
8013fi
42ecbf5e
DJ
8014GMSGFMT=$ac_cv_path_GMSGFMT
8015
252b5132 8016if test -n "$GMSGFMT"; then
42ecbf5e
DJ
8017 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8018echo "${ECHO_T}$GMSGFMT" >&6
252b5132 8019else
42ecbf5e
DJ
8020 echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6
252b5132
RH
8022fi
8023
8024 # Extract the first word of "xgettext", so it can be a program name with args.
8025set dummy xgettext; ac_word=$2
42ecbf5e
DJ
8026echo "$as_me:$LINENO: checking for $ac_word" >&5
8027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8028if test "${ac_cv_path_XGETTEXT+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8030else
8031 case "$XGETTEXT" in
8032 /*)
8033 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8034 ;;
8035 *)
8036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8037 for ac_dir in $PATH; do
8038 test -z "$ac_dir" && ac_dir=.
8039 if test -f $ac_dir/$ac_word; then
8040 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8041 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8042 break
8043 fi
8044 fi
8045 done
8046 IFS="$ac_save_ifs"
8047 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8048 ;;
8049esac
8050fi
8051XGETTEXT="$ac_cv_path_XGETTEXT"
8052if test -n "$XGETTEXT"; then
42ecbf5e
DJ
8053 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8054echo "${ECHO_T}$XGETTEXT" >&6
252b5132 8055else
42ecbf5e
DJ
8056 echo "$as_me:$LINENO: result: no" >&5
8057echo "${ECHO_T}no" >&6
252b5132
RH
8058fi
8059
42ecbf5e 8060
252b5132
RH
8061 USE_INCLUDED_LIBINTL=yes
8062 CATOBJEXT=.gmo
8063 INSTOBJEXT=.mo
8064 DATADIRNAME=share
8065 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8066 INTLLIBS=$INTLDEPS
8067 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8068 nls_cv_header_intl=libintl.h
8069 nls_cv_header_libgt=libgettext.h
8070 fi
8071
8072 if test "$XGETTEXT" != ":"; then
8073 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8074 : ;
8075 else
42ecbf5e
DJ
8076 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8077echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
8078 XGETTEXT=":"
8079 fi
8080 fi
8081
8082 # We need to process the po/ directory.
8083 POSUB=po
8084 else
8085 DATADIRNAME=share
8086 nls_cv_header_intl=libintl.h
8087 nls_cv_header_libgt=libgettext.h
8088 fi
8089
8090 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8091 # because some of the sources are only built for this goal.
8092 if test "$PACKAGE" = gettext; then
8093 USE_NLS=yes
8094 USE_INCLUDED_LIBINTL=yes
8095 fi
8096
42ecbf5e
DJ
8097 for lang in $ALL_LINGUAS; do
8098 GMOFILES="$GMOFILES $lang.gmo"
8099 POFILES="$POFILES $lang.po"
8100 done
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
252b5132 8112
c46f8c51 8113 if test "x$CATOBJEXT" != "x"; then
42ecbf5e
DJ
8114
8115cat >>confdefs.h <<\_ACEOF
c46f8c51 8116#define ENABLE_NLS 1
42ecbf5e 8117_ACEOF
c46f8c51
AC
8118
8119 fi
42ecbf5e 8120
252b5132
RH
8121
8122 if test "x$CATOBJEXT" != "x"; then
8123 if test "x$ALL_LINGUAS" = "x"; then
8124 LINGUAS=
8125 else
42ecbf5e
DJ
8126 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8127echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
8128 NEW_LINGUAS=
8129 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8130 case "$ALL_LINGUAS" in
8131 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8132 esac
8133 done
8134 LINGUAS=$NEW_LINGUAS
42ecbf5e
DJ
8135 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8136echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
8137 fi
8138
8139 if test -n "$LINGUAS"; then
8140 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8141 fi
8142 fi
8143
8144 if test $ac_cv_header_locale_h = yes; then
8145 INCLUDE_LOCALE_H="#include <locale.h>"
8146 else
8147 INCLUDE_LOCALE_H="\
8148/* The system does not provide the header <locale.h>. Take care yourself. */"
8149 fi
42ecbf5e 8150
252b5132
RH
8151
8152 if test -f $srcdir/po2tbl.sed.in; then
8153 if test "$CATOBJEXT" = ".cat"; then
42ecbf5e
DJ
8154 if test "${ac_cv_header_linux_version_h+set}" = set; then
8155 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8156echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8157if test "${ac_cv_header_linux_version_h+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8159fi
8160echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8161echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8162else
8163 # Is the header compilable?
8164echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8165echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8166cat >conftest.$ac_ext <<_ACEOF
8167/* confdefs.h. */
8168_ACEOF
8169cat confdefs.h >>conftest.$ac_ext
8170cat >>conftest.$ac_ext <<_ACEOF
8171/* end confdefs.h. */
8172$ac_includes_default
e5a52504 8173#include <linux/version.h>
42ecbf5e
DJ
8174_ACEOF
8175rm -f conftest.$ac_objext
8176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8177 (eval $ac_compile) 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } &&
b7d4af3a
JW
8184 { ac_try='test -z "$ac_c_werror_flag"
8185 || test ! -s conftest.err'
42ecbf5e
DJ
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
8197 ac_header_compiler=yes
8198else
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202ac_header_compiler=no
8203fi
8204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8206echo "${ECHO_T}$ac_header_compiler" >&6
8207
8208# Is the header present?
8209echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8210echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8211cat >conftest.$ac_ext <<_ACEOF
8212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
8217#include <linux/version.h>
8218_ACEOF
8219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } >/dev/null; then
8227 if test -s conftest.err; then
8228 ac_cpp_err=$ac_c_preproc_warn_flag
8229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8230 else
8231 ac_cpp_err=
8232 fi
e5a52504 8233else
42ecbf5e 8234 ac_cpp_err=yes
e5a52504 8235fi
42ecbf5e
DJ
8236if test -z "$ac_cpp_err"; then
8237 ac_header_preproc=yes
8238else
8239 echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 ac_header_preproc=no
8243fi
8244rm -f conftest.err conftest.$ac_ext
8245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8246echo "${ECHO_T}$ac_header_preproc" >&6
8247
8248# So? What about this header?
8249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8250 yes:no: )
8251 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8252echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8253 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8254echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8255 ac_header_preproc=yes
8256 ;;
8257 no:yes:* )
8258 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8259echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8260 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8261echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8262 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8263echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8265echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8266 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8267echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8268 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8269echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8270 (
8271 cat <<\_ASBOX
8272## ------------------------------------------ ##
8273## Report this to the AC_PACKAGE_NAME lists. ##
8274## ------------------------------------------ ##
8275_ASBOX
8276 ) |
8277 sed "s/^/$as_me: WARNING: /" >&2
8278 ;;
8279esac
8280echo "$as_me:$LINENO: checking for linux/version.h" >&5
8281echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8282if test "${ac_cv_header_linux_version_h+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285 ac_cv_header_linux_version_h=$ac_header_preproc
e5a52504 8286fi
42ecbf5e
DJ
8287echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8288echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8289
8290fi
8291if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
8292 msgformat=linux
8293else
42ecbf5e 8294 msgformat=xopen
252b5132
RH
8295fi
8296
8297
42ecbf5e 8298
252b5132
RH
8299 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8300 fi
8301 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8302 $srcdir/po2tbl.sed.in > po2tbl.sed
8303 fi
8304
8305 if test "$PACKAGE" = "gettext"; then
8306 GT_NO="#NO#"
8307 GT_YES=
8308 else
8309 GT_NO=
8310 GT_YES="#YES#"
8311 fi
42ecbf5e
DJ
8312
8313
252b5132
RH
8314
8315 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
42ecbf5e 8316
252b5132
RH
8317
8318 l=
42ecbf5e 8319
252b5132 8320
fcd8210c 8321 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
8322 test -d po || mkdir po
8323 if test "x$srcdir" != "x."; then
8324 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8325 posrcprefix="$srcdir/"
8326 else
8327 posrcprefix="../$srcdir/"
8328 fi
8329 else
8330 posrcprefix="../"
8331 fi
8332 rm -f po/POTFILES
8333 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8334 < $srcdir/po/POTFILES.in > po/POTFILES
8335 fi
252b5132 8336
42ecbf5e
DJ
8337
8338echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
8339echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
8340 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
8341if test "${enable_maintainer_mode+set}" = set; then
8342 enableval="$enable_maintainer_mode"
8343 USE_MAINTAINER_MODE=$enableval
8344else
8345 USE_MAINTAINER_MODE=no
42ecbf5e
DJ
8346fi;
8347 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
8348echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 8349
252b5132
RH
8350
8351if test $USE_MAINTAINER_MODE = yes; then
8352 MAINTAINER_MODE_TRUE=
8353 MAINTAINER_MODE_FALSE='#'
8354else
8355 MAINTAINER_MODE_TRUE='#'
8356 MAINTAINER_MODE_FALSE=
8357fi
252b5132 8358
42ecbf5e 8359 MAINT=$MAINTAINER_MODE_TRUE
252b5132 8360
d15b04bd 8361
e5a52504 8362
d15b04bd 8363if test -n "$EXEEXT"; then
42ecbf5e
DJ
8364
8365cat >>confdefs.h <<\_ACEOF
2481e6a2 8366#define HAVE_EXECUTABLE_SUFFIX 1
42ecbf5e 8367_ACEOF
2481e6a2
ILT
8368
8369fi
42ecbf5e
DJ
8370
8371cat >>confdefs.h <<_ACEOF
bb0cb4db 8372#define EXECUTABLE_SUFFIX "${EXEEXT}"
42ecbf5e 8373_ACEOF
bb0cb4db 8374
252b5132
RH
8375
8376# host-specific stuff:
8377
8378HDEFINES=
8379
8380. ${srcdir}/../bfd/configure.host
8381
8382
8383AR=${AR-ar}
8384
42ecbf5e
DJ
8385if test -n "$ac_tool_prefix"; then
8386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8387set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8388echo "$as_me:$LINENO: checking for $ac_word" >&5
8389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8390if test "${ac_cv_prog_RANLIB+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8392else
8393 if test -n "$RANLIB"; then
8394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8395else
42ecbf5e
DJ
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407done
8408done
8409
252b5132
RH
8410fi
8411fi
42ecbf5e 8412RANLIB=$ac_cv_prog_RANLIB
252b5132 8413if test -n "$RANLIB"; then
42ecbf5e
DJ
8414 echo "$as_me:$LINENO: result: $RANLIB" >&5
8415echo "${ECHO_T}$RANLIB" >&6
8416else
8417 echo "$as_me:$LINENO: result: no" >&5
8418echo "${ECHO_T}no" >&6
8419fi
8420
8421fi
8422if test -z "$ac_cv_prog_RANLIB"; then
8423 ac_ct_RANLIB=$RANLIB
8424 # Extract the first word of "ranlib", so it can be a program name with args.
8425set dummy ranlib; ac_word=$2
8426echo "$as_me:$LINENO: checking for $ac_word" >&5
8427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8428if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431 if test -n "$ac_ct_RANLIB"; then
8432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8441 ac_cv_prog_ac_ct_RANLIB="ranlib"
8442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445done
8446done
8447
8448 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8449fi
8450fi
8451ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8452if test -n "$ac_ct_RANLIB"; then
8453 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8454echo "${ECHO_T}$ac_ct_RANLIB" >&6
8455else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458fi
8459
8460 RANLIB=$ac_ct_RANLIB
252b5132 8461else
42ecbf5e 8462 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
8463fi
8464
8465# Find a good install program. We prefer a C program (faster),
8466# so one script is as good as another. But avoid the broken or
8467# incompatible versions:
8468# SysV /etc/install, /usr/sbin/install
8469# SunOS /usr/etc/install
8470# IRIX /sbin/install
8471# AIX /bin/install
42ecbf5e 8472# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8473# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8474# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8475# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
42ecbf5e 8476# OS/2's system install, which has a completely different semantic
252b5132 8477# ./install, which can be erroneously created by make from ./install.sh.
42ecbf5e
DJ
8478echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8479echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8480if test -z "$INSTALL"; then
42ecbf5e
DJ
8481if test "${ac_cv_path_install+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8483else
42ecbf5e
DJ
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 # Account for people who put trailing slashes in PATH elements.
8490case $as_dir/ in
8491 ./ | .// | /cC/* | \
8492 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8493 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8494 /usr/ucb/* ) ;;
8495 *)
8496 # OSF1 and SCO ODT 3.0 have their own names for install.
8497 # Don't use installbsd from OSF since it installs stuff as root
8498 # by default.
8499 for ac_prog in ginstall scoinst install; do
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8502 if test $ac_prog = install &&
42ecbf5e 8503 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8504 # AIX install. It has an incompatible calling convention.
8505 :
42ecbf5e
DJ
8506 elif test $ac_prog = install &&
8507 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8508 # program-specific install script used by HP pwplus--don't use.
8509 :
252b5132 8510 else
42ecbf5e
DJ
8511 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8512 break 3
252b5132
RH
8513 fi
8514 fi
8515 done
42ecbf5e
DJ
8516 done
8517 ;;
8518esac
8519done
8520
252b5132
RH
8521
8522fi
8523 if test "${ac_cv_path_install+set}" = set; then
42ecbf5e 8524 INSTALL=$ac_cv_path_install
252b5132
RH
8525 else
8526 # As a last resort, use the slow shell script. We don't cache a
8527 # path for INSTALL within a source directory, because that will
8528 # break other packages using the cache if that directory is
8529 # removed, or if the path is relative.
42ecbf5e 8530 INSTALL=$ac_install_sh
252b5132
RH
8531 fi
8532fi
42ecbf5e
DJ
8533echo "$as_me:$LINENO: result: $INSTALL" >&5
8534echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8535
8536# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8537# It thinks the first close brace ends the variable substitution.
8538test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8539
42ecbf5e 8540test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8541
8542test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8543
8544
8545# Put a plausible default for CC_FOR_BUILD in Makefile.
8546if test -z "$CC_FOR_BUILD"; then
8547 if test "x$cross_compiling" = "xno"; then
8548 CC_FOR_BUILD='$(CC)'
8549 else
8550 CC_FOR_BUILD=gcc
8551 fi
8552fi
8553
8554# Also set EXEEXT_FOR_BUILD.
8555if test "x$cross_compiling" = "xno"; then
8556 EXEEXT_FOR_BUILD='$(EXEEXT)'
8557else
42ecbf5e
DJ
8558 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8559echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8560if test "${bfd_cv_build_exeext+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8562else
7a7b06ef
ILT
8563 rm -f conftest*
8564 echo 'int main () { return 0; }' > conftest.c
8565 bfd_cv_build_exeext=
8566 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8567 for file in conftest.*; do
8568 case $file in
8569 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8570 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8571 esac
8572 done
8573 rm -f conftest*
8574 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8575fi
42ecbf5e
DJ
8576echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8577echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8578 EXEEXT_FOR_BUILD=""
8579 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8580fi
8581
8582
8a965946
ILT
8583DEMANGLER_NAME=c++filt
8584case "${host}" in
8585 *-*-go32* | *-*-msdos*)
8586 DEMANGLER_NAME=cxxfilt
8587esac
8588
8589
42ecbf5e
DJ
8590
8591
8592
8593
8594
8595
8596for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
252b5132 8597do
42ecbf5e
DJ
8598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8599if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo "$as_me:$LINENO: checking for $ac_header" >&5
8601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8602if eval "test \"\${$as_ac_Header+set}\" = set"; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604fi
8605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607else
8608 # Is the header compilable?
8609echo "$as_me:$LINENO: checking $ac_header usability" >&5
8610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8611cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617$ac_includes_default
8618#include <$ac_header>
8619_ACEOF
8620rm -f conftest.$ac_objext
8621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
b7d4af3a
JW
8629 { ac_try='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
42ecbf5e
DJ
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_header_compiler=yes
8643else
8644 echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647ac_header_compiler=no
8648fi
8649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8651echo "${ECHO_T}$ac_header_compiler" >&6
8652
8653# Is the header present?
8654echo "$as_me:$LINENO: checking $ac_header presence" >&5
8655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8656cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662#include <$ac_header>
8663_ACEOF
8664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8666 ac_status=$?
8667 grep -v '^ *+' conftest.er1 >conftest.err
8668 rm -f conftest.er1
8669 cat conftest.err >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } >/dev/null; then
8672 if test -s conftest.err; then
8673 ac_cpp_err=$ac_c_preproc_warn_flag
8674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8675 else
8676 ac_cpp_err=
8677 fi
252b5132 8678else
42ecbf5e 8679 ac_cpp_err=yes
252b5132 8680fi
42ecbf5e
DJ
8681if test -z "$ac_cpp_err"; then
8682 ac_header_preproc=yes
8683else
8684 echo "$as_me: failed program was:" >&5
8685sed 's/^/| /' conftest.$ac_ext >&5
8686
8687 ac_header_preproc=no
252b5132 8688fi
42ecbf5e
DJ
8689rm -f conftest.err conftest.$ac_ext
8690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691echo "${ECHO_T}$ac_header_preproc" >&6
8692
8693# So? What about this header?
8694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8695 yes:no: )
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8701 ;;
8702 no:yes:* )
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8715 (
8716 cat <<\_ASBOX
8717## ------------------------------------------ ##
8718## Report this to the AC_PACKAGE_NAME lists. ##
8719## ------------------------------------------ ##
8720_ASBOX
8721 ) |
8722 sed "s/^/$as_me: WARNING: /" >&2
8723 ;;
8724esac
8725echo "$as_me:$LINENO: checking for $ac_header" >&5
8726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8729else
42ecbf5e
DJ
8730 eval "$as_ac_Header=\$ac_header_preproc"
8731fi
8732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8734
252b5132 8735fi
42ecbf5e
DJ
8736if test `eval echo '${'$as_ac_Header'}'` = yes; then
8737 cat >>confdefs.h <<_ACEOF
8738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8739_ACEOF
8740
8741fi
8742
252b5132
RH
8743done
8744
42ecbf5e
DJ
8745echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8746echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8747if test "${ac_cv_header_sys_wait_h+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749else
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
252b5132
RH
8756#include <sys/types.h>
8757#include <sys/wait.h>
8758#ifndef WEXITSTATUS
42ecbf5e 8759# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
8760#endif
8761#ifndef WIFEXITED
42ecbf5e 8762# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 8763#endif
42ecbf5e
DJ
8764
8765int
8766main ()
8767{
8768 int s;
8769 wait (&s);
8770 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8771 ;
8772 return 0;
8773}
8774_ACEOF
8775rm -f conftest.$ac_objext
8776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8777 (eval $ac_compile) 2>conftest.er1
8778 ac_status=$?
8779 grep -v '^ *+' conftest.er1 >conftest.err
8780 rm -f conftest.er1
8781 cat conftest.err >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); } &&
b7d4af3a
JW
8784 { ac_try='test -z "$ac_c_werror_flag"
8785 || test ! -s conftest.err'
42ecbf5e
DJ
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; } &&
8791 { ac_try='test -s conftest.$ac_objext'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; }; then
252b5132
RH
8797 ac_cv_header_sys_wait_h=yes
8798else
42ecbf5e
DJ
8799 echo "$as_me: failed program was:" >&5
8800sed 's/^/| /' conftest.$ac_ext >&5
8801
8802ac_cv_header_sys_wait_h=no
252b5132 8803fi
42ecbf5e 8804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8805fi
42ecbf5e
DJ
8806echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8807echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
d15b04bd 8808if test $ac_cv_header_sys_wait_h = yes; then
42ecbf5e
DJ
8809
8810cat >>confdefs.h <<\_ACEOF
252b5132 8811#define HAVE_SYS_WAIT_H 1
42ecbf5e 8812_ACEOF
252b5132
RH
8813
8814fi
8815
8816# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8817# for constant arguments. Useless!
42ecbf5e
DJ
8818echo "$as_me:$LINENO: checking for working alloca.h" >&5
8819echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8820if test "${ac_cv_working_alloca_h+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822else
8823 cat >conftest.$ac_ext <<_ACEOF
8824/* confdefs.h. */
8825_ACEOF
8826cat confdefs.h >>conftest.$ac_ext
8827cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h. */
252b5132 8829#include <alloca.h>
42ecbf5e
DJ
8830int
8831main ()
8832{
8833char *p = (char *) alloca (2 * sizeof (int));
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838rm -f conftest.$ac_objext conftest$ac_exeext
8839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
b7d4af3a
JW
8847 { ac_try='test -z "$ac_c_werror_flag"
8848 || test ! -s conftest.err'
42ecbf5e
DJ
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; } &&
8854 { ac_try='test -s conftest$ac_exeext'
8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 (eval $ac_try) 2>&5
8857 ac_status=$?
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 ac_cv_working_alloca_h=yes
8861else
8862 echo "$as_me: failed program was:" >&5
8863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865ac_cv_working_alloca_h=no
8866fi
8867rm -f conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869fi
8870echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8871echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8872if test $ac_cv_working_alloca_h = yes; then
8873
8874cat >>confdefs.h <<\_ACEOF
252b5132 8875#define HAVE_ALLOCA_H 1
42ecbf5e 8876_ACEOF
252b5132
RH
8877
8878fi
8879
42ecbf5e
DJ
8880echo "$as_me:$LINENO: checking for alloca" >&5
8881echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8882if test "${ac_cv_func_alloca_works+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8884else
42ecbf5e
DJ
8885 cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h. */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h. */
252b5132
RH
8891#ifdef __GNUC__
8892# define alloca __builtin_alloca
8893#else
8894# ifdef _MSC_VER
8895# include <malloc.h>
8896# define alloca _alloca
8897# else
8898# if HAVE_ALLOCA_H
8899# include <alloca.h>
8900# else
8901# ifdef _AIX
8902 #pragma alloca
8903# else
8904# ifndef alloca /* predefined by HP cc +Olibcalls */
8905char *alloca ();
8906# endif
8907# endif
8908# endif
8909# endif
8910#endif
8911
42ecbf5e
DJ
8912int
8913main ()
8914{
8915char *p = (char *) alloca (1);
8916 ;
8917 return 0;
8918}
8919_ACEOF
8920rm -f conftest.$ac_objext conftest$ac_exeext
8921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
b7d4af3a
JW
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
42ecbf5e
DJ
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
252b5132
RH
8942 ac_cv_func_alloca_works=yes
8943else
42ecbf5e
DJ
8944 echo "$as_me: failed program was:" >&5
8945sed 's/^/| /' conftest.$ac_ext >&5
8946
8947ac_cv_func_alloca_works=no
252b5132 8948fi
42ecbf5e
DJ
8949rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
252b5132 8951fi
42ecbf5e
DJ
8952echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8953echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 8954
252b5132 8955if test $ac_cv_func_alloca_works = yes; then
e5a52504 8956
42ecbf5e
DJ
8957cat >>confdefs.h <<\_ACEOF
8958#define HAVE_ALLOCA 1
8959_ACEOF
e5a52504 8960
42ecbf5e 8961else
d15b04bd 8962 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
42ecbf5e
DJ
8963# that cause trouble. Some versions do not even contain alloca or
8964# contain a buggy version. If you still want to use their alloca,
8965# use ar to extract alloca.o from them instead of compiling alloca.c.
8966
8967ALLOCA=alloca.$ac_objext
8968
8969cat >>confdefs.h <<\_ACEOF
252b5132 8970#define C_ALLOCA 1
42ecbf5e 8971_ACEOF
252b5132
RH
8972
8973
42ecbf5e
DJ
8974echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8975echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8976if test "${ac_cv_os_cray+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8978else
42ecbf5e
DJ
8979 cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
252b5132
RH
8985#if defined(CRAY) && ! defined(CRAY2)
8986webecray
8987#else
8988wenotbecray
8989#endif
8990
42ecbf5e 8991_ACEOF
252b5132 8992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42ecbf5e 8993 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
8994 ac_cv_os_cray=yes
8995else
252b5132
RH
8996 ac_cv_os_cray=no
8997fi
8998rm -f conftest*
8999
9000fi
42ecbf5e
DJ
9001echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9002echo "${ECHO_T}$ac_cv_os_cray" >&6
d15b04bd 9003if test $ac_cv_os_cray = yes; then
42ecbf5e
DJ
9004 for ac_func in _getb67 GETB67 getb67; do
9005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9006echo "$as_me:$LINENO: checking for $ac_func" >&5
9007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9008if eval "test \"\${$as_ac_var+set}\" = set"; then
9009 echo $ECHO_N "(cached) $ECHO_C" >&6
9010else
9011 cat >conftest.$ac_ext <<_ACEOF
9012/* confdefs.h. */
9013_ACEOF
9014cat confdefs.h >>conftest.$ac_ext
9015cat >>conftest.$ac_ext <<_ACEOF
9016/* end confdefs.h. */
9017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9019#define $ac_func innocuous_$ac_func
9020
252b5132 9021/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
9022 which can conflict with char $ac_func (); below.
9023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9024 <limits.h> exists even on freestanding compilers. */
9025
9026#ifdef __STDC__
9027# include <limits.h>
9028#else
9029# include <assert.h>
9030#endif
d15b04bd 9031
42ecbf5e 9032#undef $ac_func
d15b04bd 9033
42ecbf5e
DJ
9034/* Override any gcc2 internal prototype to avoid an error. */
9035#ifdef __cplusplus
9036extern "C"
9037{
9038#endif
9039/* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041char $ac_func ();
252b5132
RH
9042/* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9046choke me
9047#else
42ecbf5e
DJ
9048char (*f) () = $ac_func;
9049#endif
9050#ifdef __cplusplus
9051}
252b5132
RH
9052#endif
9053
42ecbf5e
DJ
9054int
9055main ()
9056{
9057return f != $ac_func;
9058 ;
9059 return 0;
9060}
9061_ACEOF
9062rm -f conftest.$ac_objext conftest$ac_exeext
9063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
b7d4af3a
JW
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
42ecbf5e
DJ
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest$ac_exeext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 eval "$as_ac_var=yes"
9085else
9086 echo "$as_me: failed program was:" >&5
9087sed 's/^/| /' conftest.$ac_ext >&5
9088
9089eval "$as_ac_var=no"
9090fi
9091rm -f conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093fi
9094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9096if test `eval echo '${'$as_ac_var'}'` = yes; then
9097
9098cat >>confdefs.h <<_ACEOF
252b5132 9099#define CRAY_STACKSEG_END $ac_func
42ecbf5e 9100_ACEOF
252b5132 9101
42ecbf5e 9102 break
252b5132
RH
9103fi
9104
42ecbf5e 9105 done
252b5132
RH
9106fi
9107
42ecbf5e
DJ
9108echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9109echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9110if test "${ac_cv_c_stack_direction+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
9112else
9113 if test "$cross_compiling" = yes; then
9114 ac_cv_c_stack_direction=0
9115else
42ecbf5e
DJ
9116 cat >conftest.$ac_ext <<_ACEOF
9117/* confdefs.h. */
9118_ACEOF
9119cat confdefs.h >>conftest.$ac_ext
9120cat >>conftest.$ac_ext <<_ACEOF
9121/* end confdefs.h. */
9122int
252b5132
RH
9123find_stack_direction ()
9124{
9125 static char *addr = 0;
9126 auto char dummy;
9127 if (addr == 0)
9128 {
9129 addr = &dummy;
9130 return find_stack_direction ();
9131 }
9132 else
9133 return (&dummy > addr) ? 1 : -1;
9134}
42ecbf5e
DJ
9135
9136int
252b5132
RH
9137main ()
9138{
42ecbf5e 9139 exit (find_stack_direction () < 0);
252b5132 9140}
42ecbf5e
DJ
9141_ACEOF
9142rm -f conftest$ac_exeext
9143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_c_stack_direction=1
9154else
42ecbf5e
DJ
9155 echo "$as_me: program exited with status $ac_status" >&5
9156echo "$as_me: failed program was:" >&5
9157sed 's/^/| /' conftest.$ac_ext >&5
9158
9159( exit $ac_status )
9160ac_cv_c_stack_direction=-1
252b5132 9161fi
42ecbf5e 9162rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 9163fi
252b5132 9164fi
42ecbf5e
DJ
9165echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9166echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 9167
42ecbf5e 9168cat >>confdefs.h <<_ACEOF
252b5132 9169#define STACK_DIRECTION $ac_cv_c_stack_direction
42ecbf5e
DJ
9170_ACEOF
9171
252b5132
RH
9172
9173fi
9174
42ecbf5e
DJ
9175
9176
9177
9178
9179
9710509e 9180for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 9181do
42ecbf5e
DJ
9182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9183echo "$as_me:$LINENO: checking for $ac_func" >&5
9184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9185if eval "test \"\${$as_ac_var+set}\" = set"; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9187else
9188 cat >conftest.$ac_ext <<_ACEOF
9189/* confdefs.h. */
9190_ACEOF
9191cat confdefs.h >>conftest.$ac_ext
9192cat >>conftest.$ac_ext <<_ACEOF
9193/* end confdefs.h. */
9194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9196#define $ac_func innocuous_$ac_func
9197
252b5132 9198/* System header to define __stub macros and hopefully few prototypes,
42ecbf5e
DJ
9199 which can conflict with char $ac_func (); below.
9200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9201 <limits.h> exists even on freestanding compilers. */
9202
9203#ifdef __STDC__
9204# include <limits.h>
9205#else
9206# include <assert.h>
9207#endif
d15b04bd 9208
42ecbf5e 9209#undef $ac_func
d15b04bd 9210
42ecbf5e
DJ
9211/* Override any gcc2 internal prototype to avoid an error. */
9212#ifdef __cplusplus
9213extern "C"
9214{
9215#endif
9216/* We use char because int might match the return type of a gcc2
9217 builtin and then its argument prototype would still apply. */
9218char $ac_func ();
252b5132
RH
9219/* The GNU C library defines this for functions which it implements
9220 to always fail with ENOSYS. Some functions are actually named
9221 something starting with __ and the normal name is an alias. */
9222#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9223choke me
9224#else
42ecbf5e
DJ
9225char (*f) () = $ac_func;
9226#endif
9227#ifdef __cplusplus
9228}
252b5132
RH
9229#endif
9230
42ecbf5e
DJ
9231int
9232main ()
9233{
9234return f != $ac_func;
9235 ;
9236 return 0;
9237}
9238_ACEOF
9239rm -f conftest.$ac_objext conftest$ac_exeext
9240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241 (eval $ac_link) 2>conftest.er1
9242 ac_status=$?
9243 grep -v '^ *+' conftest.er1 >conftest.err
9244 rm -f conftest.er1
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
b7d4af3a
JW
9248 { ac_try='test -z "$ac_c_werror_flag"
9249 || test ! -s conftest.err'
42ecbf5e
DJ
9250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251 (eval $ac_try) 2>&5
9252 ac_status=$?
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); }; } &&
9255 { ac_try='test -s conftest$ac_exeext'
9256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257 (eval $ac_try) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); }; }; then
9261 eval "$as_ac_var=yes"
9262else
9263 echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266eval "$as_ac_var=no"
9267fi
9268rm -f conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270fi
9271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9272echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9273if test `eval echo '${'$as_ac_var'}'` = yes; then
9274 cat >>confdefs.h <<_ACEOF
9275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9276_ACEOF
252b5132 9277
252b5132
RH
9278fi
9279done
9280
9281
cedd9a58
JJ
9282# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
9283# needs to be defined for it
42ecbf5e
DJ
9284echo "$as_me:$LINENO: checking for fopen64" >&5
9285echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
9286if test "${bu_cv_have_fopen64+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288else
9289 cat >conftest.$ac_ext <<_ACEOF
9290/* confdefs.h. */
9291_ACEOF
9292cat confdefs.h >>conftest.$ac_ext
9293cat >>conftest.$ac_ext <<_ACEOF
9294/* end confdefs.h. */
cedd9a58 9295#include <stdio.h>
42ecbf5e
DJ
9296int
9297main ()
9298{
cedd9a58 9299FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
9300 ;
9301 return 0;
9302}
9303_ACEOF
9304rm -f conftest.$ac_objext conftest$ac_exeext
9305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306 (eval $ac_link) 2>conftest.er1
9307 ac_status=$?
9308 grep -v '^ *+' conftest.er1 >conftest.err
9309 rm -f conftest.er1
9310 cat conftest.err >&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } &&
b7d4af3a
JW
9313 { ac_try='test -z "$ac_c_werror_flag"
9314 || test ! -s conftest.err'
42ecbf5e
DJ
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; } &&
9320 { ac_try='test -s conftest$ac_exeext'
9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 (eval $ac_try) 2>&5
9323 ac_status=$?
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); }; }; then
cedd9a58
JJ
9326 bu_cv_have_fopen64=yes
9327else
42ecbf5e
DJ
9328 echo "$as_me: failed program was:" >&5
9329sed 's/^/| /' conftest.$ac_ext >&5
9330
9331saved_CPPFLAGS=$CPPFLAGS
cedd9a58 9332 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
9333 cat >conftest.$ac_ext <<_ACEOF
9334/* confdefs.h. */
9335_ACEOF
9336cat confdefs.h >>conftest.$ac_ext
9337cat >>conftest.$ac_ext <<_ACEOF
9338/* end confdefs.h. */
cedd9a58 9339#include <stdio.h>
42ecbf5e
DJ
9340int
9341main ()
9342{
cedd9a58 9343FILE *f = fopen64 ("/tmp/foo","r");
42ecbf5e
DJ
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348rm -f conftest.$ac_objext conftest$ac_exeext
9349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
b7d4af3a
JW
9357 { ac_try='test -z "$ac_c_werror_flag"
9358 || test ! -s conftest.err'
42ecbf5e
DJ
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
cedd9a58
JJ
9370 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
9371else
42ecbf5e
DJ
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375bu_cv_have_fopen64=no
cedd9a58 9376fi
42ecbf5e
DJ
9377rm -f conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 9379 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 9380fi
42ecbf5e
DJ
9381rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
cedd9a58 9383fi
cedd9a58 9384
42ecbf5e
DJ
9385echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9386echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 9387if test "$bu_cv_have_fopen64" != no; then
42ecbf5e
DJ
9388
9389cat >>confdefs.h <<\_ACEOF
cedd9a58 9390#define HAVE_FOPEN64 1
42ecbf5e 9391_ACEOF
cedd9a58 9392
fb5b5478 9393fi
42ecbf5e
DJ
9394echo "$as_me:$LINENO: checking for stat64" >&5
9395echo $ECHO_N "checking for stat64... $ECHO_C" >&6
9396if test "${bu_cv_have_stat64+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
fb5b5478 9398else
42ecbf5e
DJ
9399 cat >conftest.$ac_ext <<_ACEOF
9400/* confdefs.h. */
9401_ACEOF
9402cat confdefs.h >>conftest.$ac_ext
9403cat >>conftest.$ac_ext <<_ACEOF
9404/* end confdefs.h. */
fb5b5478 9405#include <sys/stat.h>
42ecbf5e
DJ
9406int
9407main ()
9408{
fb5b5478 9409struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414rm -f conftest.$ac_objext conftest$ac_exeext
9415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416 (eval $ac_link) 2>conftest.er1
9417 ac_status=$?
9418 grep -v '^ *+' conftest.er1 >conftest.err
9419 rm -f conftest.er1
9420 cat conftest.err >&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } &&
b7d4af3a
JW
9423 { ac_try='test -z "$ac_c_werror_flag"
9424 || test ! -s conftest.err'
42ecbf5e
DJ
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; } &&
9430 { ac_try='test -s conftest$ac_exeext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 (eval $ac_try) 2>&5
9433 ac_status=$?
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
fb5b5478
JJ
9436 bu_cv_have_stat64=yes
9437else
42ecbf5e
DJ
9438 echo "$as_me: failed program was:" >&5
9439sed 's/^/| /' conftest.$ac_ext >&5
9440
9441saved_CPPFLAGS=$CPPFLAGS
fb5b5478 9442 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
42ecbf5e
DJ
9443 cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
fb5b5478 9449#include <sys/stat.h>
42ecbf5e
DJ
9450int
9451main ()
9452{
fb5b5478 9453struct stat64 st; stat64 ("/tmp/foo", &st);
42ecbf5e
DJ
9454 ;
9455 return 0;
9456}
9457_ACEOF
9458rm -f conftest.$ac_objext conftest$ac_exeext
9459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9460 (eval $ac_link) 2>conftest.er1
9461 ac_status=$?
9462 grep -v '^ *+' conftest.er1 >conftest.err
9463 rm -f conftest.er1
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
b7d4af3a
JW
9467 { ac_try='test -z "$ac_c_werror_flag"
9468 || test ! -s conftest.err'
42ecbf5e
DJ
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try='test -s conftest$ac_exeext'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; }; then
fb5b5478
JJ
9480 bu_cv_have_stat64="need -D_LARGEFILE64_SOURCE"
9481else
42ecbf5e
DJ
9482 echo "$as_me: failed program was:" >&5
9483sed 's/^/| /' conftest.$ac_ext >&5
9484
9485bu_cv_have_stat64=no
fb5b5478 9486fi
42ecbf5e
DJ
9487rm -f conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
9489 CPPFLAGS=$saved_CPPFLAGS
9490fi
42ecbf5e
DJ
9491rm -f conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
fb5b5478
JJ
9493fi
9494
42ecbf5e
DJ
9495echo "$as_me:$LINENO: result: $bu_cv_have_stat64" >&5
9496echo "${ECHO_T}$bu_cv_have_stat64" >&6
fb5b5478 9497if test "$bu_cv_have_stat64" != no; then
42ecbf5e
DJ
9498
9499cat >>confdefs.h <<\_ACEOF
fb5b5478 9500#define HAVE_STAT64 1
42ecbf5e 9501_ACEOF
fb5b5478
JJ
9502
9503fi
9504if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE" \
9505 || test "$bu_cv_have_stat64" = "need -D_LARGEFILE64_SOURCE"; then
42ecbf5e
DJ
9506
9507cat >>confdefs.h <<\_ACEOF
cedd9a58 9508#define _LARGEFILE64_SOURCE 1
42ecbf5e 9509_ACEOF
cedd9a58 9510
fb5b5478 9511 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
cedd9a58
JJ
9512fi
9513
f353eb8a 9514# Some systems have frexp only in -lm, not in -lc.
42ecbf5e
DJ
9515echo "$as_me:$LINENO: checking for library containing frexp" >&5
9516echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9517if test "${ac_cv_search_frexp+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520 ac_func_search_save_LIBS=$LIBS
9521ac_cv_search_frexp=no
9522cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
f353eb8a 9528
f353eb8a 9529/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
9530#ifdef __cplusplus
9531extern "C"
9532#endif
f353eb8a 9533/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
9534 builtin and then its argument prototype would still apply. */
9535char frexp ();
9536int
9537main ()
9538{
9539frexp ();
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544rm -f conftest.$ac_objext conftest$ac_exeext
9545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } &&
b7d4af3a
JW
9553 { ac_try='test -z "$ac_c_werror_flag"
9554 || test ! -s conftest.err'
42ecbf5e
DJ
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; } &&
9560 { ac_try='test -s conftest$ac_exeext'
9561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 (eval $ac_try) 2>&5
9563 ac_status=$?
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; }; then
f353eb8a
ILT
9566 ac_cv_search_frexp="none required"
9567else
42ecbf5e
DJ
9568 echo "$as_me: failed program was:" >&5
9569sed 's/^/| /' conftest.$ac_ext >&5
9570
f353eb8a 9571fi
42ecbf5e
DJ
9572rm -f conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574if test "$ac_cv_search_frexp" = no; then
9575 for ac_lib in m; do
9576 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9577 cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h. */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h. */
9583
f353eb8a 9584/* Override any gcc2 internal prototype to avoid an error. */
42ecbf5e
DJ
9585#ifdef __cplusplus
9586extern "C"
9587#endif
f353eb8a 9588/* We use char because int might match the return type of a gcc2
42ecbf5e
DJ
9589 builtin and then its argument prototype would still apply. */
9590char frexp ();
9591int
9592main ()
9593{
9594frexp ();
9595 ;
9596 return 0;
9597}
9598_ACEOF
9599rm -f conftest.$ac_objext conftest$ac_exeext
9600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } &&
b7d4af3a
JW
9608 { ac_try='test -z "$ac_c_werror_flag"
9609 || test ! -s conftest.err'
42ecbf5e
DJ
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 (eval $ac_try) 2>&5
9618 ac_status=$?
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9621 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
9622break
9623else
42ecbf5e
DJ
9624 echo "$as_me: failed program was:" >&5
9625sed 's/^/| /' conftest.$ac_ext >&5
9626
f353eb8a 9627fi
42ecbf5e
DJ
9628rm -f conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext conftest.$ac_ext
9630 done
e5a52504 9631fi
42ecbf5e
DJ
9632LIBS=$ac_func_search_save_LIBS
9633fi
9634echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9635echo "${ECHO_T}$ac_cv_search_frexp" >&6
9636if test "$ac_cv_search_frexp" != no; then
d15b04bd 9637 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
42ecbf5e 9638
f353eb8a
ILT
9639fi
9640
42ecbf5e
DJ
9641
9642echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9643echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9644if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9646else
42ecbf5e
DJ
9647 cat >conftest.$ac_ext <<_ACEOF
9648/* confdefs.h. */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h. */
252b5132 9653#include <time.h>
42ecbf5e
DJ
9654int
9655main ()
9656{
252b5132 9657time_t i;
42ecbf5e
DJ
9658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext
9663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9664 (eval $ac_compile) 2>conftest.er1
9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
b7d4af3a
JW
9671 { ac_try='test -z "$ac_c_werror_flag"
9672 || test ! -s conftest.err'
42ecbf5e
DJ
9673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 (eval $ac_try) 2>&5
9675 ac_status=$?
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677 (exit $ac_status); }; } &&
9678 { ac_try='test -s conftest.$ac_objext'
9679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 (eval $ac_try) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; }; then
252b5132
RH
9684 bu_cv_decl_time_t_time_h=yes
9685else
42ecbf5e
DJ
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
9688
9689bu_cv_decl_time_t_time_h=no
252b5132 9690fi
42ecbf5e 9691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9692fi
9693
42ecbf5e
DJ
9694echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9695echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 9696if test $bu_cv_decl_time_t_time_h = yes; then
42ecbf5e
DJ
9697
9698cat >>confdefs.h <<\_ACEOF
252b5132 9699#define HAVE_TIME_T_IN_TIME_H 1
42ecbf5e 9700_ACEOF
252b5132
RH
9701
9702fi
9703
42ecbf5e
DJ
9704echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9705echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9706if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9708else
42ecbf5e
DJ
9709 cat >conftest.$ac_ext <<_ACEOF
9710/* confdefs.h. */
9711_ACEOF
9712cat confdefs.h >>conftest.$ac_ext
9713cat >>conftest.$ac_ext <<_ACEOF
9714/* end confdefs.h. */
252b5132 9715#include <sys/types.h>
42ecbf5e
DJ
9716int
9717main ()
9718{
252b5132 9719time_t i;
42ecbf5e
DJ
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext
9725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726 (eval $ac_compile) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
b7d4af3a
JW
9733 { ac_try='test -z "$ac_c_werror_flag"
9734 || test ! -s conftest.err'
42ecbf5e
DJ
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest.$ac_objext'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; }; then
252b5132
RH
9746 bu_cv_decl_time_t_types_h=yes
9747else
42ecbf5e
DJ
9748 echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
9751bu_cv_decl_time_t_types_h=no
252b5132 9752fi
42ecbf5e 9753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9754fi
9755
42ecbf5e
DJ
9756echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9757echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 9758if test $bu_cv_decl_time_t_types_h = yes; then
42ecbf5e
DJ
9759
9760cat >>confdefs.h <<\_ACEOF
252b5132 9761#define HAVE_TIME_T_IN_TYPES_H 1
42ecbf5e 9762_ACEOF
252b5132
RH
9763
9764fi
9765
42ecbf5e
DJ
9766echo "$as_me:$LINENO: checking for a known getopt prototype in unistd.h" >&5
9767echo $ECHO_N "checking for a known getopt prototype in unistd.h... $ECHO_C" >&6
9768if test "${bu_cv_decl_getopt_unistd_h+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
e46eba98 9770else
42ecbf5e
DJ
9771 cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h. */
e46eba98 9777#include <unistd.h>
42ecbf5e
DJ
9778int
9779main ()
9780{
e46eba98 9781extern int getopt (int, char *const*, const char *);
42ecbf5e
DJ
9782 ;
9783 return 0;
9784}
9785_ACEOF
9786rm -f conftest.$ac_objext
9787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9788 (eval $ac_compile) 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
b7d4af3a
JW
9795 { ac_try='test -z "$ac_c_werror_flag"
9796 || test ! -s conftest.err'
42ecbf5e
DJ
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest.$ac_objext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
e46eba98
NC
9808 bu_cv_decl_getopt_unistd_h=yes
9809else
42ecbf5e
DJ
9810 echo "$as_me: failed program was:" >&5
9811sed 's/^/| /' conftest.$ac_ext >&5
9812
9813bu_cv_decl_getopt_unistd_h=no
e46eba98 9814fi
42ecbf5e 9815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e46eba98
NC
9816fi
9817
42ecbf5e
DJ
9818echo "$as_me:$LINENO: result: $bu_cv_decl_getopt_unistd_h" >&5
9819echo "${ECHO_T}$bu_cv_decl_getopt_unistd_h" >&6
e46eba98 9820if test $bu_cv_decl_getopt_unistd_h = yes; then
42ecbf5e
DJ
9821
9822cat >>confdefs.h <<\_ACEOF
e46eba98 9823#define HAVE_DECL_GETOPT 1
42ecbf5e 9824_ACEOF
e46eba98
NC
9825
9826fi
9827
252b5132
RH
9828# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9829# by default.
42ecbf5e
DJ
9830echo "$as_me:$LINENO: checking for utime.h" >&5
9831echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9832if test "${bu_cv_header_utime_h+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834else
9835 cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
252b5132
RH
9841#include <sys/types.h>
9842#ifdef HAVE_TIME_H
9843#include <time.h>
9844#endif
9845#include <utime.h>
42ecbf5e
DJ
9846int
9847main ()
9848{
252b5132 9849struct utimbuf s;
42ecbf5e
DJ
9850 ;
9851 return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext
9855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } &&
b7d4af3a
JW
9863 { ac_try='test -z "$ac_c_werror_flag"
9864 || test ! -s conftest.err'
42ecbf5e
DJ
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; } &&
9870 { ac_try='test -s conftest.$ac_objext'
9871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872 (eval $ac_try) 2>&5
9873 ac_status=$?
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); }; }; then
252b5132
RH
9876 bu_cv_header_utime_h=yes
9877else
42ecbf5e
DJ
9878 echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
9881bu_cv_header_utime_h=no
252b5132 9882fi
42ecbf5e 9883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9884fi
9885
42ecbf5e
DJ
9886echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9887echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 9888if test $bu_cv_header_utime_h = yes; then
42ecbf5e
DJ
9889
9890cat >>confdefs.h <<\_ACEOF
252b5132 9891#define HAVE_GOOD_UTIME_H 1
42ecbf5e 9892_ACEOF
252b5132
RH
9893
9894fi
9895
398ee8f1
SE
9896echo "$as_me:$LINENO: checking whether fprintf is declared" >&5
9897echo $ECHO_N "checking whether fprintf is declared... $ECHO_C" >&6
9898if test "${ac_cv_have_decl_fprintf+set}" = set; then
42ecbf5e 9899 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9900else
42ecbf5e
DJ
9901 cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h. */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */
398ee8f1 9907$ac_includes_default
42ecbf5e
DJ
9908int
9909main ()
9910{
398ee8f1
SE
9911#ifndef fprintf
9912 char *p = (char *) fprintf;
9913#endif
9914
42ecbf5e
DJ
9915 ;
9916 return 0;
9917}
9918_ACEOF
9919rm -f conftest.$ac_objext
9920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9921 (eval $ac_compile) 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
b7d4af3a
JW
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
42ecbf5e
DJ
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
398ee8f1 9941 ac_cv_have_decl_fprintf=yes
252b5132 9942else
42ecbf5e
DJ
9943 echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
398ee8f1 9946ac_cv_have_decl_fprintf=no
252b5132 9947fi
42ecbf5e 9948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 9949fi
398ee8f1
SE
9950echo "$as_me:$LINENO: result: $ac_cv_have_decl_fprintf" >&5
9951echo "${ECHO_T}$ac_cv_have_decl_fprintf" >&6
9952if test $ac_cv_have_decl_fprintf = yes; then
252b5132 9953
398ee8f1
SE
9954cat >>confdefs.h <<_ACEOF
9955#define HAVE_DECL_FPRINTF 1
9956_ACEOF
42ecbf5e 9957
398ee8f1
SE
9958
9959else
9960 cat >>confdefs.h <<_ACEOF
9961#define HAVE_DECL_FPRINTF 0
42ecbf5e 9962_ACEOF
252b5132 9963
252b5132 9964
3e321448
L
9965fi
9966echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9967echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9968if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970else
9971 cat >conftest.$ac_ext <<_ACEOF
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977$ac_includes_default
9978int
9979main ()
9980{
9981#ifndef stpcpy
9982 char *p = (char *) stpcpy;
9983#endif
9984
9985 ;
9986 return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext
9990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9991 (eval $ac_compile) 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } &&
9998 { ac_try='test -z "$ac_c_werror_flag"
9999 || test ! -s conftest.err'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; } &&
10005 { ac_try='test -s conftest.$ac_objext'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; }; then
10011 ac_cv_have_decl_stpcpy=yes
10012else
10013 echo "$as_me: failed program was:" >&5
10014sed 's/^/| /' conftest.$ac_ext >&5
10015
10016ac_cv_have_decl_stpcpy=no
10017fi
10018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10019fi
10020echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
10021echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
10022if test $ac_cv_have_decl_stpcpy = yes; then
10023
10024cat >>confdefs.h <<_ACEOF
10025#define HAVE_DECL_STPCPY 1
10026_ACEOF
10027
10028
10029else
10030 cat >>confdefs.h <<_ACEOF
10031#define HAVE_DECL_STPCPY 0
10032_ACEOF
10033
10034
398ee8f1
SE
10035fi
10036echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10037echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10038if test "${ac_cv_have_decl_strstr+set}" = set; then
42ecbf5e 10039 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10040else
42ecbf5e
DJ
10041 cat >conftest.$ac_ext <<_ACEOF
10042/* confdefs.h. */
10043_ACEOF
10044cat confdefs.h >>conftest.$ac_ext
10045cat >>conftest.$ac_ext <<_ACEOF
10046/* end confdefs.h. */
398ee8f1 10047$ac_includes_default
42ecbf5e
DJ
10048int
10049main ()
10050{
398ee8f1
SE
10051#ifndef strstr
10052 char *p = (char *) strstr;
10053#endif
10054
42ecbf5e
DJ
10055 ;
10056 return 0;
10057}
10058_ACEOF
10059rm -f conftest.$ac_objext
10060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061 (eval $ac_compile) 2>conftest.er1
10062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
b7d4af3a
JW
10068 { ac_try='test -z "$ac_c_werror_flag"
10069 || test ! -s conftest.err'
42ecbf5e
DJ
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; } &&
10075 { ac_try='test -s conftest.$ac_objext'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
398ee8f1 10081 ac_cv_have_decl_strstr=yes
252b5132 10082else
42ecbf5e
DJ
10083 echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
398ee8f1 10086ac_cv_have_decl_strstr=no
252b5132 10087fi
42ecbf5e 10088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10089fi
398ee8f1
SE
10090echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10091echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10092if test $ac_cv_have_decl_strstr = yes; then
252b5132 10093
398ee8f1
SE
10094cat >>confdefs.h <<_ACEOF
10095#define HAVE_DECL_STRSTR 1
10096_ACEOF
42ecbf5e 10097
398ee8f1
SE
10098
10099else
10100 cat >>confdefs.h <<_ACEOF
10101#define HAVE_DECL_STRSTR 0
42ecbf5e 10102_ACEOF
252b5132 10103
252b5132 10104
398ee8f1
SE
10105fi
10106echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
10107echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
10108if test "${ac_cv_have_decl_sbrk+set}" = set; then
42ecbf5e 10109 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10110else
42ecbf5e
DJ
10111 cat >conftest.$ac_ext <<_ACEOF
10112/* confdefs.h. */
10113_ACEOF
10114cat confdefs.h >>conftest.$ac_ext
10115cat >>conftest.$ac_ext <<_ACEOF
10116/* end confdefs.h. */
398ee8f1 10117$ac_includes_default
42ecbf5e
DJ
10118int
10119main ()
10120{
398ee8f1
SE
10121#ifndef sbrk
10122 char *p = (char *) sbrk;
10123#endif
10124
42ecbf5e
DJ
10125 ;
10126 return 0;
10127}
10128_ACEOF
10129rm -f conftest.$ac_objext
10130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10131 (eval $ac_compile) 2>conftest.er1
10132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); } &&
b7d4af3a
JW
10138 { ac_try='test -z "$ac_c_werror_flag"
10139 || test ! -s conftest.err'
42ecbf5e
DJ
10140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141 (eval $ac_try) 2>&5
10142 ac_status=$?
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); }; } &&
10145 { ac_try='test -s conftest.$ac_objext'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10148 ac_status=$?
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; }; then
398ee8f1 10151 ac_cv_have_decl_sbrk=yes
252b5132 10152else
42ecbf5e
DJ
10153 echo "$as_me: failed program was:" >&5
10154sed 's/^/| /' conftest.$ac_ext >&5
10155
398ee8f1 10156ac_cv_have_decl_sbrk=no
252b5132 10157fi
42ecbf5e 10158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10159fi
398ee8f1
SE
10160echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
10161echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
10162if test $ac_cv_have_decl_sbrk = yes; then
252b5132 10163
398ee8f1
SE
10164cat >>confdefs.h <<_ACEOF
10165#define HAVE_DECL_SBRK 1
10166_ACEOF
42ecbf5e 10167
398ee8f1
SE
10168
10169else
10170 cat >>confdefs.h <<_ACEOF
10171#define HAVE_DECL_SBRK 0
42ecbf5e 10172_ACEOF
252b5132 10173
252b5132 10174
398ee8f1
SE
10175fi
10176echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10177echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10178if test "${ac_cv_have_decl_getenv+set}" = set; then
42ecbf5e 10179 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10180else
42ecbf5e
DJ
10181 cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
398ee8f1 10187$ac_includes_default
42ecbf5e
DJ
10188int
10189main ()
10190{
398ee8f1
SE
10191#ifndef getenv
10192 char *p = (char *) getenv;
10193#endif
10194
42ecbf5e
DJ
10195 ;
10196 return 0;
10197}
10198_ACEOF
10199rm -f conftest.$ac_objext
10200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10201 (eval $ac_compile) 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
b7d4af3a
JW
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
42ecbf5e
DJ
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest.$ac_objext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10218 ac_status=$?
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
398ee8f1 10221 ac_cv_have_decl_getenv=yes
252b5132 10222else
42ecbf5e
DJ
10223 echo "$as_me: failed program was:" >&5
10224sed 's/^/| /' conftest.$ac_ext >&5
10225
398ee8f1 10226ac_cv_have_decl_getenv=no
252b5132 10227fi
42ecbf5e 10228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10229fi
398ee8f1
SE
10230echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
10231echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
10232if test $ac_cv_have_decl_getenv = yes; then
252b5132 10233
398ee8f1
SE
10234cat >>confdefs.h <<_ACEOF
10235#define HAVE_DECL_GETENV 1
10236_ACEOF
42ecbf5e 10237
398ee8f1
SE
10238
10239else
10240 cat >>confdefs.h <<_ACEOF
10241#define HAVE_DECL_GETENV 0
42ecbf5e 10242_ACEOF
252b5132 10243
252b5132 10244
398ee8f1
SE
10245fi
10246echo "$as_me:$LINENO: checking whether environ is declared" >&5
10247echo $ECHO_N "checking whether environ is declared... $ECHO_C" >&6
10248if test "${ac_cv_have_decl_environ+set}" = set; then
42ecbf5e 10249 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 10250else
42ecbf5e
DJ
10251 cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
398ee8f1 10257$ac_includes_default
42ecbf5e
DJ
10258int
10259main ()
10260{
398ee8f1
SE
10261#ifndef environ
10262 char *p = (char *) environ;
10263#endif
10264
42ecbf5e
DJ
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269rm -f conftest.$ac_objext
10270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10271 (eval $ac_compile) 2>conftest.er1
10272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); } &&
b7d4af3a
JW
10278 { ac_try='test -z "$ac_c_werror_flag"
10279 || test ! -s conftest.err'
42ecbf5e
DJ
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
398ee8f1 10291 ac_cv_have_decl_environ=yes
252b5132 10292else
42ecbf5e
DJ
10293 echo "$as_me: failed program was:" >&5
10294sed 's/^/| /' conftest.$ac_ext >&5
10295
398ee8f1 10296ac_cv_have_decl_environ=no
252b5132 10297fi
42ecbf5e 10298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 10299fi
398ee8f1
SE
10300echo "$as_me:$LINENO: result: $ac_cv_have_decl_environ" >&5
10301echo "${ECHO_T}$ac_cv_have_decl_environ" >&6
10302if test $ac_cv_have_decl_environ = yes; then
252b5132 10303
398ee8f1
SE
10304cat >>confdefs.h <<_ACEOF
10305#define HAVE_DECL_ENVIRON 1
10306_ACEOF
42ecbf5e 10307
398ee8f1
SE
10308
10309else
10310 cat >>confdefs.h <<_ACEOF
10311#define HAVE_DECL_ENVIRON 0
42ecbf5e 10312_ACEOF
252b5132 10313
252b5132 10314
398ee8f1 10315fi
b7d4af3a
JW
10316echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10317echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
10318if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h. */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h. */
10327$ac_includes_default
10328int
10329main ()
10330{
10331#ifndef getc_unlocked
10332 char *p = (char *) getc_unlocked;
10333#endif
10334
10335 ;
10336 return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext
10340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>conftest.er1
10342 ac_status=$?
10343 grep -v '^ *+' conftest.er1 >conftest.err
10344 rm -f conftest.er1
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } &&
10348 { ac_try='test -z "$ac_c_werror_flag"
10349 || test ! -s conftest.err'
10350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351 (eval $ac_try) 2>&5
10352 ac_status=$?
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_cv_have_decl_getc_unlocked=yes
10362else
10363 echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366ac_cv_have_decl_getc_unlocked=no
10367fi
10368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10369fi
10370echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10371echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
10372if test $ac_cv_have_decl_getc_unlocked = yes; then
10373
10374cat >>confdefs.h <<_ACEOF
10375#define HAVE_DECL_GETC_UNLOCKED 1
10376_ACEOF
10377
10378
10379else
10380 cat >>confdefs.h <<_ACEOF
10381#define HAVE_DECL_GETC_UNLOCKED 0
10382_ACEOF
10383
10384
10385fi
10386
10387
252b5132
RH
10388
10389
10390case "${host}" in
8a965946 10391*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
42ecbf5e
DJ
10392
10393cat >>confdefs.h <<\_ACEOF
252b5132 10394#define USE_BINARY_FOPEN 1
42ecbf5e 10395_ACEOF
252b5132
RH
10396 ;;
10397esac
10398
10399# target-specific stuff:
10400
10401# Canonicalize the secondary target names.
10402if test -n "$enable_targets"; then
10403 for targ in `echo $enable_targets | sed 's/,/ /g'`
10404 do
6d83c84b 10405 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
10406 if test -n "$result"; then
10407 canon_targets="$canon_targets $result"
10408 else
10409 # Allow targets that config.sub doesn't recognize, like "all".
10410 canon_targets="$canon_targets $targ"
10411 fi
10412 done
10413fi
10414
10415all_targets=false
10416BUILD_NLMCONV=
10417NLMCONV_DEFS=
10418BUILD_SRCONV=
10419BUILD_DLLTOOL=
10420DLLTOOL_DEFS=
10421BUILD_WINDRES=
10422BUILD_DLLWRAP=
10423BUILD_MISC=
8b1e6df3 10424OBJDUMP_DEFS=
252b5132
RH
10425
10426for targ in $target $canon_targets
10427do
10428 if test "x$targ" = "xall"; then
10429 all_targets=true
10430 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10431 BUILD_SRCONV='$(SRCONV_PROG)'
10432 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
10433 else
10434 case $targ in
42ecbf5e 10435 i[3-7]86*-*-netware*)
252b5132
RH
10436 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10437 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
10438 ;;
10439 alpha*-*-netware*)
10440 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10441 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
10442 ;;
10443 powerpc*-*-netware*)
10444 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10445 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
10446 ;;
10447 sparc*-*-netware*)
10448 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
10449 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
10450 ;;
10451 esac
10452 case $targ in
10453 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
10454 esac
10455 case $targ in
a8c548cb
NC
10456 arm-epoc-pe*)
10457 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10458 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
10459 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10460 ;;
27a710e5 10461 arm-*-pe* | arm-*-wince)
252b5132
RH
10462 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10463 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10464 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10465 ;;
27a710e5 10466 thumb-*-pe*)
252b5132
RH
10467 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10468 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
10469 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10470 ;;
c7217458 10471 arm*-* | xscale-* | strongarm-* | d10v-*)
8b1e6df3
NC
10472 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
10473 ;;
80c7c40a 10474 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
10475 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10476 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10477 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10478 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 10479 ;;
80c7c40a 10480 i[3-7]86-*-interix)
7a7b06ef
ILT
10481 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
10482 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
10483 ;;
f0660b73
NC
10484 powerpc*-aix5.[01])
10485 ;;
10486 powerpc*-aix5.*)
10487 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
10488 ;;
e1d5b1e7 10489 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132
RH
10490 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10491 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
10492 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8a0e0f38 10493 ;;
e1d5b1e7 10494 sh*-*-pe)
8a0e0f38
NC
10495 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10496 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
10497 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10498 ;;
e1d5b1e7 10499 mips*-*-pe)
8a0e0f38
NC
10500 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10501 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
10502 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10503 ;;
27a710e5 10504 mcore-*-pe)
661016bb
NC
10505 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10506 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
10507 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 10508 ;;
27a710e5 10509 mcore-*-elf)
661016bb
NC
10510 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
10511 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 10512 ;;
252b5132
RH
10513 esac
10514 fi
10515done
10516
42ecbf5e
DJ
10517if test "${with_windres+set}" = set; then
10518 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
10519fi
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532cat >>confdefs.h <<_ACEOF
10533#define TARGET "${target}"
10534_ACEOF
10535
10536
10537targ=$target
10538. $srcdir/../bfd/config.bfd
10539if test "x$targ_underscore" = "xyes"; then
10540 UNDERSCORE=1
10541else
10542 UNDERSCORE=0
10543fi
10544
10545cat >>confdefs.h <<_ACEOF
10546#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
10547_ACEOF
10548
10549
10550# Emulation
10551for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
10552do
10553 # Canonicalize the secondary target names.
10554 result=`$ac_config_sub $targ_alias 2>/dev/null`
10555 if test -n "$result"; then
10556 targ=$result
10557 else
10558 targ=$targ_alias
10559 fi
10560
10561 . ${srcdir}/configure.tgt
10562
10563 EMULATION=$targ_emul
10564 EMULATION_VECTOR=$targ_emul_vector
10565done
10566
10567
10568
10569
10570 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
10571 ac_config_commands="$ac_config_commands default"
10572cat >confcache <<\_ACEOF
10573# This file is a shell script that caches the results of configure
10574# tests run on this system so they can be shared between configure
10575# scripts and configure runs, see configure's option --config-cache.
10576# It is not useful on other systems. If it contains results you don't
10577# want to keep, you may remove or edit it.
10578#
10579# config.status only pays attention to the cache file if you give it
10580# the --recheck option to rerun configure.
10581#
10582# `ac_cv_env_foo' variables (set or unset) will be overridden when
10583# loading this file, other *unset* `ac_cv_foo' will be assigned the
10584# following values.
10585
10586_ACEOF
10587
10588# The following way of writing the cache mishandles newlines in values,
10589# but we know of no workaround that is simple, portable, and efficient.
10590# So, don't put newlines in cache variables' values.
10591# Ultrix sh set writes to stderr and can't be redirected directly,
10592# and sets the high bit in the cache file unless we assign to the vars.
10593{
10594 (set) 2>&1 |
10595 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10596 *ac_space=\ *)
10597 # `set' does not quote correctly, so add quotes (double-quote
10598 # substitution turns \\\\ into \\, and sed turns \\ into \).
10599 sed -n \
10600 "s/'/'\\\\''/g;
10601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10602 ;;
10603 *)
10604 # `set' quotes correctly as required by POSIX, so do not add quotes.
10605 sed -n \
10606 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10607 ;;
10608 esac;
10609} |
10610 sed '
10611 t clear
10612 : clear
10613 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10614 t end
10615 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10616 : end' >>confcache
10617if diff $cache_file confcache >/dev/null 2>&1; then :; else
10618 if test -w $cache_file; then
10619 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10620 cat confcache >$cache_file
10621 else
10622 echo "not updating unwritable cache $cache_file"
10623 fi
10624fi
10625rm -f confcache
10626
10627test "x$prefix" = xNONE && prefix=$ac_default_prefix
10628# Let make expand exec_prefix.
10629test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10630
10631# VPATH may cause trouble with some makes, so we remove $(srcdir),
10632# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10633# trailing colons and then remove the whole line if VPATH becomes empty
10634# (actually we leave an empty line to preserve line numbers).
10635if test "x$srcdir" = x.; then
10636 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10637s/:*\$(srcdir):*/:/;
10638s/:*\${srcdir}:*/:/;
10639s/:*@srcdir@:*/:/;
10640s/^\([^=]*=[ ]*\):*/\1/;
10641s/:*$//;
10642s/^[^=]*=[ ]*$//;
10643}'
10644fi
10645
10646DEFS=-DHAVE_CONFIG_H
10647
10648ac_libobjs=
10649ac_ltlibobjs=
10650for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10651 # 1. Remove the extension, and $U if already installed.
10652 ac_i=`echo "$ac_i" |
10653 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10654 # 2. Add them.
10655 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10656 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10657done
10658LIBOBJS=$ac_libobjs
10659
10660LTLIBOBJS=$ac_ltlibobjs
10661
10662
10663if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10664 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10665Usually this means the macro was only invoked conditionally." >&5
10666echo "$as_me: error: conditional \"AMDEP\" was never defined.
10667Usually this means the macro was only invoked conditionally." >&2;}
10668 { (exit 1); exit 1; }; }
10669fi
10670if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10671 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10672Usually this means the macro was only invoked conditionally." >&5
10673echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10674Usually this means the macro was only invoked conditionally." >&2;}
10675 { (exit 1); exit 1; }; }
10676fi
10677if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10678 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10679Usually this means the macro was only invoked conditionally." >&5
10680echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10681Usually this means the macro was only invoked conditionally." >&2;}
10682 { (exit 1); exit 1; }; }
10683fi
10684
10685: ${CONFIG_STATUS=./config.status}
10686ac_clean_files_save=$ac_clean_files
10687ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10688{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10689echo "$as_me: creating $CONFIG_STATUS" >&6;}
10690cat >$CONFIG_STATUS <<_ACEOF
10691#! $SHELL
10692# Generated by $as_me.
10693# Run this file to recreate the current configuration.
10694# Compiler output produced by configure, useful for debugging
10695# configure, is in config.log if it exists.
10696
10697debug=false
10698ac_cs_recheck=false
10699ac_cs_silent=false
10700SHELL=\${CONFIG_SHELL-$SHELL}
10701_ACEOF
252b5132 10702
42ecbf5e
DJ
10703cat >>$CONFIG_STATUS <<\_ACEOF
10704## --------------------- ##
10705## M4sh Initialization. ##
10706## --------------------- ##
252b5132 10707
42ecbf5e
DJ
10708# Be Bourne compatible
10709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10710 emulate sh
10711 NULLCMD=:
10712 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10713 # is contrary to our usage. Disable this feature.
10714 alias -g '${1+"$@"}'='"$@"'
10715elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10716 set -o posix
10717fi
10718DUALCASE=1; export DUALCASE # for MKS sh
252b5132 10719
42ecbf5e
DJ
10720# Support unset when possible.
10721if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10722 as_unset=unset
10723else
10724 as_unset=false
10725fi
252b5132
RH
10726
10727
42ecbf5e
DJ
10728# Work around bugs in pre-3.0 UWIN ksh.
10729$as_unset ENV MAIL MAILPATH
10730PS1='$ '
10731PS2='> '
10732PS4='+ '
252b5132 10733
42ecbf5e
DJ
10734# NLS nuisances.
10735for as_var in \
10736 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10737 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10738 LC_TELEPHONE LC_TIME
10739do
10740 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10741 eval $as_var=C; export $as_var
10742 else
10743 $as_unset $as_var
10744 fi
10745done
252b5132 10746
42ecbf5e
DJ
10747# Required to use basename.
10748if expr a : '\(a\)' >/dev/null 2>&1; then
10749 as_expr=expr
10750else
10751 as_expr=false
10752fi
252b5132 10753
42ecbf5e
DJ
10754if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10755 as_basename=basename
10756else
10757 as_basename=false
10758fi
252b5132 10759
8b1e6df3 10760
42ecbf5e
DJ
10761# Name of the executable.
10762as_me=`$as_basename "$0" ||
10763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10764 X"$0" : 'X\(//\)$' \| \
10765 X"$0" : 'X\(/\)$' \| \
10766 . : '\(.\)' 2>/dev/null ||
10767echo X/"$0" |
10768 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10769 /^X\/\(\/\/\)$/{ s//\1/; q; }
10770 /^X\/\(\/\).*/{ s//\1/; q; }
10771 s/.*/./; q'`
0218d1e4 10772
252b5132 10773
42ecbf5e
DJ
10774# PATH needs CR, and LINENO needs CR and PATH.
10775# Avoid depending upon Character Ranges.
10776as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10777as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10778as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10779as_cr_digits='0123456789'
10780as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 10781
42ecbf5e
DJ
10782# The user is always right.
10783if test "${PATH_SEPARATOR+set}" != set; then
10784 echo "#! /bin/sh" >conf$$.sh
10785 echo "exit 0" >>conf$$.sh
10786 chmod +x conf$$.sh
10787 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10788 PATH_SEPARATOR=';'
10789 else
10790 PATH_SEPARATOR=:
10791 fi
10792 rm -f conf$$.sh
252b5132
RH
10793fi
10794
10795
42ecbf5e
DJ
10796 as_lineno_1=$LINENO
10797 as_lineno_2=$LINENO
10798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10799 test "x$as_lineno_1" != "x$as_lineno_2" &&
10800 test "x$as_lineno_3" = "x$as_lineno_2" || {
10801 # Find who we are. Look in the path if we contain no path at all
10802 # relative or not.
10803 case $0 in
10804 *[\\/]* ) as_myself=$0 ;;
10805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806for as_dir in $PATH
eb1e0e80 10807do
42ecbf5e
DJ
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10811done
eb1e0e80 10812
42ecbf5e
DJ
10813 ;;
10814 esac
10815 # We did not find ourselves, most probably we were run as `sh COMMAND'
10816 # in which case we are not to be found in the path.
10817 if test "x$as_myself" = x; then
10818 as_myself=$0
10819 fi
10820 if test ! -f "$as_myself"; then
10821 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10822echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10823 { (exit 1); exit 1; }; }
10824 fi
10825 case $CONFIG_SHELL in
10826 '')
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10829do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for as_base in sh bash ksh sh5; do
10833 case $as_dir in
10834 /*)
10835 if ("$as_dir/$as_base" -c '
10836 as_lineno_1=$LINENO
10837 as_lineno_2=$LINENO
10838 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10839 test "x$as_lineno_1" != "x$as_lineno_2" &&
10840 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10841 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10842 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10843 CONFIG_SHELL=$as_dir/$as_base
10844 export CONFIG_SHELL
10845 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10846 fi;;
10847 esac
10848 done
eb1e0e80 10849done
42ecbf5e
DJ
10850;;
10851 esac
eb1e0e80 10852
42ecbf5e
DJ
10853 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10854 # uniformly replaced by the line number. The first 'sed' inserts a
10855 # line-number line before each line; the second 'sed' does the real
10856 # work. The second script uses 'N' to pair each line-number line
10857 # with the numbered line, and appends trailing '-' during
10858 # substitution so that $LINENO is not a special case at line end.
10859 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10860 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10861 sed '=' <$as_myself |
10862 sed '
10863 N
10864 s,$,-,
10865 : loop
10866 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10867 t loop
10868 s,-$,,
10869 s,^['$as_cr_digits']*\n,,
10870 ' >$as_me.lineno &&
10871 chmod +x $as_me.lineno ||
10872 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10873echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10874 { (exit 1); exit 1; }; }
10875
10876 # Don't try to exec as it changes $[0], causing all sort of problems
10877 # (the dirname of $[0] is not the place where we might find the
10878 # original and so on. Autoconf is especially sensible to this).
10879 . ./$as_me.lineno
10880 # Exit status is that of the last command.
10881 exit
10882}
eb1e0e80
NC
10883
10884
42ecbf5e
DJ
10885case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10886 *c*,-n*) ECHO_N= ECHO_C='
10887' ECHO_T=' ' ;;
10888 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10889 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10890esac
eb1e0e80 10891
42ecbf5e
DJ
10892if expr a : '\(a\)' >/dev/null 2>&1; then
10893 as_expr=expr
d15b04bd 10894else
42ecbf5e
DJ
10895 as_expr=false
10896fi
10897
10898rm -f conf$$ conf$$.exe conf$$.file
10899echo >conf$$.file
10900if ln -s conf$$.file conf$$ 2>/dev/null; then
10901 # We could just check for DJGPP; but this test a) works b) is more generic
10902 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10903 if test -f conf$$.exe; then
10904 # Don't use ln at all; we don't have any links
10905 as_ln_s='cp -p'
252b5132 10906 else
42ecbf5e 10907 as_ln_s='ln -s'
252b5132 10908 fi
42ecbf5e
DJ
10909elif ln conf$$.file conf$$ 2>/dev/null; then
10910 as_ln_s=ln
10911else
10912 as_ln_s='cp -p'
252b5132 10913fi
42ecbf5e 10914rm -f conf$$ conf$$.exe conf$$.file
252b5132 10915
42ecbf5e
DJ
10916if mkdir -p . 2>/dev/null; then
10917 as_mkdir_p=:
10918else
10919 test -d ./-p && rmdir ./-p
10920 as_mkdir_p=false
10921fi
d15b04bd 10922
42ecbf5e 10923as_executable_p="test -f"
252b5132 10924
42ecbf5e
DJ
10925# Sed expression to map a string onto a valid CPP name.
10926as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10927
10928# Sed expression to map a string onto a valid variable name.
10929as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10930
10931
10932# IFS
10933# We need space, tab and new line, in precisely that order.
10934as_nl='
10935'
10936IFS=" $as_nl"
10937
10938# CDPATH.
10939$as_unset CDPATH
10940
10941exec 6>&1
10942
10943# Open the log real soon, to keep \$[0] and so on meaningful, and to
10944# report actual input values of CONFIG_FILES etc. instead of their
10945# values after options handling. Logging --version etc. is OK.
10946exec 5>>config.log
10947{
10948 echo
10949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10950## Running $as_me. ##
10951_ASBOX
10952} >&5
10953cat >&5 <<_CSEOF
10954
10955This file was extended by $as_me, which was
10956generated by GNU Autoconf 2.59. Invocation command line was
10957
10958 CONFIG_FILES = $CONFIG_FILES
10959 CONFIG_HEADERS = $CONFIG_HEADERS
10960 CONFIG_LINKS = $CONFIG_LINKS
10961 CONFIG_COMMANDS = $CONFIG_COMMANDS
10962 $ $0 $@
10963
10964_CSEOF
10965echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10966echo >&5
10967_ACEOF
10968
10969# Files that config.status was made for.
10970if test -n "$ac_config_files"; then
10971 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
252b5132
RH
10972fi
10973
42ecbf5e
DJ
10974if test -n "$ac_config_headers"; then
10975 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10976fi
e5a52504 10977
42ecbf5e
DJ
10978if test -n "$ac_config_links"; then
10979 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10980fi
e5a52504 10981
42ecbf5e
DJ
10982if test -n "$ac_config_commands"; then
10983 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10984fi
d15b04bd 10985
42ecbf5e
DJ
10986cat >>$CONFIG_STATUS <<\_ACEOF
10987
10988ac_cs_usage="\
10989\`$as_me' instantiates files from templates according to the
10990current configuration.
10991
10992Usage: $0 [OPTIONS] [FILE]...
10993
10994 -h, --help print this help, then exit
10995 -V, --version print version number, then exit
10996 -q, --quiet do not print progress messages
10997 -d, --debug don't remove temporary files
10998 --recheck update $as_me by reconfiguring in the same conditions
10999 --file=FILE[:TEMPLATE]
11000 instantiate the configuration file FILE
11001 --header=FILE[:TEMPLATE]
11002 instantiate the configuration header FILE
11003
11004Configuration files:
11005$config_files
11006
11007Configuration headers:
11008$config_headers
11009
11010Configuration commands:
11011$config_commands
11012
11013Report bugs to <bug-autoconf@gnu.org>."
11014_ACEOF
11015
11016cat >>$CONFIG_STATUS <<_ACEOF
11017ac_cs_version="\\
11018config.status
11019configured by $0, generated by GNU Autoconf 2.59,
11020 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11021
11022Copyright (C) 2003 Free Software Foundation, Inc.
11023This config.status script is free software; the Free Software Foundation
11024gives unlimited permission to copy, distribute and modify it."
11025srcdir=$srcdir
11026INSTALL="$INSTALL"
11027_ACEOF
11028
11029cat >>$CONFIG_STATUS <<\_ACEOF
11030# If no file are specified by the user, then we need to provide default
11031# value. By we need to know if files were specified by the user.
11032ac_need_defaults=:
11033while test $# != 0
11034do
11035 case $1 in
11036 --*=*)
11037 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11038 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11039 ac_shift=:
11040 ;;
11041 -*)
11042 ac_option=$1
11043 ac_optarg=$2
11044 ac_shift=shift
11045 ;;
11046 *) # This is not an option, so the user has probably given explicit
11047 # arguments.
11048 ac_option=$1
11049 ac_need_defaults=false;;
11050 esac
11051
11052 case $ac_option in
11053 # Handling of the options.
11054_ACEOF
11055cat >>$CONFIG_STATUS <<\_ACEOF
11056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11057 ac_cs_recheck=: ;;
11058 --version | --vers* | -V )
11059 echo "$ac_cs_version"; exit 0 ;;
11060 --he | --h)
11061 # Conflict between --help and --header
11062 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11063Try \`$0 --help' for more information." >&5
11064echo "$as_me: error: ambiguous option: $1
11065Try \`$0 --help' for more information." >&2;}
11066 { (exit 1); exit 1; }; };;
11067 --help | --hel | -h )
11068 echo "$ac_cs_usage"; exit 0 ;;
11069 --debug | --d* | -d )
11070 debug=: ;;
11071 --file | --fil | --fi | --f )
11072 $ac_shift
11073 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11074 ac_need_defaults=false;;
11075 --header | --heade | --head | --hea )
11076 $ac_shift
11077 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11078 ac_need_defaults=false;;
11079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11081 ac_cs_silent=: ;;
11082
11083 # This is an error.
11084 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11085Try \`$0 --help' for more information." >&5
11086echo "$as_me: error: unrecognized option: $1
11087Try \`$0 --help' for more information." >&2;}
11088 { (exit 1); exit 1; }; } ;;
11089
11090 *) ac_config_targets="$ac_config_targets $1" ;;
11091
11092 esac
11093 shift
11094done
11095
11096ac_configure_extra_args=
11097
11098if $ac_cs_silent; then
11099 exec 6>/dev/null
11100 ac_configure_extra_args="$ac_configure_extra_args --silent"
11101fi
11102
11103_ACEOF
11104cat >>$CONFIG_STATUS <<_ACEOF
11105if \$ac_cs_recheck; then
11106 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11107 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11108fi
11109
11110_ACEOF
11111
11112cat >>$CONFIG_STATUS <<_ACEOF
d15b04bd 11113#
42ecbf5e 11114# INIT-COMMANDS section.
d15b04bd 11115#
e5a52504 11116
42ecbf5e
DJ
11117AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11118
11119_ACEOF
11120
11121
11122
11123cat >>$CONFIG_STATUS <<\_ACEOF
11124for ac_config_target in $ac_config_targets
252b5132 11125do
42ecbf5e
DJ
11126 case "$ac_config_target" in
11127 # Handling of arguments.
11128 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11129 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11130 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11131 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11132 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11133 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11134 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11135echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11136 { (exit 1); exit 1; }; };;
d15b04bd 11137 esac
252b5132
RH
11138done
11139
42ecbf5e
DJ
11140# If the user did not use the arguments to specify the items to instantiate,
11141# then the envvar interface is used. Set only those that are not.
11142# We use the long form for the default assignment because of an extremely
11143# bizarre bug on SunOS 4.1.3.
11144if $ac_need_defaults; then
11145 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11146 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11147 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11148fi
11149
11150# Have a temporary directory for convenience. Make it in the build tree
11151# simply because there is no reason to put it here, and in addition,
11152# creating and moving files from /tmp can sometimes cause problems.
11153# Create a temporary directory, and hook for its removal unless debugging.
11154$debug ||
11155{
11156 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11157 trap '{ (exit 1); exit 1; }' 1 2 13 15
11158}
252b5132 11159
42ecbf5e 11160# Create a (secure) tmp directory for tmp files.
e5a52504 11161
42ecbf5e
DJ
11162{
11163 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11164 test -n "$tmp" && test -d "$tmp"
11165} ||
11166{
11167 tmp=./confstat$$-$RANDOM
11168 (umask 077 && mkdir $tmp)
11169} ||
11170{
11171 echo "$me: cannot create a temporary directory in ." >&2
11172 { (exit 1); exit 1; }
11173}
11174
11175_ACEOF
11176
11177cat >>$CONFIG_STATUS <<_ACEOF
11178
11179#
11180# CONFIG_FILES section.
11181#
e5a52504 11182
42ecbf5e
DJ
11183# No need to generate the scripts if there are no CONFIG_FILES.
11184# This happens for instance when ./config.status config.h
11185if test -n "\$CONFIG_FILES"; then
11186 # Protect against being on the right side of a sed subst in config.status.
11187 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11188 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11189s,@SHELL@,$SHELL,;t t
11190s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11191s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11192s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11193s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11194s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11195s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11196s,@exec_prefix@,$exec_prefix,;t t
11197s,@prefix@,$prefix,;t t
11198s,@program_transform_name@,$program_transform_name,;t t
11199s,@bindir@,$bindir,;t t
11200s,@sbindir@,$sbindir,;t t
11201s,@libexecdir@,$libexecdir,;t t
11202s,@datadir@,$datadir,;t t
11203s,@sysconfdir@,$sysconfdir,;t t
11204s,@sharedstatedir@,$sharedstatedir,;t t
11205s,@localstatedir@,$localstatedir,;t t
11206s,@libdir@,$libdir,;t t
11207s,@includedir@,$includedir,;t t
11208s,@oldincludedir@,$oldincludedir,;t t
11209s,@infodir@,$infodir,;t t
11210s,@mandir@,$mandir,;t t
11211s,@build_alias@,$build_alias,;t t
11212s,@host_alias@,$host_alias,;t t
11213s,@target_alias@,$target_alias,;t t
11214s,@DEFS@,$DEFS,;t t
11215s,@ECHO_C@,$ECHO_C,;t t
11216s,@ECHO_N@,$ECHO_N,;t t
11217s,@ECHO_T@,$ECHO_T,;t t
11218s,@LIBS@,$LIBS,;t t
11219s,@build@,$build,;t t
11220s,@build_cpu@,$build_cpu,;t t
11221s,@build_vendor@,$build_vendor,;t t
11222s,@build_os@,$build_os,;t t
11223s,@host@,$host,;t t
11224s,@host_cpu@,$host_cpu,;t t
11225s,@host_vendor@,$host_vendor,;t t
11226s,@host_os@,$host_os,;t t
11227s,@target@,$target,;t t
11228s,@target_cpu@,$target_cpu,;t t
11229s,@target_vendor@,$target_vendor,;t t
11230s,@target_os@,$target_os,;t t
11231s,@CC@,$CC,;t t
11232s,@CFLAGS@,$CFLAGS,;t t
11233s,@LDFLAGS@,$LDFLAGS,;t t
11234s,@CPPFLAGS@,$CPPFLAGS,;t t
11235s,@ac_ct_CC@,$ac_ct_CC,;t t
11236s,@EXEEXT@,$EXEEXT,;t t
11237s,@OBJEXT@,$OBJEXT,;t t
11238s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11239s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11240s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11241s,@CYGPATH_W@,$CYGPATH_W,;t t
11242s,@PACKAGE@,$PACKAGE,;t t
11243s,@VERSION@,$VERSION,;t t
11244s,@ACLOCAL@,$ACLOCAL,;t t
11245s,@AUTOCONF@,$AUTOCONF,;t t
11246s,@AUTOMAKE@,$AUTOMAKE,;t t
11247s,@AUTOHEADER@,$AUTOHEADER,;t t
11248s,@MAKEINFO@,$MAKEINFO,;t t
11249s,@install_sh@,$install_sh,;t t
11250s,@STRIP@,$STRIP,;t t
11251s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11252s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11253s,@mkdir_p@,$mkdir_p,;t t
11254s,@AWK@,$AWK,;t t
11255s,@SET_MAKE@,$SET_MAKE,;t t
11256s,@am__leading_dot@,$am__leading_dot,;t t
11257s,@AMTAR@,$AMTAR,;t t
11258s,@am__tar@,$am__tar,;t t
11259s,@am__untar@,$am__untar,;t t
11260s,@DEPDIR@,$DEPDIR,;t t
11261s,@am__include@,$am__include,;t t
11262s,@am__quote@,$am__quote,;t t
11263s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11264s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11265s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11266s,@CCDEPMODE@,$CCDEPMODE,;t t
11267s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11268s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11269s,@LN_S@,$LN_S,;t t
11270s,@RANLIB@,$RANLIB,;t t
11271s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11272s,@LIBTOOL@,$LIBTOOL,;t t
11273s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11274s,@NO_WERROR@,$NO_WERROR,;t t
11275s,@YACC@,$YACC,;t t
11276s,@LEX@,$LEX,;t t
11277s,@LEXLIB@,$LEXLIB,;t t
11278s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11279s,@CPP@,$CPP,;t t
11280s,@EGREP@,$EGREP,;t t
11281s,@ALLOCA@,$ALLOCA,;t t
11282s,@USE_NLS@,$USE_NLS,;t t
11283s,@MSGFMT@,$MSGFMT,;t t
11284s,@GMSGFMT@,$GMSGFMT,;t t
11285s,@XGETTEXT@,$XGETTEXT,;t t
11286s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11287s,@CATALOGS@,$CATALOGS,;t t
11288s,@CATOBJEXT@,$CATOBJEXT,;t t
11289s,@DATADIRNAME@,$DATADIRNAME,;t t
11290s,@GMOFILES@,$GMOFILES,;t t
11291s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11292s,@INTLDEPS@,$INTLDEPS,;t t
11293s,@INTLLIBS@,$INTLLIBS,;t t
11294s,@INTLOBJS@,$INTLOBJS,;t t
11295s,@POFILES@,$POFILES,;t t
11296s,@POSUB@,$POSUB,;t t
11297s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
11298s,@GT_NO@,$GT_NO,;t t
11299s,@GT_YES@,$GT_YES,;t t
11300s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11301s,@l@,$l,;t t
11302s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11303s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11304s,@MAINT@,$MAINT,;t t
11305s,@HDEFINES@,$HDEFINES,;t t
11306s,@AR@,$AR,;t t
11307s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
11308s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
11309s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
11310s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
11311s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
11312s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
11313s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
11314s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
11315s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
11316s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
11317s,@BUILD_MISC@,$BUILD_MISC,;t t
11318s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
11319s,@EMULATION@,$EMULATION,;t t
11320s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
11321s,@LIBOBJS@,$LIBOBJS,;t t
11322s,@LTLIBOBJS@,$LTLIBOBJS,;t t
d15b04bd 11323CEOF
252b5132 11324
42ecbf5e
DJ
11325_ACEOF
11326
11327 cat >>$CONFIG_STATUS <<\_ACEOF
11328 # Split the substitutions into bite-sized pieces for seds with
11329 # small command number limits, like on Digital OSF/1 and HP-UX.
11330 ac_max_sed_lines=48
11331 ac_sed_frag=1 # Number of current file.
11332 ac_beg=1 # First line for current file.
11333 ac_end=$ac_max_sed_lines # Line after last line for current file.
11334 ac_more_lines=:
11335 ac_sed_cmds=
11336 while $ac_more_lines; do
11337 if test $ac_beg -gt 1; then
11338 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11339 else
11340 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11341 fi
11342 if test ! -s $tmp/subs.frag; then
11343 ac_more_lines=false
d15b04bd 11344 else
42ecbf5e
DJ
11345 # The purpose of the label and of the branching condition is to
11346 # speed up the sed processing (if there are no `@' at all, there
11347 # is no need to browse any of the substitutions).
11348 # These are the two extra sed commands mentioned above.
11349 (echo ':t
11350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11351 if test -z "$ac_sed_cmds"; then
11352 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11353 else
11354 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11355 fi
11356 ac_sed_frag=`expr $ac_sed_frag + 1`
11357 ac_beg=$ac_end
11358 ac_end=`expr $ac_end + $ac_max_sed_lines`
d15b04bd 11359 fi
42ecbf5e
DJ
11360 done
11361 if test -z "$ac_sed_cmds"; then
11362 ac_sed_cmds=cat
252b5132 11363 fi
42ecbf5e 11364fi # test -n "$CONFIG_FILES"
252b5132 11365
42ecbf5e
DJ
11366_ACEOF
11367cat >>$CONFIG_STATUS <<\_ACEOF
11368for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
e5a52504 11369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
11370 case $ac_file in
11371 - | *:- | *:-:* ) # input from stdin
11372 cat >$tmp/stdin
11373 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11374 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11375 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11376 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11377 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11378 esac
11379
42ecbf5e
DJ
11380 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11381 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11382$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11383 X"$ac_file" : 'X\(//\)[^/]' \| \
11384 X"$ac_file" : 'X\(//\)$' \| \
11385 X"$ac_file" : 'X\(/\)' \| \
11386 . : '\(.\)' 2>/dev/null ||
11387echo X"$ac_file" |
11388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11390 /^X\(\/\/\)$/{ s//\1/; q; }
11391 /^X\(\/\).*/{ s//\1/; q; }
11392 s/.*/./; q'`
11393 { if $as_mkdir_p; then
11394 mkdir -p "$ac_dir"
d15b04bd 11395 else
42ecbf5e
DJ
11396 as_dir="$ac_dir"
11397 as_dirs=
11398 while test ! -d "$as_dir"; do
11399 as_dirs="$as_dir $as_dirs"
11400 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11401$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11402 X"$as_dir" : 'X\(//\)[^/]' \| \
11403 X"$as_dir" : 'X\(//\)$' \| \
11404 X"$as_dir" : 'X\(/\)' \| \
11405 . : '\(.\)' 2>/dev/null ||
11406echo X"$as_dir" |
11407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11408 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11409 /^X\(\/\/\)$/{ s//\1/; q; }
11410 /^X\(\/\).*/{ s//\1/; q; }
11411 s/.*/./; q'`
11412 done
11413 test ! -n "$as_dirs" || mkdir $as_dirs
11414 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11415echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11416 { (exit 1); exit 1; }; }; }
11417
11418 ac_builddir=.
e5a52504 11419
42ecbf5e
DJ
11420if test "$ac_dir" != .; then
11421 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11422 # A "../" for each directory in $ac_dir_suffix.
11423 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11424else
11425 ac_dir_suffix= ac_top_builddir=
11426fi
11427
11428case $srcdir in
11429 .) # No --srcdir option. We are building in place.
11430 ac_srcdir=.
11431 if test -z "$ac_top_builddir"; then
11432 ac_top_srcdir=.
11433 else
11434 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11435 fi ;;
11436 [\\/]* | ?:[\\/]* ) # Absolute path.
11437 ac_srcdir=$srcdir$ac_dir_suffix;
11438 ac_top_srcdir=$srcdir ;;
e5a52504 11439 *) # Relative path.
42ecbf5e
DJ
11440 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11441 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11442esac
252b5132 11443
42ecbf5e
DJ
11444# Do not use `cd foo && pwd` to compute absolute paths, because
11445# the directories may not exist.
11446case `pwd` in
11447.) ac_abs_builddir="$ac_dir";;
11448*)
11449 case "$ac_dir" in
11450 .) ac_abs_builddir=`pwd`;;
11451 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11452 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11453 esac;;
11454esac
11455case $ac_abs_builddir in
11456.) ac_abs_top_builddir=${ac_top_builddir}.;;
11457*)
11458 case ${ac_top_builddir}. in
11459 .) ac_abs_top_builddir=$ac_abs_builddir;;
11460 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11461 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11462 esac;;
11463esac
11464case $ac_abs_builddir in
11465.) ac_abs_srcdir=$ac_srcdir;;
11466*)
11467 case $ac_srcdir in
11468 .) ac_abs_srcdir=$ac_abs_builddir;;
11469 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11470 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11471 esac;;
11472esac
11473case $ac_abs_builddir in
11474.) ac_abs_top_srcdir=$ac_top_srcdir;;
11475*)
11476 case $ac_top_srcdir in
11477 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11478 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11479 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11480 esac;;
11481esac
e5a52504 11482
42ecbf5e
DJ
11483
11484 case $INSTALL in
11485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11486 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d15b04bd 11487 esac
e5a52504 11488
b7d4af3a
JW
11489 if test x"$ac_file" != x-; then
11490 { echo "$as_me:$LINENO: creating $ac_file" >&5
11491echo "$as_me: creating $ac_file" >&6;}
11492 rm -f "$ac_file"
11493 fi
42ecbf5e
DJ
11494 # Let's still pretend it is `configure' which instantiates (i.e., don't
11495 # use $as_me), people would be surprised to read:
11496 # /* config.h. Generated by config.status. */
11497 if test x"$ac_file" = x-; then
11498 configure_input=
11499 else
11500 configure_input="$ac_file. "
11501 fi
11502 configure_input=$configure_input"Generated from `echo $ac_file_in |
11503 sed 's,.*/,,'` by configure."
11504
11505 # First look for the input files in the build tree, otherwise in the
11506 # src tree.
11507 ac_file_inputs=`IFS=:
11508 for f in $ac_file_in; do
11509 case $f in
11510 -) echo $tmp/stdin ;;
11511 [\\/$]*)
11512 # Absolute (can't be DOS-style, as IFS=:)
11513 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11514echo "$as_me: error: cannot find input file: $f" >&2;}
11515 { (exit 1); exit 1; }; }
11516 echo "$f";;
11517 *) # Relative
11518 if test -f "$f"; then
11519 # Build tree
11520 echo "$f"
11521 elif test -f "$srcdir/$f"; then
11522 # Source tree
11523 echo "$srcdir/$f"
11524 else
11525 # /dev/null tree
11526 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11527echo "$as_me: error: cannot find input file: $f" >&2;}
11528 { (exit 1); exit 1; }; }
11529 fi;;
11530 esac
11531 done` || { (exit 1); exit 1; }
42ecbf5e
DJ
11532_ACEOF
11533cat >>$CONFIG_STATUS <<_ACEOF
11534 sed "$ac_vpsub
11535$extrasub
11536_ACEOF
11537cat >>$CONFIG_STATUS <<\_ACEOF
11538:t
11539/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11540s,@configure_input@,$configure_input,;t t
11541s,@srcdir@,$ac_srcdir,;t t
11542s,@abs_srcdir@,$ac_abs_srcdir,;t t
11543s,@top_srcdir@,$ac_top_srcdir,;t t
11544s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11545s,@builddir@,$ac_builddir,;t t
11546s,@abs_builddir@,$ac_abs_builddir,;t t
11547s,@top_builddir@,$ac_top_builddir,;t t
11548s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11549s,@INSTALL@,$ac_INSTALL,;t t
11550" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11551 rm -f $tmp/stdin
11552 if test x"$ac_file" != x-; then
11553 mv $tmp/out $ac_file
11554 else
11555 cat $tmp/out
11556 rm -f $tmp/out
11557 fi
11558
11559done
11560_ACEOF
11561cat >>$CONFIG_STATUS <<\_ACEOF
11562
11563#
11564# CONFIG_HEADER section.
11565#
252b5132
RH
11566
11567# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11568# NAME is the cpp macro being defined and VALUE is the value it is being given.
11569#
11570# ac_d sets the value in "#define NAME VALUE" lines.
42ecbf5e
DJ
11571ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11572ac_dB='[ ].*$,\1#\2'
11573ac_dC=' '
11574ac_dD=',;t'
11575# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11576ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11577ac_uB='$,\1#\2define\3'
252b5132 11578ac_uC=' '
42ecbf5e
DJ
11579ac_uD=',;t'
11580
11581for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 11582 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42ecbf5e
DJ
11583 case $ac_file in
11584 - | *:- | *:-:* ) # input from stdin
11585 cat >$tmp/stdin
11586 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11587 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11588 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11589 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11590 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
11591 esac
11592
42ecbf5e
DJ
11593 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11594echo "$as_me: creating $ac_file" >&6;}
11595
11596 # First look for the input files in the build tree, otherwise in the
11597 # src tree.
11598 ac_file_inputs=`IFS=:
11599 for f in $ac_file_in; do
11600 case $f in
11601 -) echo $tmp/stdin ;;
11602 [\\/$]*)
11603 # Absolute (can't be DOS-style, as IFS=:)
11604 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11605echo "$as_me: error: cannot find input file: $f" >&2;}
11606 { (exit 1); exit 1; }; }
11607 # Do quote $f, to prevent DOS paths from being IFS'd.
11608 echo "$f";;
11609 *) # Relative
11610 if test -f "$f"; then
11611 # Build tree
11612 echo "$f"
11613 elif test -f "$srcdir/$f"; then
11614 # Source tree
11615 echo "$srcdir/$f"
11616 else
11617 # /dev/null tree
11618 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11619echo "$as_me: error: cannot find input file: $f" >&2;}
11620 { (exit 1); exit 1; }; }
11621 fi;;
11622 esac
11623 done` || { (exit 1); exit 1; }
11624 # Remove the trailing spaces.
11625 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11626
11627_ACEOF
11628
11629# Transform confdefs.h into two sed scripts, `conftest.defines' and
11630# `conftest.undefs', that substitutes the proper values into
11631# config.h.in to produce config.h. The first handles `#define'
11632# templates, and the second `#undef' templates.
11633# And first: Protect against being on the right side of a sed subst in
11634# config.status. Protect against being in an unquoted here document
11635# in config.status.
11636rm -f conftest.defines conftest.undefs
11637# Using a here document instead of a string reduces the quoting nightmare.
11638# Putting comments in sed scripts is not portable.
11639#
11640# `end' is used to avoid that the second main sed command (meant for
11641# 0-ary CPP macros) applies to n-ary macro definitions.
11642# See the Autoconf documentation for `clear'.
11643cat >confdef2sed.sed <<\_ACEOF
11644s/[\\&,]/\\&/g
11645s,[\\$`],\\&,g
11646t clear
11647: clear
11648s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11649t end
11650s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11651: end
11652_ACEOF
11653# If some macros were called several times there might be several times
11654# the same #defines, which is useless. Nevertheless, we may not want to
11655# sort them, since we want the *last* AC-DEFINE to be honored.
11656uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11657sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11658rm -f confdef2sed.sed
252b5132
RH
11659
11660# This sed command replaces #undef with comments. This is necessary, for
11661# example, in the case of _POSIX_SOURCE, which is predefined and required
11662# on some systems where configure will not decide to define it.
42ecbf5e
DJ
11663cat >>conftest.undefs <<\_ACEOF
11664s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11665_ACEOF
11666
11667# Break up conftest.defines because some shells have a limit on the size
11668# of here documents, and old seds have small limits too (100 cmds).
11669echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11670echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11671echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11672echo ' :' >>$CONFIG_STATUS
11673rm -f conftest.tail
11674while grep . conftest.defines >/dev/null
11675do
11676 # Write a limited-size here document to $tmp/defines.sed.
11677 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11678 # Speed up: don't consider the non `#define' lines.
11679 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11680 # Work around the forget-to-reset-the-flag bug.
11681 echo 't clr' >>$CONFIG_STATUS
11682 echo ': clr' >>$CONFIG_STATUS
11683 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11684 echo 'CEOF
11685 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11686 rm -f $tmp/in
11687 mv $tmp/out $tmp/in
11688' >>$CONFIG_STATUS
11689 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11690 rm -f conftest.defines
11691 mv conftest.tail conftest.defines
11692done
11693rm -f conftest.defines
11694echo ' fi # grep' >>$CONFIG_STATUS
11695echo >>$CONFIG_STATUS
252b5132 11696
42ecbf5e
DJ
11697# Break up conftest.undefs because some shells have a limit on the size
11698# of here documents, and old seds have small limits too (100 cmds).
11699echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 11700rm -f conftest.tail
42ecbf5e 11701while grep . conftest.undefs >/dev/null
252b5132 11702do
42ecbf5e
DJ
11703 # Write a limited-size here document to $tmp/undefs.sed.
11704 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11705 # Speed up: don't consider the non `#undef'
11706 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11707 # Work around the forget-to-reset-the-flag bug.
11708 echo 't clr' >>$CONFIG_STATUS
11709 echo ': clr' >>$CONFIG_STATUS
11710 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 11711 echo 'CEOF
42ecbf5e
DJ
11712 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11713 rm -f $tmp/in
11714 mv $tmp/out $tmp/in
11715' >>$CONFIG_STATUS
11716 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11717 rm -f conftest.undefs
11718 mv conftest.tail conftest.undefs
252b5132 11719done
42ecbf5e
DJ
11720rm -f conftest.undefs
11721
11722cat >>$CONFIG_STATUS <<\_ACEOF
11723 # Let's still pretend it is `configure' which instantiates (i.e., don't
11724 # use $as_me), people would be surprised to read:
11725 # /* config.h. Generated by config.status. */
11726 if test x"$ac_file" = x-; then
11727 echo "/* Generated by configure. */" >$tmp/config.h
11728 else
11729 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11730 fi
11731 cat $tmp/in >>$tmp/config.h
11732 rm -f $tmp/in
11733 if test x"$ac_file" != x-; then
11734 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11735 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11736echo "$as_me: $ac_file is unchanged" >&6;}
11737 else
11738 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11739$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11740 X"$ac_file" : 'X\(//\)[^/]' \| \
11741 X"$ac_file" : 'X\(//\)$' \| \
11742 X"$ac_file" : 'X\(/\)' \| \
11743 . : '\(.\)' 2>/dev/null ||
11744echo X"$ac_file" |
11745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11747 /^X\(\/\/\)$/{ s//\1/; q; }
11748 /^X\(\/\).*/{ s//\1/; q; }
11749 s/.*/./; q'`
11750 { if $as_mkdir_p; then
11751 mkdir -p "$ac_dir"
252b5132 11752 else
42ecbf5e
DJ
11753 as_dir="$ac_dir"
11754 as_dirs=
11755 while test ! -d "$as_dir"; do
11756 as_dirs="$as_dir $as_dirs"
11757 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11758$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11759 X"$as_dir" : 'X\(//\)[^/]' \| \
11760 X"$as_dir" : 'X\(//\)$' \| \
11761 X"$as_dir" : 'X\(/\)' \| \
11762 . : '\(.\)' 2>/dev/null ||
11763echo X"$as_dir" |
11764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11765 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11766 /^X\(\/\/\)$/{ s//\1/; q; }
11767 /^X\(\/\).*/{ s//\1/; q; }
11768 s/.*/./; q'`
11769 done
11770 test ! -n "$as_dirs" || mkdir $as_dirs
11771 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11772echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11773 { (exit 1); exit 1; }; }; }
11774
11775 rm -f $ac_file
11776 mv $tmp/config.h $ac_file
252b5132 11777 fi
42ecbf5e
DJ
11778 else
11779 cat $tmp/config.h
11780 rm -f $tmp/config.h
252b5132 11781 fi
42ecbf5e
DJ
11782# Compute $ac_file's index in $config_headers.
11783_am_stamp_count=1
11784for _am_header in $config_headers :; do
11785 case $_am_header in
11786 $ac_file | $ac_file:* )
11787 break ;;
11788 * )
11789 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11790 esac
11791done
11792echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11793$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11794 X$ac_file : 'X\(//\)[^/]' \| \
11795 X$ac_file : 'X\(//\)$' \| \
11796 X$ac_file : 'X\(/\)' \| \
11797 . : '\(.\)' 2>/dev/null ||
11798echo X$ac_file |
11799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11801 /^X\(\/\/\)$/{ s//\1/; q; }
11802 /^X\(\/\).*/{ s//\1/; q; }
11803 s/.*/./; q'`/stamp-h$_am_stamp_count
11804done
11805_ACEOF
11806cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 11807
42ecbf5e
DJ
11808#
11809# CONFIG_COMMANDS section.
11810#
11811for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11812 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11813 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11814 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11815$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11816 X"$ac_dest" : 'X\(//\)[^/]' \| \
11817 X"$ac_dest" : 'X\(//\)$' \| \
11818 X"$ac_dest" : 'X\(/\)' \| \
11819 . : '\(.\)' 2>/dev/null ||
11820echo X"$ac_dest" |
11821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11823 /^X\(\/\/\)$/{ s//\1/; q; }
11824 /^X\(\/\).*/{ s//\1/; q; }
11825 s/.*/./; q'`
11826 { if $as_mkdir_p; then
11827 mkdir -p "$ac_dir"
11828 else
11829 as_dir="$ac_dir"
11830 as_dirs=
11831 while test ! -d "$as_dir"; do
11832 as_dirs="$as_dir $as_dirs"
11833 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11834$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835 X"$as_dir" : 'X\(//\)[^/]' \| \
11836 X"$as_dir" : 'X\(//\)$' \| \
11837 X"$as_dir" : 'X\(/\)' \| \
11838 . : '\(.\)' 2>/dev/null ||
11839echo X"$as_dir" |
11840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11841 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11842 /^X\(\/\/\)$/{ s//\1/; q; }
11843 /^X\(\/\).*/{ s//\1/; q; }
11844 s/.*/./; q'`
11845 done
11846 test ! -n "$as_dirs" || mkdir $as_dirs
11847 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11848echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11849 { (exit 1); exit 1; }; }; }
252b5132 11850
42ecbf5e 11851 ac_builddir=.
e5a52504 11852
42ecbf5e
DJ
11853if test "$ac_dir" != .; then
11854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11855 # A "../" for each directory in $ac_dir_suffix.
11856 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11857else
11858 ac_dir_suffix= ac_top_builddir=
11859fi
11860
11861case $srcdir in
11862 .) # No --srcdir option. We are building in place.
11863 ac_srcdir=.
11864 if test -z "$ac_top_builddir"; then
11865 ac_top_srcdir=.
11866 else
11867 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11868 fi ;;
11869 [\\/]* | ?:[\\/]* ) # Absolute path.
11870 ac_srcdir=$srcdir$ac_dir_suffix;
11871 ac_top_srcdir=$srcdir ;;
11872 *) # Relative path.
11873 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11874 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11875esac
11876
11877# Do not use `cd foo && pwd` to compute absolute paths, because
11878# the directories may not exist.
11879case `pwd` in
11880.) ac_abs_builddir="$ac_dir";;
11881*)
11882 case "$ac_dir" in
11883 .) ac_abs_builddir=`pwd`;;
11884 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11885 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11886 esac;;
11887esac
11888case $ac_abs_builddir in
11889.) ac_abs_top_builddir=${ac_top_builddir}.;;
11890*)
11891 case ${ac_top_builddir}. in
11892 .) ac_abs_top_builddir=$ac_abs_builddir;;
11893 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11894 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11895 esac;;
11896esac
11897case $ac_abs_builddir in
11898.) ac_abs_srcdir=$ac_srcdir;;
11899*)
11900 case $ac_srcdir in
11901 .) ac_abs_srcdir=$ac_abs_builddir;;
11902 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11903 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11904 esac;;
11905esac
11906case $ac_abs_builddir in
11907.) ac_abs_top_srcdir=$ac_top_srcdir;;
11908*)
11909 case $ac_top_srcdir in
11910 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11911 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11912 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11913 esac;;
11914esac
e5a52504 11915
42ecbf5e
DJ
11916
11917 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11918echo "$as_me: executing $ac_dest commands" >&6;}
11919 case $ac_dest in
11920 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11921 # Strip MF so we end up with the name of the file.
11922 mf=`echo "$mf" | sed -e 's/:.*$//'`
11923 # Check whether this is an Automake generated Makefile or not.
11924 # We used to match only the files named `Makefile.in', but
11925 # some people rename them; so instead we look at the file content.
11926 # Grep'ing the first line is not enough: some people post-process
11927 # each Makefile.in and add a new line on top of each file to say so.
11928 # So let's grep whole file.
11929 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11930 dirpart=`(dirname "$mf") 2>/dev/null ||
11931$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11932 X"$mf" : 'X\(//\)[^/]' \| \
11933 X"$mf" : 'X\(//\)$' \| \
11934 X"$mf" : 'X\(/\)' \| \
11935 . : '\(.\)' 2>/dev/null ||
11936echo X"$mf" |
11937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11938 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11939 /^X\(\/\/\)$/{ s//\1/; q; }
11940 /^X\(\/\).*/{ s//\1/; q; }
11941 s/.*/./; q'`
11942 else
11943 continue
11944 fi
11945 # Extract the definition of DEPDIR, am__include, and am__quote
11946 # from the Makefile without running `make'.
11947 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11948 test -z "$DEPDIR" && continue
11949 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11950 test -z "am__include" && continue
11951 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11952 # When using ansi2knr, U may be empty or an underscore; expand it
11953 U=`sed -n 's/^U = //p' < "$mf"`
11954 # Find all dependency output files, they are included files with
11955 # $(DEPDIR) in their names. We invoke sed twice because it is the
11956 # simplest approach to changing $(DEPDIR) to its actual value in the
11957 # expansion.
11958 for file in `sed -n "
11959 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11960 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11961 # Make sure the directory exists.
11962 test -f "$dirpart/$file" && continue
11963 fdir=`(dirname "$file") 2>/dev/null ||
11964$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11965 X"$file" : 'X\(//\)[^/]' \| \
11966 X"$file" : 'X\(//\)$' \| \
11967 X"$file" : 'X\(/\)' \| \
11968 . : '\(.\)' 2>/dev/null ||
11969echo X"$file" |
11970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11971 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11972 /^X\(\/\/\)$/{ s//\1/; q; }
11973 /^X\(\/\).*/{ s//\1/; q; }
11974 s/.*/./; q'`
11975 { if $as_mkdir_p; then
11976 mkdir -p $dirpart/$fdir
11977 else
11978 as_dir=$dirpart/$fdir
11979 as_dirs=
11980 while test ! -d "$as_dir"; do
11981 as_dirs="$as_dir $as_dirs"
11982 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11983$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11984 X"$as_dir" : 'X\(//\)[^/]' \| \
11985 X"$as_dir" : 'X\(//\)$' \| \
11986 X"$as_dir" : 'X\(/\)' \| \
11987 . : '\(.\)' 2>/dev/null ||
11988echo X"$as_dir" |
11989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11990 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11991 /^X\(\/\/\)$/{ s//\1/; q; }
11992 /^X\(\/\).*/{ s//\1/; q; }
11993 s/.*/./; q'`
11994 done
11995 test ! -n "$as_dirs" || mkdir $as_dirs
11996 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11997echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11998 { (exit 1); exit 1; }; }; }
11999
12000 # echo "creating $dirpart/$file"
12001 echo '# dummy' > "$dirpart/$file"
12002 done
12003done
12004 ;;
12005 default )
252b5132
RH
12006case "x$CONFIG_FILES" in
12007*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
12008esac
42ecbf5e
DJ
12009 ;;
12010 esac
12011done
12012_ACEOF
e5a52504 12013
42ecbf5e
DJ
12014cat >>$CONFIG_STATUS <<\_ACEOF
12015
12016{ (exit 0); exit 0; }
12017_ACEOF
252b5132 12018chmod +x $CONFIG_STATUS
42ecbf5e
DJ
12019ac_clean_files=$ac_clean_files_save
12020
12021
12022# configure is writing to config.log, and then calls config.status.
12023# config.status does its own redirection, appending to config.log.
12024# Unfortunately, on DOS this fails, as config.log is still kept open
12025# by configure, so config.status won't be able to write to it; its
12026# output is simply discarded. So we exec the FD to /dev/null,
12027# effectively closing config.log, so it can be properly (re)opened and
12028# appended to by config.status. When coming back to configure, we
12029# need to make the FD available again.
12030if test "$no_create" != yes; then
12031 ac_cs_success=:
12032 ac_config_status_args=
12033 test "$silent" = yes &&
12034 ac_config_status_args="$ac_config_status_args --quiet"
12035 exec 5>/dev/null
12036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12037 exec 5>>config.log
12038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12039 # would make configure fail if this is the last instruction.
12040 $ac_cs_success || { (exit 1); exit 1; }
12041fi
252b5132 12042