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