* ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
[deliverable/binutils-gdb.git] / binutils / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
e5a52504 3# Generated by GNU Autoconf 2.59.
252b5132 4#
e5a52504 5# Copyright (C) 2003 Free Software Foundation, Inc.
252b5132
RH
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
e5a52504
MM
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 248
e5a52504
MM
249exec 6>&1
250
251#
252# Initializations.
253#
252b5132 254ac_default_prefix=/usr/local
e5a52504
MM
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LN_S RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL WARN_CFLAGS 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.
e5a52504
MM
316ac_init_help=
317ac_init_version=false
252b5132
RH
318# The variables have the same names as the options, with
319# dashes changed to underlines.
e5a52504 320cache_file=/dev/null
252b5132 321exec_prefix=NONE
252b5132 322no_create=
252b5132
RH
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
252b5132
RH
331verbose=
332x_includes=NONE
333x_libraries=NONE
e5a52504
MM
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
252b5132
RH
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
252b5132
RH
353ac_prev=
354for ac_option
355do
252b5132
RH
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
e5a52504 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
252b5132
RH
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
e5a52504 367 case $ac_option in
252b5132
RH
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e5a52504 372 bindir=$ac_optarg ;;
252b5132
RH
373
374 -build | --build | --buil | --bui | --bu)
e5a52504 375 ac_prev=build_alias ;;
252b5132 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e5a52504 377 build_alias=$ac_optarg ;;
252b5132
RH
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e5a52504
MM
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
252b5132
RH
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
e5a52504 393 datadir=$ac_optarg ;;
252b5132
RH
394
395 -disable-* | --disable-*)
e5a52504 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 397 # Reject names that are not valid shell variable names.
e5a52504
MM
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
252b5132
RH
403
404 -enable-* | --enable-*)
e5a52504 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 406 # Reject names that are not valid shell variable names.
e5a52504
MM
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
413 *) ac_optarg=yes ;;
414 esac
e5a52504 415 eval "enable_$ac_feature='$ac_optarg'" ;;
252b5132
RH
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
e5a52504 424 exec_prefix=$ac_optarg ;;
252b5132
RH
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
e5a52504
MM
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
252b5132
RH
436
437 -host | --host | --hos | --ho)
e5a52504 438 ac_prev=host_alias ;;
252b5132 439 -host=* | --host=* | --hos=* | --ho=*)
e5a52504 440 host_alias=$ac_optarg ;;
252b5132
RH
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
e5a52504 447 includedir=$ac_optarg ;;
252b5132
RH
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e5a52504 452 infodir=$ac_optarg ;;
252b5132
RH
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e5a52504 457 libdir=$ac_optarg ;;
252b5132
RH
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
e5a52504 464 libexecdir=$ac_optarg ;;
252b5132
RH
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e5a52504 473 localstatedir=$ac_optarg ;;
252b5132
RH
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e5a52504 478 mandir=$ac_optarg ;;
252b5132
RH
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e5a52504 485 | --no-cr | --no-c | -n)
252b5132
RH
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e5a52504 499 oldincludedir=$ac_optarg ;;
252b5132
RH
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e5a52504 504 prefix=$ac_optarg ;;
252b5132
RH
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e5a52504 511 program_prefix=$ac_optarg ;;
252b5132
RH
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e5a52504 518 program_suffix=$ac_optarg ;;
252b5132
RH
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
e5a52504 535 program_transform_name=$ac_optarg ;;
252b5132
RH
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
e5a52504 545 sbindir=$ac_optarg ;;
252b5132
RH
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
e5a52504 556 sharedstatedir=$ac_optarg ;;
252b5132
RH
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
e5a52504 561 site=$ac_optarg ;;
252b5132
RH
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e5a52504 566 srcdir=$ac_optarg ;;
252b5132
RH
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e5a52504 573 sysconfdir=$ac_optarg ;;
252b5132
RH
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
e5a52504 576 ac_prev=target_alias ;;
252b5132 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e5a52504 578 target_alias=$ac_optarg ;;
252b5132
RH
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
e5a52504
MM
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
252b5132
RH
585
586 -with-* | --with-*)
e5a52504 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 588 # Reject names that are not valid shell variable names.
e5a52504
MM
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
252b5132 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
e5a52504
MM
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252b5132
RH
595 *) ac_optarg=yes ;;
596 esac
e5a52504 597 eval "with_$ac_package='$ac_optarg'" ;;
252b5132
RH
598
599 -without-* | --without-*)
e5a52504 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 601 # Reject names that are not valid shell variable names.
e5a52504
MM
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
252b5132
RH
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e5a52504 617 x_includes=$ac_optarg ;;
252b5132
RH
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e5a52504 624 x_libraries=$ac_optarg ;;
252b5132 625
e5a52504
MM
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
252b5132
RH
629 ;;
630
e5a52504
MM
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
252b5132 641 *)
e5a52504
MM
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
252b5132
RH
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
e5a52504
MM
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
252b5132
RH
656fi
657
e5a52504
MM
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
252b5132 668
e5a52504
MM
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
252b5132 672do
e5a52504
MM
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
252b5132
RH
678 esac
679done
680
e5a52504
MM
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
252b5132 698
e5a52504
MM
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
252b5132 703
252b5132
RH
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
e5a52504
MM
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
252b5132
RH
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
e5a52504
MM
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
252b5132 732 else
e5a52504
MM
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
252b5132
RH
735 fi
736fi
e5a52504
MM
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
252b5132 773
e5a52504
MM
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
252b5132 782
e5a52504 783Usage: $0 [OPTION]... [VAR=VALUE]...
252b5132 784
e5a52504
MM
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
252b5132 787
e5a52504 788Defaults for the options are specified in brackets.
ac48eca1 789
e5a52504
MM
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
ac48eca1 809
e5a52504
MM
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
ac48eca1 814
e5a52504 815For better control, use the options below.
ac48eca1 816
e5a52504
MM
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
ac48eca1 831
e5a52504 832 cat <<\_ACEOF
252b5132 833
e5a52504
MM
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
252b5132 838
e5a52504
MM
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
252b5132 844fi
252b5132 845
e5a52504 846if test -n "$ac_init_help"; then
252b5132 847
e5a52504 848 cat <<\_ACEOF
252b5132 849
e5a52504
MM
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-shared=PKGS build shared libraries default=yes
854 --enable-static=PKGS build static libraries default=yes
855 --enable-fast-install=PKGS optimize for fast installation default=yes
856 --disable-libtool-lock avoid locking (might break parallel builds)
857 --enable-targets alternative target configurations
858 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
859 --enable-build-warnings Enable build-time compiler warnings if gcc is used
860 --disable-nls do not use Native Language Support
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
863
864Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-gnu-ld assume the C compiler uses GNU ld default=no
868 --with-pic try to use only PIC/non-PIC objects default=use both
869 --with-included-gettext use the GNU gettext library included here
252b5132 870
e5a52504
MM
871Some influential environment variables:
872 CC C compiler command
873 CFLAGS C compiler flags
874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
875 nonstandard directory <lib dir>
876 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
877 headers in a nonstandard directory <include dir>
878 CPP C preprocessor
252b5132 879
e5a52504
MM
880Use these variables to override the choices made by `configure' or to help
881it to find libraries and programs with nonstandard names/locations.
882
883_ACEOF
252b5132
RH
884fi
885
e5a52504
MM
886if test "$ac_init_help" = "recursive"; then
887 # If there are subdirs, report their specific --help.
888 ac_popdir=`pwd`
889 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
890 test -d $ac_dir || continue
891 ac_builddir=.
252b5132 892
e5a52504
MM
893if test "$ac_dir" != .; then
894 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
895 # A "../" for each directory in $ac_dir_suffix.
896 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
897else
898 ac_dir_suffix= ac_top_builddir=
899fi
900
901case $srcdir in
902 .) # No --srcdir option. We are building in place.
903 ac_srcdir=.
904 if test -z "$ac_top_builddir"; then
905 ac_top_srcdir=.
906 else
907 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
252b5132 908 fi ;;
e5a52504
MM
909 [\\/]* | ?:[\\/]* ) # Absolute path.
910 ac_srcdir=$srcdir$ac_dir_suffix;
911 ac_top_srcdir=$srcdir ;;
912 *) # Relative path.
913 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
914 ac_top_srcdir=$ac_top_builddir$srcdir ;;
252b5132
RH
915esac
916
e5a52504
MM
917# Do not use `cd foo && pwd` to compute absolute paths, because
918# the directories may not exist.
919case `pwd` in
920.) ac_abs_builddir="$ac_dir";;
921*)
922 case "$ac_dir" in
923 .) ac_abs_builddir=`pwd`;;
924 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
925 *) ac_abs_builddir=`pwd`/"$ac_dir";;
926 esac;;
252b5132 927esac
e5a52504
MM
928case $ac_abs_builddir in
929.) ac_abs_top_builddir=${ac_top_builddir}.;;
930*)
931 case ${ac_top_builddir}. in
932 .) ac_abs_top_builddir=$ac_abs_builddir;;
933 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
935 esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_srcdir=$ac_srcdir;;
939*)
940 case $ac_srcdir in
941 .) ac_abs_srcdir=$ac_abs_builddir;;
942 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
943 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
944 esac;;
945esac
946case $ac_abs_builddir in
947.) ac_abs_top_srcdir=$ac_top_srcdir;;
948*)
949 case $ac_top_srcdir in
950 .) ac_abs_top_srcdir=$ac_abs_builddir;;
951 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
953 esac;;
252b5132
RH
954esac
955
e5a52504
MM
956 cd $ac_dir
957 # Check for guested configure; otherwise get Cygnus style configure.
958 if test -f $ac_srcdir/configure.gnu; then
959 echo
960 $SHELL $ac_srcdir/configure.gnu --help=recursive
961 elif test -f $ac_srcdir/configure; then
962 echo
963 $SHELL $ac_srcdir/configure --help=recursive
964 elif test -f $ac_srcdir/configure.ac ||
965 test -f $ac_srcdir/configure.in; then
966 echo
967 $ac_configure --help
968 else
969 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 fi
971 cd $ac_popdir
972 done
973fi
252b5132 974
e5a52504
MM
975test -n "$ac_init_help" && exit 0
976if $ac_init_version; then
977 cat <<\_ACEOF
252b5132 978
e5a52504
MM
979Copyright (C) 2003 Free Software Foundation, Inc.
980This configure script is free software; the Free Software Foundation
981gives unlimited permission to copy, distribute and modify it.
982_ACEOF
983 exit 0
984fi
985exec 5>config.log
986cat >&5 <<_ACEOF
987This file contains any messages produced by compilers while
988running configure, to aid debugging if configure makes a mistake.
1ea788ee 989
e5a52504
MM
990It was created by $as_me, which was
991generated by GNU Autoconf 2.59. Invocation command line was
5d64ca4e 992
e5a52504 993 $ $0 $@
5d64ca4e 994
e5a52504
MM
995_ACEOF
996{
997cat <<_ASUNAME
998## --------- ##
999## Platform. ##
1000## --------- ##
1001
1002hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007
1008/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010
1011/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018
1019_ASUNAME
1020
1021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022for as_dir in $PATH
1023do
1024 IFS=$as_save_IFS
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1027done
5d64ca4e 1028
e5a52504 1029} >&5
1a09a22c 1030
e5a52504 1031cat >&5 <<_ACEOF
252b5132 1032
e5a52504
MM
1033
1034## ----------- ##
1035## Core tests. ##
1036## ----------- ##
1037
1038_ACEOF
1039
1040
1041# Keep a trace of the command line.
1042# Strip out --no-create and --no-recursion so they do not pile up.
1043# Strip out --silent because we don't want to record it for future runs.
1044# Also quote any args containing shell meta-characters.
1045# Make two passes to allow for proper duplicate-argument suppression.
1046ac_configure_args=
1047ac_configure_args0=
1048ac_configure_args1=
1049ac_sep=
1050ac_must_keep_next=false
1051for ac_pass in 1 2
1052do
1053 for ac_arg
1054 do
1055 case $ac_arg in
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 continue ;;
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 esac
1063 case $ac_pass in
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 2)
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1069 else
1070 case $ac_arg in
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 esac
1078 ;;
1079 -* ) ac_must_keep_next=true ;;
1080 esac
1081 fi
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1084 ac_sep=" "
1085 ;;
1086 esac
1087 done
1088done
1089$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091
1092# When interrupted or exit'd, cleanup temporary files, and complete
1093# config.log. We remove comments because anyway the quotes in there
1094# would cause problems or look ugly.
1095# WARNING: Be sure not to use single quotes in there, as some shells,
1096# such as our DU 5.0 friend, will then `close' the trap.
1097trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1099 {
1100 echo
1101
1102 cat <<\_ASBOX
1103## ---------------- ##
1104## Cache variables. ##
1105## ---------------- ##
1106_ASBOX
1107 echo
1108 # The following way of writing the cache mishandles newlines in values,
1109{
1110 (set) 2>&1 |
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 *ac_space=\ *)
1113 sed -n \
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 ;;
1117 *)
1118 sed -n \
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ;;
1121 esac;
1122}
1123 echo
1124
1125 cat <<\_ASBOX
1126## ----------------- ##
1127## Output variables. ##
1128## ----------------- ##
1129_ASBOX
1130 echo
1131 for ac_var in $ac_subst_vars
1132 do
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1137
1138 if test -n "$ac_subst_files"; then
1139 cat <<\_ASBOX
1140## ------------- ##
1141## Output files. ##
1142## ------------- ##
1143_ASBOX
1144 echo
1145 for ac_var in $ac_subst_files
1146 do
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1151 fi
1152
1153 if test -s confdefs.h; then
1154 cat <<\_ASBOX
1155## ----------- ##
1156## confdefs.h. ##
1157## ----------- ##
1158_ASBOX
1159 echo
1160 sed "/^$/d" confdefs.h | sort
1161 echo
1162 fi
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1166 } >&5
1167 rm -f core *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 exit $exit_status
1170 ' 0
1171for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173done
1174ac_signal=0
1175
1176# confdefs.h avoids OS command line length limits that DEFS can exceed.
1177rm -rf conftest* confdefs.h
1178# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179echo >confdefs.h
1180
1181# Predefined preprocessor variables.
1182
1183cat >>confdefs.h <<_ACEOF
1184#define PACKAGE_NAME "$PACKAGE_NAME"
1185_ACEOF
1186
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_VERSION "$PACKAGE_VERSION"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_STRING "$PACKAGE_STRING"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205_ACEOF
1206
1207
1208# Let the site file select an alternate cache file if it wants to.
1209# Prefer explicitly selected file to automatically selected ones.
1210if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 else
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 fi
1216fi
1217for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1222 . "$ac_site_file"
1223 fi
1224done
1225
1226if test -r "$cache_file"; then
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231echo "$as_me: loading cache $cache_file" >&6;}
1232 case $cache_file in
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1235 esac
1236 fi
1237else
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239echo "$as_me: creating cache $cache_file" >&6;}
1240 >$cache_file
1241fi
1242
1243# Check that the precious variables saved in the cache have kept the same
1244# value.
1245ac_cache_corrupted=false
1246for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1253 set,)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,set)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,);;
1262 *)
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1271 fi;;
1272 esac
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1275 case $ac_new_val in
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1279 esac
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 esac
1284 fi
1285done
1286if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
1292fi
1293
1294ac_ext=c
1295ac_cpp='$CPP $CPPFLAGS'
1296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319ac_aux_dir=
1320for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1321 if test -f $ac_dir/install-sh; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 break
1325 elif test -f $ac_dir/install.sh; then
1326 ac_aux_dir=$ac_dir
1327 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 break
1329 elif test -f $ac_dir/shtool; then
1330 ac_aux_dir=$ac_dir
1331 ac_install_sh="$ac_aux_dir/shtool install -c"
1332 break
1333 fi
1334done
1335if test -z "$ac_aux_dir"; then
1336 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1337echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1338 { (exit 1); exit 1; }; }
1339fi
1340ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1341ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1342ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343
1344# Make sure we can run config.sub.
1345$ac_config_sub sun4 >/dev/null 2>&1 ||
1346 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1347echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1348 { (exit 1); exit 1; }; }
1349
1350echo "$as_me:$LINENO: checking build system type" >&5
1351echo $ECHO_N "checking build system type... $ECHO_C" >&6
1352if test "${ac_cv_build+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1354else
1355 ac_cv_build_alias=$build_alias
1356test -z "$ac_cv_build_alias" &&
1357 ac_cv_build_alias=`$ac_config_guess`
1358test -z "$ac_cv_build_alias" &&
1359 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1360echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1361 { (exit 1); exit 1; }; }
1362ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1363 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1364echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1365 { (exit 1); exit 1; }; }
1366
1367fi
1368echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1369echo "${ECHO_T}$ac_cv_build" >&6
1370build=$ac_cv_build
1371build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1372build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1373build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1374
1375
1376echo "$as_me:$LINENO: checking host system type" >&5
1377echo $ECHO_N "checking host system type... $ECHO_C" >&6
1378if test "${ac_cv_host+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380else
1381 ac_cv_host_alias=$host_alias
1382test -z "$ac_cv_host_alias" &&
1383 ac_cv_host_alias=$ac_cv_build_alias
1384ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1385 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1386echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1387 { (exit 1); exit 1; }; }
1388
1389fi
1390echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1391echo "${ECHO_T}$ac_cv_host" >&6
1392host=$ac_cv_host
1393host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1394host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1395host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1396
1397
1398echo "$as_me:$LINENO: checking target system type" >&5
1399echo $ECHO_N "checking target system type... $ECHO_C" >&6
1400if test "${ac_cv_target+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1402else
1403 ac_cv_target_alias=$target_alias
1404test "x$ac_cv_target_alias" = "x" &&
1405 ac_cv_target_alias=$ac_cv_host_alias
1406ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1408echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1410
1411fi
1412echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1413echo "${ECHO_T}$ac_cv_target" >&6
1414target=$ac_cv_target
1415target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420# The aliases save the names the user supplied, while $host etc.
1421# will get canonicalized.
1422test -n "$target_alias" &&
1423 test "$program_prefix$program_suffix$program_transform_name" = \
1424 NONENONEs,x,x, &&
1425 program_prefix=${target_alias}-
1426ac_ext=c
1427ac_cpp='$CPP $CPPFLAGS'
1428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1430ac_compiler_gnu=$ac_cv_c_compiler_gnu
1431if test -n "$ac_tool_prefix"; then
1432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1433set dummy ${ac_tool_prefix}gcc; ac_word=$2
1434echo "$as_me:$LINENO: checking for $ac_word" >&5
1435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436if test "${ac_cv_prog_CC+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439 if test -n "$CC"; then
1440 ac_cv_prog_CC="$CC" # Let the user override the test.
1441else
1442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443for as_dir in $PATH
1444do
1445 IFS=$as_save_IFS
1446 test -z "$as_dir" && as_dir=.
1447 for ac_exec_ext in '' $ac_executable_extensions; do
1448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1451 break 2
1452 fi
1453done
1454done
1455
1456fi
1457fi
1458CC=$ac_cv_prog_CC
1459if test -n "$CC"; then
1460 echo "$as_me:$LINENO: result: $CC" >&5
1461echo "${ECHO_T}$CC" >&6
1462else
1463 echo "$as_me:$LINENO: result: no" >&5
1464echo "${ECHO_T}no" >&6
1465fi
1466
1467fi
1468if test -z "$ac_cv_prog_CC"; then
1469 ac_ct_CC=$CC
1470 # Extract the first word of "gcc", so it can be a program name with args.
1471set dummy gcc; ac_word=$2
1472echo "$as_me:$LINENO: checking for $ac_word" >&5
1473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477 if test -n "$ac_ct_CC"; then
1478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1479else
1480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481for as_dir in $PATH
1482do
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_ac_ct_CC="gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 break 2
1490 fi
1491done
1492done
1493
1494fi
1495fi
1496ac_ct_CC=$ac_cv_prog_ac_ct_CC
1497if test -n "$ac_ct_CC"; then
1498 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1499echo "${ECHO_T}$ac_ct_CC" >&6
1500else
1501 echo "$as_me:$LINENO: result: no" >&5
1502echo "${ECHO_T}no" >&6
1503fi
1504
1505 CC=$ac_ct_CC
1506else
1507 CC="$ac_cv_prog_CC"
1508fi
1509
1510if test -z "$CC"; then
1511 if test -n "$ac_tool_prefix"; then
1512 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1513set dummy ${ac_tool_prefix}cc; ac_word=$2
1514echo "$as_me:$LINENO: checking for $ac_word" >&5
1515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516if test "${ac_cv_prog_CC+set}" = set; then
1517 echo $ECHO_N "(cached) $ECHO_C" >&6
1518else
1519 if test -n "$CC"; then
1520 ac_cv_prog_CC="$CC" # Let the user override the test.
1521else
1522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523for as_dir in $PATH
1524do
1525 IFS=$as_save_IFS
1526 test -z "$as_dir" && as_dir=.
1527 for ac_exec_ext in '' $ac_executable_extensions; do
1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529 ac_cv_prog_CC="${ac_tool_prefix}cc"
1530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531 break 2
1532 fi
1533done
1534done
1535
1536fi
1537fi
1538CC=$ac_cv_prog_CC
1539if test -n "$CC"; then
1540 echo "$as_me:$LINENO: result: $CC" >&5
1541echo "${ECHO_T}$CC" >&6
1542else
1543 echo "$as_me:$LINENO: result: no" >&5
1544echo "${ECHO_T}no" >&6
1545fi
1546
1547fi
1548if test -z "$ac_cv_prog_CC"; then
1549 ac_ct_CC=$CC
1550 # Extract the first word of "cc", so it can be a program name with args.
1551set dummy cc; ac_word=$2
1552echo "$as_me:$LINENO: checking for $ac_word" >&5
1553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1556else
1557 if test -n "$ac_ct_CC"; then
1558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1559else
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_ac_ct_CC="cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 break 2
1570 fi
1571done
1572done
1573
1574fi
1575fi
1576ac_ct_CC=$ac_cv_prog_ac_ct_CC
1577if test -n "$ac_ct_CC"; then
1578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1579echo "${ECHO_T}$ac_ct_CC" >&6
1580else
1581 echo "$as_me:$LINENO: result: no" >&5
1582echo "${ECHO_T}no" >&6
1583fi
1584
1585 CC=$ac_ct_CC
1586else
1587 CC="$ac_cv_prog_CC"
1588fi
1589
1590fi
1591if test -z "$CC"; then
1592 # Extract the first word of "cc", so it can be a program name with args.
1593set dummy cc; ac_word=$2
1594echo "$as_me:$LINENO: checking for $ac_word" >&5
1595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601else
1602 ac_prog_rejected=no
1603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604for as_dir in $PATH
1605do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1611 ac_prog_rejected=yes
1612 continue
1613 fi
1614 ac_cv_prog_CC="cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 break 2
1617 fi
1618done
1619done
1620
1621if test $ac_prog_rejected = yes; then
1622 # We found a bogon in the path, so make sure we never use it.
1623 set dummy $ac_cv_prog_CC
1624 shift
1625 if test $# != 0; then
1626 # We chose a different compiler from the bogus one.
1627 # However, it has the same basename, so the bogon will be chosen
1628 # first if we set CC to just the basename; use the full file name.
1629 shift
1630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1631 fi
1632fi
1633fi
1634fi
1635CC=$ac_cv_prog_CC
1636if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638echo "${ECHO_T}$CC" >&6
1639else
1640 echo "$as_me:$LINENO: result: no" >&5
1641echo "${ECHO_T}no" >&6
1642fi
1643
1644fi
1645if test -z "$CC"; then
1646 if test -n "$ac_tool_prefix"; then
1647 for ac_prog in cl
1648 do
1649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1650set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1651echo "$as_me:$LINENO: checking for $ac_word" >&5
1652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653if test "${ac_cv_prog_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 if test -n "$CC"; then
1657 ac_cv_prog_CC="$CC" # Let the user override the test.
1658else
1659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660for as_dir in $PATH
1661do
1662 IFS=$as_save_IFS
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 break 2
1669 fi
1670done
1671done
1672
1673fi
1674fi
1675CC=$ac_cv_prog_CC
1676if test -n "$CC"; then
1677 echo "$as_me:$LINENO: result: $CC" >&5
1678echo "${ECHO_T}$CC" >&6
1679else
1680 echo "$as_me:$LINENO: result: no" >&5
1681echo "${ECHO_T}no" >&6
1682fi
1683
1684 test -n "$CC" && break
1685 done
1686fi
1687if test -z "$CC"; then
1688 ac_ct_CC=$CC
1689 for ac_prog in cl
1690do
1691 # Extract the first word of "$ac_prog", so it can be a program name with args.
1692set dummy $ac_prog; ac_word=$2
1693echo "$as_me:$LINENO: checking for $ac_word" >&5
1694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697else
1698 if test -n "$ac_ct_CC"; then
1699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1700else
1701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702for as_dir in $PATH
1703do
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_ac_ct_CC="$ac_prog"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710 break 2
1711 fi
1712done
1713done
1714
1715fi
1716fi
1717ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718if test -n "$ac_ct_CC"; then
1719 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720echo "${ECHO_T}$ac_ct_CC" >&6
1721else
1722 echo "$as_me:$LINENO: result: no" >&5
1723echo "${ECHO_T}no" >&6
1724fi
1725
1726 test -n "$ac_ct_CC" && break
1727done
1728
1729 CC=$ac_ct_CC
1730fi
1731
1732fi
1733
1734
1735test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1736See \`config.log' for more details." >&5
1737echo "$as_me: error: no acceptable C compiler found in \$PATH
1738See \`config.log' for more details." >&2;}
1739 { (exit 1); exit 1; }; }
1740
1741# Provide some information about the compiler.
1742echo "$as_me:$LINENO:" \
1743 "checking for C compiler version" >&5
1744ac_compiler=`set X $ac_compile; echo $2`
1745{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1746 (eval $ac_compiler --version </dev/null >&5) 2>&5
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }
1750{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1751 (eval $ac_compiler -v </dev/null >&5) 2>&5
1752 ac_status=$?
1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1754 (exit $ac_status); }
1755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1756 (eval $ac_compiler -V </dev/null >&5) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }
1760
1761cat >conftest.$ac_ext <<_ACEOF
1762/* confdefs.h. */
1763_ACEOF
1764cat confdefs.h >>conftest.$ac_ext
1765cat >>conftest.$ac_ext <<_ACEOF
1766/* end confdefs.h. */
1767
1768int
1769main ()
1770{
1771
1772 ;
1773 return 0;
1774}
1775_ACEOF
1776ac_clean_files_save=$ac_clean_files
1777ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778# Try to create an executable without -o first, disregard a.out.
1779# It will help us diagnose broken compilers, and finding out an intuition
1780# of exeext.
1781echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1782echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1783ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791# resort.
1792
1793# Be careful to initialize this variable, since it used to be cached.
1794# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795ac_cv_exeext=
1796# b.out is created by i960 compilers.
1797for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798do
1799 test -f "$ac_file" || continue
1800 case $ac_file in
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 ;;
1803 conftest.$ac_ext )
1804 # This is the source file.
1805 ;;
1806 [ab].out )
1807 # We found the default executable, but exeext='' is most
1808 # certainly right.
1809 break;;
1810 *.* )
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1815 export ac_cv_exeext
1816 break;;
1817 * )
1818 break;;
1819 esac
1820done
1821else
1822 echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826See \`config.log' for more details." >&5
1827echo "$as_me: error: C compiler cannot create executables
1828See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1830fi
1831
1832ac_exeext=$ac_cv_exeext
1833echo "$as_me:$LINENO: result: $ac_file" >&5
1834echo "${ECHO_T}$ac_file" >&6
1835
1836# Check the compiler produces executables we can run. If not, either
1837# the compiler is broken, or we cross compile.
1838echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841# If not cross compiling, check that we can run a simple program.
1842if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 cross_compiling=no
1850 else
1851 if test "$cross_compiling" = maybe; then
1852 cross_compiling=yes
1853 else
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855If you meant to cross compile, use \`--host'.
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: cannot run C compiled programs.
1858If you meant to cross compile, use \`--host'.
1859See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862 fi
1863fi
1864echo "$as_me:$LINENO: result: yes" >&5
1865echo "${ECHO_T}yes" >&6
1866
1867rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868ac_clean_files=$ac_clean_files_save
1869# Check the compiler produces executables we can run. If not, either
1870# the compiler is broken, or we cross compile.
1871echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874echo "${ECHO_T}$cross_compiling" >&6
1875
1876echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885# work properly (i.e., refer to `conftest.exe'), while it won't with
1886# `rm'.
1887for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892 export ac_cv_exeext
1893 break;;
1894 * ) break;;
1895 esac
1896done
1897else
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899See \`config.log' for more details." >&5
1900echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903fi
1904
1905rm -f conftest$ac_cv_exeext
1906echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909rm -f conftest.$ac_ext
1910EXEEXT=$ac_cv_exeext
1911ac_exeext=$EXEEXT
1912echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916else
1917 cat >conftest.$ac_ext <<_ACEOF
1918/* confdefs.h. */
1919_ACEOF
1920cat confdefs.h >>conftest.$ac_ext
1921cat >>conftest.$ac_ext <<_ACEOF
1922/* end confdefs.h. */
1923
1924int
1925main ()
1926{
1927
1928 ;
1929 return 0;
1930}
1931_ACEOF
1932rm -f conftest.o conftest.obj
1933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934 (eval $ac_compile) 2>&5
1935 ac_status=$?
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); }; then
1938 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1939 case $ac_file in
1940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1942 break;;
1943 esac
1944done
1945else
1946 echo "$as_me: failed program was:" >&5
1947sed 's/^/| /' conftest.$ac_ext >&5
1948
1949{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1950See \`config.log' for more details." >&5
1951echo "$as_me: error: cannot compute suffix of object files: cannot compile
1952See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1954fi
1955
1956rm -f conftest.$ac_cv_objext conftest.$ac_ext
1957fi
1958echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1959echo "${ECHO_T}$ac_cv_objext" >&6
1960OBJEXT=$ac_cv_objext
1961ac_objext=$OBJEXT
1962echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1963echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1964if test "${ac_cv_c_compiler_gnu+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" >&6
1966else
1967 cat >conftest.$ac_ext <<_ACEOF
1968/* confdefs.h. */
1969_ACEOF
1970cat confdefs.h >>conftest.$ac_ext
1971cat >>conftest.$ac_ext <<_ACEOF
1972/* end confdefs.h. */
1973
1974int
1975main ()
1976{
1977#ifndef __GNUC__
1978 choke me
1979#endif
1980
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985rm -f conftest.$ac_objext
1986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>conftest.er1
1988 ac_status=$?
1989 grep -v '^ *+' conftest.er1 >conftest.err
1990 rm -f conftest.er1
1991 cat conftest.err >&5
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); } &&
1994 { ac_try='test -z "$ac_c_werror_flag"
1995 || test ! -s conftest.err'
1996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1997 (eval $ac_try) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; } &&
2001 { ac_try='test -s conftest.$ac_objext'
2002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003 (eval $ac_try) 2>&5
2004 ac_status=$?
2005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006 (exit $ac_status); }; }; then
2007 ac_compiler_gnu=yes
2008else
2009 echo "$as_me: failed program was:" >&5
2010sed 's/^/| /' conftest.$ac_ext >&5
2011
2012ac_compiler_gnu=no
2013fi
2014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2015ac_cv_c_compiler_gnu=$ac_compiler_gnu
2016
2017fi
2018echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2019echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2020GCC=`test $ac_compiler_gnu = yes && echo yes`
2021ac_test_CFLAGS=${CFLAGS+set}
2022ac_save_CFLAGS=$CFLAGS
2023CFLAGS="-g"
2024echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2025echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2026if test "${ac_cv_prog_cc_g+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028else
2029 cat >conftest.$ac_ext <<_ACEOF
2030/* confdefs.h. */
2031_ACEOF
2032cat confdefs.h >>conftest.$ac_ext
2033cat >>conftest.$ac_ext <<_ACEOF
2034/* end confdefs.h. */
2035
2036int
2037main ()
2038{
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044rm -f conftest.$ac_objext
2045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>conftest.er1
2047 ac_status=$?
2048 grep -v '^ *+' conftest.er1 >conftest.err
2049 rm -f conftest.er1
2050 cat conftest.err >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -z "$ac_c_werror_flag"
2054 || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 ac_cv_prog_cc_g=yes
2067else
2068 echo "$as_me: failed program was:" >&5
2069sed 's/^/| /' conftest.$ac_ext >&5
2070
2071ac_cv_prog_cc_g=no
2072fi
2073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2074fi
2075echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2076echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2077if test "$ac_test_CFLAGS" = set; then
2078 CFLAGS=$ac_save_CFLAGS
2079elif test $ac_cv_prog_cc_g = yes; then
2080 if test "$GCC" = yes; then
2081 CFLAGS="-g -O2"
2082 else
2083 CFLAGS="-g"
2084 fi
2085else
2086 if test "$GCC" = yes; then
2087 CFLAGS="-O2"
2088 else
2089 CFLAGS=
2090 fi
2091fi
2092echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2093echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2094if test "${ac_cv_prog_cc_stdc+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097 ac_cv_prog_cc_stdc=no
2098ac_save_CC=$CC
2099cat >conftest.$ac_ext <<_ACEOF
2100/* confdefs.h. */
2101_ACEOF
2102cat confdefs.h >>conftest.$ac_ext
2103cat >>conftest.$ac_ext <<_ACEOF
2104/* end confdefs.h. */
2105#include <stdarg.h>
2106#include <stdio.h>
2107#include <sys/types.h>
2108#include <sys/stat.h>
2109/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2110struct buf { int x; };
2111FILE * (*rcsopen) (struct buf *, struct stat *, int);
2112static char *e (p, i)
2113 char **p;
2114 int i;
2115{
2116 return p[i];
2117}
2118static char *f (char * (*g) (char **, int), char **p, ...)
2119{
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126}
2127
2128/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2129 function prototypes and stuff, but not '\xHH' hex character constants.
2130 These don't provoke an error unfortunately, instead are silently treated
2131 as 'x'. The following induces an error, until -std1 is added to get
2132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2133 array size at least. It's necessary to write '\x00'==0 to get something
2134 that's true only with -std1. */
2135int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2136
2137int test (int i, double x);
2138struct s1 {int (*f) (int a);};
2139struct s2 {int (*f) (double a);};
2140int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2141int argc;
2142char **argv;
2143int
2144main ()
2145{
2146return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151# Don't try gcc -ansi; that turns off useful extensions and
2152# breaks some systems' header files.
2153# AIX -qlanglvl=ansi
2154# Ultrix and OSF/1 -std1
2155# HP-UX 10.20 and later -Ae
2156# HP-UX older versions -Aa -D_HPUX_SOURCE
2157# SVR4 -Xc -D__EXTENSIONS__
2158for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2159do
2160 CC="$ac_save_CC $ac_arg"
2161 rm -f conftest.$ac_objext
2162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2163 (eval $ac_compile) 2>conftest.er1
2164 ac_status=$?
2165 grep -v '^ *+' conftest.er1 >conftest.err
2166 rm -f conftest.er1
2167 cat conftest.err >&5
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); } &&
2170 { ac_try='test -z "$ac_c_werror_flag"
2171 || test ! -s conftest.err'
2172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2173 (eval $ac_try) 2>&5
2174 ac_status=$?
2175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176 (exit $ac_status); }; } &&
2177 { ac_try='test -s conftest.$ac_objext'
2178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179 (eval $ac_try) 2>&5
2180 ac_status=$?
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); }; }; then
2183 ac_cv_prog_cc_stdc=$ac_arg
2184break
2185else
2186 echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189fi
2190rm -f conftest.err conftest.$ac_objext
2191done
2192rm -f conftest.$ac_ext conftest.$ac_objext
2193CC=$ac_save_CC
2194
2195fi
2196
2197case "x$ac_cv_prog_cc_stdc" in
2198 x|xno)
2199 echo "$as_me:$LINENO: result: none needed" >&5
2200echo "${ECHO_T}none needed" >&6 ;;
2201 *)
2202 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2203echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2204 CC="$CC $ac_cv_prog_cc_stdc" ;;
2205esac
2206
2207# Some people use a C++ compiler to compile C. Since we use `exit',
2208# in C++ we need to declare it. In case someone uses the same compiler
2209# for both compiling C and C++ we need to have the C++ compiler decide
2210# the declaration of exit, since it's the most demanding environment.
2211cat >conftest.$ac_ext <<_ACEOF
2212#ifndef __cplusplus
2213 choke me
2214#endif
2215_ACEOF
2216rm -f conftest.$ac_objext
2217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>conftest.er1
2219 ac_status=$?
2220 grep -v '^ *+' conftest.er1 >conftest.err
2221 rm -f conftest.er1
2222 cat conftest.err >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -z "$ac_c_werror_flag"
2226 || test ! -s conftest.err'
2227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228 (eval $ac_try) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; } &&
2232 { ac_try='test -s conftest.$ac_objext'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 (eval $ac_try) 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; }; then
2238 for ac_declaration in \
2239 '' \
2240 'extern "C" void std::exit (int) throw (); using std::exit;' \
2241 'extern "C" void std::exit (int); using std::exit;' \
2242 'extern "C" void exit (int) throw ();' \
2243 'extern "C" void exit (int);' \
2244 'void exit (int);'
2245do
2246 cat >conftest.$ac_ext <<_ACEOF
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
2252$ac_declaration
2253#include <stdlib.h>
2254int
2255main ()
2256{
2257exit (42);
2258 ;
2259 return 0;
2260}
2261_ACEOF
2262rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264 (eval $ac_compile) 2>conftest.er1
2265 ac_status=$?
2266 grep -v '^ *+' conftest.er1 >conftest.err
2267 rm -f conftest.er1
2268 cat conftest.err >&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -z "$ac_c_werror_flag"
2272 || test ! -s conftest.err'
2273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 (eval $ac_try) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; } &&
2278 { ac_try='test -s conftest.$ac_objext'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280 (eval $ac_try) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; }; then
2284 :
2285else
2286 echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289continue
2290fi
2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292 cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h. */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h. */
2298$ac_declaration
2299int
2300main ()
2301{
2302exit (42);
2303 ;
2304 return 0;
2305}
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309 (eval $ac_compile) 2>conftest.er1
2310 ac_status=$?
2311 grep -v '^ *+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
2314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315 (exit $ac_status); } &&
2316 { ac_try='test -z "$ac_c_werror_flag"
2317 || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 break
2330else
2331 echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334fi
2335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336done
2337rm -f conftest*
2338if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2342fi
2343
2344else
2345 echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348fi
2349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350ac_ext=c
2351ac_cpp='$CPP $CPPFLAGS'
2352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355
2356
2357
2358 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2359echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2360if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362else
2363 ac_check_lib_save_LIBS=$LIBS
2364LIBS="-lcposix $LIBS"
2365cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h. */
2371
2372/* Override any gcc2 internal prototype to avoid an error. */
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376/* We use char because int might match the return type of a gcc2
2377 builtin and then its argument prototype would still apply. */
2378char strerror ();
2379int
2380main ()
2381{
2382strerror ();
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387rm -f conftest.$ac_objext conftest$ac_exeext
2388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2389 (eval $ac_link) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -z "$ac_c_werror_flag"
2397 || test ! -s conftest.err'
2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; } &&
2403 { ac_try='test -s conftest$ac_exeext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 ac_cv_lib_cposix_strerror=yes
2410else
2411 echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414ac_cv_lib_cposix_strerror=no
2415fi
2416rm -f conftest.err conftest.$ac_objext \
2417 conftest$ac_exeext conftest.$ac_ext
2418LIBS=$ac_check_lib_save_LIBS
2419fi
2420echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2421echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2422if test $ac_cv_lib_cposix_strerror = yes; then
2423 LIBS="$LIBS -lcposix"
2424fi
2425
2426
2427
2428
2429BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2430am__api_version="1.4"
2431# Find a good install program. We prefer a C program (faster),
2432# so one script is as good as another. But avoid the broken or
2433# incompatible versions:
252b5132
RH
2434# SysV /etc/install, /usr/sbin/install
2435# SunOS /usr/etc/install
2436# IRIX /sbin/install
2437# AIX /bin/install
e5a52504 2438# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
2439# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2440# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2441# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
e5a52504 2442# OS/2's system install, which has a completely different semantic
252b5132 2443# ./install, which can be erroneously created by make from ./install.sh.
e5a52504
MM
2444echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2445echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 2446if test -z "$INSTALL"; then
e5a52504
MM
2447if test "${ac_cv_path_install+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 2449else
e5a52504
MM
2450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453 IFS=$as_save_IFS
2454 test -z "$as_dir" && as_dir=.
2455 # Account for people who put trailing slashes in PATH elements.
2456case $as_dir/ in
2457 ./ | .// | /cC/* | \
2458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2459 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2460 /usr/ucb/* ) ;;
2461 *)
2462 # OSF1 and SCO ODT 3.0 have their own names for install.
2463 # Don't use installbsd from OSF since it installs stuff as root
2464 # by default.
2465 for ac_prog in ginstall scoinst install; do
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 2468 if test $ac_prog = install &&
e5a52504 2469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
2470 # AIX install. It has an incompatible calling convention.
2471 :
e5a52504
MM
2472 elif test $ac_prog = install &&
2473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2474 # program-specific install script used by HP pwplus--don't use.
2475 :
252b5132 2476 else
e5a52504
MM
2477 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2478 break 3
252b5132
RH
2479 fi
2480 fi
2481 done
e5a52504
MM
2482 done
2483 ;;
2484esac
2485done
2486
252b5132
RH
2487
2488fi
2489 if test "${ac_cv_path_install+set}" = set; then
e5a52504 2490 INSTALL=$ac_cv_path_install
252b5132
RH
2491 else
2492 # As a last resort, use the slow shell script. We don't cache a
2493 # path for INSTALL within a source directory, because that will
2494 # break other packages using the cache if that directory is
2495 # removed, or if the path is relative.
e5a52504 2496 INSTALL=$ac_install_sh
252b5132
RH
2497 fi
2498fi
e5a52504
MM
2499echo "$as_me:$LINENO: result: $INSTALL" >&5
2500echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
2501
2502# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2503# It thinks the first close brace ends the variable substitution.
2504test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2505
e5a52504 2506test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
2507
2508test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2509
e5a52504
MM
2510echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2511echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
252b5132
RH
2512# Just in case
2513sleep 1
2514echo timestamp > conftestfile
2515# Do `set' in a subshell so we don't clobber the current shell's
2516# arguments. Must try -L first in case configure is actually a
2517# symlink; some systems play weird games with the mod time of symlinks
2518# (eg FreeBSD returns the mod time of the symlink's containing
2519# directory).
2520if (
2521 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2522 if test "$*" = "X"; then
2523 # -L didn't work.
2524 set X `ls -t $srcdir/configure conftestfile`
2525 fi
2526 if test "$*" != "X $srcdir/configure conftestfile" \
2527 && test "$*" != "X conftestfile $srcdir/configure"; then
2528
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
e5a52504
MM
2533 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2534alias in your environment" >&5
2535echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2536alias in your environment" >&2;}
2537 { (exit 1); exit 1; }; }
252b5132
RH
2538 fi
2539
2540 test "$2" = conftestfile
2541 )
2542then
2543 # Ok.
2544 :
2545else
e5a52504
MM
2546 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2547Check your system clock" >&5
2548echo "$as_me: error: newly created file is older than distributed files!
2549Check your system clock" >&2;}
2550 { (exit 1); exit 1; }; }
252b5132
RH
2551fi
2552rm -f conftest*
e5a52504
MM
2553echo "$as_me:$LINENO: result: yes" >&5
2554echo "${ECHO_T}yes" >&6
252b5132 2555test "$program_prefix" != NONE &&
e5a52504 2556 program_transform_name="s,^,$program_prefix,;$program_transform_name"
252b5132
RH
2557# Use a double $ so make ignores it.
2558test "$program_suffix" != NONE &&
e5a52504
MM
2559 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2560# Double any \ or $. echo might interpret backslashes.
2561# By default was `s,x,x', remove it if useless.
2562cat <<\_ACEOF >conftest.sed
2563s/[\\$]/&&/g;s/;s,x,x,$//
2564_ACEOF
2565program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2566rm conftest.sed
2567
2568echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2569echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2570set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2571if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573else
2574 cat >conftest.make <<\_ACEOF
252b5132 2575all:
e5a52504
MM
2576 @echo 'ac_maketemp="$(MAKE)"'
2577_ACEOF
252b5132 2578# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e5a52504 2579eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
252b5132
RH
2580if test -n "$ac_maketemp"; then
2581 eval ac_cv_prog_make_${ac_make}_set=yes
2582else
2583 eval ac_cv_prog_make_${ac_make}_set=no
2584fi
e5a52504 2585rm -f conftest.make
252b5132
RH
2586fi
2587if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e5a52504
MM
2588 echo "$as_me:$LINENO: result: yes" >&5
2589echo "${ECHO_T}yes" >&6
252b5132
RH
2590 SET_MAKE=
2591else
e5a52504
MM
2592 echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6
252b5132
RH
2594 SET_MAKE="MAKE=${MAKE-make}"
2595fi
2596
2597
2598PACKAGE=binutils
2599
27b7e12d 2600VERSION=${BFD_VERSION}
252b5132
RH
2601
2602if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
e5a52504
MM
2603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2604echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2605 { (exit 1); exit 1; }; }
252b5132 2606fi
e5a52504
MM
2607
2608cat >>confdefs.h <<_ACEOF
252b5132 2609#define PACKAGE "$PACKAGE"
e5a52504
MM
2610_ACEOF
2611
252b5132 2612
e5a52504 2613cat >>confdefs.h <<_ACEOF
252b5132 2614#define VERSION "$VERSION"
e5a52504 2615_ACEOF
252b5132
RH
2616
2617
2618
2619missing_dir=`cd $ac_aux_dir && pwd`
e5a52504
MM
2620echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
2621echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2622# Run test in a subshell; some versions of sh will print an error if
2623# an executable is not found, even if stderr is redirected.
2624# Redirect stdin to placate older versions of autoconf. Sigh.
6ece5c52
AM
2625if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2626 ACLOCAL=aclocal-${am__api_version}
e5a52504
MM
2627 echo "$as_me:$LINENO: result: found" >&5
2628echo "${ECHO_T}found" >&6
252b5132 2629else
6ece5c52 2630 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
e5a52504
MM
2631 echo "$as_me:$LINENO: result: missing" >&5
2632echo "${ECHO_T}missing" >&6
252b5132
RH
2633fi
2634
e5a52504
MM
2635echo "$as_me:$LINENO: checking for working autoconf" >&5
2636echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
252b5132
RH
2637# Run test in a subshell; some versions of sh will print an error if
2638# an executable is not found, even if stderr is redirected.
2639# Redirect stdin to placate older versions of autoconf. Sigh.
2640if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2641 AUTOCONF=autoconf
e5a52504
MM
2642 echo "$as_me:$LINENO: result: found" >&5
2643echo "${ECHO_T}found" >&6
252b5132
RH
2644else
2645 AUTOCONF="$missing_dir/missing autoconf"
e5a52504
MM
2646 echo "$as_me:$LINENO: result: missing" >&5
2647echo "${ECHO_T}missing" >&6
252b5132
RH
2648fi
2649
e5a52504
MM
2650echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
2651echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
252b5132
RH
2652# Run test in a subshell; some versions of sh will print an error if
2653# an executable is not found, even if stderr is redirected.
2654# Redirect stdin to placate older versions of autoconf. Sigh.
6ece5c52
AM
2655if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
2656 AUTOMAKE=automake-${am__api_version}
e5a52504
MM
2657 echo "$as_me:$LINENO: result: found" >&5
2658echo "${ECHO_T}found" >&6
252b5132 2659else
6ece5c52 2660 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
e5a52504
MM
2661 echo "$as_me:$LINENO: result: missing" >&5
2662echo "${ECHO_T}missing" >&6
252b5132
RH
2663fi
2664
e5a52504
MM
2665echo "$as_me:$LINENO: checking for working autoheader" >&5
2666echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
252b5132
RH
2667# Run test in a subshell; some versions of sh will print an error if
2668# an executable is not found, even if stderr is redirected.
2669# Redirect stdin to placate older versions of autoconf. Sigh.
2670if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2671 AUTOHEADER=autoheader
e5a52504
MM
2672 echo "$as_me:$LINENO: result: found" >&5
2673echo "${ECHO_T}found" >&6
252b5132
RH
2674else
2675 AUTOHEADER="$missing_dir/missing autoheader"
e5a52504
MM
2676 echo "$as_me:$LINENO: result: missing" >&5
2677echo "${ECHO_T}missing" >&6
252b5132
RH
2678fi
2679
e5a52504
MM
2680echo "$as_me:$LINENO: checking for working makeinfo" >&5
2681echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
252b5132
RH
2682# Run test in a subshell; some versions of sh will print an error if
2683# an executable is not found, even if stderr is redirected.
2684# Redirect stdin to placate older versions of autoconf. Sigh.
2685if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2686 MAKEINFO=makeinfo
e5a52504
MM
2687 echo "$as_me:$LINENO: result: found" >&5
2688echo "${ECHO_T}found" >&6
252b5132
RH
2689else
2690 MAKEINFO="$missing_dir/missing makeinfo"
e5a52504
MM
2691 echo "$as_me:$LINENO: result: missing" >&5
2692echo "${ECHO_T}missing" >&6
252b5132
RH
2693fi
2694
2695
2696
2697# Check whether --enable-shared or --disable-shared was given.
2698if test "${enable_shared+set}" = set; then
2699 enableval="$enable_shared"
2700 p=${PACKAGE-default}
6be7c12c 2701case $enableval in
252b5132
RH
2702yes) enable_shared=yes ;;
2703no) enable_shared=no ;;
2704*)
2705 enable_shared=no
2706 # Look at the argument we got. We use all the common list separators.
2707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2708 for pkg in $enableval; do
2709 if test "X$pkg" = "X$p"; then
2710 enable_shared=yes
2711 fi
2712 done
2713 IFS="$ac_save_ifs"
2714 ;;
2715esac
2716else
2717 enable_shared=yes
e5a52504 2718fi;
252b5132
RH
2719# Check whether --enable-static or --disable-static was given.
2720if test "${enable_static+set}" = set; then
2721 enableval="$enable_static"
2722 p=${PACKAGE-default}
6be7c12c 2723case $enableval in
252b5132
RH
2724yes) enable_static=yes ;;
2725no) enable_static=no ;;
2726*)
2727 enable_static=no
2728 # Look at the argument we got. We use all the common list separators.
2729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2730 for pkg in $enableval; do
2731 if test "X$pkg" = "X$p"; then
2732 enable_static=yes
2733 fi
2734 done
2735 IFS="$ac_save_ifs"
2736 ;;
2737esac
2738else
2739 enable_static=yes
e5a52504 2740fi;
252b5132
RH
2741# Check whether --enable-fast-install or --disable-fast-install was given.
2742if test "${enable_fast_install+set}" = set; then
2743 enableval="$enable_fast_install"
2744 p=${PACKAGE-default}
6be7c12c 2745case $enableval in
252b5132
RH
2746yes) enable_fast_install=yes ;;
2747no) enable_fast_install=no ;;
2748*)
2749 enable_fast_install=no
2750 # Look at the argument we got. We use all the common list separators.
e5a52504
MM
2751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2752 for pkg in $enableval; do
2753 if test "X$pkg" = "X$p"; then
2754 enable_fast_install=yes
1a09a22c
NC
2755 fi
2756 done
2757 IFS="$ac_save_ifs"
e5a52504
MM
2758 ;;
2759esac
1a09a22c 2760else
e5a52504
MM
2761 enable_fast_install=yes
2762fi;
1a09a22c 2763
252b5132
RH
2764# Check whether --with-gnu-ld or --without-gnu-ld was given.
2765if test "${with_gnu_ld+set}" = set; then
2766 withval="$with_gnu_ld"
2767 test "$withval" = no || with_gnu_ld=yes
2768else
2769 with_gnu_ld=no
e5a52504 2770fi;
252b5132 2771ac_prog=ld
6be7c12c 2772if test "$GCC" = yes; then
252b5132 2773 # Check if gcc -print-prog-name=ld gives a path.
e5a52504
MM
2774 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2775echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
ac48eca1
AO
2776 case $host in
2777 *-*-mingw*)
2778 # gcc leaves a trailing carriage return which upsets mingw
2779 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2780 *)
2781 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2782 esac
6be7c12c 2783 case $ac_prog in
252b5132 2784 # Accept absolute paths.
a74801ba 2785 [\\/]* | [A-Za-z]:[\\/]*)
252b5132
RH
2786 re_direlt='/[^/][^/]*/\.\./'
2787 # Canonicalize the path of ld
2788 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2789 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2790 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2791 done
2792 test -z "$LD" && LD="$ac_prog"
2793 ;;
2794 "")
2795 # If it fails, then pretend we aren't using GCC.
2796 ac_prog=ld
2797 ;;
2798 *)
2799 # If it is relative, then search for the first ld in PATH.
2800 with_gnu_ld=unknown
2801 ;;
2802 esac
2803elif test "$with_gnu_ld" = yes; then
e5a52504
MM
2804 echo "$as_me:$LINENO: checking for GNU ld" >&5
2805echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
252b5132 2806else
e5a52504
MM
2807 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2808echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
252b5132 2809fi
e5a52504
MM
2810if test "${lt_cv_path_LD+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2812else
2813 if test -z "$LD"; then
a74801ba 2814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2815 for ac_dir in $PATH; do
2816 test -z "$ac_dir" && ac_dir=.
a74801ba 2817 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6be7c12c 2818 lt_cv_path_LD="$ac_dir/$ac_prog"
252b5132
RH
2819 # Check to see if the program is GNU ld. I'd rather use --version,
2820 # but apparently some GNU ld's only accept -v.
2821 # Break only if it was the GNU/non-GNU ld that we prefer.
6be7c12c 2822 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
252b5132
RH
2823 test "$with_gnu_ld" != no && break
2824 else
2825 test "$with_gnu_ld" != yes && break
2826 fi
2827 fi
2828 done
2829 IFS="$ac_save_ifs"
2830else
6be7c12c 2831 lt_cv_path_LD="$LD" # Let the user override the test with a path.
252b5132
RH
2832fi
2833fi
2834
6be7c12c 2835LD="$lt_cv_path_LD"
252b5132 2836if test -n "$LD"; then
e5a52504
MM
2837 echo "$as_me:$LINENO: result: $LD" >&5
2838echo "${ECHO_T}$LD" >&6
252b5132 2839else
e5a52504
MM
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
252b5132 2842fi
e5a52504
MM
2843test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2844echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2845 { (exit 1); exit 1; }; }
2846echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2847echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2848if test "${lt_cv_prog_gnu_ld+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2850else
2851 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2852if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6be7c12c 2853 lt_cv_prog_gnu_ld=yes
252b5132 2854else
6be7c12c 2855 lt_cv_prog_gnu_ld=no
252b5132
RH
2856fi
2857fi
e5a52504
MM
2858echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2859echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6be7c12c 2860with_gnu_ld=$lt_cv_prog_gnu_ld
252b5132
RH
2861
2862
e5a52504
MM
2863echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2864echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2865if test "${lt_cv_ld_reload_flag+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
2867else
2868 lt_cv_ld_reload_flag='-r'
2869fi
e5a52504
MM
2870echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2871echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
ac48eca1
AO
2872reload_flag=$lt_cv_ld_reload_flag
2873test -n "$reload_flag" && reload_flag=" $reload_flag"
2874
e5a52504
MM
2875echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2876echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2877if test "${lt_cv_path_NM+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
2879else
2880 if test -n "$NM"; then
2881 # Let the user override the test.
6be7c12c 2882 lt_cv_path_NM="$NM"
252b5132 2883else
a74801ba 2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
252b5132
RH
2885 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2886 test -z "$ac_dir" && ac_dir=.
ac48eca1
AO
2887 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2888 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
252b5132
RH
2889 # Check to see if the nm accepts a BSD-compat flag.
2890 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2891 # nm: unknown option "B" ignored
58cccadb
AO
2892 # Tru64's nm complains that /dev/null is an invalid object file
2893 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
6be7c12c 2894 lt_cv_path_NM="$tmp_nm -B"
252b5132 2895 break
ac48eca1 2896 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
6be7c12c 2897 lt_cv_path_NM="$tmp_nm -p"
252b5132
RH
2898 break
2899 else
6be7c12c 2900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
252b5132
RH
2901 continue # so that we can try to find one that supports BSD flags
2902 fi
2903 fi
2904 done
2905 IFS="$ac_save_ifs"
6be7c12c 2906 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
252b5132
RH
2907fi
2908fi
2909
6be7c12c 2910NM="$lt_cv_path_NM"
e5a52504
MM
2911echo "$as_me:$LINENO: result: $NM" >&5
2912echo "${ECHO_T}$NM" >&6
252b5132 2913
e5a52504
MM
2914echo "$as_me:$LINENO: checking whether ln -s works" >&5
2915echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2916LN_S=$as_ln_s
2917if test "$LN_S" = "ln -s"; then
2918 echo "$as_me:$LINENO: result: yes" >&5
2919echo "${ECHO_T}yes" >&6
252b5132 2920else
e5a52504
MM
2921 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2922echo "${ECHO_T}no, using $LN_S" >&6
252b5132
RH
2923fi
2924
e5a52504
MM
2925echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2926echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2927if test "${lt_cv_deplibs_check_method+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 2929else
d64552c5 2930 lt_cv_file_magic_cmd='$MAGIC_CMD'
ac48eca1
AO
2931lt_cv_file_magic_test_file=
2932lt_cv_deplibs_check_method='unknown'
2933# Need to set the preceding variable on all platforms that support
2934# interlibrary dependencies.
2935# 'none' -- dependencies not supported.
2936# `unknown' -- same as none, but documents that we really don't know.
2937# 'pass_all' -- all dependencies passed with no checks.
2938# 'test_compile' -- check by making test program.
2939# 'file_magic [regex]' -- check by looking for files in library path
2940# which responds to the $file_magic_cmd with a given egrep regex.
2941# If you have `file' or equivalent on your system and you're not sure
2942# whether `pass_all' will *always* work, you probably want this one.
2943
6be7c12c
AO
2944case $host_os in
2945aix*)
ac48eca1
AO
2946 lt_cv_deplibs_check_method=pass_all
2947 ;;
2948
2949beos*)
2950 lt_cv_deplibs_check_method=pass_all
2951 ;;
2952
2953bsdi4*)
6be7c12c
AO
2954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2955 lt_cv_file_magic_cmd='/usr/bin/file -L'
ac48eca1
AO
2956 lt_cv_file_magic_test_file=/shlib/libc.so
2957 ;;
2958
d64552c5 2959cygwin* | mingw* |pw32*)
ac48eca1 2960 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
d64552c5 2961 lt_cv_file_magic_cmd='$OBJDUMP -f'
ac48eca1
AO
2962 ;;
2963
6be7c12c
AO
2964darwin* | rhapsody*)
2965 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2966 lt_cv_file_magic_cmd='/usr/bin/file -L'
2967 case "$host_os" in
2968 rhapsody* | darwin1.012)
2969 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2970 ;;
2971 *) # Darwin 1.3 on
2972 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2973 ;;
2974 esac
2975 ;;
2976
ac48eca1
AO
2977freebsd* )
2978 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6be7c12c 2979 case $host_cpu in
ac48eca1 2980 i*86 )
58cccadb
AO
2981 # Not sure whether the presence of OpenBSD here was a mistake.
2982 # Let's accept both of them until this is cleared up.
6be7c12c
AO
2983 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2984 lt_cv_file_magic_cmd=/usr/bin/file
ac48eca1
AO
2985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2986 ;;
2987 esac
2988 else
2989 lt_cv_deplibs_check_method=pass_all
2990 fi
2991 ;;
2992
2993gnu*)
2994 lt_cv_deplibs_check_method=pass_all
2995 ;;
2996
6be7c12c 2997hpux10.20*|hpux11*)
4867be41
DJ
2998 case $host_cpu in
2999 hppa*)
3000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3001 lt_cv_file_magic_cmd=/usr/bin/file
3002 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3003 ;;
3004 ia64*)
3005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3006 lt_cv_file_magic_cmd=/usr/bin/file
3007 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3008 ;;
3009 esac
ac48eca1
AO
3010 ;;
3011
3012irix5* | irix6*)
6be7c12c 3013 case $host_os in
ac48eca1
AO
3014 irix5*)
3015 # this will be overridden with pass_all, but let us keep it just in case
3016 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3017 ;;
3018 *)
6be7c12c 3019 case $LD in
ac48eca1
AO
3020 *-32|*"-32 ") libmagic=32-bit;;
3021 *-n32|*"-n32 ") libmagic=N32;;
3022 *-64|*"-64 ") libmagic=64-bit;;
3023 *) libmagic=never-match;;
3024 esac
3025 # this will be overridden with pass_all, but let us keep it just in case
6be7c12c
AO
3026 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3027 ;;
ac48eca1
AO
3028 esac
3029 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3030 lt_cv_deplibs_check_method=pass_all
3031 ;;
3032
3033# This must be Linux ELF.
58cccadb 3034linux-gnu*)
6be7c12c 3035 case $host_cpu in
3c92310f 3036 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
ac48eca1
AO
3037 lt_cv_deplibs_check_method=pass_all ;;
3038 *)
3039 # glibc up to 2.1.1 does not perform some relocations on ARM
6be7c12c
AO
3040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3041 esac
ac48eca1
AO
3042 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3043 ;;
3044
3045netbsd*)
6be7c12c
AO
3046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3047 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
ac48eca1 3048 else
6be7c12c 3049 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
ac48eca1
AO
3050 fi
3051 ;;
3052
6be7c12c
AO
3053newsos6)
3054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3055 lt_cv_file_magic_cmd=/usr/bin/file
3056 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3057 ;;
3058
ac48eca1
AO
3059osf3* | osf4* | osf5*)
3060 # this will be overridden with pass_all, but let us keep it just in case
3061 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3062 lt_cv_file_magic_test_file=/shlib/libc.so
3063 lt_cv_deplibs_check_method=pass_all
3064 ;;
3065
3066sco3.2v5*)
3067 lt_cv_deplibs_check_method=pass_all
3068 ;;
3069
3070solaris*)
3071 lt_cv_deplibs_check_method=pass_all
3072 lt_cv_file_magic_test_file=/lib/libc.so
3073 ;;
3074
6be7c12c
AO
3075sysv5uw[78]* | sysv4*uw2*)
3076 lt_cv_deplibs_check_method=pass_all
3077 ;;
3078
ac48eca1 3079sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6be7c12c 3080 case $host_vendor in
ac48eca1
AO
3081 ncr)
3082 lt_cv_deplibs_check_method=pass_all
3083 ;;
3084 motorola)
6be7c12c
AO
3085 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]'
3086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
ac48eca1
AO
3087 ;;
3088 esac
3089 ;;
3090esac
3091
3092fi
e5a52504
MM
3093echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3094echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
ac48eca1
AO
3095file_magic_cmd=$lt_cv_file_magic_cmd
3096deplibs_check_method=$lt_cv_deplibs_check_method
3097
ac48eca1 3098
ac48eca1 3099
ac48eca1
AO
3100
3101# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3102
3103# Only perform the check for file, if the check method requires it
6be7c12c 3104case $deplibs_check_method in
ac48eca1 3105file_magic*)
d64552c5 3106 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
e5a52504
MM
3107 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3108echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3109if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3111else
6be7c12c 3112 case $MAGIC_CMD in
ac48eca1 3113 /*)
d64552c5 3114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3115 ;;
3116 ?:/*)
d64552c5 3117 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3118 ;;
3119 *)
d64552c5 3120 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3122 ac_dummy="/usr/bin:$PATH"
3123 for ac_dir in $ac_dummy; do
3124 test -z "$ac_dir" && ac_dir=.
3125 if test -f $ac_dir/${ac_tool_prefix}file; then
d64552c5 3126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
ac48eca1 3127 if test -n "$file_magic_test_file"; then
6be7c12c 3128 case $deplibs_check_method in
ac48eca1
AO
3129 "file_magic "*)
3130 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3133 egrep "$file_magic_regex" > /dev/null; then
3134 :
3135 else
3136 cat <<EOF 1>&2
3137
3138*** Warning: the command libtool uses to detect shared libraries,
3139*** $file_magic_cmd, produces output that libtool cannot recognize.
3140*** The result is that libtool may fail to recognize shared libraries
3141*** as such. This will affect the creation of libtool libraries that
3142*** depend on shared libraries, but programs linked with such libtool
3143*** libraries will work regardless of this problem. Nevertheless, you
3144*** may want to report the problem to your system manager and/or to
3145*** bug-libtool@gnu.org
3146
3147EOF
3148 fi ;;
3149 esac
3150 fi
3151 break
3152 fi
3153 done
3154 IFS="$ac_save_ifs"
d64552c5 3155 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3156 ;;
3157esac
3158fi
3159
d64552c5
AO
3160MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3161if test -n "$MAGIC_CMD"; then
e5a52504
MM
3162 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3163echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3164else
e5a52504
MM
3165 echo "$as_me:$LINENO: result: no" >&5
3166echo "${ECHO_T}no" >&6
ac48eca1
AO
3167fi
3168
d64552c5 3169if test -z "$lt_cv_path_MAGIC_CMD"; then
ac48eca1 3170 if test -n "$ac_tool_prefix"; then
e5a52504
MM
3171 echo "$as_me:$LINENO: checking for file" >&5
3172echo $ECHO_N "checking for file... $ECHO_C" >&6
3173if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3175else
6be7c12c 3176 case $MAGIC_CMD in
ac48eca1 3177 /*)
d64552c5 3178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
ac48eca1
AO
3179 ;;
3180 ?:/*)
d64552c5 3181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
ac48eca1
AO
3182 ;;
3183 *)
d64552c5 3184 ac_save_MAGIC_CMD="$MAGIC_CMD"
ac48eca1
AO
3185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3186 ac_dummy="/usr/bin:$PATH"
3187 for ac_dir in $ac_dummy; do
3188 test -z "$ac_dir" && ac_dir=.
3189 if test -f $ac_dir/file; then
d64552c5 3190 lt_cv_path_MAGIC_CMD="$ac_dir/file"
ac48eca1 3191 if test -n "$file_magic_test_file"; then
6be7c12c 3192 case $deplibs_check_method in
ac48eca1
AO
3193 "file_magic "*)
3194 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
d64552c5 3195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
ac48eca1
AO
3196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3197 egrep "$file_magic_regex" > /dev/null; then
3198 :
3199 else
3200 cat <<EOF 1>&2
3201
3202*** Warning: the command libtool uses to detect shared libraries,
3203*** $file_magic_cmd, produces output that libtool cannot recognize.
3204*** The result is that libtool may fail to recognize shared libraries
3205*** as such. This will affect the creation of libtool libraries that
3206*** depend on shared libraries, but programs linked with such libtool
3207*** libraries will work regardless of this problem. Nevertheless, you
3208*** may want to report the problem to your system manager and/or to
3209*** bug-libtool@gnu.org
3210
3211EOF
3212 fi ;;
3213 esac
3214 fi
3215 break
3216 fi
3217 done
3218 IFS="$ac_save_ifs"
d64552c5 3219 MAGIC_CMD="$ac_save_MAGIC_CMD"
ac48eca1
AO
3220 ;;
3221esac
3222fi
3223
d64552c5
AO
3224MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3225if test -n "$MAGIC_CMD"; then
e5a52504
MM
3226 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3227echo "${ECHO_T}$MAGIC_CMD" >&6
ac48eca1 3228else
e5a52504
MM
3229 echo "$as_me:$LINENO: result: no" >&5
3230echo "${ECHO_T}no" >&6
ac48eca1
AO
3231fi
3232
3233 else
d64552c5 3234 MAGIC_CMD=:
ac48eca1
AO
3235 fi
3236fi
252b5132 3237
ac48eca1
AO
3238 fi
3239 ;;
a74801ba 3240esac
252b5132 3241
e5a52504
MM
3242if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
ac48eca1 3244set dummy ${ac_tool_prefix}ranlib; ac_word=$2
e5a52504
MM
3245echo "$as_me:$LINENO: checking for $ac_word" >&5
3246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3247if test "${ac_cv_prog_RANLIB+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3249else
3250 if test -n "$RANLIB"; then
3251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3252else
e5a52504
MM
3253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254for as_dir in $PATH
3255do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264done
3265done
3266
ac48eca1
AO
3267fi
3268fi
e5a52504 3269RANLIB=$ac_cv_prog_RANLIB
ac48eca1 3270if test -n "$RANLIB"; then
e5a52504
MM
3271 echo "$as_me:$LINENO: result: $RANLIB" >&5
3272echo "${ECHO_T}$RANLIB" >&6
ac48eca1 3273else
e5a52504
MM
3274 echo "$as_me:$LINENO: result: no" >&5
3275echo "${ECHO_T}no" >&6
ac48eca1
AO
3276fi
3277
e5a52504 3278fi
ac48eca1 3279if test -z "$ac_cv_prog_RANLIB"; then
e5a52504 3280 ac_ct_RANLIB=$RANLIB
ac48eca1
AO
3281 # Extract the first word of "ranlib", so it can be a program name with args.
3282set dummy ranlib; ac_word=$2
e5a52504
MM
3283echo "$as_me:$LINENO: checking for $ac_word" >&5
3284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3285if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3287else
e5a52504
MM
3288 if test -n "$ac_ct_RANLIB"; then
3289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
ac48eca1 3290else
e5a52504
MM
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_ac_ct_RANLIB="ranlib"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3301 fi
3302done
3303done
3304
3305 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
ac48eca1
AO
3306fi
3307fi
e5a52504
MM
3308ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3309if test -n "$ac_ct_RANLIB"; then
3310 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3311echo "${ECHO_T}$ac_ct_RANLIB" >&6
ac48eca1 3312else
e5a52504
MM
3313 echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
ac48eca1
AO
3315fi
3316
e5a52504 3317 RANLIB=$ac_ct_RANLIB
ac48eca1 3318else
e5a52504 3319 RANLIB="$ac_cv_prog_RANLIB"
ac48eca1
AO
3320fi
3321
e5a52504
MM
3322if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
ac48eca1 3324set dummy ${ac_tool_prefix}strip; ac_word=$2
e5a52504
MM
3325echo "$as_me:$LINENO: checking for $ac_word" >&5
3326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3327if test "${ac_cv_prog_STRIP+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
3329else
3330 if test -n "$STRIP"; then
3331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3332else
e5a52504
MM
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
3339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344done
3345done
3346
ac48eca1
AO
3347fi
3348fi
e5a52504 3349STRIP=$ac_cv_prog_STRIP
ac48eca1 3350if test -n "$STRIP"; then
e5a52504
MM
3351 echo "$as_me:$LINENO: result: $STRIP" >&5
3352echo "${ECHO_T}$STRIP" >&6
ac48eca1 3353else
e5a52504
MM
3354 echo "$as_me:$LINENO: result: no" >&5
3355echo "${ECHO_T}no" >&6
ac48eca1
AO
3356fi
3357
e5a52504 3358fi
ac48eca1 3359if test -z "$ac_cv_prog_STRIP"; then
e5a52504 3360 ac_ct_STRIP=$STRIP
ac48eca1
AO
3361 # Extract the first word of "strip", so it can be a program name with args.
3362set dummy strip; ac_word=$2
e5a52504
MM
3363echo "$as_me:$LINENO: checking for $ac_word" >&5
3364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1 3367else
e5a52504
MM
3368 if test -n "$ac_ct_STRIP"; then
3369 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ac48eca1 3370else
e5a52504
MM
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_ac_ct_STRIP="strip"
3379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3381 fi
3382done
3383done
3384
3385 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
ac48eca1
AO
3386fi
3387fi
e5a52504
MM
3388ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3389if test -n "$ac_ct_STRIP"; then
3390 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3391echo "${ECHO_T}$ac_ct_STRIP" >&6
ac48eca1 3392else
e5a52504
MM
3393 echo "$as_me:$LINENO: result: no" >&5
3394echo "${ECHO_T}no" >&6
ac48eca1
AO
3395fi
3396
e5a52504 3397 STRIP=$ac_ct_STRIP
ac48eca1 3398else
e5a52504 3399 STRIP="$ac_cv_prog_STRIP"
ac48eca1
AO
3400fi
3401
3402
252b5132
RH
3403# Check for any special flags to pass to ltconfig.
3404libtool_flags="--cache-file=$cache_file"
3405test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3406test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3407test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6be7c12c
AO
3408test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3409test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
252b5132 3410
a74801ba
ILT
3411
3412# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3413if test "${enable_libtool_lock+set}" = set; then
3414 enableval="$enable_libtool_lock"
a74801ba 3415
e5a52504 3416fi;
a74801ba
ILT
3417test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3418test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3419
e5a52504 3420
ac48eca1
AO
3421# Check whether --with-pic or --without-pic was given.
3422if test "${with_pic+set}" = set; then
3423 withval="$with_pic"
3424 pic_mode="$withval"
3425else
3426 pic_mode=default
e5a52504 3427fi;
ac48eca1
AO
3428test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3429test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3430
252b5132
RH
3431# Some flags need to be propagated to the compiler or linker for good
3432# libtool support.
6be7c12c 3433case $host in
252b5132
RH
3434*-*-irix6*)
3435 # Find out which ABI we are using.
e5a52504
MM
3436 echo '#line 3436 "configure"' > conftest.$ac_ext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3438 (eval $ac_compile) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; then
27a710e5
NC
3442 if test "$lt_cv_prog_gnu_ld" = yes; then
3443 case `/usr/bin/file conftest.$ac_objext` in
3444 *32-bit*)
3445 LD="${LD-ld} -melf32bsmip"
3446 ;;
3447 *N32*)
3448 LD="${LD-ld} -melf32bmipn32"
3449 ;;
3450 *64-bit*)
3451 LD="${LD-ld} -melf64bmip"
3452 ;;
3453 esac
3454 else
6be7c12c 3455 case `/usr/bin/file conftest.$ac_objext` in
252b5132
RH
3456 *32-bit*)
3457 LD="${LD-ld} -32"
3458 ;;
3459 *N32*)
3460 LD="${LD-ld} -n32"
3461 ;;
3462 *64-bit*)
3463 LD="${LD-ld} -64"
3464 ;;
3465 esac
27a710e5 3466 fi
252b5132
RH
3467 fi
3468 rm -rf conftest*
3469 ;;
3470
4867be41
DJ
3471ia64-*-hpux*)
3472 # Find out which ABI we are using.
3473 echo 'int i;' > conftest.$ac_ext
e5a52504
MM
3474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3475 (eval $ac_compile) 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; then
4867be41
DJ
3479 case "`/usr/bin/file conftest.o`" in
3480 *ELF-32*)
3481 HPUX_IA64_MODE="32"
3482 ;;
3483 *ELF-64*)
3484 HPUX_IA64_MODE="64"
3485 ;;
3486 esac
3487 fi
3488 rm -rf conftest*
3489 ;;
3490
252b5132
RH
3491*-*-sco3.2v5*)
3492 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3493 SAVE_CFLAGS="$CFLAGS"
3494 CFLAGS="$CFLAGS -belf"
e5a52504
MM
3495 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3496echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3497if test "${lt_cv_cc_needs_belf+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3499else
e5a52504
MM
3500
3501
ac48eca1 3502 ac_ext=c
ac48eca1 3503ac_cpp='$CPP $CPPFLAGS'
e5a52504
MM
3504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3507
e5a52504
MM
3508 cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
252b5132 3514
e5a52504
MM
3515int
3516main ()
3517{
252b5132 3518
e5a52504
MM
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext conftest$ac_exeext
3524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3525 (eval $ac_link) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
252b5132
RH
3545 lt_cv_cc_needs_belf=yes
3546else
e5a52504
MM
3547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550lt_cv_cc_needs_belf=no
252b5132 3551fi
e5a52504
MM
3552rm -f conftest.err conftest.$ac_objext \
3553 conftest$ac_exeext conftest.$ac_ext
ac48eca1 3554 ac_ext=c
ac48eca1 3555ac_cpp='$CPP $CPPFLAGS'
e5a52504
MM
3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 3559
252b5132 3560fi
e5a52504
MM
3561echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3562echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
252b5132
RH
3563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3565 CFLAGS="$SAVE_CFLAGS"
3566 fi
3567 ;;
3568
252b5132
RH
3569
3570esac
3571
252b5132
RH
3572
3573# Save cache, so that ltconfig can load it
e5a52504 3574cat >confcache <<\_ACEOF
252b5132
RH
3575# This file is a shell script that caches the results of configure
3576# tests run on this system so they can be shared between configure
e5a52504
MM
3577# scripts and configure runs, see configure's option --config-cache.
3578# It is not useful on other systems. If it contains results you don't
3579# want to keep, you may remove or edit it.
252b5132 3580#
e5a52504
MM
3581# config.status only pays attention to the cache file if you give it
3582# the --recheck option to rerun configure.
252b5132 3583#
e5a52504
MM
3584# `ac_cv_env_foo' variables (set or unset) will be overridden when
3585# loading this file, other *unset* `ac_cv_foo' will be assigned the
3586# following values.
3587
3588_ACEOF
3589
252b5132
RH
3590# The following way of writing the cache mishandles newlines in values,
3591# but we know of no workaround that is simple, portable, and efficient.
3592# So, don't put newlines in cache variables' values.
3593# Ultrix sh set writes to stderr and can't be redirected directly,
3594# and sets the high bit in the cache file unless we assign to the vars.
e5a52504
MM
3595{
3596 (set) 2>&1 |
3597 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3598 *ac_space=\ *)
3599 # `set' does not quote correctly, so add quotes (double-quote
3600 # substitution turns \\\\ into \\, and sed turns \\ into \).
3601 sed -n \
3602 "s/'/'\\\\''/g;
3603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3604 ;;
3605 *)
3606 # `set' quotes correctly as required by POSIX, so do not add quotes.
3607 sed -n \
3608 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3609 ;;
3610 esac;
3611} |
3612 sed '
3613 t clear
3614 : clear
3615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3616 t end
3617 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3618 : end' >>confcache
3619if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 3620 if test -w $cache_file; then
e5a52504
MM
3621 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3622 cat confcache >$cache_file
252b5132
RH
3623 else
3624 echo "not updating unwritable cache $cache_file"
3625 fi
3626fi
3627rm -f confcache
3628
252b5132 3629# Actually configure libtool. ac_aux_dir is where install-sh is found.
ac48eca1 3630AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
d64552c5 3631MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
ac48eca1
AO
3632LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3633AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3634objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3635deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
252b5132 3636${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
ac48eca1 3637$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
e5a52504
MM
3638|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
3639echo "$as_me: error: libtool configure failed" >&2;}
3640 { (exit 1); exit 1; }; }
252b5132
RH
3641
3642# Reload cache, that may have been modified by ltconfig
3643if test -r "$cache_file"; then
e5a52504
MM
3644 # Some versions of bash will fail to source /dev/null (special
3645 # files actually), so we avoid doing that.
3646 if test -f "$cache_file"; then
3647 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
3648echo "$as_me: loading cache $cache_file" >&6;}
3649 case $cache_file in
3650 [\\/]* | ?:[\\/]* ) . $cache_file;;
3651 *) . ./$cache_file;;
3652 esac
3653 fi
252b5132 3654else
e5a52504
MM
3655 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
3656echo "$as_me: creating cache $cache_file" >&6;}
3657 >$cache_file
252b5132
RH
3658fi
3659
3660
3661# This can be used to rebuild libtool when needed
ac48eca1 3662LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
252b5132
RH
3663
3664# Always use our own libtool.
3665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3666
3667# Redirect the config.log output again, so that the ltconfig log is not
3668# clobbered by the next message.
3669exec 5>>./config.log
3670
ac48eca1 3671
e5a52504
MM
3672
3673
3674
3675
ac48eca1 3676
252b5132
RH
3677# Check whether --enable-targets or --disable-targets was given.
3678if test "${enable_targets+set}" = set; then
3679 enableval="$enable_targets"
3680 case "${enableval}" in
e5a52504
MM
3681 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
3682echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3683 { (exit 1); exit 1; }; }
252b5132
RH
3684 ;;
3685 no) enable_targets= ;;
3686 *) enable_targets=$enableval ;;
3687esac
e5a52504 3688fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
252b5132
RH
3689if test "${enable_commonbfdlib+set}" = set; then
3690 enableval="$enable_commonbfdlib"
3691 case "${enableval}" in
3692 yes) commonbfdlib=true ;;
3693 no) commonbfdlib=false ;;
e5a52504
MM
3694 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3695echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3696 { (exit 1); exit 1; }; } ;;
252b5132 3697esac
e5a52504 3698fi;
0218d1e4 3699build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
a2d91340
AC
3700# Check whether --enable-build-warnings or --disable-build-warnings was given.
3701if test "${enable_build_warnings+set}" = set; then
3702 enableval="$enable_build_warnings"
3703 case "${enableval}" in
3704 yes) ;;
3705 no) build_warnings="-w";;
3706 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3707 build_warnings="${build_warnings} ${t}";;
3708 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
3709 build_warnings="${t} ${build_warnings}";;
3710 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3711esac
3712if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
3713 echo "Setting warning flags = $build_warnings" 6>&1
3714fi
e5a52504 3715fi; WARN_CFLAGS=""
a2d91340
AC
3716if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
3717 WARN_CFLAGS="${build_warnings}"
3718fi
3719
3720
252b5132 3721
e5a52504 3722 ac_config_headers="$ac_config_headers config.h:config.in"
252b5132 3723
e5a52504 3724 ac_config_commands="$ac_config_commands default-1"
252b5132
RH
3725
3726
3727if test -z "$target" ; then
e5a52504
MM
3728 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
3729echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3730 { (exit 1); exit 1; }; }
252b5132
RH
3731fi
3732if test -z "$host" ; then
e5a52504
MM
3733 { { echo "$as_me:$LINENO: error: Unrecognized host system type; please check config.sub." >&5
3734echo "$as_me: error: Unrecognized host system type; please check config.sub." >&2;}
3735 { (exit 1); exit 1; }; }
3736fi
3737
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743if test -n "$ac_tool_prefix"; then
3744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3745set dummy ${ac_tool_prefix}gcc; ac_word=$2
3746echo "$as_me:$LINENO: checking for $ac_word" >&5
3747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748if test "${ac_cv_prog_CC+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3764 fi
3765done
3766done
3767
3768fi
3769fi
3770CC=$ac_cv_prog_CC
3771if test -n "$CC"; then
3772 echo "$as_me:$LINENO: result: $CC" >&5
3773echo "${ECHO_T}$CC" >&6
3774else
3775 echo "$as_me:$LINENO: result: no" >&5
3776echo "${ECHO_T}no" >&6
3777fi
3778
3779fi
3780if test -z "$ac_cv_prog_CC"; then
3781 ac_ct_CC=$CC
3782 # Extract the first word of "gcc", so it can be a program name with args.
3783set dummy gcc; ac_word=$2
3784echo "$as_me:$LINENO: checking for $ac_word" >&5
3785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_CC="gcc"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803done
3804done
3805
3806fi
3807fi
3808ac_ct_CC=$ac_cv_prog_ac_ct_CC
3809if test -n "$ac_ct_CC"; then
3810 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3811echo "${ECHO_T}$ac_ct_CC" >&6
3812else
3813 echo "$as_me:$LINENO: result: no" >&5
3814echo "${ECHO_T}no" >&6
3815fi
3816
3817 CC=$ac_ct_CC
3818else
3819 CC="$ac_cv_prog_CC"
3820fi
3821
3822if test -z "$CC"; then
3823 if test -n "$ac_tool_prefix"; then
3824 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3825set dummy ${ac_tool_prefix}cc; ac_word=$2
3826echo "$as_me:$LINENO: checking for $ac_word" >&5
3827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3828if test "${ac_cv_prog_CC+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3833else
3834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835for as_dir in $PATH
3836do
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_CC="${ac_tool_prefix}cc"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845done
3846done
3847
3848fi
3849fi
3850CC=$ac_cv_prog_CC
3851if test -n "$CC"; then
3852 echo "$as_me:$LINENO: result: $CC" >&5
3853echo "${ECHO_T}$CC" >&6
3854else
3855 echo "$as_me:$LINENO: result: no" >&5
3856echo "${ECHO_T}no" >&6
252b5132
RH
3857fi
3858
e5a52504
MM
3859fi
3860if test -z "$ac_cv_prog_CC"; then
3861 ac_ct_CC=$CC
3862 # Extract the first word of "cc", so it can be a program name with args.
3863set dummy cc; ac_word=$2
3864echo "$as_me:$LINENO: checking for $ac_word" >&5
3865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 3868else
e5a52504
MM
3869 if test -n "$ac_ct_CC"; then
3870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
252b5132 3871else
e5a52504
MM
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879 ac_cv_prog_ac_ct_CC="cc"
3880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884done
3885
252b5132
RH
3886fi
3887fi
e5a52504
MM
3888ac_ct_CC=$ac_cv_prog_ac_ct_CC
3889if test -n "$ac_ct_CC"; then
3890 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3891echo "${ECHO_T}$ac_ct_CC" >&6
3892else
3893 echo "$as_me:$LINENO: result: no" >&5
3894echo "${ECHO_T}no" >&6
3895fi
3896
3897 CC=$ac_ct_CC
252b5132 3898else
e5a52504 3899 CC="$ac_cv_prog_CC"
252b5132
RH
3900fi
3901
e5a52504 3902fi
252b5132
RH
3903if test -z "$CC"; then
3904 # Extract the first word of "cc", so it can be a program name with args.
3905set dummy cc; ac_word=$2
e5a52504
MM
3906echo "$as_me:$LINENO: checking for $ac_word" >&5
3907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3908if test "${ac_cv_prog_CC+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3910else
3911 if test -n "$CC"; then
3912 ac_cv_prog_CC="$CC" # Let the user override the test.
3913else
252b5132 3914 ac_prog_rejected=no
e5a52504
MM
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3923 ac_prog_rejected=yes
3924 continue
3925 fi
3926 ac_cv_prog_CC="cc"
3927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3929 fi
3930done
3931done
3932
252b5132
RH
3933if test $ac_prog_rejected = yes; then
3934 # We found a bogon in the path, so make sure we never use it.
3935 set dummy $ac_cv_prog_CC
3936 shift
e5a52504 3937 if test $# != 0; then
252b5132
RH
3938 # We chose a different compiler from the bogus one.
3939 # However, it has the same basename, so the bogon will be chosen
3940 # first if we set CC to just the basename; use the full file name.
3941 shift
e5a52504 3942 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
252b5132
RH
3943 fi
3944fi
3945fi
3946fi
e5a52504 3947CC=$ac_cv_prog_CC
252b5132 3948if test -n "$CC"; then
e5a52504
MM
3949 echo "$as_me:$LINENO: result: $CC" >&5
3950echo "${ECHO_T}$CC" >&6
252b5132 3951else
e5a52504
MM
3952 echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
252b5132
RH
3954fi
3955
e5a52504
MM
3956fi
3957if test -z "$CC"; then
3958 if test -n "$ac_tool_prefix"; then
3959 for ac_prog in cl
3960 do
3961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3963echo "$as_me:$LINENO: checking for $ac_word" >&5
3964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965if test "${ac_cv_prog_CC+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
3967else
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3970else
e5a52504
MM
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3981 fi
3982done
3983done
3984
252b5132
RH
3985fi
3986fi
e5a52504 3987CC=$ac_cv_prog_CC
252b5132 3988if test -n "$CC"; then
e5a52504
MM
3989 echo "$as_me:$LINENO: result: $CC" >&5
3990echo "${ECHO_T}$CC" >&6
252b5132 3991else
e5a52504
MM
3992 echo "$as_me:$LINENO: result: no" >&5
3993echo "${ECHO_T}no" >&6
252b5132
RH
3994fi
3995
e5a52504
MM
3996 test -n "$CC" && break
3997 done
3998fi
3999if test -z "$CC"; then
4000 ac_ct_CC=$CC
4001 for ac_prog in cl
4002do
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004set dummy $ac_prog; ac_word=$2
4005echo "$as_me:$LINENO: checking for $ac_word" >&5
4006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009else
4010 if test -n "$ac_ct_CC"; then
4011 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4012else
4013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_ac_ct_CC="$ac_prog"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
252b5132 4023 fi
e5a52504
MM
4024done
4025done
4026
4027fi
4028fi
4029ac_ct_CC=$ac_cv_prog_ac_ct_CC
4030if test -n "$ac_ct_CC"; then
4031 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4032echo "${ECHO_T}$ac_ct_CC" >&6
252b5132 4033else
e5a52504
MM
4034 echo "$as_me:$LINENO: result: no" >&5
4035echo "${ECHO_T}no" >&6
252b5132 4036fi
252b5132 4037
e5a52504
MM
4038 test -n "$ac_ct_CC" && break
4039done
252b5132 4040
e5a52504
MM
4041 CC=$ac_ct_CC
4042fi
4043
4044fi
4045
4046
4047test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4048See \`config.log' for more details." >&5
4049echo "$as_me: error: no acceptable C compiler found in \$PATH
4050See \`config.log' for more details." >&2;}
4051 { (exit 1); exit 1; }; }
4052
4053# Provide some information about the compiler.
4054echo "$as_me:$LINENO:" \
4055 "checking for C compiler version" >&5
4056ac_compiler=`set X $ac_compile; echo $2`
4057{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4058 (eval $ac_compiler --version </dev/null >&5) 2>&5
4059 ac_status=$?
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }
4062{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4063 (eval $ac_compiler -v </dev/null >&5) 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }
4067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4068 (eval $ac_compiler -V </dev/null >&5) 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }
4072
4073echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4074echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4075if test "${ac_cv_c_compiler_gnu+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4077else
4078 cat >conftest.$ac_ext <<_ACEOF
4079/* confdefs.h. */
4080_ACEOF
4081cat confdefs.h >>conftest.$ac_ext
4082cat >>conftest.$ac_ext <<_ACEOF
4083/* end confdefs.h. */
4084
4085int
4086main ()
4087{
4088#ifndef __GNUC__
4089 choke me
252b5132 4090#endif
252b5132 4091
e5a52504
MM
4092 ;
4093 return 0;
4094}
4095_ACEOF
4096rm -f conftest.$ac_objext
4097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_c_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 (eval $ac_try) 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4118 ac_compiler_gnu=yes
4119else
4120 echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123ac_compiler_gnu=no
4124fi
4125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126ac_cv_c_compiler_gnu=$ac_compiler_gnu
4127
4128fi
4129echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4130echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4131GCC=`test $ac_compiler_gnu = yes && echo yes`
4132ac_test_CFLAGS=${CFLAGS+set}
4133ac_save_CFLAGS=$CFLAGS
4134CFLAGS="-g"
4135echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4136echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4137if test "${ac_cv_prog_cc_g+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140 cat >conftest.$ac_ext <<_ACEOF
4141/* confdefs.h. */
4142_ACEOF
4143cat confdefs.h >>conftest.$ac_ext
4144cat >>conftest.$ac_ext <<_ACEOF
4145/* end confdefs.h. */
252b5132 4146
e5a52504
MM
4147int
4148main ()
4149{
252b5132 4150
e5a52504
MM
4151 ;
4152 return 0;
4153}
4154_ACEOF
4155rm -f conftest.$ac_objext
4156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4158 ac_status=$?
4159 grep -v '^ *+' conftest.er1 >conftest.err
4160 rm -f conftest.er1
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_c_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167 (eval $ac_try) 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
252b5132
RH
4177 ac_cv_prog_cc_g=yes
4178else
e5a52504
MM
4179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4181
e5a52504 4182ac_cv_prog_cc_g=no
252b5132 4183fi
e5a52504
MM
4184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4185fi
4186echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4187echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
252b5132 4188if test "$ac_test_CFLAGS" = set; then
e5a52504 4189 CFLAGS=$ac_save_CFLAGS
252b5132
RH
4190elif test $ac_cv_prog_cc_g = yes; then
4191 if test "$GCC" = yes; then
4192 CFLAGS="-g -O2"
4193 else
4194 CFLAGS="-g"
4195 fi
4196else
4197 if test "$GCC" = yes; then
4198 CFLAGS="-O2"
4199 else
4200 CFLAGS=
4201 fi
4202fi
e5a52504
MM
4203echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4204echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4205if test "${ac_cv_prog_cc_stdc+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208 ac_cv_prog_cc_stdc=no
4209ac_save_CC=$CC
4210cat >conftest.$ac_ext <<_ACEOF
4211/* confdefs.h. */
4212_ACEOF
4213cat confdefs.h >>conftest.$ac_ext
4214cat >>conftest.$ac_ext <<_ACEOF
4215/* end confdefs.h. */
4216#include <stdarg.h>
4217#include <stdio.h>
4218#include <sys/types.h>
4219#include <sys/stat.h>
4220/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4221struct buf { int x; };
4222FILE * (*rcsopen) (struct buf *, struct stat *, int);
4223static char *e (p, i)
4224 char **p;
4225 int i;
4226{
4227 return p[i];
4228}
4229static char *f (char * (*g) (char **, int), char **p, ...)
4230{
4231 char *s;
4232 va_list v;
4233 va_start (v,p);
4234 s = g (p, va_arg (v,int));
4235 va_end (v);
4236 return s;
4237}
252b5132 4238
e5a52504
MM
4239/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4240 function prototypes and stuff, but not '\xHH' hex character constants.
4241 These don't provoke an error unfortunately, instead are silently treated
4242 as 'x'. The following induces an error, until -std1 is added to get
4243 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4244 array size at least. It's necessary to write '\x00'==0 to get something
4245 that's true only with -std1. */
4246int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4247
4248int test (int i, double x);
4249struct s1 {int (*f) (int a);};
4250struct s2 {int (*f) (double a);};
4251int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252int argc;
4253char **argv;
4254int
4255main ()
4256{
4257return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4258 ;
4259 return 0;
4260}
4261_ACEOF
4262# Don't try gcc -ansi; that turns off useful extensions and
4263# breaks some systems' header files.
4264# AIX -qlanglvl=ansi
4265# Ultrix and OSF/1 -std1
4266# HP-UX 10.20 and later -Ae
4267# HP-UX older versions -Aa -D_HPUX_SOURCE
4268# SVR4 -Xc -D__EXTENSIONS__
4269for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
252b5132 4270do
e5a52504
MM
4271 CC="$ac_save_CC $ac_arg"
4272 rm -f conftest.$ac_objext
4273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag"
4282 || test ! -s conftest.err'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 (eval $ac_try) 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4294 ac_cv_prog_cc_stdc=$ac_arg
4295break
252b5132 4296else
e5a52504
MM
4297 echo "$as_me: failed program was:" >&5
4298sed 's/^/| /' conftest.$ac_ext >&5
252b5132 4299
e5a52504
MM
4300fi
4301rm -f conftest.err conftest.$ac_objext
252b5132 4302done
e5a52504
MM
4303rm -f conftest.$ac_ext conftest.$ac_objext
4304CC=$ac_save_CC
252b5132 4305
252b5132 4306fi
e5a52504
MM
4307
4308case "x$ac_cv_prog_cc_stdc" in
4309 x|xno)
4310 echo "$as_me:$LINENO: result: none needed" >&5
4311echo "${ECHO_T}none needed" >&6 ;;
4312 *)
4313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4314echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4315 CC="$CC $ac_cv_prog_cc_stdc" ;;
4316esac
4317
4318# Some people use a C++ compiler to compile C. Since we use `exit',
4319# in C++ we need to declare it. In case someone uses the same compiler
4320# for both compiling C and C++ we need to have the C++ compiler decide
4321# the declaration of exit, since it's the most demanding environment.
4322cat >conftest.$ac_ext <<_ACEOF
4323#ifndef __cplusplus
4324 choke me
4325#endif
4326_ACEOF
4327rm -f conftest.$ac_objext
4328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>conftest.er1
4330 ac_status=$?
4331 grep -v '^ *+' conftest.er1 >conftest.err
4332 rm -f conftest.er1
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } &&
4336 { ac_try='test -z "$ac_c_werror_flag"
4337 || test ! -s conftest.err'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; } &&
4343 { ac_try='test -s conftest.$ac_objext'
4344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345 (eval $ac_try) 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; }; then
4349 for ac_declaration in \
4350 '' \
4351 'extern "C" void std::exit (int) throw (); using std::exit;' \
4352 'extern "C" void std::exit (int); using std::exit;' \
4353 'extern "C" void exit (int) throw ();' \
4354 'extern "C" void exit (int);' \
4355 'void exit (int);'
4356do
4357 cat >conftest.$ac_ext <<_ACEOF
4358/* confdefs.h. */
4359_ACEOF
4360cat confdefs.h >>conftest.$ac_ext
4361cat >>conftest.$ac_ext <<_ACEOF
4362/* end confdefs.h. */
4363$ac_declaration
4364#include <stdlib.h>
4365int
4366main ()
4367{
4368exit (42);
4369 ;
4370 return 0;
4371}
4372_ACEOF
4373rm -f conftest.$ac_objext
4374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4375 (eval $ac_compile) 2>conftest.er1
4376 ac_status=$?
4377 grep -v '^ *+' conftest.er1 >conftest.err
4378 rm -f conftest.er1
4379 cat conftest.err >&5
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); } &&
4382 { ac_try='test -z "$ac_c_werror_flag"
4383 || test ! -s conftest.err'
4384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; } &&
4389 { ac_try='test -s conftest.$ac_objext'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391 (eval $ac_try) 2>&5
4392 ac_status=$?
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; }; then
252b5132
RH
4395 :
4396else
e5a52504
MM
4397 echo "$as_me: failed program was:" >&5
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
4400continue
4401fi
4402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4403 cat >conftest.$ac_ext <<_ACEOF
4404/* confdefs.h. */
4405_ACEOF
4406cat confdefs.h >>conftest.$ac_ext
4407cat >>conftest.$ac_ext <<_ACEOF
4408/* end confdefs.h. */
4409$ac_declaration
4410int
4411main ()
4412{
4413exit (42);
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418rm -f conftest.$ac_objext
4419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 break
252b5132 4441else
e5a52504
MM
4442 echo "$as_me: failed program was:" >&5
4443sed 's/^/| /' conftest.$ac_ext >&5
4444
252b5132 4445fi
e5a52504
MM
4446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4447done
252b5132 4448rm -f conftest*
e5a52504
MM
4449if test -n "$ac_declaration"; then
4450 echo '#ifdef __cplusplus' >>confdefs.h
4451 echo $ac_declaration >>confdefs.h
4452 echo '#endif' >>confdefs.h
252b5132 4453fi
e5a52504
MM
4454
4455else
4456 echo "$as_me: failed program was:" >&5
4457sed 's/^/| /' conftest.$ac_ext >&5
4458
252b5132 4459fi
e5a52504
MM
4460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4461ac_ext=c
4462ac_cpp='$CPP $CPPFLAGS'
4463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466
4467
4468for ac_prog in 'bison -y' byacc
4469do
4470 # Extract the first word of "$ac_prog", so it can be a program name with args.
4471set dummy $ac_prog; ac_word=$2
4472echo "$as_me:$LINENO: checking for $ac_word" >&5
4473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4474if test "${ac_cv_prog_YACC+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477 if test -n "$YACC"; then
4478 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4479else
4480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_YACC="$ac_prog"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
4493
252b5132 4494fi
e5a52504
MM
4495fi
4496YACC=$ac_cv_prog_YACC
4497if test -n "$YACC"; then
4498 echo "$as_me:$LINENO: result: $YACC" >&5
4499echo "${ECHO_T}$YACC" >&6
252b5132 4500else
e5a52504
MM
4501 echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
252b5132 4503fi
e5a52504
MM
4504
4505 test -n "$YACC" && break
4506done
4507test -n "$YACC" || YACC="yacc"
252b5132
RH
4508
4509missing_dir=`cd $ac_aux_dir && pwd`
4510for ac_prog in flex lex
4511do
e5a52504 4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
252b5132 4513set dummy $ac_prog; ac_word=$2
e5a52504
MM
4514echo "$as_me:$LINENO: checking for $ac_word" >&5
4515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516if test "${ac_cv_prog_LEX+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4518else
4519 if test -n "$LEX"; then
4520 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4521else
e5a52504
MM
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_prog_LEX="$ac_prog"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533done
4534done
4535
252b5132
RH
4536fi
4537fi
e5a52504 4538LEX=$ac_cv_prog_LEX
252b5132 4539if test -n "$LEX"; then
e5a52504
MM
4540 echo "$as_me:$LINENO: result: $LEX" >&5
4541echo "${ECHO_T}$LEX" >&6
252b5132 4542else
e5a52504
MM
4543 echo "$as_me:$LINENO: result: no" >&5
4544echo "${ECHO_T}no" >&6
252b5132
RH
4545fi
4546
e5a52504 4547 test -n "$LEX" && break
252b5132 4548done
8ca8f343 4549test -n "$LEX" || LEX="$missing_dir/missing flex"
252b5132 4550
e5a52504
MM
4551for ac_prog in flex lex
4552do
4553 # Extract the first word of "$ac_prog", so it can be a program name with args.
4554set dummy $ac_prog; ac_word=$2
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_prog_LEX+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4559else
4560 if test -n "$LEX"; then
4561 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4562else
e5a52504
MM
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_LEX="$ac_prog"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574done
4575done
4576
252b5132
RH
4577fi
4578fi
e5a52504 4579LEX=$ac_cv_prog_LEX
252b5132 4580if test -n "$LEX"; then
e5a52504
MM
4581 echo "$as_me:$LINENO: result: $LEX" >&5
4582echo "${ECHO_T}$LEX" >&6
252b5132 4583else
e5a52504
MM
4584 echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6
252b5132
RH
4586fi
4587
e5a52504
MM
4588 test -n "$LEX" && break
4589done
4590test -n "$LEX" || LEX=":"
4591
252b5132
RH
4592if test -z "$LEXLIB"
4593then
e5a52504
MM
4594 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4595echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4596if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4598else
4599 ac_check_lib_save_LIBS=$LIBS
4600LIBS="-lfl $LIBS"
4601cat >conftest.$ac_ext <<_ACEOF
4602/* confdefs.h. */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h. */
4607
252b5132 4608/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
4609#ifdef __cplusplus
4610extern "C"
4611#endif
252b5132 4612/* We use char because int might match the return type of a gcc2
e5a52504
MM
4613 builtin and then its argument prototype would still apply. */
4614char yywrap ();
4615int
4616main ()
4617{
4618yywrap ();
4619 ;
4620 return 0;
4621}
4622_ACEOF
4623rm -f conftest.$ac_objext conftest$ac_exeext
4624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4625 (eval $ac_link) 2>conftest.er1
4626 ac_status=$?
4627 grep -v '^ *+' conftest.er1 >conftest.err
4628 rm -f conftest.er1
4629 cat conftest.err >&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } &&
4632 { ac_try='test -z "$ac_c_werror_flag"
4633 || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635 (eval $ac_try) 2>&5
4636 ac_status=$?
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest$ac_exeext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4641 (eval $ac_try) 2>&5
4642 ac_status=$?
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4645 ac_cv_lib_fl_yywrap=yes
4646else
4647 echo "$as_me: failed program was:" >&5
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
4650ac_cv_lib_fl_yywrap=no
4651fi
4652rm -f conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4654LIBS=$ac_check_lib_save_LIBS
4655fi
4656echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4657echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4658if test $ac_cv_lib_fl_yywrap = yes; then
4659 LEXLIB="-lfl"
4660else
4661 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4662echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4663if test "${ac_cv_lib_l_yywrap+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4665else
4666 ac_check_lib_save_LIBS=$LIBS
4667LIBS="-ll $LIBS"
4668cat >conftest.$ac_ext <<_ACEOF
4669/* confdefs.h. */
4670_ACEOF
4671cat confdefs.h >>conftest.$ac_ext
4672cat >>conftest.$ac_ext <<_ACEOF
4673/* end confdefs.h. */
252b5132 4674
e5a52504
MM
4675/* Override any gcc2 internal prototype to avoid an error. */
4676#ifdef __cplusplus
4677extern "C"
4678#endif
4679/* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
4681char yywrap ();
4682int
4683main ()
4684{
4685yywrap ();
4686 ;
4687 return 0;
4688}
4689_ACEOF
4690rm -f conftest.$ac_objext conftest$ac_exeext
4691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4692 (eval $ac_link) 2>conftest.er1
4693 ac_status=$?
4694 grep -v '^ *+' conftest.er1 >conftest.err
4695 rm -f conftest.er1
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -z "$ac_c_werror_flag"
4700 || test ! -s conftest.err'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; } &&
4706 { ac_try='test -s conftest$ac_exeext'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4708 (eval $ac_try) 2>&5
4709 ac_status=$?
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then
4712 ac_cv_lib_l_yywrap=yes
4713else
4714 echo "$as_me: failed program was:" >&5
4715sed 's/^/| /' conftest.$ac_ext >&5
4716
4717ac_cv_lib_l_yywrap=no
4718fi
4719rm -f conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext conftest.$ac_ext
4721LIBS=$ac_check_lib_save_LIBS
4722fi
4723echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4724echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4725if test $ac_cv_lib_l_yywrap = yes; then
4726 LEXLIB="-ll"
4727fi
4728
4729fi
4730
4731fi
4732
4733if test "x$LEX" != "x:"; then
4734 echo "$as_me:$LINENO: checking lex output file root" >&5
4735echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4736if test "${ac_cv_prog_lex_root+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4738else
4739 # The minimal lex program is just a single line: %%. But some broken lexes
4740# (Solaris, I think it was) want two %% lines, so accommodate them.
e5a52504
MM
4741cat >conftest.l <<_ACEOF
4742%%
4743%%
4744_ACEOF
4745{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4746 (eval $LEX conftest.l) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }
252b5132
RH
4750if test -f lex.yy.c; then
4751 ac_cv_prog_lex_root=lex.yy
4752elif test -f lexyy.c; then
4753 ac_cv_prog_lex_root=lexyy
4754else
e5a52504
MM
4755 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4756echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4757 { (exit 1); exit 1; }; }
252b5132
RH
4758fi
4759fi
e5a52504
MM
4760echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4761echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4762rm -f conftest.l
252b5132
RH
4763LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4764
e5a52504
MM
4765echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4766echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4767if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
4769else
4770 # POSIX says lex can declare yytext either as a pointer or an array; the
4771# default is implementation-dependent. Figure out which it is, since
4772# not all implementations provide the %pointer and %array declarations.
4773ac_cv_prog_lex_yytext_pointer=no
4774echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
e5a52504 4775ac_save_LIBS=$LIBS
252b5132 4776LIBS="$LIBS $LEXLIB"
e5a52504 4777cat >conftest.$ac_ext <<_ACEOF
252b5132 4778`cat $LEX_OUTPUT_ROOT.c`
e5a52504
MM
4779_ACEOF
4780rm -f conftest.$ac_objext conftest$ac_exeext
4781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4782 (eval $ac_link) 2>conftest.er1
4783 ac_status=$?
4784 grep -v '^ *+' conftest.er1 >conftest.err
4785 rm -f conftest.er1
4786 cat conftest.err >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); } &&
4789 { ac_try='test -z "$ac_c_werror_flag"
4790 || test ! -s conftest.err'
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); }; } &&
4796 { ac_try='test -s conftest$ac_exeext'
4797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 (eval $ac_try) 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
252b5132
RH
4802 ac_cv_prog_lex_yytext_pointer=yes
4803else
e5a52504
MM
4804 echo "$as_me: failed program was:" >&5
4805sed 's/^/| /' conftest.$ac_ext >&5
4806
252b5132 4807fi
e5a52504
MM
4808rm -f conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4810LIBS=$ac_save_LIBS
252b5132
RH
4811rm -f "${LEX_OUTPUT_ROOT}.c"
4812
4813fi
e5a52504
MM
4814echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4815echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
252b5132 4816if test $ac_cv_prog_lex_yytext_pointer = yes; then
e5a52504
MM
4817
4818cat >>confdefs.h <<\_ACEOF
252b5132 4819#define YYTEXT_POINTER 1
e5a52504
MM
4820_ACEOF
4821
4822fi
252b5132
RH
4823
4824fi
4825
4826
f0660b73 4827ALL_LINGUAS="fr tr ja es sv da zh_CN ru"
e5a52504
MM
4828if test -n "$ac_tool_prefix"; then
4829 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4830set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4831echo "$as_me:$LINENO: checking for $ac_word" >&5
4832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4833if test "${ac_cv_prog_RANLIB+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
ac48eca1
AO
4835else
4836 if test -n "$RANLIB"; then
4837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4838else
e5a52504
MM
4839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840for as_dir in $PATH
4841do
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4846 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4849 fi
4850done
4851done
4852
ac48eca1
AO
4853fi
4854fi
e5a52504 4855RANLIB=$ac_cv_prog_RANLIB
ac48eca1 4856if test -n "$RANLIB"; then
e5a52504
MM
4857 echo "$as_me:$LINENO: result: $RANLIB" >&5
4858echo "${ECHO_T}$RANLIB" >&6
4859else
4860 echo "$as_me:$LINENO: result: no" >&5
4861echo "${ECHO_T}no" >&6
4862fi
4863
4864fi
4865if test -z "$ac_cv_prog_RANLIB"; then
4866 ac_ct_RANLIB=$RANLIB
4867 # Extract the first word of "ranlib", so it can be a program name with args.
4868set dummy ranlib; ac_word=$2
4869echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874 if test -n "$ac_ct_RANLIB"; then
4875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880 IFS=$as_save_IFS
4881 test -z "$as_dir" && as_dir=.
4882 for ac_exec_ext in '' $ac_executable_extensions; do
4883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884 ac_cv_prog_ac_ct_RANLIB="ranlib"
4885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 break 2
4887 fi
4888done
4889done
4890
4891 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4892fi
4893fi
4894ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4895if test -n "$ac_ct_RANLIB"; then
4896 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4897echo "${ECHO_T}$ac_ct_RANLIB" >&6
4898else
4899 echo "$as_me:$LINENO: result: no" >&5
4900echo "${ECHO_T}no" >&6
4901fi
4902
4903 RANLIB=$ac_ct_RANLIB
4904else
4905 RANLIB="$ac_cv_prog_RANLIB"
4906fi
4907
4908ac_ext=c
4909ac_cpp='$CPP $CPPFLAGS'
4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4915# On Suns, sometimes $CPP names a directory.
4916if test -n "$CPP" && test -d "$CPP"; then
4917 CPP=
4918fi
4919if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4925 do
4926 ac_preproc_ok=false
4927for ac_c_preproc_warn_flag in '' yes
4928do
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941#ifdef __STDC__
4942# include <limits.h>
4943#else
4944# include <assert.h>
4945#endif
4946 Syntax error
4947_ACEOF
4948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4950 ac_status=$?
4951 grep -v '^ *+' conftest.er1 >conftest.err
4952 rm -f conftest.er1
4953 cat conftest.err >&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } >/dev/null; then
4956 if test -s conftest.err; then
4957 ac_cpp_err=$ac_c_preproc_warn_flag
4958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4959 else
4960 ac_cpp_err=
4961 fi
ac48eca1 4962else
e5a52504 4963 ac_cpp_err=yes
ac48eca1 4964fi
e5a52504
MM
4965if test -z "$ac_cpp_err"; then
4966 :
4967else
4968 echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 # Broken: fails on valid input.
4972continue
4973fi
4974rm -f conftest.err conftest.$ac_ext
4975
4976 # OK, works on sane cases. Now check whether non-existent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984#include <ac_nonexistent.h>
4985_ACEOF
4986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null; then
4994 if test -s conftest.err; then
4995 ac_cpp_err=$ac_c_preproc_warn_flag
4996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4997 else
4998 ac_cpp_err=
4999 fi
5000else
5001 ac_cpp_err=yes
5002fi
5003if test -z "$ac_cpp_err"; then
5004 # Broken: success on invalid input.
5005continue
5006else
5007 echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 # Passes both tests.
5011ac_preproc_ok=:
5012break
5013fi
5014rm -f conftest.err conftest.$ac_ext
5015
5016done
5017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5018rm -f conftest.err conftest.$ac_ext
5019if $ac_preproc_ok; then
5020 break
5021fi
5022
5023 done
5024 ac_cv_prog_CPP=$CPP
5025
5026fi
5027 CPP=$ac_cv_prog_CPP
5028else
5029 ac_cv_prog_CPP=$CPP
5030fi
5031echo "$as_me:$LINENO: result: $CPP" >&5
5032echo "${ECHO_T}$CPP" >&6
5033ac_preproc_ok=false
5034for ac_c_preproc_warn_flag in '' yes
5035do
5036 # Use a header file that comes with gcc, so configuring glibc
5037 # with a fresh cross-compiler works.
5038 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039 # <limits.h> exists even on freestanding compilers.
5040 # On the NeXT, cc -E runs the code through the compiler's parser,
5041 # not just through cpp. "Syntax error" is here to catch this case.
5042 cat >conftest.$ac_ext <<_ACEOF
5043/* confdefs.h. */
5044_ACEOF
5045cat confdefs.h >>conftest.$ac_ext
5046cat >>conftest.$ac_ext <<_ACEOF
5047/* end confdefs.h. */
5048#ifdef __STDC__
5049# include <limits.h>
5050#else
5051# include <assert.h>
5052#endif
5053 Syntax error
5054_ACEOF
5055if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057 ac_status=$?
5058 grep -v '^ *+' conftest.er1 >conftest.err
5059 rm -f conftest.er1
5060 cat conftest.err >&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); } >/dev/null; then
5063 if test -s conftest.err; then
5064 ac_cpp_err=$ac_c_preproc_warn_flag
5065 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5066 else
5067 ac_cpp_err=
5068 fi
5069else
5070 ac_cpp_err=yes
5071fi
5072if test -z "$ac_cpp_err"; then
5073 :
5074else
5075 echo "$as_me: failed program was:" >&5
5076sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 # Broken: fails on valid input.
5079continue
5080fi
5081rm -f conftest.err conftest.$ac_ext
5082
5083 # OK, works on sane cases. Now check whether non-existent headers
5084 # can be detected and how.
5085 cat >conftest.$ac_ext <<_ACEOF
5086/* confdefs.h. */
5087_ACEOF
5088cat confdefs.h >>conftest.$ac_ext
5089cat >>conftest.$ac_ext <<_ACEOF
5090/* end confdefs.h. */
5091#include <ac_nonexistent.h>
5092_ACEOF
5093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null; then
5101 if test -s conftest.err; then
5102 ac_cpp_err=$ac_c_preproc_warn_flag
5103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5104 else
5105 ac_cpp_err=
5106 fi
5107else
5108 ac_cpp_err=yes
5109fi
5110if test -z "$ac_cpp_err"; then
5111 # Broken: success on invalid input.
5112continue
5113else
5114 echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117 # Passes both tests.
5118ac_preproc_ok=:
5119break
5120fi
5121rm -f conftest.err conftest.$ac_ext
5122
5123done
5124# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5125rm -f conftest.err conftest.$ac_ext
5126if $ac_preproc_ok; then
5127 :
5128else
5129 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5130See \`config.log' for more details." >&5
5131echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5132See \`config.log' for more details." >&2;}
5133 { (exit 1); exit 1; }; }
5134fi
5135
5136ac_ext=c
5137ac_cpp='$CPP $CPPFLAGS'
5138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5140ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141
5142
5143echo "$as_me:$LINENO: checking for egrep" >&5
5144echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5145if test "${ac_cv_prog_egrep+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5149 then ac_cv_prog_egrep='grep -E'
5150 else ac_cv_prog_egrep='egrep'
5151 fi
5152fi
5153echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5154echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5155 EGREP=$ac_cv_prog_egrep
5156
ac48eca1 5157
e5a52504
MM
5158echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5159echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5160if test "${ac_cv_header_stdc+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5162else
e5a52504
MM
5163 cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
252b5132
RH
5169#include <stdlib.h>
5170#include <stdarg.h>
5171#include <string.h>
5172#include <float.h>
e5a52504
MM
5173
5174int
5175main ()
5176{
5177
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5184 (eval $ac_compile) 2>conftest.er1
5185 ac_status=$?
5186 grep -v '^ *+' conftest.er1 >conftest.err
5187 rm -f conftest.er1
5188 cat conftest.err >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } &&
5191 { ac_try='test -z "$ac_c_werror_flag"
5192 || test ! -s conftest.err'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; } &&
5198 { ac_try='test -s conftest.$ac_objext'
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; }; then
252b5132
RH
5204 ac_cv_header_stdc=yes
5205else
e5a52504
MM
5206 echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209ac_cv_header_stdc=no
252b5132 5210fi
e5a52504 5211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5212
5213if test $ac_cv_header_stdc = yes; then
5214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
e5a52504
MM
5215 cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h. */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h. */
252b5132 5221#include <string.h>
e5a52504
MM
5222
5223_ACEOF
252b5132 5224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 5225 $EGREP "memchr" >/dev/null 2>&1; then
252b5132
RH
5226 :
5227else
252b5132
RH
5228 ac_cv_header_stdc=no
5229fi
5230rm -f conftest*
5231
5232fi
5233
5234if test $ac_cv_header_stdc = yes; then
5235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
e5a52504
MM
5236 cat >conftest.$ac_ext <<_ACEOF
5237/* confdefs.h. */
5238_ACEOF
5239cat confdefs.h >>conftest.$ac_ext
5240cat >>conftest.$ac_ext <<_ACEOF
5241/* end confdefs.h. */
252b5132 5242#include <stdlib.h>
e5a52504
MM
5243
5244_ACEOF
252b5132 5245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 5246 $EGREP "free" >/dev/null 2>&1; then
252b5132
RH
5247 :
5248else
252b5132
RH
5249 ac_cv_header_stdc=no
5250fi
5251rm -f conftest*
5252
5253fi
5254
5255if test $ac_cv_header_stdc = yes; then
5256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
e5a52504 5257 if test "$cross_compiling" = yes; then
252b5132
RH
5258 :
5259else
e5a52504
MM
5260 cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h. */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h. */
252b5132 5266#include <ctype.h>
e5a52504
MM
5267#if ((' ' & 0x0FF) == 0x020)
5268# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5269# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5270#else
5271# define ISLOWER(c) \
5272 (('a' <= (c) && (c) <= 'i') \
5273 || ('j' <= (c) && (c) <= 'r') \
5274 || ('s' <= (c) && (c) <= 'z'))
5275# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5276#endif
252b5132 5277
e5a52504
MM
5278#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5279int
5280main ()
5281{
5282 int i;
5283 for (i = 0; i < 256; i++)
5284 if (XOR (islower (i), ISLOWER (i))
5285 || toupper (i) != TOUPPER (i))
5286 exit(2);
5287 exit (0);
5288}
5289_ACEOF
5290rm -f conftest$ac_exeext
5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5297 (eval $ac_try) 2>&5
5298 ac_status=$?
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
252b5132
RH
5301 :
5302else
e5a52504
MM
5303 echo "$as_me: program exited with status $ac_status" >&5
5304echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307( exit $ac_status )
5308ac_cv_header_stdc=no
252b5132 5309fi
e5a52504 5310rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 5311fi
252b5132
RH
5312fi
5313fi
e5a52504
MM
5314echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5315echo "${ECHO_T}$ac_cv_header_stdc" >&6
252b5132 5316if test $ac_cv_header_stdc = yes; then
e5a52504
MM
5317
5318cat >>confdefs.h <<\_ACEOF
252b5132 5319#define STDC_HEADERS 1
e5a52504 5320_ACEOF
252b5132
RH
5321
5322fi
5323
e5a52504
MM
5324echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5325echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5326if test "${ac_cv_c_const+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
252b5132 5335
e5a52504
MM
5336int
5337main ()
5338{
5339/* FIXME: Include the comments suggested by Paul. */
5340#ifndef __cplusplus
5341 /* Ultrix mips cc rejects this. */
5342 typedef int charset[2];
5343 const charset x;
5344 /* SunOS 4.1.1 cc rejects this. */
5345 char const *const *ccp;
5346 char **p;
5347 /* NEC SVR4.0.2 mips cc rejects this. */
5348 struct point {int x, y;};
5349 static struct point const zero = {0,0};
5350 /* AIX XL C 1.02.0.0 rejects this.
5351 It does not let you subtract one const X* pointer from another in
5352 an arm of an if-expression whose if-part is not a constant
5353 expression */
5354 const char *g = "string";
5355 ccp = &g + (g ? g-g : 0);
5356 /* HPUX 7.0 cc rejects these. */
5357 ++ccp;
5358 p = (char**) ccp;
5359 ccp = (char const *const *) p;
5360 { /* SCO 3.2v4 cc rejects this. */
5361 char *t;
5362 char const *s = 0 ? (char *) 0 : (char const *) 0;
5363
5364 *t++ = 0;
5365 }
5366 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5367 int x[] = {25, 17};
5368 const int *foo = &x[0];
5369 ++foo;
5370 }
5371 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5372 typedef const int *iptr;
5373 iptr p = 0;
5374 ++p;
5375 }
5376 { /* AIX XL C 1.02.0.0 rejects this saying
5377 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5378 struct s { int j; const int *ap[3]; };
5379 struct s *b; b->j = 5;
5380 }
5381 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5382 const int foo = 10;
5383 }
5384#endif
5385
5386 ;
5387 return 0;
5388}
5389_ACEOF
5390rm -f conftest.$ac_objext
5391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
252b5132
RH
5412 ac_cv_c_const=yes
5413else
e5a52504
MM
5414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417ac_cv_c_const=no
252b5132 5418fi
e5a52504 5419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5420fi
e5a52504
MM
5421echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5422echo "${ECHO_T}$ac_cv_c_const" >&6
252b5132 5423if test $ac_cv_c_const = no; then
e5a52504
MM
5424
5425cat >>confdefs.h <<\_ACEOF
5426#define const
5427_ACEOF
252b5132
RH
5428
5429fi
5430
e5a52504
MM
5431echo "$as_me:$LINENO: checking for inline" >&5
5432echo $ECHO_N "checking for inline... $ECHO_C" >&6
5433if test "${ac_cv_c_inline+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
5435else
5436 ac_cv_c_inline=no
5437for ac_kw in inline __inline__ __inline; do
e5a52504
MM
5438 cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#ifndef __cplusplus
5445typedef int foo_t;
5446static $ac_kw foo_t static_foo () {return 0; }
5447$ac_kw foo_t foo () {return 0; }
5448#endif
252b5132 5449
e5a52504
MM
5450_ACEOF
5451rm -f conftest.$ac_objext
5452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453 (eval $ac_compile) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
252b5132
RH
5473 ac_cv_c_inline=$ac_kw; break
5474else
e5a52504
MM
5475 echo "$as_me: failed program was:" >&5
5476sed 's/^/| /' conftest.$ac_ext >&5
5477
252b5132 5478fi
e5a52504 5479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
5480done
5481
5482fi
e5a52504
MM
5483echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5484echo "${ECHO_T}$ac_cv_c_inline" >&6
252b5132 5485
e5a52504
MM
5486
5487case $ac_cv_c_inline in
252b5132 5488 inline | yes) ;;
e5a52504
MM
5489 *)
5490 case $ac_cv_c_inline in
5491 no) ac_val=;;
5492 *) ac_val=$ac_cv_c_inline;;
5493 esac
5494 cat >>confdefs.h <<_ACEOF
5495#ifndef __cplusplus
5496#define inline $ac_val
5497#endif
5498_ACEOF
5499 ;;
252b5132
RH
5500esac
5501
e5a52504
MM
5502# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5513 inttypes.h stdint.h unistd.h
5514do
5515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516echo "$as_me:$LINENO: checking for $ac_header" >&5
5517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5518if eval "test \"\${$as_ac_Header+set}\" = set"; then
5519 echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521 cat >conftest.$ac_ext <<_ACEOF
5522/* confdefs.h. */
5523_ACEOF
5524cat confdefs.h >>conftest.$ac_ext
5525cat >>conftest.$ac_ext <<_ACEOF
5526/* end confdefs.h. */
5527$ac_includes_default
5528
5529#include <$ac_header>
5530_ACEOF
5531rm -f conftest.$ac_objext
5532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag"
5541 || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest.$ac_objext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 eval "$as_ac_Header=yes"
5554else
5555 echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558eval "$as_ac_Header=no"
5559fi
5560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5561fi
5562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5564if test `eval echo '${'$as_ac_Header'}'` = yes; then
5565 cat >>confdefs.h <<_ACEOF
5566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5567_ACEOF
5568
5569fi
5570
5571done
5572
5573
5574echo "$as_me:$LINENO: checking for off_t" >&5
5575echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5576if test "${ac_cv_type_off_t+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5578else
e5a52504
MM
5579 cat >conftest.$ac_ext <<_ACEOF
5580/* confdefs.h. */
5581_ACEOF
5582cat confdefs.h >>conftest.$ac_ext
5583cat >>conftest.$ac_ext <<_ACEOF
5584/* end confdefs.h. */
5585$ac_includes_default
5586int
5587main ()
5588{
5589if ((off_t *) 0)
5590 return 0;
5591if (sizeof (off_t))
5592 return 0;
5593 ;
5594 return 0;
5595}
5596_ACEOF
5597rm -f conftest.$ac_objext
5598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599 (eval $ac_compile) 2>conftest.er1
5600 ac_status=$?
5601 grep -v '^ *+' conftest.er1 >conftest.err
5602 rm -f conftest.er1
5603 cat conftest.err >&5
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); } &&
5606 { ac_try='test -z "$ac_c_werror_flag"
5607 || test ! -s conftest.err'
5608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 (eval $ac_try) 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 (eval $ac_try) 2>&5
5616 ac_status=$?
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); }; }; then
252b5132
RH
5619 ac_cv_type_off_t=yes
5620else
e5a52504
MM
5621 echo "$as_me: failed program was:" >&5
5622sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5623
e5a52504
MM
5624ac_cv_type_off_t=no
5625fi
5626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 5627fi
e5a52504
MM
5628echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5629echo "${ECHO_T}$ac_cv_type_off_t" >&6
5630if test $ac_cv_type_off_t = yes; then
5631 :
5632else
5633
5634cat >>confdefs.h <<_ACEOF
252b5132 5635#define off_t long
e5a52504 5636_ACEOF
252b5132
RH
5637
5638fi
5639
e5a52504
MM
5640echo "$as_me:$LINENO: checking for size_t" >&5
5641echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5642if test "${ac_cv_type_size_t+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5644else
e5a52504
MM
5645 cat >conftest.$ac_ext <<_ACEOF
5646/* confdefs.h. */
5647_ACEOF
5648cat confdefs.h >>conftest.$ac_ext
5649cat >>conftest.$ac_ext <<_ACEOF
5650/* end confdefs.h. */
5651$ac_includes_default
5652int
5653main ()
5654{
5655if ((size_t *) 0)
5656 return 0;
5657if (sizeof (size_t))
5658 return 0;
5659 ;
5660 return 0;
5661}
5662_ACEOF
5663rm -f conftest.$ac_objext
5664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665 (eval $ac_compile) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_c_werror_flag"
5673 || test ! -s conftest.err'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681 (eval $ac_try) 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; }; then
252b5132
RH
5685 ac_cv_type_size_t=yes
5686else
e5a52504
MM
5687 echo "$as_me: failed program was:" >&5
5688sed 's/^/| /' conftest.$ac_ext >&5
252b5132 5689
e5a52504 5690ac_cv_type_size_t=no
252b5132 5691fi
e5a52504
MM
5692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5693fi
5694echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5695echo "${ECHO_T}$ac_cv_type_size_t" >&6
5696if test $ac_cv_type_size_t = yes; then
5697 :
5698else
5699
5700cat >>confdefs.h <<_ACEOF
252b5132 5701#define size_t unsigned
e5a52504 5702_ACEOF
252b5132
RH
5703
5704fi
5705
5706# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5707# for constant arguments. Useless!
e5a52504
MM
5708echo "$as_me:$LINENO: checking for working alloca.h" >&5
5709echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5710if test "${ac_cv_working_alloca_h+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5712else
5713 cat >conftest.$ac_ext <<_ACEOF
5714/* confdefs.h. */
5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h. */
252b5132 5719#include <alloca.h>
e5a52504
MM
5720int
5721main ()
5722{
5723char *p = (char *) alloca (2 * sizeof (int));
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext conftest$ac_exeext
5729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5730 (eval $ac_link) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_c_werror_flag"
5738 || test ! -s conftest.err'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; } &&
5744 { ac_try='test -s conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746 (eval $ac_try) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_working_alloca_h=yes
5751else
5752 echo "$as_me: failed program was:" >&5
5753sed 's/^/| /' conftest.$ac_ext >&5
5754
5755ac_cv_working_alloca_h=no
5756fi
5757rm -f conftest.err conftest.$ac_objext \
5758 conftest$ac_exeext conftest.$ac_ext
5759fi
5760echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5761echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5762if test $ac_cv_working_alloca_h = yes; then
5763
5764cat >>confdefs.h <<\_ACEOF
252b5132 5765#define HAVE_ALLOCA_H 1
e5a52504 5766_ACEOF
252b5132
RH
5767
5768fi
5769
e5a52504
MM
5770echo "$as_me:$LINENO: checking for alloca" >&5
5771echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5772if test "${ac_cv_func_alloca_works+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5774else
e5a52504
MM
5775 cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
252b5132
RH
5781#ifdef __GNUC__
5782# define alloca __builtin_alloca
5783#else
5784# ifdef _MSC_VER
5785# include <malloc.h>
5786# define alloca _alloca
5787# else
5788# if HAVE_ALLOCA_H
5789# include <alloca.h>
5790# else
5791# ifdef _AIX
5792 #pragma alloca
5793# else
5794# ifndef alloca /* predefined by HP cc +Olibcalls */
5795char *alloca ();
5796# endif
5797# endif
5798# endif
5799# endif
5800#endif
5801
e5a52504
MM
5802int
5803main ()
5804{
5805char *p = (char *) alloca (1);
5806 ;
5807 return 0;
5808}
5809_ACEOF
5810rm -f conftest.$ac_objext conftest$ac_exeext
5811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_c_werror_flag"
5820 || test ! -s conftest.err'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest$ac_exeext'
5827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5828 (eval $ac_try) 2>&5
5829 ac_status=$?
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); }; }; then
252b5132
RH
5832 ac_cv_func_alloca_works=yes
5833else
e5a52504
MM
5834 echo "$as_me: failed program was:" >&5
5835sed 's/^/| /' conftest.$ac_ext >&5
5836
5837ac_cv_func_alloca_works=no
252b5132 5838fi
e5a52504
MM
5839rm -f conftest.err conftest.$ac_objext \
5840 conftest$ac_exeext conftest.$ac_ext
252b5132 5841fi
e5a52504
MM
5842echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5843echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 5844
252b5132 5845if test $ac_cv_func_alloca_works = yes; then
252b5132 5846
e5a52504
MM
5847cat >>confdefs.h <<\_ACEOF
5848#define HAVE_ALLOCA 1
5849_ACEOF
252b5132 5850
e5a52504 5851else
252b5132 5852 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
e5a52504
MM
5853# that cause trouble. Some versions do not even contain alloca or
5854# contain a buggy version. If you still want to use their alloca,
5855# use ar to extract alloca.o from them instead of compiling alloca.c.
5856
5857ALLOCA=alloca.$ac_objext
5858
5859cat >>confdefs.h <<\_ACEOF
252b5132 5860#define C_ALLOCA 1
e5a52504 5861_ACEOF
252b5132
RH
5862
5863
e5a52504
MM
5864echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5865echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5866if test "${ac_cv_os_cray+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 5868else
e5a52504
MM
5869 cat >conftest.$ac_ext <<_ACEOF
5870/* confdefs.h. */
5871_ACEOF
5872cat confdefs.h >>conftest.$ac_ext
5873cat >>conftest.$ac_ext <<_ACEOF
5874/* end confdefs.h. */
252b5132
RH
5875#if defined(CRAY) && ! defined(CRAY2)
5876webecray
5877#else
5878wenotbecray
5879#endif
5880
e5a52504 5881_ACEOF
252b5132 5882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 5883 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
5884 ac_cv_os_cray=yes
5885else
252b5132
RH
5886 ac_cv_os_cray=no
5887fi
5888rm -f conftest*
5889
5890fi
e5a52504
MM
5891echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5892echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 5893if test $ac_cv_os_cray = yes; then
e5a52504
MM
5894 for ac_func in _getb67 GETB67 getb67; do
5895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5896echo "$as_me:$LINENO: checking for $ac_func" >&5
5897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5898if eval "test \"\${$as_ac_var+set}\" = set"; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901 cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5909#define $ac_func innocuous_$ac_func
5910
252b5132 5911/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
5912 which can conflict with char $ac_func (); below.
5913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5914 <limits.h> exists even on freestanding compilers. */
5915
5916#ifdef __STDC__
5917# include <limits.h>
5918#else
5919# include <assert.h>
5920#endif
252b5132 5921
e5a52504 5922#undef $ac_func
252b5132 5923
e5a52504
MM
5924/* Override any gcc2 internal prototype to avoid an error. */
5925#ifdef __cplusplus
5926extern "C"
5927{
5928#endif
5929/* We use char because int might match the return type of a gcc2
5930 builtin and then its argument prototype would still apply. */
5931char $ac_func ();
252b5132
RH
5932/* The GNU C library defines this for functions which it implements
5933 to always fail with ENOSYS. Some functions are actually named
5934 something starting with __ and the normal name is an alias. */
5935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5936choke me
5937#else
e5a52504
MM
5938char (*f) () = $ac_func;
5939#endif
5940#ifdef __cplusplus
5941}
252b5132
RH
5942#endif
5943
e5a52504
MM
5944int
5945main ()
5946{
5947return f != $ac_func;
5948 ;
5949 return 0;
5950}
5951_ACEOF
5952rm -f conftest.$ac_objext conftest$ac_exeext
5953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5954 (eval $ac_link) 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag"
5962 || test ! -s conftest.err'
5963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5964 (eval $ac_try) 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest$ac_exeext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
5974 eval "$as_ac_var=yes"
5975else
5976 echo "$as_me: failed program was:" >&5
5977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979eval "$as_ac_var=no"
5980fi
5981rm -f conftest.err conftest.$ac_objext \
5982 conftest$ac_exeext conftest.$ac_ext
5983fi
5984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5986if test `eval echo '${'$as_ac_var'}'` = yes; then
5987
5988cat >>confdefs.h <<_ACEOF
252b5132 5989#define CRAY_STACKSEG_END $ac_func
e5a52504 5990_ACEOF
252b5132 5991
e5a52504 5992 break
252b5132
RH
5993fi
5994
e5a52504 5995 done
252b5132
RH
5996fi
5997
e5a52504
MM
5998echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5999echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6000if test "${ac_cv_c_stack_direction+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6002else
6003 if test "$cross_compiling" = yes; then
6004 ac_cv_c_stack_direction=0
6005else
e5a52504
MM
6006 cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h. */
6012int
252b5132
RH
6013find_stack_direction ()
6014{
6015 static char *addr = 0;
6016 auto char dummy;
6017 if (addr == 0)
6018 {
6019 addr = &dummy;
6020 return find_stack_direction ();
6021 }
6022 else
6023 return (&dummy > addr) ? 1 : -1;
6024}
e5a52504
MM
6025
6026int
252b5132
RH
6027main ()
6028{
e5a52504 6029 exit (find_stack_direction () < 0);
252b5132 6030}
e5a52504
MM
6031_ACEOF
6032rm -f conftest$ac_exeext
6033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6034 (eval $ac_link) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
252b5132
RH
6043 ac_cv_c_stack_direction=1
6044else
e5a52504
MM
6045 echo "$as_me: program exited with status $ac_status" >&5
6046echo "$as_me: failed program was:" >&5
6047sed 's/^/| /' conftest.$ac_ext >&5
6048
6049( exit $ac_status )
6050ac_cv_c_stack_direction=-1
252b5132 6051fi
e5a52504 6052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6053fi
252b5132 6054fi
e5a52504
MM
6055echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6056echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 6057
e5a52504 6058cat >>confdefs.h <<_ACEOF
252b5132 6059#define STACK_DIRECTION $ac_cv_c_stack_direction
e5a52504
MM
6060_ACEOF
6061
252b5132
RH
6062
6063fi
6064
e5a52504
MM
6065
6066
6067for ac_header in stdlib.h unistd.h
252b5132 6068do
e5a52504
MM
6069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6070if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo "$as_me:$LINENO: checking for $ac_header" >&5
6072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6073if eval "test \"\${$as_ac_Header+set}\" = set"; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075fi
6076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6078else
6079 # Is the header compilable?
6080echo "$as_me:$LINENO: checking $ac_header usability" >&5
6081echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6082cat >conftest.$ac_ext <<_ACEOF
6083/* confdefs.h. */
6084_ACEOF
6085cat confdefs.h >>conftest.$ac_ext
6086cat >>conftest.$ac_ext <<_ACEOF
6087/* end confdefs.h. */
6088$ac_includes_default
6089#include <$ac_header>
6090_ACEOF
6091rm -f conftest.$ac_objext
6092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag"
6101 || test ! -s conftest.err'
6102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103 (eval $ac_try) 2>&5
6104 ac_status=$?
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109 (eval $ac_try) 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_header_compiler=yes
6114else
6115 echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118ac_header_compiler=no
6119fi
6120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6122echo "${ECHO_T}$ac_header_compiler" >&6
6123
6124# Is the header present?
6125echo "$as_me:$LINENO: checking $ac_header presence" >&5
6126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6127cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133#include <$ac_header>
6134_ACEOF
6135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null; then
6143 if test -s conftest.err; then
6144 ac_cpp_err=$ac_c_preproc_warn_flag
6145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6146 else
6147 ac_cpp_err=
6148 fi
252b5132 6149else
e5a52504 6150 ac_cpp_err=yes
252b5132 6151fi
e5a52504
MM
6152if test -z "$ac_cpp_err"; then
6153 ac_header_preproc=yes
6154else
6155 echo "$as_me: failed program was:" >&5
6156sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ac_header_preproc=no
252b5132 6159fi
e5a52504
MM
6160rm -f conftest.err conftest.$ac_ext
6161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6162echo "${ECHO_T}$ac_header_preproc" >&6
6163
6164# So? What about this header?
6165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6166 yes:no: )
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6171 ac_header_preproc=yes
6172 ;;
6173 no:yes:* )
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6186 (
6187 cat <<\_ASBOX
6188## ------------------------------------------ ##
6189## Report this to the AC_PACKAGE_NAME lists. ##
6190## ------------------------------------------ ##
6191_ASBOX
6192 ) |
6193 sed "s/^/$as_me: WARNING: /" >&2
6194 ;;
6195esac
6196echo "$as_me:$LINENO: checking for $ac_header" >&5
6197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6200else
e5a52504
MM
6201 eval "$as_ac_Header=\$ac_header_preproc"
6202fi
6203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6205
252b5132 6206fi
e5a52504
MM
6207if test `eval echo '${'$as_ac_Header'}'` = yes; then
6208 cat >>confdefs.h <<_ACEOF
6209#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6210_ACEOF
6211
6212fi
6213
252b5132
RH
6214done
6215
e5a52504 6216
252b5132
RH
6217for ac_func in getpagesize
6218do
e5a52504
MM
6219as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6220echo "$as_me:$LINENO: checking for $ac_func" >&5
6221echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6222if eval "test \"\${$as_ac_var+set}\" = set"; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6233#define $ac_func innocuous_$ac_func
6234
252b5132 6235/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6236 which can conflict with char $ac_func (); below.
6237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6238 <limits.h> exists even on freestanding compilers. */
6239
6240#ifdef __STDC__
6241# include <limits.h>
6242#else
6243# include <assert.h>
6244#endif
252b5132 6245
e5a52504 6246#undef $ac_func
252b5132 6247
e5a52504
MM
6248/* Override any gcc2 internal prototype to avoid an error. */
6249#ifdef __cplusplus
6250extern "C"
6251{
6252#endif
6253/* We use char because int might match the return type of a gcc2
6254 builtin and then its argument prototype would still apply. */
6255char $ac_func ();
252b5132
RH
6256/* The GNU C library defines this for functions which it implements
6257 to always fail with ENOSYS. Some functions are actually named
6258 something starting with __ and the normal name is an alias. */
6259#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6260choke me
6261#else
e5a52504
MM
6262char (*f) () = $ac_func;
6263#endif
6264#ifdef __cplusplus
6265}
252b5132
RH
6266#endif
6267
e5a52504
MM
6268int
6269main ()
6270{
6271return f != $ac_func;
6272 ;
6273 return 0;
6274}
6275_ACEOF
6276rm -f conftest.$ac_objext conftest$ac_exeext
6277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag"
6286 || test ! -s conftest.err'
6287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 (eval $ac_try) 2>&5
6289 ac_status=$?
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); }; } &&
6292 { ac_try='test -s conftest$ac_exeext'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 eval "$as_ac_var=yes"
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303eval "$as_ac_var=no"
6304fi
6305rm -f conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext conftest.$ac_ext
6307fi
6308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6309echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6310if test `eval echo '${'$as_ac_var'}'` = yes; then
6311 cat >>confdefs.h <<_ACEOF
6312#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6313_ACEOF
252b5132 6314
252b5132
RH
6315fi
6316done
6317
e5a52504
MM
6318echo "$as_me:$LINENO: checking for working mmap" >&5
6319echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6320if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
6322else
6323 if test "$cross_compiling" = yes; then
6324 ac_cv_func_mmap_fixed_mapped=no
6325else
e5a52504
MM
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332$ac_includes_default
6333/* malloc might have been renamed as rpl_malloc. */
6334#undef malloc
252b5132
RH
6335
6336/* Thanks to Mike Haertel and Jim Avera for this test.
6337 Here is a matrix of mmap possibilities:
6338 mmap private not fixed
6339 mmap private fixed at somewhere currently unmapped
6340 mmap private fixed at somewhere already mapped
6341 mmap shared not fixed
6342 mmap shared fixed at somewhere currently unmapped
6343 mmap shared fixed at somewhere already mapped
6344 For private mappings, we should verify that changes cannot be read()
6345 back from the file, nor mmap's back from the file at a different
6346 address. (There have been systems where private was not correctly
6347 implemented like the infamous i386 svr4.0, and systems where the
e5a52504 6348 VM page cache was not coherent with the file system buffer cache
252b5132
RH
6349 like early versions of FreeBSD and possibly contemporary NetBSD.)
6350 For shared mappings, we should conversely verify that changes get
e5a52504 6351 propagated back to all the places they're supposed to be.
252b5132
RH
6352
6353 Grep wants private fixed already mapped.
6354 The main things grep needs to know about mmap are:
6355 * does it exist and is it safe to write into the mmap'd area
6356 * how to use it (BSD variants) */
e5a52504 6357
252b5132
RH
6358#include <fcntl.h>
6359#include <sys/mman.h>
6360
e5a52504
MM
6361#if !STDC_HEADERS && !HAVE_STDLIB_H
6362char *malloc ();
6ece5c52
AM
6363#endif
6364
252b5132 6365/* This mess was copied from the GNU getpagesize.h. */
e5a52504 6366#if !HAVE_GETPAGESIZE
252b5132 6367/* Assume that all systems that can run configure have sys/param.h. */
e5a52504 6368# if !HAVE_SYS_PARAM_H
252b5132
RH
6369# define HAVE_SYS_PARAM_H 1
6370# endif
6371
6372# ifdef _SC_PAGESIZE
6373# define getpagesize() sysconf(_SC_PAGESIZE)
6374# else /* no _SC_PAGESIZE */
e5a52504 6375# if HAVE_SYS_PARAM_H
252b5132
RH
6376# include <sys/param.h>
6377# ifdef EXEC_PAGESIZE
6378# define getpagesize() EXEC_PAGESIZE
6379# else /* no EXEC_PAGESIZE */
6380# ifdef NBPG
6381# define getpagesize() NBPG * CLSIZE
6382# ifndef CLSIZE
6383# define CLSIZE 1
6384# endif /* no CLSIZE */
6385# else /* no NBPG */
6386# ifdef NBPC
6387# define getpagesize() NBPC
6388# else /* no NBPC */
6389# ifdef PAGESIZE
6390# define getpagesize() PAGESIZE
6391# endif /* PAGESIZE */
6392# endif /* no NBPC */
6393# endif /* no NBPG */
6394# endif /* no EXEC_PAGESIZE */
6395# else /* no HAVE_SYS_PARAM_H */
6396# define getpagesize() 8192 /* punt totally */
6397# endif /* no HAVE_SYS_PARAM_H */
6398# endif /* no _SC_PAGESIZE */
6399
6400#endif /* no HAVE_GETPAGESIZE */
6401
252b5132 6402int
e5a52504 6403main ()
252b5132 6404{
e5a52504
MM
6405 char *data, *data2, *data3;
6406 int i, pagesize;
6407 int fd;
6408
6409 pagesize = getpagesize ();
6410
6411 /* First, make a file with some known garbage in it. */
6412 data = (char *) malloc (pagesize);
6413 if (!data)
6414 exit (1);
6415 for (i = 0; i < pagesize; ++i)
6416 *(data + i) = rand ();
6417 umask (0);
6418 fd = creat ("conftest.mmap", 0600);
6419 if (fd < 0)
6420 exit (1);
6421 if (write (fd, data, pagesize) != pagesize)
6422 exit (1);
6423 close (fd);
6424
6425 /* Next, try to mmap the file at a fixed address which already has
6426 something else allocated at it. If we can, also make sure that
6427 we see the same garbage. */
6428 fd = open ("conftest.mmap", O_RDWR);
6429 if (fd < 0)
6430 exit (1);
6431 data2 = (char *) malloc (2 * pagesize);
6432 if (!data2)
6433 exit (1);
6434 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6435 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6436 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6437 exit (1);
6438 for (i = 0; i < pagesize; ++i)
6439 if (*(data + i) != *(data2 + i))
6440 exit (1);
6441
6442 /* Finally, make sure that changes to the mapped area do not
6443 percolate back to the file as seen by read(). (This is a bug on
6444 some variants of i386 svr4.0.) */
6445 for (i = 0; i < pagesize; ++i)
6446 *(data2 + i) = *(data2 + i) + 1;
6447 data3 = (char *) malloc (pagesize);
6448 if (!data3)
6449 exit (1);
6450 if (read (fd, data3, pagesize) != pagesize)
6451 exit (1);
6452 for (i = 0; i < pagesize; ++i)
6453 if (*(data + i) != *(data3 + i))
6454 exit (1);
6455 close (fd);
6456 exit (0);
252b5132 6457}
e5a52504
MM
6458_ACEOF
6459rm -f conftest$ac_exeext
6460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466 (eval $ac_try) 2>&5
6467 ac_status=$?
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
252b5132
RH
6470 ac_cv_func_mmap_fixed_mapped=yes
6471else
e5a52504
MM
6472 echo "$as_me: program exited with status $ac_status" >&5
6473echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476( exit $ac_status )
6477ac_cv_func_mmap_fixed_mapped=no
252b5132 6478fi
e5a52504 6479rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 6480fi
252b5132 6481fi
e5a52504
MM
6482echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6483echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
252b5132 6484if test $ac_cv_func_mmap_fixed_mapped = yes; then
e5a52504
MM
6485
6486cat >>confdefs.h <<\_ACEOF
252b5132 6487#define HAVE_MMAP 1
e5a52504 6488_ACEOF
252b5132
RH
6489
6490fi
e5a52504
MM
6491rm -f conftest.mmap
6492
6493
6494
6495
6496
6497
6498
252b5132 6499
e5a52504
MM
6500
6501
6502
6503for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
252b5132
RH
6504unistd.h values.h sys/param.h
6505do
e5a52504
MM
6506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507if eval "test \"\${$as_ac_Header+set}\" = set"; then
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512fi
6513echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6514echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6515else
6516 # Is the header compilable?
6517echo "$as_me:$LINENO: checking $ac_header usability" >&5
6518echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6519cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h. */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h. */
6525$ac_includes_default
6526#include <$ac_header>
6527_ACEOF
6528rm -f conftest.$ac_objext
6529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530 (eval $ac_compile) 2>conftest.er1
6531 ac_status=$?
6532 grep -v '^ *+' conftest.er1 >conftest.err
6533 rm -f conftest.er1
6534 cat conftest.err >&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try='test -z "$ac_c_werror_flag"
6538 || test ! -s conftest.err'
6539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 (eval $ac_try) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_header_compiler=yes
6551else
6552 echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555ac_header_compiler=no
6556fi
6557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6558echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6559echo "${ECHO_T}$ac_header_compiler" >&6
6560
6561# Is the header present?
6562echo "$as_me:$LINENO: checking $ac_header presence" >&5
6563echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6564cat >conftest.$ac_ext <<_ACEOF
6565/* confdefs.h. */
6566_ACEOF
6567cat confdefs.h >>conftest.$ac_ext
6568cat >>conftest.$ac_ext <<_ACEOF
6569/* end confdefs.h. */
6570#include <$ac_header>
6571_ACEOF
6572if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } >/dev/null; then
6580 if test -s conftest.err; then
6581 ac_cpp_err=$ac_c_preproc_warn_flag
6582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6583 else
6584 ac_cpp_err=
6585 fi
252b5132 6586else
e5a52504 6587 ac_cpp_err=yes
252b5132 6588fi
e5a52504
MM
6589if test -z "$ac_cpp_err"; then
6590 ac_header_preproc=yes
6591else
6592 echo "$as_me: failed program was:" >&5
6593sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 ac_header_preproc=no
252b5132 6596fi
e5a52504
MM
6597rm -f conftest.err conftest.$ac_ext
6598echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6599echo "${ECHO_T}$ac_header_preproc" >&6
6600
6601# So? What about this header?
6602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6603 yes:no: )
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6605echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6607echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6608 ac_header_preproc=yes
6609 ;;
6610 no:yes:* )
6611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6612echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6614echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6616echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6618echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6620echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6622echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6623 (
6624 cat <<\_ASBOX
6625## ------------------------------------------ ##
6626## Report this to the AC_PACKAGE_NAME lists. ##
6627## ------------------------------------------ ##
6628_ASBOX
6629 ) |
6630 sed "s/^/$as_me: WARNING: /" >&2
6631 ;;
6632esac
6633echo "$as_me:$LINENO: checking for $ac_header" >&5
6634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6635if eval "test \"\${$as_ac_Header+set}\" = set"; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 6637else
e5a52504 6638 eval "$as_ac_Header=\$ac_header_preproc"
252b5132 6639fi
e5a52504
MM
6640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6642
6643fi
6644if test `eval echo '${'$as_ac_Header'}'` = yes; then
6645 cat >>confdefs.h <<_ACEOF
6646#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6647_ACEOF
6648
6649fi
6650
252b5132
RH
6651done
6652
e5a52504
MM
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
252b5132
RH
6664__argz_count __argz_stringify __argz_next
6665do
e5a52504
MM
6666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6667echo "$as_me:$LINENO: checking for $ac_func" >&5
6668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6669if eval "test \"\${$as_ac_var+set}\" = set"; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672 cat >conftest.$ac_ext <<_ACEOF
6673/* confdefs.h. */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h. */
6678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6680#define $ac_func innocuous_$ac_func
6681
252b5132 6682/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6683 which can conflict with char $ac_func (); below.
6684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6685 <limits.h> exists even on freestanding compilers. */
6686
6687#ifdef __STDC__
6688# include <limits.h>
6689#else
6690# include <assert.h>
6691#endif
252b5132 6692
e5a52504 6693#undef $ac_func
252b5132 6694
e5a52504
MM
6695/* Override any gcc2 internal prototype to avoid an error. */
6696#ifdef __cplusplus
6697extern "C"
6698{
6699#endif
6700/* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6702char $ac_func ();
252b5132
RH
6703/* The GNU C library defines this for functions which it implements
6704 to always fail with ENOSYS. Some functions are actually named
6705 something starting with __ and the normal name is an alias. */
6706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6707choke me
6708#else
e5a52504
MM
6709char (*f) () = $ac_func;
6710#endif
6711#ifdef __cplusplus
6712}
252b5132
RH
6713#endif
6714
e5a52504
MM
6715int
6716main ()
6717{
6718return f != $ac_func;
6719 ;
6720 return 0;
6721}
6722_ACEOF
6723rm -f conftest.$ac_objext conftest$ac_exeext
6724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6725 (eval $ac_link) 2>conftest.er1
6726 ac_status=$?
6727 grep -v '^ *+' conftest.er1 >conftest.err
6728 rm -f conftest.er1
6729 cat conftest.err >&5
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); } &&
6732 { ac_try='test -z "$ac_c_werror_flag"
6733 || test ! -s conftest.err'
6734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 (eval $ac_try) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); }; } &&
6739 { ac_try='test -s conftest$ac_exeext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 eval "$as_ac_var=yes"
6746else
6747 echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750eval "$as_ac_var=no"
6751fi
6752rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6754fi
6755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6756echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6757if test `eval echo '${'$as_ac_var'}'` = yes; then
6758 cat >>confdefs.h <<_ACEOF
6759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6760_ACEOF
252b5132 6761
252b5132
RH
6762fi
6763done
6764
6765
6766 if test "${ac_cv_func_stpcpy+set}" != "set"; then
e5a52504
MM
6767
6768for ac_func in stpcpy
252b5132 6769do
e5a52504
MM
6770as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6771echo "$as_me:$LINENO: checking for $ac_func" >&5
6772echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6773if eval "test \"\${$as_ac_var+set}\" = set"; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6784#define $ac_func innocuous_$ac_func
6785
252b5132 6786/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
6787 which can conflict with char $ac_func (); below.
6788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6789 <limits.h> exists even on freestanding compilers. */
6790
6791#ifdef __STDC__
6792# include <limits.h>
6793#else
6794# include <assert.h>
6795#endif
252b5132 6796
e5a52504 6797#undef $ac_func
252b5132 6798
e5a52504
MM
6799/* Override any gcc2 internal prototype to avoid an error. */
6800#ifdef __cplusplus
6801extern "C"
6802{
6803#endif
6804/* We use char because int might match the return type of a gcc2
6805 builtin and then its argument prototype would still apply. */
6806char $ac_func ();
252b5132
RH
6807/* The GNU C library defines this for functions which it implements
6808 to always fail with ENOSYS. Some functions are actually named
6809 something starting with __ and the normal name is an alias. */
6810#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6811choke me
6812#else
e5a52504
MM
6813char (*f) () = $ac_func;
6814#endif
6815#ifdef __cplusplus
6816}
252b5132
RH
6817#endif
6818
e5a52504
MM
6819int
6820main ()
6821{
6822return f != $ac_func;
6823 ;
6824 return 0;
6825}
6826_ACEOF
6827rm -f conftest.$ac_objext conftest$ac_exeext
6828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829 (eval $ac_link) 2>conftest.er1
6830 ac_status=$?
6831 grep -v '^ *+' conftest.er1 >conftest.err
6832 rm -f conftest.er1
6833 cat conftest.err >&5
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); } &&
6836 { ac_try='test -z "$ac_c_werror_flag"
6837 || test ! -s conftest.err'
6838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 (eval $ac_try) 2>&5
6840 ac_status=$?
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); }; } &&
6843 { ac_try='test -s conftest$ac_exeext'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; }; then
6849 eval "$as_ac_var=yes"
6850else
6851 echo "$as_me: failed program was:" >&5
6852sed 's/^/| /' conftest.$ac_ext >&5
6853
6854eval "$as_ac_var=no"
6855fi
6856rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858fi
6859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6861if test `eval echo '${'$as_ac_var'}'` = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6864_ACEOF
252b5132 6865
252b5132
RH
6866fi
6867done
6868
6869 fi
6870 if test "${ac_cv_func_stpcpy}" = "yes"; then
e5a52504
MM
6871
6872cat >>confdefs.h <<\_ACEOF
252b5132 6873#define HAVE_STPCPY 1
e5a52504 6874_ACEOF
252b5132
RH
6875
6876 fi
6877
6878 if test $ac_cv_header_locale_h = yes; then
e5a52504
MM
6879 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6880echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6881if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6883else
6884 cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h. */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h. */
252b5132 6890#include <locale.h>
e5a52504
MM
6891int
6892main ()
6893{
252b5132 6894return LC_MESSAGES
e5a52504
MM
6895 ;
6896 return 0;
6897}
6898_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext
6900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest$ac_exeext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
252b5132
RH
6921 am_cv_val_LC_MESSAGES=yes
6922else
e5a52504
MM
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
6925
6926am_cv_val_LC_MESSAGES=no
252b5132 6927fi
e5a52504
MM
6928rm -f conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
252b5132 6930fi
e5a52504
MM
6931echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6932echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
252b5132 6933 if test $am_cv_val_LC_MESSAGES = yes; then
e5a52504
MM
6934
6935cat >>confdefs.h <<\_ACEOF
252b5132 6936#define HAVE_LC_MESSAGES 1
e5a52504 6937_ACEOF
252b5132
RH
6938
6939 fi
6940 fi
e5a52504
MM
6941 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6942echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
252b5132
RH
6943 # Check whether --enable-nls or --disable-nls was given.
6944if test "${enable_nls+set}" = set; then
6945 enableval="$enable_nls"
6946 USE_NLS=$enableval
6947else
6948 USE_NLS=yes
e5a52504
MM
6949fi;
6950 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6951echo "${ECHO_T}$USE_NLS" >&6
252b5132 6952
252b5132
RH
6953
6954 USE_INCLUDED_LIBINTL=no
6955
6956 if test "$USE_NLS" = "yes"; then
e5a52504
MM
6957
6958cat >>confdefs.h <<\_ACEOF
252b5132 6959#define ENABLE_NLS 1
e5a52504
MM
6960_ACEOF
6961
6962 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6963echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
252b5132 6964
e5a52504 6965# Check whether --with-included-gettext or --without-included-gettext was given.
252b5132
RH
6966if test "${with_included_gettext+set}" = set; then
6967 withval="$with_included_gettext"
6968 nls_cv_force_use_gnu_gettext=$withval
6969else
6970 nls_cv_force_use_gnu_gettext=no
e5a52504
MM
6971fi;
6972 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6973echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
252b5132
RH
6974
6975 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6976 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6977 nls_cv_header_intl=
6978 nls_cv_header_libgt=
6979 CATOBJEXT=NONE
6980
e5a52504
MM
6981 if test "${ac_cv_header_libintl_h+set}" = set; then
6982 echo "$as_me:$LINENO: checking for libintl.h" >&5
6983echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
6984if test "${ac_cv_header_libintl_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986fi
6987echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6988echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
6989else
6990 # Is the header compilable?
6991echo "$as_me:$LINENO: checking libintl.h usability" >&5
6992echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
6993cat >conftest.$ac_ext <<_ACEOF
6994/* confdefs.h. */
6995_ACEOF
6996cat confdefs.h >>conftest.$ac_ext
6997cat >>conftest.$ac_ext <<_ACEOF
6998/* end confdefs.h. */
6999$ac_includes_default
7000#include <libintl.h>
7001_ACEOF
7002rm -f conftest.$ac_objext
7003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004 (eval $ac_compile) 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest.$ac_objext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_header_compiler=yes
7025else
7026 echo "$as_me: failed program was:" >&5
7027sed 's/^/| /' conftest.$ac_ext >&5
7028
7029ac_header_compiler=no
7030fi
7031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7033echo "${ECHO_T}$ac_header_compiler" >&6
7034
7035# Is the header present?
7036echo "$as_me:$LINENO: checking libintl.h presence" >&5
7037echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7038cat >conftest.$ac_ext <<_ACEOF
7039/* confdefs.h. */
7040_ACEOF
7041cat confdefs.h >>conftest.$ac_ext
7042cat >>conftest.$ac_ext <<_ACEOF
7043/* end confdefs.h. */
7044#include <libintl.h>
7045_ACEOF
7046if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } >/dev/null; then
7054 if test -s conftest.err; then
7055 ac_cpp_err=$ac_c_preproc_warn_flag
7056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7057 else
7058 ac_cpp_err=
7059 fi
7060else
7061 ac_cpp_err=yes
7062fi
7063if test -z "$ac_cpp_err"; then
7064 ac_header_preproc=yes
252b5132 7065else
e5a52504
MM
7066 echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_header_preproc=no
7070fi
7071rm -f conftest.err conftest.$ac_ext
7072echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7073echo "${ECHO_T}$ac_header_preproc" >&6
7074
7075# So? What about this header?
7076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7077 yes:no: )
7078 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7079echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7081echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7082 ac_header_preproc=yes
7083 ;;
7084 no:yes:* )
7085 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7086echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7088echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7090echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7092echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7093 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7094echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7096echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7097 (
7098 cat <<\_ASBOX
7099## ------------------------------------------ ##
7100## Report this to the AC_PACKAGE_NAME lists. ##
7101## ------------------------------------------ ##
7102_ASBOX
7103 ) |
7104 sed "s/^/$as_me: WARNING: /" >&2
7105 ;;
7106esac
7107echo "$as_me:$LINENO: checking for libintl.h" >&5
7108echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7109if test "${ac_cv_header_libintl_h+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7111else
e5a52504 7112 ac_cv_header_libintl_h=$ac_header_preproc
252b5132 7113fi
e5a52504
MM
7114echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7115echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7116
252b5132 7117fi
e5a52504
MM
7118if test $ac_cv_header_libintl_h = yes; then
7119 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7120echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7121if test "${gt_cv_func_gettext_libc+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7123else
e5a52504
MM
7124 cat >conftest.$ac_ext <<_ACEOF
7125/* confdefs.h. */
7126_ACEOF
7127cat confdefs.h >>conftest.$ac_ext
7128cat >>conftest.$ac_ext <<_ACEOF
7129/* end confdefs.h. */
252b5132 7130#include <libintl.h>
e5a52504
MM
7131int
7132main ()
7133{
252b5132 7134return (int) gettext ("")
e5a52504
MM
7135 ;
7136 return 0;
7137}
7138_ACEOF
7139rm -f conftest.$ac_objext conftest$ac_exeext
7140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -z "$ac_c_werror_flag"
7149 || test ! -s conftest.err'
7150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151 (eval $ac_try) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7157 (eval $ac_try) 2>&5
7158 ac_status=$?
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
252b5132
RH
7161 gt_cv_func_gettext_libc=yes
7162else
e5a52504
MM
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166gt_cv_func_gettext_libc=no
252b5132 7167fi
e5a52504
MM
7168rm -f conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext conftest.$ac_ext
252b5132 7170fi
e5a52504
MM
7171echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7172echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
252b5132
RH
7173
7174 if test "$gt_cv_func_gettext_libc" != "yes"; then
e5a52504
MM
7175 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7176echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7177if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7179else
e5a52504 7180 ac_check_lib_save_LIBS=$LIBS
252b5132 7181LIBS="-lintl $LIBS"
e5a52504
MM
7182cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h. */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h. */
7188
252b5132 7189/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
7190#ifdef __cplusplus
7191extern "C"
7192#endif
252b5132 7193/* We use char because int might match the return type of a gcc2
e5a52504
MM
7194 builtin and then its argument prototype would still apply. */
7195char bindtextdomain ();
7196int
7197main ()
7198{
7199bindtextdomain ();
7200 ;
7201 return 0;
7202}
7203_ACEOF
7204rm -f conftest.$ac_objext conftest$ac_exeext
7205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206 (eval $ac_link) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_c_werror_flag"
7214 || test ! -s conftest.err'
7215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 (eval $ac_try) 2>&5
7217 ac_status=$?
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; } &&
7220 { ac_try='test -s conftest$ac_exeext'
7221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 (eval $ac_try) 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; }; then
7226 ac_cv_lib_intl_bindtextdomain=yes
7227else
7228 echo "$as_me: failed program was:" >&5
7229sed 's/^/| /' conftest.$ac_ext >&5
7230
7231ac_cv_lib_intl_bindtextdomain=no
7232fi
7233rm -f conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7235LIBS=$ac_check_lib_save_LIBS
7236fi
7237echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7238echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7239if test $ac_cv_lib_intl_bindtextdomain = yes; then
7240 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7241echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7242if test "${gt_cv_func_gettext_libintl+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245 cat >conftest.$ac_ext <<_ACEOF
7246/* confdefs.h. */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h. */
252b5132 7251
e5a52504
MM
7252int
7253main ()
7254{
252b5132 7255return (int) gettext ("")
e5a52504
MM
7256 ;
7257 return 0;
7258}
7259_ACEOF
7260rm -f conftest.$ac_objext conftest$ac_exeext
7261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>conftest.er1
7263 ac_status=$?
7264 grep -v '^ *+' conftest.er1 >conftest.err
7265 rm -f conftest.er1
7266 cat conftest.err >&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -z "$ac_c_werror_flag"
7270 || test ! -s conftest.err'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; } &&
7276 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
252b5132
RH
7282 gt_cv_func_gettext_libintl=yes
7283else
e5a52504
MM
7284 echo "$as_me: failed program was:" >&5
7285sed 's/^/| /' conftest.$ac_ext >&5
7286
7287gt_cv_func_gettext_libintl=no
252b5132 7288fi
e5a52504
MM
7289rm -f conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
252b5132 7291fi
e5a52504
MM
7292echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7293echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
252b5132
RH
7294fi
7295
7296 fi
7297
7298 if test "$gt_cv_func_gettext_libc" = "yes" \
7299 || test "$gt_cv_func_gettext_libintl" = "yes"; then
e5a52504
MM
7300
7301cat >>confdefs.h <<\_ACEOF
252b5132 7302#define HAVE_GETTEXT 1
e5a52504 7303_ACEOF
252b5132
RH
7304
7305 # Extract the first word of "msgfmt", so it can be a program name with args.
7306set dummy msgfmt; ac_word=$2
e5a52504
MM
7307echo "$as_me:$LINENO: checking for $ac_word" >&5
7308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309if test "${ac_cv_path_MSGFMT+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7311else
7312 case "$MSGFMT" in
7313 /*)
7314 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7315 ;;
7316 *)
7317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7318 for ac_dir in $PATH; do
7319 test -z "$ac_dir" && ac_dir=.
7320 if test -f $ac_dir/$ac_word; then
7321 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7322 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7323 break
7324 fi
7325 fi
7326 done
7327 IFS="$ac_save_ifs"
7328 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7329 ;;
7330esac
7331fi
7332MSGFMT="$ac_cv_path_MSGFMT"
7333if test -n "$MSGFMT"; then
e5a52504
MM
7334 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7335echo "${ECHO_T}$MSGFMT" >&6
252b5132 7336else
e5a52504
MM
7337 echo "$as_me:$LINENO: result: no" >&5
7338echo "${ECHO_T}no" >&6
252b5132
RH
7339fi
7340 if test "$MSGFMT" != "no"; then
e5a52504
MM
7341
7342for ac_func in dcgettext
252b5132 7343do
e5a52504
MM
7344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7345echo "$as_me:$LINENO: checking for $ac_func" >&5
7346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7347if eval "test \"\${$as_ac_var+set}\" = set"; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350 cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h. */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h. */
7356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7358#define $ac_func innocuous_$ac_func
7359
252b5132 7360/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
7361 which can conflict with char $ac_func (); below.
7362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7363 <limits.h> exists even on freestanding compilers. */
252b5132 7364
e5a52504
MM
7365#ifdef __STDC__
7366# include <limits.h>
7367#else
7368# include <assert.h>
7369#endif
252b5132 7370
e5a52504
MM
7371#undef $ac_func
7372
7373/* Override any gcc2 internal prototype to avoid an error. */
7374#ifdef __cplusplus
7375extern "C"
7376{
7377#endif
7378/* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7380char $ac_func ();
252b5132
RH
7381/* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7385choke me
7386#else
e5a52504
MM
7387char (*f) () = $ac_func;
7388#endif
7389#ifdef __cplusplus
7390}
252b5132
RH
7391#endif
7392
e5a52504
MM
7393int
7394main ()
7395{
7396return f != $ac_func;
7397 ;
7398 return 0;
7399}
7400_ACEOF
7401rm -f conftest.$ac_objext conftest$ac_exeext
7402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag"
7411 || test ! -s conftest.err'
7412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 (eval $ac_try) 2>&5
7414 ac_status=$?
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); }; } &&
7417 { ac_try='test -s conftest$ac_exeext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 (eval $ac_try) 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7423 eval "$as_ac_var=yes"
7424else
7425 echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428eval "$as_ac_var=no"
7429fi
7430rm -f conftest.err conftest.$ac_objext \
7431 conftest$ac_exeext conftest.$ac_ext
7432fi
7433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7435if test `eval echo '${'$as_ac_var'}'` = yes; then
7436 cat >>confdefs.h <<_ACEOF
7437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7438_ACEOF
252b5132 7439
252b5132
RH
7440fi
7441done
7442
7443 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7444set dummy gmsgfmt; ac_word=$2
e5a52504
MM
7445echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447if test "${ac_cv_path_GMSGFMT+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7449else
e5a52504
MM
7450 case $GMSGFMT in
7451 [\\/]* | ?:[\\/]*)
252b5132
RH
7452 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7453 ;;
252b5132 7454 *)
e5a52504
MM
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467done
7468
252b5132
RH
7469 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7470 ;;
7471esac
7472fi
e5a52504
MM
7473GMSGFMT=$ac_cv_path_GMSGFMT
7474
252b5132 7475if test -n "$GMSGFMT"; then
e5a52504
MM
7476 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7477echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7478else
e5a52504
MM
7479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
252b5132
RH
7481fi
7482
7483 # Extract the first word of "xgettext", so it can be a program name with args.
7484set dummy xgettext; ac_word=$2
e5a52504
MM
7485echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487if test "${ac_cv_path_XGETTEXT+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7489else
7490 case "$XGETTEXT" in
7491 /*)
7492 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7496 for ac_dir in $PATH; do
7497 test -z "$ac_dir" && ac_dir=.
7498 if test -f $ac_dir/$ac_word; then
7499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7500 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7501 break
7502 fi
7503 fi
7504 done
7505 IFS="$ac_save_ifs"
7506 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7507 ;;
7508esac
7509fi
7510XGETTEXT="$ac_cv_path_XGETTEXT"
7511if test -n "$XGETTEXT"; then
e5a52504
MM
7512 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7513echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7514else
e5a52504
MM
7515 echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
252b5132
RH
7517fi
7518
e5a52504
MM
7519 cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
252b5132 7525
e5a52504
MM
7526int
7527main ()
7528{
252b5132
RH
7529extern int _nl_msg_cat_cntr;
7530 return _nl_msg_cat_cntr
e5a52504
MM
7531 ;
7532 return 0;
7533}
7534_ACEOF
7535rm -f conftest.$ac_objext conftest$ac_exeext
7536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7537 (eval $ac_link) 2>conftest.er1
7538 ac_status=$?
7539 grep -v '^ *+' conftest.er1 >conftest.err
7540 rm -f conftest.er1
7541 cat conftest.err >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); } &&
7544 { ac_try='test -z "$ac_c_werror_flag"
7545 || test ! -s conftest.err'
7546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 (eval $ac_try) 2>&5
7548 ac_status=$?
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }; } &&
7551 { ac_try='test -s conftest$ac_exeext'
7552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7553 (eval $ac_try) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; }; then
252b5132
RH
7557 CATOBJEXT=.gmo
7558 DATADIRNAME=share
7559else
e5a52504
MM
7560 echo "$as_me: failed program was:" >&5
7561sed 's/^/| /' conftest.$ac_ext >&5
7562
7563CATOBJEXT=.mo
252b5132
RH
7564 DATADIRNAME=lib
7565fi
e5a52504
MM
7566rm -f conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
252b5132
RH
7568 INSTOBJEXT=.mo
7569 fi
7570 fi
e5a52504 7571
252b5132
RH
7572fi
7573
7574
e5a52504
MM
7575
7576
252b5132
RH
7577 if test "$CATOBJEXT" = "NONE"; then
7578 nls_cv_use_gnu_gettext=yes
7579 fi
7580 fi
7581
7582 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7583 INTLOBJS="\$(GETTOBJS)"
7584 # Extract the first word of "msgfmt", so it can be a program name with args.
7585set dummy msgfmt; ac_word=$2
e5a52504
MM
7586echo "$as_me:$LINENO: checking for $ac_word" >&5
7587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7588if test "${ac_cv_path_MSGFMT+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7590else
7591 case "$MSGFMT" in
7592 /*)
7593 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7594 ;;
7595 *)
7596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7597 for ac_dir in $PATH; do
7598 test -z "$ac_dir" && ac_dir=.
7599 if test -f $ac_dir/$ac_word; then
7600 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7601 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7602 break
7603 fi
7604 fi
7605 done
7606 IFS="$ac_save_ifs"
7607 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7608 ;;
7609esac
7610fi
7611MSGFMT="$ac_cv_path_MSGFMT"
7612if test -n "$MSGFMT"; then
e5a52504
MM
7613 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7614echo "${ECHO_T}$MSGFMT" >&6
252b5132 7615else
e5a52504
MM
7616 echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6
252b5132
RH
7618fi
7619
7620 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7621set dummy gmsgfmt; ac_word=$2
e5a52504
MM
7622echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7624if test "${ac_cv_path_GMSGFMT+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 7626else
e5a52504
MM
7627 case $GMSGFMT in
7628 [\\/]* | ?:[\\/]*)
252b5132
RH
7629 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7630 ;;
252b5132 7631 *)
e5a52504
MM
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7639 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645
252b5132
RH
7646 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7647 ;;
7648esac
7649fi
e5a52504
MM
7650GMSGFMT=$ac_cv_path_GMSGFMT
7651
252b5132 7652if test -n "$GMSGFMT"; then
e5a52504
MM
7653 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7654echo "${ECHO_T}$GMSGFMT" >&6
252b5132 7655else
e5a52504
MM
7656 echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6
252b5132
RH
7658fi
7659
7660 # Extract the first word of "xgettext", so it can be a program name with args.
7661set dummy xgettext; ac_word=$2
e5a52504
MM
7662echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664if test "${ac_cv_path_XGETTEXT+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
7666else
7667 case "$XGETTEXT" in
7668 /*)
7669 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7670 ;;
7671 *)
7672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7673 for ac_dir in $PATH; do
7674 test -z "$ac_dir" && ac_dir=.
7675 if test -f $ac_dir/$ac_word; then
7676 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7677 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7678 break
7679 fi
7680 fi
7681 done
7682 IFS="$ac_save_ifs"
7683 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7684 ;;
7685esac
7686fi
7687XGETTEXT="$ac_cv_path_XGETTEXT"
7688if test -n "$XGETTEXT"; then
e5a52504
MM
7689 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7690echo "${ECHO_T}$XGETTEXT" >&6
252b5132 7691else
e5a52504
MM
7692 echo "$as_me:$LINENO: result: no" >&5
7693echo "${ECHO_T}no" >&6
252b5132
RH
7694fi
7695
e5a52504 7696
252b5132
RH
7697 USE_INCLUDED_LIBINTL=yes
7698 CATOBJEXT=.gmo
7699 INSTOBJEXT=.mo
7700 DATADIRNAME=share
7701 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7702 INTLLIBS=$INTLDEPS
7703 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7704 nls_cv_header_intl=libintl.h
7705 nls_cv_header_libgt=libgettext.h
7706 fi
7707
7708 if test "$XGETTEXT" != ":"; then
7709 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7710 : ;
7711 else
e5a52504
MM
7712 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7713echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
252b5132
RH
7714 XGETTEXT=":"
7715 fi
7716 fi
7717
7718 # We need to process the po/ directory.
7719 POSUB=po
7720 else
7721 DATADIRNAME=share
7722 nls_cv_header_intl=libintl.h
7723 nls_cv_header_libgt=libgettext.h
7724 fi
7725
7726 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7727 # because some of the sources are only built for this goal.
7728 if test "$PACKAGE" = gettext; then
7729 USE_NLS=yes
7730 USE_INCLUDED_LIBINTL=yes
7731 fi
7732
7733 for lang in $ALL_LINGUAS; do
7734 GMOFILES="$GMOFILES $lang.gmo"
7735 POFILES="$POFILES $lang.po"
7736 done
7737
e5a52504
MM
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
252b5132
RH
7750
7751 if test "x$CATOBJEXT" != "x"; then
7752 if test "x$ALL_LINGUAS" = "x"; then
7753 LINGUAS=
7754 else
e5a52504
MM
7755 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7756echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
252b5132
RH
7757 NEW_LINGUAS=
7758 for lang in ${LINGUAS=$ALL_LINGUAS}; do
7759 case "$ALL_LINGUAS" in
7760 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
7761 esac
7762 done
7763 LINGUAS=$NEW_LINGUAS
e5a52504
MM
7764 echo "$as_me:$LINENO: result: $LINGUAS" >&5
7765echo "${ECHO_T}$LINGUAS" >&6
252b5132
RH
7766 fi
7767
7768 if test -n "$LINGUAS"; then
7769 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7770 fi
7771 fi
7772
7773 if test $ac_cv_header_locale_h = yes; then
7774 INCLUDE_LOCALE_H="#include <locale.h>"
7775 else
7776 INCLUDE_LOCALE_H="\
7777/* The system does not provide the header <locale.h>. Take care yourself. */"
7778 fi
e5a52504 7779
252b5132
RH
7780
7781 if test -f $srcdir/po2tbl.sed.in; then
7782 if test "$CATOBJEXT" = ".cat"; then
e5a52504
MM
7783 if test "${ac_cv_header_linux_version_h+set}" = set; then
7784 echo "$as_me:$LINENO: checking for linux/version.h" >&5
7785echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7786if test "${ac_cv_header_linux_version_h+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788fi
7789echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7790echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7791else
7792 # Is the header compilable?
7793echo "$as_me:$LINENO: checking linux/version.h usability" >&5
7794echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
7795cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801$ac_includes_default
252b5132 7802#include <linux/version.h>
e5a52504
MM
7803_ACEOF
7804rm -f conftest.$ac_objext
7805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806 (eval $ac_compile) 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } &&
7813 { ac_try='test -z "$ac_c_werror_flag"
7814 || test ! -s conftest.err'
7815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816 (eval $ac_try) 2>&5
7817 ac_status=$?
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; } &&
7820 { ac_try='test -s conftest.$ac_objext'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_header_compiler=yes
7827else
7828 echo "$as_me: failed program was:" >&5
7829sed 's/^/| /' conftest.$ac_ext >&5
7830
7831ac_header_compiler=no
7832fi
7833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7835echo "${ECHO_T}$ac_header_compiler" >&6
7836
7837# Is the header present?
7838echo "$as_me:$LINENO: checking linux/version.h presence" >&5
7839echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
7840cat >conftest.$ac_ext <<_ACEOF
7841/* confdefs.h. */
7842_ACEOF
7843cat confdefs.h >>conftest.$ac_ext
7844cat >>conftest.$ac_ext <<_ACEOF
7845/* end confdefs.h. */
7846#include <linux/version.h>
7847_ACEOF
7848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7850 ac_status=$?
7851 grep -v '^ *+' conftest.er1 >conftest.err
7852 rm -f conftest.er1
7853 cat conftest.err >&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); } >/dev/null; then
7856 if test -s conftest.err; then
7857 ac_cpp_err=$ac_c_preproc_warn_flag
7858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7859 else
7860 ac_cpp_err=
7861 fi
252b5132 7862else
e5a52504 7863 ac_cpp_err=yes
252b5132 7864fi
e5a52504
MM
7865if test -z "$ac_cpp_err"; then
7866 ac_header_preproc=yes
7867else
7868 echo "$as_me: failed program was:" >&5
7869sed 's/^/| /' conftest.$ac_ext >&5
7870
7871 ac_header_preproc=no
252b5132 7872fi
e5a52504
MM
7873rm -f conftest.err conftest.$ac_ext
7874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7875echo "${ECHO_T}$ac_header_preproc" >&6
7876
7877# So? What about this header?
7878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7879 yes:no: )
7880 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
7881echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7882 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
7883echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
7884 ac_header_preproc=yes
7885 ;;
7886 no:yes:* )
7887 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
7888echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
7890echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
7892echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
7893 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
7894echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
7896echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
7898echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
7899 (
7900 cat <<\_ASBOX
7901## ------------------------------------------ ##
7902## Report this to the AC_PACKAGE_NAME lists. ##
7903## ------------------------------------------ ##
7904_ASBOX
7905 ) |
7906 sed "s/^/$as_me: WARNING: /" >&2
7907 ;;
7908esac
7909echo "$as_me:$LINENO: checking for linux/version.h" >&5
7910echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
7911if test "${ac_cv_header_linux_version_h+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913else
7914 ac_cv_header_linux_version_h=$ac_header_preproc
7915fi
7916echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
7917echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
7918
7919fi
7920if test $ac_cv_header_linux_version_h = yes; then
252b5132
RH
7921 msgformat=linux
7922else
e5a52504 7923 msgformat=xopen
252b5132
RH
7924fi
7925
7926
e5a52504 7927
252b5132
RH
7928 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
7929 fi
7930 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
7931 $srcdir/po2tbl.sed.in > po2tbl.sed
7932 fi
7933
7934 if test "$PACKAGE" = "gettext"; then
7935 GT_NO="#NO#"
7936 GT_YES=
7937 else
7938 GT_NO=
7939 GT_YES="#YES#"
7940 fi
e5a52504
MM
7941
7942
252b5132
RH
7943
7944 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
e5a52504 7945
252b5132
RH
7946
7947 l=
e5a52504 7948
252b5132 7949
fcd8210c 7950 if test -f $srcdir/po/POTFILES.in; then
252b5132
RH
7951 test -d po || mkdir po
7952 if test "x$srcdir" != "x."; then
7953 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7954 posrcprefix="$srcdir/"
7955 else
7956 posrcprefix="../$srcdir/"
7957 fi
7958 else
7959 posrcprefix="../"
7960 fi
7961 rm -f po/POTFILES
7962 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7963 < $srcdir/po/POTFILES.in > po/POTFILES
7964 fi
252b5132 7965
e5a52504
MM
7966
7967echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
7968echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
252b5132
RH
7969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
7970if test "${enable_maintainer_mode+set}" = set; then
7971 enableval="$enable_maintainer_mode"
7972 USE_MAINTAINER_MODE=$enableval
7973else
7974 USE_MAINTAINER_MODE=no
e5a52504
MM
7975fi;
7976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
7977echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
252b5132 7978
252b5132
RH
7979
7980if test $USE_MAINTAINER_MODE = yes; then
7981 MAINTAINER_MODE_TRUE=
7982 MAINTAINER_MODE_FALSE='#'
7983else
7984 MAINTAINER_MODE_TRUE='#'
7985 MAINTAINER_MODE_FALSE=
7986fi
7987 MAINT=$MAINTAINER_MODE_TRUE
252b5132
RH
7988
7989
252b5132 7990
2481e6a2 7991if test -n "$EXEEXT"; then
e5a52504
MM
7992
7993cat >>confdefs.h <<\_ACEOF
2481e6a2 7994#define HAVE_EXECUTABLE_SUFFIX 1
e5a52504 7995_ACEOF
2481e6a2
ILT
7996
7997fi
e5a52504
MM
7998
7999cat >>confdefs.h <<_ACEOF
bb0cb4db 8000#define EXECUTABLE_SUFFIX "${EXEEXT}"
e5a52504 8001_ACEOF
bb0cb4db 8002
252b5132
RH
8003
8004# host-specific stuff:
8005
8006HDEFINES=
8007
8008. ${srcdir}/../bfd/configure.host
8009
8010
8011AR=${AR-ar}
8012
e5a52504
MM
8013if test -n "$ac_tool_prefix"; then
8014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8015set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8016echo "$as_me:$LINENO: checking for $ac_word" >&5
8017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8018if test "${ac_cv_prog_RANLIB+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8020else
8021 if test -n "$RANLIB"; then
8022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8023else
e5a52504
MM
8024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025for as_dir in $PATH
8026do
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035done
8036done
8037
252b5132
RH
8038fi
8039fi
e5a52504 8040RANLIB=$ac_cv_prog_RANLIB
252b5132 8041if test -n "$RANLIB"; then
e5a52504
MM
8042 echo "$as_me:$LINENO: result: $RANLIB" >&5
8043echo "${ECHO_T}$RANLIB" >&6
8044else
8045 echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
8047fi
8048
8049fi
8050if test -z "$ac_cv_prog_RANLIB"; then
8051 ac_ct_RANLIB=$RANLIB
8052 # Extract the first word of "ranlib", so it can be a program name with args.
8053set dummy ranlib; ac_word=$2
8054echo "$as_me:$LINENO: checking for $ac_word" >&5
8055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058else
8059 if test -n "$ac_ct_RANLIB"; then
8060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_prog_ac_ct_RANLIB="ranlib"
8070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8072 fi
8073done
8074done
8075
8076 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8077fi
8078fi
8079ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8080if test -n "$ac_ct_RANLIB"; then
8081 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8082echo "${ECHO_T}$ac_ct_RANLIB" >&6
8083else
8084 echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6
8086fi
8087
8088 RANLIB=$ac_ct_RANLIB
252b5132 8089else
e5a52504 8090 RANLIB="$ac_cv_prog_RANLIB"
252b5132
RH
8091fi
8092
8093# Find a good install program. We prefer a C program (faster),
8094# so one script is as good as another. But avoid the broken or
8095# incompatible versions:
8096# SysV /etc/install, /usr/sbin/install
8097# SunOS /usr/etc/install
8098# IRIX /sbin/install
8099# AIX /bin/install
e5a52504 8100# AmigaOS /C/install, which installs bootblocks on floppy discs
252b5132
RH
8101# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8102# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8103# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
e5a52504 8104# OS/2's system install, which has a completely different semantic
252b5132 8105# ./install, which can be erroneously created by make from ./install.sh.
e5a52504
MM
8106echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8107echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
252b5132 8108if test -z "$INSTALL"; then
e5a52504
MM
8109if test "${ac_cv_path_install+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8111else
e5a52504
MM
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113for as_dir in $PATH
8114do
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 # Account for people who put trailing slashes in PATH elements.
8118case $as_dir/ in
8119 ./ | .// | /cC/* | \
8120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8121 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8122 /usr/ucb/* ) ;;
8123 *)
8124 # OSF1 and SCO ODT 3.0 have their own names for install.
8125 # Don't use installbsd from OSF since it installs stuff as root
8126 # by default.
8127 for ac_prog in ginstall scoinst install; do
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
252b5132 8130 if test $ac_prog = install &&
e5a52504 8131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
252b5132
RH
8132 # AIX install. It has an incompatible calling convention.
8133 :
e5a52504
MM
8134 elif test $ac_prog = install &&
8135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8136 # program-specific install script used by HP pwplus--don't use.
8137 :
252b5132 8138 else
e5a52504
MM
8139 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8140 break 3
252b5132
RH
8141 fi
8142 fi
8143 done
e5a52504
MM
8144 done
8145 ;;
8146esac
8147done
8148
252b5132
RH
8149
8150fi
8151 if test "${ac_cv_path_install+set}" = set; then
e5a52504 8152 INSTALL=$ac_cv_path_install
252b5132
RH
8153 else
8154 # As a last resort, use the slow shell script. We don't cache a
8155 # path for INSTALL within a source directory, because that will
8156 # break other packages using the cache if that directory is
8157 # removed, or if the path is relative.
e5a52504 8158 INSTALL=$ac_install_sh
252b5132
RH
8159 fi
8160fi
e5a52504
MM
8161echo "$as_me:$LINENO: result: $INSTALL" >&5
8162echo "${ECHO_T}$INSTALL" >&6
252b5132
RH
8163
8164# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8165# It thinks the first close brace ends the variable substitution.
8166test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8167
e5a52504 8168test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
8169
8170test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8171
8172
8173# Put a plausible default for CC_FOR_BUILD in Makefile.
8174if test -z "$CC_FOR_BUILD"; then
8175 if test "x$cross_compiling" = "xno"; then
8176 CC_FOR_BUILD='$(CC)'
8177 else
8178 CC_FOR_BUILD=gcc
8179 fi
8180fi
8181
8182# Also set EXEEXT_FOR_BUILD.
8183if test "x$cross_compiling" = "xno"; then
8184 EXEEXT_FOR_BUILD='$(EXEEXT)'
8185else
e5a52504
MM
8186 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8187echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8188if test "${bfd_cv_build_exeext+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8190else
7a7b06ef
ILT
8191 rm -f conftest*
8192 echo 'int main () { return 0; }' > conftest.c
8193 bfd_cv_build_exeext=
8194 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8195 for file in conftest.*; do
8196 case $file in
8197 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8198 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8199 esac
8200 done
8201 rm -f conftest*
8202 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
252b5132 8203fi
e5a52504
MM
8204echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8205echo "${ECHO_T}$bfd_cv_build_exeext" >&6
252b5132
RH
8206 EXEEXT_FOR_BUILD=""
8207 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8208fi
8209
8210
8a965946
ILT
8211DEMANGLER_NAME=c++filt
8212case "${host}" in
8213 *-*-go32* | *-*-msdos*)
8214 DEMANGLER_NAME=cxxfilt
8215esac
8216
8217
e5a52504
MM
8218
8219
8220
8221
8222
8223
8224for ac_header in string.h strings.h stdlib.h unistd.h fcntl.h sys/file.h
252b5132 8225do
e5a52504
MM
8226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8227if eval "test \"\${$as_ac_Header+set}\" = set"; then
8228 echo "$as_me:$LINENO: checking for $ac_header" >&5
8229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8230if eval "test \"\${$as_ac_Header+set}\" = set"; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232fi
8233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8235else
8236 # Is the header compilable?
8237echo "$as_me:$LINENO: checking $ac_header usability" >&5
8238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8239cat >conftest.$ac_ext <<_ACEOF
8240/* confdefs.h. */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h. */
8245$ac_includes_default
8246#include <$ac_header>
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>conftest.er1
8251 ac_status=$?
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -z "$ac_c_werror_flag"
8258 || test ! -s conftest.err'
8259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 (eval $ac_try) 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest.$ac_objext'
8265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 (eval $ac_try) 2>&5
8267 ac_status=$?
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); }; }; then
8270 ac_header_compiler=yes
8271else
8272 echo "$as_me: failed program was:" >&5
8273sed 's/^/| /' conftest.$ac_ext >&5
8274
8275ac_header_compiler=no
8276fi
8277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8279echo "${ECHO_T}$ac_header_compiler" >&6
8280
8281# Is the header present?
8282echo "$as_me:$LINENO: checking $ac_header presence" >&5
8283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8284cat >conftest.$ac_ext <<_ACEOF
8285/* confdefs.h. */
8286_ACEOF
8287cat confdefs.h >>conftest.$ac_ext
8288cat >>conftest.$ac_ext <<_ACEOF
8289/* end confdefs.h. */
8290#include <$ac_header>
8291_ACEOF
8292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8294 ac_status=$?
8295 grep -v '^ *+' conftest.er1 >conftest.err
8296 rm -f conftest.er1
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } >/dev/null; then
8300 if test -s conftest.err; then
8301 ac_cpp_err=$ac_c_preproc_warn_flag
8302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8303 else
8304 ac_cpp_err=
8305 fi
252b5132 8306else
e5a52504 8307 ac_cpp_err=yes
252b5132 8308fi
e5a52504
MM
8309if test -z "$ac_cpp_err"; then
8310 ac_header_preproc=yes
8311else
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_header_preproc=no
252b5132 8316fi
e5a52504
MM
8317rm -f conftest.err conftest.$ac_ext
8318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8319echo "${ECHO_T}$ac_header_preproc" >&6
8320
8321# So? What about this header?
8322case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8323 yes:no: )
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8328 ac_header_preproc=yes
8329 ;;
8330 no:yes:* )
8331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8334echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8338echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8343 (
8344 cat <<\_ASBOX
8345## ------------------------------------------ ##
8346## Report this to the AC_PACKAGE_NAME lists. ##
8347## ------------------------------------------ ##
8348_ASBOX
8349 ) |
8350 sed "s/^/$as_me: WARNING: /" >&2
8351 ;;
8352esac
8353echo "$as_me:$LINENO: checking for $ac_header" >&5
8354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8355if eval "test \"\${$as_ac_Header+set}\" = set"; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8357else
e5a52504
MM
8358 eval "$as_ac_Header=\$ac_header_preproc"
8359fi
8360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8362
8363fi
8364if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365 cat >>confdefs.h <<_ACEOF
8366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367_ACEOF
8368
252b5132 8369fi
e5a52504 8370
252b5132
RH
8371done
8372
e5a52504
MM
8373echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8374echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8375if test "${ac_cv_header_sys_wait_h+set}" = set; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377else
8378 cat >conftest.$ac_ext <<_ACEOF
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
252b5132
RH
8384#include <sys/types.h>
8385#include <sys/wait.h>
8386#ifndef WEXITSTATUS
e5a52504 8387# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
252b5132
RH
8388#endif
8389#ifndef WIFEXITED
e5a52504 8390# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
252b5132 8391#endif
e5a52504
MM
8392
8393int
8394main ()
8395{
8396 int s;
8397 wait (&s);
8398 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8399 ;
8400 return 0;
8401}
8402_ACEOF
8403rm -f conftest.$ac_objext
8404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8405 (eval $ac_compile) 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } &&
8412 { ac_try='test -z "$ac_c_werror_flag"
8413 || test ! -s conftest.err'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; } &&
8419 { ac_try='test -s conftest.$ac_objext'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
252b5132
RH
8425 ac_cv_header_sys_wait_h=yes
8426else
e5a52504
MM
8427 echo "$as_me: failed program was:" >&5
8428sed 's/^/| /' conftest.$ac_ext >&5
8429
8430ac_cv_header_sys_wait_h=no
252b5132 8431fi
e5a52504 8432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132 8433fi
e5a52504
MM
8434echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8435echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
252b5132 8436if test $ac_cv_header_sys_wait_h = yes; then
e5a52504
MM
8437
8438cat >>confdefs.h <<\_ACEOF
252b5132 8439#define HAVE_SYS_WAIT_H 1
e5a52504 8440_ACEOF
252b5132
RH
8441
8442fi
8443
8444# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8445# for constant arguments. Useless!
e5a52504
MM
8446echo "$as_me:$LINENO: checking for working alloca.h" >&5
8447echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8448if test "${ac_cv_working_alloca_h+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
252b5132 8457#include <alloca.h>
e5a52504
MM
8458int
8459main ()
8460{
8461char *p = (char *) alloca (2 * sizeof (int));
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext conftest$ac_exeext
8467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468 (eval $ac_link) 2>conftest.er1
8469 ac_status=$?
8470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -z "$ac_c_werror_flag"
8476 || test ! -s conftest.err'
8477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 (eval $ac_try) 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; }; then
8488 ac_cv_working_alloca_h=yes
8489else
8490 echo "$as_me: failed program was:" >&5
8491sed 's/^/| /' conftest.$ac_ext >&5
8492
8493ac_cv_working_alloca_h=no
8494fi
8495rm -f conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8497fi
8498echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8499echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8500if test $ac_cv_working_alloca_h = yes; then
8501
8502cat >>confdefs.h <<\_ACEOF
252b5132 8503#define HAVE_ALLOCA_H 1
e5a52504 8504_ACEOF
252b5132
RH
8505
8506fi
8507
e5a52504
MM
8508echo "$as_me:$LINENO: checking for alloca" >&5
8509echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8510if test "${ac_cv_func_alloca_works+set}" = set; then
8511 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8512else
e5a52504
MM
8513 cat >conftest.$ac_ext <<_ACEOF
8514/* confdefs.h. */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h. */
252b5132
RH
8519#ifdef __GNUC__
8520# define alloca __builtin_alloca
8521#else
8522# ifdef _MSC_VER
8523# include <malloc.h>
8524# define alloca _alloca
8525# else
8526# if HAVE_ALLOCA_H
8527# include <alloca.h>
8528# else
8529# ifdef _AIX
8530 #pragma alloca
8531# else
8532# ifndef alloca /* predefined by HP cc +Olibcalls */
8533char *alloca ();
8534# endif
8535# endif
8536# endif
8537# endif
8538#endif
8539
e5a52504
MM
8540int
8541main ()
8542{
8543char *p = (char *) alloca (1);
8544 ;
8545 return 0;
8546}
8547_ACEOF
8548rm -f conftest.$ac_objext conftest$ac_exeext
8549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>conftest.er1
8551 ac_status=$?
8552 grep -v '^ *+' conftest.er1 >conftest.err
8553 rm -f conftest.er1
8554 cat conftest.err >&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } &&
8557 { ac_try='test -z "$ac_c_werror_flag"
8558 || test ! -s conftest.err'
8559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560 (eval $ac_try) 2>&5
8561 ac_status=$?
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); }; } &&
8564 { ac_try='test -s conftest$ac_exeext'
8565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566 (eval $ac_try) 2>&5
8567 ac_status=$?
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); }; }; then
252b5132
RH
8570 ac_cv_func_alloca_works=yes
8571else
e5a52504
MM
8572 echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575ac_cv_func_alloca_works=no
252b5132 8576fi
e5a52504
MM
8577rm -f conftest.err conftest.$ac_objext \
8578 conftest$ac_exeext conftest.$ac_ext
252b5132 8579fi
e5a52504
MM
8580echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8581echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
252b5132 8582
252b5132 8583if test $ac_cv_func_alloca_works = yes; then
252b5132 8584
e5a52504
MM
8585cat >>confdefs.h <<\_ACEOF
8586#define HAVE_ALLOCA 1
8587_ACEOF
252b5132 8588
e5a52504 8589else
252b5132 8590 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
e5a52504
MM
8591# that cause trouble. Some versions do not even contain alloca or
8592# contain a buggy version. If you still want to use their alloca,
8593# use ar to extract alloca.o from them instead of compiling alloca.c.
8594
8595ALLOCA=alloca.$ac_objext
8596
8597cat >>confdefs.h <<\_ACEOF
252b5132 8598#define C_ALLOCA 1
e5a52504 8599_ACEOF
252b5132
RH
8600
8601
e5a52504
MM
8602echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8603echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8604if test "${ac_cv_os_cray+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 8606else
e5a52504
MM
8607 cat >conftest.$ac_ext <<_ACEOF
8608/* confdefs.h. */
8609_ACEOF
8610cat confdefs.h >>conftest.$ac_ext
8611cat >>conftest.$ac_ext <<_ACEOF
8612/* end confdefs.h. */
252b5132
RH
8613#if defined(CRAY) && ! defined(CRAY2)
8614webecray
8615#else
8616wenotbecray
8617#endif
8618
e5a52504 8619_ACEOF
252b5132 8620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e5a52504 8621 $EGREP "webecray" >/dev/null 2>&1; then
252b5132
RH
8622 ac_cv_os_cray=yes
8623else
252b5132
RH
8624 ac_cv_os_cray=no
8625fi
8626rm -f conftest*
8627
8628fi
e5a52504
MM
8629echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8630echo "${ECHO_T}$ac_cv_os_cray" >&6
252b5132 8631if test $ac_cv_os_cray = yes; then
e5a52504
MM
8632 for ac_func in _getb67 GETB67 getb67; do
8633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8634echo "$as_me:$LINENO: checking for $ac_func" >&5
8635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8636if eval "test \"\${$as_ac_var+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639 cat >conftest.$ac_ext <<_ACEOF
8640/* confdefs.h. */
8641_ACEOF
8642cat confdefs.h >>conftest.$ac_ext
8643cat >>conftest.$ac_ext <<_ACEOF
8644/* end confdefs.h. */
8645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8647#define $ac_func innocuous_$ac_func
8648
252b5132 8649/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
8650 which can conflict with char $ac_func (); below.
8651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8652 <limits.h> exists even on freestanding compilers. */
252b5132 8653
e5a52504
MM
8654#ifdef __STDC__
8655# include <limits.h>
8656#else
8657# include <assert.h>
8658#endif
252b5132 8659
e5a52504
MM
8660#undef $ac_func
8661
8662/* Override any gcc2 internal prototype to avoid an error. */
8663#ifdef __cplusplus
8664extern "C"
8665{
8666#endif
8667/* We use char because int might match the return type of a gcc2
8668 builtin and then its argument prototype would still apply. */
8669char $ac_func ();
252b5132
RH
8670/* The GNU C library defines this for functions which it implements
8671 to always fail with ENOSYS. Some functions are actually named
8672 something starting with __ and the normal name is an alias. */
8673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8674choke me
8675#else
e5a52504
MM
8676char (*f) () = $ac_func;
8677#endif
8678#ifdef __cplusplus
8679}
252b5132
RH
8680#endif
8681
e5a52504
MM
8682int
8683main ()
8684{
8685return f != $ac_func;
8686 ;
8687 return 0;
8688}
8689_ACEOF
8690rm -f conftest.$ac_objext conftest$ac_exeext
8691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692 (eval $ac_link) 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } &&
8699 { ac_try='test -z "$ac_c_werror_flag"
8700 || test ! -s conftest.err'
8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702 (eval $ac_try) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); }; } &&
8706 { ac_try='test -s conftest$ac_exeext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 eval "$as_ac_var=yes"
8713else
8714 echo "$as_me: failed program was:" >&5
8715sed 's/^/| /' conftest.$ac_ext >&5
8716
8717eval "$as_ac_var=no"
8718fi
8719rm -f conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721fi
8722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8724if test `eval echo '${'$as_ac_var'}'` = yes; then
8725
8726cat >>confdefs.h <<_ACEOF
252b5132 8727#define CRAY_STACKSEG_END $ac_func
e5a52504 8728_ACEOF
252b5132 8729
e5a52504 8730 break
252b5132
RH
8731fi
8732
e5a52504 8733 done
252b5132
RH
8734fi
8735
e5a52504
MM
8736echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8737echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8738if test "${ac_cv_c_stack_direction+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132
RH
8740else
8741 if test "$cross_compiling" = yes; then
8742 ac_cv_c_stack_direction=0
8743else
e5a52504
MM
8744 cat >conftest.$ac_ext <<_ACEOF
8745/* confdefs.h. */
8746_ACEOF
8747cat confdefs.h >>conftest.$ac_ext
8748cat >>conftest.$ac_ext <<_ACEOF
8749/* end confdefs.h. */
8750int
252b5132
RH
8751find_stack_direction ()
8752{
8753 static char *addr = 0;
8754 auto char dummy;
8755 if (addr == 0)
8756 {
8757 addr = &dummy;
8758 return find_stack_direction ();
8759 }
8760 else
8761 return (&dummy > addr) ? 1 : -1;
8762}
e5a52504
MM
8763
8764int
252b5132
RH
8765main ()
8766{
e5a52504 8767 exit (find_stack_direction () < 0);
252b5132 8768}
e5a52504
MM
8769_ACEOF
8770rm -f conftest$ac_exeext
8771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772 (eval $ac_link) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 (eval $ac_try) 2>&5
8778 ac_status=$?
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); }; }; then
252b5132
RH
8781 ac_cv_c_stack_direction=1
8782else
e5a52504
MM
8783 echo "$as_me: program exited with status $ac_status" >&5
8784echo "$as_me: failed program was:" >&5
8785sed 's/^/| /' conftest.$ac_ext >&5
8786
8787( exit $ac_status )
8788ac_cv_c_stack_direction=-1
252b5132 8789fi
e5a52504 8790rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
252b5132 8791fi
252b5132 8792fi
e5a52504
MM
8793echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8794echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
252b5132 8795
e5a52504 8796cat >>confdefs.h <<_ACEOF
252b5132 8797#define STACK_DIRECTION $ac_cv_c_stack_direction
e5a52504
MM
8798_ACEOF
8799
252b5132
RH
8800
8801fi
8802
e5a52504
MM
8803
8804
8805
8806
8807
9710509e 8808for ac_func in sbrk utimes setmode getc_unlocked strcoll
252b5132 8809do
e5a52504
MM
8810as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8811echo "$as_me:$LINENO: checking for $ac_func" >&5
8812echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8813if eval "test \"\${$as_ac_var+set}\" = set"; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8815else
8816 cat >conftest.$ac_ext <<_ACEOF
8817/* confdefs.h. */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h. */
8822/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8824#define $ac_func innocuous_$ac_func
8825
252b5132 8826/* System header to define __stub macros and hopefully few prototypes,
e5a52504
MM
8827 which can conflict with char $ac_func (); below.
8828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8829 <limits.h> exists even on freestanding compilers. */
8830
8831#ifdef __STDC__
8832# include <limits.h>
8833#else
8834# include <assert.h>
8835#endif
252b5132 8836
e5a52504 8837#undef $ac_func
252b5132 8838
e5a52504
MM
8839/* Override any gcc2 internal prototype to avoid an error. */
8840#ifdef __cplusplus
8841extern "C"
8842{
8843#endif
8844/* We use char because int might match the return type of a gcc2
8845 builtin and then its argument prototype would still apply. */
8846char $ac_func ();
252b5132
RH
8847/* The GNU C library defines this for functions which it implements
8848 to always fail with ENOSYS. Some functions are actually named
8849 something starting with __ and the normal name is an alias. */
8850#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8851choke me
8852#else
e5a52504
MM
8853char (*f) () = $ac_func;
8854#endif
8855#ifdef __cplusplus
8856}
252b5132
RH
8857#endif
8858
e5a52504
MM
8859int
8860main ()
8861{
8862return f != $ac_func;
8863 ;
8864 return 0;
8865}
8866_ACEOF
8867rm -f conftest.$ac_objext conftest$ac_exeext
8868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } &&
8876 { ac_try='test -z "$ac_c_werror_flag"
8877 || test ! -s conftest.err'
8878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879 (eval $ac_try) 2>&5
8880 ac_status=$?
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); }; } &&
8883 { ac_try='test -s conftest$ac_exeext'
8884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8885 (eval $ac_try) 2>&5
8886 ac_status=$?
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); }; }; then
8889 eval "$as_ac_var=yes"
8890else
8891 echo "$as_me: failed program was:" >&5
8892sed 's/^/| /' conftest.$ac_ext >&5
8893
8894eval "$as_ac_var=no"
8895fi
8896rm -f conftest.err conftest.$ac_objext \
8897 conftest$ac_exeext conftest.$ac_ext
8898fi
8899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8900echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8901if test `eval echo '${'$as_ac_var'}'` = yes; then
8902 cat >>confdefs.h <<_ACEOF
8903#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8904_ACEOF
252b5132 8905
252b5132
RH
8906fi
8907done
8908
8909
cedd9a58
JJ
8910# Check whether fopen64 is available and whether _LARGEFILE64_SOURCE
8911# needs to be defined for it
e5a52504
MM
8912echo "$as_me:$LINENO: checking for fopen64" >&5
8913echo $ECHO_N "checking for fopen64... $ECHO_C" >&6
8914if test "${bu_cv_have_fopen64+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8916else
8917 cat >conftest.$ac_ext <<_ACEOF
8918/* confdefs.h. */
8919_ACEOF
8920cat confdefs.h >>conftest.$ac_ext
8921cat >>conftest.$ac_ext <<_ACEOF
8922/* end confdefs.h. */
cedd9a58 8923#include <stdio.h>
e5a52504
MM
8924int
8925main ()
8926{
cedd9a58 8927FILE *f = fopen64 ("/tmp/foo","r");
e5a52504
MM
8928 ;
8929 return 0;
8930}
8931_ACEOF
8932rm -f conftest.$ac_objext conftest$ac_exeext
8933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>conftest.er1
8935 ac_status=$?
8936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -z "$ac_c_werror_flag"
8942 || test ! -s conftest.err'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; }; then
cedd9a58
JJ
8954 bu_cv_have_fopen64=yes
8955else
e5a52504
MM
8956 echo "$as_me: failed program was:" >&5
8957sed 's/^/| /' conftest.$ac_ext >&5
8958
8959saved_CPPFLAGS=$CPPFLAGS
cedd9a58 8960 CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
e5a52504
MM
8961 cat >conftest.$ac_ext <<_ACEOF
8962/* confdefs.h. */
8963_ACEOF
8964cat confdefs.h >>conftest.$ac_ext
8965cat >>conftest.$ac_ext <<_ACEOF
8966/* end confdefs.h. */
cedd9a58 8967#include <stdio.h>
e5a52504
MM
8968int
8969main ()
8970{
cedd9a58 8971FILE *f = fopen64 ("/tmp/foo","r");
e5a52504
MM
8972 ;
8973 return 0;
8974}
8975_ACEOF
8976rm -f conftest.$ac_objext conftest$ac_exeext
8977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978 (eval $ac_link) 2>conftest.er1
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } &&
8985 { ac_try='test -z "$ac_c_werror_flag"
8986 || test ! -s conftest.err'
8987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 (eval $ac_try) 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 (eval $ac_try) 2>&5
8995 ac_status=$?
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
cedd9a58
JJ
8998 bu_cv_have_fopen64="need -D_LARGEFILE64_SOURCE"
8999else
e5a52504
MM
9000 echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003bu_cv_have_fopen64=no
cedd9a58 9004fi
e5a52504
MM
9005rm -f conftest.err conftest.$ac_objext \
9006 conftest$ac_exeext conftest.$ac_ext
17a5a5c3 9007 CPPFLAGS=$saved_CPPFLAGS
cedd9a58 9008fi
e5a52504
MM
9009rm -f conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
cedd9a58 9011fi
cedd9a58 9012
e5a52504
MM
9013echo "$as_me:$LINENO: result: $bu_cv_have_fopen64" >&5
9014echo "${ECHO_T}$bu_cv_have_fopen64" >&6
6db7a086 9015if test "$bu_cv_have_fopen64" != no; then
e5a52504
MM
9016
9017cat >>confdefs.h <<\_ACEOF
cedd9a58 9018#define HAVE_FOPEN64 1
e5a52504 9019_ACEOF
cedd9a58 9020
6db7a086 9021 if test "$bu_cv_have_fopen64" = "need -D_LARGEFILE64_SOURCE"; then
e5a52504
MM
9022
9023cat >>confdefs.h <<\_ACEOF
cedd9a58 9024#define _LARGEFILE64_SOURCE 1
e5a52504 9025_ACEOF
cedd9a58
JJ
9026
9027 fi
9028fi
9029
f353eb8a 9030# Some systems have frexp only in -lm, not in -lc.
e5a52504
MM
9031echo "$as_me:$LINENO: checking for library containing frexp" >&5
9032echo $ECHO_N "checking for library containing frexp... $ECHO_C" >&6
9033if test "${ac_cv_search_frexp+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036 ac_func_search_save_LIBS=$LIBS
9037ac_cv_search_frexp=no
9038cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h. */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h. */
f353eb8a 9044
f353eb8a 9045/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
9046#ifdef __cplusplus
9047extern "C"
9048#endif
f353eb8a 9049/* We use char because int might match the return type of a gcc2
e5a52504
MM
9050 builtin and then its argument prototype would still apply. */
9051char frexp ();
9052int
9053main ()
9054{
9055frexp ();
9056 ;
9057 return 0;
9058}
9059_ACEOF
9060rm -f conftest.$ac_objext conftest$ac_exeext
9061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062 (eval $ac_link) 2>conftest.er1
9063 ac_status=$?
9064 grep -v '^ *+' conftest.er1 >conftest.err
9065 rm -f conftest.er1
9066 cat conftest.err >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); } &&
9069 { ac_try='test -z "$ac_c_werror_flag"
9070 || test ! -s conftest.err'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072 (eval $ac_try) 2>&5
9073 ac_status=$?
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; } &&
9076 { ac_try='test -s conftest$ac_exeext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078 (eval $ac_try) 2>&5
9079 ac_status=$?
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
f353eb8a
ILT
9082 ac_cv_search_frexp="none required"
9083else
e5a52504
MM
9084 echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
f353eb8a 9087fi
e5a52504
MM
9088rm -f conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090if test "$ac_cv_search_frexp" = no; then
9091 for ac_lib in m; do
9092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h. */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h. */
9099
f353eb8a 9100/* Override any gcc2 internal prototype to avoid an error. */
e5a52504
MM
9101#ifdef __cplusplus
9102extern "C"
9103#endif
f353eb8a 9104/* We use char because int might match the return type of a gcc2
e5a52504
MM
9105 builtin and then its argument prototype would still apply. */
9106char frexp ();
9107int
9108main ()
9109{
9110frexp ();
9111 ;
9112 return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
9116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -z "$ac_c_werror_flag"
9125 || test ! -s conftest.err'
9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127 (eval $ac_try) 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest$ac_exeext'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; }; then
9137 ac_cv_search_frexp="-l$ac_lib"
f353eb8a
ILT
9138break
9139else
e5a52504
MM
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
f353eb8a 9143fi
e5a52504
MM
9144rm -f conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 done
f353eb8a 9147fi
e5a52504
MM
9148LIBS=$ac_func_search_save_LIBS
9149fi
9150echo "$as_me:$LINENO: result: $ac_cv_search_frexp" >&5
9151echo "${ECHO_T}$ac_cv_search_frexp" >&6
9152if test "$ac_cv_search_frexp" != no; then
f353eb8a 9153 test "$ac_cv_search_frexp" = "none required" || LIBS="$ac_cv_search_frexp $LIBS"
e5a52504 9154
f353eb8a
ILT
9155fi
9156
e5a52504
MM
9157
9158echo "$as_me:$LINENO: checking for time_t in time.h" >&5
9159echo $ECHO_N "checking for time_t in time.h... $ECHO_C" >&6
9160if test "${bu_cv_decl_time_t_time_h+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9162else
e5a52504
MM
9163 cat >conftest.$ac_ext <<_ACEOF
9164/* confdefs.h. */
9165_ACEOF
9166cat confdefs.h >>conftest.$ac_ext
9167cat >>conftest.$ac_ext <<_ACEOF
9168/* end confdefs.h. */
252b5132 9169#include <time.h>
e5a52504
MM
9170int
9171main ()
9172{
252b5132 9173time_t i;
e5a52504
MM
9174 ;
9175 return 0;
9176}
9177_ACEOF
9178rm -f conftest.$ac_objext
9179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try='test -s conftest.$ac_objext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 (eval $ac_try) 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
252b5132
RH
9200 bu_cv_decl_time_t_time_h=yes
9201else
e5a52504
MM
9202 echo "$as_me: failed program was:" >&5
9203sed 's/^/| /' conftest.$ac_ext >&5
9204
9205bu_cv_decl_time_t_time_h=no
252b5132 9206fi
e5a52504 9207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9208fi
9209
e5a52504
MM
9210echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_time_h" >&5
9211echo "${ECHO_T}$bu_cv_decl_time_t_time_h" >&6
252b5132 9212if test $bu_cv_decl_time_t_time_h = yes; then
e5a52504
MM
9213
9214cat >>confdefs.h <<\_ACEOF
252b5132 9215#define HAVE_TIME_T_IN_TIME_H 1
e5a52504 9216_ACEOF
252b5132
RH
9217
9218fi
9219
e5a52504
MM
9220echo "$as_me:$LINENO: checking for time_t in sys/types.h" >&5
9221echo $ECHO_N "checking for time_t in sys/types.h... $ECHO_C" >&6
9222if test "${bu_cv_decl_time_t_types_h+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9224else
e5a52504
MM
9225 cat >conftest.$ac_ext <<_ACEOF
9226/* confdefs.h. */
9227_ACEOF
9228cat confdefs.h >>conftest.$ac_ext
9229cat >>conftest.$ac_ext <<_ACEOF
9230/* end confdefs.h. */
252b5132 9231#include <sys/types.h>
e5a52504
MM
9232int
9233main ()
9234{
252b5132 9235time_t i;
e5a52504
MM
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext
9241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9242 (eval $ac_compile) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest.$ac_objext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
252b5132
RH
9262 bu_cv_decl_time_t_types_h=yes
9263else
e5a52504
MM
9264 echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
9267bu_cv_decl_time_t_types_h=no
252b5132 9268fi
e5a52504 9269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9270fi
9271
e5a52504
MM
9272echo "$as_me:$LINENO: result: $bu_cv_decl_time_t_types_h" >&5
9273echo "${ECHO_T}$bu_cv_decl_time_t_types_h" >&6
252b5132 9274if test $bu_cv_decl_time_t_types_h = yes; then
e5a52504
MM
9275
9276cat >>confdefs.h <<\_ACEOF
252b5132 9277#define HAVE_TIME_T_IN_TYPES_H 1
e5a52504 9278_ACEOF
252b5132
RH
9279
9280fi
9281
9282# Under Next 3.2 <utime.h> apparently does not define struct utimbuf
9283# by default.
e5a52504
MM
9284echo "$as_me:$LINENO: checking for utime.h" >&5
9285echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9286if test "${bu_cv_header_utime_h+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. */
252b5132
RH
9295#include <sys/types.h>
9296#ifdef HAVE_TIME_H
9297#include <time.h>
9298#endif
9299#include <utime.h>
e5a52504
MM
9300int
9301main ()
9302{
252b5132 9303struct utimbuf s;
e5a52504
MM
9304 ;
9305 return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext
9309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
252b5132
RH
9330 bu_cv_header_utime_h=yes
9331else
e5a52504
MM
9332 echo "$as_me: failed program was:" >&5
9333sed 's/^/| /' conftest.$ac_ext >&5
9334
9335bu_cv_header_utime_h=no
252b5132 9336fi
e5a52504 9337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9338fi
9339
e5a52504
MM
9340echo "$as_me:$LINENO: result: $bu_cv_header_utime_h" >&5
9341echo "${ECHO_T}$bu_cv_header_utime_h" >&6
252b5132 9342if test $bu_cv_header_utime_h = yes; then
e5a52504
MM
9343
9344cat >>confdefs.h <<\_ACEOF
252b5132 9345#define HAVE_GOOD_UTIME_H 1
e5a52504 9346_ACEOF
252b5132
RH
9347
9348fi
9349
e5a52504
MM
9350echo "$as_me:$LINENO: checking whether fprintf must be declared" >&5
9351echo $ECHO_N "checking whether fprintf must be declared... $ECHO_C" >&6
9352if test "${bfd_cv_decl_needed_fprintf+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9354else
e5a52504
MM
9355 cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
252b5132
RH
9361
9362#include <stdio.h>
9363#ifdef HAVE_STRING_H
9364#include <string.h>
9365#else
9366#ifdef HAVE_STRINGS_H
9367#include <strings.h>
9368#endif
9369#endif
9370#ifdef HAVE_STDLIB_H
9371#include <stdlib.h>
9372#endif
9373#ifdef HAVE_UNISTD_H
9374#include <unistd.h>
9375#endif
e5a52504
MM
9376int
9377main ()
9378{
252b5132 9379char *(*pfn) = (char *(*)) fprintf
e5a52504
MM
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384rm -f conftest.$ac_objext
9385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
252b5132
RH
9406 bfd_cv_decl_needed_fprintf=no
9407else
e5a52504
MM
9408 echo "$as_me: failed program was:" >&5
9409sed 's/^/| /' conftest.$ac_ext >&5
9410
9411bfd_cv_decl_needed_fprintf=yes
252b5132 9412fi
e5a52504 9413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9414fi
9415
e5a52504
MM
9416echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_fprintf" >&5
9417echo "${ECHO_T}$bfd_cv_decl_needed_fprintf" >&6
252b5132 9418if test $bfd_cv_decl_needed_fprintf = yes; then
e5a52504
MM
9419
9420cat >>confdefs.h <<\_ACEOF
252b5132 9421#define NEED_DECLARATION_FPRINTF 1
e5a52504 9422_ACEOF
252b5132
RH
9423
9424fi
9425
e5a52504
MM
9426echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9427echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9428if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9430else
e5a52504
MM
9431 cat >conftest.$ac_ext <<_ACEOF
9432/* confdefs.h. */
9433_ACEOF
9434cat confdefs.h >>conftest.$ac_ext
9435cat >>conftest.$ac_ext <<_ACEOF
9436/* end confdefs.h. */
252b5132
RH
9437
9438#include <stdio.h>
9439#ifdef HAVE_STRING_H
9440#include <string.h>
9441#else
9442#ifdef HAVE_STRINGS_H
9443#include <strings.h>
9444#endif
9445#endif
9446#ifdef HAVE_STDLIB_H
9447#include <stdlib.h>
9448#endif
9449#ifdef HAVE_UNISTD_H
9450#include <unistd.h>
9451#endif
e5a52504
MM
9452int
9453main ()
9454{
252b5132 9455char *(*pfn) = (char *(*)) strstr
e5a52504
MM
9456 ;
9457 return 0;
9458}
9459_ACEOF
9460rm -f conftest.$ac_objext
9461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9462 (eval $ac_compile) 2>conftest.er1
9463 ac_status=$?
9464 grep -v '^ *+' conftest.er1 >conftest.err
9465 rm -f conftest.er1
9466 cat conftest.err >&5
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); } &&
9469 { ac_try='test -z "$ac_c_werror_flag"
9470 || test ! -s conftest.err'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; } &&
9476 { ac_try='test -s conftest.$ac_objext'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
252b5132
RH
9482 bfd_cv_decl_needed_strstr=no
9483else
e5a52504
MM
9484 echo "$as_me: failed program was:" >&5
9485sed 's/^/| /' conftest.$ac_ext >&5
9486
9487bfd_cv_decl_needed_strstr=yes
252b5132 9488fi
e5a52504 9489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9490fi
9491
e5a52504
MM
9492echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9493echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
252b5132 9494if test $bfd_cv_decl_needed_strstr = yes; then
e5a52504
MM
9495
9496cat >>confdefs.h <<\_ACEOF
252b5132 9497#define NEED_DECLARATION_STRSTR 1
e5a52504 9498_ACEOF
252b5132
RH
9499
9500fi
9501
e5a52504
MM
9502echo "$as_me:$LINENO: checking whether sbrk must be declared" >&5
9503echo $ECHO_N "checking whether sbrk must be declared... $ECHO_C" >&6
9504if test "${bfd_cv_decl_needed_sbrk+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9506else
e5a52504
MM
9507 cat >conftest.$ac_ext <<_ACEOF
9508/* confdefs.h. */
9509_ACEOF
9510cat confdefs.h >>conftest.$ac_ext
9511cat >>conftest.$ac_ext <<_ACEOF
9512/* end confdefs.h. */
252b5132
RH
9513
9514#include <stdio.h>
9515#ifdef HAVE_STRING_H
9516#include <string.h>
9517#else
9518#ifdef HAVE_STRINGS_H
9519#include <strings.h>
9520#endif
9521#endif
9522#ifdef HAVE_STDLIB_H
9523#include <stdlib.h>
9524#endif
9525#ifdef HAVE_UNISTD_H
9526#include <unistd.h>
9527#endif
e5a52504
MM
9528int
9529main ()
9530{
252b5132 9531char *(*pfn) = (char *(*)) sbrk
e5a52504
MM
9532 ;
9533 return 0;
9534}
9535_ACEOF
9536rm -f conftest.$ac_objext
9537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538 (eval $ac_compile) 2>conftest.er1
9539 ac_status=$?
9540 grep -v '^ *+' conftest.er1 >conftest.err
9541 rm -f conftest.er1
9542 cat conftest.err >&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try='test -z "$ac_c_werror_flag"
9546 || test ! -s conftest.err'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; } &&
9552 { ac_try='test -s conftest.$ac_objext'
9553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554 (eval $ac_try) 2>&5
9555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; }; then
252b5132
RH
9558 bfd_cv_decl_needed_sbrk=no
9559else
e5a52504
MM
9560 echo "$as_me: failed program was:" >&5
9561sed 's/^/| /' conftest.$ac_ext >&5
9562
9563bfd_cv_decl_needed_sbrk=yes
252b5132 9564fi
e5a52504 9565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9566fi
9567
e5a52504
MM
9568echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_sbrk" >&5
9569echo "${ECHO_T}$bfd_cv_decl_needed_sbrk" >&6
252b5132 9570if test $bfd_cv_decl_needed_sbrk = yes; then
e5a52504
MM
9571
9572cat >>confdefs.h <<\_ACEOF
252b5132 9573#define NEED_DECLARATION_SBRK 1
e5a52504 9574_ACEOF
252b5132
RH
9575
9576fi
9577
e5a52504
MM
9578echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9579echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9580if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9582else
e5a52504
MM
9583 cat >conftest.$ac_ext <<_ACEOF
9584/* confdefs.h. */
9585_ACEOF
9586cat confdefs.h >>conftest.$ac_ext
9587cat >>conftest.$ac_ext <<_ACEOF
9588/* end confdefs.h. */
252b5132
RH
9589
9590#include <stdio.h>
9591#ifdef HAVE_STRING_H
9592#include <string.h>
9593#else
9594#ifdef HAVE_STRINGS_H
9595#include <strings.h>
9596#endif
9597#endif
9598#ifdef HAVE_STDLIB_H
9599#include <stdlib.h>
9600#endif
9601#ifdef HAVE_UNISTD_H
9602#include <unistd.h>
9603#endif
e5a52504
MM
9604int
9605main ()
9606{
252b5132 9607char *(*pfn) = (char *(*)) getenv
e5a52504
MM
9608 ;
9609 return 0;
9610}
9611_ACEOF
9612rm -f conftest.$ac_objext
9613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614 (eval $ac_compile) 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624 (eval $ac_try) 2>&5
9625 ac_status=$?
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 (eval $ac_try) 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
252b5132
RH
9634 bfd_cv_decl_needed_getenv=no
9635else
e5a52504
MM
9636 echo "$as_me: failed program was:" >&5
9637sed 's/^/| /' conftest.$ac_ext >&5
9638
9639bfd_cv_decl_needed_getenv=yes
252b5132 9640fi
e5a52504 9641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9642fi
9643
e5a52504
MM
9644echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9645echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
252b5132 9646if test $bfd_cv_decl_needed_getenv = yes; then
e5a52504
MM
9647
9648cat >>confdefs.h <<\_ACEOF
252b5132 9649#define NEED_DECLARATION_GETENV 1
e5a52504 9650_ACEOF
252b5132
RH
9651
9652fi
9653
e5a52504
MM
9654echo "$as_me:$LINENO: checking whether environ must be declared" >&5
9655echo $ECHO_N "checking whether environ must be declared... $ECHO_C" >&6
9656if test "${bfd_cv_decl_needed_environ+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
252b5132 9658else
e5a52504
MM
9659 cat >conftest.$ac_ext <<_ACEOF
9660/* confdefs.h. */
9661_ACEOF
9662cat confdefs.h >>conftest.$ac_ext
9663cat >>conftest.$ac_ext <<_ACEOF
9664/* end confdefs.h. */
252b5132
RH
9665
9666#include <stdio.h>
9667#ifdef HAVE_STRING_H
9668#include <string.h>
9669#else
9670#ifdef HAVE_STRINGS_H
9671#include <strings.h>
9672#endif
9673#endif
9674#ifdef HAVE_STDLIB_H
9675#include <stdlib.h>
9676#endif
9677#ifdef HAVE_UNISTD_H
9678#include <unistd.h>
9679#endif
e5a52504
MM
9680int
9681main ()
9682{
252b5132 9683char *(*pfn) = (char *(*)) environ
e5a52504
MM
9684 ;
9685 return 0;
9686}
9687_ACEOF
9688rm -f conftest.$ac_objext
9689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690 (eval $ac_compile) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag"
9698 || test ! -s conftest.err'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; } &&
9704 { ac_try='test -s conftest.$ac_objext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
252b5132
RH
9710 bfd_cv_decl_needed_environ=no
9711else
e5a52504
MM
9712 echo "$as_me: failed program was:" >&5
9713sed 's/^/| /' conftest.$ac_ext >&5
9714
9715bfd_cv_decl_needed_environ=yes
252b5132 9716fi
e5a52504 9717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
252b5132
RH
9718fi
9719
e5a52504
MM
9720echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_environ" >&5
9721echo "${ECHO_T}$bfd_cv_decl_needed_environ" >&6
252b5132 9722if test $bfd_cv_decl_needed_environ = yes; then
e5a52504
MM
9723
9724cat >>confdefs.h <<\_ACEOF
252b5132 9725#define NEED_DECLARATION_ENVIRON 1
e5a52504 9726_ACEOF
252b5132
RH
9727
9728fi
9729
9730
9731
9732case "${host}" in
8a965946 9733*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
e5a52504
MM
9734
9735cat >>confdefs.h <<\_ACEOF
252b5132 9736#define USE_BINARY_FOPEN 1
e5a52504 9737_ACEOF
252b5132
RH
9738 ;;
9739esac
9740
9741# target-specific stuff:
9742
9743# Canonicalize the secondary target names.
9744if test -n "$enable_targets"; then
9745 for targ in `echo $enable_targets | sed 's/,/ /g'`
9746 do
6d83c84b 9747 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
9748 if test -n "$result"; then
9749 canon_targets="$canon_targets $result"
9750 else
9751 # Allow targets that config.sub doesn't recognize, like "all".
9752 canon_targets="$canon_targets $targ"
9753 fi
9754 done
9755fi
9756
9757all_targets=false
9758BUILD_NLMCONV=
9759NLMCONV_DEFS=
9760BUILD_SRCONV=
9761BUILD_DLLTOOL=
9762DLLTOOL_DEFS=
9763BUILD_WINDRES=
9764BUILD_DLLWRAP=
9765BUILD_MISC=
8b1e6df3 9766OBJDUMP_DEFS=
252b5132
RH
9767
9768for targ in $target $canon_targets
9769do
9770 if test "x$targ" = "xall"; then
9771 all_targets=true
9772 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9773 BUILD_SRCONV='$(SRCONV_PROG)'
9774 NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
9775 else
9776 case $targ in
e5a52504 9777 i[3-7]86*-*-netware*)
252b5132
RH
9778 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9779 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
9780 ;;
9781 alpha*-*-netware*)
9782 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9783 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
9784 ;;
9785 powerpc*-*-netware*)
9786 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9787 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
9788 ;;
9789 sparc*-*-netware*)
9790 BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
9791 NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
9792 ;;
9793 esac
9794 case $targ in
9795 *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
9796 esac
9797 case $targ in
a8c548cb
NC
9798 arm-epoc-pe*)
9799 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9800 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
9801 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9802 ;;
27a710e5 9803 arm-*-pe* | arm-*-wince)
252b5132
RH
9804 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9805 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
9806 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 9807 ;;
27a710e5 9808 thumb-*-pe*)
252b5132
RH
9809 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9810 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
9811 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 9812 ;;
c7217458 9813 arm*-* | xscale-* | strongarm-* | d10v-*)
8b1e6df3
NC
9814 OBJDUMP_DEFS="-DDISASSEMBLER_NEEDS_RELOCS"
9815 ;;
80c7c40a 9816 i[3-7]86-*-pe* | i[3-7]86-*-cygwin* | i[3-7]86-*-mingw32** | i[3-7]86-*-netbsdpe*)
252b5132
RH
9817 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9818 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
9819 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9820 BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)'
7a7b06ef 9821 ;;
80c7c40a 9822 i[3-7]86-*-interix)
7a7b06ef
ILT
9823 BUILD_DLLTOOL='$(DLLTOOL_PROG)'
9824 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
9825 ;;
f0660b73
NC
9826 powerpc*-aix5.[01])
9827 ;;
9828 powerpc*-aix5.*)
9829 OBJDUMP_DEFS="-DAIX_WEAK_SUPPORT"
9830 ;;
e1d5b1e7 9831 powerpc*-*-pe* | powerpc*-*-cygwin*)
252b5132
RH
9832 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9833 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
9834 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
8a0e0f38 9835 ;;
e1d5b1e7 9836 sh*-*-pe)
8a0e0f38
NC
9837 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9838 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_SH"
9839 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9840 ;;
e1d5b1e7 9841 mips*-*-pe)
8a0e0f38
NC
9842 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9843 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
9844 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 9845 ;;
27a710e5 9846 mcore-*-pe)
661016bb
NC
9847 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9848 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
9849 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
7a7b06ef 9850 ;;
27a710e5 9851 mcore-*-elf)
661016bb
NC
9852 BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
9853 DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
7a7b06ef 9854 ;;
1a09a22c
NC
9855 c4x-*-* | tic4x-*-*)
9856 OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=32"
9857 ;;
d070dab9
JW
9858 ia64-*-*)
9859 OBJDUMP_DEFS="$OBJDUMP_DEFS -DSKIP_ZEROES=16"
9860 ;;
252b5132
RH
9861 esac
9862 fi
9863done
9864
c918cb96
DD
9865if test "${with_windres+set}" = set; then
9866 BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
9867fi
252b5132
RH
9868
9869
9870
9871
9872
9873
9874
9875
9876
8b1e6df3 9877
0218d1e4 9878
e5a52504
MM
9879
9880cat >>confdefs.h <<_ACEOF
252b5132 9881#define TARGET "${target}"
e5a52504 9882_ACEOF
252b5132
RH
9883
9884
9885targ=$target
9886. $srcdir/../bfd/config.bfd
9887if test "x$targ_underscore" = "xyes"; then
9888 UNDERSCORE=1
9889else
9890 UNDERSCORE=0
9891fi
e5a52504
MM
9892
9893cat >>confdefs.h <<_ACEOF
bb279dc0 9894#define TARGET_PREPENDS_UNDERSCORE $UNDERSCORE
e5a52504 9895_ACEOF
252b5132
RH
9896
9897
e5a52504 9898# Emulation
eb1e0e80
NC
9899for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
9900do
9901 # Canonicalize the secondary target names.
9902 result=`$ac_config_sub $targ_alias 2>/dev/null`
9903 if test -n "$result"; then
9904 targ=$result
9905 else
9906 targ=$targ_alias
9907 fi
9908
9909 . ${srcdir}/configure.tgt
9910
9911 EMULATION=$targ_emul
e5a52504 9912 EMULATION_VECTOR=$targ_emul_vector
eb1e0e80
NC
9913done
9914
9915
9916
9917
e5a52504
MM
9918 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
9919 ac_config_commands="$ac_config_commands default"
9920cat >confcache <<\_ACEOF
252b5132
RH
9921# This file is a shell script that caches the results of configure
9922# tests run on this system so they can be shared between configure
e5a52504
MM
9923# scripts and configure runs, see configure's option --config-cache.
9924# It is not useful on other systems. If it contains results you don't
9925# want to keep, you may remove or edit it.
252b5132 9926#
e5a52504
MM
9927# config.status only pays attention to the cache file if you give it
9928# the --recheck option to rerun configure.
252b5132 9929#
e5a52504
MM
9930# `ac_cv_env_foo' variables (set or unset) will be overridden when
9931# loading this file, other *unset* `ac_cv_foo' will be assigned the
9932# following values.
9933
9934_ACEOF
9935
252b5132
RH
9936# The following way of writing the cache mishandles newlines in values,
9937# but we know of no workaround that is simple, portable, and efficient.
9938# So, don't put newlines in cache variables' values.
9939# Ultrix sh set writes to stderr and can't be redirected directly,
9940# and sets the high bit in the cache file unless we assign to the vars.
e5a52504
MM
9941{
9942 (set) 2>&1 |
9943 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9944 *ac_space=\ *)
9945 # `set' does not quote correctly, so add quotes (double-quote
9946 # substitution turns \\\\ into \\, and sed turns \\ into \).
9947 sed -n \
9948 "s/'/'\\\\''/g;
9949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9950 ;;
9951 *)
9952 # `set' quotes correctly as required by POSIX, so do not add quotes.
9953 sed -n \
9954 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9955 ;;
9956 esac;
9957} |
9958 sed '
9959 t clear
9960 : clear
9961 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9962 t end
9963 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9964 : end' >>confcache
9965if diff $cache_file confcache >/dev/null 2>&1; then :; else
252b5132 9966 if test -w $cache_file; then
e5a52504
MM
9967 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9968 cat confcache >$cache_file
252b5132
RH
9969 else
9970 echo "not updating unwritable cache $cache_file"
9971 fi
9972fi
9973rm -f confcache
9974
252b5132
RH
9975test "x$prefix" = xNONE && prefix=$ac_default_prefix
9976# Let make expand exec_prefix.
9977test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9978
e5a52504
MM
9979# VPATH may cause trouble with some makes, so we remove $(srcdir),
9980# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9981# trailing colons and then remove the whole line if VPATH becomes empty
9982# (actually we leave an empty line to preserve line numbers).
252b5132 9983if test "x$srcdir" = x.; then
e5a52504
MM
9984 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9985s/:*\$(srcdir):*/:/;
9986s/:*\${srcdir}:*/:/;
9987s/:*@srcdir@:*/:/;
9988s/^\([^=]*=[ ]*\):*/\1/;
9989s/:*$//;
9990s/^[^=]*=[ ]*$//;
9991}'
252b5132
RH
9992fi
9993
252b5132
RH
9994DEFS=-DHAVE_CONFIG_H
9995
e5a52504
MM
9996ac_libobjs=
9997ac_ltlibobjs=
9998for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9999 # 1. Remove the extension, and $U if already installed.
10000 ac_i=`echo "$ac_i" |
10001 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10002 # 2. Add them.
10003 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10004 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10005done
10006LIBOBJS=$ac_libobjs
252b5132 10007
e5a52504
MM
10008LTLIBOBJS=$ac_ltlibobjs
10009
10010
10011
10012: ${CONFIG_STATUS=./config.status}
10013ac_clean_files_save=$ac_clean_files
10014ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10015{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10016echo "$as_me: creating $CONFIG_STATUS" >&6;}
10017cat >$CONFIG_STATUS <<_ACEOF
10018#! $SHELL
10019# Generated by $as_me.
252b5132 10020# Run this file to recreate the current configuration.
252b5132 10021# Compiler output produced by configure, useful for debugging
e5a52504 10022# configure, is in config.log if it exists.
252b5132 10023
e5a52504
MM
10024debug=false
10025ac_cs_recheck=false
10026ac_cs_silent=false
10027SHELL=\${CONFIG_SHELL-$SHELL}
10028_ACEOF
10029
10030cat >>$CONFIG_STATUS <<\_ACEOF
10031## --------------------- ##
10032## M4sh Initialization. ##
10033## --------------------- ##
10034
10035# Be Bourne compatible
10036if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10037 emulate sh
10038 NULLCMD=:
10039 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10040 # is contrary to our usage. Disable this feature.
10041 alias -g '${1+"$@"}'='"$@"'
10042elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10043 set -o posix
10044fi
10045DUALCASE=1; export DUALCASE # for MKS sh
10046
10047# Support unset when possible.
10048if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10049 as_unset=unset
10050else
10051 as_unset=false
10052fi
10053
10054
10055# Work around bugs in pre-3.0 UWIN ksh.
10056$as_unset ENV MAIL MAILPATH
10057PS1='$ '
10058PS2='> '
10059PS4='+ '
10060
10061# NLS nuisances.
10062for as_var in \
10063 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10064 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10065 LC_TELEPHONE LC_TIME
252b5132 10066do
e5a52504
MM
10067 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10068 eval $as_var=C; export $as_var
10069 else
10070 $as_unset $as_var
10071 fi
252b5132
RH
10072done
10073
e5a52504
MM
10074# Required to use basename.
10075if expr a : '\(a\)' >/dev/null 2>&1; then
10076 as_expr=expr
10077else
10078 as_expr=false
10079fi
252b5132 10080
e5a52504
MM
10081if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10082 as_basename=basename
10083else
10084 as_basename=false
10085fi
252b5132 10086
252b5132 10087
e5a52504
MM
10088# Name of the executable.
10089as_me=`$as_basename "$0" ||
10090$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10091 X"$0" : 'X\(//\)$' \| \
10092 X"$0" : 'X\(/\)$' \| \
10093 . : '\(.\)' 2>/dev/null ||
10094echo X/"$0" |
10095 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10096 /^X\/\(\/\/\)$/{ s//\1/; q; }
10097 /^X\/\(\/\).*/{ s//\1/; q; }
10098 s/.*/./; q'`
10099
10100
10101# PATH needs CR, and LINENO needs CR and PATH.
10102# Avoid depending upon Character Ranges.
10103as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10104as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10105as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10106as_cr_digits='0123456789'
10107as_cr_alnum=$as_cr_Letters$as_cr_digits
252b5132 10108
e5a52504
MM
10109# The user is always right.
10110if test "${PATH_SEPARATOR+set}" != set; then
10111 echo "#! /bin/sh" >conf$$.sh
10112 echo "exit 0" >>conf$$.sh
10113 chmod +x conf$$.sh
10114 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10115 PATH_SEPARATOR=';'
252b5132 10116 else
e5a52504
MM
10117 PATH_SEPARATOR=:
10118 fi
10119 rm -f conf$$.sh
10120fi
10121
10122
10123 as_lineno_1=$LINENO
10124 as_lineno_2=$LINENO
10125 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10126 test "x$as_lineno_1" != "x$as_lineno_2" &&
10127 test "x$as_lineno_3" = "x$as_lineno_2" || {
10128 # Find who we are. Look in the path if we contain no path at all
10129 # relative or not.
10130 case $0 in
10131 *[\\/]* ) as_myself=$0 ;;
10132 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133for as_dir in $PATH
10134do
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10138done
10139
10140 ;;
10141 esac
10142 # We did not find ourselves, most probably we were run as `sh COMMAND'
10143 # in which case we are not to be found in the path.
10144 if test "x$as_myself" = x; then
10145 as_myself=$0
252b5132 10146 fi
e5a52504
MM
10147 if test ! -f "$as_myself"; then
10148 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10149echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10150 { (exit 1); exit 1; }; }
10151 fi
10152 case $CONFIG_SHELL in
10153 '')
10154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10156do
10157 IFS=$as_save_IFS
10158 test -z "$as_dir" && as_dir=.
10159 for as_base in sh bash ksh sh5; do
10160 case $as_dir in
10161 /*)
10162 if ("$as_dir/$as_base" -c '
10163 as_lineno_1=$LINENO
10164 as_lineno_2=$LINENO
10165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10166 test "x$as_lineno_1" != "x$as_lineno_2" &&
10167 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10168 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10169 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10170 CONFIG_SHELL=$as_dir/$as_base
10171 export CONFIG_SHELL
10172 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10173 fi;;
10174 esac
10175 done
10176done
10177;;
10178 esac
10179
10180 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10181 # uniformly replaced by the line number. The first 'sed' inserts a
10182 # line-number line before each line; the second 'sed' does the real
10183 # work. The second script uses 'N' to pair each line-number line
10184 # with the numbered line, and appends trailing '-' during
10185 # substitution so that $LINENO is not a special case at line end.
10186 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10187 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10188 sed '=' <$as_myself |
10189 sed '
10190 N
10191 s,$,-,
10192 : loop
10193 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10194 t loop
10195 s,-$,,
10196 s,^['$as_cr_digits']*\n,,
10197 ' >$as_me.lineno &&
10198 chmod +x $as_me.lineno ||
10199 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10200echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10201 { (exit 1); exit 1; }; }
10202
10203 # Don't try to exec as it changes $[0], causing all sort of problems
10204 # (the dirname of $[0] is not the place where we might find the
10205 # original and so on. Autoconf is especially sensible to this).
10206 . ./$as_me.lineno
10207 # Exit status is that of the last command.
10208 exit
10209}
10210
10211
10212case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10213 *c*,-n*) ECHO_N= ECHO_C='
10214' ECHO_T=' ' ;;
10215 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10216 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10217esac
10218
10219if expr a : '\(a\)' >/dev/null 2>&1; then
10220 as_expr=expr
10221else
10222 as_expr=false
10223fi
10224
10225rm -f conf$$ conf$$.exe conf$$.file
10226echo >conf$$.file
10227if ln -s conf$$.file conf$$ 2>/dev/null; then
10228 # We could just check for DJGPP; but this test a) works b) is more generic
10229 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10230 if test -f conf$$.exe; then
10231 # Don't use ln at all; we don't have any links
10232 as_ln_s='cp -p'
252b5132 10233 else
e5a52504 10234 as_ln_s='ln -s'
252b5132 10235 fi
e5a52504
MM
10236elif ln conf$$.file conf$$ 2>/dev/null; then
10237 as_ln_s=ln
10238else
10239 as_ln_s='cp -p'
10240fi
10241rm -f conf$$ conf$$.exe conf$$.file
10242
10243if mkdir -p . 2>/dev/null; then
10244 as_mkdir_p=:
10245else
10246 test -d ./-p && rmdir ./-p
10247 as_mkdir_p=false
10248fi
10249
10250as_executable_p="test -f"
10251
10252# Sed expression to map a string onto a valid CPP name.
10253as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10254
10255# Sed expression to map a string onto a valid variable name.
10256as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10257
10258
10259# IFS
10260# We need space, tab and new line, in precisely that order.
10261as_nl='
10262'
10263IFS=" $as_nl"
10264
10265# CDPATH.
10266$as_unset CDPATH
10267
10268exec 6>&1
10269
10270# Open the log real soon, to keep \$[0] and so on meaningful, and to
10271# report actual input values of CONFIG_FILES etc. instead of their
10272# values after options handling. Logging --version etc. is OK.
10273exec 5>>config.log
10274{
10275 echo
10276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10277## Running $as_me. ##
10278_ASBOX
10279} >&5
10280cat >&5 <<_CSEOF
10281
10282This file was extended by $as_me, which was
10283generated by GNU Autoconf 2.59. Invocation command line was
10284
10285 CONFIG_FILES = $CONFIG_FILES
10286 CONFIG_HEADERS = $CONFIG_HEADERS
10287 CONFIG_LINKS = $CONFIG_LINKS
10288 CONFIG_COMMANDS = $CONFIG_COMMANDS
10289 $ $0 $@
10290
10291_CSEOF
10292echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10293echo >&5
10294_ACEOF
10295
10296# Files that config.status was made for.
10297if test -n "$ac_config_files"; then
10298 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10299fi
10300
10301if test -n "$ac_config_headers"; then
10302 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10303fi
10304
10305if test -n "$ac_config_links"; then
10306 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10307fi
10308
10309if test -n "$ac_config_commands"; then
10310 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10311fi
10312
10313cat >>$CONFIG_STATUS <<\_ACEOF
10314
10315ac_cs_usage="\
10316\`$as_me' instantiates files from templates according to the
10317current configuration.
10318
10319Usage: $0 [OPTIONS] [FILE]...
10320
10321 -h, --help print this help, then exit
10322 -V, --version print version number, then exit
10323 -q, --quiet do not print progress messages
10324 -d, --debug don't remove temporary files
10325 --recheck update $as_me by reconfiguring in the same conditions
10326 --file=FILE[:TEMPLATE]
10327 instantiate the configuration file FILE
10328 --header=FILE[:TEMPLATE]
10329 instantiate the configuration header FILE
10330
10331Configuration files:
10332$config_files
10333
10334Configuration headers:
10335$config_headers
10336
10337Configuration commands:
10338$config_commands
10339
10340Report bugs to <bug-autoconf@gnu.org>."
10341_ACEOF
10342
10343cat >>$CONFIG_STATUS <<_ACEOF
10344ac_cs_version="\\
10345config.status
10346configured by $0, generated by GNU Autoconf 2.59,
10347 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10348
10349Copyright (C) 2003 Free Software Foundation, Inc.
10350This config.status script is free software; the Free Software Foundation
10351gives unlimited permission to copy, distribute and modify it."
10352srcdir=$srcdir
10353INSTALL="$INSTALL"
10354_ACEOF
10355
10356cat >>$CONFIG_STATUS <<\_ACEOF
10357# If no file are specified by the user, then we need to provide default
10358# value. By we need to know if files were specified by the user.
10359ac_need_defaults=:
10360while test $# != 0
10361do
10362 case $1 in
10363 --*=*)
10364 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10365 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10366 ac_shift=:
10367 ;;
10368 -*)
10369 ac_option=$1
10370 ac_optarg=$2
10371 ac_shift=shift
10372 ;;
10373 *) # This is not an option, so the user has probably given explicit
10374 # arguments.
10375 ac_option=$1
10376 ac_need_defaults=false;;
10377 esac
10378
10379 case $ac_option in
10380 # Handling of the options.
10381_ACEOF
10382cat >>$CONFIG_STATUS <<\_ACEOF
10383 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10384 ac_cs_recheck=: ;;
10385 --version | --vers* | -V )
10386 echo "$ac_cs_version"; exit 0 ;;
10387 --he | --h)
10388 # Conflict between --help and --header
10389 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10390Try \`$0 --help' for more information." >&5
10391echo "$as_me: error: ambiguous option: $1
10392Try \`$0 --help' for more information." >&2;}
10393 { (exit 1); exit 1; }; };;
10394 --help | --hel | -h )
10395 echo "$ac_cs_usage"; exit 0 ;;
10396 --debug | --d* | -d )
10397 debug=: ;;
10398 --file | --fil | --fi | --f )
10399 $ac_shift
10400 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10401 ac_need_defaults=false;;
10402 --header | --heade | --head | --hea )
10403 $ac_shift
10404 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10405 ac_need_defaults=false;;
10406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10408 ac_cs_silent=: ;;
10409
10410 # This is an error.
10411 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10412Try \`$0 --help' for more information." >&5
10413echo "$as_me: error: unrecognized option: $1
10414Try \`$0 --help' for more information." >&2;}
10415 { (exit 1); exit 1; }; } ;;
10416
10417 *) ac_config_targets="$ac_config_targets $1" ;;
10418
10419 esac
10420 shift
252b5132 10421done
e5a52504
MM
10422
10423ac_configure_extra_args=
10424
10425if $ac_cs_silent; then
10426 exec 6>/dev/null
10427 ac_configure_extra_args="$ac_configure_extra_args --silent"
252b5132 10428fi
252b5132 10429
e5a52504
MM
10430_ACEOF
10431cat >>$CONFIG_STATUS <<_ACEOF
10432if \$ac_cs_recheck; then
10433 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10434 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10435fi
252b5132 10436
e5a52504
MM
10437_ACEOF
10438
10439cat >>$CONFIG_STATUS <<_ACEOF
10440#
10441# INIT-COMMANDS section.
10442#
10443
10444
10445
10446_ACEOF
10447
10448
10449
10450cat >>$CONFIG_STATUS <<\_ACEOF
10451for ac_config_target in $ac_config_targets
10452do
10453 case "$ac_config_target" in
10454 # Handling of arguments.
10455 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10456 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10457 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
10458 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10459 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10460 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
10461 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10462echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10463 { (exit 1); exit 1; }; };;
252b5132 10464 esac
e5a52504
MM
10465done
10466
10467# If the user did not use the arguments to specify the items to instantiate,
10468# then the envvar interface is used. Set only those that are not.
10469# We use the long form for the default assignment because of an extremely
10470# bizarre bug on SunOS 4.1.3.
10471if $ac_need_defaults; then
10472 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10473 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10475fi
10476
10477# Have a temporary directory for convenience. Make it in the build tree
10478# simply because there is no reason to put it here, and in addition,
10479# creating and moving files from /tmp can sometimes cause problems.
10480# Create a temporary directory, and hook for its removal unless debugging.
10481$debug ||
10482{
10483 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10484 trap '{ (exit 1); exit 1; }' 1 2 13 15
10485}
252b5132 10486
e5a52504 10487# Create a (secure) tmp directory for tmp files.
252b5132 10488
e5a52504
MM
10489{
10490 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10491 test -n "$tmp" && test -d "$tmp"
10492} ||
10493{
10494 tmp=./confstat$$-$RANDOM
10495 (umask 077 && mkdir $tmp)
10496} ||
10497{
10498 echo "$me: cannot create a temporary directory in ." >&2
10499 { (exit 1); exit 1; }
10500}
10501
10502_ACEOF
10503
10504cat >>$CONFIG_STATUS <<_ACEOF
10505
10506#
10507# CONFIG_FILES section.
10508#
10509
10510# No need to generate the scripts if there are no CONFIG_FILES.
10511# This happens for instance when ./config.status config.h
10512if test -n "\$CONFIG_FILES"; then
10513 # Protect against being on the right side of a sed subst in config.status.
10514 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10515 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10516s,@SHELL@,$SHELL,;t t
10517s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10518s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10519s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10520s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10521s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10522s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10523s,@exec_prefix@,$exec_prefix,;t t
10524s,@prefix@,$prefix,;t t
10525s,@program_transform_name@,$program_transform_name,;t t
10526s,@bindir@,$bindir,;t t
10527s,@sbindir@,$sbindir,;t t
10528s,@libexecdir@,$libexecdir,;t t
10529s,@datadir@,$datadir,;t t
10530s,@sysconfdir@,$sysconfdir,;t t
10531s,@sharedstatedir@,$sharedstatedir,;t t
10532s,@localstatedir@,$localstatedir,;t t
10533s,@libdir@,$libdir,;t t
10534s,@includedir@,$includedir,;t t
10535s,@oldincludedir@,$oldincludedir,;t t
10536s,@infodir@,$infodir,;t t
10537s,@mandir@,$mandir,;t t
10538s,@build_alias@,$build_alias,;t t
10539s,@host_alias@,$host_alias,;t t
10540s,@target_alias@,$target_alias,;t t
10541s,@DEFS@,$DEFS,;t t
10542s,@ECHO_C@,$ECHO_C,;t t
10543s,@ECHO_N@,$ECHO_N,;t t
10544s,@ECHO_T@,$ECHO_T,;t t
10545s,@LIBS@,$LIBS,;t t
10546s,@build@,$build,;t t
10547s,@build_cpu@,$build_cpu,;t t
10548s,@build_vendor@,$build_vendor,;t t
10549s,@build_os@,$build_os,;t t
10550s,@host@,$host,;t t
10551s,@host_cpu@,$host_cpu,;t t
10552s,@host_vendor@,$host_vendor,;t t
10553s,@host_os@,$host_os,;t t
10554s,@target@,$target,;t t
10555s,@target_cpu@,$target_cpu,;t t
10556s,@target_vendor@,$target_vendor,;t t
10557s,@target_os@,$target_os,;t t
10558s,@CC@,$CC,;t t
10559s,@CFLAGS@,$CFLAGS,;t t
10560s,@LDFLAGS@,$LDFLAGS,;t t
10561s,@CPPFLAGS@,$CPPFLAGS,;t t
10562s,@ac_ct_CC@,$ac_ct_CC,;t t
10563s,@EXEEXT@,$EXEEXT,;t t
10564s,@OBJEXT@,$OBJEXT,;t t
10565s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10566s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10567s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10568s,@PACKAGE@,$PACKAGE,;t t
10569s,@VERSION@,$VERSION,;t t
10570s,@ACLOCAL@,$ACLOCAL,;t t
10571s,@AUTOCONF@,$AUTOCONF,;t t
10572s,@AUTOMAKE@,$AUTOMAKE,;t t
10573s,@AUTOHEADER@,$AUTOHEADER,;t t
10574s,@MAKEINFO@,$MAKEINFO,;t t
10575s,@SET_MAKE@,$SET_MAKE,;t t
10576s,@LN_S@,$LN_S,;t t
10577s,@RANLIB@,$RANLIB,;t t
10578s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10579s,@STRIP@,$STRIP,;t t
10580s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10581s,@LIBTOOL@,$LIBTOOL,;t t
10582s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
10583s,@YACC@,$YACC,;t t
10584s,@LEX@,$LEX,;t t
10585s,@LEXLIB@,$LEXLIB,;t t
10586s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
10587s,@CPP@,$CPP,;t t
10588s,@EGREP@,$EGREP,;t t
10589s,@ALLOCA@,$ALLOCA,;t t
10590s,@USE_NLS@,$USE_NLS,;t t
10591s,@MSGFMT@,$MSGFMT,;t t
10592s,@GMSGFMT@,$GMSGFMT,;t t
10593s,@XGETTEXT@,$XGETTEXT,;t t
10594s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
10595s,@CATALOGS@,$CATALOGS,;t t
10596s,@CATOBJEXT@,$CATOBJEXT,;t t
10597s,@DATADIRNAME@,$DATADIRNAME,;t t
10598s,@GMOFILES@,$GMOFILES,;t t
10599s,@INSTOBJEXT@,$INSTOBJEXT,;t t
10600s,@INTLDEPS@,$INTLDEPS,;t t
10601s,@INTLLIBS@,$INTLLIBS,;t t
10602s,@INTLOBJS@,$INTLOBJS,;t t
10603s,@POFILES@,$POFILES,;t t
10604s,@POSUB@,$POSUB,;t t
10605s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
10606s,@GT_NO@,$GT_NO,;t t
10607s,@GT_YES@,$GT_YES,;t t
10608s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
10609s,@l@,$l,;t t
10610s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10611s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10612s,@MAINT@,$MAINT,;t t
10613s,@HDEFINES@,$HDEFINES,;t t
10614s,@AR@,$AR,;t t
10615s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
10616s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
10617s,@DEMANGLER_NAME@,$DEMANGLER_NAME,;t t
10618s,@NLMCONV_DEFS@,$NLMCONV_DEFS,;t t
10619s,@BUILD_NLMCONV@,$BUILD_NLMCONV,;t t
10620s,@BUILD_SRCONV@,$BUILD_SRCONV,;t t
10621s,@BUILD_DLLTOOL@,$BUILD_DLLTOOL,;t t
10622s,@DLLTOOL_DEFS@,$DLLTOOL_DEFS,;t t
10623s,@BUILD_WINDRES@,$BUILD_WINDRES,;t t
10624s,@BUILD_DLLWRAP@,$BUILD_DLLWRAP,;t t
10625s,@BUILD_MISC@,$BUILD_MISC,;t t
10626s,@OBJDUMP_DEFS@,$OBJDUMP_DEFS,;t t
10627s,@EMULATION@,$EMULATION,;t t
10628s,@EMULATION_VECTOR@,$EMULATION_VECTOR,;t t
10629s,@LIBOBJS@,$LIBOBJS,;t t
10630s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10631CEOF
10632
10633_ACEOF
10634
10635 cat >>$CONFIG_STATUS <<\_ACEOF
10636 # Split the substitutions into bite-sized pieces for seds with
10637 # small command number limits, like on Digital OSF/1 and HP-UX.
10638 ac_max_sed_lines=48
10639 ac_sed_frag=1 # Number of current file.
10640 ac_beg=1 # First line for current file.
10641 ac_end=$ac_max_sed_lines # Line after last line for current file.
10642 ac_more_lines=:
10643 ac_sed_cmds=
10644 while $ac_more_lines; do
10645 if test $ac_beg -gt 1; then
10646 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10647 else
10648 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10649 fi
10650 if test ! -s $tmp/subs.frag; then
10651 ac_more_lines=false
10652 else
10653 # The purpose of the label and of the branching condition is to
10654 # speed up the sed processing (if there are no `@' at all, there
10655 # is no need to browse any of the substitutions).
10656 # These are the two extra sed commands mentioned above.
10657 (echo ':t
10658 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10659 if test -z "$ac_sed_cmds"; then
10660 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10661 else
10662 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10663 fi
10664 ac_sed_frag=`expr $ac_sed_frag + 1`
10665 ac_beg=$ac_end
10666 ac_end=`expr $ac_end + $ac_max_sed_lines`
10667 fi
10668 done
10669 if test -z "$ac_sed_cmds"; then
10670 ac_sed_cmds=cat
252b5132 10671 fi
e5a52504 10672fi # test -n "$CONFIG_FILES"
252b5132 10673
e5a52504
MM
10674_ACEOF
10675cat >>$CONFIG_STATUS <<\_ACEOF
10676for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10677 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10678 case $ac_file in
10679 - | *:- | *:-:* ) # input from stdin
10680 cat >$tmp/stdin
10681 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10682 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10683 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10685 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10686 esac
10687
e5a52504
MM
10688 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10689 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10690$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10691 X"$ac_file" : 'X\(//\)[^/]' \| \
10692 X"$ac_file" : 'X\(//\)$' \| \
10693 X"$ac_file" : 'X\(/\)' \| \
10694 . : '\(.\)' 2>/dev/null ||
10695echo X"$ac_file" |
10696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10698 /^X\(\/\/\)$/{ s//\1/; q; }
10699 /^X\(\/\).*/{ s//\1/; q; }
10700 s/.*/./; q'`
10701 { if $as_mkdir_p; then
10702 mkdir -p "$ac_dir"
10703 else
10704 as_dir="$ac_dir"
10705 as_dirs=
10706 while test ! -d "$as_dir"; do
10707 as_dirs="$as_dir $as_dirs"
10708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10710 X"$as_dir" : 'X\(//\)[^/]' \| \
10711 X"$as_dir" : 'X\(//\)$' \| \
10712 X"$as_dir" : 'X\(/\)' \| \
10713 . : '\(.\)' 2>/dev/null ||
10714echo X"$as_dir" |
10715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10717 /^X\(\/\/\)$/{ s//\1/; q; }
10718 /^X\(\/\).*/{ s//\1/; q; }
10719 s/.*/./; q'`
10720 done
10721 test ! -n "$as_dirs" || mkdir $as_dirs
10722 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10723echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10724 { (exit 1); exit 1; }; }; }
10725
10726 ac_builddir=.
10727
10728if test "$ac_dir" != .; then
10729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10730 # A "../" for each directory in $ac_dir_suffix.
10731 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10732else
10733 ac_dir_suffix= ac_top_builddir=
10734fi
10735
10736case $srcdir in
10737 .) # No --srcdir option. We are building in place.
10738 ac_srcdir=.
10739 if test -z "$ac_top_builddir"; then
10740 ac_top_srcdir=.
10741 else
10742 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10743 fi ;;
10744 [\\/]* | ?:[\\/]* ) # Absolute path.
10745 ac_srcdir=$srcdir$ac_dir_suffix;
10746 ac_top_srcdir=$srcdir ;;
10747 *) # Relative path.
10748 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10749 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10750esac
10751
10752# Do not use `cd foo && pwd` to compute absolute paths, because
10753# the directories may not exist.
10754case `pwd` in
10755.) ac_abs_builddir="$ac_dir";;
10756*)
10757 case "$ac_dir" in
10758 .) ac_abs_builddir=`pwd`;;
10759 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10760 *) ac_abs_builddir=`pwd`/"$ac_dir";;
10761 esac;;
10762esac
10763case $ac_abs_builddir in
10764.) ac_abs_top_builddir=${ac_top_builddir}.;;
10765*)
10766 case ${ac_top_builddir}. in
10767 .) ac_abs_top_builddir=$ac_abs_builddir;;
10768 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10769 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10770 esac;;
10771esac
10772case $ac_abs_builddir in
10773.) ac_abs_srcdir=$ac_srcdir;;
10774*)
10775 case $ac_srcdir in
10776 .) ac_abs_srcdir=$ac_abs_builddir;;
10777 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10778 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10779 esac;;
10780esac
10781case $ac_abs_builddir in
10782.) ac_abs_top_srcdir=$ac_top_srcdir;;
10783*)
10784 case $ac_top_srcdir in
10785 .) ac_abs_top_srcdir=$ac_abs_builddir;;
10786 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10787 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10788 esac;;
10789esac
252b5132 10790
e5a52504
MM
10791
10792 case $INSTALL in
10793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10794 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
252b5132
RH
10795 esac
10796
e5a52504
MM
10797 if test x"$ac_file" != x-; then
10798 { echo "$as_me:$LINENO: creating $ac_file" >&5
10799echo "$as_me: creating $ac_file" >&6;}
10800 rm -f "$ac_file"
10801 fi
10802 # Let's still pretend it is `configure' which instantiates (i.e., don't
10803 # use $as_me), people would be surprised to read:
10804 # /* config.h. Generated by config.status. */
10805 if test x"$ac_file" = x-; then
10806 configure_input=
10807 else
10808 configure_input="$ac_file. "
10809 fi
10810 configure_input=$configure_input"Generated from `echo $ac_file_in |
10811 sed 's,.*/,,'` by configure."
10812
10813 # First look for the input files in the build tree, otherwise in the
10814 # src tree.
10815 ac_file_inputs=`IFS=:
10816 for f in $ac_file_in; do
10817 case $f in
10818 -) echo $tmp/stdin ;;
10819 [\\/$]*)
10820 # Absolute (can't be DOS-style, as IFS=:)
10821 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10822echo "$as_me: error: cannot find input file: $f" >&2;}
10823 { (exit 1); exit 1; }; }
10824 echo "$f";;
10825 *) # Relative
10826 if test -f "$f"; then
10827 # Build tree
10828 echo "$f"
10829 elif test -f "$srcdir/$f"; then
10830 # Source tree
10831 echo "$srcdir/$f"
10832 else
10833 # /dev/null tree
10834 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10835echo "$as_me: error: cannot find input file: $f" >&2;}
10836 { (exit 1); exit 1; }; }
10837 fi;;
10838 esac
10839 done` || { (exit 1); exit 1; }
10840_ACEOF
10841cat >>$CONFIG_STATUS <<_ACEOF
10842 sed "$ac_vpsub
10843$extrasub
10844_ACEOF
10845cat >>$CONFIG_STATUS <<\_ACEOF
10846:t
10847/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10848s,@configure_input@,$configure_input,;t t
10849s,@srcdir@,$ac_srcdir,;t t
10850s,@abs_srcdir@,$ac_abs_srcdir,;t t
10851s,@top_srcdir@,$ac_top_srcdir,;t t
10852s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10853s,@builddir@,$ac_builddir,;t t
10854s,@abs_builddir@,$ac_abs_builddir,;t t
10855s,@top_builddir@,$ac_top_builddir,;t t
10856s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10857s,@INSTALL@,$ac_INSTALL,;t t
10858" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10859 rm -f $tmp/stdin
10860 if test x"$ac_file" != x-; then
10861 mv $tmp/out $ac_file
10862 else
10863 cat $tmp/out
10864 rm -f $tmp/out
10865 fi
10866
10867done
10868_ACEOF
10869cat >>$CONFIG_STATUS <<\_ACEOF
10870
10871#
10872# CONFIG_HEADER section.
10873#
252b5132
RH
10874
10875# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10876# NAME is the cpp macro being defined and VALUE is the value it is being given.
10877#
10878# ac_d sets the value in "#define NAME VALUE" lines.
e5a52504
MM
10879ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10880ac_dB='[ ].*$,\1#\2'
10881ac_dC=' '
10882ac_dD=',;t'
10883# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10884ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10885ac_uB='$,\1#\2define\3'
252b5132 10886ac_uC=' '
e5a52504
MM
10887ac_uD=',;t'
10888
10889for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
252b5132 10890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e5a52504
MM
10891 case $ac_file in
10892 - | *:- | *:-:* ) # input from stdin
10893 cat >$tmp/stdin
10894 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10896 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10898 * ) ac_file_in=$ac_file.in ;;
252b5132
RH
10899 esac
10900
e5a52504
MM
10901 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10902echo "$as_me: creating $ac_file" >&6;}
10903
10904 # First look for the input files in the build tree, otherwise in the
10905 # src tree.
10906 ac_file_inputs=`IFS=:
10907 for f in $ac_file_in; do
10908 case $f in
10909 -) echo $tmp/stdin ;;
10910 [\\/$]*)
10911 # Absolute (can't be DOS-style, as IFS=:)
10912 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10913echo "$as_me: error: cannot find input file: $f" >&2;}
10914 { (exit 1); exit 1; }; }
10915 # Do quote $f, to prevent DOS paths from being IFS'd.
10916 echo "$f";;
10917 *) # Relative
10918 if test -f "$f"; then
10919 # Build tree
10920 echo "$f"
10921 elif test -f "$srcdir/$f"; then
10922 # Source tree
10923 echo "$srcdir/$f"
10924 else
10925 # /dev/null tree
10926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10927echo "$as_me: error: cannot find input file: $f" >&2;}
10928 { (exit 1); exit 1; }; }
10929 fi;;
10930 esac
10931 done` || { (exit 1); exit 1; }
10932 # Remove the trailing spaces.
10933 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10934
10935_ACEOF
10936
10937# Transform confdefs.h into two sed scripts, `conftest.defines' and
10938# `conftest.undefs', that substitutes the proper values into
10939# config.h.in to produce config.h. The first handles `#define'
10940# templates, and the second `#undef' templates.
10941# And first: Protect against being on the right side of a sed subst in
10942# config.status. Protect against being in an unquoted here document
10943# in config.status.
10944rm -f conftest.defines conftest.undefs
10945# Using a here document instead of a string reduces the quoting nightmare.
10946# Putting comments in sed scripts is not portable.
10947#
10948# `end' is used to avoid that the second main sed command (meant for
10949# 0-ary CPP macros) applies to n-ary macro definitions.
10950# See the Autoconf documentation for `clear'.
10951cat >confdef2sed.sed <<\_ACEOF
10952s/[\\&,]/\\&/g
10953s,[\\$`],\\&,g
10954t clear
10955: clear
10956s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10957t end
10958s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10959: end
10960_ACEOF
10961# If some macros were called several times there might be several times
10962# the same #defines, which is useless. Nevertheless, we may not want to
10963# sort them, since we want the *last* AC-DEFINE to be honored.
10964uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10965sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10966rm -f confdef2sed.sed
252b5132
RH
10967
10968# This sed command replaces #undef with comments. This is necessary, for
10969# example, in the case of _POSIX_SOURCE, which is predefined and required
10970# on some systems where configure will not decide to define it.
e5a52504
MM
10971cat >>conftest.undefs <<\_ACEOF
10972s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10973_ACEOF
10974
10975# Break up conftest.defines because some shells have a limit on the size
10976# of here documents, and old seds have small limits too (100 cmds).
10977echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10978echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10979echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10980echo ' :' >>$CONFIG_STATUS
10981rm -f conftest.tail
10982while grep . conftest.defines >/dev/null
10983do
10984 # Write a limited-size here document to $tmp/defines.sed.
10985 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10986 # Speed up: don't consider the non `#define' lines.
10987 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10988 # Work around the forget-to-reset-the-flag bug.
10989 echo 't clr' >>$CONFIG_STATUS
10990 echo ': clr' >>$CONFIG_STATUS
10991 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10992 echo 'CEOF
10993 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10994 rm -f $tmp/in
10995 mv $tmp/out $tmp/in
10996' >>$CONFIG_STATUS
10997 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10998 rm -f conftest.defines
10999 mv conftest.tail conftest.defines
11000done
11001rm -f conftest.defines
11002echo ' fi # grep' >>$CONFIG_STATUS
11003echo >>$CONFIG_STATUS
252b5132 11004
e5a52504
MM
11005# Break up conftest.undefs because some shells have a limit on the size
11006# of here documents, and old seds have small limits too (100 cmds).
11007echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
252b5132 11008rm -f conftest.tail
e5a52504 11009while grep . conftest.undefs >/dev/null
252b5132 11010do
e5a52504
MM
11011 # Write a limited-size here document to $tmp/undefs.sed.
11012 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11013 # Speed up: don't consider the non `#undef'
11014 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
11015 # Work around the forget-to-reset-the-flag bug.
11016 echo 't clr' >>$CONFIG_STATUS
11017 echo ': clr' >>$CONFIG_STATUS
11018 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
252b5132 11019 echo 'CEOF
e5a52504
MM
11020 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11021 rm -f $tmp/in
11022 mv $tmp/out $tmp/in
11023' >>$CONFIG_STATUS
11024 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11025 rm -f conftest.undefs
11026 mv conftest.tail conftest.undefs
252b5132 11027done
e5a52504
MM
11028rm -f conftest.undefs
11029
11030cat >>$CONFIG_STATUS <<\_ACEOF
11031 # Let's still pretend it is `configure' which instantiates (i.e., don't
11032 # use $as_me), people would be surprised to read:
11033 # /* config.h. Generated by config.status. */
11034 if test x"$ac_file" = x-; then
11035 echo "/* Generated by configure. */" >$tmp/config.h
252b5132 11036 else
e5a52504
MM
11037 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
11038 fi
11039 cat $tmp/in >>$tmp/config.h
11040 rm -f $tmp/in
11041 if test x"$ac_file" != x-; then
11042 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11043 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11044echo "$as_me: $ac_file is unchanged" >&6;}
11045 else
11046 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11047$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11048 X"$ac_file" : 'X\(//\)[^/]' \| \
11049 X"$ac_file" : 'X\(//\)$' \| \
11050 X"$ac_file" : 'X\(/\)' \| \
11051 . : '\(.\)' 2>/dev/null ||
11052echo X"$ac_file" |
11053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11054 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11055 /^X\(\/\/\)$/{ s//\1/; q; }
11056 /^X\(\/\).*/{ s//\1/; q; }
11057 s/.*/./; q'`
11058 { if $as_mkdir_p; then
11059 mkdir -p "$ac_dir"
11060 else
11061 as_dir="$ac_dir"
11062 as_dirs=
11063 while test ! -d "$as_dir"; do
11064 as_dirs="$as_dir $as_dirs"
11065 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11066$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11067 X"$as_dir" : 'X\(//\)[^/]' \| \
11068 X"$as_dir" : 'X\(//\)$' \| \
11069 X"$as_dir" : 'X\(/\)' \| \
11070 . : '\(.\)' 2>/dev/null ||
11071echo X"$as_dir" |
11072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11073 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11074 /^X\(\/\/\)$/{ s//\1/; q; }
11075 /^X\(\/\).*/{ s//\1/; q; }
11076 s/.*/./; q'`
11077 done
11078 test ! -n "$as_dirs" || mkdir $as_dirs
11079 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11080echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11081 { (exit 1); exit 1; }; }; }
11082
11083 rm -f $ac_file
11084 mv $tmp/config.h $ac_file
252b5132 11085 fi
e5a52504
MM
11086 else
11087 cat $tmp/config.h
11088 rm -f $tmp/config.h
252b5132 11089 fi
e5a52504
MM
11090done
11091_ACEOF
11092cat >>$CONFIG_STATUS <<\_ACEOF
252b5132 11093
e5a52504
MM
11094#
11095# CONFIG_COMMANDS section.
11096#
11097for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11098 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11099 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11100 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11101$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11102 X"$ac_dest" : 'X\(//\)[^/]' \| \
11103 X"$ac_dest" : 'X\(//\)$' \| \
11104 X"$ac_dest" : 'X\(/\)' \| \
11105 . : '\(.\)' 2>/dev/null ||
11106echo X"$ac_dest" |
11107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11109 /^X\(\/\/\)$/{ s//\1/; q; }
11110 /^X\(\/\).*/{ s//\1/; q; }
11111 s/.*/./; q'`
11112 { if $as_mkdir_p; then
11113 mkdir -p "$ac_dir"
11114 else
11115 as_dir="$ac_dir"
11116 as_dirs=
11117 while test ! -d "$as_dir"; do
11118 as_dirs="$as_dir $as_dirs"
11119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11121 X"$as_dir" : 'X\(//\)[^/]' \| \
11122 X"$as_dir" : 'X\(//\)$' \| \
11123 X"$as_dir" : 'X\(/\)' \| \
11124 . : '\(.\)' 2>/dev/null ||
11125echo X"$as_dir" |
11126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11128 /^X\(\/\/\)$/{ s//\1/; q; }
11129 /^X\(\/\).*/{ s//\1/; q; }
11130 s/.*/./; q'`
11131 done
11132 test ! -n "$as_dirs" || mkdir $as_dirs
11133 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11134echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11135 { (exit 1); exit 1; }; }; }
252b5132 11136
e5a52504 11137 ac_builddir=.
252b5132 11138
e5a52504
MM
11139if test "$ac_dir" != .; then
11140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11141 # A "../" for each directory in $ac_dir_suffix.
11142 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11143else
11144 ac_dir_suffix= ac_top_builddir=
11145fi
11146
11147case $srcdir in
11148 .) # No --srcdir option. We are building in place.
11149 ac_srcdir=.
11150 if test -z "$ac_top_builddir"; then
11151 ac_top_srcdir=.
11152 else
11153 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11154 fi ;;
11155 [\\/]* | ?:[\\/]* ) # Absolute path.
11156 ac_srcdir=$srcdir$ac_dir_suffix;
11157 ac_top_srcdir=$srcdir ;;
11158 *) # Relative path.
11159 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11160 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11161esac
252b5132 11162
e5a52504
MM
11163# Do not use `cd foo && pwd` to compute absolute paths, because
11164# the directories may not exist.
11165case `pwd` in
11166.) ac_abs_builddir="$ac_dir";;
11167*)
11168 case "$ac_dir" in
11169 .) ac_abs_builddir=`pwd`;;
11170 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11171 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11172 esac;;
11173esac
11174case $ac_abs_builddir in
11175.) ac_abs_top_builddir=${ac_top_builddir}.;;
11176*)
11177 case ${ac_top_builddir}. in
11178 .) ac_abs_top_builddir=$ac_abs_builddir;;
11179 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11180 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11181 esac;;
11182esac
11183case $ac_abs_builddir in
11184.) ac_abs_srcdir=$ac_srcdir;;
11185*)
11186 case $ac_srcdir in
11187 .) ac_abs_srcdir=$ac_abs_builddir;;
11188 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11189 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11190 esac;;
11191esac
11192case $ac_abs_builddir in
11193.) ac_abs_top_srcdir=$ac_top_srcdir;;
11194*)
11195 case $ac_top_srcdir in
11196 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11197 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11198 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11199 esac;;
11200esac
11201
11202
11203 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11204echo "$as_me: executing $ac_dest commands" >&6;}
11205 case $ac_dest in
11206 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
11207 default )
252b5132
RH
11208case "x$CONFIG_FILES" in
11209*) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
11210esac
e5a52504
MM
11211 ;;
11212 esac
11213done
11214_ACEOF
252b5132 11215
e5a52504
MM
11216cat >>$CONFIG_STATUS <<\_ACEOF
11217
11218{ (exit 0); exit 0; }
11219_ACEOF
252b5132 11220chmod +x $CONFIG_STATUS
e5a52504
MM
11221ac_clean_files=$ac_clean_files_save
11222
11223
11224# configure is writing to config.log, and then calls config.status.
11225# config.status does its own redirection, appending to config.log.
11226# Unfortunately, on DOS this fails, as config.log is still kept open
11227# by configure, so config.status won't be able to write to it; its
11228# output is simply discarded. So we exec the FD to /dev/null,
11229# effectively closing config.log, so it can be properly (re)opened and
11230# appended to by config.status. When coming back to configure, we
11231# need to make the FD available again.
11232if test "$no_create" != yes; then
11233 ac_cs_success=:
11234 ac_config_status_args=
11235 test "$silent" = yes &&
11236 ac_config_status_args="$ac_config_status_args --quiet"
11237 exec 5>/dev/null
11238 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11239 exec 5>>config.log
11240 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11241 # would make configure fail if this is the last instruction.
11242 $ac_cs_success || { (exit 1); exit 1; }
11243fi
252b5132 11244
This page took 0.880942 seconds and 4 git commands to generate.