]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/common/configure
Fixup readline and sim including of override.m4
[thirdparty/binutils-gdb.git] / sim / common / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657
AC
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
c906108c 11
b7026657
AC
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
c906108c 23
b7026657
AC
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
c906108c
SS
30
31
b7026657
AC
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
c906108c 37
b7026657
AC
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
c906108c 50
b7026657
AC
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
c906108c 57
b7026657
AC
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
c906108c
SS
63
64
b7026657
AC
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'`
c906108c
SS
76
77
b7026657
AC
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
c906108c 85
b7026657
AC
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
c906108c
SS
98
99
b7026657
AC
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
c906108c 116
b7026657
AC
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
c906108c 155
b7026657
AC
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}
c906108c
SS
185
186
b7026657
AC
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
c906108c 193
b7026657
AC
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
c906108c 199
b7026657
AC
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
c906108c 217
b7026657
AC
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
c906108c 224
b7026657 225as_executable_p="test -f"
c906108c 226
b7026657
AC
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'"
c906108c 229
b7026657
AC
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
232
233
b7026657
AC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
c906108c 239
b7026657
AC
240# CDPATH.
241$as_unset CDPATH
c906108c
SS
242
243
b7026657
AC
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`
c906108c 248
b7026657 249exec 6>&1
c906108c 250
c906108c 251#
b7026657 252# Initializations.
c906108c 253#
b7026657
AC
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
c906108c 261
b7026657
AC
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="Makefile.in"
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"
c906108c 311
6efef468 312ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT CPP EGREP MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI CPP_FOR_TARGET TARGET_SUBDIR LIBOBJS LTLIBOBJS'
b7026657 313ac_subst_files=''
d6416cdc 314ac_pwd=`pwd`
c906108c
SS
315
316# Initialize some variables set by options.
b7026657
AC
317ac_init_help=
318ac_init_version=false
c906108c
SS
319# The variables have the same names as the options, with
320# dashes changed to underlines.
b7026657 321cache_file=/dev/null
c906108c 322exec_prefix=NONE
c906108c 323no_create=
c906108c
SS
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
c906108c
SS
332verbose=
333x_includes=NONE
334x_libraries=NONE
b7026657
AC
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
c906108c
SS
354ac_prev=
355for ac_option
356do
c906108c
SS
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
b7026657 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
b7026657 368 case $ac_option in
c906108c
SS
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 373 bindir=$ac_optarg ;;
c906108c
SS
374
375 -build | --build | --buil | --bui | --bu)
b7026657 376 ac_prev=build_alias ;;
c906108c 377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 378 build_alias=$ac_optarg ;;
c906108c
SS
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
c906108c
SS
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
b7026657 394 datadir=$ac_optarg ;;
c906108c
SS
395
396 -disable-* | --disable-*)
b7026657 397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 398 # Reject names that are not valid shell variable names.
b7026657
AC
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
c906108c
SS
404
405 -enable-* | --enable-*)
b7026657 406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 407 # Reject names that are not valid shell variable names.
b7026657
AC
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
414 *) ac_optarg=yes ;;
415 esac
b7026657 416 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
b7026657 425 exec_prefix=$ac_optarg ;;
c906108c
SS
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
b7026657
AC
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
c906108c
SS
437
438 -host | --host | --hos | --ho)
b7026657 439 ac_prev=host_alias ;;
c906108c 440 -host=* | --host=* | --hos=* | --ho=*)
b7026657 441 host_alias=$ac_optarg ;;
c906108c
SS
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 448 includedir=$ac_optarg ;;
c906108c
SS
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 453 infodir=$ac_optarg ;;
c906108c
SS
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 458 libdir=$ac_optarg ;;
c906108c
SS
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
b7026657 465 libexecdir=$ac_optarg ;;
c906108c
SS
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
b7026657 474 localstatedir=$ac_optarg ;;
c906108c
SS
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 479 mandir=$ac_optarg ;;
c906108c
SS
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 486 | --no-cr | --no-c | -n)
c906108c
SS
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 500 oldincludedir=$ac_optarg ;;
c906108c
SS
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 505 prefix=$ac_optarg ;;
c906108c
SS
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 512 program_prefix=$ac_optarg ;;
c906108c
SS
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 519 program_suffix=$ac_optarg ;;
c906108c
SS
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 536 program_transform_name=$ac_optarg ;;
c906108c
SS
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
b7026657 546 sbindir=$ac_optarg ;;
c906108c
SS
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
b7026657 557 sharedstatedir=$ac_optarg ;;
c906108c
SS
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
b7026657 562 site=$ac_optarg ;;
eb2d80b4 563
c906108c
SS
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 567 srcdir=$ac_optarg ;;
c906108c
SS
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 574 sysconfdir=$ac_optarg ;;
c906108c
SS
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 577 ac_prev=target_alias ;;
c906108c 578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 579 target_alias=$ac_optarg ;;
c906108c
SS
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
b7026657
AC
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
c906108c
SS
586
587 -with-* | --with-*)
b7026657 588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 589 # Reject names that are not valid shell variable names.
b7026657
AC
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
c906108c 593 ac_package=`echo $ac_package| sed 's/-/_/g'`
b7026657
AC
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
c906108c
SS
596 *) ac_optarg=yes ;;
597 esac
b7026657 598 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
599
600 -without-* | --without-*)
b7026657 601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 602 # Reject names that are not valid shell variable names.
b7026657
AC
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
c906108c
SS
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 618 x_includes=$ac_optarg ;;
c906108c
SS
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 625 x_libraries=$ac_optarg ;;
c906108c 626
b7026657
AC
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
c906108c
SS
630 ;;
631
b7026657
AC
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
c906108c 642 *)
b7026657
AC
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
b7026657
AC
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
c906108c 657fi
c906108c 658
b7026657
AC
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
c906108c 669
b7026657
AC
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
c906108c 673do
b7026657
AC
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
c906108c
SS
679 esac
680done
681
b7026657
AC
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
c906108c 699
b7026657
AC
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
c906108c 704
c906108c
SS
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
b7026657
AC
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
c906108c
SS
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
b7026657
AC
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
c906108c 733 else
b7026657
AC
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
c906108c
SS
736 fi
737fi
b7026657
AC
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
c906108c 774
b7026657
AC
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
c906108c 783
b7026657 784Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 785
b7026657
AC
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 788
b7026657 789Defaults for the options are specified in brackets.
c906108c 790
b7026657
AC
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
c906108c 810
b7026657
AC
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
c906108c 815
b7026657
AC
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834
835Program names:
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
840System types:
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
843 --target=TARGET configure for building compilers for TARGET [HOST]
844_ACEOF
c906108c 845fi
b7026657
AC
846
847if test -n "$ac_init_help"; then
848
849 cat <<\_ACEOF
850
851Optional Features:
852 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
853 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
b7026657
AC
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861
6efef468
JM
862Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
866 --with-bugurl=URL Direct users to URL to report a bug
867
b7026657
AC
868Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
875 CPP C preprocessor
876
877Use these variables to override the choices made by `configure' or to help
878it to find libraries and programs with nonstandard names/locations.
879
880_ACEOF
c906108c
SS
881fi
882
b7026657
AC
883if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
885 ac_popdir=`pwd`
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
888 ac_builddir=.
c906108c 889
b7026657
AC
890if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 894else
b7026657 895 ac_dir_suffix= ac_top_builddir=
c906108c
SS
896fi
897
b7026657
AC
898case $srcdir in
899 .) # No --srcdir option. We are building in place.
900 ac_srcdir=.
901 if test -z "$ac_top_builddir"; then
902 ac_top_srcdir=.
903 else
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
905 fi ;;
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
909 *) # Relative path.
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
912esac
913
914# Do not use `cd foo && pwd` to compute absolute paths, because
915# the directories may not exist.
916case `pwd` in
917.) ac_abs_builddir="$ac_dir";;
918*)
919 case "$ac_dir" in
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
923 esac;;
924esac
925case $ac_abs_builddir in
926.) ac_abs_top_builddir=${ac_top_builddir}.;;
927*)
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
932 esac;;
933esac
934case $ac_abs_builddir in
935.) ac_abs_srcdir=$ac_srcdir;;
936*)
937 case $ac_srcdir in
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
941 esac;;
942esac
943case $ac_abs_builddir in
944.) ac_abs_top_srcdir=$ac_top_srcdir;;
945*)
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950 esac;;
951esac
952
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 fi
20e95c23 968 cd $ac_popdir
b7026657 969 done
c906108c 970fi
b7026657
AC
971
972test -n "$ac_init_help" && exit 0
973if $ac_init_version; then
974 cat <<\_ACEOF
975
976Copyright (C) 2003 Free Software Foundation, Inc.
977This configure script is free software; the Free Software Foundation
978gives unlimited permission to copy, distribute and modify it.
979_ACEOF
980 exit 0
981fi
982exec 5>config.log
983cat >&5 <<_ACEOF
984This file contains any messages produced by compilers while
985running configure, to aid debugging if configure makes a mistake.
986
987It was created by $as_me, which was
988generated by GNU Autoconf 2.59. Invocation command line was
989
990 $ $0 $@
991
992_ACEOF
993{
994cat <<_ASUNAME
995## --------- ##
996## Platform. ##
997## --------- ##
998
999hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004
1005/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007
1008/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015
1016_ASUNAME
1017
1018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019for as_dir in $PATH
1020do
1021 IFS=$as_save_IFS
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1024done
1025
1026} >&5
1027
1028cat >&5 <<_ACEOF
1029
1030
1031## ----------- ##
1032## Core tests. ##
1033## ----------- ##
1034
1035_ACEOF
1036
1037
1038# Keep a trace of the command line.
1039# Strip out --no-create and --no-recursion so they do not pile up.
1040# Strip out --silent because we don't want to record it for future runs.
1041# Also quote any args containing shell meta-characters.
1042# Make two passes to allow for proper duplicate-argument suppression.
1043ac_configure_args=
1044ac_configure_args0=
1045ac_configure_args1=
1046ac_sep=
1047ac_must_keep_next=false
1048for ac_pass in 1 2
1049do
1050 for ac_arg
1051 do
1052 case $ac_arg in
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1056 continue ;;
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1059 esac
1060 case $ac_pass in
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 2)
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1066 else
1067 case $ac_arg in
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1074 esac
1075 ;;
1076 -* ) ac_must_keep_next=true ;;
1077 esac
1078 fi
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1081 ac_sep=" "
1082 ;;
1083 esac
1084 done
1085done
1086$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088
1089# When interrupted or exit'd, cleanup temporary files, and complete
1090# config.log. We remove comments because anyway the quotes in there
1091# would cause problems or look ugly.
1092# WARNING: Be sure not to use single quotes in there, as some shells,
1093# such as our DU 5.0 friend, will then `close' the trap.
1094trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1096 {
1097 echo
1098
1099 cat <<\_ASBOX
1100## ---------------- ##
1101## Cache variables. ##
1102## ---------------- ##
1103_ASBOX
1104 echo
1105 # The following way of writing the cache mishandles newlines in values,
1106{
1107 (set) 2>&1 |
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1109 *ac_space=\ *)
1110 sed -n \
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113 ;;
1114 *)
1115 sed -n \
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ;;
1118 esac;
1119}
1120 echo
1121
1122 cat <<\_ASBOX
1123## ----------------- ##
1124## Output variables. ##
1125## ----------------- ##
1126_ASBOX
1127 echo
1128 for ac_var in $ac_subst_vars
1129 do
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1132 done | sort
1133 echo
1134
1135 if test -n "$ac_subst_files"; then
1136 cat <<\_ASBOX
1137## ------------- ##
1138## Output files. ##
1139## ------------- ##
1140_ASBOX
1141 echo
1142 for ac_var in $ac_subst_files
1143 do
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1146 done | sort
1147 echo
1148 fi
1149
1150 if test -s confdefs.h; then
1151 cat <<\_ASBOX
1152## ----------- ##
1153## confdefs.h. ##
1154## ----------- ##
1155_ASBOX
1156 echo
1157 sed "/^$/d" confdefs.h | sort
1158 echo
1159 fi
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1163 } >&5
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1166 exit $exit_status
1167 ' 0
1168for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170done
1171ac_signal=0
1172
1173# confdefs.h avoids OS command line length limits that DEFS can exceed.
1174rm -rf conftest* confdefs.h
1175# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1176echo >confdefs.h
1177
1178# Predefined preprocessor variables.
1179
1180cat >>confdefs.h <<_ACEOF
1181#define PACKAGE_NAME "$PACKAGE_NAME"
1182_ACEOF
1183
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_VERSION "$PACKAGE_VERSION"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_STRING "$PACKAGE_STRING"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202_ACEOF
1203
1204
1205# Let the site file select an alternate cache file if it wants to.
1206# Prefer explicitly selected file to automatically selected ones.
1207if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 else
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1212 fi
1213fi
1214for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1219 . "$ac_site_file"
1220 fi
1221done
1222
1223if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228echo "$as_me: loading cache $cache_file" >&6;}
1229 case $cache_file in
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1232 esac
1233 fi
1234else
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236echo "$as_me: creating cache $cache_file" >&6;}
1237 >$cache_file
1238fi
1239
1240# Check that the precious variables saved in the cache have kept the same
1241# value.
1242ac_cache_corrupted=false
1243for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1250 set,)
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1254 ,set)
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1258 ,);;
1259 *)
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
d6416cdc
RW
1261 # differences in whitespace do not lead to failure.
1262 ac_old_val_w=`echo x $ac_old_val`
1263 ac_new_val_w=`echo x $ac_new_val`
1264 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1265 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
b7026657 1266echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
d6416cdc
RW
1267 ac_cache_corrupted=:
1268 else
1269 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1270echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1271 eval $ac_var=\$ac_old_val
1272 fi
1273 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1274echo "$as_me: former value: \`$ac_old_val'" >&2;}
1275 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1276echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
1277 fi;;
1278 esac
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1281 case $ac_new_val in
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1285 esac
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 esac
1290 fi
1291done
1292if $ac_cache_corrupted; then
d6416cdc
RW
1293 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1294echo "$as_me: error: in \`$ac_pwd':" >&2;}
b7026657
AC
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1300fi
1301
1302ac_ext=c
1303ac_cpp='$CPP $CPPFLAGS'
1304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306ac_compiler_gnu=$ac_cv_c_compiler_gnu
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
d6416cdc
RW
1324
1325
1326
b7026657
AC
1327
1328
35695fd6
AC
1329 ac_config_headers="$ac_config_headers cconfig.h:config.in"
1330
1331
1332# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1333# it by inlining the macro's contents.
1334# This file contains common code used by all simulators.
1335#
1336# common.m4 invokes AC macros used by all simulators and by the common
1337# directory. It is intended to be included before any target specific
1338# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1339# the Makefile. It is intended to be invoked last.
1340#
1341# The simulator's configure.in should look like:
1342#
1343# dnl Process this file with autoconf to produce a configure script.
1344# AC_PREREQ(2.5)dnl
1345# AC_INIT(Makefile.in)
1346# AC_CONFIG_HEADER(config.h:config.in)
1347#
1348# sinclude(../common/aclocal.m4)
1349# sinclude(../common/common.m4)
1350#
1351# ... target specific stuff ...
b7026657 1352
b7026657
AC
1353ac_aux_dir=
1354for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1355 if test -f $ac_dir/install-sh; then
1356 ac_aux_dir=$ac_dir
1357 ac_install_sh="$ac_aux_dir/install-sh -c"
1358 break
1359 elif test -f $ac_dir/install.sh; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/install.sh -c"
1362 break
1363 elif test -f $ac_dir/shtool; then
1364 ac_aux_dir=$ac_dir
1365 ac_install_sh="$ac_aux_dir/shtool install -c"
1366 break
1367 fi
1368done
1369if test -z "$ac_aux_dir"; then
1370 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1371echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1372 { (exit 1); exit 1; }; }
1373fi
1374ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1375ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1376ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377
1378# Make sure we can run config.sub.
1379$ac_config_sub sun4 >/dev/null 2>&1 ||
1380 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1381echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1382 { (exit 1); exit 1; }; }
1383
1384echo "$as_me:$LINENO: checking build system type" >&5
1385echo $ECHO_N "checking build system type... $ECHO_C" >&6
1386if test "${ac_cv_build+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1388else
1389 ac_cv_build_alias=$build_alias
1390test -z "$ac_cv_build_alias" &&
1391 ac_cv_build_alias=`$ac_config_guess`
1392test -z "$ac_cv_build_alias" &&
1393 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1394echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1395 { (exit 1); exit 1; }; }
1396ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1397 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1398echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1399 { (exit 1); exit 1; }; }
1400
1401fi
1402echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1403echo "${ECHO_T}$ac_cv_build" >&6
1404build=$ac_cv_build
1405build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1406build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1407build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1408
1409
1410echo "$as_me:$LINENO: checking host system type" >&5
1411echo $ECHO_N "checking host system type... $ECHO_C" >&6
1412if test "${ac_cv_host+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1414else
1415 ac_cv_host_alias=$host_alias
1416test -z "$ac_cv_host_alias" &&
1417 ac_cv_host_alias=$ac_cv_build_alias
1418ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1419 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1420echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1421 { (exit 1); exit 1; }; }
1422
1423fi
1424echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1425echo "${ECHO_T}$ac_cv_host" >&6
1426host=$ac_cv_host
1427host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430
1431
35695fd6
AC
1432echo "$as_me:$LINENO: checking target system type" >&5
1433echo $ECHO_N "checking target system type... $ECHO_C" >&6
1434if test "${ac_cv_target+set}" = set; then
b7026657
AC
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436else
35695fd6
AC
1437 ac_cv_target_alias=$target_alias
1438test "x$ac_cv_target_alias" = "x" &&
1439 ac_cv_target_alias=$ac_cv_host_alias
1440ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1442echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1444
1445fi
1446echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1447echo "${ECHO_T}$ac_cv_target" >&6
1448target=$ac_cv_target
1449target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454# The aliases save the names the user supplied, while $host etc.
1455# will get canonicalized.
1456test -n "$target_alias" &&
1457 test "$program_prefix$program_suffix$program_transform_name" = \
1458 NONENONEs,x,x, &&
1459 program_prefix=${target_alias}-
1460test "$program_prefix" != NONE &&
1461 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1462# Use a double $ so make ignores it.
1463test "$program_suffix" != NONE &&
1464 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1465# Double any \ or $. echo might interpret backslashes.
1466# By default was `s,x,x', remove it if useless.
1467cat <<\_ACEOF >conftest.sed
1468s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1469_ACEOF
35695fd6
AC
1470program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1471rm conftest.sed
1472
1473ac_ext=c
1474ac_cpp='$CPP $CPPFLAGS'
1475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481echo "$as_me:$LINENO: checking for $ac_word" >&5
1482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1485else
35695fd6
AC
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1488else
1489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490for as_dir in $PATH
1491do
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1499 fi
1500done
1501done
1502
b7026657 1503fi
b7026657 1504fi
35695fd6
AC
1505CC=$ac_cv_prog_CC
1506if test -n "$CC"; then
1507 echo "$as_me:$LINENO: result: $CC" >&5
1508echo "${ECHO_T}$CC" >&6
b7026657
AC
1509else
1510 echo "$as_me:$LINENO: result: no" >&5
1511echo "${ECHO_T}no" >&6
b7026657
AC
1512fi
1513
35695fd6
AC
1514fi
1515if test -z "$ac_cv_prog_CC"; then
1516 ac_ct_CC=$CC
1517 # Extract the first word of "gcc", so it can be a program name with args.
1518set dummy gcc; ac_word=$2
1519echo "$as_me:$LINENO: checking for $ac_word" >&5
1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1523else
35695fd6
AC
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1526else
35695fd6
AC
1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528for as_dir in $PATH
1529do
1530 IFS=$as_save_IFS
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="gcc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1536 break 2
1537 fi
1538done
1539done
b7026657
AC
1540
1541fi
b7026657 1542fi
35695fd6
AC
1543ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546echo "${ECHO_T}$ac_ct_CC" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
b7026657 1550fi
b7026657 1551
35695fd6
AC
1552 CC=$ac_ct_CC
1553else
1554 CC="$ac_cv_prog_CC"
b7026657
AC
1555fi
1556
35695fd6
AC
1557if test -z "$CC"; then
1558 if test -n "$ac_tool_prefix"; then
1559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560set dummy ${ac_tool_prefix}cc; ac_word=$2
1561echo "$as_me:$LINENO: checking for $ac_word" >&5
1562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563if test "${ac_cv_prog_CC+set}" = set; then
b7026657
AC
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
35695fd6
AC
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1568else
1569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570for as_dir in $PATH
b7026657 1571do
35695fd6
AC
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_CC="${ac_tool_prefix}cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
b7026657 1579 fi
35695fd6
AC
1580done
1581done
b7026657 1582
b7026657 1583fi
b7026657 1584fi
35695fd6
AC
1585CC=$ac_cv_prog_CC
1586if test -n "$CC"; then
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588echo "${ECHO_T}$CC" >&6
b7026657 1589else
35695fd6
AC
1590 echo "$as_me:$LINENO: result: no" >&5
1591echo "${ECHO_T}no" >&6
b7026657
AC
1592fi
1593
b7026657 1594fi
35695fd6
AC
1595if test -z "$ac_cv_prog_CC"; then
1596 ac_ct_CC=$CC
1597 # Extract the first word of "cc", so it can be a program name with args.
1598set dummy cc; ac_word=$2
1599echo "$as_me:$LINENO: checking for $ac_word" >&5
1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1603else
35695fd6
AC
1604 if test -n "$ac_ct_CC"; then
1605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606else
1607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608for as_dir in $PATH
b7026657 1609do
35695fd6
AC
1610 IFS=$as_save_IFS
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_ac_ct_CC="cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1616 break 2
b7026657 1617 fi
35695fd6
AC
1618done
1619done
b7026657 1620
b7026657 1621fi
b7026657 1622fi
35695fd6
AC
1623ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624if test -n "$ac_ct_CC"; then
1625 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1627else
35695fd6
AC
1628 echo "$as_me:$LINENO: result: no" >&5
1629echo "${ECHO_T}no" >&6
b7026657 1630fi
b7026657 1631
35695fd6 1632 CC=$ac_ct_CC
b7026657 1633else
35695fd6 1634 CC="$ac_cv_prog_CC"
b7026657
AC
1635fi
1636
35695fd6
AC
1637fi
1638if test -z "$CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640set dummy cc; ac_word=$2
1641echo "$as_me:$LINENO: checking for $ac_word" >&5
1642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643if test "${ac_cv_prog_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1648else
1649 ac_prog_rejected=no
1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653 IFS=$as_save_IFS
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1659 continue
1660 fi
1661 ac_cv_prog_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 break 2
1664 fi
1665done
1666done
b7026657 1667
35695fd6
AC
1668if test $ac_prog_rejected = yes; then
1669 # We found a bogon in the path, so make sure we never use it.
1670 set dummy $ac_cv_prog_CC
1671 shift
1672 if test $# != 0; then
1673 # We chose a different compiler from the bogus one.
1674 # However, it has the same basename, so the bogon will be chosen
1675 # first if we set CC to just the basename; use the full file name.
1676 shift
1677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1678 fi
1679fi
1680fi
1681fi
1682CC=$ac_cv_prog_CC
1683if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685echo "${ECHO_T}$CC" >&6
1686else
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
1689fi
b7026657 1690
35695fd6
AC
1691fi
1692if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1694 for ac_prog in cl
1695 do
1696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698echo "$as_me:$LINENO: checking for $ac_word" >&5
1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700if test "${ac_cv_prog_CC+set}" = set; then
b7026657
AC
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702else
35695fd6
AC
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1705else
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 break 2
1716 fi
1717done
1718done
b7026657 1719
35695fd6
AC
1720fi
1721fi
1722CC=$ac_cv_prog_CC
1723if test -n "$CC"; then
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725echo "${ECHO_T}$CC" >&6
1726else
1727 echo "$as_me:$LINENO: result: no" >&5
1728echo "${ECHO_T}no" >&6
1729fi
b7026657 1730
35695fd6
AC
1731 test -n "$CC" && break
1732 done
1733fi
1734if test -z "$CC"; then
1735 ac_ct_CC=$CC
1736 for ac_prog in cl
1737do
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739set dummy $ac_prog; ac_word=$2
1740echo "$as_me:$LINENO: checking for $ac_word" >&5
1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
35695fd6
AC
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747else
1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC="$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 break 2
1758 fi
1759done
1760done
1761
1762fi
1763fi
1764ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767echo "${ECHO_T}$ac_ct_CC" >&6
1768else
1769 echo "$as_me:$LINENO: result: no" >&5
1770echo "${ECHO_T}no" >&6
1771fi
1772
1773 test -n "$ac_ct_CC" && break
1774done
1775
1776 CC=$ac_ct_CC
1777fi
1778
1779fi
1780
1781
d6416cdc
RW
1782test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1783echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
35695fd6
AC
1785See \`config.log' for more details." >&5
1786echo "$as_me: error: no acceptable C compiler found in \$PATH
1787See \`config.log' for more details." >&2;}
d6416cdc 1788 { (exit 1); exit 1; }; }; }
35695fd6
AC
1789
1790# Provide some information about the compiler.
1791echo "$as_me:$LINENO:" \
1792 "checking for C compiler version" >&5
1793ac_compiler=`set X $ac_compile; echo $2`
1794{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1795 (eval $ac_compiler --version </dev/null >&5) 2>&5
1796 ac_status=$?
1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1798 (exit $ac_status); }
1799{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1800 (eval $ac_compiler -v </dev/null >&5) 2>&5
1801 ac_status=$?
1802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1803 (exit $ac_status); }
1804{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1805 (eval $ac_compiler -V </dev/null >&5) 2>&5
1806 ac_status=$?
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }
1809
1810cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
1811/* confdefs.h. */
1812_ACEOF
1813cat confdefs.h >>conftest.$ac_ext
1814cat >>conftest.$ac_ext <<_ACEOF
1815/* end confdefs.h. */
b7026657
AC
1816
1817int
1818main ()
1819{
1820
1821 ;
1822 return 0;
1823}
1824_ACEOF
35695fd6
AC
1825ac_clean_files_save=$ac_clean_files
1826ac_clean_files="$ac_clean_files a.out a.exe b.out"
1827# Try to create an executable without -o first, disregard a.out.
1828# It will help us diagnose broken compilers, and finding out an intuition
1829# of exeext.
1830echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1831echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1832ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1833if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1834 (eval $ac_link_default) 2>&5
b7026657
AC
1835 ac_status=$?
1836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
1837 (exit $ac_status); }; then
1838 # Find the output, starting from the most likely. This scheme is
1839# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840# resort.
1841
1842# Be careful to initialize this variable, since it used to be cached.
1843# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1844ac_cv_exeext=
1845# b.out is created by i960 compilers.
1846for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1847do
1848 test -f "$ac_file" || continue
1849 case $ac_file in
1850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851 ;;
1852 conftest.$ac_ext )
1853 # This is the source file.
1854 ;;
1855 [ab].out )
1856 # We found the default executable, but exeext='' is most
1857 # certainly right.
1858 break;;
1859 *.* )
1860 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1861 # FIXME: I believe we export ac_cv_exeext for Libtool,
1862 # but it would be cool to find out if it's true. Does anybody
1863 # maintain Libtool? --akim.
1864 export ac_cv_exeext
1865 break;;
1866 * )
1867 break;;
1868 esac
1869done
b7026657
AC
1870else
1871 echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
d6416cdc
RW
1874{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1875echo "$as_me: error: in \`$ac_pwd':" >&2;}
35695fd6
AC
1876{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1877See \`config.log' for more details." >&5
1878echo "$as_me: error: C compiler cannot create executables
1879See \`config.log' for more details." >&2;}
d6416cdc 1880 { (exit 77); exit 77; }; }; }
b7026657 1881fi
c906108c 1882
35695fd6
AC
1883ac_exeext=$ac_cv_exeext
1884echo "$as_me:$LINENO: result: $ac_file" >&5
1885echo "${ECHO_T}$ac_file" >&6
c906108c 1886
35695fd6
AC
1887# Check the compiler produces executables we can run. If not, either
1888# the compiler is broken, or we cross compile.
1889echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1890echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1891# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1892# If not cross compiling, check that we can run a simple program.
1893if test "$cross_compiling" != yes; then
1894 if { ac_try='./$ac_file'
1895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1896 (eval $ac_try) 2>&5
1897 ac_status=$?
1898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1900 cross_compiling=no
1901 else
1902 if test "$cross_compiling" = maybe; then
1903 cross_compiling=yes
1904 else
d6416cdc
RW
1905 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1906echo "$as_me: error: in \`$ac_pwd':" >&2;}
1907{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
35695fd6
AC
1908If you meant to cross compile, use \`--host'.
1909See \`config.log' for more details." >&5
1910echo "$as_me: error: cannot run C compiled programs.
1911If you meant to cross compile, use \`--host'.
1912See \`config.log' for more details." >&2;}
d6416cdc 1913 { (exit 1); exit 1; }; }; }
35695fd6
AC
1914 fi
1915 fi
c906108c 1916fi
35695fd6
AC
1917echo "$as_me:$LINENO: result: yes" >&5
1918echo "${ECHO_T}yes" >&6
c906108c 1919
35695fd6
AC
1920rm -f a.out a.exe conftest$ac_cv_exeext b.out
1921ac_clean_files=$ac_clean_files_save
1922# Check the compiler produces executables we can run. If not, either
1923# the compiler is broken, or we cross compile.
1924echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1925echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1926echo "$as_me:$LINENO: result: $cross_compiling" >&5
1927echo "${ECHO_T}$cross_compiling" >&6
b7026657 1928
35695fd6
AC
1929echo "$as_me:$LINENO: checking for suffix of executables" >&5
1930echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1932 (eval $ac_link) 2>&5
1933 ac_status=$?
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; then
1936 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1937# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1938# work properly (i.e., refer to `conftest.exe'), while it won't with
1939# `rm'.
1940for ac_file in conftest.exe conftest conftest.*; do
1941 test -f "$ac_file" || continue
1942 case $ac_file in
1943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1944 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945 export ac_cv_exeext
1946 break;;
1947 * ) break;;
1948 esac
1949done
c906108c 1950else
d6416cdc
RW
1951 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1952echo "$as_me: error: in \`$ac_pwd':" >&2;}
1953{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
35695fd6
AC
1954See \`config.log' for more details." >&5
1955echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1956See \`config.log' for more details." >&2;}
d6416cdc 1957 { (exit 1); exit 1; }; }; }
c906108c 1958fi
c906108c 1959
35695fd6
AC
1960rm -f conftest$ac_cv_exeext
1961echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1962echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1963
35695fd6
AC
1964rm -f conftest.$ac_ext
1965EXEEXT=$ac_cv_exeext
1966ac_exeext=$EXEEXT
1967echo "$as_me:$LINENO: checking for suffix of object files" >&5
1968echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1969if test "${ac_cv_objext+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1971else
b7026657
AC
1972 cat >conftest.$ac_ext <<_ACEOF
1973/* confdefs.h. */
1974_ACEOF
1975cat confdefs.h >>conftest.$ac_ext
1976cat >>conftest.$ac_ext <<_ACEOF
1977/* end confdefs.h. */
c906108c 1978
b7026657
AC
1979int
1980main ()
1981{
35695fd6
AC
1982
1983 ;
1984 return 0;
b7026657
AC
1985}
1986_ACEOF
35695fd6
AC
1987rm -f conftest.o conftest.obj
1988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
b7026657
AC
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
1992 (exit $ac_status); }; then
1993 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1994 case $ac_file in
1995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1996 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1997 break;;
1998 esac
1999done
c906108c 2000else
35695fd6 2001 echo "$as_me: failed program was:" >&5
b7026657
AC
2002sed 's/^/| /' conftest.$ac_ext >&5
2003
d6416cdc
RW
2004{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2005echo "$as_me: error: in \`$ac_pwd':" >&2;}
35695fd6
AC
2006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007See \`config.log' for more details." >&5
2008echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009See \`config.log' for more details." >&2;}
d6416cdc 2010 { (exit 1); exit 1; }; }; }
c906108c 2011fi
c906108c 2012
35695fd6 2013rm -f conftest.$ac_cv_objext conftest.$ac_ext
b7026657 2014fi
35695fd6
AC
2015echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2016echo "${ECHO_T}$ac_cv_objext" >&6
2017OBJEXT=$ac_cv_objext
2018ac_objext=$OBJEXT
2019echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021if test "${ac_cv_c_compiler_gnu+set}" = set; then
b7026657
AC
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 cat >conftest.$ac_ext <<_ACEOF
2025/* confdefs.h. */
2026_ACEOF
2027cat confdefs.h >>conftest.$ac_ext
2028cat >>conftest.$ac_ext <<_ACEOF
2029/* end confdefs.h. */
2030
2031int
2032main ()
2033{
35695fd6
AC
2034#ifndef __GNUC__
2035 choke me
b7026657
AC
2036#endif
2037
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042rm -f conftest.$ac_objext
2043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044 (eval $ac_compile) 2>conftest.er1
2045 ac_status=$?
2046 grep -v '^ *+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); } &&
20e95c23
DJ
2051 { ac_try='test -z "$ac_c_werror_flag"
2052 || test ! -s conftest.err'
b7026657
AC
2053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 (eval $ac_try) 2>&5
2055 ac_status=$?
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }; } &&
2058 { ac_try='test -s conftest.$ac_objext'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; }; then
35695fd6 2064 ac_compiler_gnu=yes
c906108c 2065else
b7026657
AC
2066 echo "$as_me: failed program was:" >&5
2067sed 's/^/| /' conftest.$ac_ext >&5
2068
35695fd6 2069ac_compiler_gnu=no
c906108c 2070fi
b7026657 2071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6 2072ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c
SS
2073
2074fi
35695fd6
AC
2075echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2076echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2077GCC=`test $ac_compiler_gnu = yes && echo yes`
2078ac_test_CFLAGS=${CFLAGS+set}
2079ac_save_CFLAGS=$CFLAGS
2080CFLAGS="-g"
2081echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2082echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2083if test "${ac_cv_prog_cc_g+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2085else
b7026657
AC
2086 cat >conftest.$ac_ext <<_ACEOF
2087/* confdefs.h. */
2088_ACEOF
2089cat confdefs.h >>conftest.$ac_ext
2090cat >>conftest.$ac_ext <<_ACEOF
2091/* end confdefs.h. */
b7026657 2092
35695fd6
AC
2093int
2094main ()
2095{
2096
2097 ;
2098 return 0;
2099}
b7026657
AC
2100_ACEOF
2101rm -f conftest.$ac_objext
2102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2104 ac_status=$?
2105 grep -v '^ *+' conftest.er1 >conftest.err
2106 rm -f conftest.er1
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
20e95c23
DJ
2110 { ac_try='test -z "$ac_c_werror_flag"
2111 || test ! -s conftest.err'
b7026657
AC
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
35695fd6 2123 ac_cv_prog_cc_g=yes
c906108c 2124else
b7026657
AC
2125 echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
35695fd6 2128ac_cv_prog_cc_g=no
c906108c 2129fi
b7026657 2130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2131fi
35695fd6
AC
2132echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2133echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2134if test "$ac_test_CFLAGS" = set; then
2135 CFLAGS=$ac_save_CFLAGS
2136elif test $ac_cv_prog_cc_g = yes; then
2137 if test "$GCC" = yes; then
2138 CFLAGS="-g -O2"
2139 else
2140 CFLAGS="-g"
2141 fi
2142else
2143 if test "$GCC" = yes; then
2144 CFLAGS="-O2"
2145 else
2146 CFLAGS=
2147 fi
2148fi
2149echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2150echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2151if test "${ac_cv_prog_cc_stdc+set}" = set; then
b7026657
AC
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153else
35695fd6
AC
2154 ac_cv_prog_cc_stdc=no
2155ac_save_CC=$CC
2156cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2157/* confdefs.h. */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h. */
35695fd6
AC
2162#include <stdarg.h>
2163#include <stdio.h>
2164#include <sys/types.h>
2165#include <sys/stat.h>
2166/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2167struct buf { int x; };
2168FILE * (*rcsopen) (struct buf *, struct stat *, int);
2169static char *e (p, i)
2170 char **p;
2171 int i;
2172{
2173 return p[i];
2174}
2175static char *f (char * (*g) (char **, int), char **p, ...)
2176{
2177 char *s;
2178 va_list v;
2179 va_start (v,p);
2180 s = g (p, va_arg (v,int));
2181 va_end (v);
2182 return s;
2183}
b7026657 2184
35695fd6
AC
2185/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2186 function prototypes and stuff, but not '\xHH' hex character constants.
2187 These don't provoke an error unfortunately, instead are silently treated
2188 as 'x'. The following induces an error, until -std1 is added to get
2189 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2190 array size at least. It's necessary to write '\x00'==0 to get something
2191 that's true only with -std1. */
2192int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2193
2194int test (int i, double x);
2195struct s1 {int (*f) (int a);};
2196struct s2 {int (*f) (double a);};
2197int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2198int argc;
2199char **argv;
2200int
2201main ()
2202{
2203return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2204 ;
2205 return 0;
2206}
b7026657 2207_ACEOF
35695fd6
AC
2208# Don't try gcc -ansi; that turns off useful extensions and
2209# breaks some systems' header files.
2210# AIX -qlanglvl=ansi
2211# Ultrix and OSF/1 -std1
2212# HP-UX 10.20 and later -Ae
2213# HP-UX older versions -Aa -D_HPUX_SOURCE
2214# SVR4 -Xc -D__EXTENSIONS__
2215for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2216do
2217 CC="$ac_save_CC $ac_arg"
2218 rm -f conftest.$ac_objext
b7026657
AC
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
20e95c23
DJ
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
b7026657
AC
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
35695fd6
AC
2240 ac_cv_prog_cc_stdc=$ac_arg
2241break
b7026657
AC
2242else
2243 echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
b7026657 2246fi
35695fd6
AC
2247rm -f conftest.err conftest.$ac_objext
2248done
2249rm -f conftest.$ac_ext conftest.$ac_objext
2250CC=$ac_save_CC
b7026657
AC
2251
2252fi
2253
35695fd6
AC
2254case "x$ac_cv_prog_cc_stdc" in
2255 x|xno)
2256 echo "$as_me:$LINENO: result: none needed" >&5
2257echo "${ECHO_T}none needed" >&6 ;;
2258 *)
2259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2260echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2261 CC="$CC $ac_cv_prog_cc_stdc" ;;
2262esac
b7026657 2263
35695fd6
AC
2264# Some people use a C++ compiler to compile C. Since we use `exit',
2265# in C++ we need to declare it. In case someone uses the same compiler
2266# for both compiling C and C++ we need to have the C++ compiler decide
2267# the declaration of exit, since it's the most demanding environment.
2268cat >conftest.$ac_ext <<_ACEOF
2269#ifndef __cplusplus
2270 choke me
2271#endif
2272_ACEOF
2273rm -f conftest.$ac_objext
2274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>conftest.er1
2276 ac_status=$?
2277 grep -v '^ *+' conftest.er1 >conftest.err
2278 rm -f conftest.er1
2279 cat conftest.err >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); } &&
20e95c23
DJ
2282 { ac_try='test -z "$ac_c_werror_flag"
2283 || test ! -s conftest.err'
35695fd6
AC
2284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 (eval $ac_try) 2>&5
2286 ac_status=$?
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; } &&
2289 { ac_try='test -s conftest.$ac_objext'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291 (eval $ac_try) 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; }; then
2295 for ac_declaration in \
2296 '' \
2297 'extern "C" void std::exit (int) throw (); using std::exit;' \
2298 'extern "C" void std::exit (int); using std::exit;' \
2299 'extern "C" void exit (int) throw ();' \
2300 'extern "C" void exit (int);' \
2301 'void exit (int);'
2302do
b7026657
AC
2303 cat >conftest.$ac_ext <<_ACEOF
2304/* confdefs.h. */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
2308/* end confdefs.h. */
35695fd6
AC
2309$ac_declaration
2310#include <stdlib.h>
b7026657
AC
2311int
2312main ()
2313{
35695fd6 2314exit (42);
b7026657
AC
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319rm -f conftest.$ac_objext
2320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321 (eval $ac_compile) 2>conftest.er1
2322 ac_status=$?
2323 grep -v '^ *+' conftest.er1 >conftest.err
2324 rm -f conftest.er1
2325 cat conftest.err >&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); } &&
20e95c23
DJ
2328 { ac_try='test -z "$ac_c_werror_flag"
2329 || test ! -s conftest.err'
b7026657
AC
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
2336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337 (eval $ac_try) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }; }; then
35695fd6 2341 :
c906108c 2342else
b7026657
AC
2343 echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2345
35695fd6 2346continue
c906108c 2347fi
b7026657 2348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2349 cat >conftest.$ac_ext <<_ACEOF
2350/* confdefs.h. */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h. */
35695fd6 2355$ac_declaration
b7026657
AC
2356int
2357main ()
2358{
35695fd6 2359exit (42);
b7026657
AC
2360 ;
2361 return 0;
2362}
2363_ACEOF
2364rm -f conftest.$ac_objext
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
20e95c23
DJ
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
b7026657
AC
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382 (eval $ac_try) 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
35695fd6 2386 break
c906108c 2387else
b7026657
AC
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2390
b7026657
AC
2391fi
2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6
AC
2393done
2394rm -f conftest*
2395if test -n "$ac_declaration"; then
2396 echo '#ifdef __cplusplus' >>confdefs.h
2397 echo $ac_declaration >>confdefs.h
2398 echo '#endif' >>confdefs.h
c906108c 2399fi
35695fd6 2400
b7026657 2401else
35695fd6
AC
2402 echo "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405fi
2406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407ac_ext=c
2408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412
2413# Find a good install program. We prefer a C program (faster),
2414# so one script is as good as another. But avoid the broken or
2415# incompatible versions:
2416# SysV /etc/install, /usr/sbin/install
2417# SunOS /usr/etc/install
2418# IRIX /sbin/install
2419# AIX /bin/install
2420# AmigaOS /C/install, which installs bootblocks on floppy discs
2421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424# OS/2's system install, which has a completely different semantic
2425# ./install, which can be erroneously created by make from ./install.sh.
2426echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2427echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2428if test -z "$INSTALL"; then
2429if test "${ac_cv_path_install+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 # Account for people who put trailing slashes in PATH elements.
2438case $as_dir/ in
2439 ./ | .// | /cC/* | \
2440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2442 /usr/ucb/* ) ;;
2443 *)
2444 # OSF1 and SCO ODT 3.0 have their own names for install.
2445 # Don't use installbsd from OSF since it installs stuff as root
2446 # by default.
2447 for ac_prog in ginstall scoinst install; do
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2450 if test $ac_prog = install &&
2451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # AIX install. It has an incompatible calling convention.
2453 :
2454 elif test $ac_prog = install &&
2455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2456 # program-specific install script used by HP pwplus--don't use.
2457 :
2458 else
2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2460 break 3
2461 fi
2462 fi
2463 done
2464 done
2465 ;;
2466esac
2467done
b7026657 2468
c906108c
SS
2469
2470fi
35695fd6
AC
2471 if test "${ac_cv_path_install+set}" = set; then
2472 INSTALL=$ac_cv_path_install
2473 else
2474 # As a last resort, use the slow shell script. We don't cache a
2475 # path for INSTALL within a source directory, because that will
2476 # break other packages using the cache if that directory is
2477 # removed, or if the path is relative.
2478 INSTALL=$ac_install_sh
2479 fi
2480fi
2481echo "$as_me:$LINENO: result: $INSTALL" >&5
2482echo "${ECHO_T}$INSTALL" >&6
c906108c 2483
35695fd6
AC
2484# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2485# It thinks the first close brace ends the variable substitution.
2486test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2487
2488test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2489
2490test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2491
2492
2493# Put a plausible default for CC_FOR_BUILD in Makefile.
2494if test "x$cross_compiling" = "xno"; then
2495 CC_FOR_BUILD='$(CC)'
2496else
2497 CC_FOR_BUILD=gcc
2498fi
2499
2500
2501
2502
2503AR=${AR-ar}
2504
2505if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2507set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2508echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2510if test "${ac_cv_prog_RANLIB+set}" = set; then
b7026657
AC
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
35695fd6
AC
2513 if test -n "$RANLIB"; then
2514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527done
2528done
2529
2530fi
2531fi
2532RANLIB=$ac_cv_prog_RANLIB
2533if test -n "$RANLIB"; then
2534 echo "$as_me:$LINENO: result: $RANLIB" >&5
2535echo "${ECHO_T}$RANLIB" >&6
2536else
2537 echo "$as_me:$LINENO: result: no" >&5
2538echo "${ECHO_T}no" >&6
2539fi
2540
2541fi
2542if test -z "$ac_cv_prog_RANLIB"; then
2543 ac_ct_RANLIB=$RANLIB
2544 # Extract the first word of "ranlib", so it can be a program name with args.
2545set dummy ranlib; ac_word=$2
2546echo "$as_me:$LINENO: checking for $ac_word" >&5
2547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2548if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550else
2551 if test -n "$ac_ct_RANLIB"; then
2552 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2553else
2554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_ac_ct_RANLIB="ranlib"
2562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 break 2
2564 fi
2565done
2566done
2567
2568 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2569fi
2570fi
2571ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2572if test -n "$ac_ct_RANLIB"; then
2573 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2574echo "${ECHO_T}$ac_ct_RANLIB" >&6
2575else
2576 echo "$as_me:$LINENO: result: no" >&5
2577echo "${ECHO_T}no" >&6
2578fi
2579
2580 RANLIB=$ac_ct_RANLIB
2581else
2582 RANLIB="$ac_cv_prog_RANLIB"
2583fi
2584
2585
2586ALL_LINGUAS=
2f0122dc
DJ
2587# If we haven't got the data from the intl directory,
2588# assume NLS is disabled.
2589USE_NLS=no
2590LIBINTL=
2591LIBINTL_DEP=
2592INCINTL=
2593XGETTEXT=
2594GMSGFMT=
2595POSUB=
e85e3205
RE
2596
2597if test -f ../../intl/config.intl; then
2598 . ../../intl/config.intl
2f0122dc
DJ
2599fi
2600echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2601echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2602if test x"$USE_NLS" != xyes; then
2603 echo "$as_me:$LINENO: result: no" >&5
2604echo "${ECHO_T}no" >&6
2605else
2606 echo "$as_me:$LINENO: result: yes" >&5
2607echo "${ECHO_T}yes" >&6
2608
2609cat >>confdefs.h <<\_ACEOF
2610#define ENABLE_NLS 1
2611_ACEOF
2612
2613
2614 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2615echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2616 # Look for .po and .gmo files in the source directory.
2617 CATALOGS=
2618 XLINGUAS=
2619 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2620 # If there aren't any .gmo files the shell will give us the
2621 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2622 # weeded out.
2623 case "$cat" in *\**)
2624 continue;;
2625 esac
2626 # The quadruple backslash is collapsed to a double backslash
2627 # by the backticks, then collapsed again by the double quotes,
2628 # leaving us with one backslash in the sed expression (right
2629 # before the dot that mustn't act as a wildcard).
2630 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2631 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2632 # The user is allowed to set LINGUAS to a list of languages to
2633 # install catalogs for. If it's empty that means "all of them."
2634 if test "x$LINGUAS" = x; then
2635 CATALOGS="$CATALOGS $cat"
2636 XLINGUAS="$XLINGUAS $lang"
2637 else
2638 case "$LINGUAS" in *$lang*)
2639 CATALOGS="$CATALOGS $cat"
2640 XLINGUAS="$XLINGUAS $lang"
2641 ;;
2642 esac
2643 fi
2644 done
2645 LINGUAS="$XLINGUAS"
2646 echo "$as_me:$LINENO: result: $LINGUAS" >&5
2647echo "${ECHO_T}$LINGUAS" >&6
2648
2649
2650 DATADIRNAME=share
2651
2652 INSTOBJEXT=.mo
2653
2654 GENCAT=gencat
2655
2656 CATOBJEXT=.gmo
2657
2658fi
c906108c 2659
20e95c23
DJ
2660# Check for common headers.
2661# FIXME: Seems to me this can cause problems for i386-windows hosts.
2662# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
c906108c 2663
35695fd6
AC
2664ac_ext=c
2665ac_cpp='$CPP $CPPFLAGS'
2666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2670echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2671# On Suns, sometimes $CPP names a directory.
2672if test -n "$CPP" && test -d "$CPP"; then
2673 CPP=
2674fi
2675if test -z "$CPP"; then
2676 if test "${ac_cv_prog_CPP+set}" = set; then
b7026657 2677 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2678else
35695fd6
AC
2679 # Double quotes because CPP needs to be expanded
2680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2681 do
2682 ac_preproc_ok=false
2683for ac_c_preproc_warn_flag in '' yes
2684do
2685 # Use a header file that comes with gcc, so configuring glibc
2686 # with a fresh cross-compiler works.
2687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2688 # <limits.h> exists even on freestanding compilers.
2689 # On the NeXT, cc -E runs the code through the compiler's parser,
2690 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
2691 cat >conftest.$ac_ext <<_ACEOF
2692/* confdefs.h. */
2693_ACEOF
2694cat confdefs.h >>conftest.$ac_ext
2695cat >>conftest.$ac_ext <<_ACEOF
2696/* end confdefs.h. */
35695fd6
AC
2697#ifdef __STDC__
2698# include <limits.h>
c906108c 2699#else
35695fd6 2700# include <assert.h>
c906108c 2701#endif
35695fd6 2702 Syntax error
b7026657 2703_ACEOF
35695fd6
AC
2704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2706 ac_status=$?
2707 grep -v '^ *+' conftest.er1 >conftest.err
2708 rm -f conftest.er1
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } >/dev/null; then
2712 if test -s conftest.err; then
2713 ac_cpp_err=$ac_c_preproc_warn_flag
2714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2715 else
2716 ac_cpp_err=
2717 fi
c906108c 2718else
35695fd6 2719 ac_cpp_err=yes
c906108c 2720fi
35695fd6
AC
2721if test -z "$ac_cpp_err"; then
2722 :
2723else
2724 echo "$as_me: failed program was:" >&5
2725sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2726
35695fd6
AC
2727 # Broken: fails on valid input.
2728continue
c906108c 2729fi
35695fd6
AC
2730rm -f conftest.err conftest.$ac_ext
2731
2732 # OK, works on sane cases. Now check whether non-existent headers
2733 # can be detected and how.
b7026657
AC
2734 cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h. */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h. */
35695fd6 2740#include <ac_nonexistent.h>
b7026657 2741_ACEOF
35695fd6
AC
2742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2744 ac_status=$?
2745 grep -v '^ *+' conftest.er1 >conftest.err
2746 rm -f conftest.er1
2747 cat conftest.err >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2749 (exit $ac_status); } >/dev/null; then
2750 if test -s conftest.err; then
2751 ac_cpp_err=$ac_c_preproc_warn_flag
2752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2753 else
2754 ac_cpp_err=
2755 fi
2756else
2757 ac_cpp_err=yes
2758fi
2759if test -z "$ac_cpp_err"; then
2760 # Broken: success on invalid input.
2761continue
b7026657
AC
2762else
2763 echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
35695fd6
AC
2766 # Passes both tests.
2767ac_preproc_ok=:
2768break
b7026657 2769fi
35695fd6
AC
2770rm -f conftest.err conftest.$ac_ext
2771
2772done
2773# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2774rm -f conftest.err conftest.$ac_ext
2775if $ac_preproc_ok; then
2776 break
b7026657 2777fi
b7026657 2778
35695fd6
AC
2779 done
2780 ac_cv_prog_CPP=$CPP
c906108c 2781
c906108c 2782fi
35695fd6 2783 CPP=$ac_cv_prog_CPP
c906108c 2784else
35695fd6
AC
2785 ac_cv_prog_CPP=$CPP
2786fi
2787echo "$as_me:$LINENO: result: $CPP" >&5
2788echo "${ECHO_T}$CPP" >&6
2789ac_preproc_ok=false
2790for ac_c_preproc_warn_flag in '' yes
2791do
2792 # Use a header file that comes with gcc, so configuring glibc
2793 # with a fresh cross-compiler works.
2794 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2795 # <limits.h> exists even on freestanding compilers.
2796 # On the NeXT, cc -E runs the code through the compiler's parser,
2797 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
2798 cat >conftest.$ac_ext <<_ACEOF
2799/* confdefs.h. */
2800_ACEOF
2801cat confdefs.h >>conftest.$ac_ext
2802cat >>conftest.$ac_ext <<_ACEOF
2803/* end confdefs.h. */
35695fd6
AC
2804#ifdef __STDC__
2805# include <limits.h>
2806#else
2807# include <assert.h>
2808#endif
2809 Syntax error
b7026657 2810_ACEOF
35695fd6
AC
2811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657 2813 ac_status=$?
35695fd6
AC
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
b7026657 2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2818 (exit $ac_status); } >/dev/null; then
2819 if test -s conftest.err; then
2820 ac_cpp_err=$ac_c_preproc_warn_flag
2821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2822 else
2823 ac_cpp_err=
2824 fi
c906108c 2825else
35695fd6
AC
2826 ac_cpp_err=yes
2827fi
2828if test -z "$ac_cpp_err"; then
2829 :
2830else
2831 echo "$as_me: failed program was:" >&5
b7026657
AC
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
35695fd6
AC
2834 # Broken: fails on valid input.
2835continue
c906108c 2836fi
35695fd6 2837rm -f conftest.err conftest.$ac_ext
c906108c 2838
35695fd6
AC
2839 # OK, works on sane cases. Now check whether non-existent headers
2840 # can be detected and how.
2841 cat >conftest.$ac_ext <<_ACEOF
2842/* confdefs.h. */
b7026657 2843_ACEOF
35695fd6
AC
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
2847#include <ac_nonexistent.h>
2848_ACEOF
2849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2851 ac_status=$?
2852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } >/dev/null; then
2857 if test -s conftest.err; then
2858 ac_cpp_err=$ac_c_preproc_warn_flag
2859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2860 else
2861 ac_cpp_err=
2862 fi
2863else
2864 ac_cpp_err=yes
2865fi
2866if test -z "$ac_cpp_err"; then
2867 # Broken: success on invalid input.
2868continue
2869else
2870 echo "$as_me: failed program was:" >&5
2871sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2872
35695fd6
AC
2873 # Passes both tests.
2874ac_preproc_ok=:
2875break
2876fi
2877rm -f conftest.err conftest.$ac_ext
c906108c 2878
35695fd6
AC
2879done
2880# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2881rm -f conftest.err conftest.$ac_ext
2882if $ac_preproc_ok; then
2883 :
2884else
d6416cdc
RW
2885 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
35695fd6
AC
2888See \`config.log' for more details." >&5
2889echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2890See \`config.log' for more details." >&2;}
d6416cdc 2891 { (exit 1); exit 1; }; }; }
c906108c
SS
2892fi
2893
35695fd6
AC
2894ac_ext=c
2895ac_cpp='$CPP $CPPFLAGS'
2896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898ac_compiler_gnu=$ac_cv_c_compiler_gnu
b7026657
AC
2899
2900
35695fd6
AC
2901echo "$as_me:$LINENO: checking for egrep" >&5
2902echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2903if test "${ac_cv_prog_egrep+set}" = set; then
b7026657 2904 echo $ECHO_N "(cached) $ECHO_C" >&6
35695fd6
AC
2905else
2906 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2907 then ac_cv_prog_egrep='grep -E'
2908 else ac_cv_prog_egrep='egrep'
2909 fi
b7026657 2910fi
35695fd6
AC
2911echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2912echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2913 EGREP=$ac_cv_prog_egrep
2914
2915
2916echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2917echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2918if test "${ac_cv_header_stdc+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2920else
35695fd6 2921 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2922/* confdefs.h. */
2923_ACEOF
2924cat confdefs.h >>conftest.$ac_ext
2925cat >>conftest.$ac_ext <<_ACEOF
2926/* end confdefs.h. */
35695fd6
AC
2927#include <stdlib.h>
2928#include <stdarg.h>
2929#include <string.h>
2930#include <float.h>
2931
2932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
b7026657
AC
2939_ACEOF
2940rm -f conftest.$ac_objext
2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>conftest.er1
2943 ac_status=$?
2944 grep -v '^ *+' conftest.er1 >conftest.err
2945 rm -f conftest.er1
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
20e95c23
DJ
2949 { ac_try='test -z "$ac_c_werror_flag"
2950 || test ! -s conftest.err'
b7026657
AC
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; } &&
2956 { ac_try='test -s conftest.$ac_objext'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; }; then
35695fd6 2962 ac_cv_header_stdc=yes
b7026657
AC
2963else
2964 echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
35695fd6 2967ac_cv_header_stdc=no
b7026657
AC
2968fi
2969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 2970
35695fd6
AC
2971if test $ac_cv_header_stdc = yes; then
2972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2973 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2974/* confdefs.h. */
2975_ACEOF
2976cat confdefs.h >>conftest.$ac_ext
2977cat >>conftest.$ac_ext <<_ACEOF
2978/* end confdefs.h. */
35695fd6
AC
2979#include <string.h>
2980
b7026657 2981_ACEOF
35695fd6
AC
2982if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2983 $EGREP "memchr" >/dev/null 2>&1; then
2984 :
b7026657 2985else
35695fd6 2986 ac_cv_header_stdc=no
c906108c 2987fi
35695fd6
AC
2988rm -f conftest*
2989
2990fi
2991
2992if test $ac_cv_header_stdc = yes; then
2993 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2994 cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000#include <stdlib.h>
3001
3002_ACEOF
3003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 $EGREP "free" >/dev/null 2>&1; then
3005 :
b7026657 3006else
20e95c23
DJ
3007 ac_cv_header_stdc=no
3008fi
3009rm -f conftest*
3010
c906108c
SS
3011fi
3012
20e95c23
DJ
3013if test $ac_cv_header_stdc = yes; then
3014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3015 if test "$cross_compiling" = yes; then
3016 :
3017else
3018 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3019/* confdefs.h. */
3020_ACEOF
3021cat confdefs.h >>conftest.$ac_ext
3022cat >>conftest.$ac_ext <<_ACEOF
3023/* end confdefs.h. */
20e95c23
DJ
3024#include <ctype.h>
3025#if ((' ' & 0x0FF) == 0x020)
3026# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3027# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3028#else
3029# define ISLOWER(c) \
3030 (('a' <= (c) && (c) <= 'i') \
3031 || ('j' <= (c) && (c) <= 'r') \
3032 || ('s' <= (c) && (c) <= 'z'))
3033# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3034#endif
c906108c 3035
20e95c23 3036#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
3037int
3038main ()
3039{
20e95c23
DJ
3040 int i;
3041 for (i = 0; i < 256; i++)
3042 if (XOR (islower (i), ISLOWER (i))
3043 || toupper (i) != TOUPPER (i))
3044 exit(2);
3045 exit (0);
b7026657
AC
3046}
3047_ACEOF
20e95c23 3048rm -f conftest$ac_exeext
b7026657 3049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20e95c23 3050 (eval $ac_link) 2>&5
b7026657
AC
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20e95c23 3053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 (eval $ac_try) 2>&5
3056 ac_status=$?
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
20e95c23 3059 :
c906108c 3060else
20e95c23
DJ
3061 echo "$as_me: program exited with status $ac_status" >&5
3062echo "$as_me: failed program was:" >&5
b7026657
AC
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
20e95c23
DJ
3065( exit $ac_status )
3066ac_cv_header_stdc=no
c906108c 3067fi
20e95c23 3068rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 3069fi
c906108c 3070fi
c906108c 3071fi
20e95c23
DJ
3072echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3073echo "${ECHO_T}$ac_cv_header_stdc" >&6
3074if test $ac_cv_header_stdc = yes; then
b7026657 3075
20e95c23
DJ
3076cat >>confdefs.h <<\_ACEOF
3077#define STDC_HEADERS 1
3078_ACEOF
c906108c 3079
c906108c
SS
3080fi
3081
20e95c23 3082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657
AC
3083
3084
3085
3086
2b193c4a 3087
2b193c4a 3088
b7026657 3089
c906108c 3090
c906108c 3091
20e95c23
DJ
3092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3093 inttypes.h stdint.h unistd.h
3094do
3095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3096echo "$as_me:$LINENO: checking for $ac_header" >&5
3097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3098if eval "test \"\${$as_ac_Header+set}\" = set"; then
b7026657 3099 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 3100else
20e95c23 3101 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107$ac_includes_default
20e95c23
DJ
3108
3109#include <$ac_header>
b7026657
AC
3110_ACEOF
3111rm -f conftest.$ac_objext
3112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113 (eval $ac_compile) 2>conftest.er1
3114 ac_status=$?
3115 grep -v '^ *+' conftest.er1 >conftest.err
3116 rm -f conftest.er1
3117 cat conftest.err >&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); } &&
20e95c23
DJ
3120 { ac_try='test -z "$ac_c_werror_flag"
3121 || test ! -s conftest.err'
b7026657
AC
3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123 (eval $ac_try) 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; } &&
3127 { ac_try='test -s conftest.$ac_objext'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
20e95c23 3133 eval "$as_ac_Header=yes"
b7026657
AC
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
20e95c23 3138eval "$as_ac_Header=no"
b7026657
AC
3139fi
3140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3141fi
20e95c23
DJ
3142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3143echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3144if test `eval echo '${'$as_ac_Header'}'` = yes; then
3145 cat >>confdefs.h <<_ACEOF
3146#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3147_ACEOF
b7026657
AC
3148
3149fi
b7026657 3150
20e95c23 3151done
b7026657 3152
c906108c 3153
b7026657
AC
3154
3155
3156
3157
3158
3159for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 3160do
b7026657
AC
3161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3162if eval "test \"\${$as_ac_Header+set}\" = set"; then
3163 echo "$as_me:$LINENO: checking for $ac_header" >&5
3164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3165if eval "test \"\${$as_ac_Header+set}\" = set"; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167fi
3168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3170else
3171 # Is the header compilable?
3172echo "$as_me:$LINENO: checking $ac_header usability" >&5
3173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3174cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h. */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h. */
3180$ac_includes_default
3181#include <$ac_header>
3182_ACEOF
3183rm -f conftest.$ac_objext
3184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } &&
20e95c23
DJ
3192 { ac_try='test -z "$ac_c_werror_flag"
3193 || test ! -s conftest.err'
b7026657
AC
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; } &&
3199 { ac_try='test -s conftest.$ac_objext'
3200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201 (eval $ac_try) 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_header_compiler=yes
3206else
3207 echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210ac_header_compiler=no
3211fi
3212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3213echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3214echo "${ECHO_T}$ac_header_compiler" >&6
3215
3216# Is the header present?
3217echo "$as_me:$LINENO: checking $ac_header presence" >&5
3218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3219cat >conftest.$ac_ext <<_ACEOF
3220/* confdefs.h. */
3221_ACEOF
3222cat confdefs.h >>conftest.$ac_ext
3223cat >>conftest.$ac_ext <<_ACEOF
3224/* end confdefs.h. */
3225#include <$ac_header>
3226_ACEOF
3227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3229 ac_status=$?
3230 grep -v '^ *+' conftest.er1 >conftest.err
3231 rm -f conftest.er1
3232 cat conftest.err >&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } >/dev/null; then
3235 if test -s conftest.err; then
3236 ac_cpp_err=$ac_c_preproc_warn_flag
3237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3238 else
3239 ac_cpp_err=
3240 fi
3241else
3242 ac_cpp_err=yes
c906108c 3243fi
b7026657
AC
3244if test -z "$ac_cpp_err"; then
3245 ac_header_preproc=yes
3246else
3247 echo "$as_me: failed program was:" >&5
3248sed 's/^/| /' conftest.$ac_ext >&5
3249
3250 ac_header_preproc=no
c906108c 3251fi
b7026657
AC
3252rm -f conftest.err conftest.$ac_ext
3253echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3254echo "${ECHO_T}$ac_header_preproc" >&6
3255
3256# So? What about this header?
3257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3258 yes:no: )
3259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3263 ac_header_preproc=yes
3264 ;;
3265 no:yes:* )
3266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3273echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3278 (
3279 cat <<\_ASBOX
3280## ------------------------------------------ ##
3281## Report this to the AC_PACKAGE_NAME lists. ##
3282## ------------------------------------------ ##
3283_ASBOX
3284 ) |
3285 sed "s/^/$as_me: WARNING: /" >&2
3286 ;;
3287esac
3288echo "$as_me:$LINENO: checking for $ac_header" >&5
3289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3290if eval "test \"\${$as_ac_Header+set}\" = set"; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3292else
b7026657
AC
3293 eval "$as_ac_Header=\$ac_header_preproc"
3294fi
3295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3297
3298fi
3299if test `eval echo '${'$as_ac_Header'}'` = yes; then
3300 cat >>confdefs.h <<_ACEOF
3301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3302_ACEOF
3303
c906108c 3304fi
b7026657 3305
c906108c
SS
3306done
3307
b7026657
AC
3308
3309
3310for ac_header in sys/time.h sys/resource.h
c906108c 3311do
b7026657
AC
3312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3313if eval "test \"\${$as_ac_Header+set}\" = set"; then
3314 echo "$as_me:$LINENO: checking for $ac_header" >&5
3315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3316if eval "test \"\${$as_ac_Header+set}\" = set"; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3318fi
3319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3320echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3321else
3322 # Is the header compilable?
3323echo "$as_me:$LINENO: checking $ac_header usability" >&5
3324echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3325cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h. */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h. */
3331$ac_includes_default
3332#include <$ac_header>
3333_ACEOF
3334rm -f conftest.$ac_objext
3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>conftest.er1
3337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } &&
20e95c23
DJ
3343 { ac_try='test -z "$ac_c_werror_flag"
3344 || test ! -s conftest.err'
b7026657
AC
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
3356 ac_header_compiler=yes
3357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
3361ac_header_compiler=no
3362fi
3363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3365echo "${ECHO_T}$ac_header_compiler" >&6
3366
3367# Is the header present?
3368echo "$as_me:$LINENO: checking $ac_header presence" >&5
3369echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3370cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#include <$ac_header>
3377_ACEOF
3378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 ac_status=$?
3381 grep -v '^ *+' conftest.er1 >conftest.err
3382 rm -f conftest.er1
3383 cat conftest.err >&5
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); } >/dev/null; then
3386 if test -s conftest.err; then
3387 ac_cpp_err=$ac_c_preproc_warn_flag
3388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3389 else
3390 ac_cpp_err=
3391 fi
3392else
3393 ac_cpp_err=yes
c906108c 3394fi
b7026657
AC
3395if test -z "$ac_cpp_err"; then
3396 ac_header_preproc=yes
3397else
3398 echo "$as_me: failed program was:" >&5
3399sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 ac_header_preproc=no
c906108c 3402fi
b7026657
AC
3403rm -f conftest.err conftest.$ac_ext
3404echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3405echo "${ECHO_T}$ac_header_preproc" >&6
3406
3407# So? What about this header?
3408case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3409 yes:no: )
3410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3411echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3413echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3414 ac_header_preproc=yes
3415 ;;
3416 no:yes:* )
3417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3418echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3420echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3422echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3424echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3426echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3428echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3429 (
3430 cat <<\_ASBOX
3431## ------------------------------------------ ##
3432## Report this to the AC_PACKAGE_NAME lists. ##
3433## ------------------------------------------ ##
3434_ASBOX
3435 ) |
3436 sed "s/^/$as_me: WARNING: /" >&2
3437 ;;
3438esac
3439echo "$as_me:$LINENO: checking for $ac_header" >&5
3440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3441if eval "test \"\${$as_ac_Header+set}\" = set"; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3443else
b7026657
AC
3444 eval "$as_ac_Header=\$ac_header_preproc"
3445fi
3446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3448
3449fi
3450if test `eval echo '${'$as_ac_Header'}'` = yes; then
3451 cat >>confdefs.h <<_ACEOF
3452#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3453_ACEOF
3454
c906108c 3455fi
b7026657 3456
c906108c
SS
3457done
3458
b7026657
AC
3459
3460
3461for ac_header in fcntl.h fpu_control.h
c906108c 3462do
b7026657
AC
3463as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3464if eval "test \"\${$as_ac_Header+set}\" = set"; then
3465 echo "$as_me:$LINENO: checking for $ac_header" >&5
3466echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3467if eval "test \"\${$as_ac_Header+set}\" = set"; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469fi
3470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3472else
3473 # Is the header compilable?
3474echo "$as_me:$LINENO: checking $ac_header usability" >&5
3475echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3476cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482$ac_includes_default
3483#include <$ac_header>
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
20e95c23
DJ
3494 { ac_try='test -z "$ac_c_werror_flag"
3495 || test ! -s conftest.err'
b7026657
AC
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; } &&
3501 { ac_try='test -s conftest.$ac_objext'
3502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503 (eval $ac_try) 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }; }; then
3507 ac_header_compiler=yes
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512ac_header_compiler=no
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3516echo "${ECHO_T}$ac_header_compiler" >&6
3517
3518# Is the header present?
3519echo "$as_me:$LINENO: checking $ac_header presence" >&5
3520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3521cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#include <$ac_header>
3528_ACEOF
3529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null; then
3537 if test -s conftest.err; then
3538 ac_cpp_err=$ac_c_preproc_warn_flag
3539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3540 else
3541 ac_cpp_err=
3542 fi
3543else
3544 ac_cpp_err=yes
c906108c 3545fi
b7026657
AC
3546if test -z "$ac_cpp_err"; then
3547 ac_header_preproc=yes
3548else
3549 echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 ac_header_preproc=no
c906108c 3553fi
b7026657
AC
3554rm -f conftest.err conftest.$ac_ext
3555echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3556echo "${ECHO_T}$ac_header_preproc" >&6
3557
3558# So? What about this header?
3559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3560 yes:no: )
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3562echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3564echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3565 ac_header_preproc=yes
3566 ;;
3567 no:yes:* )
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3569echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3571echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3573echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3575echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3577echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3579echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3580 (
3581 cat <<\_ASBOX
3582## ------------------------------------------ ##
3583## Report this to the AC_PACKAGE_NAME lists. ##
3584## ------------------------------------------ ##
3585_ASBOX
3586 ) |
3587 sed "s/^/$as_me: WARNING: /" >&2
3588 ;;
3589esac
3590echo "$as_me:$LINENO: checking for $ac_header" >&5
3591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3592if eval "test \"\${$as_ac_Header+set}\" = set"; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3594else
b7026657
AC
3595 eval "$as_ac_Header=\$ac_header_preproc"
3596fi
3597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3599
3600fi
3601if test `eval echo '${'$as_ac_Header'}'` = yes; then
3602 cat >>confdefs.h <<_ACEOF
3603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604_ACEOF
3605
c906108c 3606fi
b7026657 3607
c906108c
SS
3608done
3609
b7026657
AC
3610
3611
3612
3613for ac_header in dlfcn.h errno.h sys/stat.h
c906108c 3614do
b7026657
AC
3615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3616if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo "$as_me:$LINENO: checking for $ac_header" >&5
3618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3619if eval "test \"\${$as_ac_Header+set}\" = set"; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621fi
3622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3624else
3625 # Is the header compilable?
3626echo "$as_me:$LINENO: checking $ac_header usability" >&5
3627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3628cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h. */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h. */
3634$ac_includes_default
3635#include <$ac_header>
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
20e95c23
DJ
3646 { ac_try='test -z "$ac_c_werror_flag"
3647 || test ! -s conftest.err'
b7026657
AC
3648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649 (eval $ac_try) 2>&5
3650 ac_status=$?
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; } &&
3653 { ac_try='test -s conftest.$ac_objext'
3654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655 (eval $ac_try) 2>&5
3656 ac_status=$?
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); }; }; then
3659 ac_header_compiler=yes
3660else
3661 echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664ac_header_compiler=no
3665fi
3666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3668echo "${ECHO_T}$ac_header_compiler" >&6
3669
3670# Is the header present?
3671echo "$as_me:$LINENO: checking $ac_header presence" >&5
3672echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3673cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
3679#include <$ac_header>
3680_ACEOF
3681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } >/dev/null; then
3689 if test -s conftest.err; then
3690 ac_cpp_err=$ac_c_preproc_warn_flag
3691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3692 else
3693 ac_cpp_err=
3694 fi
3695else
3696 ac_cpp_err=yes
c906108c 3697fi
b7026657
AC
3698if test -z "$ac_cpp_err"; then
3699 ac_header_preproc=yes
3700else
3701 echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704 ac_header_preproc=no
c906108c 3705fi
b7026657
AC
3706rm -f conftest.err conftest.$ac_ext
3707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3708echo "${ECHO_T}$ac_header_preproc" >&6
3709
3710# So? What about this header?
3711case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3712 yes:no: )
3713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3714echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3716echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3717 ac_header_preproc=yes
3718 ;;
3719 no:yes:* )
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3721echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3723echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3725echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3727echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3729echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3731echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3732 (
3733 cat <<\_ASBOX
3734## ------------------------------------------ ##
3735## Report this to the AC_PACKAGE_NAME lists. ##
3736## ------------------------------------------ ##
3737_ASBOX
3738 ) |
3739 sed "s/^/$as_me: WARNING: /" >&2
3740 ;;
3741esac
3742echo "$as_me:$LINENO: checking for $ac_header" >&5
3743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3744if eval "test \"\${$as_ac_Header+set}\" = set"; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3746else
b7026657
AC
3747 eval "$as_ac_Header=\$ac_header_preproc"
3748fi
3749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3750echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3751
3752fi
3753if test `eval echo '${'$as_ac_Header'}'` = yes; then
3754 cat >>confdefs.h <<_ACEOF
3755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3756_ACEOF
3757
c906108c 3758fi
b7026657 3759
c906108c
SS
3760done
3761
b7026657
AC
3762
3763
3764
3765
c906108c
SS
3766for ac_func in getrusage time sigaction __setfpucw
3767do
b7026657
AC
3768as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3769echo "$as_me:$LINENO: checking for $ac_func" >&5
3770echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3771if eval "test \"\${$as_ac_var+set}\" = set"; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 cat >conftest.$ac_ext <<_ACEOF
3775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
3780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3782#define $ac_func innocuous_$ac_func
3783
c906108c 3784/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
3785 which can conflict with char $ac_func (); below.
3786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 <limits.h> exists even on freestanding compilers. */
3788
3789#ifdef __STDC__
3790# include <limits.h>
3791#else
3792# include <assert.h>
3793#endif
c906108c 3794
b7026657 3795#undef $ac_func
c906108c 3796
b7026657
AC
3797/* Override any gcc2 internal prototype to avoid an error. */
3798#ifdef __cplusplus
3799extern "C"
3800{
3801#endif
3802/* We use char because int might match the return type of a gcc2
3803 builtin and then its argument prototype would still apply. */
3804char $ac_func ();
c906108c
SS
3805/* The GNU C library defines this for functions which it implements
3806 to always fail with ENOSYS. Some functions are actually named
3807 something starting with __ and the normal name is an alias. */
3808#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809choke me
3810#else
b7026657
AC
3811char (*f) () = $ac_func;
3812#endif
3813#ifdef __cplusplus
3814}
c906108c
SS
3815#endif
3816
b7026657
AC
3817int
3818main ()
3819{
3820return f != $ac_func;
3821 ;
3822 return 0;
3823}
3824_ACEOF
3825rm -f conftest.$ac_objext conftest$ac_exeext
3826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827 (eval $ac_link) 2>conftest.er1
3828 ac_status=$?
3829 grep -v '^ *+' conftest.er1 >conftest.err
3830 rm -f conftest.er1
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
20e95c23
DJ
3834 { ac_try='test -z "$ac_c_werror_flag"
3835 || test ! -s conftest.err'
b7026657
AC
3836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837 (eval $ac_try) 2>&5
3838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; } &&
3841 { ac_try='test -s conftest$ac_exeext'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; }; then
3847 eval "$as_ac_var=yes"
3848else
3849 echo "$as_me: failed program was:" >&5
3850sed 's/^/| /' conftest.$ac_ext >&5
3851
3852eval "$as_ac_var=no"
3853fi
3854rm -f conftest.err conftest.$ac_objext \
3855 conftest$ac_exeext conftest.$ac_ext
3856fi
3857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3858echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3859if test `eval echo '${'$as_ac_var'}'` = yes; then
3860 cat >>confdefs.h <<_ACEOF
3861#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3862_ACEOF
c906108c 3863
c906108c
SS
3864fi
3865done
3866
3867
3868# Check for socket libraries
b7026657
AC
3869
3870echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
3871echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
3872if test "${ac_cv_lib_socket_bind+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3874else
b7026657 3875 ac_check_lib_save_LIBS=$LIBS
c906108c 3876LIBS="-lsocket $LIBS"
b7026657
AC
3877cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h. */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h. */
3883
c906108c 3884/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
3885#ifdef __cplusplus
3886extern "C"
3887#endif
c906108c 3888/* We use char because int might match the return type of a gcc2
b7026657
AC
3889 builtin and then its argument prototype would still apply. */
3890char bind ();
3891int
3892main ()
3893{
3894bind ();
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
3900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901 (eval $ac_link) 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } &&
20e95c23
DJ
3908 { ac_try='test -z "$ac_c_werror_flag"
3909 || test ! -s conftest.err'
b7026657
AC
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_socket_bind=yes
3922else
3923 echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
3926ac_cv_lib_socket_bind=no
3927fi
3928rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
3930LIBS=$ac_check_lib_save_LIBS
3931fi
3932echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
3933echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
3934if test $ac_cv_lib_socket_bind = yes; then
3935 cat >>confdefs.h <<_ACEOF
3936#define HAVE_LIBSOCKET 1
3937_ACEOF
c906108c
SS
3938
3939 LIBS="-lsocket $LIBS"
3940
c906108c
SS
3941fi
3942
b7026657
AC
3943
3944echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3945echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3946if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3948else
b7026657 3949 ac_check_lib_save_LIBS=$LIBS
c906108c 3950LIBS="-lnsl $LIBS"
b7026657
AC
3951cat >conftest.$ac_ext <<_ACEOF
3952/* confdefs.h. */
3953_ACEOF
3954cat confdefs.h >>conftest.$ac_ext
3955cat >>conftest.$ac_ext <<_ACEOF
3956/* end confdefs.h. */
3957
c906108c 3958/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
3959#ifdef __cplusplus
3960extern "C"
3961#endif
c906108c 3962/* We use char because int might match the return type of a gcc2
b7026657
AC
3963 builtin and then its argument prototype would still apply. */
3964char gethostbyname ();
3965int
3966main ()
3967{
3968gethostbyname ();
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext conftest$ac_exeext
3974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
20e95c23
DJ
3982 { ac_try='test -z "$ac_c_werror_flag"
3983 || test ! -s conftest.err'
b7026657
AC
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; } &&
3989 { ac_try='test -s conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 ac_cv_lib_nsl_gethostbyname=yes
3996else
3997 echo "$as_me: failed program was:" >&5
3998sed 's/^/| /' conftest.$ac_ext >&5
3999
4000ac_cv_lib_nsl_gethostbyname=no
4001fi
4002rm -f conftest.err conftest.$ac_objext \
4003 conftest$ac_exeext conftest.$ac_ext
4004LIBS=$ac_check_lib_save_LIBS
4005fi
4006echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4007echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4008if test $ac_cv_lib_nsl_gethostbyname = yes; then
4009 cat >>confdefs.h <<_ACEOF
4010#define HAVE_LIBNSL 1
4011_ACEOF
c906108c
SS
4012
4013 LIBS="-lnsl $LIBS"
4014
c906108c
SS
4015fi
4016
4017
79e1e459
HPN
4018# BFD conditionally uses zlib, so we must link it in if libbfd does, by
4019# using the same condition.
4020echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
4021echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
4022if test "${ac_cv_search_zlibVersion+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 ac_func_search_save_LIBS=$LIBS
4026ac_cv_search_zlibVersion=no
4027cat >conftest.$ac_ext <<_ACEOF
4028/* confdefs.h. */
4029_ACEOF
4030cat confdefs.h >>conftest.$ac_ext
4031cat >>conftest.$ac_ext <<_ACEOF
4032/* end confdefs.h. */
4033
4034/* Override any gcc2 internal prototype to avoid an error. */
4035#ifdef __cplusplus
4036extern "C"
4037#endif
4038/* We use char because int might match the return type of a gcc2
4039 builtin and then its argument prototype would still apply. */
4040char zlibVersion ();
4041int
4042main ()
4043{
4044zlibVersion ();
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049rm -f conftest.$ac_objext conftest$ac_exeext
4050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_search_zlibVersion="none required"
4072else
4073 echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076fi
4077rm -f conftest.err conftest.$ac_objext \
4078 conftest$ac_exeext conftest.$ac_ext
4079if test "$ac_cv_search_zlibVersion" = no; then
4080 for ac_lib in z; do
4081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4082 cat >conftest.$ac_ext <<_ACEOF
4083/* confdefs.h. */
4084_ACEOF
4085cat confdefs.h >>conftest.$ac_ext
4086cat >>conftest.$ac_ext <<_ACEOF
4087/* end confdefs.h. */
4088
4089/* Override any gcc2 internal prototype to avoid an error. */
4090#ifdef __cplusplus
4091extern "C"
4092#endif
4093/* We use char because int might match the return type of a gcc2
4094 builtin and then its argument prototype would still apply. */
4095char zlibVersion ();
4096int
4097main ()
4098{
4099zlibVersion ();
4100 ;
4101 return 0;
4102}
4103_ACEOF
4104rm -f conftest.$ac_objext conftest$ac_exeext
4105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4106 (eval $ac_link) 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag"
4114 || test ! -s conftest.err'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; } &&
4120 { ac_try='test -s conftest$ac_exeext'
4121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122 (eval $ac_try) 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }; }; then
4126 ac_cv_search_zlibVersion="-l$ac_lib"
4127break
4128else
4129 echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132fi
4133rm -f conftest.err conftest.$ac_objext \
4134 conftest$ac_exeext conftest.$ac_ext
4135 done
4136fi
4137LIBS=$ac_func_search_save_LIBS
4138fi
4139echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
4140echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
4141if test "$ac_cv_search_zlibVersion" != no; then
4142 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
4143
4144for ac_header in zlib.h
4145do
4146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4147if eval "test \"\${$as_ac_Header+set}\" = set"; then
4148 echo "$as_me:$LINENO: checking for $ac_header" >&5
4149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4150if eval "test \"\${$as_ac_Header+set}\" = set"; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152fi
4153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4155else
4156 # Is the header compilable?
4157echo "$as_me:$LINENO: checking $ac_header usability" >&5
4158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4159cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
4165$ac_includes_default
4166#include <$ac_header>
4167_ACEOF
4168rm -f conftest.$ac_objext
4169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try='test -z "$ac_c_werror_flag"
4178 || test ! -s conftest.err'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; } &&
4184 { ac_try='test -s conftest.$ac_objext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 ac_header_compiler=yes
4191else
4192 echo "$as_me: failed program was:" >&5
4193sed 's/^/| /' conftest.$ac_ext >&5
4194
4195ac_header_compiler=no
4196fi
4197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4198echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4199echo "${ECHO_T}$ac_header_compiler" >&6
4200
4201# Is the header present?
4202echo "$as_me:$LINENO: checking $ac_header presence" >&5
4203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4204cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210#include <$ac_header>
4211_ACEOF
4212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4214 ac_status=$?
4215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } >/dev/null; then
4220 if test -s conftest.err; then
4221 ac_cpp_err=$ac_c_preproc_warn_flag
4222 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4223 else
4224 ac_cpp_err=
4225 fi
4226else
4227 ac_cpp_err=yes
4228fi
4229if test -z "$ac_cpp_err"; then
4230 ac_header_preproc=yes
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_header_preproc=no
4236fi
4237rm -f conftest.err conftest.$ac_ext
4238echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4239echo "${ECHO_T}$ac_header_preproc" >&6
4240
4241# So? What about this header?
4242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4243 yes:no: )
4244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4248 ac_header_preproc=yes
4249 ;;
4250 no:yes:* )
4251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4263 (
4264 cat <<\_ASBOX
4265## ------------------------------------------ ##
4266## Report this to the AC_PACKAGE_NAME lists. ##
4267## ------------------------------------------ ##
4268_ASBOX
4269 ) |
4270 sed "s/^/$as_me: WARNING: /" >&2
4271 ;;
4272esac
4273echo "$as_me:$LINENO: checking for $ac_header" >&5
4274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4275if eval "test \"\${$as_ac_Header+set}\" = set"; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277else
4278 eval "$as_ac_Header=\$ac_header_preproc"
4279fi
4280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4282
4283fi
4284if test `eval echo '${'$as_ac_Header'}'` = yes; then
4285 cat >>confdefs.h <<_ACEOF
4286#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4287_ACEOF
4288
4289fi
4290
4291done
4292
4293fi
4294
4295
c906108c
SS
4296. ${srcdir}/../../bfd/configure.host
4297
4298
4299
4300USE_MAINTAINER_MODE=no
4301# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4302if test "${enable_maintainer_mode+set}" = set; then
4303 enableval="$enable_maintainer_mode"
4304 case "${enableval}" in
4305 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4306 no) MAINT="#" ;;
b7026657
AC
4307 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
4308echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
4309 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
4310esac
4311if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4312 echo "Setting maintainer mode" 6>&1
4313fi
4314else
4315 MAINT="#"
b7026657 4316fi;
c906108c
SS
4317
4318
4319# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
4320if test "${enable_sim_bswap+set}" = set; then
4321 enableval="$enable_sim_bswap"
4322 case "${enableval}" in
4323 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4324 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
4325 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
4326echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
4327 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
4328esac
4329if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4330 echo "Setting bswap flags = $sim_bswap" 6>&1
4331fi
4332else
4333 sim_bswap=""
b7026657 4334fi;
c906108c
SS
4335
4336
4337# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
4338if test "${enable_sim_cflags+set}" = set; then
4339 enableval="$enable_sim_cflags"
4340 case "${enableval}" in
4341 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
4342 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
4343echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
4344 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
4345 no) sim_cflags="";;
4346 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4347esac
4348if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4349 echo "Setting sim cflags = $sim_cflags" 6>&1
4350fi
4351else
4352 sim_cflags=""
b7026657 4353fi;
c906108c
SS
4354
4355
4356# Check whether --enable-sim-debug or --disable-sim-debug was given.
4357if test "${enable_sim_debug+set}" = set; then
4358 enableval="$enable_sim_debug"
4359 case "${enableval}" in
4360 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4361 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4362 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4363esac
4364if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4365 echo "Setting sim debug = $sim_debug" 6>&1
4366fi
4367else
4368 sim_debug=""
b7026657 4369fi;
c906108c
SS
4370
4371
4372# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
4373if test "${enable_sim_stdio+set}" = set; then
4374 enableval="$enable_sim_stdio"
4375 case "${enableval}" in
4376 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4377 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
4378 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
4379echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
4380 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
4381esac
4382if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4383 echo "Setting stdio flags = $sim_stdio" 6>&1
4384fi
4385else
4386 sim_stdio=""
b7026657 4387fi;
c906108c
SS
4388
4389
4390# Check whether --enable-sim-trace or --disable-sim-trace was given.
4391if test "${enable_sim_trace+set}" = set; then
4392 enableval="$enable_sim_trace"
4393 case "${enableval}" in
4394 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4395 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4396 [-0-9]*)
4397 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4398 [a-z]*)
4399 sim_trace=""
4400 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4401 if test x"$sim_trace" = x; then
4402 sim_trace="-DWITH_TRACE='(TRACE_$x"
4403 else
4404 sim_trace="${sim_trace}|TRACE_$x"
4405 fi
4406 done
4407 sim_trace="$sim_trace)'" ;;
4408esac
4409if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4410 echo "Setting sim trace = $sim_trace" 6>&1
4411fi
4412else
4413 sim_trace=""
b7026657 4414fi;
c906108c
SS
4415
4416
4417# Check whether --enable-sim-profile or --disable-sim-profile was given.
4418if test "${enable_sim_profile+set}" = set; then
4419 enableval="$enable_sim_profile"
4420 case "${enableval}" in
4421 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4422 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4423 [-0-9]*)
4424 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4425 [a-z]*)
4426 sim_profile=""
4427 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4428 if test x"$sim_profile" = x; then
4429 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4430 else
4431 sim_profile="${sim_profile}|PROFILE_$x"
4432 fi
4433 done
4434 sim_profile="$sim_profile)'" ;;
4435esac
4436if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4437 echo "Setting sim profile = $sim_profile" 6>&1
4438fi
4439else
eb2d80b4 4440 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 4441fi;
c906108c
SS
4442
4443
6efef468
JM
4444
4445# Check whether --with-pkgversion or --without-pkgversion was given.
4446if test "${with_pkgversion+set}" = set; then
4447 withval="$with_pkgversion"
4448 case "$withval" in
4449 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4450echo "$as_me: error: package version not specified" >&2;}
4451 { (exit 1); exit 1; }; } ;;
4452 no) PKGVERSION= ;;
4453 *) PKGVERSION="($withval) " ;;
4454 esac
4455else
4456 PKGVERSION="(GDB) "
4457
4458fi;
4459
4460
4461
4462
4463# Check whether --with-bugurl or --without-bugurl was given.
4464if test "${with_bugurl+set}" = set; then
4465 withval="$with_bugurl"
4466 case "$withval" in
4467 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
4468echo "$as_me: error: bug URL not specified" >&2;}
4469 { (exit 1); exit 1; }; } ;;
4470 no) BUGURL=
4471 ;;
4472 *) BUGURL="$withval"
4473 ;;
4474 esac
4475else
4476 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4477
4478fi;
4479 case ${BUGURL} in
4480 "")
4481 REPORT_BUGS_TO=
4482 REPORT_BUGS_TEXI=
4483 ;;
4484 *)
4485 REPORT_BUGS_TO="<$BUGURL>"
4486 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4487 ;;
4488 esac;
4489
4490
4491
4492
4493cat >>confdefs.h <<_ACEOF
4494#define PKGVERSION "$PKGVERSION"
4495_ACEOF
4496
4497
4498cat >>confdefs.h <<_ACEOF
4499#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4500_ACEOF
4501
4502
b7026657
AC
4503echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4504echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4505if test "${ac_cv_type_signal+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4507else
b7026657
AC
4508 cat >conftest.$ac_ext <<_ACEOF
4509/* confdefs.h. */
4510_ACEOF
4511cat confdefs.h >>conftest.$ac_ext
4512cat >>conftest.$ac_ext <<_ACEOF
4513/* end confdefs.h. */
c906108c
SS
4514#include <sys/types.h>
4515#include <signal.h>
4516#ifdef signal
b7026657 4517# undef signal
c906108c
SS
4518#endif
4519#ifdef __cplusplus
4520extern "C" void (*signal (int, void (*)(int)))(int);
4521#else
4522void (*signal ()) ();
4523#endif
4524
b7026657
AC
4525int
4526main ()
4527{
c906108c 4528int i;
b7026657
AC
4529 ;
4530 return 0;
4531}
4532_ACEOF
4533rm -f conftest.$ac_objext
4534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4535 (eval $ac_compile) 2>conftest.er1
4536 ac_status=$?
4537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
20e95c23
DJ
4542 { ac_try='test -z "$ac_c_werror_flag"
4543 || test ! -s conftest.err'
b7026657
AC
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest.$ac_objext'
4550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
c906108c
SS
4555 ac_cv_type_signal=void
4556else
b7026657
AC
4557 echo "$as_me: failed program was:" >&5
4558sed 's/^/| /' conftest.$ac_ext >&5
4559
4560ac_cv_type_signal=int
c906108c 4561fi
b7026657 4562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4563fi
b7026657
AC
4564echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4565echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 4566
b7026657 4567cat >>confdefs.h <<_ACEOF
c906108c 4568#define RETSIGTYPE $ac_cv_type_signal
b7026657 4569_ACEOF
cd0fc7c3
SS
4570
4571
cd0fc7c3 4572
c906108c
SS
4573
4574
4575sim_link_files=
4576sim_link_links=
4577
4578sim_link_links=tconfig.h
4579if test -f ${srcdir}/tconfig.in
4580then
4581 sim_link_files=tconfig.in
4582else
4583 sim_link_files=../common/tconfig.in
4584fi
4585
4586# targ-vals.def points to the libc macro description file.
4587case "${target}" in
4588*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4589esac
4590sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4591sim_link_links="${sim_link_links} targ-vals.def"
4592
4593
c906108c
SS
4594# Put a useful copy of CPP_FOR_TARGET in Makefile.
4595# This is only used to build the target values header files. These files are
4596# shipped with distributions so CPP_FOR_TARGET only needs to work in
4597# developer's trees. This value is borrowed from ../../Makefile.in.
4598CPP_FOR_TARGET="\` \
4599 if test -f \$\${rootme}/../../gcc/Makefile ; then \
4600 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
4601 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
4602 else \
4603 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
4604 fi; \
4605 else \
4606 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
4607 echo \$(CC); \
4608 else \
4609 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
4610 fi; \
4611 fi\` -E"
4612
4613
4614# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
4615if test x"${host}" = x"${target}" ; then
4616 TARGET_SUBDIR="."
4617else
4618 TARGET_SUBDIR=${target_alias}
4619fi
4620
4621
4622# These aren't all needed yet, but will be eventually.
b7026657
AC
4623
4624
4625
4626
4627
4628
4629
4630for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
c906108c 4631do
b7026657
AC
4632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4633if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo "$as_me:$LINENO: checking for $ac_header" >&5
4635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4636if eval "test \"\${$as_ac_Header+set}\" = set"; then
4637 echo $ECHO_N "(cached) $ECHO_C" >&6
4638fi
4639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641else
4642 # Is the header compilable?
4643echo "$as_me:$LINENO: checking $ac_header usability" >&5
4644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4645cat >conftest.$ac_ext <<_ACEOF
4646/* confdefs.h. */
4647_ACEOF
4648cat confdefs.h >>conftest.$ac_ext
4649cat >>conftest.$ac_ext <<_ACEOF
4650/* end confdefs.h. */
4651$ac_includes_default
4652#include <$ac_header>
4653_ACEOF
4654rm -f conftest.$ac_objext
4655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4656 (eval $ac_compile) 2>conftest.er1
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } &&
20e95c23
DJ
4663 { ac_try='test -z "$ac_c_werror_flag"
4664 || test ! -s conftest.err'
b7026657
AC
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; } &&
4670 { ac_try='test -s conftest.$ac_objext'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 (eval $ac_try) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; }; then
4676 ac_header_compiler=yes
4677else
4678 echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681ac_header_compiler=no
4682fi
4683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4685echo "${ECHO_T}$ac_header_compiler" >&6
4686
4687# Is the header present?
4688echo "$as_me:$LINENO: checking $ac_header presence" >&5
4689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4690cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696#include <$ac_header>
4697_ACEOF
4698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_c_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4709 else
4710 ac_cpp_err=
4711 fi
4712else
4713 ac_cpp_err=yes
c906108c 4714fi
b7026657
AC
4715if test -z "$ac_cpp_err"; then
4716 ac_header_preproc=yes
4717else
4718 echo "$as_me: failed program was:" >&5
4719sed 's/^/| /' conftest.$ac_ext >&5
4720
4721 ac_header_preproc=no
c906108c 4722fi
b7026657
AC
4723rm -f conftest.err conftest.$ac_ext
4724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725echo "${ECHO_T}$ac_header_preproc" >&6
4726
4727# So? What about this header?
4728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4729 yes:no: )
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4734 ac_header_preproc=yes
4735 ;;
4736 no:yes:* )
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4749 (
4750 cat <<\_ASBOX
4751## ------------------------------------------ ##
4752## Report this to the AC_PACKAGE_NAME lists. ##
4753## ------------------------------------------ ##
4754_ASBOX
4755 ) |
4756 sed "s/^/$as_me: WARNING: /" >&2
4757 ;;
4758esac
4759echo "$as_me:$LINENO: checking for $ac_header" >&5
4760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4761if eval "test \"\${$as_ac_Header+set}\" = set"; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4763else
b7026657
AC
4764 eval "$as_ac_Header=\$ac_header_preproc"
4765fi
4766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768
c906108c 4769fi
b7026657
AC
4770if test `eval echo '${'$as_ac_Header'}'` = yes; then
4771 cat >>confdefs.h <<_ACEOF
4772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773_ACEOF
4774
4775fi
4776
c906108c
SS
4777done
4778
b7026657
AC
4779
4780
33aa0cbb
PB
4781
4782
4783
4784for ac_func in mmap munmap lstat truncate ftruncate
764f1408 4785do
b7026657
AC
4786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4787echo "$as_me:$LINENO: checking for $ac_func" >&5
4788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4789if eval "test \"\${$as_ac_var+set}\" = set"; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792 cat >conftest.$ac_ext <<_ACEOF
4793/* confdefs.h. */
4794_ACEOF
4795cat confdefs.h >>conftest.$ac_ext
4796cat >>conftest.$ac_ext <<_ACEOF
4797/* end confdefs.h. */
4798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4800#define $ac_func innocuous_$ac_func
4801
764f1408 4802/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4803 which can conflict with char $ac_func (); below.
4804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805 <limits.h> exists even on freestanding compilers. */
764f1408 4806
b7026657
AC
4807#ifdef __STDC__
4808# include <limits.h>
4809#else
4810# include <assert.h>
4811#endif
764f1408 4812
b7026657
AC
4813#undef $ac_func
4814
4815/* Override any gcc2 internal prototype to avoid an error. */
4816#ifdef __cplusplus
4817extern "C"
4818{
4819#endif
4820/* We use char because int might match the return type of a gcc2
4821 builtin and then its argument prototype would still apply. */
4822char $ac_func ();
764f1408
FCE
4823/* The GNU C library defines this for functions which it implements
4824 to always fail with ENOSYS. Some functions are actually named
4825 something starting with __ and the normal name is an alias. */
4826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4827choke me
4828#else
b7026657
AC
4829char (*f) () = $ac_func;
4830#endif
4831#ifdef __cplusplus
4832}
764f1408
FCE
4833#endif
4834
b7026657
AC
4835int
4836main ()
4837{
4838return f != $ac_func;
4839 ;
4840 return 0;
4841}
4842_ACEOF
4843rm -f conftest.$ac_objext conftest$ac_exeext
4844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4845 (eval $ac_link) 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } &&
20e95c23
DJ
4852 { ac_try='test -z "$ac_c_werror_flag"
4853 || test ! -s conftest.err'
b7026657
AC
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 eval "$as_ac_var=yes"
4866else
4867 echo "$as_me: failed program was:" >&5
4868sed 's/^/| /' conftest.$ac_ext >&5
4869
4870eval "$as_ac_var=no"
4871fi
4872rm -f conftest.err conftest.$ac_objext \
4873 conftest$ac_exeext conftest.$ac_ext
4874fi
4875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4877if test `eval echo '${'$as_ac_var'}'` = yes; then
4878 cat >>confdefs.h <<_ACEOF
4879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4880_ACEOF
764f1408 4881
764f1408
FCE
4882fi
4883done
4884
b7026657
AC
4885echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5
4886echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6
4887if test "${ac_struct_stat_st_dev+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
4889else
4890 ac_struct_stat_st_dev=no;
b7026657
AC
4891cat >conftest.$ac_ext <<_ACEOF
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
697afb65
HPN
4897#ifdef HAVE_SYS_TYPES_H
4898#include <sys/types.h>
4899#endif
4900#ifdef HAVE_SYS_STAT_H
4901#include <sys/stat.h>
4902#endif
b7026657
AC
4903int
4904main ()
4905{
697afb65
HPN
4906
4907static struct stat ac_aggr;
4908if (ac_aggr.st_dev)
4909return 0;
b7026657
AC
4910 ;
4911 return 0;
4912}
4913_ACEOF
4914rm -f conftest.$ac_objext
4915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4916 (eval $ac_compile) 2>conftest.er1
4917 ac_status=$?
4918 grep -v '^ *+' conftest.er1 >conftest.err
4919 rm -f conftest.er1
4920 cat conftest.err >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); } &&
20e95c23
DJ
4923 { ac_try='test -z "$ac_c_werror_flag"
4924 || test ! -s conftest.err'
b7026657
AC
4925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926 (eval $ac_try) 2>&5
4927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest.$ac_objext'
4931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 (eval $ac_try) 2>&5
4933 ac_status=$?
4934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4935 (exit $ac_status); }; }; then
697afb65
HPN
4936 ac_struct_stat_st_dev=yes;
4937else
b7026657
AC
4938 echo "$as_me: failed program was:" >&5
4939sed 's/^/| /' conftest.$ac_ext >&5
4940
4941cat >conftest.$ac_ext <<_ACEOF
4942/* confdefs.h. */
4943_ACEOF
4944cat confdefs.h >>conftest.$ac_ext
4945cat >>conftest.$ac_ext <<_ACEOF
4946/* end confdefs.h. */
697afb65
HPN
4947#ifdef HAVE_SYS_TYPES_H
4948#include <sys/types.h>
4949#endif
4950#ifdef HAVE_SYS_STAT_H
4951#include <sys/stat.h>
4952#endif
b7026657
AC
4953int
4954main ()
4955{
697afb65
HPN
4956
4957static struct stat ac_aggr;
4958if (sizeof ac_aggr.st_dev)
4959return 0;
b7026657
AC
4960 ;
4961 return 0;
4962}
4963_ACEOF
4964rm -f conftest.$ac_objext
4965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } &&
20e95c23
DJ
4973 { ac_try='test -z "$ac_c_werror_flag"
4974 || test ! -s conftest.err'
b7026657
AC
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
697afb65
HPN
4986 ac_struct_stat_st_dev=yes;
4987else
b7026657
AC
4988 echo "$as_me: failed program was:" >&5
4989sed 's/^/| /' conftest.$ac_ext >&5
4990
4991ac_struct_stat_st_dev=no;
697afb65 4992fi
b7026657 4993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 4994fi
b7026657
AC
4995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4996if test $ac_struct_stat_st_dev = yes; then :;
4997cat >>confdefs.h <<_ACEOF
697afb65 4998#define HAVE_STRUCT_STAT_ST_DEV 1
b7026657 4999_ACEOF
697afb65 5000
b7026657 5001else :;
697afb65
HPN
5002fi
5003fi
b7026657
AC
5004echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5
5005echo "${ECHO_T}$ac_struct_stat_st_dev" >&6
697afb65 5006
b7026657
AC
5007echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5
5008echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6
5009if test "${ac_struct_stat_st_ino+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5011else
5012 ac_struct_stat_st_ino=no;
b7026657
AC
5013cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h. */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h. */
697afb65
HPN
5019#ifdef HAVE_SYS_TYPES_H
5020#include <sys/types.h>
5021#endif
5022#ifdef HAVE_SYS_STAT_H
5023#include <sys/stat.h>
5024#endif
b7026657
AC
5025int
5026main ()
5027{
697afb65
HPN
5028
5029static struct stat ac_aggr;
5030if (ac_aggr.st_ino)
5031return 0;
b7026657
AC
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036rm -f conftest.$ac_objext
5037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>conftest.er1
5039 ac_status=$?
5040 grep -v '^ *+' conftest.er1 >conftest.err
5041 rm -f conftest.er1
5042 cat conftest.err >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); } &&
20e95c23
DJ
5045 { ac_try='test -z "$ac_c_werror_flag"
5046 || test ! -s conftest.err'
b7026657
AC
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; } &&
5052 { ac_try='test -s conftest.$ac_objext'
5053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054 (eval $ac_try) 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
697afb65
HPN
5058 ac_struct_stat_st_ino=yes;
5059else
b7026657
AC
5060 echo "$as_me: failed program was:" >&5
5061sed 's/^/| /' conftest.$ac_ext >&5
5062
5063cat >conftest.$ac_ext <<_ACEOF
5064/* confdefs.h. */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h. */
697afb65
HPN
5069#ifdef HAVE_SYS_TYPES_H
5070#include <sys/types.h>
5071#endif
5072#ifdef HAVE_SYS_STAT_H
5073#include <sys/stat.h>
5074#endif
b7026657
AC
5075int
5076main ()
5077{
697afb65
HPN
5078
5079static struct stat ac_aggr;
5080if (sizeof ac_aggr.st_ino)
5081return 0;
b7026657
AC
5082 ;
5083 return 0;
5084}
5085_ACEOF
5086rm -f conftest.$ac_objext
5087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>conftest.er1
5089 ac_status=$?
5090 grep -v '^ *+' conftest.er1 >conftest.err
5091 rm -f conftest.er1
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
20e95c23
DJ
5095 { ac_try='test -z "$ac_c_werror_flag"
5096 || test ! -s conftest.err'
b7026657
AC
5097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5098 (eval $ac_try) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }; } &&
5102 { ac_try='test -s conftest.$ac_objext'
5103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5104 (eval $ac_try) 2>&5
5105 ac_status=$?
5106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107 (exit $ac_status); }; }; then
697afb65
HPN
5108 ac_struct_stat_st_ino=yes;
5109else
b7026657
AC
5110 echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113ac_struct_stat_st_ino=no;
697afb65 5114fi
b7026657 5115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5116fi
b7026657
AC
5117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5118if test $ac_struct_stat_st_ino = yes; then :;
5119cat >>confdefs.h <<_ACEOF
697afb65 5120#define HAVE_STRUCT_STAT_ST_INO 1
b7026657 5121_ACEOF
697afb65 5122
b7026657 5123else :;
697afb65
HPN
5124fi
5125fi
b7026657
AC
5126echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5
5127echo "${ECHO_T}$ac_struct_stat_st_ino" >&6
697afb65 5128
b7026657
AC
5129echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5
5130echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6
5131if test "${ac_struct_stat_st_mode+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5133else
5134 ac_struct_stat_st_mode=no;
b7026657
AC
5135cat >conftest.$ac_ext <<_ACEOF
5136/* confdefs.h. */
5137_ACEOF
5138cat confdefs.h >>conftest.$ac_ext
5139cat >>conftest.$ac_ext <<_ACEOF
5140/* end confdefs.h. */
697afb65
HPN
5141#ifdef HAVE_SYS_TYPES_H
5142#include <sys/types.h>
5143#endif
5144#ifdef HAVE_SYS_STAT_H
5145#include <sys/stat.h>
5146#endif
b7026657
AC
5147int
5148main ()
5149{
697afb65
HPN
5150
5151static struct stat ac_aggr;
5152if (ac_aggr.st_mode)
5153return 0;
b7026657
AC
5154 ;
5155 return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext
5159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
20e95c23
DJ
5167 { ac_try='test -z "$ac_c_werror_flag"
5168 || test ! -s conftest.err'
b7026657
AC
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 (eval $ac_try) 2>&5
5171 ac_status=$?
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5176 (eval $ac_try) 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
697afb65
HPN
5180 ac_struct_stat_st_mode=yes;
5181else
b7026657
AC
5182 echo "$as_me: failed program was:" >&5
5183sed 's/^/| /' conftest.$ac_ext >&5
5184
5185cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
697afb65
HPN
5191#ifdef HAVE_SYS_TYPES_H
5192#include <sys/types.h>
5193#endif
5194#ifdef HAVE_SYS_STAT_H
5195#include <sys/stat.h>
5196#endif
b7026657
AC
5197int
5198main ()
5199{
697afb65
HPN
5200
5201static struct stat ac_aggr;
5202if (sizeof ac_aggr.st_mode)
5203return 0;
b7026657
AC
5204 ;
5205 return 0;
5206}
5207_ACEOF
5208rm -f conftest.$ac_objext
5209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5210 (eval $ac_compile) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } &&
20e95c23
DJ
5217 { ac_try='test -z "$ac_c_werror_flag"
5218 || test ! -s conftest.err'
b7026657
AC
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
697afb65
HPN
5230 ac_struct_stat_st_mode=yes;
5231else
b7026657
AC
5232 echo "$as_me: failed program was:" >&5
5233sed 's/^/| /' conftest.$ac_ext >&5
5234
5235ac_struct_stat_st_mode=no;
697afb65 5236fi
b7026657 5237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5238fi
b7026657
AC
5239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240if test $ac_struct_stat_st_mode = yes; then :;
5241cat >>confdefs.h <<_ACEOF
697afb65 5242#define HAVE_STRUCT_STAT_ST_MODE 1
b7026657 5243_ACEOF
697afb65 5244
b7026657 5245else :;
697afb65
HPN
5246fi
5247fi
b7026657
AC
5248echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5
5249echo "${ECHO_T}$ac_struct_stat_st_mode" >&6
697afb65 5250
b7026657
AC
5251echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5
5252echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6
5253if test "${ac_struct_stat_st_nlink+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5255else
5256 ac_struct_stat_st_nlink=no;
b7026657
AC
5257cat >conftest.$ac_ext <<_ACEOF
5258/* confdefs.h. */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h. */
697afb65
HPN
5263#ifdef HAVE_SYS_TYPES_H
5264#include <sys/types.h>
5265#endif
5266#ifdef HAVE_SYS_STAT_H
5267#include <sys/stat.h>
5268#endif
b7026657
AC
5269int
5270main ()
5271{
697afb65
HPN
5272
5273static struct stat ac_aggr;
5274if (ac_aggr.st_nlink)
5275return 0;
b7026657
AC
5276 ;
5277 return 0;
5278}
5279_ACEOF
5280rm -f conftest.$ac_objext
5281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282 (eval $ac_compile) 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
20e95c23
DJ
5289 { ac_try='test -z "$ac_c_werror_flag"
5290 || test ! -s conftest.err'
b7026657
AC
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292 (eval $ac_try) 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest.$ac_objext'
5297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298 (eval $ac_try) 2>&5
5299 ac_status=$?
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); }; }; then
697afb65
HPN
5302 ac_struct_stat_st_nlink=yes;
5303else
b7026657
AC
5304 echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307cat >conftest.$ac_ext <<_ACEOF
5308/* confdefs.h. */
5309_ACEOF
5310cat confdefs.h >>conftest.$ac_ext
5311cat >>conftest.$ac_ext <<_ACEOF
5312/* end confdefs.h. */
697afb65
HPN
5313#ifdef HAVE_SYS_TYPES_H
5314#include <sys/types.h>
5315#endif
5316#ifdef HAVE_SYS_STAT_H
5317#include <sys/stat.h>
5318#endif
b7026657
AC
5319int
5320main ()
5321{
697afb65
HPN
5322
5323static struct stat ac_aggr;
5324if (sizeof ac_aggr.st_nlink)
5325return 0;
b7026657
AC
5326 ;
5327 return 0;
5328}
5329_ACEOF
5330rm -f conftest.$ac_objext
5331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5332 (eval $ac_compile) 2>conftest.er1
5333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } &&
20e95c23
DJ
5339 { ac_try='test -z "$ac_c_werror_flag"
5340 || test ! -s conftest.err'
b7026657
AC
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; } &&
5346 { ac_try='test -s conftest.$ac_objext'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 (eval $ac_try) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then
697afb65
HPN
5352 ac_struct_stat_st_nlink=yes;
5353else
b7026657
AC
5354 echo "$as_me: failed program was:" >&5
5355sed 's/^/| /' conftest.$ac_ext >&5
5356
5357ac_struct_stat_st_nlink=no;
697afb65 5358fi
b7026657 5359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5360fi
b7026657
AC
5361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362if test $ac_struct_stat_st_nlink = yes; then :;
5363cat >>confdefs.h <<_ACEOF
697afb65 5364#define HAVE_STRUCT_STAT_ST_NLINK 1
b7026657 5365_ACEOF
697afb65 5366
b7026657 5367else :;
697afb65
HPN
5368fi
5369fi
b7026657
AC
5370echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5
5371echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6
697afb65 5372
b7026657
AC
5373echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5
5374echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6
5375if test "${ac_struct_stat_st_uid+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5377else
5378 ac_struct_stat_st_uid=no;
b7026657
AC
5379cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
697afb65
HPN
5385#ifdef HAVE_SYS_TYPES_H
5386#include <sys/types.h>
5387#endif
5388#ifdef HAVE_SYS_STAT_H
5389#include <sys/stat.h>
5390#endif
b7026657
AC
5391int
5392main ()
5393{
697afb65
HPN
5394
5395static struct stat ac_aggr;
5396if (ac_aggr.st_uid)
5397return 0;
b7026657
AC
5398 ;
5399 return 0;
5400}
5401_ACEOF
5402rm -f conftest.$ac_objext
5403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
20e95c23
DJ
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
b7026657
AC
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
697afb65
HPN
5424 ac_struct_stat_st_uid=yes;
5425else
b7026657
AC
5426 echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429cat >conftest.$ac_ext <<_ACEOF
5430/* confdefs.h. */
5431_ACEOF
5432cat confdefs.h >>conftest.$ac_ext
5433cat >>conftest.$ac_ext <<_ACEOF
5434/* end confdefs.h. */
697afb65
HPN
5435#ifdef HAVE_SYS_TYPES_H
5436#include <sys/types.h>
5437#endif
5438#ifdef HAVE_SYS_STAT_H
5439#include <sys/stat.h>
5440#endif
b7026657
AC
5441int
5442main ()
5443{
697afb65
HPN
5444
5445static struct stat ac_aggr;
5446if (sizeof ac_aggr.st_uid)
5447return 0;
b7026657
AC
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452rm -f conftest.$ac_objext
5453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5455 ac_status=$?
5456 grep -v '^ *+' conftest.er1 >conftest.err
5457 rm -f conftest.er1
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
20e95c23
DJ
5461 { ac_try='test -z "$ac_c_werror_flag"
5462 || test ! -s conftest.err'
b7026657
AC
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 (eval $ac_try) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; } &&
5468 { ac_try='test -s conftest.$ac_objext'
5469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470 (eval $ac_try) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); }; }; then
697afb65
HPN
5474 ac_struct_stat_st_uid=yes;
5475else
b7026657
AC
5476 echo "$as_me: failed program was:" >&5
5477sed 's/^/| /' conftest.$ac_ext >&5
5478
5479ac_struct_stat_st_uid=no;
697afb65 5480fi
b7026657 5481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5482fi
b7026657
AC
5483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484if test $ac_struct_stat_st_uid = yes; then :;
5485cat >>confdefs.h <<_ACEOF
697afb65 5486#define HAVE_STRUCT_STAT_ST_UID 1
b7026657 5487_ACEOF
697afb65 5488
b7026657 5489else :;
697afb65
HPN
5490fi
5491fi
b7026657
AC
5492echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5
5493echo "${ECHO_T}$ac_struct_stat_st_uid" >&6
697afb65 5494
b7026657
AC
5495echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5
5496echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6
5497if test "${ac_struct_stat_st_gid+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5499else
5500 ac_struct_stat_st_gid=no;
b7026657
AC
5501cat >conftest.$ac_ext <<_ACEOF
5502/* confdefs.h. */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h. */
697afb65
HPN
5507#ifdef HAVE_SYS_TYPES_H
5508#include <sys/types.h>
5509#endif
5510#ifdef HAVE_SYS_STAT_H
5511#include <sys/stat.h>
5512#endif
b7026657
AC
5513int
5514main ()
5515{
697afb65
HPN
5516
5517static struct stat ac_aggr;
5518if (ac_aggr.st_gid)
5519return 0;
b7026657
AC
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext
5525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5526 (eval $ac_compile) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
20e95c23
DJ
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
b7026657
AC
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest.$ac_objext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
697afb65
HPN
5546 ac_struct_stat_st_gid=yes;
5547else
b7026657
AC
5548 echo "$as_me: failed program was:" >&5
5549sed 's/^/| /' conftest.$ac_ext >&5
5550
5551cat >conftest.$ac_ext <<_ACEOF
5552/* confdefs.h. */
5553_ACEOF
5554cat confdefs.h >>conftest.$ac_ext
5555cat >>conftest.$ac_ext <<_ACEOF
5556/* end confdefs.h. */
697afb65
HPN
5557#ifdef HAVE_SYS_TYPES_H
5558#include <sys/types.h>
5559#endif
5560#ifdef HAVE_SYS_STAT_H
5561#include <sys/stat.h>
5562#endif
b7026657
AC
5563int
5564main ()
5565{
697afb65
HPN
5566
5567static struct stat ac_aggr;
5568if (sizeof ac_aggr.st_gid)
5569return 0;
b7026657
AC
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574rm -f conftest.$ac_objext
5575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
20e95c23
DJ
5583 { ac_try='test -z "$ac_c_werror_flag"
5584 || test ! -s conftest.err'
b7026657
AC
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
697afb65
HPN
5596 ac_struct_stat_st_gid=yes;
5597else
b7026657
AC
5598 echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
5601ac_struct_stat_st_gid=no;
697afb65 5602fi
b7026657 5603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5604fi
b7026657
AC
5605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5606if test $ac_struct_stat_st_gid = yes; then :;
5607cat >>confdefs.h <<_ACEOF
697afb65 5608#define HAVE_STRUCT_STAT_ST_GID 1
b7026657 5609_ACEOF
697afb65 5610
b7026657 5611else :;
697afb65
HPN
5612fi
5613fi
b7026657
AC
5614echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5
5615echo "${ECHO_T}$ac_struct_stat_st_gid" >&6
697afb65 5616
b7026657
AC
5617echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5618echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5619if test "${ac_struct_stat_st_rdev+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5621else
5622 ac_struct_stat_st_rdev=no;
b7026657
AC
5623cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
697afb65
HPN
5629#ifdef HAVE_SYS_TYPES_H
5630#include <sys/types.h>
5631#endif
5632#ifdef HAVE_SYS_STAT_H
5633#include <sys/stat.h>
5634#endif
b7026657
AC
5635int
5636main ()
5637{
697afb65
HPN
5638
5639static struct stat ac_aggr;
5640if (ac_aggr.st_rdev)
5641return 0;
b7026657
AC
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
20e95c23
DJ
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
b7026657
AC
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
697afb65
HPN
5668 ac_struct_stat_st_rdev=yes;
5669else
b7026657
AC
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673cat >conftest.$ac_ext <<_ACEOF
5674/* confdefs.h. */
5675_ACEOF
5676cat confdefs.h >>conftest.$ac_ext
5677cat >>conftest.$ac_ext <<_ACEOF
5678/* end confdefs.h. */
697afb65
HPN
5679#ifdef HAVE_SYS_TYPES_H
5680#include <sys/types.h>
5681#endif
5682#ifdef HAVE_SYS_STAT_H
5683#include <sys/stat.h>
5684#endif
b7026657
AC
5685int
5686main ()
5687{
697afb65
HPN
5688
5689static struct stat ac_aggr;
5690if (sizeof ac_aggr.st_rdev)
5691return 0;
b7026657
AC
5692 ;
5693 return 0;
5694}
5695_ACEOF
5696rm -f conftest.$ac_objext
5697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698 (eval $ac_compile) 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } &&
20e95c23
DJ
5705 { ac_try='test -z "$ac_c_werror_flag"
5706 || test ! -s conftest.err'
b7026657
AC
5707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 (eval $ac_try) 2>&5
5709 ac_status=$?
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }; } &&
5712 { ac_try='test -s conftest.$ac_objext'
5713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
697afb65
HPN
5718 ac_struct_stat_st_rdev=yes;
5719else
b7026657
AC
5720 echo "$as_me: failed program was:" >&5
5721sed 's/^/| /' conftest.$ac_ext >&5
5722
5723ac_struct_stat_st_rdev=no;
697afb65 5724fi
b7026657 5725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5726fi
b7026657
AC
5727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5728if test $ac_struct_stat_st_rdev = yes; then :;
5729cat >>confdefs.h <<_ACEOF
697afb65 5730#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 5731_ACEOF
697afb65 5732
b7026657 5733else :;
697afb65
HPN
5734fi
5735fi
b7026657
AC
5736echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5
5737echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6
697afb65 5738
b7026657
AC
5739echo "$as_me:$LINENO: checking for struct stat.st_size" >&5
5740echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6
5741if test "${ac_struct_stat_st_size+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5743else
5744 ac_struct_stat_st_size=no;
b7026657
AC
5745cat >conftest.$ac_ext <<_ACEOF
5746/* confdefs.h. */
5747_ACEOF
5748cat confdefs.h >>conftest.$ac_ext
5749cat >>conftest.$ac_ext <<_ACEOF
5750/* end confdefs.h. */
697afb65
HPN
5751#ifdef HAVE_SYS_TYPES_H
5752#include <sys/types.h>
5753#endif
5754#ifdef HAVE_SYS_STAT_H
5755#include <sys/stat.h>
5756#endif
b7026657
AC
5757int
5758main ()
5759{
697afb65
HPN
5760
5761static struct stat ac_aggr;
5762if (ac_aggr.st_size)
5763return 0;
b7026657
AC
5764 ;
5765 return 0;
5766}
5767_ACEOF
5768rm -f conftest.$ac_objext
5769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770 (eval $ac_compile) 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
20e95c23
DJ
5777 { ac_try='test -z "$ac_c_werror_flag"
5778 || test ! -s conftest.err'
b7026657
AC
5779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }; } &&
5784 { ac_try='test -s conftest.$ac_objext'
5785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5786 (eval $ac_try) 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
697afb65
HPN
5790 ac_struct_stat_st_size=yes;
5791else
b7026657
AC
5792 echo "$as_me: failed program was:" >&5
5793sed 's/^/| /' conftest.$ac_ext >&5
5794
5795cat >conftest.$ac_ext <<_ACEOF
5796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
697afb65
HPN
5801#ifdef HAVE_SYS_TYPES_H
5802#include <sys/types.h>
5803#endif
5804#ifdef HAVE_SYS_STAT_H
5805#include <sys/stat.h>
5806#endif
b7026657
AC
5807int
5808main ()
5809{
697afb65
HPN
5810
5811static struct stat ac_aggr;
5812if (sizeof ac_aggr.st_size)
5813return 0;
b7026657
AC
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818rm -f conftest.$ac_objext
5819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820 (eval $ac_compile) 2>conftest.er1
5821 ac_status=$?
5822 grep -v '^ *+' conftest.er1 >conftest.err
5823 rm -f conftest.er1
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } &&
20e95c23
DJ
5827 { ac_try='test -z "$ac_c_werror_flag"
5828 || test ! -s conftest.err'
b7026657
AC
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; } &&
5834 { ac_try='test -s conftest.$ac_objext'
5835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; }; then
697afb65
HPN
5840 ac_struct_stat_st_size=yes;
5841else
b7026657
AC
5842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845ac_struct_stat_st_size=no;
697afb65 5846fi
b7026657 5847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5848fi
b7026657
AC
5849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5850if test $ac_struct_stat_st_size = yes; then :;
5851cat >>confdefs.h <<_ACEOF
697afb65 5852#define HAVE_STRUCT_STAT_ST_SIZE 1
b7026657 5853_ACEOF
697afb65 5854
b7026657 5855else :;
697afb65
HPN
5856fi
5857fi
b7026657
AC
5858echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5
5859echo "${ECHO_T}$ac_struct_stat_st_size" >&6
697afb65 5860
b7026657
AC
5861echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5862echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5863if test "${ac_struct_stat_st_blksize+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5865else
5866 ac_struct_stat_st_blksize=no;
b7026657
AC
5867cat >conftest.$ac_ext <<_ACEOF
5868/* confdefs.h. */
5869_ACEOF
5870cat confdefs.h >>conftest.$ac_ext
5871cat >>conftest.$ac_ext <<_ACEOF
5872/* end confdefs.h. */
697afb65
HPN
5873#ifdef HAVE_SYS_TYPES_H
5874#include <sys/types.h>
5875#endif
5876#ifdef HAVE_SYS_STAT_H
5877#include <sys/stat.h>
5878#endif
b7026657
AC
5879int
5880main ()
5881{
697afb65
HPN
5882
5883static struct stat ac_aggr;
5884if (ac_aggr.st_blksize)
5885return 0;
b7026657
AC
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
20e95c23
DJ
5899 { ac_try='test -z "$ac_c_werror_flag"
5900 || test ! -s conftest.err'
b7026657
AC
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902 (eval $ac_try) 2>&5
5903 ac_status=$?
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5908 (eval $ac_try) 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
697afb65
HPN
5912 ac_struct_stat_st_blksize=yes;
5913else
b7026657
AC
5914 echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
697afb65
HPN
5923#ifdef HAVE_SYS_TYPES_H
5924#include <sys/types.h>
5925#endif
5926#ifdef HAVE_SYS_STAT_H
5927#include <sys/stat.h>
5928#endif
b7026657
AC
5929int
5930main ()
5931{
697afb65
HPN
5932
5933static struct stat ac_aggr;
5934if (sizeof ac_aggr.st_blksize)
5935return 0;
b7026657
AC
5936 ;
5937 return 0;
5938}
5939_ACEOF
5940rm -f conftest.$ac_objext
5941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>conftest.er1
5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
20e95c23
DJ
5949 { ac_try='test -z "$ac_c_werror_flag"
5950 || test ! -s conftest.err'
b7026657
AC
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 (eval $ac_try) 2>&5
5959 ac_status=$?
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); }; }; then
697afb65
HPN
5962 ac_struct_stat_st_blksize=yes;
5963else
b7026657
AC
5964 echo "$as_me: failed program was:" >&5
5965sed 's/^/| /' conftest.$ac_ext >&5
5966
5967ac_struct_stat_st_blksize=no;
697afb65 5968fi
b7026657 5969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 5970fi
b7026657
AC
5971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972if test $ac_struct_stat_st_blksize = yes; then :;
5973cat >>confdefs.h <<_ACEOF
697afb65 5974#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
b7026657 5975_ACEOF
697afb65 5976
b7026657 5977else :;
697afb65
HPN
5978fi
5979fi
b7026657
AC
5980echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5
5981echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6
697afb65 5982
b7026657
AC
5983echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5984echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5985if test "${ac_struct_stat_st_blocks+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
5987else
5988 ac_struct_stat_st_blocks=no;
b7026657
AC
5989cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h. */
697afb65
HPN
5995#ifdef HAVE_SYS_TYPES_H
5996#include <sys/types.h>
5997#endif
5998#ifdef HAVE_SYS_STAT_H
5999#include <sys/stat.h>
6000#endif
b7026657
AC
6001int
6002main ()
6003{
697afb65
HPN
6004
6005static struct stat ac_aggr;
6006if (ac_aggr.st_blocks)
6007return 0;
b7026657
AC
6008 ;
6009 return 0;
6010}
6011_ACEOF
6012rm -f conftest.$ac_objext
6013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
20e95c23
DJ
6021 { ac_try='test -z "$ac_c_werror_flag"
6022 || test ! -s conftest.err'
b7026657
AC
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try='test -s conftest.$ac_objext'
6029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 (eval $ac_try) 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
697afb65
HPN
6034 ac_struct_stat_st_blocks=yes;
6035else
b7026657
AC
6036 echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039cat >conftest.$ac_ext <<_ACEOF
6040/* confdefs.h. */
6041_ACEOF
6042cat confdefs.h >>conftest.$ac_ext
6043cat >>conftest.$ac_ext <<_ACEOF
6044/* end confdefs.h. */
697afb65
HPN
6045#ifdef HAVE_SYS_TYPES_H
6046#include <sys/types.h>
6047#endif
6048#ifdef HAVE_SYS_STAT_H
6049#include <sys/stat.h>
6050#endif
b7026657
AC
6051int
6052main ()
6053{
697afb65
HPN
6054
6055static struct stat ac_aggr;
6056if (sizeof ac_aggr.st_blocks)
6057return 0;
b7026657
AC
6058 ;
6059 return 0;
6060}
6061_ACEOF
6062rm -f conftest.$ac_objext
6063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>conftest.er1
6065 ac_status=$?
6066 grep -v '^ *+' conftest.er1 >conftest.err
6067 rm -f conftest.er1
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
20e95c23
DJ
6071 { ac_try='test -z "$ac_c_werror_flag"
6072 || test ! -s conftest.err'
b7026657
AC
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; } &&
6078 { ac_try='test -s conftest.$ac_objext'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6080 (eval $ac_try) 2>&5
6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then
697afb65
HPN
6084 ac_struct_stat_st_blocks=yes;
6085else
b7026657
AC
6086 echo "$as_me: failed program was:" >&5
6087sed 's/^/| /' conftest.$ac_ext >&5
6088
6089ac_struct_stat_st_blocks=no;
697afb65 6090fi
b7026657 6091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 6092fi
b7026657
AC
6093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6094if test $ac_struct_stat_st_blocks = yes; then :;
6095cat >>confdefs.h <<_ACEOF
697afb65 6096#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b7026657 6097_ACEOF
697afb65 6098
b7026657 6099else :;
697afb65
HPN
6100fi
6101fi
b7026657
AC
6102echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5
6103echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6
697afb65 6104
b7026657
AC
6105echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5
6106echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6
6107if test "${ac_struct_stat_st_atime+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
6109else
6110 ac_struct_stat_st_atime=no;
b7026657
AC
6111cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
697afb65
HPN
6117#ifdef HAVE_SYS_TYPES_H
6118#include <sys/types.h>
6119#endif
6120#ifdef HAVE_SYS_STAT_H
6121#include <sys/stat.h>
6122#endif
b7026657
AC
6123int
6124main ()
6125{
697afb65
HPN
6126
6127static struct stat ac_aggr;
6128if (ac_aggr.st_atime)
6129return 0;
b7026657
AC
6130 ;
6131 return 0;
6132}
6133_ACEOF
6134rm -f conftest.$ac_objext
6135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136 (eval $ac_compile) 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); } &&
20e95c23
DJ
6143 { ac_try='test -z "$ac_c_werror_flag"
6144 || test ! -s conftest.err'
b7026657
AC
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; } &&
6150 { ac_try='test -s conftest.$ac_objext'
6151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 (eval $ac_try) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); }; }; then
697afb65
HPN
6156 ac_struct_stat_st_atime=yes;
6157else
b7026657
AC
6158 echo "$as_me: failed program was:" >&5
6159sed 's/^/| /' conftest.$ac_ext >&5
6160
6161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
697afb65
HPN
6167#ifdef HAVE_SYS_TYPES_H
6168#include <sys/types.h>
6169#endif
6170#ifdef HAVE_SYS_STAT_H
6171#include <sys/stat.h>
6172#endif
b7026657
AC
6173int
6174main ()
6175{
697afb65
HPN
6176
6177static struct stat ac_aggr;
6178if (sizeof ac_aggr.st_atime)
6179return 0;
b7026657
AC
6180 ;
6181 return 0;
6182}
6183_ACEOF
6184rm -f conftest.$ac_objext
6185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
20e95c23
DJ
6193 { ac_try='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
b7026657
AC
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
697afb65
HPN
6206 ac_struct_stat_st_atime=yes;
6207else
b7026657
AC
6208 echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
6210
6211ac_struct_stat_st_atime=no;
697afb65 6212fi
b7026657 6213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 6214fi
b7026657
AC
6215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6216if test $ac_struct_stat_st_atime = yes; then :;
6217cat >>confdefs.h <<_ACEOF
697afb65 6218#define HAVE_STRUCT_STAT_ST_ATIME 1
b7026657 6219_ACEOF
697afb65 6220
b7026657 6221else :;
697afb65
HPN
6222fi
6223fi
b7026657
AC
6224echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5
6225echo "${ECHO_T}$ac_struct_stat_st_atime" >&6
697afb65 6226
b7026657
AC
6227echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5
6228echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6
6229if test "${ac_struct_stat_st_mtime+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
6231else
6232 ac_struct_stat_st_mtime=no;
b7026657
AC
6233cat >conftest.$ac_ext <<_ACEOF
6234/* confdefs.h. */
6235_ACEOF
6236cat confdefs.h >>conftest.$ac_ext
6237cat >>conftest.$ac_ext <<_ACEOF
6238/* end confdefs.h. */
697afb65
HPN
6239#ifdef HAVE_SYS_TYPES_H
6240#include <sys/types.h>
6241#endif
6242#ifdef HAVE_SYS_STAT_H
6243#include <sys/stat.h>
6244#endif
b7026657
AC
6245int
6246main ()
6247{
697afb65
HPN
6248
6249static struct stat ac_aggr;
6250if (ac_aggr.st_mtime)
6251return 0;
b7026657
AC
6252 ;
6253 return 0;
6254}
6255_ACEOF
6256rm -f conftest.$ac_objext
6257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258 (eval $ac_compile) 2>conftest.er1
6259 ac_status=$?
6260 grep -v '^ *+' conftest.er1 >conftest.err
6261 rm -f conftest.er1
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
20e95c23
DJ
6265 { ac_try='test -z "$ac_c_werror_flag"
6266 || test ! -s conftest.err'
b7026657
AC
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 (eval $ac_try) 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest.$ac_objext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 (eval $ac_try) 2>&5
6275 ac_status=$?
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
697afb65
HPN
6278 ac_struct_stat_st_mtime=yes;
6279else
b7026657
AC
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
697afb65
HPN
6289#ifdef HAVE_SYS_TYPES_H
6290#include <sys/types.h>
6291#endif
6292#ifdef HAVE_SYS_STAT_H
6293#include <sys/stat.h>
6294#endif
b7026657
AC
6295int
6296main ()
6297{
697afb65
HPN
6298
6299static struct stat ac_aggr;
6300if (sizeof ac_aggr.st_mtime)
6301return 0;
b7026657
AC
6302 ;
6303 return 0;
6304}
6305_ACEOF
6306rm -f conftest.$ac_objext
6307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>conftest.er1
6309 ac_status=$?
6310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
20e95c23
DJ
6315 { ac_try='test -z "$ac_c_werror_flag"
6316 || test ! -s conftest.err'
b7026657
AC
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
697afb65
HPN
6328 ac_struct_stat_st_mtime=yes;
6329else
b7026657
AC
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333ac_struct_stat_st_mtime=no;
697afb65 6334fi
b7026657 6335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 6336fi
b7026657
AC
6337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6338if test $ac_struct_stat_st_mtime = yes; then :;
6339cat >>confdefs.h <<_ACEOF
697afb65 6340#define HAVE_STRUCT_STAT_ST_MTIME 1
b7026657 6341_ACEOF
697afb65 6342
b7026657 6343else :;
697afb65
HPN
6344fi
6345fi
b7026657
AC
6346echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5
6347echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6
697afb65 6348
b7026657
AC
6349echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5
6350echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6
6351if test "${ac_struct_stat_st_ctime+set}" = set; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
6353else
6354 ac_struct_stat_st_ctime=no;
b7026657
AC
6355cat >conftest.$ac_ext <<_ACEOF
6356/* confdefs.h. */
6357_ACEOF
6358cat confdefs.h >>conftest.$ac_ext
6359cat >>conftest.$ac_ext <<_ACEOF
6360/* end confdefs.h. */
697afb65
HPN
6361#ifdef HAVE_SYS_TYPES_H
6362#include <sys/types.h>
6363#endif
6364#ifdef HAVE_SYS_STAT_H
6365#include <sys/stat.h>
6366#endif
b7026657
AC
6367int
6368main ()
6369{
697afb65
HPN
6370
6371static struct stat ac_aggr;
6372if (ac_aggr.st_ctime)
6373return 0;
b7026657
AC
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378rm -f conftest.$ac_objext
6379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6380 (eval $ac_compile) 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
20e95c23
DJ
6387 { ac_try='test -z "$ac_c_werror_flag"
6388 || test ! -s conftest.err'
b7026657
AC
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 (eval $ac_try) 2>&5
6391 ac_status=$?
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; } &&
6394 { ac_try='test -s conftest.$ac_objext'
6395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6396 (eval $ac_try) 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
697afb65
HPN
6400 ac_struct_stat_st_ctime=yes;
6401else
b7026657
AC
6402 echo "$as_me: failed program was:" >&5
6403sed 's/^/| /' conftest.$ac_ext >&5
6404
6405cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h. */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h. */
697afb65
HPN
6411#ifdef HAVE_SYS_TYPES_H
6412#include <sys/types.h>
6413#endif
6414#ifdef HAVE_SYS_STAT_H
6415#include <sys/stat.h>
6416#endif
b7026657
AC
6417int
6418main ()
6419{
697afb65
HPN
6420
6421static struct stat ac_aggr;
6422if (sizeof ac_aggr.st_ctime)
6423return 0;
b7026657
AC
6424 ;
6425 return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
20e95c23
DJ
6437 { ac_try='test -z "$ac_c_werror_flag"
6438 || test ! -s conftest.err'
b7026657
AC
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
697afb65
HPN
6450 ac_struct_stat_st_ctime=yes;
6451else
b7026657
AC
6452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
6455ac_struct_stat_st_ctime=no;
697afb65 6456fi
b7026657 6457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 6458fi
b7026657
AC
6459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6460if test $ac_struct_stat_st_ctime = yes; then :;
6461cat >>confdefs.h <<_ACEOF
697afb65 6462#define HAVE_STRUCT_STAT_ST_CTIME 1
b7026657 6463_ACEOF
697afb65 6464
b7026657 6465else :;
697afb65
HPN
6466fi
6467fi
b7026657
AC
6468echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5
6469echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6
697afb65 6470
b7026657
AC
6471 ac_config_files="$ac_config_files Makefile"
6472 ac_config_commands="$ac_config_commands default"
6473cat >confcache <<\_ACEOF
c906108c
SS
6474# This file is a shell script that caches the results of configure
6475# tests run on this system so they can be shared between configure
b7026657
AC
6476# scripts and configure runs, see configure's option --config-cache.
6477# It is not useful on other systems. If it contains results you don't
6478# want to keep, you may remove or edit it.
c906108c 6479#
b7026657
AC
6480# config.status only pays attention to the cache file if you give it
6481# the --recheck option to rerun configure.
c906108c 6482#
b7026657
AC
6483# `ac_cv_env_foo' variables (set or unset) will be overridden when
6484# loading this file, other *unset* `ac_cv_foo' will be assigned the
6485# following values.
6486
6487_ACEOF
6488
c906108c
SS
6489# The following way of writing the cache mishandles newlines in values,
6490# but we know of no workaround that is simple, portable, and efficient.
6491# So, don't put newlines in cache variables' values.
6492# Ultrix sh set writes to stderr and can't be redirected directly,
6493# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
6494{
6495 (set) 2>&1 |
6496 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6497 *ac_space=\ *)
6498 # `set' does not quote correctly, so add quotes (double-quote
6499 # substitution turns \\\\ into \\, and sed turns \\ into \).
6500 sed -n \
6501 "s/'/'\\\\''/g;
6502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6503 ;;
6504 *)
6505 # `set' quotes correctly as required by POSIX, so do not add quotes.
6506 sed -n \
6507 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6508 ;;
6509 esac;
6510} |
6511 sed '
6512 t clear
6513 : clear
6514 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6515 t end
6516 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6517 : end' >>confcache
6518if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 6519 if test -w $cache_file; then
b7026657
AC
6520 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6521 cat confcache >$cache_file
c906108c
SS
6522 else
6523 echo "not updating unwritable cache $cache_file"
6524 fi
6525fi
6526rm -f confcache
6527
c906108c
SS
6528test "x$prefix" = xNONE && prefix=$ac_default_prefix
6529# Let make expand exec_prefix.
6530test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6531
b7026657
AC
6532# VPATH may cause trouble with some makes, so we remove $(srcdir),
6533# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6534# trailing colons and then remove the whole line if VPATH becomes empty
6535# (actually we leave an empty line to preserve line numbers).
c906108c 6536if test "x$srcdir" = x.; then
b7026657
AC
6537 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6538s/:*\$(srcdir):*/:/;
6539s/:*\${srcdir}:*/:/;
6540s/:*@srcdir@:*/:/;
6541s/^\([^=]*=[ ]*\):*/\1/;
6542s/:*$//;
6543s/^[^=]*=[ ]*$//;
6544}'
c906108c
SS
6545fi
6546
c906108c
SS
6547DEFS=-DHAVE_CONFIG_H
6548
b7026657
AC
6549ac_libobjs=
6550ac_ltlibobjs=
6551for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6552 # 1. Remove the extension, and $U if already installed.
6553 ac_i=`echo "$ac_i" |
6554 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6555 # 2. Add them.
6556 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6557 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6558done
6559LIBOBJS=$ac_libobjs
c906108c 6560
b7026657
AC
6561LTLIBOBJS=$ac_ltlibobjs
6562
6563
6564
6565: ${CONFIG_STATUS=./config.status}
6566ac_clean_files_save=$ac_clean_files
6567ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6568{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6569echo "$as_me: creating $CONFIG_STATUS" >&6;}
6570cat >$CONFIG_STATUS <<_ACEOF
6571#! $SHELL
6572# Generated by $as_me.
c906108c 6573# Run this file to recreate the current configuration.
c906108c 6574# Compiler output produced by configure, useful for debugging
b7026657 6575# configure, is in config.log if it exists.
c906108c 6576
b7026657
AC
6577debug=false
6578ac_cs_recheck=false
6579ac_cs_silent=false
6580SHELL=\${CONFIG_SHELL-$SHELL}
6581_ACEOF
6582
6583cat >>$CONFIG_STATUS <<\_ACEOF
6584## --------------------- ##
6585## M4sh Initialization. ##
6586## --------------------- ##
6587
6588# Be Bourne compatible
6589if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6590 emulate sh
6591 NULLCMD=:
6592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6593 # is contrary to our usage. Disable this feature.
6594 alias -g '${1+"$@"}'='"$@"'
6595elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6596 set -o posix
6597fi
6598DUALCASE=1; export DUALCASE # for MKS sh
6599
6600# Support unset when possible.
6601if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6602 as_unset=unset
6603else
6604 as_unset=false
6605fi
6606
6607
6608# Work around bugs in pre-3.0 UWIN ksh.
6609$as_unset ENV MAIL MAILPATH
6610PS1='$ '
6611PS2='> '
6612PS4='+ '
6613
6614# NLS nuisances.
6615for as_var in \
6616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6618 LC_TELEPHONE LC_TIME
c906108c 6619do
b7026657
AC
6620 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6621 eval $as_var=C; export $as_var
6622 else
6623 $as_unset $as_var
6624 fi
c906108c
SS
6625done
6626
b7026657
AC
6627# Required to use basename.
6628if expr a : '\(a\)' >/dev/null 2>&1; then
6629 as_expr=expr
6630else
6631 as_expr=false
6632fi
c906108c 6633
b7026657
AC
6634if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6635 as_basename=basename
6636else
6637 as_basename=false
6638fi
c906108c 6639
c906108c 6640
b7026657
AC
6641# Name of the executable.
6642as_me=`$as_basename "$0" ||
6643$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6644 X"$0" : 'X\(//\)$' \| \
6645 X"$0" : 'X\(/\)$' \| \
6646 . : '\(.\)' 2>/dev/null ||
6647echo X/"$0" |
6648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6649 /^X\/\(\/\/\)$/{ s//\1/; q; }
6650 /^X\/\(\/\).*/{ s//\1/; q; }
6651 s/.*/./; q'`
6652
6653
6654# PATH needs CR, and LINENO needs CR and PATH.
6655# Avoid depending upon Character Ranges.
6656as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6657as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6658as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6659as_cr_digits='0123456789'
6660as_cr_alnum=$as_cr_Letters$as_cr_digits
6661
6662# The user is always right.
6663if test "${PATH_SEPARATOR+set}" != set; then
6664 echo "#! /bin/sh" >conf$$.sh
6665 echo "exit 0" >>conf$$.sh
6666 chmod +x conf$$.sh
6667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6668 PATH_SEPARATOR=';'
c906108c 6669 else
b7026657
AC
6670 PATH_SEPARATOR=:
6671 fi
6672 rm -f conf$$.sh
6673fi
6674
6675
6676 as_lineno_1=$LINENO
6677 as_lineno_2=$LINENO
6678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6679 test "x$as_lineno_1" != "x$as_lineno_2" &&
6680 test "x$as_lineno_3" = "x$as_lineno_2" || {
6681 # Find who we are. Look in the path if we contain no path at all
6682 # relative or not.
6683 case $0 in
6684 *[\\/]* ) as_myself=$0 ;;
6685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6691done
6692
6693 ;;
6694 esac
6695 # We did not find ourselves, most probably we were run as `sh COMMAND'
6696 # in which case we are not to be found in the path.
6697 if test "x$as_myself" = x; then
6698 as_myself=$0
c906108c 6699 fi
b7026657
AC
6700 if test ! -f "$as_myself"; then
6701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6702echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6703 { (exit 1); exit 1; }; }
6704 fi
6705 case $CONFIG_SHELL in
6706 '')
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for as_base in sh bash ksh sh5; do
6713 case $as_dir in
6714 /*)
6715 if ("$as_dir/$as_base" -c '
6716 as_lineno_1=$LINENO
6717 as_lineno_2=$LINENO
6718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6719 test "x$as_lineno_1" != "x$as_lineno_2" &&
6720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6723 CONFIG_SHELL=$as_dir/$as_base
6724 export CONFIG_SHELL
6725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6726 fi;;
6727 esac
6728 done
6729done
6730;;
6731 esac
6732
6733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6734 # uniformly replaced by the line number. The first 'sed' inserts a
6735 # line-number line before each line; the second 'sed' does the real
6736 # work. The second script uses 'N' to pair each line-number line
6737 # with the numbered line, and appends trailing '-' during
6738 # substitution so that $LINENO is not a special case at line end.
6739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6741 sed '=' <$as_myself |
6742 sed '
6743 N
6744 s,$,-,
6745 : loop
6746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6747 t loop
6748 s,-$,,
6749 s,^['$as_cr_digits']*\n,,
6750 ' >$as_me.lineno &&
6751 chmod +x $as_me.lineno ||
6752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6753echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6754 { (exit 1); exit 1; }; }
6755
6756 # Don't try to exec as it changes $[0], causing all sort of problems
6757 # (the dirname of $[0] is not the place where we might find the
6758 # original and so on. Autoconf is especially sensible to this).
6759 . ./$as_me.lineno
6760 # Exit status is that of the last command.
6761 exit
6762}
6763
6764
6765case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6766 *c*,-n*) ECHO_N= ECHO_C='
6767' ECHO_T=' ' ;;
6768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6770esac
6771
6772if expr a : '\(a\)' >/dev/null 2>&1; then
6773 as_expr=expr
6774else
6775 as_expr=false
6776fi
6777
6778rm -f conf$$ conf$$.exe conf$$.file
6779echo >conf$$.file
6780if ln -s conf$$.file conf$$ 2>/dev/null; then
6781 # We could just check for DJGPP; but this test a) works b) is more generic
6782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6783 if test -f conf$$.exe; then
6784 # Don't use ln at all; we don't have any links
6785 as_ln_s='cp -p'
c906108c 6786 else
b7026657 6787 as_ln_s='ln -s'
c906108c 6788 fi
b7026657
AC
6789elif ln conf$$.file conf$$ 2>/dev/null; then
6790 as_ln_s=ln
6791else
6792 as_ln_s='cp -p'
6793fi
6794rm -f conf$$ conf$$.exe conf$$.file
6795
6796if mkdir -p . 2>/dev/null; then
6797 as_mkdir_p=:
6798else
6799 test -d ./-p && rmdir ./-p
6800 as_mkdir_p=false
6801fi
6802
6803as_executable_p="test -f"
6804
6805# Sed expression to map a string onto a valid CPP name.
6806as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6807
6808# Sed expression to map a string onto a valid variable name.
6809as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6810
6811
6812# IFS
6813# We need space, tab and new line, in precisely that order.
6814as_nl='
6815'
6816IFS=" $as_nl"
6817
6818# CDPATH.
6819$as_unset CDPATH
6820
6821exec 6>&1
6822
6823# Open the log real soon, to keep \$[0] and so on meaningful, and to
6824# report actual input values of CONFIG_FILES etc. instead of their
6825# values after options handling. Logging --version etc. is OK.
6826exec 5>>config.log
6827{
6828 echo
6829 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6830## Running $as_me. ##
6831_ASBOX
6832} >&5
6833cat >&5 <<_CSEOF
6834
6835This file was extended by $as_me, which was
6836generated by GNU Autoconf 2.59. Invocation command line was
6837
6838 CONFIG_FILES = $CONFIG_FILES
6839 CONFIG_HEADERS = $CONFIG_HEADERS
6840 CONFIG_LINKS = $CONFIG_LINKS
6841 CONFIG_COMMANDS = $CONFIG_COMMANDS
6842 $ $0 $@
6843
6844_CSEOF
6845echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6846echo >&5
6847_ACEOF
6848
6849# Files that config.status was made for.
6850if test -n "$ac_config_files"; then
6851 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6852fi
6853
6854if test -n "$ac_config_headers"; then
6855 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6856fi
6857
6858if test -n "$ac_config_links"; then
6859 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6860fi
6861
6862if test -n "$ac_config_commands"; then
6863 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6864fi
6865
6866cat >>$CONFIG_STATUS <<\_ACEOF
6867
6868ac_cs_usage="\
6869\`$as_me' instantiates files from templates according to the
6870current configuration.
6871
6872Usage: $0 [OPTIONS] [FILE]...
6873
6874 -h, --help print this help, then exit
6875 -V, --version print version number, then exit
6876 -q, --quiet do not print progress messages
6877 -d, --debug don't remove temporary files
6878 --recheck update $as_me by reconfiguring in the same conditions
6879 --file=FILE[:TEMPLATE]
6880 instantiate the configuration file FILE
6881 --header=FILE[:TEMPLATE]
6882 instantiate the configuration header FILE
6883
6884Configuration files:
6885$config_files
6886
6887Configuration headers:
6888$config_headers
6889
6890Configuration commands:
6891$config_commands
6892
6893Report bugs to <bug-autoconf@gnu.org>."
6894_ACEOF
6895
6896cat >>$CONFIG_STATUS <<_ACEOF
6897ac_cs_version="\\
6898config.status
6899configured by $0, generated by GNU Autoconf 2.59,
6900 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6901
6902Copyright (C) 2003 Free Software Foundation, Inc.
6903This config.status script is free software; the Free Software Foundation
6904gives unlimited permission to copy, distribute and modify it."
6905srcdir=$srcdir
6906INSTALL="$INSTALL"
6907_ACEOF
6908
6909cat >>$CONFIG_STATUS <<\_ACEOF
6910# If no file are specified by the user, then we need to provide default
6911# value. By we need to know if files were specified by the user.
6912ac_need_defaults=:
6913while test $# != 0
6914do
6915 case $1 in
6916 --*=*)
6917 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6918 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6919 ac_shift=:
6920 ;;
6921 -*)
6922 ac_option=$1
6923 ac_optarg=$2
6924 ac_shift=shift
6925 ;;
6926 *) # This is not an option, so the user has probably given explicit
6927 # arguments.
6928 ac_option=$1
6929 ac_need_defaults=false;;
6930 esac
6931
6932 case $ac_option in
6933 # Handling of the options.
6934_ACEOF
6935cat >>$CONFIG_STATUS <<\_ACEOF
6936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6937 ac_cs_recheck=: ;;
6938 --version | --vers* | -V )
6939 echo "$ac_cs_version"; exit 0 ;;
6940 --he | --h)
6941 # Conflict between --help and --header
6942 { { echo "$as_me:$LINENO: error: ambiguous option: $1
6943Try \`$0 --help' for more information." >&5
6944echo "$as_me: error: ambiguous option: $1
6945Try \`$0 --help' for more information." >&2;}
6946 { (exit 1); exit 1; }; };;
6947 --help | --hel | -h )
6948 echo "$ac_cs_usage"; exit 0 ;;
6949 --debug | --d* | -d )
6950 debug=: ;;
6951 --file | --fil | --fi | --f )
6952 $ac_shift
6953 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6954 ac_need_defaults=false;;
6955 --header | --heade | --head | --hea )
6956 $ac_shift
6957 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6958 ac_need_defaults=false;;
6959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6961 ac_cs_silent=: ;;
6962
6963 # This is an error.
6964 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6965Try \`$0 --help' for more information." >&5
6966echo "$as_me: error: unrecognized option: $1
6967Try \`$0 --help' for more information." >&2;}
6968 { (exit 1); exit 1; }; } ;;
6969
6970 *) ac_config_targets="$ac_config_targets $1" ;;
6971
6972 esac
6973 shift
c906108c 6974done
b7026657
AC
6975
6976ac_configure_extra_args=
6977
6978if $ac_cs_silent; then
6979 exec 6>/dev/null
6980 ac_configure_extra_args="$ac_configure_extra_args --silent"
6981fi
6982
6983_ACEOF
6984cat >>$CONFIG_STATUS <<_ACEOF
6985if \$ac_cs_recheck; then
6986 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6987 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 6988fi
c906108c 6989
b7026657 6990_ACEOF
c906108c 6991
b7026657
AC
6992
6993
6994
6995
6996cat >>$CONFIG_STATUS <<\_ACEOF
6997for ac_config_target in $ac_config_targets
6998do
6999 case "$ac_config_target" in
7000 # Handling of arguments.
7001 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7002 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7003 "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
7004 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7005echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7006 { (exit 1); exit 1; }; };;
c906108c 7007 esac
b7026657 7008done
c906108c 7009
b7026657
AC
7010# If the user did not use the arguments to specify the items to instantiate,
7011# then the envvar interface is used. Set only those that are not.
7012# We use the long form for the default assignment because of an extremely
7013# bizarre bug on SunOS 4.1.3.
7014if $ac_need_defaults; then
7015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7018fi
7019
7020# Have a temporary directory for convenience. Make it in the build tree
7021# simply because there is no reason to put it here, and in addition,
7022# creating and moving files from /tmp can sometimes cause problems.
7023# Create a temporary directory, and hook for its removal unless debugging.
7024$debug ||
7025{
7026 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7027 trap '{ (exit 1); exit 1; }' 1 2 13 15
7028}
c906108c 7029
b7026657
AC
7030# Create a (secure) tmp directory for tmp files.
7031
7032{
7033 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7034 test -n "$tmp" && test -d "$tmp"
7035} ||
7036{
7037 tmp=./confstat$$-$RANDOM
7038 (umask 077 && mkdir $tmp)
7039} ||
7040{
7041 echo "$me: cannot create a temporary directory in ." >&2
7042 { (exit 1); exit 1; }
7043}
7044
7045_ACEOF
7046
7047cat >>$CONFIG_STATUS <<_ACEOF
7048
7049#
7050# CONFIG_FILES section.
7051#
7052
7053# No need to generate the scripts if there are no CONFIG_FILES.
7054# This happens for instance when ./config.status config.h
7055if test -n "\$CONFIG_FILES"; then
7056 # Protect against being on the right side of a sed subst in config.status.
7057 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7058 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7059s,@sim_environment@,$sim_environment,;t t
7060s,@sim_alignment@,$sim_alignment,;t t
7061s,@sim_assert@,$sim_assert,;t t
7062s,@sim_bitsize@,$sim_bitsize,;t t
7063s,@sim_endian@,$sim_endian,;t t
7064s,@sim_hostendian@,$sim_hostendian,;t t
7065s,@sim_float@,$sim_float,;t t
7066s,@sim_scache@,$sim_scache,;t t
7067s,@sim_default_model@,$sim_default_model,;t t
7068s,@sim_hw_cflags@,$sim_hw_cflags,;t t
7069s,@sim_hw_objs@,$sim_hw_objs,;t t
7070s,@sim_hw@,$sim_hw,;t t
7071s,@sim_inline@,$sim_inline,;t t
7072s,@sim_packages@,$sim_packages,;t t
7073s,@sim_regparm@,$sim_regparm,;t t
7074s,@sim_reserved_bits@,$sim_reserved_bits,;t t
7075s,@sim_smp@,$sim_smp,;t t
7076s,@sim_stdcall@,$sim_stdcall,;t t
7077s,@sim_xor_endian@,$sim_xor_endian,;t t
7078s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
7079s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
7080s,@SHELL@,$SHELL,;t t
7081s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7082s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7083s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7084s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7085s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7086s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7087s,@exec_prefix@,$exec_prefix,;t t
7088s,@prefix@,$prefix,;t t
7089s,@program_transform_name@,$program_transform_name,;t t
7090s,@bindir@,$bindir,;t t
7091s,@sbindir@,$sbindir,;t t
7092s,@libexecdir@,$libexecdir,;t t
7093s,@datadir@,$datadir,;t t
7094s,@sysconfdir@,$sysconfdir,;t t
7095s,@sharedstatedir@,$sharedstatedir,;t t
7096s,@localstatedir@,$localstatedir,;t t
7097s,@libdir@,$libdir,;t t
7098s,@includedir@,$includedir,;t t
7099s,@oldincludedir@,$oldincludedir,;t t
7100s,@infodir@,$infodir,;t t
7101s,@mandir@,$mandir,;t t
7102s,@build_alias@,$build_alias,;t t
7103s,@host_alias@,$host_alias,;t t
7104s,@target_alias@,$target_alias,;t t
7105s,@DEFS@,$DEFS,;t t
7106s,@ECHO_C@,$ECHO_C,;t t
7107s,@ECHO_N@,$ECHO_N,;t t
7108s,@ECHO_T@,$ECHO_T,;t t
7109s,@LIBS@,$LIBS,;t t
7110s,@build@,$build,;t t
7111s,@build_cpu@,$build_cpu,;t t
7112s,@build_vendor@,$build_vendor,;t t
7113s,@build_os@,$build_os,;t t
7114s,@host@,$host,;t t
7115s,@host_cpu@,$host_cpu,;t t
7116s,@host_vendor@,$host_vendor,;t t
7117s,@host_os@,$host_os,;t t
7118s,@target@,$target,;t t
7119s,@target_cpu@,$target_cpu,;t t
7120s,@target_vendor@,$target_vendor,;t t
7121s,@target_os@,$target_os,;t t
7122s,@CC@,$CC,;t t
7123s,@CFLAGS@,$CFLAGS,;t t
7124s,@LDFLAGS@,$LDFLAGS,;t t
7125s,@CPPFLAGS@,$CPPFLAGS,;t t
7126s,@ac_ct_CC@,$ac_ct_CC,;t t
7127s,@EXEEXT@,$EXEEXT,;t t
7128s,@OBJEXT@,$OBJEXT,;t t
7129s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7130s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7131s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7132s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7133s,@HDEFINES@,$HDEFINES,;t t
7134s,@AR@,$AR,;t t
7135s,@RANLIB@,$RANLIB,;t t
7136s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
2f0122dc
DJ
7137s,@USE_NLS@,$USE_NLS,;t t
7138s,@LIBINTL@,$LIBINTL,;t t
7139s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
7140s,@INCINTL@,$INCINTL,;t t
7141s,@XGETTEXT@,$XGETTEXT,;t t
7142s,@GMSGFMT@,$GMSGFMT,;t t
7143s,@POSUB@,$POSUB,;t t
7144s,@CATALOGS@,$CATALOGS,;t t
7145s,@DATADIRNAME@,$DATADIRNAME,;t t
7146s,@INSTOBJEXT@,$INSTOBJEXT,;t t
7147s,@GENCAT@,$GENCAT,;t t
7148s,@CATOBJEXT@,$CATOBJEXT,;t t
b7026657
AC
7149s,@CPP@,$CPP,;t t
7150s,@EGREP@,$EGREP,;t t
b7026657
AC
7151s,@MAINT@,$MAINT,;t t
7152s,@sim_bswap@,$sim_bswap,;t t
7153s,@sim_cflags@,$sim_cflags,;t t
7154s,@sim_debug@,$sim_debug,;t t
7155s,@sim_stdio@,$sim_stdio,;t t
7156s,@sim_trace@,$sim_trace,;t t
7157s,@sim_profile@,$sim_profile,;t t
6efef468
JM
7158s,@PKGVERSION@,$PKGVERSION,;t t
7159s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
7160s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b7026657
AC
7161s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t
7162s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t
7163s,@LIBOBJS@,$LIBOBJS,;t t
7164s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7165CEOF
7166
7167_ACEOF
7168
7169 cat >>$CONFIG_STATUS <<\_ACEOF
7170 # Split the substitutions into bite-sized pieces for seds with
7171 # small command number limits, like on Digital OSF/1 and HP-UX.
7172 ac_max_sed_lines=48
7173 ac_sed_frag=1 # Number of current file.
7174 ac_beg=1 # First line for current file.
7175 ac_end=$ac_max_sed_lines # Line after last line for current file.
7176 ac_more_lines=:
7177 ac_sed_cmds=
7178 while $ac_more_lines; do
7179 if test $ac_beg -gt 1; then
7180 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7181 else
7182 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7183 fi
7184 if test ! -s $tmp/subs.frag; then
7185 ac_more_lines=false
7186 else
7187 # The purpose of the label and of the branching condition is to
7188 # speed up the sed processing (if there are no `@' at all, there
7189 # is no need to browse any of the substitutions).
7190 # These are the two extra sed commands mentioned above.
7191 (echo ':t
7192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7193 if test -z "$ac_sed_cmds"; then
7194 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7195 else
7196 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7197 fi
7198 ac_sed_frag=`expr $ac_sed_frag + 1`
7199 ac_beg=$ac_end
7200 ac_end=`expr $ac_end + $ac_max_sed_lines`
7201 fi
7202 done
7203 if test -z "$ac_sed_cmds"; then
7204 ac_sed_cmds=cat
c906108c 7205 fi
b7026657 7206fi # test -n "$CONFIG_FILES"
c906108c 7207
b7026657
AC
7208_ACEOF
7209cat >>$CONFIG_STATUS <<\_ACEOF
7210for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7212 case $ac_file in
7213 - | *:- | *:-:* ) # input from stdin
7214 cat >$tmp/stdin
7215 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7216 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7217 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7218 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7219 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
7220 esac
7221
b7026657
AC
7222 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7223 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7224$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7225 X"$ac_file" : 'X\(//\)[^/]' \| \
7226 X"$ac_file" : 'X\(//\)$' \| \
7227 X"$ac_file" : 'X\(/\)' \| \
7228 . : '\(.\)' 2>/dev/null ||
7229echo X"$ac_file" |
7230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7231 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7232 /^X\(\/\/\)$/{ s//\1/; q; }
7233 /^X\(\/\).*/{ s//\1/; q; }
7234 s/.*/./; q'`
7235 { if $as_mkdir_p; then
7236 mkdir -p "$ac_dir"
7237 else
7238 as_dir="$ac_dir"
7239 as_dirs=
7240 while test ! -d "$as_dir"; do
7241 as_dirs="$as_dir $as_dirs"
7242 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7244 X"$as_dir" : 'X\(//\)[^/]' \| \
7245 X"$as_dir" : 'X\(//\)$' \| \
7246 X"$as_dir" : 'X\(/\)' \| \
7247 . : '\(.\)' 2>/dev/null ||
7248echo X"$as_dir" |
7249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7251 /^X\(\/\/\)$/{ s//\1/; q; }
7252 /^X\(\/\).*/{ s//\1/; q; }
7253 s/.*/./; q'`
7254 done
7255 test ! -n "$as_dirs" || mkdir $as_dirs
7256 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7257echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7258 { (exit 1); exit 1; }; }; }
7259
7260 ac_builddir=.
7261
7262if test "$ac_dir" != .; then
7263 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7264 # A "../" for each directory in $ac_dir_suffix.
7265 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7266else
7267 ac_dir_suffix= ac_top_builddir=
7268fi
c906108c 7269
b7026657
AC
7270case $srcdir in
7271 .) # No --srcdir option. We are building in place.
7272 ac_srcdir=.
7273 if test -z "$ac_top_builddir"; then
7274 ac_top_srcdir=.
7275 else
7276 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7277 fi ;;
7278 [\\/]* | ?:[\\/]* ) # Absolute path.
7279 ac_srcdir=$srcdir$ac_dir_suffix;
7280 ac_top_srcdir=$srcdir ;;
7281 *) # Relative path.
7282 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7283 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7284esac
7285
7286# Do not use `cd foo && pwd` to compute absolute paths, because
7287# the directories may not exist.
7288case `pwd` in
7289.) ac_abs_builddir="$ac_dir";;
7290*)
7291 case "$ac_dir" in
7292 .) ac_abs_builddir=`pwd`;;
7293 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7294 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7295 esac;;
7296esac
7297case $ac_abs_builddir in
7298.) ac_abs_top_builddir=${ac_top_builddir}.;;
7299*)
7300 case ${ac_top_builddir}. in
7301 .) ac_abs_top_builddir=$ac_abs_builddir;;
7302 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7303 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7304 esac;;
7305esac
7306case $ac_abs_builddir in
7307.) ac_abs_srcdir=$ac_srcdir;;
7308*)
7309 case $ac_srcdir in
7310 .) ac_abs_srcdir=$ac_abs_builddir;;
7311 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7312 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7313 esac;;
7314esac
7315case $ac_abs_builddir in
7316.) ac_abs_top_srcdir=$ac_top_srcdir;;
7317*)
7318 case $ac_top_srcdir in
7319 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7320 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7321 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7322 esac;;
7323esac
7324
7325
7326 case $INSTALL in
7327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7328 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
7329 esac
7330
20e95c23
DJ
7331 if test x"$ac_file" != x-; then
7332 { echo "$as_me:$LINENO: creating $ac_file" >&5
7333echo "$as_me: creating $ac_file" >&6;}
7334 rm -f "$ac_file"
7335 fi
b7026657
AC
7336 # Let's still pretend it is `configure' which instantiates (i.e., don't
7337 # use $as_me), people would be surprised to read:
7338 # /* config.h. Generated by config.status. */
7339 if test x"$ac_file" = x-; then
7340 configure_input=
7341 else
7342 configure_input="$ac_file. "
7343 fi
7344 configure_input=$configure_input"Generated from `echo $ac_file_in |
7345 sed 's,.*/,,'` by configure."
7346
7347 # First look for the input files in the build tree, otherwise in the
7348 # src tree.
7349 ac_file_inputs=`IFS=:
7350 for f in $ac_file_in; do
7351 case $f in
7352 -) echo $tmp/stdin ;;
7353 [\\/$]*)
7354 # Absolute (can't be DOS-style, as IFS=:)
7355 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7356echo "$as_me: error: cannot find input file: $f" >&2;}
7357 { (exit 1); exit 1; }; }
7358 echo "$f";;
7359 *) # Relative
7360 if test -f "$f"; then
7361 # Build tree
7362 echo "$f"
7363 elif test -f "$srcdir/$f"; then
7364 # Source tree
7365 echo "$srcdir/$f"
7366 else
7367 # /dev/null tree
7368 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7369echo "$as_me: error: cannot find input file: $f" >&2;}
7370 { (exit 1); exit 1; }; }
7371 fi;;
7372 esac
7373 done` || { (exit 1); exit 1; }
7374_ACEOF
7375cat >>$CONFIG_STATUS <<_ACEOF
7376 sed "$ac_vpsub
7377$extrasub
7378_ACEOF
7379cat >>$CONFIG_STATUS <<\_ACEOF
7380:t
7381/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7382s,@configure_input@,$configure_input,;t t
7383s,@srcdir@,$ac_srcdir,;t t
7384s,@abs_srcdir@,$ac_abs_srcdir,;t t
7385s,@top_srcdir@,$ac_top_srcdir,;t t
7386s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7387s,@builddir@,$ac_builddir,;t t
7388s,@abs_builddir@,$ac_abs_builddir,;t t
7389s,@top_builddir@,$ac_top_builddir,;t t
7390s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7391s,@INSTALL@,$ac_INSTALL,;t t
7392" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7393 rm -f $tmp/stdin
7394 if test x"$ac_file" != x-; then
7395 mv $tmp/out $ac_file
7396 else
7397 cat $tmp/out
7398 rm -f $tmp/out
7399 fi
7400
7401done
7402_ACEOF
7403cat >>$CONFIG_STATUS <<\_ACEOF
7404
7405#
7406# CONFIG_HEADER section.
7407#
c906108c
SS
7408
7409# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7410# NAME is the cpp macro being defined and VALUE is the value it is being given.
7411#
7412# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
7413ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7414ac_dB='[ ].*$,\1#\2'
7415ac_dC=' '
7416ac_dD=',;t'
7417# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7418ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7419ac_uB='$,\1#\2define\3'
c906108c 7420ac_uC=' '
b7026657
AC
7421ac_uD=',;t'
7422
7423for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 7424 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
7425 case $ac_file in
7426 - | *:- | *:-:* ) # input from stdin
7427 cat >$tmp/stdin
7428 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7430 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7432 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
7433 esac
7434
b7026657
AC
7435 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7436echo "$as_me: creating $ac_file" >&6;}
7437
7438 # First look for the input files in the build tree, otherwise in the
7439 # src tree.
7440 ac_file_inputs=`IFS=:
7441 for f in $ac_file_in; do
7442 case $f in
7443 -) echo $tmp/stdin ;;
7444 [\\/$]*)
7445 # Absolute (can't be DOS-style, as IFS=:)
7446 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7447echo "$as_me: error: cannot find input file: $f" >&2;}
7448 { (exit 1); exit 1; }; }
7449 # Do quote $f, to prevent DOS paths from being IFS'd.
7450 echo "$f";;
7451 *) # Relative
7452 if test -f "$f"; then
7453 # Build tree
7454 echo "$f"
7455 elif test -f "$srcdir/$f"; then
7456 # Source tree
7457 echo "$srcdir/$f"
7458 else
7459 # /dev/null tree
7460 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7461echo "$as_me: error: cannot find input file: $f" >&2;}
7462 { (exit 1); exit 1; }; }
7463 fi;;
7464 esac
7465 done` || { (exit 1); exit 1; }
7466 # Remove the trailing spaces.
7467 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7468
7469_ACEOF
7470
7471# Transform confdefs.h into two sed scripts, `conftest.defines' and
7472# `conftest.undefs', that substitutes the proper values into
7473# config.h.in to produce config.h. The first handles `#define'
7474# templates, and the second `#undef' templates.
7475# And first: Protect against being on the right side of a sed subst in
7476# config.status. Protect against being in an unquoted here document
7477# in config.status.
7478rm -f conftest.defines conftest.undefs
7479# Using a here document instead of a string reduces the quoting nightmare.
7480# Putting comments in sed scripts is not portable.
7481#
7482# `end' is used to avoid that the second main sed command (meant for
7483# 0-ary CPP macros) applies to n-ary macro definitions.
7484# See the Autoconf documentation for `clear'.
7485cat >confdef2sed.sed <<\_ACEOF
7486s/[\\&,]/\\&/g
7487s,[\\$`],\\&,g
7488t clear
7489: clear
7490s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7491t end
7492s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7493: end
7494_ACEOF
7495# If some macros were called several times there might be several times
7496# the same #defines, which is useless. Nevertheless, we may not want to
7497# sort them, since we want the *last* AC-DEFINE to be honored.
7498uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7499sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7500rm -f confdef2sed.sed
c906108c
SS
7501
7502# This sed command replaces #undef with comments. This is necessary, for
7503# example, in the case of _POSIX_SOURCE, which is predefined and required
7504# on some systems where configure will not decide to define it.
b7026657
AC
7505cat >>conftest.undefs <<\_ACEOF
7506s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7507_ACEOF
7508
7509# Break up conftest.defines because some shells have a limit on the size
7510# of here documents, and old seds have small limits too (100 cmds).
7511echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7512echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7513echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7514echo ' :' >>$CONFIG_STATUS
7515rm -f conftest.tail
7516while grep . conftest.defines >/dev/null
7517do
7518 # Write a limited-size here document to $tmp/defines.sed.
7519 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7520 # Speed up: don't consider the non `#define' lines.
7521 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7522 # Work around the forget-to-reset-the-flag bug.
7523 echo 't clr' >>$CONFIG_STATUS
7524 echo ': clr' >>$CONFIG_STATUS
7525 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7526 echo 'CEOF
7527 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7528 rm -f $tmp/in
7529 mv $tmp/out $tmp/in
7530' >>$CONFIG_STATUS
7531 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7532 rm -f conftest.defines
7533 mv conftest.tail conftest.defines
7534done
7535rm -f conftest.defines
7536echo ' fi # grep' >>$CONFIG_STATUS
7537echo >>$CONFIG_STATUS
c906108c 7538
b7026657
AC
7539# Break up conftest.undefs because some shells have a limit on the size
7540# of here documents, and old seds have small limits too (100 cmds).
7541echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 7542rm -f conftest.tail
b7026657 7543while grep . conftest.undefs >/dev/null
c906108c 7544do
b7026657
AC
7545 # Write a limited-size here document to $tmp/undefs.sed.
7546 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7547 # Speed up: don't consider the non `#undef'
7548 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7549 # Work around the forget-to-reset-the-flag bug.
7550 echo 't clr' >>$CONFIG_STATUS
7551 echo ': clr' >>$CONFIG_STATUS
7552 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 7553 echo 'CEOF
b7026657
AC
7554 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7555 rm -f $tmp/in
7556 mv $tmp/out $tmp/in
7557' >>$CONFIG_STATUS
7558 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7559 rm -f conftest.undefs
7560 mv conftest.tail conftest.undefs
c906108c 7561done
b7026657
AC
7562rm -f conftest.undefs
7563
7564cat >>$CONFIG_STATUS <<\_ACEOF
7565 # Let's still pretend it is `configure' which instantiates (i.e., don't
7566 # use $as_me), people would be surprised to read:
7567 # /* config.h. Generated by config.status. */
7568 if test x"$ac_file" = x-; then
7569 echo "/* Generated by configure. */" >$tmp/config.h
7570 else
7571 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7572 fi
7573 cat $tmp/in >>$tmp/config.h
7574 rm -f $tmp/in
7575 if test x"$ac_file" != x-; then
7576 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7578echo "$as_me: $ac_file is unchanged" >&6;}
7579 else
7580 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7581$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7582 X"$ac_file" : 'X\(//\)[^/]' \| \
7583 X"$ac_file" : 'X\(//\)$' \| \
7584 X"$ac_file" : 'X\(/\)' \| \
7585 . : '\(.\)' 2>/dev/null ||
7586echo X"$ac_file" |
7587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7589 /^X\(\/\/\)$/{ s//\1/; q; }
7590 /^X\(\/\).*/{ s//\1/; q; }
7591 s/.*/./; q'`
7592 { if $as_mkdir_p; then
7593 mkdir -p "$ac_dir"
c906108c 7594 else
b7026657
AC
7595 as_dir="$ac_dir"
7596 as_dirs=
7597 while test ! -d "$as_dir"; do
7598 as_dirs="$as_dir $as_dirs"
7599 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7600$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7601 X"$as_dir" : 'X\(//\)[^/]' \| \
7602 X"$as_dir" : 'X\(//\)$' \| \
7603 X"$as_dir" : 'X\(/\)' \| \
7604 . : '\(.\)' 2>/dev/null ||
7605echo X"$as_dir" |
7606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7607 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7608 /^X\(\/\/\)$/{ s//\1/; q; }
7609 /^X\(\/\).*/{ s//\1/; q; }
7610 s/.*/./; q'`
7611 done
7612 test ! -n "$as_dirs" || mkdir $as_dirs
7613 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7614echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7615 { (exit 1); exit 1; }; }; }
7616
7617 rm -f $ac_file
7618 mv $tmp/config.h $ac_file
c906108c 7619 fi
b7026657
AC
7620 else
7621 cat $tmp/config.h
7622 rm -f $tmp/config.h
c906108c 7623 fi
b7026657
AC
7624done
7625_ACEOF
7626cat >>$CONFIG_STATUS <<\_ACEOF
7627
7628#
7629# CONFIG_COMMANDS section.
7630#
7631for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7632 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7633 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7634 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7635$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7636 X"$ac_dest" : 'X\(//\)[^/]' \| \
7637 X"$ac_dest" : 'X\(//\)$' \| \
7638 X"$ac_dest" : 'X\(/\)' \| \
7639 . : '\(.\)' 2>/dev/null ||
7640echo X"$ac_dest" |
7641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7643 /^X\(\/\/\)$/{ s//\1/; q; }
7644 /^X\(\/\).*/{ s//\1/; q; }
7645 s/.*/./; q'`
7646 { if $as_mkdir_p; then
7647 mkdir -p "$ac_dir"
7648 else
7649 as_dir="$ac_dir"
7650 as_dirs=
7651 while test ! -d "$as_dir"; do
7652 as_dirs="$as_dir $as_dirs"
7653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7655 X"$as_dir" : 'X\(//\)[^/]' \| \
7656 X"$as_dir" : 'X\(//\)$' \| \
7657 X"$as_dir" : 'X\(/\)' \| \
7658 . : '\(.\)' 2>/dev/null ||
7659echo X"$as_dir" |
7660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7662 /^X\(\/\/\)$/{ s//\1/; q; }
7663 /^X\(\/\).*/{ s//\1/; q; }
7664 s/.*/./; q'`
7665 done
7666 test ! -n "$as_dirs" || mkdir $as_dirs
7667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7668echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7669 { (exit 1); exit 1; }; }; }
7670
7671 ac_builddir=.
7672
7673if test "$ac_dir" != .; then
7674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7675 # A "../" for each directory in $ac_dir_suffix.
7676 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7677else
7678 ac_dir_suffix= ac_top_builddir=
7679fi
7680
7681case $srcdir in
7682 .) # No --srcdir option. We are building in place.
7683 ac_srcdir=.
7684 if test -z "$ac_top_builddir"; then
7685 ac_top_srcdir=.
7686 else
7687 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7688 fi ;;
7689 [\\/]* | ?:[\\/]* ) # Absolute path.
7690 ac_srcdir=$srcdir$ac_dir_suffix;
7691 ac_top_srcdir=$srcdir ;;
7692 *) # Relative path.
7693 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7694 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7695esac
7696
7697# Do not use `cd foo && pwd` to compute absolute paths, because
7698# the directories may not exist.
7699case `pwd` in
7700.) ac_abs_builddir="$ac_dir";;
7701*)
7702 case "$ac_dir" in
7703 .) ac_abs_builddir=`pwd`;;
7704 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7705 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7706 esac;;
7707esac
7708case $ac_abs_builddir in
7709.) ac_abs_top_builddir=${ac_top_builddir}.;;
7710*)
7711 case ${ac_top_builddir}. in
7712 .) ac_abs_top_builddir=$ac_abs_builddir;;
7713 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7714 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7715 esac;;
7716esac
7717case $ac_abs_builddir in
7718.) ac_abs_srcdir=$ac_srcdir;;
7719*)
7720 case $ac_srcdir in
7721 .) ac_abs_srcdir=$ac_abs_builddir;;
7722 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7723 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7724 esac;;
7725esac
7726case $ac_abs_builddir in
7727.) ac_abs_top_srcdir=$ac_top_srcdir;;
7728*)
7729 case $ac_top_srcdir in
7730 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7731 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7732 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7733 esac;;
7734esac
7735
c906108c 7736
b7026657
AC
7737 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7738echo "$as_me: executing $ac_dest commands" >&6;}
7739 case $ac_dest in
7740 default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
7741 esac
7742done
7743_ACEOF
c906108c 7744
b7026657
AC
7745cat >>$CONFIG_STATUS <<\_ACEOF
7746
7747{ (exit 0); exit 0; }
7748_ACEOF
c906108c 7749chmod +x $CONFIG_STATUS
b7026657
AC
7750ac_clean_files=$ac_clean_files_save
7751
7752
7753# configure is writing to config.log, and then calls config.status.
7754# config.status does its own redirection, appending to config.log.
7755# Unfortunately, on DOS this fails, as config.log is still kept open
7756# by configure, so config.status won't be able to write to it; its
7757# output is simply discarded. So we exec the FD to /dev/null,
7758# effectively closing config.log, so it can be properly (re)opened and
7759# appended to by config.status. When coming back to configure, we
7760# need to make the FD available again.
7761if test "$no_create" != yes; then
7762 ac_cs_success=:
7763 ac_config_status_args=
7764 test "$silent" = yes &&
7765 ac_config_status_args="$ac_config_status_args --quiet"
7766 exec 5>/dev/null
7767 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7768 exec 5>>config.log
7769 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7770 # would make configure fail if this is the last instruction.
7771 $ac_cs_success || { (exit 1); exit 1; }
7772fi
c906108c 7773