* elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
[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
b7026657
AC
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 SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile CPP_FOR_TARGET TARGET_SUBDIR LIBOBJS LTLIBOBJS'
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]
853 --disable-nls do not use Native Language Support
854 --enable-maintainer-mode Enable developer functionality.
855 --enable-sim-bswap Use Host specific BSWAP instruction.
856 --enable-sim-cflags=opts Extra CFLAGS for use in building simulator
857 --enable-sim-debug=opts Enable debugging flags
858 --enable-sim-stdio Specify whether to use stdio for console input/output.
859 --enable-sim-trace=opts Enable tracing flags
860 --enable-sim-profile=opts Enable profiling flags
861
862Optional Packages:
863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
865 --with-included-gettext use the GNU gettext library included here
866
867Some influential environment variables:
868 CC C compiler command
869 CFLAGS C compiler flags
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
871 nonstandard directory <lib dir>
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
873 headers in a nonstandard directory <include dir>
874 CPP C preprocessor
875
876Use these variables to override the choices made by `configure' or to help
877it to find libraries and programs with nonstandard names/locations.
878
879_ACEOF
c906108c
SS
880fi
881
b7026657
AC
882if test "$ac_init_help" = "recursive"; then
883 # If there are subdirs, report their specific --help.
884 ac_popdir=`pwd`
885 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
886 test -d $ac_dir || continue
887 ac_builddir=.
c906108c 888
b7026657
AC
889if test "$ac_dir" != .; then
890 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
891 # A "../" for each directory in $ac_dir_suffix.
892 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
c906108c 893else
b7026657 894 ac_dir_suffix= ac_top_builddir=
c906108c
SS
895fi
896
b7026657
AC
897case $srcdir in
898 .) # No --srcdir option. We are building in place.
899 ac_srcdir=.
900 if test -z "$ac_top_builddir"; then
901 ac_top_srcdir=.
902 else
903 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
904 fi ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_srcdir=$srcdir$ac_dir_suffix;
907 ac_top_srcdir=$srcdir ;;
908 *) # Relative path.
909 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
910 ac_top_srcdir=$ac_top_builddir$srcdir ;;
911esac
912
913# Do not use `cd foo && pwd` to compute absolute paths, because
914# the directories may not exist.
915case `pwd` in
916.) ac_abs_builddir="$ac_dir";;
917*)
918 case "$ac_dir" in
919 .) ac_abs_builddir=`pwd`;;
920 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
921 *) ac_abs_builddir=`pwd`/"$ac_dir";;
922 esac;;
923esac
924case $ac_abs_builddir in
925.) ac_abs_top_builddir=${ac_top_builddir}.;;
926*)
927 case ${ac_top_builddir}. in
928 .) ac_abs_top_builddir=$ac_abs_builddir;;
929 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
930 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
931 esac;;
932esac
933case $ac_abs_builddir in
934.) ac_abs_srcdir=$ac_srcdir;;
935*)
936 case $ac_srcdir in
937 .) ac_abs_srcdir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
939 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
940 esac;;
941esac
942case $ac_abs_builddir in
943.) ac_abs_top_srcdir=$ac_top_srcdir;;
944*)
945 case $ac_top_srcdir in
946 .) ac_abs_top_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
948 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
949 esac;;
950esac
951
952 cd $ac_dir
953 # Check for guested configure; otherwise get Cygnus style configure.
954 if test -f $ac_srcdir/configure.gnu; then
955 echo
956 $SHELL $ac_srcdir/configure.gnu --help=recursive
957 elif test -f $ac_srcdir/configure; then
958 echo
959 $SHELL $ac_srcdir/configure --help=recursive
960 elif test -f $ac_srcdir/configure.ac ||
961 test -f $ac_srcdir/configure.in; then
962 echo
963 $ac_configure --help
964 else
965 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 fi
33aa0cbb 967 cd "$ac_popdir"
b7026657 968 done
c906108c 969fi
b7026657
AC
970
971test -n "$ac_init_help" && exit 0
972if $ac_init_version; then
973 cat <<\_ACEOF
974
975Copyright (C) 2003 Free Software Foundation, Inc.
976This configure script is free software; the Free Software Foundation
977gives unlimited permission to copy, distribute and modify it.
978_ACEOF
979 exit 0
980fi
981exec 5>config.log
982cat >&5 <<_ACEOF
983This file contains any messages produced by compilers while
984running configure, to aid debugging if configure makes a mistake.
985
986It was created by $as_me, which was
987generated by GNU Autoconf 2.59. Invocation command line was
988
989 $ $0 $@
990
991_ACEOF
992{
993cat <<_ASUNAME
994## --------- ##
995## Platform. ##
996## --------- ##
997
998hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002uname -v = `(uname -v) 2>/dev/null || echo unknown`
1003
1004/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1006
1007/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014
1015_ASUNAME
1016
1017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018for as_dir in $PATH
1019do
1020 IFS=$as_save_IFS
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1023done
1024
1025} >&5
1026
1027cat >&5 <<_ACEOF
1028
1029
1030## ----------- ##
1031## Core tests. ##
1032## ----------- ##
1033
1034_ACEOF
1035
1036
1037# Keep a trace of the command line.
1038# Strip out --no-create and --no-recursion so they do not pile up.
1039# Strip out --silent because we don't want to record it for future runs.
1040# Also quote any args containing shell meta-characters.
1041# Make two passes to allow for proper duplicate-argument suppression.
1042ac_configure_args=
1043ac_configure_args0=
1044ac_configure_args1=
1045ac_sep=
1046ac_must_keep_next=false
1047for ac_pass in 1 2
1048do
1049 for ac_arg
1050 do
1051 case $ac_arg in
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 continue ;;
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058 esac
1059 case $ac_pass in
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1061 2)
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1065 else
1066 case $ac_arg in
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073 esac
1074 ;;
1075 -* ) ac_must_keep_next=true ;;
1076 esac
1077 fi
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1080 ac_sep=" "
1081 ;;
1082 esac
1083 done
1084done
1085$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1087
1088# When interrupted or exit'd, cleanup temporary files, and complete
1089# config.log. We remove comments because anyway the quotes in there
1090# would cause problems or look ugly.
1091# WARNING: Be sure not to use single quotes in there, as some shells,
1092# such as our DU 5.0 friend, will then `close' the trap.
1093trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1095 {
1096 echo
1097
1098 cat <<\_ASBOX
1099## ---------------- ##
1100## Cache variables. ##
1101## ---------------- ##
1102_ASBOX
1103 echo
1104 # The following way of writing the cache mishandles newlines in values,
1105{
1106 (set) 2>&1 |
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108 *ac_space=\ *)
1109 sed -n \
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112 ;;
1113 *)
1114 sed -n \
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1116 ;;
1117 esac;
1118}
1119 echo
1120
1121 cat <<\_ASBOX
1122## ----------------- ##
1123## Output variables. ##
1124## ----------------- ##
1125_ASBOX
1126 echo
1127 for ac_var in $ac_subst_vars
1128 do
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1131 done | sort
1132 echo
1133
1134 if test -n "$ac_subst_files"; then
1135 cat <<\_ASBOX
1136## ------------- ##
1137## Output files. ##
1138## ------------- ##
1139_ASBOX
1140 echo
1141 for ac_var in $ac_subst_files
1142 do
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1145 done | sort
1146 echo
1147 fi
1148
1149 if test -s confdefs.h; then
1150 cat <<\_ASBOX
1151## ----------- ##
1152## confdefs.h. ##
1153## ----------- ##
1154_ASBOX
1155 echo
1156 sed "/^$/d" confdefs.h | sort
1157 echo
1158 fi
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1162 } >&5
1163 rm -f core *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165 exit $exit_status
1166 ' 0
1167for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169done
1170ac_signal=0
1171
1172# confdefs.h avoids OS command line length limits that DEFS can exceed.
1173rm -rf conftest* confdefs.h
1174# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175echo >confdefs.h
1176
1177# Predefined preprocessor variables.
1178
1179cat >>confdefs.h <<_ACEOF
1180#define PACKAGE_NAME "$PACKAGE_NAME"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190#define PACKAGE_VERSION "$PACKAGE_VERSION"
1191_ACEOF
1192
1193
1194cat >>confdefs.h <<_ACEOF
1195#define PACKAGE_STRING "$PACKAGE_STRING"
1196_ACEOF
1197
1198
1199cat >>confdefs.h <<_ACEOF
1200#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201_ACEOF
1202
1203
1204# Let the site file select an alternate cache file if it wants to.
1205# Prefer explicitly selected file to automatically selected ones.
1206if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1209 else
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211 fi
1212fi
1213for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1218 . "$ac_site_file"
1219 fi
1220done
1221
1222if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227echo "$as_me: loading cache $cache_file" >&6;}
1228 case $cache_file in
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1231 esac
1232 fi
1233else
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235echo "$as_me: creating cache $cache_file" >&6;}
1236 >$cache_file
1237fi
1238
1239# Check that the precious variables saved in the cache have kept the same
1240# value.
1241ac_cache_corrupted=false
1242for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1249 set,)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,set)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,);;
1258 *)
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1267 fi;;
1268 esac
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1271 case $ac_new_val in
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1275 esac
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 esac
1280 fi
1281done
1282if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1288fi
1289
1290ac_ext=c
1291ac_cpp='$CPP $CPPFLAGS'
1292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294ac_compiler_gnu=$ac_cv_c_compiler_gnu
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
35695fd6
AC
1314 ac_config_headers="$ac_config_headers cconfig.h:config.in"
1315
1316
1317# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
1318# it by inlining the macro's contents.
1319# This file contains common code used by all simulators.
1320#
1321# common.m4 invokes AC macros used by all simulators and by the common
1322# directory. It is intended to be included before any target specific
1323# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
1324# the Makefile. It is intended to be invoked last.
1325#
1326# The simulator's configure.in should look like:
1327#
1328# dnl Process this file with autoconf to produce a configure script.
1329# AC_PREREQ(2.5)dnl
1330# AC_INIT(Makefile.in)
1331# AC_CONFIG_HEADER(config.h:config.in)
1332#
1333# sinclude(../common/aclocal.m4)
1334# sinclude(../common/common.m4)
1335#
1336# ... target specific stuff ...
b7026657 1337
b7026657
AC
1338ac_aux_dir=
1339for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1352 fi
1353done
1354if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1356echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1357 { (exit 1); exit 1; }; }
1358fi
1359ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363# Make sure we can run config.sub.
1364$ac_config_sub sun4 >/dev/null 2>&1 ||
1365 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1366echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1367 { (exit 1); exit 1; }; }
1368
1369echo "$as_me:$LINENO: checking build system type" >&5
1370echo $ECHO_N "checking build system type... $ECHO_C" >&6
1371if test "${ac_cv_build+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
1374 ac_cv_build_alias=$build_alias
1375test -z "$ac_cv_build_alias" &&
1376 ac_cv_build_alias=`$ac_config_guess`
1377test -z "$ac_cv_build_alias" &&
1378 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1379echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1380 { (exit 1); exit 1; }; }
1381ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1382 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1383echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1384 { (exit 1); exit 1; }; }
1385
1386fi
1387echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1388echo "${ECHO_T}$ac_cv_build" >&6
1389build=$ac_cv_build
1390build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1391build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1392build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1393
1394
1395echo "$as_me:$LINENO: checking host system type" >&5
1396echo $ECHO_N "checking host system type... $ECHO_C" >&6
1397if test "${ac_cv_host+set}" = set; then
1398 echo $ECHO_N "(cached) $ECHO_C" >&6
1399else
1400 ac_cv_host_alias=$host_alias
1401test -z "$ac_cv_host_alias" &&
1402 ac_cv_host_alias=$ac_cv_build_alias
1403ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1404 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1405echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408fi
1409echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1410echo "${ECHO_T}$ac_cv_host" >&6
1411host=$ac_cv_host
1412host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1413host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1414host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1415
1416
35695fd6
AC
1417echo "$as_me:$LINENO: checking target system type" >&5
1418echo $ECHO_N "checking target system type... $ECHO_C" >&6
1419if test "${ac_cv_target+set}" = set; then
b7026657
AC
1420 echo $ECHO_N "(cached) $ECHO_C" >&6
1421else
35695fd6
AC
1422 ac_cv_target_alias=$target_alias
1423test "x$ac_cv_target_alias" = "x" &&
1424 ac_cv_target_alias=$ac_cv_host_alias
1425ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1427echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1429
1430fi
1431echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1432echo "${ECHO_T}$ac_cv_target" >&6
1433target=$ac_cv_target
1434target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437
1438
1439# The aliases save the names the user supplied, while $host etc.
1440# will get canonicalized.
1441test -n "$target_alias" &&
1442 test "$program_prefix$program_suffix$program_transform_name" = \
1443 NONENONEs,x,x, &&
1444 program_prefix=${target_alias}-
1445test "$program_prefix" != NONE &&
1446 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1447# Use a double $ so make ignores it.
1448test "$program_suffix" != NONE &&
1449 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1450# Double any \ or $. echo might interpret backslashes.
1451# By default was `s,x,x', remove it if useless.
1452cat <<\_ACEOF >conftest.sed
1453s/[\\$]/&&/g;s/;s,x,x,$//
b7026657 1454_ACEOF
35695fd6
AC
1455program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1456rm conftest.sed
1457
1458ac_ext=c
1459ac_cpp='$CPP $CPPFLAGS'
1460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462ac_compiler_gnu=$ac_cv_c_compiler_gnu
1463if test -n "$ac_tool_prefix"; then
1464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1465set dummy ${ac_tool_prefix}gcc; ac_word=$2
1466echo "$as_me:$LINENO: checking for $ac_word" >&5
1467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468if test "${ac_cv_prog_CC+set}" = set; then
1469 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1470else
35695fd6
AC
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473else
1474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475for as_dir in $PATH
1476do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485done
1486done
1487
b7026657 1488fi
b7026657 1489fi
35695fd6
AC
1490CC=$ac_cv_prog_CC
1491if test -n "$CC"; then
1492 echo "$as_me:$LINENO: result: $CC" >&5
1493echo "${ECHO_T}$CC" >&6
b7026657
AC
1494else
1495 echo "$as_me:$LINENO: result: no" >&5
1496echo "${ECHO_T}no" >&6
b7026657
AC
1497fi
1498
35695fd6
AC
1499fi
1500if test -z "$ac_cv_prog_CC"; then
1501 ac_ct_CC=$CC
1502 # Extract the first word of "gcc", so it can be a program name with args.
1503set dummy gcc; ac_word=$2
1504echo "$as_me:$LINENO: checking for $ac_word" >&5
1505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508else
35695fd6
AC
1509 if test -n "$ac_ct_CC"; then
1510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b7026657 1511else
35695fd6
AC
1512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513for as_dir in $PATH
1514do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_ac_ct_CC="gcc"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523done
1524done
b7026657
AC
1525
1526fi
b7026657 1527fi
35695fd6
AC
1528ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529if test -n "$ac_ct_CC"; then
1530 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531echo "${ECHO_T}$ac_ct_CC" >&6
1532else
1533 echo "$as_me:$LINENO: result: no" >&5
1534echo "${ECHO_T}no" >&6
b7026657 1535fi
b7026657 1536
35695fd6
AC
1537 CC=$ac_ct_CC
1538else
1539 CC="$ac_cv_prog_CC"
b7026657
AC
1540fi
1541
35695fd6
AC
1542if test -z "$CC"; then
1543 if test -n "$ac_tool_prefix"; then
1544 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1545set dummy ${ac_tool_prefix}cc; ac_word=$2
1546echo "$as_me:$LINENO: checking for $ac_word" >&5
1547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548if test "${ac_cv_prog_CC+set}" = set; then
b7026657
AC
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550else
35695fd6
AC
1551 if test -n "$CC"; then
1552 ac_cv_prog_CC="$CC" # Let the user override the test.
1553else
1554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555for as_dir in $PATH
b7026657 1556do
35695fd6
AC
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_CC="${ac_tool_prefix}cc"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
b7026657 1564 fi
35695fd6
AC
1565done
1566done
b7026657 1567
b7026657 1568fi
b7026657 1569fi
35695fd6
AC
1570CC=$ac_cv_prog_CC
1571if test -n "$CC"; then
1572 echo "$as_me:$LINENO: result: $CC" >&5
1573echo "${ECHO_T}$CC" >&6
b7026657 1574else
35695fd6
AC
1575 echo "$as_me:$LINENO: result: no" >&5
1576echo "${ECHO_T}no" >&6
b7026657
AC
1577fi
1578
b7026657 1579fi
35695fd6
AC
1580if test -z "$ac_cv_prog_CC"; then
1581 ac_ct_CC=$CC
1582 # Extract the first word of "cc", so it can be a program name with args.
1583set dummy cc; ac_word=$2
1584echo "$as_me:$LINENO: checking for $ac_word" >&5
1585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 1588else
35695fd6
AC
1589 if test -n "$ac_ct_CC"; then
1590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1591else
1592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
b7026657 1594do
35695fd6
AC
1595 IFS=$as_save_IFS
1596 test -z "$as_dir" && as_dir=.
1597 for ac_exec_ext in '' $ac_executable_extensions; do
1598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599 ac_cv_prog_ac_ct_CC="cc"
1600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 break 2
b7026657 1602 fi
35695fd6
AC
1603done
1604done
b7026657 1605
b7026657 1606fi
b7026657 1607fi
35695fd6
AC
1608ac_ct_CC=$ac_cv_prog_ac_ct_CC
1609if test -n "$ac_ct_CC"; then
1610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1611echo "${ECHO_T}$ac_ct_CC" >&6
b7026657 1612else
35695fd6
AC
1613 echo "$as_me:$LINENO: result: no" >&5
1614echo "${ECHO_T}no" >&6
b7026657 1615fi
b7026657 1616
35695fd6 1617 CC=$ac_ct_CC
b7026657 1618else
35695fd6 1619 CC="$ac_cv_prog_CC"
b7026657
AC
1620fi
1621
35695fd6
AC
1622fi
1623if test -z "$CC"; then
1624 # Extract the first word of "cc", so it can be a program name with args.
1625set dummy cc; ac_word=$2
1626echo "$as_me:$LINENO: checking for $ac_word" >&5
1627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1628if test "${ac_cv_prog_CC+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 if test -n "$CC"; then
1632 ac_cv_prog_CC="$CC" # Let the user override the test.
1633else
1634 ac_prog_rejected=no
1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1643 ac_prog_rejected=yes
1644 continue
1645 fi
1646 ac_cv_prog_CC="cc"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648 break 2
1649 fi
1650done
1651done
b7026657 1652
35695fd6
AC
1653if test $ac_prog_rejected = yes; then
1654 # We found a bogon in the path, so make sure we never use it.
1655 set dummy $ac_cv_prog_CC
1656 shift
1657 if test $# != 0; then
1658 # We chose a different compiler from the bogus one.
1659 # However, it has the same basename, so the bogon will be chosen
1660 # first if we set CC to just the basename; use the full file name.
1661 shift
1662 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1663 fi
1664fi
1665fi
1666fi
1667CC=$ac_cv_prog_CC
1668if test -n "$CC"; then
1669 echo "$as_me:$LINENO: result: $CC" >&5
1670echo "${ECHO_T}$CC" >&6
1671else
1672 echo "$as_me:$LINENO: result: no" >&5
1673echo "${ECHO_T}no" >&6
1674fi
b7026657 1675
35695fd6
AC
1676fi
1677if test -z "$CC"; then
1678 if test -n "$ac_tool_prefix"; then
1679 for ac_prog in cl
1680 do
1681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1682set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1683echo "$as_me:$LINENO: checking for $ac_word" >&5
1684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1685if test "${ac_cv_prog_CC+set}" = set; then
b7026657
AC
1686 echo $ECHO_N "(cached) $ECHO_C" >&6
1687else
35695fd6
AC
1688 if test -n "$CC"; then
1689 ac_cv_prog_CC="$CC" # Let the user override the test.
1690else
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 for ac_exec_ext in '' $ac_executable_extensions; do
1697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1701 fi
1702done
1703done
b7026657 1704
35695fd6
AC
1705fi
1706fi
1707CC=$ac_cv_prog_CC
1708if test -n "$CC"; then
1709 echo "$as_me:$LINENO: result: $CC" >&5
1710echo "${ECHO_T}$CC" >&6
1711else
1712 echo "$as_me:$LINENO: result: no" >&5
1713echo "${ECHO_T}no" >&6
1714fi
b7026657 1715
35695fd6
AC
1716 test -n "$CC" && break
1717 done
1718fi
1719if test -z "$CC"; then
1720 ac_ct_CC=$CC
1721 for ac_prog in cl
1722do
1723 # Extract the first word of "$ac_prog", so it can be a program name with args.
1724set dummy $ac_prog; ac_word=$2
1725echo "$as_me:$LINENO: checking for $ac_word" >&5
1726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
b7026657
AC
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1729else
35695fd6
AC
1730 if test -n "$ac_ct_CC"; then
1731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732else
1733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734for as_dir in $PATH
1735do
1736 IFS=$as_save_IFS
1737 test -z "$as_dir" && as_dir=.
1738 for ac_exec_ext in '' $ac_executable_extensions; do
1739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740 ac_cv_prog_ac_ct_CC="$ac_prog"
1741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 break 2
1743 fi
1744done
1745done
1746
1747fi
1748fi
1749ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750if test -n "$ac_ct_CC"; then
1751 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752echo "${ECHO_T}$ac_ct_CC" >&6
1753else
1754 echo "$as_me:$LINENO: result: no" >&5
1755echo "${ECHO_T}no" >&6
1756fi
1757
1758 test -n "$ac_ct_CC" && break
1759done
1760
1761 CC=$ac_ct_CC
1762fi
1763
1764fi
1765
1766
1767test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1768See \`config.log' for more details." >&5
1769echo "$as_me: error: no acceptable C compiler found in \$PATH
1770See \`config.log' for more details." >&2;}
1771 { (exit 1); exit 1; }; }
1772
1773# Provide some information about the compiler.
1774echo "$as_me:$LINENO:" \
1775 "checking for C compiler version" >&5
1776ac_compiler=`set X $ac_compile; echo $2`
1777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1778 (eval $ac_compiler --version </dev/null >&5) 2>&5
1779 ac_status=$?
1780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781 (exit $ac_status); }
1782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1783 (eval $ac_compiler -v </dev/null >&5) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }
1787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1788 (eval $ac_compiler -V </dev/null >&5) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }
1792
1793cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
1794/* confdefs.h. */
1795_ACEOF
1796cat confdefs.h >>conftest.$ac_ext
1797cat >>conftest.$ac_ext <<_ACEOF
1798/* end confdefs.h. */
b7026657
AC
1799
1800int
1801main ()
1802{
1803
1804 ;
1805 return 0;
1806}
1807_ACEOF
35695fd6
AC
1808ac_clean_files_save=$ac_clean_files
1809ac_clean_files="$ac_clean_files a.out a.exe b.out"
1810# Try to create an executable without -o first, disregard a.out.
1811# It will help us diagnose broken compilers, and finding out an intuition
1812# of exeext.
1813echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1814echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1817 (eval $ac_link_default) 2>&5
b7026657
AC
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
1820 (exit $ac_status); }; then
1821 # Find the output, starting from the most likely. This scheme is
1822# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823# resort.
1824
1825# Be careful to initialize this variable, since it used to be cached.
1826# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1827ac_cv_exeext=
1828# b.out is created by i960 compilers.
1829for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1830do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1834 ;;
1835 conftest.$ac_ext )
1836 # This is the source file.
1837 ;;
1838 [ab].out )
1839 # We found the default executable, but exeext='' is most
1840 # certainly right.
1841 break;;
1842 *.* )
1843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1844 # FIXME: I believe we export ac_cv_exeext for Libtool,
1845 # but it would be cool to find out if it's true. Does anybody
1846 # maintain Libtool? --akim.
1847 export ac_cv_exeext
1848 break;;
1849 * )
1850 break;;
1851 esac
1852done
b7026657
AC
1853else
1854 echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
35695fd6
AC
1857{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: C compiler cannot create executables
1860See \`config.log' for more details." >&2;}
1861 { (exit 77); exit 77; }; }
b7026657 1862fi
c906108c 1863
35695fd6
AC
1864ac_exeext=$ac_cv_exeext
1865echo "$as_me:$LINENO: result: $ac_file" >&5
1866echo "${ECHO_T}$ac_file" >&6
c906108c 1867
35695fd6
AC
1868# Check the compiler produces executables we can run. If not, either
1869# the compiler is broken, or we cross compile.
1870echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1871echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1872# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1873# If not cross compiling, check that we can run a simple program.
1874if test "$cross_compiling" != yes; then
1875 if { ac_try='./$ac_file'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1881 cross_compiling=no
1882 else
1883 if test "$cross_compiling" = maybe; then
1884 cross_compiling=yes
1885 else
1886 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1887If you meant to cross compile, use \`--host'.
1888See \`config.log' for more details." >&5
1889echo "$as_me: error: cannot run C compiled programs.
1890If you meant to cross compile, use \`--host'.
1891See \`config.log' for more details." >&2;}
1892 { (exit 1); exit 1; }; }
1893 fi
1894 fi
c906108c 1895fi
35695fd6
AC
1896echo "$as_me:$LINENO: result: yes" >&5
1897echo "${ECHO_T}yes" >&6
c906108c 1898
35695fd6
AC
1899rm -f a.out a.exe conftest$ac_cv_exeext b.out
1900ac_clean_files=$ac_clean_files_save
1901# Check the compiler produces executables we can run. If not, either
1902# the compiler is broken, or we cross compile.
1903echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1904echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1905echo "$as_me:$LINENO: result: $cross_compiling" >&5
1906echo "${ECHO_T}$cross_compiling" >&6
b7026657 1907
35695fd6
AC
1908echo "$as_me:$LINENO: checking for suffix of executables" >&5
1909echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1911 (eval $ac_link) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1916# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1917# work properly (i.e., refer to `conftest.exe'), while it won't with
1918# `rm'.
1919for ac_file in conftest.exe conftest conftest.*; do
1920 test -f "$ac_file" || continue
1921 case $ac_file in
1922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1923 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1924 export ac_cv_exeext
1925 break;;
1926 * ) break;;
1927 esac
1928done
c906108c 1929else
35695fd6
AC
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1931See \`config.log' for more details." >&5
1932echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1933See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }
c906108c 1935fi
c906108c 1936
35695fd6
AC
1937rm -f conftest$ac_cv_exeext
1938echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1939echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1940
35695fd6
AC
1941rm -f conftest.$ac_ext
1942EXEEXT=$ac_cv_exeext
1943ac_exeext=$EXEEXT
1944echo "$as_me:$LINENO: checking for suffix of object files" >&5
1945echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1946if test "${ac_cv_objext+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1948else
b7026657
AC
1949 cat >conftest.$ac_ext <<_ACEOF
1950/* confdefs.h. */
1951_ACEOF
1952cat confdefs.h >>conftest.$ac_ext
1953cat >>conftest.$ac_ext <<_ACEOF
1954/* end confdefs.h. */
c906108c 1955
b7026657
AC
1956int
1957main ()
1958{
35695fd6
AC
1959
1960 ;
1961 return 0;
b7026657
AC
1962}
1963_ACEOF
35695fd6
AC
1964rm -f conftest.o conftest.obj
1965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>&5
b7026657
AC
1967 ac_status=$?
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
1969 (exit $ac_status); }; then
1970 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1971 case $ac_file in
1972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1974 break;;
1975 esac
1976done
c906108c 1977else
35695fd6 1978 echo "$as_me: failed program was:" >&5
b7026657
AC
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
35695fd6
AC
1981{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1982See \`config.log' for more details." >&5
1983echo "$as_me: error: cannot compute suffix of object files: cannot compile
1984See \`config.log' for more details." >&2;}
1985 { (exit 1); exit 1; }; }
c906108c 1986fi
c906108c 1987
35695fd6 1988rm -f conftest.$ac_cv_objext conftest.$ac_ext
b7026657 1989fi
35695fd6
AC
1990echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1991echo "${ECHO_T}$ac_cv_objext" >&6
1992OBJEXT=$ac_cv_objext
1993ac_objext=$OBJEXT
1994echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1995echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1996if test "${ac_cv_c_compiler_gnu+set}" = set; then
b7026657
AC
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999 cat >conftest.$ac_ext <<_ACEOF
2000/* confdefs.h. */
2001_ACEOF
2002cat confdefs.h >>conftest.$ac_ext
2003cat >>conftest.$ac_ext <<_ACEOF
2004/* end confdefs.h. */
2005
2006int
2007main ()
2008{
35695fd6
AC
2009#ifndef __GNUC__
2010 choke me
b7026657
AC
2011#endif
2012
2013 ;
2014 return 0;
2015}
2016_ACEOF
2017rm -f conftest.$ac_objext
2018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2019 (eval $ac_compile) 2>conftest.er1
2020 ac_status=$?
2021 grep -v '^ *+' conftest.er1 >conftest.err
2022 rm -f conftest.er1
2023 cat conftest.err >&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
33aa0cbb 2026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2028 (eval $ac_try) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; } &&
2032 { ac_try='test -s conftest.$ac_objext'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; }; then
35695fd6 2038 ac_compiler_gnu=yes
c906108c 2039else
b7026657
AC
2040 echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
35695fd6 2043ac_compiler_gnu=no
c906108c 2044fi
b7026657 2045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6 2046ac_cv_c_compiler_gnu=$ac_compiler_gnu
c906108c
SS
2047
2048fi
35695fd6
AC
2049echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2050echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051GCC=`test $ac_compiler_gnu = yes && echo yes`
2052ac_test_CFLAGS=${CFLAGS+set}
2053ac_save_CFLAGS=$CFLAGS
2054CFLAGS="-g"
2055echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2056echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057if test "${ac_cv_prog_cc_g+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
b7026657
AC
2060 cat >conftest.$ac_ext <<_ACEOF
2061/* confdefs.h. */
2062_ACEOF
2063cat confdefs.h >>conftest.$ac_ext
2064cat >>conftest.$ac_ext <<_ACEOF
2065/* end confdefs.h. */
b7026657 2066
35695fd6
AC
2067int
2068main ()
2069{
2070
2071 ;
2072 return 0;
2073}
b7026657
AC
2074_ACEOF
2075rm -f conftest.$ac_objext
2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>conftest.er1
2078 ac_status=$?
2079 grep -v '^ *+' conftest.er1 >conftest.err
2080 rm -f conftest.er1
2081 cat conftest.err >&5
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); } &&
33aa0cbb 2084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 (eval $ac_try) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
35695fd6 2096 ac_cv_prog_cc_g=yes
c906108c 2097else
b7026657
AC
2098 echo "$as_me: failed program was:" >&5
2099sed 's/^/| /' conftest.$ac_ext >&5
2100
35695fd6 2101ac_cv_prog_cc_g=no
c906108c 2102fi
b7026657 2103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2104fi
35695fd6
AC
2105echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS=$ac_save_CFLAGS
2109elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2111 CFLAGS="-g -O2"
2112 else
2113 CFLAGS="-g"
2114 fi
2115else
2116 if test "$GCC" = yes; then
2117 CFLAGS="-O2"
2118 else
2119 CFLAGS=
2120 fi
2121fi
2122echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124if test "${ac_cv_prog_cc_stdc+set}" = set; then
b7026657
AC
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
35695fd6
AC
2127 ac_cv_prog_cc_stdc=no
2128ac_save_CC=$CC
2129cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h. */
35695fd6
AC
2135#include <stdarg.h>
2136#include <stdio.h>
2137#include <sys/types.h>
2138#include <sys/stat.h>
2139/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2140struct buf { int x; };
2141FILE * (*rcsopen) (struct buf *, struct stat *, int);
2142static char *e (p, i)
2143 char **p;
2144 int i;
2145{
2146 return p[i];
2147}
2148static char *f (char * (*g) (char **, int), char **p, ...)
2149{
2150 char *s;
2151 va_list v;
2152 va_start (v,p);
2153 s = g (p, va_arg (v,int));
2154 va_end (v);
2155 return s;
2156}
b7026657 2157
35695fd6
AC
2158/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2159 function prototypes and stuff, but not '\xHH' hex character constants.
2160 These don't provoke an error unfortunately, instead are silently treated
2161 as 'x'. The following induces an error, until -std1 is added to get
2162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2163 array size at least. It's necessary to write '\x00'==0 to get something
2164 that's true only with -std1. */
2165int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2166
2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
2179}
b7026657 2180_ACEOF
35695fd6
AC
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX -qlanglvl=ansi
2184# Ultrix and OSF/1 -std1
2185# HP-UX 10.20 and later -Ae
2186# HP-UX older versions -Aa -D_HPUX_SOURCE
2187# SVR4 -Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
b7026657
AC
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2194 ac_status=$?
2195 grep -v '^ *+' conftest.er1 >conftest.err
2196 rm -f conftest.er1
2197 cat conftest.err >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
33aa0cbb 2200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
35695fd6
AC
2212 ac_cv_prog_cc_stdc=$ac_arg
2213break
b7026657
AC
2214else
2215 echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
b7026657 2218fi
35695fd6
AC
2219rm -f conftest.err conftest.$ac_objext
2220done
2221rm -f conftest.$ac_ext conftest.$ac_objext
2222CC=$ac_save_CC
b7026657
AC
2223
2224fi
2225
35695fd6
AC
2226case "x$ac_cv_prog_cc_stdc" in
2227 x|xno)
2228 echo "$as_me:$LINENO: result: none needed" >&5
2229echo "${ECHO_T}none needed" >&6 ;;
2230 *)
2231 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2232echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2233 CC="$CC $ac_cv_prog_cc_stdc" ;;
2234esac
b7026657 2235
35695fd6
AC
2236# Some people use a C++ compiler to compile C. Since we use `exit',
2237# in C++ we need to declare it. In case someone uses the same compiler
2238# for both compiling C and C++ we need to have the C++ compiler decide
2239# the declaration of exit, since it's the most demanding environment.
2240cat >conftest.$ac_ext <<_ACEOF
2241#ifndef __cplusplus
2242 choke me
2243#endif
2244_ACEOF
2245rm -f conftest.$ac_objext
2246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247 (eval $ac_compile) 2>conftest.er1
2248 ac_status=$?
2249 grep -v '^ *+' conftest.er1 >conftest.err
2250 rm -f conftest.er1
2251 cat conftest.err >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); } &&
33aa0cbb 2254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35695fd6
AC
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2266 for ac_declaration in \
2267 '' \
2268 'extern "C" void std::exit (int) throw (); using std::exit;' \
2269 'extern "C" void std::exit (int); using std::exit;' \
2270 'extern "C" void exit (int) throw ();' \
2271 'extern "C" void exit (int);' \
2272 'void exit (int);'
2273do
b7026657
AC
2274 cat >conftest.$ac_ext <<_ACEOF
2275/* confdefs.h. */
2276_ACEOF
2277cat confdefs.h >>conftest.$ac_ext
2278cat >>conftest.$ac_ext <<_ACEOF
2279/* end confdefs.h. */
35695fd6
AC
2280$ac_declaration
2281#include <stdlib.h>
b7026657
AC
2282int
2283main ()
2284{
35695fd6 2285exit (42);
b7026657
AC
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292 (eval $ac_compile) 2>conftest.er1
2293 ac_status=$?
2294 grep -v '^ *+' conftest.er1 >conftest.err
2295 rm -f conftest.er1
2296 cat conftest.err >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); } &&
33aa0cbb 2299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; } &&
2305 { ac_try='test -s conftest.$ac_objext'
2306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307 (eval $ac_try) 2>&5
2308 ac_status=$?
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); }; }; then
35695fd6 2311 :
c906108c 2312else
b7026657
AC
2313 echo "$as_me: failed program was:" >&5
2314sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2315
35695fd6 2316continue
c906108c 2317fi
b7026657 2318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657
AC
2319 cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h. */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h. */
35695fd6 2325$ac_declaration
b7026657
AC
2326int
2327main ()
2328{
35695fd6 2329exit (42);
b7026657
AC
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext
2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336 (eval $ac_compile) 2>conftest.er1
2337 ac_status=$?
2338 grep -v '^ *+' conftest.er1 >conftest.err
2339 rm -f conftest.er1
2340 cat conftest.err >&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
33aa0cbb 2343 { ac_try='test -z "$ac_c_werror_flag" || 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=
2556echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2557echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2558set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2559if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 cat >conftest.make <<\_ACEOF
2563all:
2564 @echo 'ac_maketemp="$(MAKE)"'
2565_ACEOF
2566# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2567eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2568if test -n "$ac_maketemp"; then
2569 eval ac_cv_prog_make_${ac_make}_set=yes
2570else
2571 eval ac_cv_prog_make_${ac_make}_set=no
2572fi
2573rm -f conftest.make
2574fi
2575if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2576 echo "$as_me:$LINENO: result: yes" >&5
2577echo "${ECHO_T}yes" >&6
2578 SET_MAKE=
2579else
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
2582 SET_MAKE="MAKE=${MAKE-make}"
2583fi
2584
2585
2586echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2588if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590else
2591 ac_func_search_save_LIBS=$LIBS
2592ac_cv_search_strerror=no
2593cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
35695fd6
AC
2599
2600/* Override any gcc2 internal prototype to avoid an error. */
2601#ifdef __cplusplus
2602extern "C"
2603#endif
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606char strerror ();
b7026657
AC
2607int
2608main ()
2609{
35695fd6 2610strerror ();
b7026657
AC
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615rm -f conftest.$ac_objext conftest$ac_exeext
2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
33aa0cbb 2624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest$ac_exeext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
35695fd6 2636 ac_cv_search_strerror="none required"
b7026657
AC
2637else
2638 echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
b7026657
AC
2641fi
2642rm -f conftest.err conftest.$ac_objext \
2643 conftest$ac_exeext conftest.$ac_ext
35695fd6
AC
2644if test "$ac_cv_search_strerror" = no; then
2645 for ac_lib in cposix; do
2646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2647 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
c906108c 2653
35695fd6
AC
2654/* Override any gcc2 internal prototype to avoid an error. */
2655#ifdef __cplusplus
2656extern "C"
2657#endif
2658/* We use char because int might match the return type of a gcc2
2659 builtin and then its argument prototype would still apply. */
2660char strerror ();
b7026657
AC
2661int
2662main ()
2663{
35695fd6 2664strerror ();
b7026657
AC
2665 ;
2666 return 0;
2667}
2668_ACEOF
2669rm -f conftest.$ac_objext conftest$ac_exeext
2670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671 (eval $ac_link) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
33aa0cbb 2678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
35695fd6
AC
2690 ac_cv_search_strerror="-l$ac_lib"
2691break
c906108c 2692else
b7026657
AC
2693 echo "$as_me: failed program was:" >&5
2694sed 's/^/| /' conftest.$ac_ext >&5
2695
c906108c 2696fi
b7026657
AC
2697rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
35695fd6 2699 done
c906108c 2700fi
35695fd6
AC
2701LIBS=$ac_func_search_save_LIBS
2702fi
2703echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
c906108c 2707
35695fd6 2708fi
c906108c 2709
35695fd6
AC
2710ac_ext=c
2711ac_cpp='$CPP $CPPFLAGS'
2712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2714ac_compiler_gnu=$ac_cv_c_compiler_gnu
2715echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2716echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2717# On Suns, sometimes $CPP names a directory.
2718if test -n "$CPP" && test -d "$CPP"; then
2719 CPP=
2720fi
2721if test -z "$CPP"; then
2722 if test "${ac_cv_prog_CPP+set}" = set; then
b7026657 2723 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2724else
35695fd6
AC
2725 # Double quotes because CPP needs to be expanded
2726 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2727 do
2728 ac_preproc_ok=false
2729for ac_c_preproc_warn_flag in '' yes
2730do
2731 # Use a header file that comes with gcc, so configuring glibc
2732 # with a fresh cross-compiler works.
2733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2734 # <limits.h> exists even on freestanding compilers.
2735 # On the NeXT, cc -E runs the code through the compiler's parser,
2736 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
2737 cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
35695fd6
AC
2743#ifdef __STDC__
2744# include <limits.h>
c906108c 2745#else
35695fd6 2746# include <assert.h>
c906108c 2747#endif
35695fd6 2748 Syntax error
b7026657 2749_ACEOF
35695fd6
AC
2750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } >/dev/null; then
2758 if test -s conftest.err; then
2759 ac_cpp_err=$ac_c_preproc_warn_flag
2760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2761 else
2762 ac_cpp_err=
2763 fi
c906108c 2764else
35695fd6 2765 ac_cpp_err=yes
c906108c 2766fi
35695fd6
AC
2767if test -z "$ac_cpp_err"; then
2768 :
2769else
2770 echo "$as_me: failed program was:" >&5
2771sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2772
35695fd6
AC
2773 # Broken: fails on valid input.
2774continue
c906108c 2775fi
35695fd6
AC
2776rm -f conftest.err conftest.$ac_ext
2777
2778 # OK, works on sane cases. Now check whether non-existent headers
2779 # can be detected and how.
b7026657
AC
2780 cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
35695fd6 2786#include <ac_nonexistent.h>
b7026657 2787_ACEOF
35695fd6
AC
2788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657
AC
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2795 (exit $ac_status); } >/dev/null; then
2796 if test -s conftest.err; then
2797 ac_cpp_err=$ac_c_preproc_warn_flag
2798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2799 else
2800 ac_cpp_err=
2801 fi
2802else
2803 ac_cpp_err=yes
2804fi
2805if test -z "$ac_cpp_err"; then
2806 # Broken: success on invalid input.
2807continue
b7026657
AC
2808else
2809 echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
35695fd6
AC
2812 # Passes both tests.
2813ac_preproc_ok=:
2814break
b7026657 2815fi
35695fd6
AC
2816rm -f conftest.err conftest.$ac_ext
2817
2818done
2819# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2820rm -f conftest.err conftest.$ac_ext
2821if $ac_preproc_ok; then
2822 break
b7026657 2823fi
b7026657 2824
35695fd6
AC
2825 done
2826 ac_cv_prog_CPP=$CPP
c906108c 2827
c906108c 2828fi
35695fd6 2829 CPP=$ac_cv_prog_CPP
c906108c 2830else
35695fd6
AC
2831 ac_cv_prog_CPP=$CPP
2832fi
2833echo "$as_me:$LINENO: result: $CPP" >&5
2834echo "${ECHO_T}$CPP" >&6
2835ac_preproc_ok=false
2836for ac_c_preproc_warn_flag in '' yes
2837do
2838 # Use a header file that comes with gcc, so configuring glibc
2839 # with a fresh cross-compiler works.
2840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2841 # <limits.h> exists even on freestanding compilers.
2842 # On the NeXT, cc -E runs the code through the compiler's parser,
2843 # not just through cpp. "Syntax error" is here to catch this case.
b7026657
AC
2844 cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
35695fd6
AC
2850#ifdef __STDC__
2851# include <limits.h>
2852#else
2853# include <assert.h>
2854#endif
2855 Syntax error
b7026657 2856_ACEOF
35695fd6
AC
2857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
b7026657 2859 ac_status=$?
35695fd6
AC
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
b7026657 2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
2864 (exit $ac_status); } >/dev/null; then
2865 if test -s conftest.err; then
2866 ac_cpp_err=$ac_c_preproc_warn_flag
2867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2868 else
2869 ac_cpp_err=
2870 fi
c906108c 2871else
35695fd6
AC
2872 ac_cpp_err=yes
2873fi
2874if test -z "$ac_cpp_err"; then
2875 :
2876else
2877 echo "$as_me: failed program was:" >&5
b7026657
AC
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
35695fd6
AC
2880 # Broken: fails on valid input.
2881continue
c906108c 2882fi
35695fd6 2883rm -f conftest.err conftest.$ac_ext
c906108c 2884
35695fd6
AC
2885 # OK, works on sane cases. Now check whether non-existent headers
2886 # can be detected and how.
2887 cat >conftest.$ac_ext <<_ACEOF
2888/* confdefs.h. */
b7026657 2889_ACEOF
35695fd6
AC
2890cat confdefs.h >>conftest.$ac_ext
2891cat >>conftest.$ac_ext <<_ACEOF
2892/* end confdefs.h. */
2893#include <ac_nonexistent.h>
2894_ACEOF
2895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2906 else
2907 ac_cpp_err=
2908 fi
2909else
2910 ac_cpp_err=yes
2911fi
2912if test -z "$ac_cpp_err"; then
2913 # Broken: success on invalid input.
2914continue
2915else
2916 echo "$as_me: failed program was:" >&5
2917sed 's/^/| /' conftest.$ac_ext >&5
b7026657 2918
35695fd6
AC
2919 # Passes both tests.
2920ac_preproc_ok=:
2921break
2922fi
2923rm -f conftest.err conftest.$ac_ext
c906108c 2924
35695fd6
AC
2925done
2926# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2927rm -f conftest.err conftest.$ac_ext
2928if $ac_preproc_ok; then
2929 :
2930else
2931 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2932See \`config.log' for more details." >&5
2933echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2934See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }
c906108c
SS
2936fi
2937
35695fd6
AC
2938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
b7026657
AC
2943
2944
35695fd6
AC
2945echo "$as_me:$LINENO: checking for egrep" >&5
2946echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2947if test "${ac_cv_prog_egrep+set}" = set; then
b7026657 2948 echo $ECHO_N "(cached) $ECHO_C" >&6
35695fd6
AC
2949else
2950 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2951 then ac_cv_prog_egrep='grep -E'
2952 else ac_cv_prog_egrep='egrep'
2953 fi
b7026657 2954fi
35695fd6
AC
2955echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2956echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2957 EGREP=$ac_cv_prog_egrep
2958
2959
2960echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2961echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2962if test "${ac_cv_header_stdc+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
b7026657 2964else
35695fd6 2965 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
35695fd6
AC
2971#include <stdlib.h>
2972#include <stdarg.h>
2973#include <string.h>
2974#include <float.h>
2975
2976int
2977main ()
2978{
2979
2980 ;
2981 return 0;
2982}
b7026657
AC
2983_ACEOF
2984rm -f conftest.$ac_objext
2985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2986 (eval $ac_compile) 2>conftest.er1
2987 ac_status=$?
2988 grep -v '^ *+' conftest.er1 >conftest.err
2989 rm -f conftest.er1
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } &&
33aa0cbb 2993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; } &&
2999 { ac_try='test -s conftest.$ac_objext'
3000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001 (eval $ac_try) 2>&5
3002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
35695fd6 3005 ac_cv_header_stdc=yes
b7026657
AC
3006else
3007 echo "$as_me: failed program was:" >&5
3008sed 's/^/| /' conftest.$ac_ext >&5
3009
35695fd6 3010ac_cv_header_stdc=no
b7026657
AC
3011fi
3012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3013
35695fd6
AC
3014if test $ac_cv_header_stdc = yes; then
3015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3016 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
35695fd6
AC
3022#include <string.h>
3023
b7026657 3024_ACEOF
35695fd6
AC
3025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3026 $EGREP "memchr" >/dev/null 2>&1; then
3027 :
b7026657 3028else
35695fd6 3029 ac_cv_header_stdc=no
c906108c 3030fi
35695fd6
AC
3031rm -f conftest*
3032
3033fi
3034
3035if test $ac_cv_header_stdc = yes; then
3036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3037 cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h. */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h. */
3043#include <stdlib.h>
3044
3045_ACEOF
3046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3047 $EGREP "free" >/dev/null 2>&1; then
3048 :
b7026657 3049else
35695fd6
AC
3050 ac_cv_header_stdc=no
3051fi
3052rm -f conftest*
b7026657 3053
c906108c 3054fi
b7026657 3055
35695fd6
AC
3056if test $ac_cv_header_stdc = yes; then
3057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3058 if test "$cross_compiling" = yes; then
3059 :
c906108c 3060else
35695fd6
AC
3061 cat >conftest.$ac_ext <<_ACEOF
3062/* confdefs.h. */
3063_ACEOF
3064cat confdefs.h >>conftest.$ac_ext
3065cat >>conftest.$ac_ext <<_ACEOF
3066/* end confdefs.h. */
3067#include <ctype.h>
3068#if ((' ' & 0x0FF) == 0x020)
3069# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3070# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3071#else
3072# define ISLOWER(c) \
3073 (('a' <= (c) && (c) <= 'i') \
3074 || ('j' <= (c) && (c) <= 'r') \
3075 || ('s' <= (c) && (c) <= 'z'))
3076# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3077#endif
b7026657 3078
35695fd6
AC
3079#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3080int
3081main ()
3082{
3083 int i;
3084 for (i = 0; i < 256; i++)
3085 if (XOR (islower (i), ISLOWER (i))
3086 || toupper (i) != TOUPPER (i))
3087 exit(2);
3088 exit (0);
3089}
b7026657 3090_ACEOF
35695fd6
AC
3091rm -f conftest$ac_exeext
3092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3093 (eval $ac_link) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 :
3103else
3104 echo "$as_me: program exited with status $ac_status" >&5
3105echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
b7026657 3107
35695fd6
AC
3108( exit $ac_status )
3109ac_cv_header_stdc=no
3110fi
3111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3112fi
3113fi
b7026657 3114fi
35695fd6
AC
3115echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3116echo "${ECHO_T}$ac_cv_header_stdc" >&6
3117if test $ac_cv_header_stdc = yes; then
b7026657 3118
35695fd6
AC
3119cat >>confdefs.h <<\_ACEOF
3120#define STDC_HEADERS 1
3121_ACEOF
c906108c 3122
35695fd6 3123fi
b7026657 3124
35695fd6
AC
3125echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3126echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3127if test "${ac_cv_c_const+set}" = set; then
b7026657
AC
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
c906108c 3136
b7026657
AC
3137int
3138main ()
3139{
35695fd6
AC
3140/* FIXME: Include the comments suggested by Paul. */
3141#ifndef __cplusplus
3142 /* Ultrix mips cc rejects this. */
3143 typedef int charset[2];
3144 const charset x;
3145 /* SunOS 4.1.1 cc rejects this. */
3146 char const *const *ccp;
3147 char **p;
3148 /* NEC SVR4.0.2 mips cc rejects this. */
3149 struct point {int x, y;};
3150 static struct point const zero = {0,0};
3151 /* AIX XL C 1.02.0.0 rejects this.
3152 It does not let you subtract one const X* pointer from another in
3153 an arm of an if-expression whose if-part is not a constant
3154 expression */
3155 const char *g = "string";
3156 ccp = &g + (g ? g-g : 0);
3157 /* HPUX 7.0 cc rejects these. */
3158 ++ccp;
3159 p = (char**) ccp;
3160 ccp = (char const *const *) p;
3161 { /* SCO 3.2v4 cc rejects this. */
3162 char *t;
3163 char const *s = 0 ? (char *) 0 : (char const *) 0;
3164
3165 *t++ = 0;
3166 }
3167 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3168 int x[] = {25, 17};
3169 const int *foo = &x[0];
3170 ++foo;
3171 }
3172 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3173 typedef const int *iptr;
3174 iptr p = 0;
3175 ++p;
3176 }
3177 { /* AIX XL C 1.02.0.0 rejects this saying
3178 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3179 struct s { int j; const int *ap[3]; };
3180 struct s *b; b->j = 5;
3181 }
3182 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3183 const int foo = 10;
3184 }
3185#endif
3186
b7026657
AC
3187 ;
3188 return 0;
3189}
3190_ACEOF
35695fd6
AC
3191rm -f conftest.$ac_objext
3192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>conftest.er1
b7026657
AC
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
33aa0cbb 3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
3201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; } &&
35695fd6 3206 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208 (eval $ac_try) 2>&5
3209 ac_status=$?
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; }; then
35695fd6 3212 ac_cv_c_const=yes
b7026657
AC
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
35695fd6 3217ac_cv_c_const=no
b7026657 3218fi
35695fd6 3219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3220fi
35695fd6
AC
3221echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3222echo "${ECHO_T}$ac_cv_c_const" >&6
3223if test $ac_cv_c_const = no; then
3224
3225cat >>confdefs.h <<\_ACEOF
3226#define const
b7026657 3227_ACEOF
c906108c 3228
c906108c 3229fi
c906108c 3230
35695fd6
AC
3231echo "$as_me:$LINENO: checking for inline" >&5
3232echo $ECHO_N "checking for inline... $ECHO_C" >&6
3233if test "${ac_cv_c_inline+set}" = set; then
b7026657 3234 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3235else
35695fd6
AC
3236 ac_cv_c_inline=no
3237for ac_kw in inline __inline__ __inline; do
b7026657
AC
3238 cat >conftest.$ac_ext <<_ACEOF
3239/* confdefs.h. */
3240_ACEOF
3241cat confdefs.h >>conftest.$ac_ext
3242cat >>conftest.$ac_ext <<_ACEOF
3243/* end confdefs.h. */
35695fd6
AC
3244#ifndef __cplusplus
3245typedef int foo_t;
3246static $ac_kw foo_t static_foo () {return 0; }
3247$ac_kw foo_t foo () {return 0; }
3248#endif
c906108c 3249
b7026657 3250_ACEOF
35695fd6
AC
3251rm -f conftest.$ac_objext
3252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>conftest.er1
b7026657 3254 ac_status=$?
35695fd6
AC
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
b7026657 3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6 3259 (exit $ac_status); } &&
33aa0cbb 3260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
3261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262 (eval $ac_try) 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3265 (exit $ac_status); }; } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 ac_cv_c_inline=$ac_kw; break
b7026657 3273else
35695fd6
AC
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3276
35695fd6
AC
3277fi
3278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3279done
c906108c 3280
b7026657 3281fi
35695fd6
AC
3282echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3283echo "${ECHO_T}$ac_cv_c_inline" >&6
b7026657 3284
b7026657 3285
35695fd6
AC
3286case $ac_cv_c_inline in
3287 inline | yes) ;;
3288 *)
3289 case $ac_cv_c_inline in
3290 no) ac_val=;;
3291 *) ac_val=$ac_cv_c_inline;;
3292 esac
3293 cat >>confdefs.h <<_ACEOF
3294#ifndef __cplusplus
3295#define inline $ac_val
3296#endif
3297_ACEOF
3298 ;;
3299esac
b7026657 3300
35695fd6 3301# On IRIX 5.3, sys/types and inttypes.h are conflicting.
b7026657 3302
35695fd6
AC
3303
3304
3305
3306
3307
3308
3309
3310
3311for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3312 inttypes.h stdint.h unistd.h
3313do
3314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3315echo "$as_me:$LINENO: checking for $ac_header" >&5
3316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3317if eval "test \"\${$as_ac_Header+set}\" = set"; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320 cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h. */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h. */
3326$ac_includes_default
3327
3328#include <$ac_header>
3329_ACEOF
3330rm -f conftest.$ac_objext
3331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3332 (eval $ac_compile) 2>conftest.er1
b7026657 3333 ac_status=$?
35695fd6
AC
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
b7026657 3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6 3338 (exit $ac_status); } &&
33aa0cbb 3339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35695fd6
AC
3340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341 (eval $ac_try) 2>&5
b7026657
AC
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
b7026657
AC
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6
AC
3350 (exit $ac_status); }; }; then
3351 eval "$as_ac_Header=yes"
3352else
3353 echo "$as_me: failed program was:" >&5
3354sed 's/^/| /' conftest.$ac_ext >&5
b7026657 3355
35695fd6
AC
3356eval "$as_ac_Header=no"
3357fi
3358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3359fi
3360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3362if test `eval echo '${'$as_ac_Header'}'` = yes; then
3363 cat >>confdefs.h <<_ACEOF
3364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3365_ACEOF
3366
3367fi
3368
3369done
3370
3371
3372echo "$as_me:$LINENO: checking for off_t" >&5
3373echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3374if test "${ac_cv_type_off_t+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h. */
35695fd6 3383$ac_includes_default
b7026657
AC
3384int
3385main ()
3386{
35695fd6
AC
3387if ((off_t *) 0)
3388 return 0;
3389if (sizeof (off_t))
3390 return 0;
b7026657
AC
3391 ;
3392 return 0;
3393}
3394_ACEOF
35695fd6
AC
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
b7026657 3398 ac_status=$?
35695fd6
AC
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
b7026657 3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6 3403 (exit $ac_status); } &&
33aa0cbb 3404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35695fd6
AC
3405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406 (eval $ac_try) 2>&5
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412 (eval $ac_try) 2>&5
3413 ac_status=$?
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_type_off_t=yes
b7026657
AC
3417else
3418 echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
35695fd6
AC
3421ac_cv_type_off_t=no
3422fi
3423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3424fi
35695fd6
AC
3425echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3426echo "${ECHO_T}$ac_cv_type_off_t" >&6
3427if test $ac_cv_type_off_t = yes; then
3428 :
3429else
b7026657 3430
35695fd6
AC
3431cat >>confdefs.h <<_ACEOF
3432#define off_t long
3433_ACEOF
b7026657 3434
35695fd6
AC
3435fi
3436
3437echo "$as_me:$LINENO: checking for size_t" >&5
3438echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3439if test "${ac_cv_type_size_t+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442 cat >conftest.$ac_ext <<_ACEOF
3443/* confdefs.h. */
3444_ACEOF
3445cat confdefs.h >>conftest.$ac_ext
3446cat >>conftest.$ac_ext <<_ACEOF
3447/* end confdefs.h. */
3448$ac_includes_default
3449int
3450main ()
3451{
3452if ((size_t *) 0)
3453 return 0;
3454if (sizeof (size_t))
3455 return 0;
3456 ;
3457 return 0;
3458}
3459_ACEOF
3460rm -f conftest.$ac_objext
3461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3462 (eval $ac_compile) 2>conftest.er1
3463 ac_status=$?
3464 grep -v '^ *+' conftest.er1 >conftest.err
3465 rm -f conftest.er1
3466 cat conftest.err >&5
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); } &&
33aa0cbb 3469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35695fd6
AC
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; } &&
3475 { ac_try='test -s conftest.$ac_objext'
b7026657
AC
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; }; then
35695fd6
AC
3481 ac_cv_type_size_t=yes
3482else
3483 echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486ac_cv_type_size_t=no
b7026657 3487fi
35695fd6
AC
3488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3489fi
3490echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3491echo "${ECHO_T}$ac_cv_type_size_t" >&6
3492if test $ac_cv_type_size_t = yes; then
3493 :
3494else
b7026657 3495
35695fd6
AC
3496cat >>confdefs.h <<_ACEOF
3497#define size_t unsigned
3498_ACEOF
b7026657 3499
c906108c 3500fi
c906108c 3501
35695fd6
AC
3502# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3503# for constant arguments. Useless!
3504echo "$as_me:$LINENO: checking for working alloca.h" >&5
3505echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3506if test "${ac_cv_working_alloca_h+set}" = set; then
b7026657
AC
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
35695fd6 3515#include <alloca.h>
b7026657
AC
3516int
3517main ()
3518{
35695fd6 3519char *p = (char *) alloca (2 * sizeof (int));
b7026657
AC
3520 ;
3521 return 0;
3522}
3523_ACEOF
35695fd6
AC
3524rm -f conftest.$ac_objext conftest$ac_exeext
3525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3526 (eval $ac_link) 2>conftest.er1
b7026657 3527 ac_status=$?
35695fd6
AC
3528 grep -v '^ *+' conftest.er1 >conftest.err
3529 rm -f conftest.er1
3530 cat conftest.err >&5
b7026657 3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6 3532 (exit $ac_status); } &&
33aa0cbb 3533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
35695fd6
AC
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest$ac_exeext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_working_alloca_h=yes
c906108c 3546else
b7026657
AC
3547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
35695fd6 3550ac_cv_working_alloca_h=no
c906108c 3551fi
35695fd6
AC
3552rm -f conftest.err conftest.$ac_objext \
3553 conftest$ac_exeext conftest.$ac_ext
3554fi
3555echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3556echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3557if test $ac_cv_working_alloca_h = yes; then
3558
3559cat >>confdefs.h <<\_ACEOF
3560#define HAVE_ALLOCA_H 1
3561_ACEOF
c906108c 3562
b7026657 3563fi
35695fd6
AC
3564
3565echo "$as_me:$LINENO: checking for alloca" >&5
3566echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3567if test "${ac_cv_func_alloca_works+set}" = set; then
b7026657 3568 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 3569else
b7026657
AC
3570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
35695fd6
AC
3576#ifdef __GNUC__
3577# define alloca __builtin_alloca
3578#else
3579# ifdef _MSC_VER
3580# include <malloc.h>
3581# define alloca _alloca
3582# else
3583# if HAVE_ALLOCA_H
3584# include <alloca.h>
3585# else
3586# ifdef _AIX
3587 #pragma alloca
3588# else
3589# ifndef alloca /* predefined by HP cc +Olibcalls */
3590char *alloca ();
3591# endif
3592# endif
3593# endif
3594# endif
3595#endif
b7026657
AC
3596
3597int
3598main ()
3599{
35695fd6 3600char *p = (char *) alloca (1);
b7026657
AC
3601 ;
3602 return 0;
3603}
3604_ACEOF
35695fd6
AC
3605rm -f conftest.$ac_objext conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607 (eval $ac_link) 2>conftest.er1
b7026657
AC
3608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } &&
33aa0cbb 3614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
3615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 (eval $ac_try) 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }; } &&
35695fd6 3620 { ac_try='test -s conftest$ac_exeext'
b7026657
AC
3621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3622 (eval $ac_try) 2>&5
3623 ac_status=$?
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625 (exit $ac_status); }; }; then
35695fd6 3626 ac_cv_func_alloca_works=yes
b7026657
AC
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
35695fd6 3631ac_cv_func_alloca_works=no
b7026657 3632fi
35695fd6
AC
3633rm -f conftest.err conftest.$ac_objext \
3634 conftest$ac_exeext conftest.$ac_ext
3635fi
3636echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3637echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3638
3639if test $ac_cv_func_alloca_works = yes; then
3640
3641cat >>confdefs.h <<\_ACEOF
3642#define HAVE_ALLOCA 1
3643_ACEOF
3644
3645else
3646 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3647# that cause trouble. Some versions do not even contain alloca or
3648# contain a buggy version. If you still want to use their alloca,
3649# use ar to extract alloca.o from them instead of compiling alloca.c.
3650
3651ALLOCA=alloca.$ac_objext
3652
3653cat >>confdefs.h <<\_ACEOF
3654#define C_ALLOCA 1
3655_ACEOF
3656
3657
3658echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3659echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3660if test "${ac_cv_os_cray+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
3663 cat >conftest.$ac_ext <<_ACEOF
3664/* confdefs.h. */
3665_ACEOF
3666cat confdefs.h >>conftest.$ac_ext
3667cat >>conftest.$ac_ext <<_ACEOF
3668/* end confdefs.h. */
3669#if defined(CRAY) && ! defined(CRAY2)
3670webecray
3671#else
3672wenotbecray
3673#endif
b7026657 3674
35695fd6
AC
3675_ACEOF
3676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 $EGREP "webecray" >/dev/null 2>&1; then
3678 ac_cv_os_cray=yes
3679else
3680 ac_cv_os_cray=no
b7026657 3681fi
35695fd6
AC
3682rm -f conftest*
3683
3684fi
3685echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3686echo "${ECHO_T}$ac_cv_os_cray" >&6
3687if test $ac_cv_os_cray = yes; then
3688 for ac_func in _getb67 GETB67 getb67; do
3689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3690echo "$as_me:$LINENO: checking for $ac_func" >&5
3691echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3692if eval "test \"\${$as_ac_var+set}\" = set"; then
b7026657
AC
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694else
3695 cat >conftest.$ac_ext <<_ACEOF
3696/* confdefs.h. */
3697_ACEOF
3698cat confdefs.h >>conftest.$ac_ext
3699cat >>conftest.$ac_ext <<_ACEOF
3700/* end confdefs.h. */
35695fd6
AC
3701/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3703#define $ac_func innocuous_$ac_func
3704
3705/* System header to define __stub macros and hopefully few prototypes,
3706 which can conflict with char $ac_func (); below.
3707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3708 <limits.h> exists even on freestanding compilers. */
3709
3710#ifdef __STDC__
3711# include <limits.h>
3712#else
3713# include <assert.h>
3714#endif
3715
3716#undef $ac_func
3717
3718/* Override any gcc2 internal prototype to avoid an error. */
3719#ifdef __cplusplus
3720extern "C"
3721{
3722#endif
3723/* We use char because int might match the return type of a gcc2
3724 builtin and then its argument prototype would still apply. */
3725char $ac_func ();
3726/* The GNU C library defines this for functions which it implements
3727 to always fail with ENOSYS. Some functions are actually named
3728 something starting with __ and the normal name is an alias. */
3729#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3730choke me
3731#else
3732char (*f) () = $ac_func;
3733#endif
3734#ifdef __cplusplus
3735}
3736#endif
b7026657
AC
3737
3738int
3739main ()
3740{
35695fd6 3741return f != $ac_func;
b7026657
AC
3742 ;
3743 return 0;
3744}
3745_ACEOF
35695fd6
AC
3746rm -f conftest.$ac_objext conftest$ac_exeext
3747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3748 (eval $ac_link) 2>conftest.er1
b7026657
AC
3749 ac_status=$?
3750 grep -v '^ *+' conftest.er1 >conftest.err
3751 rm -f conftest.er1
3752 cat conftest.err >&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); } &&
33aa0cbb 3755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
3756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757 (eval $ac_try) 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; } &&
35695fd6 3761 { ac_try='test -s conftest$ac_exeext'
b7026657
AC
3762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763 (eval $ac_try) 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; }; then
35695fd6 3767 eval "$as_ac_var=yes"
c906108c 3768else
b7026657
AC
3769 echo "$as_me: failed program was:" >&5
3770sed 's/^/| /' conftest.$ac_ext >&5
c906108c 3771
35695fd6 3772eval "$as_ac_var=no"
c906108c 3773fi
35695fd6
AC
3774rm -f conftest.err conftest.$ac_objext \
3775 conftest$ac_exeext conftest.$ac_ext
b7026657 3776fi
35695fd6
AC
3777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3779if test `eval echo '${'$as_ac_var'}'` = yes; then
3780
3781cat >>confdefs.h <<_ACEOF
3782#define CRAY_STACKSEG_END $ac_func
3783_ACEOF
3784
3785 break
c906108c 3786fi
35695fd6
AC
3787
3788 done
3789fi
3790
3791echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3792echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3793if test "${ac_cv_c_stack_direction+set}" = set; then
b7026657
AC
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
35695fd6
AC
3796 if test "$cross_compiling" = yes; then
3797 ac_cv_c_stack_direction=0
3798else
3799 cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3800/* confdefs.h. */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h. */
35695fd6
AC
3805int
3806find_stack_direction ()
b7026657 3807{
35695fd6
AC
3808 static char *addr = 0;
3809 auto char dummy;
3810 if (addr == 0)
3811 {
3812 addr = &dummy;
3813 return find_stack_direction ();
3814 }
3815 else
3816 return (&dummy > addr) ? 1 : -1;
b7026657
AC
3817}
3818
b7026657
AC
3819int
3820main ()
3821{
35695fd6 3822 exit (find_stack_direction () < 0);
b7026657
AC
3823}
3824_ACEOF
35695fd6
AC
3825rm -f conftest$ac_exeext
3826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827 (eval $ac_link) 2>&5
b7026657
AC
3828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35695fd6 3830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
b7026657
AC
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
35695fd6 3836 ac_cv_c_stack_direction=1
b7026657 3837else
35695fd6
AC
3838 echo "$as_me: program exited with status $ac_status" >&5
3839echo "$as_me: failed program was:" >&5
b7026657
AC
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
35695fd6
AC
3842( exit $ac_status )
3843ac_cv_c_stack_direction=-1
b7026657 3844fi
35695fd6
AC
3845rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3846fi
3847fi
3848echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3849echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3850
3851cat >>confdefs.h <<_ACEOF
3852#define STACK_DIRECTION $ac_cv_c_stack_direction
3853_ACEOF
3854
b7026657
AC
3855
3856fi
3857
b7026657 3858
35695fd6
AC
3859
3860for ac_header in stdlib.h unistd.h
b7026657 3861do
35695fd6
AC
3862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3863if eval "test \"\${$as_ac_Header+set}\" = set"; then
3864 echo "$as_me:$LINENO: checking for $ac_header" >&5
3865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3866if eval "test \"\${$as_ac_Header+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868fi
3869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3871else
3872 # Is the header compilable?
3873echo "$as_me:$LINENO: checking $ac_header usability" >&5
3874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3875cat >conftest.$ac_ext <<_ACEOF
b7026657
AC
3876/* confdefs.h. */
3877_ACEOF
3878cat confdefs.h >>conftest.$ac_ext
3879cat >>conftest.$ac_ext <<_ACEOF
3880/* end confdefs.h. */
35695fd6
AC
3881$ac_includes_default
3882#include <$ac_header>
b7026657
AC
3883_ACEOF
3884rm -f conftest.$ac_objext
3885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } &&
33aa0cbb 3893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; } &&
3899 { ac_try='test -s conftest.$ac_objext'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; }; then
35695fd6 3905 ac_header_compiler=yes
b7026657
AC
3906else
3907 echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
35695fd6 3910ac_header_compiler=no
b7026657
AC
3911fi
3912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35695fd6
AC
3913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3914echo "${ECHO_T}$ac_header_compiler" >&6
3915
3916# Is the header present?
3917echo "$as_me:$LINENO: checking $ac_header presence" >&5
3918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3919cat >conftest.$ac_ext <<_ACEOF
3920/* confdefs.h. */
3921_ACEOF
3922cat confdefs.h >>conftest.$ac_ext
3923cat >>conftest.$ac_ext <<_ACEOF
3924/* end confdefs.h. */
3925#include <$ac_header>
3926_ACEOF
3927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929 ac_status=$?
3930 grep -v '^ *+' conftest.er1 >conftest.err
3931 rm -f conftest.er1
3932 cat conftest.err >&5
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } >/dev/null; then
3935 if test -s conftest.err; then
3936 ac_cpp_err=$ac_c_preproc_warn_flag
3937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3938 else
3939 ac_cpp_err=
3940 fi
3941else
3942 ac_cpp_err=yes
3943fi
3944if test -z "$ac_cpp_err"; then
3945 ac_header_preproc=yes
3946else
3947 echo "$as_me: failed program was:" >&5
3948sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 ac_header_preproc=no
3951fi
3952rm -f conftest.err conftest.$ac_ext
3953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3954echo "${ECHO_T}$ac_header_preproc" >&6
3955
3956# So? What about this header?
3957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3958 yes:no: )
3959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3963 ac_header_preproc=yes
3964 ;;
3965 no:yes:* )
3966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3973echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3978 (
3979 cat <<\_ASBOX
3980## ------------------------------------------ ##
3981## Report this to the AC_PACKAGE_NAME lists. ##
3982## ------------------------------------------ ##
3983_ASBOX
3984 ) |
3985 sed "s/^/$as_me: WARNING: /" >&2
3986 ;;
3987esac
3988echo "$as_me:$LINENO: checking for $ac_header" >&5
3989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3990if eval "test \"\${$as_ac_Header+set}\" = set"; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993 eval "$as_ac_Header=\$ac_header_preproc"
3994fi
3995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3997
3998fi
3999if test `eval echo '${'$as_ac_Header'}'` = yes; then
4000 cat >>confdefs.h <<_ACEOF
4001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4002_ACEOF
4003
4004fi
4005
4006done
4007
4008
4009for ac_func in getpagesize
4010do
4011as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4012echo "$as_me:$LINENO: checking for $ac_func" >&5
4013echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4014if eval "test \"\${$as_ac_var+set}\" = set"; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4016else
b7026657
AC
4017 cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h. */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h. */
35695fd6
AC
4023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4025#define $ac_func innocuous_$ac_func
4026
4027/* System header to define __stub macros and hopefully few prototypes,
4028 which can conflict with char $ac_func (); below.
4029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4030 <limits.h> exists even on freestanding compilers. */
4031
4032#ifdef __STDC__
4033# include <limits.h>
4034#else
4035# include <assert.h>
4036#endif
4037
4038#undef $ac_func
4039
4040/* Override any gcc2 internal prototype to avoid an error. */
4041#ifdef __cplusplus
4042extern "C"
4043{
4044#endif
4045/* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4047char $ac_func ();
4048/* The GNU C library defines this for functions which it implements
4049 to always fail with ENOSYS. Some functions are actually named
4050 something starting with __ and the normal name is an alias. */
4051#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4052choke me
4053#else
4054char (*f) () = $ac_func;
4055#endif
4056#ifdef __cplusplus
4057}
4058#endif
4059
b7026657
AC
4060int
4061main ()
4062{
35695fd6 4063return f != $ac_func;
b7026657
AC
4064 ;
4065 return 0;
4066}
4067_ACEOF
35695fd6
AC
4068rm -f conftest.$ac_objext conftest$ac_exeext
4069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>conftest.er1
b7026657
AC
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
33aa0cbb 4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
35695fd6 4083 { ac_try='test -s conftest$ac_exeext'
b7026657
AC
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
35695fd6 4089 eval "$as_ac_var=yes"
b7026657
AC
4090else
4091 echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
35695fd6 4094eval "$as_ac_var=no"
b7026657 4095fi
35695fd6
AC
4096rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
b7026657 4098fi
35695fd6
AC
4099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4100echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4101if test `eval echo '${'$as_ac_var'}'` = yes; then
4102 cat >>confdefs.h <<_ACEOF
4103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4104_ACEOF
c906108c
SS
4105
4106fi
35695fd6 4107done
c906108c 4108
35695fd6
AC
4109echo "$as_me:$LINENO: checking for working mmap" >&5
4110echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4111if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 if test "$cross_compiling" = yes; then
4115 ac_cv_func_mmap_fixed_mapped=no
4116else
4117 cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */
4123$ac_includes_default
4124/* malloc might have been renamed as rpl_malloc. */
4125#undef malloc
c906108c 4126
35695fd6
AC
4127/* Thanks to Mike Haertel and Jim Avera for this test.
4128 Here is a matrix of mmap possibilities:
4129 mmap private not fixed
4130 mmap private fixed at somewhere currently unmapped
4131 mmap private fixed at somewhere already mapped
4132 mmap shared not fixed
4133 mmap shared fixed at somewhere currently unmapped
4134 mmap shared fixed at somewhere already mapped
4135 For private mappings, we should verify that changes cannot be read()
4136 back from the file, nor mmap's back from the file at a different
4137 address. (There have been systems where private was not correctly
4138 implemented like the infamous i386 svr4.0, and systems where the
4139 VM page cache was not coherent with the file system buffer cache
4140 like early versions of FreeBSD and possibly contemporary NetBSD.)
4141 For shared mappings, we should conversely verify that changes get
4142 propagated back to all the places they're supposed to be.
cd0fc7c3 4143
35695fd6
AC
4144 Grep wants private fixed already mapped.
4145 The main things grep needs to know about mmap are:
4146 * does it exist and is it safe to write into the mmap'd area
4147 * how to use it (BSD variants) */
c906108c 4148
35695fd6
AC
4149#include <fcntl.h>
4150#include <sys/mman.h>
c906108c 4151
35695fd6
AC
4152#if !STDC_HEADERS && !HAVE_STDLIB_H
4153char *malloc ();
4154#endif
c906108c 4155
35695fd6
AC
4156/* This mess was copied from the GNU getpagesize.h. */
4157#if !HAVE_GETPAGESIZE
4158/* Assume that all systems that can run configure have sys/param.h. */
4159# if !HAVE_SYS_PARAM_H
4160# define HAVE_SYS_PARAM_H 1
4161# endif
c906108c 4162
35695fd6
AC
4163# ifdef _SC_PAGESIZE
4164# define getpagesize() sysconf(_SC_PAGESIZE)
4165# else /* no _SC_PAGESIZE */
4166# if HAVE_SYS_PARAM_H
4167# include <sys/param.h>
4168# ifdef EXEC_PAGESIZE
4169# define getpagesize() EXEC_PAGESIZE
4170# else /* no EXEC_PAGESIZE */
4171# ifdef NBPG
4172# define getpagesize() NBPG * CLSIZE
4173# ifndef CLSIZE
4174# define CLSIZE 1
4175# endif /* no CLSIZE */
4176# else /* no NBPG */
4177# ifdef NBPC
4178# define getpagesize() NBPC
4179# else /* no NBPC */
4180# ifdef PAGESIZE
4181# define getpagesize() PAGESIZE
4182# endif /* PAGESIZE */
4183# endif /* no NBPC */
4184# endif /* no NBPG */
4185# endif /* no EXEC_PAGESIZE */
4186# else /* no HAVE_SYS_PARAM_H */
4187# define getpagesize() 8192 /* punt totally */
4188# endif /* no HAVE_SYS_PARAM_H */
4189# endif /* no _SC_PAGESIZE */
c906108c 4190
35695fd6 4191#endif /* no HAVE_GETPAGESIZE */
c906108c 4192
35695fd6
AC
4193int
4194main ()
4195{
4196 char *data, *data2, *data3;
4197 int i, pagesize;
4198 int fd;
c906108c 4199
35695fd6 4200 pagesize = getpagesize ();
b7026657 4201
35695fd6
AC
4202 /* First, make a file with some known garbage in it. */
4203 data = (char *) malloc (pagesize);
4204 if (!data)
4205 exit (1);
4206 for (i = 0; i < pagesize; ++i)
4207 *(data + i) = rand ();
4208 umask (0);
4209 fd = creat ("conftest.mmap", 0600);
4210 if (fd < 0)
4211 exit (1);
4212 if (write (fd, data, pagesize) != pagesize)
4213 exit (1);
4214 close (fd);
b7026657 4215
35695fd6
AC
4216 /* Next, try to mmap the file at a fixed address which already has
4217 something else allocated at it. If we can, also make sure that
4218 we see the same garbage. */
4219 fd = open ("conftest.mmap", O_RDWR);
4220 if (fd < 0)
4221 exit (1);
4222 data2 = (char *) malloc (2 * pagesize);
4223 if (!data2)
4224 exit (1);
4225 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4226 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4227 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4228 exit (1);
4229 for (i = 0; i < pagesize; ++i)
4230 if (*(data + i) != *(data2 + i))
4231 exit (1);
4232
4233 /* Finally, make sure that changes to the mapped area do not
4234 percolate back to the file as seen by read(). (This is a bug on
4235 some variants of i386 svr4.0.) */
4236 for (i = 0; i < pagesize; ++i)
4237 *(data2 + i) = *(data2 + i) + 1;
4238 data3 = (char *) malloc (pagesize);
4239 if (!data3)
4240 exit (1);
4241 if (read (fd, data3, pagesize) != pagesize)
4242 exit (1);
4243 for (i = 0; i < pagesize; ++i)
4244 if (*(data + i) != *(data3 + i))
4245 exit (1);
4246 close (fd);
4247 exit (0);
4248}
4249_ACEOF
4250rm -f conftest$ac_exeext
4251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252 (eval $ac_link) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257 (eval $ac_try) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 ac_cv_func_mmap_fixed_mapped=yes
b7026657 4262else
35695fd6
AC
4263 echo "$as_me: program exited with status $ac_status" >&5
4264echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
b7026657 4266
35695fd6
AC
4267( exit $ac_status )
4268ac_cv_func_mmap_fixed_mapped=no
b7026657 4269fi
35695fd6 4270rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b7026657 4271fi
b7026657 4272fi
35695fd6
AC
4273echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4274echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4275if test $ac_cv_func_mmap_fixed_mapped = yes; then
b7026657 4276
35695fd6
AC
4277cat >>confdefs.h <<\_ACEOF
4278#define HAVE_MMAP 1
4279_ACEOF
c906108c 4280
35695fd6
AC
4281fi
4282rm -f conftest.mmap
c906108c 4283
b7026657
AC
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
c906108c
SS
4295unistd.h values.h sys/param.h
4296do
b7026657
AC
4297as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298if eval "test \"\${$as_ac_Header+set}\" = set"; then
4299 echo "$as_me:$LINENO: checking for $ac_header" >&5
4300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4301if eval "test \"\${$as_ac_Header+set}\" = set"; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4303fi
4304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4305echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4306else
4307 # Is the header compilable?
4308echo "$as_me:$LINENO: checking $ac_header usability" >&5
4309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4310cat >conftest.$ac_ext <<_ACEOF
4311/* confdefs.h. */
4312_ACEOF
4313cat confdefs.h >>conftest.$ac_ext
4314cat >>conftest.$ac_ext <<_ACEOF
4315/* end confdefs.h. */
4316$ac_includes_default
4317#include <$ac_header>
4318_ACEOF
4319rm -f conftest.$ac_objext
4320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } &&
33aa0cbb 4328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330 (eval $ac_try) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336 (eval $ac_try) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_header_compiler=yes
4341else
4342 echo "$as_me: failed program was:" >&5
4343sed 's/^/| /' conftest.$ac_ext >&5
4344
4345ac_header_compiler=no
4346fi
4347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4348echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4349echo "${ECHO_T}$ac_header_compiler" >&6
4350
4351# Is the header present?
4352echo "$as_me:$LINENO: checking $ac_header presence" >&5
4353echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4354cat >conftest.$ac_ext <<_ACEOF
4355/* confdefs.h. */
4356_ACEOF
4357cat confdefs.h >>conftest.$ac_ext
4358cat >>conftest.$ac_ext <<_ACEOF
4359/* end confdefs.h. */
4360#include <$ac_header>
4361_ACEOF
4362if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4364 ac_status=$?
4365 grep -v '^ *+' conftest.er1 >conftest.err
4366 rm -f conftest.er1
4367 cat conftest.err >&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } >/dev/null; then
4370 if test -s conftest.err; then
4371 ac_cpp_err=$ac_c_preproc_warn_flag
4372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4373 else
4374 ac_cpp_err=
4375 fi
4376else
4377 ac_cpp_err=yes
c906108c 4378fi
b7026657
AC
4379if test -z "$ac_cpp_err"; then
4380 ac_header_preproc=yes
4381else
4382 echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385 ac_header_preproc=no
c906108c 4386fi
b7026657
AC
4387rm -f conftest.err conftest.$ac_ext
4388echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4389echo "${ECHO_T}$ac_header_preproc" >&6
4390
4391# So? What about this header?
4392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4393 yes:no: )
4394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4395echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4397echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4398 ac_header_preproc=yes
4399 ;;
4400 no:yes:* )
4401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4402echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4404echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4406echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4408echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4410echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4412echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4413 (
4414 cat <<\_ASBOX
4415## ------------------------------------------ ##
4416## Report this to the AC_PACKAGE_NAME lists. ##
4417## ------------------------------------------ ##
4418_ASBOX
4419 ) |
4420 sed "s/^/$as_me: WARNING: /" >&2
4421 ;;
4422esac
4423echo "$as_me:$LINENO: checking for $ac_header" >&5
4424echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4425if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4427else
b7026657
AC
4428 eval "$as_ac_Header=\$ac_header_preproc"
4429fi
4430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4432
4433fi
4434if test `eval echo '${'$as_ac_Header'}'` = yes; then
4435 cat >>confdefs.h <<_ACEOF
4436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437_ACEOF
4438
c906108c 4439fi
b7026657 4440
c906108c
SS
4441done
4442
b7026657
AC
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
c906108c
SS
4454__argz_count __argz_stringify __argz_next
4455do
b7026657
AC
4456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4457echo "$as_me:$LINENO: checking for $ac_func" >&5
4458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4459if eval "test \"\${$as_ac_var+set}\" = set"; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462 cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4470#define $ac_func innocuous_$ac_func
4471
c906108c 4472/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4473 which can conflict with char $ac_func (); below.
4474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475 <limits.h> exists even on freestanding compilers. */
4476
4477#ifdef __STDC__
4478# include <limits.h>
4479#else
4480# include <assert.h>
4481#endif
c906108c 4482
b7026657 4483#undef $ac_func
c906108c 4484
b7026657
AC
4485/* Override any gcc2 internal prototype to avoid an error. */
4486#ifdef __cplusplus
4487extern "C"
4488{
4489#endif
4490/* We use char because int might match the return type of a gcc2
4491 builtin and then its argument prototype would still apply. */
4492char $ac_func ();
c906108c
SS
4493/* The GNU C library defines this for functions which it implements
4494 to always fail with ENOSYS. Some functions are actually named
4495 something starting with __ and the normal name is an alias. */
4496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4497choke me
4498#else
b7026657
AC
4499char (*f) () = $ac_func;
4500#endif
4501#ifdef __cplusplus
4502}
c906108c
SS
4503#endif
4504
b7026657
AC
4505int
4506main ()
4507{
4508return f != $ac_func;
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513rm -f conftest.$ac_objext conftest$ac_exeext
4514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4515 (eval $ac_link) 2>conftest.er1
4516 ac_status=$?
4517 grep -v '^ *+' conftest.er1 >conftest.err
4518 rm -f conftest.er1
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
33aa0cbb 4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524 (eval $ac_try) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest$ac_exeext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530 (eval $ac_try) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 eval "$as_ac_var=yes"
4535else
4536 echo "$as_me: failed program was:" >&5
4537sed 's/^/| /' conftest.$ac_ext >&5
4538
4539eval "$as_ac_var=no"
4540fi
4541rm -f conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext conftest.$ac_ext
4543fi
4544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4546if test `eval echo '${'$as_ac_var'}'` = yes; then
4547 cat >>confdefs.h <<_ACEOF
4548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4549_ACEOF
c906108c 4550
c906108c
SS
4551fi
4552done
4553
4554
4555 if test "${ac_cv_func_stpcpy+set}" != "set"; then
b7026657
AC
4556
4557for ac_func in stpcpy
c906108c 4558do
b7026657
AC
4559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560echo "$as_me:$LINENO: checking for $ac_func" >&5
4561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564else
4565 cat >conftest.$ac_ext <<_ACEOF
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
4571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573#define $ac_func innocuous_$ac_func
4574
c906108c 4575/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580#ifdef __STDC__
4581# include <limits.h>
4582#else
4583# include <assert.h>
4584#endif
c906108c 4585
b7026657 4586#undef $ac_func
c906108c 4587
b7026657
AC
4588/* Override any gcc2 internal prototype to avoid an error. */
4589#ifdef __cplusplus
4590extern "C"
4591{
4592#endif
4593/* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595char $ac_func ();
c906108c
SS
4596/* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600choke me
4601#else
b7026657
AC
4602char (*f) () = $ac_func;
4603#endif
4604#ifdef __cplusplus
4605}
c906108c
SS
4606#endif
4607
b7026657
AC
4608int
4609main ()
4610{
4611return f != $ac_func;
4612 ;
4613 return 0;
4614}
4615_ACEOF
4616rm -f conftest.$ac_objext conftest$ac_exeext
4617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
33aa0cbb 4625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627 (eval $ac_try) 2>&5
4628 ac_status=$?
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; } &&
4631 { ac_try='test -s conftest$ac_exeext'
4632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633 (eval $ac_try) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }; }; then
4637 eval "$as_ac_var=yes"
4638else
4639 echo "$as_me: failed program was:" >&5
4640sed 's/^/| /' conftest.$ac_ext >&5
4641
4642eval "$as_ac_var=no"
4643fi
4644rm -f conftest.err conftest.$ac_objext \
4645 conftest$ac_exeext conftest.$ac_ext
4646fi
4647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4649if test `eval echo '${'$as_ac_var'}'` = yes; then
4650 cat >>confdefs.h <<_ACEOF
4651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4652_ACEOF
4653
c906108c
SS
4654fi
4655done
4656
4657 fi
4658 if test "${ac_cv_func_stpcpy}" = "yes"; then
2b193c4a
MK
4659
4660cat >>confdefs.h <<\_ACEOF
c906108c 4661#define HAVE_STPCPY 1
b7026657 4662_ACEOF
c906108c
SS
4663
4664 fi
4665
4666 if test $ac_cv_header_locale_h = yes; then
b7026657
AC
4667 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4668echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4669if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
4672 cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
c906108c 4678#include <locale.h>
b7026657
AC
4679int
4680main ()
4681{
c906108c 4682return LC_MESSAGES
b7026657
AC
4683 ;
4684 return 0;
4685}
4686_ACEOF
4687rm -f conftest.$ac_objext conftest$ac_exeext
4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689 (eval $ac_link) 2>conftest.er1
4690 ac_status=$?
4691 grep -v '^ *+' conftest.er1 >conftest.err
4692 rm -f conftest.er1
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
33aa0cbb 4696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest$ac_exeext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
c906108c
SS
4708 am_cv_val_LC_MESSAGES=yes
4709else
b7026657
AC
4710 echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713am_cv_val_LC_MESSAGES=no
c906108c 4714fi
b7026657
AC
4715rm -f conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
c906108c 4717fi
b7026657
AC
4718echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4719echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
c906108c 4720 if test $am_cv_val_LC_MESSAGES = yes; then
2b193c4a
MK
4721
4722cat >>confdefs.h <<\_ACEOF
c906108c 4723#define HAVE_LC_MESSAGES 1
b7026657 4724_ACEOF
c906108c
SS
4725
4726 fi
4727 fi
b7026657
AC
4728 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4729echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
c906108c
SS
4730 # Check whether --enable-nls or --disable-nls was given.
4731if test "${enable_nls+set}" = set; then
4732 enableval="$enable_nls"
4733 USE_NLS=$enableval
4734else
4735 USE_NLS=yes
b7026657
AC
4736fi;
4737 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4738echo "${ECHO_T}$USE_NLS" >&6
c906108c 4739
c906108c
SS
4740
4741 USE_INCLUDED_LIBINTL=no
4742
4743 if test "$USE_NLS" = "yes"; then
b7026657
AC
4744 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4745echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
c906108c 4746
b7026657 4747# Check whether --with-included-gettext or --without-included-gettext was given.
c906108c
SS
4748if test "${with_included_gettext+set}" = set; then
4749 withval="$with_included_gettext"
4750 nls_cv_force_use_gnu_gettext=$withval
4751else
4752 nls_cv_force_use_gnu_gettext=no
b7026657
AC
4753fi;
4754 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4755echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
c906108c
SS
4756
4757 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4758 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4759 nls_cv_header_intl=
4760 nls_cv_header_libgt=
2b193c4a 4761 CATOBJEXT=
c906108c 4762
b7026657
AC
4763 if test "${ac_cv_header_libintl_h+set}" = set; then
4764 echo "$as_me:$LINENO: checking for libintl.h" >&5
4765echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4766if test "${ac_cv_header_libintl_h+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4768fi
4769echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4770echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4771else
4772 # Is the header compilable?
4773echo "$as_me:$LINENO: checking libintl.h usability" >&5
4774echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4775cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
4781$ac_includes_default
4782#include <libintl.h>
4783_ACEOF
4784rm -f conftest.$ac_objext
4785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
33aa0cbb 4793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4795 (eval $ac_try) 2>&5
4796 ac_status=$?
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; } &&
4799 { ac_try='test -s conftest.$ac_objext'
4800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4801 (eval $ac_try) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); }; }; then
4805 ac_header_compiler=yes
4806else
4807 echo "$as_me: failed program was:" >&5
4808sed 's/^/| /' conftest.$ac_ext >&5
4809
4810ac_header_compiler=no
4811fi
4812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4814echo "${ECHO_T}$ac_header_compiler" >&6
4815
4816# Is the header present?
4817echo "$as_me:$LINENO: checking libintl.h presence" >&5
4818echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4819cat >conftest.$ac_ext <<_ACEOF
4820/* confdefs.h. */
4821_ACEOF
4822cat confdefs.h >>conftest.$ac_ext
4823cat >>conftest.$ac_ext <<_ACEOF
4824/* end confdefs.h. */
c906108c 4825#include <libintl.h>
b7026657
AC
4826_ACEOF
4827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null; then
4835 if test -s conftest.err; then
4836 ac_cpp_err=$ac_c_preproc_warn_flag
4837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4838 else
4839 ac_cpp_err=
4840 fi
4841else
4842 ac_cpp_err=yes
c906108c 4843fi
b7026657
AC
4844if test -z "$ac_cpp_err"; then
4845 ac_header_preproc=yes
4846else
4847 echo "$as_me: failed program was:" >&5
4848sed 's/^/| /' conftest.$ac_ext >&5
4849
4850 ac_header_preproc=no
4851fi
4852rm -f conftest.err conftest.$ac_ext
4853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4854echo "${ECHO_T}$ac_header_preproc" >&6
4855
4856# So? What about this header?
4857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4858 yes:no: )
4859 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4860echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4861 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4862echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4863 ac_header_preproc=yes
4864 ;;
4865 no:yes:* )
4866 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4867echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4868 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4869echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4870 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4871echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4872 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4873echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4875echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4876 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4877echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4878 (
4879 cat <<\_ASBOX
4880## ------------------------------------------ ##
4881## Report this to the AC_PACKAGE_NAME lists. ##
4882## ------------------------------------------ ##
4883_ASBOX
4884 ) |
4885 sed "s/^/$as_me: WARNING: /" >&2
4886 ;;
4887esac
4888echo "$as_me:$LINENO: checking for libintl.h" >&5
4889echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4890if test "${ac_cv_header_libintl_h+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 ac_cv_header_libintl_h=$ac_header_preproc
c906108c 4894fi
b7026657
AC
4895echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4896echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4897
4898fi
4899if test $ac_cv_header_libintl_h = yes; then
4900 echo "$as_me:$LINENO: checking for gettext in libc" >&5
4901echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
4902if test "${gt_cv_func_gettext_libc+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4904else
b7026657
AC
4905 cat >conftest.$ac_ext <<_ACEOF
4906/* confdefs.h. */
4907_ACEOF
4908cat confdefs.h >>conftest.$ac_ext
4909cat >>conftest.$ac_ext <<_ACEOF
4910/* end confdefs.h. */
c906108c 4911#include <libintl.h>
b7026657
AC
4912int
4913main ()
4914{
c906108c 4915return (int) gettext ("")
b7026657
AC
4916 ;
4917 return 0;
4918}
4919_ACEOF
4920rm -f conftest.$ac_objext conftest$ac_exeext
4921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>conftest.er1
4923 ac_status=$?
4924 grep -v '^ *+' conftest.er1 >conftest.err
4925 rm -f conftest.er1
4926 cat conftest.err >&5
4927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4928 (exit $ac_status); } &&
33aa0cbb 4929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4931 (eval $ac_try) 2>&5
4932 ac_status=$?
4933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934 (exit $ac_status); }; } &&
4935 { ac_try='test -s conftest$ac_exeext'
4936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
c906108c
SS
4941 gt_cv_func_gettext_libc=yes
4942else
b7026657
AC
4943 echo "$as_me: failed program was:" >&5
4944sed 's/^/| /' conftest.$ac_ext >&5
4945
4946gt_cv_func_gettext_libc=no
c906108c 4947fi
b7026657
AC
4948rm -f conftest.err conftest.$ac_objext \
4949 conftest$ac_exeext conftest.$ac_ext
c906108c 4950fi
b7026657
AC
4951echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
4952echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
c906108c
SS
4953
4954 if test "$gt_cv_func_gettext_libc" != "yes"; then
b7026657
AC
4955 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
4956echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
4957if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4959else
b7026657 4960 ac_check_lib_save_LIBS=$LIBS
c906108c 4961LIBS="-lintl $LIBS"
b7026657
AC
4962cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h. */
4968
c906108c 4969/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
4970#ifdef __cplusplus
4971extern "C"
4972#endif
c906108c 4973/* We use char because int might match the return type of a gcc2
b7026657
AC
4974 builtin and then its argument prototype would still apply. */
4975char bindtextdomain ();
4976int
4977main ()
4978{
4979bindtextdomain ();
4980 ;
4981 return 0;
4982}
4983_ACEOF
4984rm -f conftest.$ac_objext conftest$ac_exeext
4985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4986 (eval $ac_link) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
33aa0cbb 4993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_lib_intl_bindtextdomain=yes
5006else
5007 echo "$as_me: failed program was:" >&5
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
5010ac_cv_lib_intl_bindtextdomain=no
5011fi
5012rm -f conftest.err conftest.$ac_objext \
5013 conftest$ac_exeext conftest.$ac_ext
5014LIBS=$ac_check_lib_save_LIBS
5015fi
5016echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5017echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5018if test $ac_cv_lib_intl_bindtextdomain = yes; then
5019 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5020echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5021if test "${gt_cv_func_gettext_libintl+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 cat >conftest.$ac_ext <<_ACEOF
5025/* confdefs.h. */
5026_ACEOF
5027cat confdefs.h >>conftest.$ac_ext
5028cat >>conftest.$ac_ext <<_ACEOF
5029/* end confdefs.h. */
c906108c 5030
b7026657
AC
5031int
5032main ()
5033{
c906108c 5034return (int) gettext ("")
b7026657
AC
5035 ;
5036 return 0;
5037}
5038_ACEOF
5039rm -f conftest.$ac_objext conftest$ac_exeext
5040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5041 (eval $ac_link) 2>conftest.er1
5042 ac_status=$?
5043 grep -v '^ *+' conftest.er1 >conftest.err
5044 rm -f conftest.er1
5045 cat conftest.err >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); } &&
33aa0cbb 5048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; } &&
5054 { ac_try='test -s conftest$ac_exeext'
5055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056 (eval $ac_try) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; }; then
c906108c
SS
5060 gt_cv_func_gettext_libintl=yes
5061else
b7026657
AC
5062 echo "$as_me: failed program was:" >&5
5063sed 's/^/| /' conftest.$ac_ext >&5
5064
5065gt_cv_func_gettext_libintl=no
c906108c 5066fi
b7026657
AC
5067rm -f conftest.err conftest.$ac_objext \
5068 conftest$ac_exeext conftest.$ac_ext
c906108c 5069fi
b7026657
AC
5070echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5071echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
c906108c
SS
5072fi
5073
5074 fi
5075
5076 if test "$gt_cv_func_gettext_libc" = "yes" \
5077 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2b193c4a
MK
5078
5079cat >>confdefs.h <<\_ACEOF
c906108c 5080#define HAVE_GETTEXT 1
b7026657 5081_ACEOF
c906108c
SS
5082
5083 # Extract the first word of "msgfmt", so it can be a program name with args.
5084set dummy msgfmt; ac_word=$2
b7026657
AC
5085echo "$as_me:$LINENO: checking for $ac_word" >&5
5086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087if test "${ac_cv_path_MSGFMT+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5089else
5090 case "$MSGFMT" in
5091 /*)
5092 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5093 ;;
5094 *)
5095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5096 for ac_dir in $PATH; do
5097 test -z "$ac_dir" && ac_dir=.
5098 if test -f $ac_dir/$ac_word; then
5099 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5100 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5101 break
5102 fi
5103 fi
5104 done
5105 IFS="$ac_save_ifs"
5106 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5107 ;;
5108esac
5109fi
5110MSGFMT="$ac_cv_path_MSGFMT"
5111if test -n "$MSGFMT"; then
b7026657
AC
5112 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5113echo "${ECHO_T}$MSGFMT" >&6
c906108c 5114else
b7026657
AC
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
c906108c
SS
5117fi
5118 if test "$MSGFMT" != "no"; then
b7026657
AC
5119
5120for ac_func in dcgettext
c906108c 5121do
b7026657
AC
5122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5123echo "$as_me:$LINENO: checking for $ac_func" >&5
5124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5125if eval "test \"\${$as_ac_var+set}\" = set"; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 cat >conftest.$ac_ext <<_ACEOF
5129/* confdefs.h. */
5130_ACEOF
5131cat confdefs.h >>conftest.$ac_ext
5132cat >>conftest.$ac_ext <<_ACEOF
5133/* end confdefs.h. */
5134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5136#define $ac_func innocuous_$ac_func
5137
c906108c 5138/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
5139 which can conflict with char $ac_func (); below.
5140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141 <limits.h> exists even on freestanding compilers. */
5142
5143#ifdef __STDC__
5144# include <limits.h>
5145#else
5146# include <assert.h>
5147#endif
c906108c 5148
b7026657 5149#undef $ac_func
c906108c 5150
b7026657
AC
5151/* Override any gcc2 internal prototype to avoid an error. */
5152#ifdef __cplusplus
5153extern "C"
5154{
5155#endif
5156/* We use char because int might match the return type of a gcc2
5157 builtin and then its argument prototype would still apply. */
5158char $ac_func ();
c906108c
SS
5159/* The GNU C library defines this for functions which it implements
5160 to always fail with ENOSYS. Some functions are actually named
5161 something starting with __ and the normal name is an alias. */
5162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5163choke me
5164#else
b7026657
AC
5165char (*f) () = $ac_func;
5166#endif
5167#ifdef __cplusplus
5168}
c906108c
SS
5169#endif
5170
b7026657
AC
5171int
5172main ()
5173{
5174return f != $ac_func;
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179rm -f conftest.$ac_objext conftest$ac_exeext
5180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
33aa0cbb 5188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
5189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190 (eval $ac_try) 2>&5
5191 ac_status=$?
5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193 (exit $ac_status); }; } &&
5194 { ac_try='test -s conftest$ac_exeext'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 eval "$as_ac_var=yes"
5201else
5202 echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205eval "$as_ac_var=no"
5206fi
5207rm -f conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209fi
5210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5212if test `eval echo '${'$as_ac_var'}'` = yes; then
5213 cat >>confdefs.h <<_ACEOF
5214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5215_ACEOF
c906108c 5216
c906108c
SS
5217fi
5218done
5219
5220 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5221set dummy gmsgfmt; ac_word=$2
b7026657
AC
5222echo "$as_me:$LINENO: checking for $ac_word" >&5
5223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224if test "${ac_cv_path_GMSGFMT+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5226else
b7026657
AC
5227 case $GMSGFMT in
5228 [\\/]* | ?:[\\/]*)
c906108c
SS
5229 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5230 ;;
c906108c 5231 *)
b7026657
AC
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233for as_dir in $PATH
5234do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_exec_ext in '' $ac_executable_extensions; do
5238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5239 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 break 2
5242 fi
5243done
5244done
5245
c906108c
SS
5246 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5247 ;;
5248esac
5249fi
b7026657
AC
5250GMSGFMT=$ac_cv_path_GMSGFMT
5251
c906108c 5252if test -n "$GMSGFMT"; then
b7026657
AC
5253 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5254echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5255else
b7026657
AC
5256 echo "$as_me:$LINENO: result: no" >&5
5257echo "${ECHO_T}no" >&6
c906108c
SS
5258fi
5259
5260 # Extract the first word of "xgettext", so it can be a program name with args.
5261set dummy xgettext; ac_word=$2
b7026657
AC
5262echo "$as_me:$LINENO: checking for $ac_word" >&5
5263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5264if test "${ac_cv_path_XGETTEXT+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5266else
5267 case "$XGETTEXT" in
5268 /*)
5269 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5270 ;;
5271 *)
5272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5273 for ac_dir in $PATH; do
5274 test -z "$ac_dir" && ac_dir=.
5275 if test -f $ac_dir/$ac_word; then
5276 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5277 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5278 break
5279 fi
5280 fi
5281 done
5282 IFS="$ac_save_ifs"
5283 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5284 ;;
5285esac
5286fi
5287XGETTEXT="$ac_cv_path_XGETTEXT"
5288if test -n "$XGETTEXT"; then
b7026657
AC
5289 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5290echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5291else
b7026657
AC
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
c906108c
SS
5294fi
5295
b7026657
AC
5296 cat >conftest.$ac_ext <<_ACEOF
5297/* confdefs.h. */
5298_ACEOF
5299cat confdefs.h >>conftest.$ac_ext
5300cat >>conftest.$ac_ext <<_ACEOF
5301/* end confdefs.h. */
c906108c 5302
b7026657
AC
5303int
5304main ()
5305{
c906108c
SS
5306extern int _nl_msg_cat_cntr;
5307 return _nl_msg_cat_cntr
b7026657
AC
5308 ;
5309 return 0;
5310}
5311_ACEOF
5312rm -f conftest.$ac_objext conftest$ac_exeext
5313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5314 (eval $ac_link) 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } &&
33aa0cbb 5321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
5322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5323 (eval $ac_try) 2>&5
5324 ac_status=$?
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); }; } &&
5327 { ac_try='test -s conftest$ac_exeext'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 (eval $ac_try) 2>&5
5330 ac_status=$?
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; }; then
c906108c
SS
5333 CATOBJEXT=.gmo
5334 DATADIRNAME=share
5335else
b7026657
AC
5336 echo "$as_me: failed program was:" >&5
5337sed 's/^/| /' conftest.$ac_ext >&5
5338
5339CATOBJEXT=.mo
c906108c
SS
5340 DATADIRNAME=lib
5341fi
b7026657
AC
5342rm -f conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
c906108c
SS
5344 INSTOBJEXT=.mo
5345 fi
5346 fi
b7026657 5347
c906108c
SS
5348fi
5349
5350
b7026657
AC
5351
5352
2b193c4a
MK
5353 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5354 # Neither gettext nor catgets in included in the C library.
5355 # Fall back on GNU gettext library (assuming it is present).
5356 nls_cv_use_gnu_gettext=yes
c906108c
SS
5357 fi
5358 fi
5359
5360 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5361 INTLOBJS="\$(GETTOBJS)"
5362 # Extract the first word of "msgfmt", so it can be a program name with args.
5363set dummy msgfmt; ac_word=$2
b7026657
AC
5364echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5366if test "${ac_cv_path_MSGFMT+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5368else
5369 case "$MSGFMT" in
5370 /*)
5371 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5372 ;;
5373 *)
5374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5375 for ac_dir in $PATH; do
5376 test -z "$ac_dir" && ac_dir=.
5377 if test -f $ac_dir/$ac_word; then
5378 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5379 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5380 break
5381 fi
5382 fi
5383 done
5384 IFS="$ac_save_ifs"
5385 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5386 ;;
5387esac
5388fi
5389MSGFMT="$ac_cv_path_MSGFMT"
5390if test -n "$MSGFMT"; then
b7026657
AC
5391 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5392echo "${ECHO_T}$MSGFMT" >&6
c906108c 5393else
b7026657
AC
5394 echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6
c906108c
SS
5396fi
5397
5398 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5399set dummy gmsgfmt; ac_word=$2
b7026657
AC
5400echo "$as_me:$LINENO: checking for $ac_word" >&5
5401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5402if test "${ac_cv_path_GMSGFMT+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5404else
b7026657
AC
5405 case $GMSGFMT in
5406 [\\/]* | ?:[\\/]*)
c906108c
SS
5407 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5408 ;;
c906108c 5409 *)
b7026657
AC
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411for as_dir in $PATH
5412do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421done
5422done
5423
c906108c
SS
5424 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5425 ;;
5426esac
5427fi
b7026657
AC
5428GMSGFMT=$ac_cv_path_GMSGFMT
5429
c906108c 5430if test -n "$GMSGFMT"; then
b7026657
AC
5431 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5432echo "${ECHO_T}$GMSGFMT" >&6
c906108c 5433else
b7026657
AC
5434 echo "$as_me:$LINENO: result: no" >&5
5435echo "${ECHO_T}no" >&6
c906108c
SS
5436fi
5437
5438 # Extract the first word of "xgettext", so it can be a program name with args.
5439set dummy xgettext; ac_word=$2
b7026657
AC
5440echo "$as_me:$LINENO: checking for $ac_word" >&5
5441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5442if test "${ac_cv_path_XGETTEXT+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
5444else
5445 case "$XGETTEXT" in
5446 /*)
5447 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5448 ;;
5449 *)
5450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5451 for ac_dir in $PATH; do
5452 test -z "$ac_dir" && ac_dir=.
5453 if test -f $ac_dir/$ac_word; then
5454 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5455 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5456 break
5457 fi
5458 fi
5459 done
5460 IFS="$ac_save_ifs"
5461 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5462 ;;
5463esac
5464fi
5465XGETTEXT="$ac_cv_path_XGETTEXT"
5466if test -n "$XGETTEXT"; then
b7026657
AC
5467 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5468echo "${ECHO_T}$XGETTEXT" >&6
c906108c 5469else
b7026657
AC
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
c906108c
SS
5472fi
5473
b7026657 5474
c906108c
SS
5475 USE_INCLUDED_LIBINTL=yes
5476 CATOBJEXT=.gmo
5477 INSTOBJEXT=.mo
5478 DATADIRNAME=share
5479 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5480 INTLLIBS=$INTLDEPS
5481 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5482 nls_cv_header_intl=libintl.h
5483 nls_cv_header_libgt=libgettext.h
5484 fi
5485
5486 if test "$XGETTEXT" != ":"; then
5487 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5488 : ;
5489 else
b7026657
AC
5490 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5491echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
c906108c
SS
5492 XGETTEXT=":"
5493 fi
5494 fi
5495
5496 # We need to process the po/ directory.
5497 POSUB=po
5498 else
5499 DATADIRNAME=share
5500 nls_cv_header_intl=libintl.h
5501 nls_cv_header_libgt=libgettext.h
5502 fi
5503
5504 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5505 # because some of the sources are only built for this goal.
5506 if test "$PACKAGE" = gettext; then
5507 USE_NLS=yes
5508 USE_INCLUDED_LIBINTL=yes
5509 fi
5510
5511 for lang in $ALL_LINGUAS; do
5512 GMOFILES="$GMOFILES $lang.gmo"
5513 POFILES="$POFILES $lang.po"
5514 done
5515
b7026657
AC
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
2b193c4a
MK
5527 if test "x$CATOBJEXT" != "x"; then
5528
5529cat >>confdefs.h <<\_ACEOF
5530#define ENABLE_NLS 1
5531_ACEOF
5532
5533 fi
b7026657 5534
c906108c
SS
5535
5536 if test "x$CATOBJEXT" != "x"; then
5537 if test "x$ALL_LINGUAS" = "x"; then
5538 LINGUAS=
5539 else
b7026657
AC
5540 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5541echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
c906108c
SS
5542 NEW_LINGUAS=
5543 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5544 case "$ALL_LINGUAS" in
5545 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5546 esac
5547 done
5548 LINGUAS=$NEW_LINGUAS
b7026657
AC
5549 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5550echo "${ECHO_T}$LINGUAS" >&6
c906108c
SS
5551 fi
5552
5553 if test -n "$LINGUAS"; then
5554 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5555 fi
5556 fi
5557
5558 if test $ac_cv_header_locale_h = yes; then
5559 INCLUDE_LOCALE_H="#include <locale.h>"
5560 else
5561 INCLUDE_LOCALE_H="\
5562/* The system does not provide the header <locale.h>. Take care yourself. */"
5563 fi
b7026657 5564
c906108c
SS
5565
5566 if test -f $srcdir/po2tbl.sed.in; then
5567 if test "$CATOBJEXT" = ".cat"; then
b7026657
AC
5568 if test "${ac_cv_header_linux_version_h+set}" = set; then
5569 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5570echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5571if test "${ac_cv_header_linux_version_h+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573fi
5574echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5575echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5576else
5577 # Is the header compilable?
5578echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5579echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5580cat >conftest.$ac_ext <<_ACEOF
5581/* confdefs.h. */
5582_ACEOF
5583cat confdefs.h >>conftest.$ac_ext
5584cat >>conftest.$ac_ext <<_ACEOF
5585/* end confdefs.h. */
5586$ac_includes_default
5587#include <linux/version.h>
5588_ACEOF
5589rm -f conftest.$ac_objext
5590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
33aa0cbb 5598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_header_compiler=yes
5611else
5612 echo "$as_me: failed program was:" >&5
5613sed 's/^/| /' conftest.$ac_ext >&5
5614
5615ac_header_compiler=no
5616fi
5617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5618echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5619echo "${ECHO_T}$ac_header_compiler" >&6
5620
5621# Is the header present?
5622echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5623echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5624cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h. */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h. */
c906108c 5630#include <linux/version.h>
b7026657
AC
5631_ACEOF
5632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev/null; then
5640 if test -s conftest.err; then
5641 ac_cpp_err=$ac_c_preproc_warn_flag
5642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5643 else
5644 ac_cpp_err=
5645 fi
5646else
5647 ac_cpp_err=yes
c906108c 5648fi
b7026657
AC
5649if test -z "$ac_cpp_err"; then
5650 ac_header_preproc=yes
5651else
5652 echo "$as_me: failed program was:" >&5
5653sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_header_preproc=no
5656fi
5657rm -f conftest.err conftest.$ac_ext
5658echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5659echo "${ECHO_T}$ac_header_preproc" >&6
5660
5661# So? What about this header?
5662case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5663 yes:no: )
5664 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5665echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5667echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5668 ac_header_preproc=yes
5669 ;;
5670 no:yes:* )
5671 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5672echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5674echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5676echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5677 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5678echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5679 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5680echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5681 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5682echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5683 (
5684 cat <<\_ASBOX
5685## ------------------------------------------ ##
5686## Report this to the AC_PACKAGE_NAME lists. ##
5687## ------------------------------------------ ##
5688_ASBOX
5689 ) |
5690 sed "s/^/$as_me: WARNING: /" >&2
5691 ;;
5692esac
5693echo "$as_me:$LINENO: checking for linux/version.h" >&5
5694echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5695if test "${ac_cv_header_linux_version_h+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698 ac_cv_header_linux_version_h=$ac_header_preproc
c906108c 5699fi
b7026657
AC
5700echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5701echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5702
5703fi
5704if test $ac_cv_header_linux_version_h = yes; then
c906108c
SS
5705 msgformat=linux
5706else
b7026657 5707 msgformat=xopen
c906108c
SS
5708fi
5709
5710
b7026657 5711
c906108c
SS
5712 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5713 fi
5714 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5715 $srcdir/po2tbl.sed.in > po2tbl.sed
5716 fi
5717
5718 if test "$PACKAGE" = "gettext"; then
5719 GT_NO="#NO#"
5720 GT_YES=
5721 else
5722 GT_NO=
5723 GT_YES="#YES#"
5724 fi
b7026657
AC
5725
5726
c906108c
SS
5727
5728 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
b7026657 5729
c906108c
SS
5730
5731 l=
b7026657 5732
c906108c 5733
2b193c4a 5734 if test -f $srcdir/po/POTFILES.in; then
c906108c
SS
5735 test -d po || mkdir po
5736 if test "x$srcdir" != "x."; then
5737 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5738 posrcprefix="$srcdir/"
5739 else
5740 posrcprefix="../$srcdir/"
5741 fi
5742 else
5743 posrcprefix="../"
5744 fi
5745 rm -f po/POTFILES
5746 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5747 < $srcdir/po/POTFILES.in > po/POTFILES
5748 fi
b7026657 5749
c906108c
SS
5750
5751# Check for common headers.
5752# FIXME: Seems to me this can cause problems for i386-windows hosts.
5753# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
b7026657
AC
5754
5755
5756
5757
5758
5759for ac_header in stdlib.h string.h strings.h unistd.h time.h
c906108c 5760do
b7026657
AC
5761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo "$as_me:$LINENO: checking for $ac_header" >&5
5764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5765if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767fi
5768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770else
5771 # Is the header compilable?
5772echo "$as_me:$LINENO: checking $ac_header usability" >&5
5773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5774cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h. */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h. */
5780$ac_includes_default
5781#include <$ac_header>
5782_ACEOF
5783rm -f conftest.$ac_objext
5784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
33aa0cbb 5792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest.$ac_objext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_header_compiler=yes
5805else
5806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809ac_header_compiler=no
5810fi
5811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813echo "${ECHO_T}$ac_header_compiler" >&6
5814
5815# Is the header present?
5816echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824#include <$ac_header>
5825_ACEOF
5826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5828 ac_status=$?
5829 grep -v '^ *+' conftest.er1 >conftest.err
5830 rm -f conftest.er1
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } >/dev/null; then
5834 if test -s conftest.err; then
5835 ac_cpp_err=$ac_c_preproc_warn_flag
5836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5837 else
5838 ac_cpp_err=
5839 fi
5840else
5841 ac_cpp_err=yes
c906108c 5842fi
b7026657
AC
5843if test -z "$ac_cpp_err"; then
5844 ac_header_preproc=yes
5845else
5846 echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_header_preproc=no
c906108c 5850fi
b7026657
AC
5851rm -f conftest.err conftest.$ac_ext
5852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853echo "${ECHO_T}$ac_header_preproc" >&6
5854
5855# So? What about this header?
5856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 yes:no: )
5858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5863 ;;
5864 no:yes:* )
5865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877 (
5878 cat <<\_ASBOX
5879## ------------------------------------------ ##
5880## Report this to the AC_PACKAGE_NAME lists. ##
5881## ------------------------------------------ ##
5882_ASBOX
5883 ) |
5884 sed "s/^/$as_me: WARNING: /" >&2
5885 ;;
5886esac
5887echo "$as_me:$LINENO: checking for $ac_header" >&5
5888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5889if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 5891else
b7026657
AC
5892 eval "$as_ac_Header=\$ac_header_preproc"
5893fi
5894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5896
5897fi
5898if test `eval echo '${'$as_ac_Header'}'` = yes; then
5899 cat >>confdefs.h <<_ACEOF
5900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5901_ACEOF
5902
c906108c 5903fi
b7026657 5904
c906108c
SS
5905done
5906
b7026657
AC
5907
5908
5909for ac_header in sys/time.h sys/resource.h
c906108c 5910do
b7026657
AC
5911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912if eval "test \"\${$as_ac_Header+set}\" = set"; then
5913 echo "$as_me:$LINENO: checking for $ac_header" >&5
5914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5915if eval "test \"\${$as_ac_Header+set}\" = set"; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917fi
5918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5920else
5921 # Is the header compilable?
5922echo "$as_me:$LINENO: checking $ac_header usability" >&5
5923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5924cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h. */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h. */
5930$ac_includes_default
5931#include <$ac_header>
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5935 (eval $ac_compile) 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
33aa0cbb 5942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944 (eval $ac_try) 2>&5
5945 ac_status=$?
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; } &&
5948 { ac_try='test -s conftest.$ac_objext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5950 (eval $ac_try) 2>&5
5951 ac_status=$?
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5954 ac_header_compiler=yes
5955else
5956 echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959ac_header_compiler=no
5960fi
5961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5962echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5963echo "${ECHO_T}$ac_header_compiler" >&6
5964
5965# Is the header present?
5966echo "$as_me:$LINENO: checking $ac_header presence" >&5
5967echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5968cat >conftest.$ac_ext <<_ACEOF
5969/* confdefs.h. */
5970_ACEOF
5971cat confdefs.h >>conftest.$ac_ext
5972cat >>conftest.$ac_ext <<_ACEOF
5973/* end confdefs.h. */
5974#include <$ac_header>
5975_ACEOF
5976if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } >/dev/null; then
5984 if test -s conftest.err; then
5985 ac_cpp_err=$ac_c_preproc_warn_flag
5986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5987 else
5988 ac_cpp_err=
5989 fi
5990else
5991 ac_cpp_err=yes
c906108c 5992fi
b7026657
AC
5993if test -z "$ac_cpp_err"; then
5994 ac_header_preproc=yes
5995else
5996 echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_header_preproc=no
c906108c 6000fi
b7026657
AC
6001rm -f conftest.err conftest.$ac_ext
6002echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6003echo "${ECHO_T}$ac_header_preproc" >&6
6004
6005# So? What about this header?
6006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6007 yes:no: )
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6009echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6011echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6012 ac_header_preproc=yes
6013 ;;
6014 no:yes:* )
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6016echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6018echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6020echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6022echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6024echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6026echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6027 (
6028 cat <<\_ASBOX
6029## ------------------------------------------ ##
6030## Report this to the AC_PACKAGE_NAME lists. ##
6031## ------------------------------------------ ##
6032_ASBOX
6033 ) |
6034 sed "s/^/$as_me: WARNING: /" >&2
6035 ;;
6036esac
6037echo "$as_me:$LINENO: checking for $ac_header" >&5
6038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6039if eval "test \"\${$as_ac_Header+set}\" = set"; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6041else
b7026657
AC
6042 eval "$as_ac_Header=\$ac_header_preproc"
6043fi
6044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6046
6047fi
6048if test `eval echo '${'$as_ac_Header'}'` = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051_ACEOF
6052
c906108c 6053fi
b7026657 6054
c906108c
SS
6055done
6056
b7026657
AC
6057
6058
6059for ac_header in fcntl.h fpu_control.h
c906108c 6060do
b7026657
AC
6061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6062if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo "$as_me:$LINENO: checking for $ac_header" >&5
6064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6065if eval "test \"\${$as_ac_Header+set}\" = set"; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067fi
6068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6070else
6071 # Is the header compilable?
6072echo "$as_me:$LINENO: checking $ac_header usability" >&5
6073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6074cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h. */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */
6080$ac_includes_default
6081#include <$ac_header>
6082_ACEOF
6083rm -f conftest.$ac_objext
6084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6085 (eval $ac_compile) 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
33aa0cbb 6092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 ac_header_compiler=yes
6105else
6106 echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109ac_header_compiler=no
6110fi
6111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6113echo "${ECHO_T}$ac_header_compiler" >&6
6114
6115# Is the header present?
6116echo "$as_me:$LINENO: checking $ac_header presence" >&5
6117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6118cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h. */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h. */
6124#include <$ac_header>
6125_ACEOF
6126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6128 ac_status=$?
6129 grep -v '^ *+' conftest.er1 >conftest.err
6130 rm -f conftest.er1
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } >/dev/null; then
6134 if test -s conftest.err; then
6135 ac_cpp_err=$ac_c_preproc_warn_flag
6136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6137 else
6138 ac_cpp_err=
6139 fi
6140else
6141 ac_cpp_err=yes
c906108c 6142fi
b7026657
AC
6143if test -z "$ac_cpp_err"; then
6144 ac_header_preproc=yes
6145else
6146 echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_header_preproc=no
c906108c 6150fi
b7026657
AC
6151rm -f conftest.err conftest.$ac_ext
6152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6153echo "${ECHO_T}$ac_header_preproc" >&6
6154
6155# So? What about this header?
6156case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6157 yes:no: )
6158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6161echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6162 ac_header_preproc=yes
6163 ;;
6164 no:yes:* )
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6166echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6168echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6169 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6170echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6171 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6172echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6174echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6176echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6177 (
6178 cat <<\_ASBOX
6179## ------------------------------------------ ##
6180## Report this to the AC_PACKAGE_NAME lists. ##
6181## ------------------------------------------ ##
6182_ASBOX
6183 ) |
6184 sed "s/^/$as_me: WARNING: /" >&2
6185 ;;
6186esac
6187echo "$as_me:$LINENO: checking for $ac_header" >&5
6188echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6189if eval "test \"\${$as_ac_Header+set}\" = set"; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6191else
b7026657
AC
6192 eval "$as_ac_Header=\$ac_header_preproc"
6193fi
6194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6196
6197fi
6198if test `eval echo '${'$as_ac_Header'}'` = yes; then
6199 cat >>confdefs.h <<_ACEOF
6200#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201_ACEOF
6202
c906108c 6203fi
b7026657 6204
c906108c
SS
6205done
6206
b7026657
AC
6207
6208
6209
6210for ac_header in dlfcn.h errno.h sys/stat.h
c906108c 6211do
b7026657
AC
6212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213if eval "test \"\${$as_ac_Header+set}\" = set"; then
6214 echo "$as_me:$LINENO: checking for $ac_header" >&5
6215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218fi
6219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6221else
6222 # Is the header compilable?
6223echo "$as_me:$LINENO: checking $ac_header usability" >&5
6224echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6225cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231$ac_includes_default
6232#include <$ac_header>
6233_ACEOF
6234rm -f conftest.$ac_objext
6235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6236 (eval $ac_compile) 2>conftest.er1
6237 ac_status=$?
6238 grep -v '^ *+' conftest.er1 >conftest.err
6239 rm -f conftest.er1
6240 cat conftest.err >&5
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); } &&
33aa0cbb 6243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 ac_header_compiler=yes
6256else
6257 echo "$as_me: failed program was:" >&5
6258sed 's/^/| /' conftest.$ac_ext >&5
6259
6260ac_header_compiler=no
6261fi
6262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6263echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6264echo "${ECHO_T}$ac_header_compiler" >&6
6265
6266# Is the header present?
6267echo "$as_me:$LINENO: checking $ac_header presence" >&5
6268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6269cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h. */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h. */
6275#include <$ac_header>
6276_ACEOF
6277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } >/dev/null; then
6285 if test -s conftest.err; then
6286 ac_cpp_err=$ac_c_preproc_warn_flag
6287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6288 else
6289 ac_cpp_err=
6290 fi
6291else
6292 ac_cpp_err=yes
c906108c 6293fi
b7026657
AC
6294if test -z "$ac_cpp_err"; then
6295 ac_header_preproc=yes
6296else
6297 echo "$as_me: failed program was:" >&5
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_header_preproc=no
c906108c 6301fi
b7026657
AC
6302rm -f conftest.err conftest.$ac_ext
6303echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6304echo "${ECHO_T}$ac_header_preproc" >&6
6305
6306# So? What about this header?
6307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6308 yes:no: )
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6313 ac_header_preproc=yes
6314 ;;
6315 no:yes:* )
6316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6323echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6328 (
6329 cat <<\_ASBOX
6330## ------------------------------------------ ##
6331## Report this to the AC_PACKAGE_NAME lists. ##
6332## ------------------------------------------ ##
6333_ASBOX
6334 ) |
6335 sed "s/^/$as_me: WARNING: /" >&2
6336 ;;
6337esac
6338echo "$as_me:$LINENO: checking for $ac_header" >&5
6339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6340if eval "test \"\${$as_ac_Header+set}\" = set"; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6342else
b7026657
AC
6343 eval "$as_ac_Header=\$ac_header_preproc"
6344fi
6345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6347
6348fi
6349if test `eval echo '${'$as_ac_Header'}'` = yes; then
6350 cat >>confdefs.h <<_ACEOF
6351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352_ACEOF
6353
c906108c 6354fi
b7026657 6355
c906108c
SS
6356done
6357
b7026657
AC
6358
6359
6360
6361
c906108c
SS
6362for ac_func in getrusage time sigaction __setfpucw
6363do
b7026657
AC
6364as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6365echo "$as_me:$LINENO: checking for $ac_func" >&5
6366echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6367if eval "test \"\${$as_ac_var+set}\" = set"; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370 cat >conftest.$ac_ext <<_ACEOF
6371/* confdefs.h. */
6372_ACEOF
6373cat confdefs.h >>conftest.$ac_ext
6374cat >>conftest.$ac_ext <<_ACEOF
6375/* end confdefs.h. */
6376/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6378#define $ac_func innocuous_$ac_func
6379
c906108c 6380/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
6381 which can conflict with char $ac_func (); below.
6382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6383 <limits.h> exists even on freestanding compilers. */
6384
6385#ifdef __STDC__
6386# include <limits.h>
6387#else
6388# include <assert.h>
6389#endif
c906108c 6390
b7026657 6391#undef $ac_func
c906108c 6392
b7026657
AC
6393/* Override any gcc2 internal prototype to avoid an error. */
6394#ifdef __cplusplus
6395extern "C"
6396{
6397#endif
6398/* We use char because int might match the return type of a gcc2
6399 builtin and then its argument prototype would still apply. */
6400char $ac_func ();
c906108c
SS
6401/* The GNU C library defines this for functions which it implements
6402 to always fail with ENOSYS. Some functions are actually named
6403 something starting with __ and the normal name is an alias. */
6404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6405choke me
6406#else
b7026657
AC
6407char (*f) () = $ac_func;
6408#endif
6409#ifdef __cplusplus
6410}
c906108c
SS
6411#endif
6412
b7026657
AC
6413int
6414main ()
6415{
6416return f != $ac_func;
6417 ;
6418 return 0;
6419}
6420_ACEOF
6421rm -f conftest.$ac_objext conftest$ac_exeext
6422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423 (eval $ac_link) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
33aa0cbb 6430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try='test -s conftest$ac_exeext'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; }; then
6442 eval "$as_ac_var=yes"
6443else
6444 echo "$as_me: failed program was:" >&5
6445sed 's/^/| /' conftest.$ac_ext >&5
6446
6447eval "$as_ac_var=no"
6448fi
6449rm -f conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6451fi
6452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6453echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6454if test `eval echo '${'$as_ac_var'}'` = yes; then
6455 cat >>confdefs.h <<_ACEOF
6456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6457_ACEOF
c906108c 6458
c906108c
SS
6459fi
6460done
6461
6462
6463# Check for socket libraries
b7026657
AC
6464
6465echo "$as_me:$LINENO: checking for bind in -lsocket" >&5
6466echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6
6467if test "${ac_cv_lib_socket_bind+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6469else
b7026657 6470 ac_check_lib_save_LIBS=$LIBS
c906108c 6471LIBS="-lsocket $LIBS"
b7026657
AC
6472cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
6478
c906108c 6479/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6480#ifdef __cplusplus
6481extern "C"
6482#endif
c906108c 6483/* We use char because int might match the return type of a gcc2
b7026657
AC
6484 builtin and then its argument prototype would still apply. */
6485char bind ();
6486int
6487main ()
6488{
6489bind ();
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
6495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
33aa0cbb 6503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; } &&
6509 { ac_try='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511 (eval $ac_try) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 ac_cv_lib_socket_bind=yes
6516else
6517 echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520ac_cv_lib_socket_bind=no
6521fi
6522rm -f conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524LIBS=$ac_check_lib_save_LIBS
6525fi
6526echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5
6527echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6
6528if test $ac_cv_lib_socket_bind = yes; then
6529 cat >>confdefs.h <<_ACEOF
6530#define HAVE_LIBSOCKET 1
6531_ACEOF
c906108c
SS
6532
6533 LIBS="-lsocket $LIBS"
6534
c906108c
SS
6535fi
6536
b7026657
AC
6537
6538echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6539echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6540if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6542else
b7026657 6543 ac_check_lib_save_LIBS=$LIBS
c906108c 6544LIBS="-lnsl $LIBS"
b7026657
AC
6545cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551
c906108c 6552/* Override any gcc2 internal prototype to avoid an error. */
b7026657
AC
6553#ifdef __cplusplus
6554extern "C"
6555#endif
c906108c 6556/* We use char because int might match the return type of a gcc2
b7026657
AC
6557 builtin and then its argument prototype would still apply. */
6558char gethostbyname ();
6559int
6560main ()
6561{
6562gethostbyname ();
6563 ;
6564 return 0;
6565}
6566_ACEOF
6567rm -f conftest.$ac_objext conftest$ac_exeext
6568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
33aa0cbb 6576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 (eval $ac_try) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest$ac_exeext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_cv_lib_nsl_gethostbyname=yes
6589else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593ac_cv_lib_nsl_gethostbyname=no
6594fi
6595rm -f conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597LIBS=$ac_check_lib_save_LIBS
6598fi
6599echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6600echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6601if test $ac_cv_lib_nsl_gethostbyname = yes; then
6602 cat >>confdefs.h <<_ACEOF
6603#define HAVE_LIBNSL 1
6604_ACEOF
c906108c
SS
6605
6606 LIBS="-lnsl $LIBS"
6607
c906108c
SS
6608fi
6609
6610
6611. ${srcdir}/../../bfd/configure.host
6612
6613
6614
6615USE_MAINTAINER_MODE=no
6616# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6617if test "${enable_maintainer_mode+set}" = set; then
6618 enableval="$enable_maintainer_mode"
6619 case "${enableval}" in
6620 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
6621 no) MAINT="#" ;;
b7026657
AC
6622 *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5
6623echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;}
6624 { (exit 1); exit 1; }; }; MAINT="#" ;;
c906108c
SS
6625esac
6626if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
6627 echo "Setting maintainer mode" 6>&1
6628fi
6629else
6630 MAINT="#"
b7026657 6631fi;
c906108c
SS
6632
6633
6634# Check whether --enable-sim-bswap or --disable-sim-bswap was given.
6635if test "${enable_sim_bswap+set}" = set; then
6636 enableval="$enable_sim_bswap"
6637 case "${enableval}" in
6638 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
6639 no) sim_bswap="-DWITH_BSWAP=0";;
b7026657
AC
6640 *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5
6641echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;}
6642 { (exit 1); exit 1; }; }; sim_bswap="";;
c906108c
SS
6643esac
6644if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
6645 echo "Setting bswap flags = $sim_bswap" 6>&1
6646fi
6647else
6648 sim_bswap=""
b7026657 6649fi;
c906108c
SS
6650
6651
6652# Check whether --enable-sim-cflags or --disable-sim-cflags was given.
6653if test "${enable_sim_cflags+set}" = set; then
6654 enableval="$enable_sim_cflags"
6655 case "${enableval}" in
6656 yes) sim_cflags="-O2 -fomit-frame-pointer";;
b7026657
AC
6657 trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5
6658echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;}
6659 { (exit 1); exit 1; }; }; sim_cflags="";;
c906108c
SS
6660 no) sim_cflags="";;
6661 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6662esac
6663if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
6664 echo "Setting sim cflags = $sim_cflags" 6>&1
6665fi
6666else
6667 sim_cflags=""
b7026657 6668fi;
c906108c
SS
6669
6670
6671# Check whether --enable-sim-debug or --disable-sim-debug was given.
6672if test "${enable_sim_debug+set}" = set; then
6673 enableval="$enable_sim_debug"
6674 case "${enableval}" in
6675 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
6676 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
6677 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
6678esac
6679if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
6680 echo "Setting sim debug = $sim_debug" 6>&1
6681fi
6682else
6683 sim_debug=""
b7026657 6684fi;
c906108c
SS
6685
6686
6687# Check whether --enable-sim-stdio or --disable-sim-stdio was given.
6688if test "${enable_sim_stdio+set}" = set; then
6689 enableval="$enable_sim_stdio"
6690 case "${enableval}" in
6691 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
6692 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
b7026657
AC
6693 *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5
6694echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;}
6695 { (exit 1); exit 1; }; }; sim_stdio="";;
c906108c
SS
6696esac
6697if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
6698 echo "Setting stdio flags = $sim_stdio" 6>&1
6699fi
6700else
6701 sim_stdio=""
b7026657 6702fi;
c906108c
SS
6703
6704
6705# Check whether --enable-sim-trace or --disable-sim-trace was given.
6706if test "${enable_sim_trace+set}" = set; then
6707 enableval="$enable_sim_trace"
6708 case "${enableval}" in
6709 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
6710 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
6711 [-0-9]*)
6712 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
6713 [a-z]*)
6714 sim_trace=""
6715 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6716 if test x"$sim_trace" = x; then
6717 sim_trace="-DWITH_TRACE='(TRACE_$x"
6718 else
6719 sim_trace="${sim_trace}|TRACE_$x"
6720 fi
6721 done
6722 sim_trace="$sim_trace)'" ;;
6723esac
6724if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
6725 echo "Setting sim trace = $sim_trace" 6>&1
6726fi
6727else
6728 sim_trace=""
b7026657 6729fi;
c906108c
SS
6730
6731
6732# Check whether --enable-sim-profile or --disable-sim-profile was given.
6733if test "${enable_sim_profile+set}" = set; then
6734 enableval="$enable_sim_profile"
6735 case "${enableval}" in
6736 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
6737 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
6738 [-0-9]*)
6739 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
6740 [a-z]*)
6741 sim_profile=""
6742 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
6743 if test x"$sim_profile" = x; then
6744 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
6745 else
6746 sim_profile="${sim_profile}|PROFILE_$x"
6747 fi
6748 done
6749 sim_profile="$sim_profile)'" ;;
6750esac
6751if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
6752 echo "Setting sim profile = $sim_profile" 6>&1
6753fi
6754else
eb2d80b4 6755 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
b7026657 6756fi;
c906108c
SS
6757
6758
b7026657
AC
6759echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6760echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6761if test "${ac_cv_type_signal+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6763else
b7026657
AC
6764 cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h. */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h. */
c906108c
SS
6770#include <sys/types.h>
6771#include <signal.h>
6772#ifdef signal
b7026657 6773# undef signal
c906108c
SS
6774#endif
6775#ifdef __cplusplus
6776extern "C" void (*signal (int, void (*)(int)))(int);
6777#else
6778void (*signal ()) ();
6779#endif
6780
b7026657
AC
6781int
6782main ()
6783{
c906108c 6784int i;
b7026657
AC
6785 ;
6786 return 0;
6787}
6788_ACEOF
6789rm -f conftest.$ac_objext
6790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
33aa0cbb 6798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
c906108c
SS
6810 ac_cv_type_signal=void
6811else
b7026657
AC
6812 echo "$as_me: failed program was:" >&5
6813sed 's/^/| /' conftest.$ac_ext >&5
6814
6815ac_cv_type_signal=int
c906108c 6816fi
b7026657 6817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6818fi
b7026657
AC
6819echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6820echo "${ECHO_T}$ac_cv_type_signal" >&6
c906108c 6821
b7026657 6822cat >>confdefs.h <<_ACEOF
c906108c 6823#define RETSIGTYPE $ac_cv_type_signal
b7026657 6824_ACEOF
cd0fc7c3
SS
6825
6826
cd0fc7c3 6827
c906108c
SS
6828
6829
6830sim_link_files=
6831sim_link_links=
6832
6833sim_link_links=tconfig.h
6834if test -f ${srcdir}/tconfig.in
6835then
6836 sim_link_files=tconfig.in
6837else
6838 sim_link_files=../common/tconfig.in
6839fi
6840
6841# targ-vals.def points to the libc macro description file.
6842case "${target}" in
6843*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
6844esac
6845sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
6846sim_link_links="${sim_link_links} targ-vals.def"
6847
6848
c906108c
SS
6849# Put a useful copy of CPP_FOR_TARGET in Makefile.
6850# This is only used to build the target values header files. These files are
6851# shipped with distributions so CPP_FOR_TARGET only needs to work in
6852# developer's trees. This value is borrowed from ../../Makefile.in.
6853CPP_FOR_TARGET="\` \
6854 if test -f \$\${rootme}/../../gcc/Makefile ; then \
6855 if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \
6856 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \
6857 else \
6858 echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \
6859 fi; \
6860 else \
6861 if test '\$(host_canonical)' = '\$(target_canonical)' ; then \
6862 echo \$(CC); \
6863 else \
6864 t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \
6865 fi; \
6866 fi\` -E"
6867
6868
6869# Set TARGET_SUBDIR, needed by CPP_FOR_TARGET.
6870if test x"${host}" = x"${target}" ; then
6871 TARGET_SUBDIR="."
6872else
6873 TARGET_SUBDIR=${target_alias}
6874fi
6875
6876
6877# These aren't all needed yet, but will be eventually.
b7026657
AC
6878
6879
6880
6881
6882
6883
6884
6885for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h
c906108c 6886do
b7026657
AC
6887as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6888if eval "test \"\${$as_ac_Header+set}\" = set"; then
6889 echo "$as_me:$LINENO: checking for $ac_header" >&5
6890echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6891if eval "test \"\${$as_ac_Header+set}\" = set"; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893fi
6894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6896else
6897 # Is the header compilable?
6898echo "$as_me:$LINENO: checking $ac_header usability" >&5
6899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6900cat >conftest.$ac_ext <<_ACEOF
6901/* confdefs.h. */
6902_ACEOF
6903cat confdefs.h >>conftest.$ac_ext
6904cat >>conftest.$ac_ext <<_ACEOF
6905/* end confdefs.h. */
6906$ac_includes_default
6907#include <$ac_header>
6908_ACEOF
6909rm -f conftest.$ac_objext
6910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911 (eval $ac_compile) 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } &&
33aa0cbb 6918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 (eval $ac_try) 2>&5
6921 ac_status=$?
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest.$ac_objext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 (eval $ac_try) 2>&5
6927 ac_status=$?
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6930 ac_header_compiler=yes
6931else
6932 echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935ac_header_compiler=no
6936fi
6937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6938echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6939echo "${ECHO_T}$ac_header_compiler" >&6
6940
6941# Is the header present?
6942echo "$as_me:$LINENO: checking $ac_header presence" >&5
6943echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6944cat >conftest.$ac_ext <<_ACEOF
6945/* confdefs.h. */
6946_ACEOF
6947cat confdefs.h >>conftest.$ac_ext
6948cat >>conftest.$ac_ext <<_ACEOF
6949/* end confdefs.h. */
6950#include <$ac_header>
6951_ACEOF
6952if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6954 ac_status=$?
6955 grep -v '^ *+' conftest.er1 >conftest.err
6956 rm -f conftest.er1
6957 cat conftest.err >&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } >/dev/null; then
6960 if test -s conftest.err; then
6961 ac_cpp_err=$ac_c_preproc_warn_flag
6962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6963 else
6964 ac_cpp_err=
6965 fi
6966else
6967 ac_cpp_err=yes
c906108c 6968fi
b7026657
AC
6969if test -z "$ac_cpp_err"; then
6970 ac_header_preproc=yes
6971else
6972 echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975 ac_header_preproc=no
c906108c 6976fi
b7026657
AC
6977rm -f conftest.err conftest.$ac_ext
6978echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6979echo "${ECHO_T}$ac_header_preproc" >&6
6980
6981# So? What about this header?
6982case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6983 yes:no: )
6984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6985echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6987echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6988 ac_header_preproc=yes
6989 ;;
6990 no:yes:* )
6991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6996echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6998echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7002echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7003 (
7004 cat <<\_ASBOX
7005## ------------------------------------------ ##
7006## Report this to the AC_PACKAGE_NAME lists. ##
7007## ------------------------------------------ ##
7008_ASBOX
7009 ) |
7010 sed "s/^/$as_me: WARNING: /" >&2
7011 ;;
7012esac
7013echo "$as_me:$LINENO: checking for $ac_header" >&5
7014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7015if eval "test \"\${$as_ac_Header+set}\" = set"; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 7017else
b7026657
AC
7018 eval "$as_ac_Header=\$ac_header_preproc"
7019fi
7020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7021echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7022
c906108c 7023fi
b7026657
AC
7024if test `eval echo '${'$as_ac_Header'}'` = yes; then
7025 cat >>confdefs.h <<_ACEOF
7026#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7027_ACEOF
7028
7029fi
7030
c906108c
SS
7031done
7032
b7026657
AC
7033
7034
33aa0cbb
PB
7035
7036
7037
7038for ac_func in mmap munmap lstat truncate ftruncate
764f1408 7039do
b7026657
AC
7040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7041echo "$as_me:$LINENO: checking for $ac_func" >&5
7042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7043if eval "test \"\${$as_ac_var+set}\" = set"; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */
7052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7054#define $ac_func innocuous_$ac_func
7055
764f1408 7056/* System header to define __stub macros and hopefully few prototypes,
b7026657
AC
7057 which can conflict with char $ac_func (); below.
7058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 <limits.h> exists even on freestanding compilers. */
764f1408 7060
b7026657
AC
7061#ifdef __STDC__
7062# include <limits.h>
7063#else
7064# include <assert.h>
7065#endif
764f1408 7066
b7026657
AC
7067#undef $ac_func
7068
7069/* Override any gcc2 internal prototype to avoid an error. */
7070#ifdef __cplusplus
7071extern "C"
7072{
7073#endif
7074/* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076char $ac_func ();
764f1408
FCE
7077/* The GNU C library defines this for functions which it implements
7078 to always fail with ENOSYS. Some functions are actually named
7079 something starting with __ and the normal name is an alias. */
7080#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7081choke me
7082#else
b7026657
AC
7083char (*f) () = $ac_func;
7084#endif
7085#ifdef __cplusplus
7086}
764f1408
FCE
7087#endif
7088
b7026657
AC
7089int
7090main ()
7091{
7092return f != $ac_func;
7093 ;
7094 return 0;
7095}
7096_ACEOF
7097rm -f conftest.$ac_objext conftest$ac_exeext
7098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7099 (eval $ac_link) 2>conftest.er1
7100 ac_status=$?
7101 grep -v '^ *+' conftest.er1 >conftest.err
7102 rm -f conftest.er1
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
33aa0cbb 7106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108 (eval $ac_try) 2>&5
7109 ac_status=$?
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); }; } &&
7112 { ac_try='test -s conftest$ac_exeext'
7113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 (eval $ac_try) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); }; }; then
7118 eval "$as_ac_var=yes"
7119else
7120 echo "$as_me: failed program was:" >&5
7121sed 's/^/| /' conftest.$ac_ext >&5
7122
7123eval "$as_ac_var=no"
7124fi
7125rm -f conftest.err conftest.$ac_objext \
7126 conftest$ac_exeext conftest.$ac_ext
7127fi
7128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7130if test `eval echo '${'$as_ac_var'}'` = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7133_ACEOF
764f1408 7134
764f1408
FCE
7135fi
7136done
7137
b7026657
AC
7138echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5
7139echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6
7140if test "${ac_struct_stat_st_dev+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7142else
7143 ac_struct_stat_st_dev=no;
b7026657
AC
7144cat >conftest.$ac_ext <<_ACEOF
7145/* confdefs.h. */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h. */
697afb65
HPN
7150#ifdef HAVE_SYS_TYPES_H
7151#include <sys/types.h>
7152#endif
7153#ifdef HAVE_SYS_STAT_H
7154#include <sys/stat.h>
7155#endif
b7026657
AC
7156int
7157main ()
7158{
697afb65
HPN
7159
7160static struct stat ac_aggr;
7161if (ac_aggr.st_dev)
7162return 0;
b7026657
AC
7163 ;
7164 return 0;
7165}
7166_ACEOF
7167rm -f conftest.$ac_objext
7168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7169 (eval $ac_compile) 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
33aa0cbb 7176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178 (eval $ac_try) 2>&5
7179 ac_status=$?
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; } &&
7182 { ac_try='test -s conftest.$ac_objext'
7183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184 (eval $ac_try) 2>&5
7185 ac_status=$?
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); }; }; then
697afb65
HPN
7188 ac_struct_stat_st_dev=yes;
7189else
b7026657
AC
7190 echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
7193cat >conftest.$ac_ext <<_ACEOF
7194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
697afb65
HPN
7199#ifdef HAVE_SYS_TYPES_H
7200#include <sys/types.h>
7201#endif
7202#ifdef HAVE_SYS_STAT_H
7203#include <sys/stat.h>
7204#endif
b7026657
AC
7205int
7206main ()
7207{
697afb65
HPN
7208
7209static struct stat ac_aggr;
7210if (sizeof ac_aggr.st_dev)
7211return 0;
b7026657
AC
7212 ;
7213 return 0;
7214}
7215_ACEOF
7216rm -f conftest.$ac_objext
7217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
33aa0cbb 7225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; } &&
7231 { ac_try='test -s conftest.$ac_objext'
7232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7233 (eval $ac_try) 2>&5
7234 ac_status=$?
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); }; }; then
697afb65
HPN
7237 ac_struct_stat_st_dev=yes;
7238else
b7026657
AC
7239 echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242ac_struct_stat_st_dev=no;
697afb65 7243fi
b7026657 7244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7245fi
b7026657
AC
7246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7247if test $ac_struct_stat_st_dev = yes; then :;
7248cat >>confdefs.h <<_ACEOF
697afb65 7249#define HAVE_STRUCT_STAT_ST_DEV 1
b7026657 7250_ACEOF
697afb65 7251
b7026657 7252else :;
697afb65
HPN
7253fi
7254fi
b7026657
AC
7255echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5
7256echo "${ECHO_T}$ac_struct_stat_st_dev" >&6
697afb65 7257
b7026657
AC
7258echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5
7259echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6
7260if test "${ac_struct_stat_st_ino+set}" = set; then
7261 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7262else
7263 ac_struct_stat_st_ino=no;
b7026657
AC
7264cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h. */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h. */
697afb65
HPN
7270#ifdef HAVE_SYS_TYPES_H
7271#include <sys/types.h>
7272#endif
7273#ifdef HAVE_SYS_STAT_H
7274#include <sys/stat.h>
7275#endif
b7026657
AC
7276int
7277main ()
7278{
697afb65
HPN
7279
7280static struct stat ac_aggr;
7281if (ac_aggr.st_ino)
7282return 0;
b7026657
AC
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287rm -f conftest.$ac_objext
7288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7290 ac_status=$?
7291 grep -v '^ *+' conftest.er1 >conftest.err
7292 rm -f conftest.er1
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
33aa0cbb 7296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; } &&
7302 { ac_try='test -s conftest.$ac_objext'
7303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 (eval $ac_try) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }; }; then
697afb65
HPN
7308 ac_struct_stat_st_ino=yes;
7309else
b7026657
AC
7310 echo "$as_me: failed program was:" >&5
7311sed 's/^/| /' conftest.$ac_ext >&5
7312
7313cat >conftest.$ac_ext <<_ACEOF
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
697afb65
HPN
7319#ifdef HAVE_SYS_TYPES_H
7320#include <sys/types.h>
7321#endif
7322#ifdef HAVE_SYS_STAT_H
7323#include <sys/stat.h>
7324#endif
b7026657
AC
7325int
7326main ()
7327{
697afb65
HPN
7328
7329static struct stat ac_aggr;
7330if (sizeof ac_aggr.st_ino)
7331return 0;
b7026657
AC
7332 ;
7333 return 0;
7334}
7335_ACEOF
7336rm -f conftest.$ac_objext
7337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7338 (eval $ac_compile) 2>conftest.er1
7339 ac_status=$?
7340 grep -v '^ *+' conftest.er1 >conftest.err
7341 rm -f conftest.er1
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
33aa0cbb 7345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest.$ac_objext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
697afb65
HPN
7357 ac_struct_stat_st_ino=yes;
7358else
b7026657
AC
7359 echo "$as_me: failed program was:" >&5
7360sed 's/^/| /' conftest.$ac_ext >&5
7361
7362ac_struct_stat_st_ino=no;
697afb65 7363fi
b7026657 7364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7365fi
b7026657
AC
7366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367if test $ac_struct_stat_st_ino = yes; then :;
7368cat >>confdefs.h <<_ACEOF
697afb65 7369#define HAVE_STRUCT_STAT_ST_INO 1
b7026657 7370_ACEOF
697afb65 7371
b7026657 7372else :;
697afb65
HPN
7373fi
7374fi
b7026657
AC
7375echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5
7376echo "${ECHO_T}$ac_struct_stat_st_ino" >&6
697afb65 7377
b7026657
AC
7378echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5
7379echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6
7380if test "${ac_struct_stat_st_mode+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7382else
7383 ac_struct_stat_st_mode=no;
b7026657
AC
7384cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
697afb65
HPN
7390#ifdef HAVE_SYS_TYPES_H
7391#include <sys/types.h>
7392#endif
7393#ifdef HAVE_SYS_STAT_H
7394#include <sys/stat.h>
7395#endif
b7026657
AC
7396int
7397main ()
7398{
697afb65
HPN
7399
7400static struct stat ac_aggr;
7401if (ac_aggr.st_mode)
7402return 0;
b7026657
AC
7403 ;
7404 return 0;
7405}
7406_ACEOF
7407rm -f conftest.$ac_objext
7408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7409 (eval $ac_compile) 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
33aa0cbb 7416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7418 (eval $ac_try) 2>&5
7419 ac_status=$?
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); }; } &&
7422 { ac_try='test -s conftest.$ac_objext'
7423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_try) 2>&5
7425 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; }; then
697afb65
HPN
7428 ac_struct_stat_st_mode=yes;
7429else
b7026657
AC
7430 echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
7433cat >conftest.$ac_ext <<_ACEOF
7434/* confdefs.h. */
7435_ACEOF
7436cat confdefs.h >>conftest.$ac_ext
7437cat >>conftest.$ac_ext <<_ACEOF
7438/* end confdefs.h. */
697afb65
HPN
7439#ifdef HAVE_SYS_TYPES_H
7440#include <sys/types.h>
7441#endif
7442#ifdef HAVE_SYS_STAT_H
7443#include <sys/stat.h>
7444#endif
b7026657
AC
7445int
7446main ()
7447{
697afb65
HPN
7448
7449static struct stat ac_aggr;
7450if (sizeof ac_aggr.st_mode)
7451return 0;
b7026657
AC
7452 ;
7453 return 0;
7454}
7455_ACEOF
7456rm -f conftest.$ac_objext
7457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7458 (eval $ac_compile) 2>conftest.er1
7459 ac_status=$?
7460 grep -v '^ *+' conftest.er1 >conftest.err
7461 rm -f conftest.er1
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
33aa0cbb 7465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest.$ac_objext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 (eval $ac_try) 2>&5
7474 ac_status=$?
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
697afb65
HPN
7477 ac_struct_stat_st_mode=yes;
7478else
b7026657
AC
7479 echo "$as_me: failed program was:" >&5
7480sed 's/^/| /' conftest.$ac_ext >&5
7481
7482ac_struct_stat_st_mode=no;
697afb65 7483fi
b7026657 7484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7485fi
b7026657
AC
7486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487if test $ac_struct_stat_st_mode = yes; then :;
7488cat >>confdefs.h <<_ACEOF
697afb65 7489#define HAVE_STRUCT_STAT_ST_MODE 1
b7026657 7490_ACEOF
697afb65 7491
b7026657 7492else :;
697afb65
HPN
7493fi
7494fi
b7026657
AC
7495echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5
7496echo "${ECHO_T}$ac_struct_stat_st_mode" >&6
697afb65 7497
b7026657
AC
7498echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5
7499echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6
7500if test "${ac_struct_stat_st_nlink+set}" = set; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7502else
7503 ac_struct_stat_st_nlink=no;
b7026657
AC
7504cat >conftest.$ac_ext <<_ACEOF
7505/* confdefs.h. */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h. */
697afb65
HPN
7510#ifdef HAVE_SYS_TYPES_H
7511#include <sys/types.h>
7512#endif
7513#ifdef HAVE_SYS_STAT_H
7514#include <sys/stat.h>
7515#endif
b7026657
AC
7516int
7517main ()
7518{
697afb65
HPN
7519
7520static struct stat ac_aggr;
7521if (ac_aggr.st_nlink)
7522return 0;
b7026657
AC
7523 ;
7524 return 0;
7525}
7526_ACEOF
7527rm -f conftest.$ac_objext
7528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
33aa0cbb 7536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 (eval $ac_try) 2>&5
7539 ac_status=$?
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); }; } &&
7542 { ac_try='test -s conftest.$ac_objext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544 (eval $ac_try) 2>&5
7545 ac_status=$?
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
697afb65
HPN
7548 ac_struct_stat_st_nlink=yes;
7549else
b7026657
AC
7550 echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
7553cat >conftest.$ac_ext <<_ACEOF
7554/* confdefs.h. */
7555_ACEOF
7556cat confdefs.h >>conftest.$ac_ext
7557cat >>conftest.$ac_ext <<_ACEOF
7558/* end confdefs.h. */
697afb65
HPN
7559#ifdef HAVE_SYS_TYPES_H
7560#include <sys/types.h>
7561#endif
7562#ifdef HAVE_SYS_STAT_H
7563#include <sys/stat.h>
7564#endif
b7026657
AC
7565int
7566main ()
7567{
697afb65
HPN
7568
7569static struct stat ac_aggr;
7570if (sizeof ac_aggr.st_nlink)
7571return 0;
b7026657
AC
7572 ;
7573 return 0;
7574}
7575_ACEOF
7576rm -f conftest.$ac_objext
7577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7578 (eval $ac_compile) 2>conftest.er1
7579 ac_status=$?
7580 grep -v '^ *+' conftest.er1 >conftest.err
7581 rm -f conftest.er1
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
33aa0cbb 7585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; } &&
7591 { ac_try='test -s conftest.$ac_objext'
7592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7593 (eval $ac_try) 2>&5
7594 ac_status=$?
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); }; }; then
697afb65
HPN
7597 ac_struct_stat_st_nlink=yes;
7598else
b7026657
AC
7599 echo "$as_me: failed program was:" >&5
7600sed 's/^/| /' conftest.$ac_ext >&5
7601
7602ac_struct_stat_st_nlink=no;
697afb65 7603fi
b7026657 7604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7605fi
b7026657
AC
7606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7607if test $ac_struct_stat_st_nlink = yes; then :;
7608cat >>confdefs.h <<_ACEOF
697afb65 7609#define HAVE_STRUCT_STAT_ST_NLINK 1
b7026657 7610_ACEOF
697afb65 7611
b7026657 7612else :;
697afb65
HPN
7613fi
7614fi
b7026657
AC
7615echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5
7616echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6
697afb65 7617
b7026657
AC
7618echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5
7619echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6
7620if test "${ac_struct_stat_st_uid+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7622else
7623 ac_struct_stat_st_uid=no;
b7026657
AC
7624cat >conftest.$ac_ext <<_ACEOF
7625/* confdefs.h. */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
7629/* end confdefs.h. */
697afb65
HPN
7630#ifdef HAVE_SYS_TYPES_H
7631#include <sys/types.h>
7632#endif
7633#ifdef HAVE_SYS_STAT_H
7634#include <sys/stat.h>
7635#endif
b7026657
AC
7636int
7637main ()
7638{
697afb65
HPN
7639
7640static struct stat ac_aggr;
7641if (ac_aggr.st_uid)
7642return 0;
b7026657
AC
7643 ;
7644 return 0;
7645}
7646_ACEOF
7647rm -f conftest.$ac_objext
7648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
33aa0cbb 7656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; } &&
7662 { ac_try='test -s conftest.$ac_objext'
7663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 (eval $ac_try) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
697afb65
HPN
7668 ac_struct_stat_st_uid=yes;
7669else
b7026657
AC
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673cat >conftest.$ac_ext <<_ACEOF
7674/* confdefs.h. */
7675_ACEOF
7676cat confdefs.h >>conftest.$ac_ext
7677cat >>conftest.$ac_ext <<_ACEOF
7678/* end confdefs.h. */
697afb65
HPN
7679#ifdef HAVE_SYS_TYPES_H
7680#include <sys/types.h>
7681#endif
7682#ifdef HAVE_SYS_STAT_H
7683#include <sys/stat.h>
7684#endif
b7026657
AC
7685int
7686main ()
7687{
697afb65
HPN
7688
7689static struct stat ac_aggr;
7690if (sizeof ac_aggr.st_uid)
7691return 0;
b7026657
AC
7692 ;
7693 return 0;
7694}
7695_ACEOF
7696rm -f conftest.$ac_objext
7697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
33aa0cbb 7705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707 (eval $ac_try) 2>&5
7708 ac_status=$?
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try='test -s conftest.$ac_objext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
697afb65
HPN
7717 ac_struct_stat_st_uid=yes;
7718else
b7026657
AC
7719 echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722ac_struct_stat_st_uid=no;
697afb65 7723fi
b7026657 7724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7725fi
b7026657
AC
7726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727if test $ac_struct_stat_st_uid = yes; then :;
7728cat >>confdefs.h <<_ACEOF
697afb65 7729#define HAVE_STRUCT_STAT_ST_UID 1
b7026657 7730_ACEOF
697afb65 7731
b7026657 7732else :;
697afb65
HPN
7733fi
7734fi
b7026657
AC
7735echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5
7736echo "${ECHO_T}$ac_struct_stat_st_uid" >&6
697afb65 7737
b7026657
AC
7738echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5
7739echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6
7740if test "${ac_struct_stat_st_gid+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7742else
7743 ac_struct_stat_st_gid=no;
b7026657
AC
7744cat >conftest.$ac_ext <<_ACEOF
7745/* confdefs.h. */
7746_ACEOF
7747cat confdefs.h >>conftest.$ac_ext
7748cat >>conftest.$ac_ext <<_ACEOF
7749/* end confdefs.h. */
697afb65
HPN
7750#ifdef HAVE_SYS_TYPES_H
7751#include <sys/types.h>
7752#endif
7753#ifdef HAVE_SYS_STAT_H
7754#include <sys/stat.h>
7755#endif
b7026657
AC
7756int
7757main ()
7758{
697afb65
HPN
7759
7760static struct stat ac_aggr;
7761if (ac_aggr.st_gid)
7762return 0;
b7026657
AC
7763 ;
7764 return 0;
7765}
7766_ACEOF
7767rm -f conftest.$ac_objext
7768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
33aa0cbb 7776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; } &&
7782 { ac_try='test -s conftest.$ac_objext'
7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); }; }; then
697afb65
HPN
7788 ac_struct_stat_st_gid=yes;
7789else
b7026657
AC
7790 echo "$as_me: failed program was:" >&5
7791sed 's/^/| /' conftest.$ac_ext >&5
7792
7793cat >conftest.$ac_ext <<_ACEOF
7794/* confdefs.h. */
7795_ACEOF
7796cat confdefs.h >>conftest.$ac_ext
7797cat >>conftest.$ac_ext <<_ACEOF
7798/* end confdefs.h. */
697afb65
HPN
7799#ifdef HAVE_SYS_TYPES_H
7800#include <sys/types.h>
7801#endif
7802#ifdef HAVE_SYS_STAT_H
7803#include <sys/stat.h>
7804#endif
b7026657
AC
7805int
7806main ()
7807{
697afb65
HPN
7808
7809static struct stat ac_aggr;
7810if (sizeof ac_aggr.st_gid)
7811return 0;
b7026657
AC
7812 ;
7813 return 0;
7814}
7815_ACEOF
7816rm -f conftest.$ac_objext
7817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818 (eval $ac_compile) 2>conftest.er1
7819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
33aa0cbb 7825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827 (eval $ac_try) 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest.$ac_objext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 (eval $ac_try) 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
697afb65
HPN
7837 ac_struct_stat_st_gid=yes;
7838else
b7026657
AC
7839 echo "$as_me: failed program was:" >&5
7840sed 's/^/| /' conftest.$ac_ext >&5
7841
7842ac_struct_stat_st_gid=no;
697afb65 7843fi
b7026657 7844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7845fi
b7026657
AC
7846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7847if test $ac_struct_stat_st_gid = yes; then :;
7848cat >>confdefs.h <<_ACEOF
697afb65 7849#define HAVE_STRUCT_STAT_ST_GID 1
b7026657 7850_ACEOF
697afb65 7851
b7026657 7852else :;
697afb65
HPN
7853fi
7854fi
b7026657
AC
7855echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5
7856echo "${ECHO_T}$ac_struct_stat_st_gid" >&6
697afb65 7857
b7026657
AC
7858echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7859echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
7860if test "${ac_struct_stat_st_rdev+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7862else
7863 ac_struct_stat_st_rdev=no;
b7026657
AC
7864cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
697afb65
HPN
7870#ifdef HAVE_SYS_TYPES_H
7871#include <sys/types.h>
7872#endif
7873#ifdef HAVE_SYS_STAT_H
7874#include <sys/stat.h>
7875#endif
b7026657
AC
7876int
7877main ()
7878{
697afb65
HPN
7879
7880static struct stat ac_aggr;
7881if (ac_aggr.st_rdev)
7882return 0;
b7026657
AC
7883 ;
7884 return 0;
7885}
7886_ACEOF
7887rm -f conftest.$ac_objext
7888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>conftest.er1
7890 ac_status=$?
7891 grep -v '^ *+' conftest.er1 >conftest.err
7892 rm -f conftest.er1
7893 cat conftest.err >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } &&
33aa0cbb 7896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
697afb65
HPN
7908 ac_struct_stat_st_rdev=yes;
7909else
b7026657
AC
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
697afb65
HPN
7919#ifdef HAVE_SYS_TYPES_H
7920#include <sys/types.h>
7921#endif
7922#ifdef HAVE_SYS_STAT_H
7923#include <sys/stat.h>
7924#endif
b7026657
AC
7925int
7926main ()
7927{
697afb65
HPN
7928
7929static struct stat ac_aggr;
7930if (sizeof ac_aggr.st_rdev)
7931return 0;
b7026657
AC
7932 ;
7933 return 0;
7934}
7935_ACEOF
7936rm -f conftest.$ac_objext
7937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
33aa0cbb 7945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
7946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 (eval $ac_try) 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; } &&
7951 { ac_try='test -s conftest.$ac_objext'
7952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7953 (eval $ac_try) 2>&5
7954 ac_status=$?
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
697afb65
HPN
7957 ac_struct_stat_st_rdev=yes;
7958else
b7026657
AC
7959 echo "$as_me: failed program was:" >&5
7960sed 's/^/| /' conftest.$ac_ext >&5
7961
7962ac_struct_stat_st_rdev=no;
697afb65 7963fi
b7026657 7964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 7965fi
b7026657
AC
7966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7967if test $ac_struct_stat_st_rdev = yes; then :;
7968cat >>confdefs.h <<_ACEOF
697afb65 7969#define HAVE_STRUCT_STAT_ST_RDEV 1
b7026657 7970_ACEOF
697afb65 7971
b7026657 7972else :;
697afb65
HPN
7973fi
7974fi
b7026657
AC
7975echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5
7976echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6
697afb65 7977
b7026657
AC
7978echo "$as_me:$LINENO: checking for struct stat.st_size" >&5
7979echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6
7980if test "${ac_struct_stat_st_size+set}" = set; then
7981 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
7982else
7983 ac_struct_stat_st_size=no;
b7026657
AC
7984cat >conftest.$ac_ext <<_ACEOF
7985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h. */
697afb65
HPN
7990#ifdef HAVE_SYS_TYPES_H
7991#include <sys/types.h>
7992#endif
7993#ifdef HAVE_SYS_STAT_H
7994#include <sys/stat.h>
7995#endif
b7026657
AC
7996int
7997main ()
7998{
697afb65
HPN
7999
8000static struct stat ac_aggr;
8001if (ac_aggr.st_size)
8002return 0;
b7026657
AC
8003 ;
8004 return 0;
8005}
8006_ACEOF
8007rm -f conftest.$ac_objext
8008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8009 (eval $ac_compile) 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } &&
33aa0cbb 8016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8018 (eval $ac_try) 2>&5
8019 ac_status=$?
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; } &&
8022 { ac_try='test -s conftest.$ac_objext'
8023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8024 (eval $ac_try) 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; }; then
697afb65
HPN
8028 ac_struct_stat_st_size=yes;
8029else
b7026657
AC
8030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033cat >conftest.$ac_ext <<_ACEOF
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
697afb65
HPN
8039#ifdef HAVE_SYS_TYPES_H
8040#include <sys/types.h>
8041#endif
8042#ifdef HAVE_SYS_STAT_H
8043#include <sys/stat.h>
8044#endif
b7026657
AC
8045int
8046main ()
8047{
697afb65
HPN
8048
8049static struct stat ac_aggr;
8050if (sizeof ac_aggr.st_size)
8051return 0;
b7026657
AC
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext
8057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
33aa0cbb 8065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8067 (eval $ac_try) 2>&5
8068 ac_status=$?
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; } &&
8071 { ac_try='test -s conftest.$ac_objext'
8072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 (eval $ac_try) 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; }; then
697afb65
HPN
8077 ac_struct_stat_st_size=yes;
8078else
b7026657
AC
8079 echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082ac_struct_stat_st_size=no;
697afb65 8083fi
b7026657 8084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8085fi
b7026657
AC
8086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8087if test $ac_struct_stat_st_size = yes; then :;
8088cat >>confdefs.h <<_ACEOF
697afb65 8089#define HAVE_STRUCT_STAT_ST_SIZE 1
b7026657 8090_ACEOF
697afb65 8091
b7026657 8092else :;
697afb65
HPN
8093fi
8094fi
b7026657
AC
8095echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5
8096echo "${ECHO_T}$ac_struct_stat_st_size" >&6
697afb65 8097
b7026657
AC
8098echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
8099echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
8100if test "${ac_struct_stat_st_blksize+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8102else
8103 ac_struct_stat_st_blksize=no;
b7026657
AC
8104cat >conftest.$ac_ext <<_ACEOF
8105/* confdefs.h. */
8106_ACEOF
8107cat confdefs.h >>conftest.$ac_ext
8108cat >>conftest.$ac_ext <<_ACEOF
8109/* end confdefs.h. */
697afb65
HPN
8110#ifdef HAVE_SYS_TYPES_H
8111#include <sys/types.h>
8112#endif
8113#ifdef HAVE_SYS_STAT_H
8114#include <sys/stat.h>
8115#endif
b7026657
AC
8116int
8117main ()
8118{
697afb65
HPN
8119
8120static struct stat ac_aggr;
8121if (ac_aggr.st_blksize)
8122return 0;
b7026657
AC
8123 ;
8124 return 0;
8125}
8126_ACEOF
8127rm -f conftest.$ac_objext
8128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
33aa0cbb 8136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8138 (eval $ac_try) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; } &&
8142 { ac_try='test -s conftest.$ac_objext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
697afb65
HPN
8148 ac_struct_stat_st_blksize=yes;
8149else
b7026657
AC
8150 echo "$as_me: failed program was:" >&5
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
8153cat >conftest.$ac_ext <<_ACEOF
8154/* confdefs.h. */
8155_ACEOF
8156cat confdefs.h >>conftest.$ac_ext
8157cat >>conftest.$ac_ext <<_ACEOF
8158/* end confdefs.h. */
697afb65
HPN
8159#ifdef HAVE_SYS_TYPES_H
8160#include <sys/types.h>
8161#endif
8162#ifdef HAVE_SYS_STAT_H
8163#include <sys/stat.h>
8164#endif
b7026657
AC
8165int
8166main ()
8167{
697afb65
HPN
8168
8169static struct stat ac_aggr;
8170if (sizeof ac_aggr.st_blksize)
8171return 0;
b7026657
AC
8172 ;
8173 return 0;
8174}
8175_ACEOF
8176rm -f conftest.$ac_objext
8177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178 (eval $ac_compile) 2>conftest.er1
8179 ac_status=$?
8180 grep -v '^ *+' conftest.er1 >conftest.err
8181 rm -f conftest.er1
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
33aa0cbb 8185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 (eval $ac_try) 2>&5
8188 ac_status=$?
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; } &&
8191 { ac_try='test -s conftest.$ac_objext'
8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 (eval $ac_try) 2>&5
8194 ac_status=$?
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; }; then
697afb65
HPN
8197 ac_struct_stat_st_blksize=yes;
8198else
b7026657
AC
8199 echo "$as_me: failed program was:" >&5
8200sed 's/^/| /' conftest.$ac_ext >&5
8201
8202ac_struct_stat_st_blksize=no;
697afb65 8203fi
b7026657 8204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8205fi
b7026657
AC
8206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207if test $ac_struct_stat_st_blksize = yes; then :;
8208cat >>confdefs.h <<_ACEOF
697afb65 8209#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
b7026657 8210_ACEOF
697afb65 8211
b7026657 8212else :;
697afb65
HPN
8213fi
8214fi
b7026657
AC
8215echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5
8216echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6
697afb65 8217
b7026657
AC
8218echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
8219echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
8220if test "${ac_struct_stat_st_blocks+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8222else
8223 ac_struct_stat_st_blocks=no;
b7026657
AC
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
697afb65
HPN
8230#ifdef HAVE_SYS_TYPES_H
8231#include <sys/types.h>
8232#endif
8233#ifdef HAVE_SYS_STAT_H
8234#include <sys/stat.h>
8235#endif
b7026657
AC
8236int
8237main ()
8238{
697afb65
HPN
8239
8240static struct stat ac_aggr;
8241if (ac_aggr.st_blocks)
8242return 0;
b7026657
AC
8243 ;
8244 return 0;
8245}
8246_ACEOF
8247rm -f conftest.$ac_objext
8248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
33aa0cbb 8256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest.$ac_objext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
697afb65
HPN
8268 ac_struct_stat_st_blocks=yes;
8269else
b7026657
AC
8270 echo "$as_me: failed program was:" >&5
8271sed 's/^/| /' conftest.$ac_ext >&5
8272
8273cat >conftest.$ac_ext <<_ACEOF
8274/* confdefs.h. */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h. */
697afb65
HPN
8279#ifdef HAVE_SYS_TYPES_H
8280#include <sys/types.h>
8281#endif
8282#ifdef HAVE_SYS_STAT_H
8283#include <sys/stat.h>
8284#endif
b7026657
AC
8285int
8286main ()
8287{
697afb65
HPN
8288
8289static struct stat ac_aggr;
8290if (sizeof ac_aggr.st_blocks)
8291return 0;
b7026657
AC
8292 ;
8293 return 0;
8294}
8295_ACEOF
8296rm -f conftest.$ac_objext
8297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
33aa0cbb 8305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
697afb65
HPN
8317 ac_struct_stat_st_blocks=yes;
8318else
b7026657
AC
8319 echo "$as_me: failed program was:" >&5
8320sed 's/^/| /' conftest.$ac_ext >&5
8321
8322ac_struct_stat_st_blocks=no;
697afb65 8323fi
b7026657 8324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8325fi
b7026657
AC
8326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8327if test $ac_struct_stat_st_blocks = yes; then :;
8328cat >>confdefs.h <<_ACEOF
697afb65 8329#define HAVE_STRUCT_STAT_ST_BLOCKS 1
b7026657 8330_ACEOF
697afb65 8331
b7026657 8332else :;
697afb65
HPN
8333fi
8334fi
b7026657
AC
8335echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5
8336echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6
697afb65 8337
b7026657
AC
8338echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5
8339echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6
8340if test "${ac_struct_stat_st_atime+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8342else
8343 ac_struct_stat_st_atime=no;
b7026657
AC
8344cat >conftest.$ac_ext <<_ACEOF
8345/* confdefs.h. */
8346_ACEOF
8347cat confdefs.h >>conftest.$ac_ext
8348cat >>conftest.$ac_ext <<_ACEOF
8349/* end confdefs.h. */
697afb65
HPN
8350#ifdef HAVE_SYS_TYPES_H
8351#include <sys/types.h>
8352#endif
8353#ifdef HAVE_SYS_STAT_H
8354#include <sys/stat.h>
8355#endif
b7026657
AC
8356int
8357main ()
8358{
697afb65
HPN
8359
8360static struct stat ac_aggr;
8361if (ac_aggr.st_atime)
8362return 0;
b7026657
AC
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext
8368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8369 (eval $ac_compile) 2>conftest.er1
8370 ac_status=$?
8371 grep -v '^ *+' conftest.er1 >conftest.err
8372 rm -f conftest.er1
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
33aa0cbb 8376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; } &&
8382 { ac_try='test -s conftest.$ac_objext'
8383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 (eval $ac_try) 2>&5
8385 ac_status=$?
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); }; }; then
697afb65
HPN
8388 ac_struct_stat_st_atime=yes;
8389else
b7026657
AC
8390 echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393cat >conftest.$ac_ext <<_ACEOF
8394/* confdefs.h. */
8395_ACEOF
8396cat confdefs.h >>conftest.$ac_ext
8397cat >>conftest.$ac_ext <<_ACEOF
8398/* end confdefs.h. */
697afb65
HPN
8399#ifdef HAVE_SYS_TYPES_H
8400#include <sys/types.h>
8401#endif
8402#ifdef HAVE_SYS_STAT_H
8403#include <sys/stat.h>
8404#endif
b7026657
AC
8405int
8406main ()
8407{
697afb65
HPN
8408
8409static struct stat ac_aggr;
8410if (sizeof ac_aggr.st_atime)
8411return 0;
b7026657
AC
8412 ;
8413 return 0;
8414}
8415_ACEOF
8416rm -f conftest.$ac_objext
8417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
33aa0cbb 8425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; } &&
8431 { ac_try='test -s conftest.$ac_objext'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; }; then
697afb65
HPN
8437 ac_struct_stat_st_atime=yes;
8438else
b7026657
AC
8439 echo "$as_me: failed program was:" >&5
8440sed 's/^/| /' conftest.$ac_ext >&5
8441
8442ac_struct_stat_st_atime=no;
697afb65 8443fi
b7026657 8444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8445fi
b7026657
AC
8446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8447if test $ac_struct_stat_st_atime = yes; then :;
8448cat >>confdefs.h <<_ACEOF
697afb65 8449#define HAVE_STRUCT_STAT_ST_ATIME 1
b7026657 8450_ACEOF
697afb65 8451
b7026657 8452else :;
697afb65
HPN
8453fi
8454fi
b7026657
AC
8455echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5
8456echo "${ECHO_T}$ac_struct_stat_st_atime" >&6
697afb65 8457
b7026657
AC
8458echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5
8459echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6
8460if test "${ac_struct_stat_st_mtime+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8462else
8463 ac_struct_stat_st_mtime=no;
b7026657
AC
8464cat >conftest.$ac_ext <<_ACEOF
8465/* confdefs.h. */
8466_ACEOF
8467cat confdefs.h >>conftest.$ac_ext
8468cat >>conftest.$ac_ext <<_ACEOF
8469/* end confdefs.h. */
697afb65
HPN
8470#ifdef HAVE_SYS_TYPES_H
8471#include <sys/types.h>
8472#endif
8473#ifdef HAVE_SYS_STAT_H
8474#include <sys/stat.h>
8475#endif
b7026657
AC
8476int
8477main ()
8478{
697afb65
HPN
8479
8480static struct stat ac_aggr;
8481if (ac_aggr.st_mtime)
8482return 0;
b7026657
AC
8483 ;
8484 return 0;
8485}
8486_ACEOF
8487rm -f conftest.$ac_objext
8488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
33aa0cbb 8496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 (eval $ac_try) 2>&5
8499 ac_status=$?
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); }; } &&
8502 { ac_try='test -s conftest.$ac_objext'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; }; then
697afb65
HPN
8508 ac_struct_stat_st_mtime=yes;
8509else
b7026657
AC
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
8513cat >conftest.$ac_ext <<_ACEOF
8514/* confdefs.h. */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h. */
697afb65
HPN
8519#ifdef HAVE_SYS_TYPES_H
8520#include <sys/types.h>
8521#endif
8522#ifdef HAVE_SYS_STAT_H
8523#include <sys/stat.h>
8524#endif
b7026657
AC
8525int
8526main ()
8527{
697afb65
HPN
8528
8529static struct stat ac_aggr;
8530if (sizeof ac_aggr.st_mtime)
8531return 0;
b7026657
AC
8532 ;
8533 return 0;
8534}
8535_ACEOF
8536rm -f conftest.$ac_objext
8537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8538 (eval $ac_compile) 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
33aa0cbb 8545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
697afb65
HPN
8557 ac_struct_stat_st_mtime=yes;
8558else
b7026657
AC
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562ac_struct_stat_st_mtime=no;
697afb65 8563fi
b7026657 8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8565fi
b7026657
AC
8566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8567if test $ac_struct_stat_st_mtime = yes; then :;
8568cat >>confdefs.h <<_ACEOF
697afb65 8569#define HAVE_STRUCT_STAT_ST_MTIME 1
b7026657 8570_ACEOF
697afb65 8571
b7026657 8572else :;
697afb65
HPN
8573fi
8574fi
b7026657
AC
8575echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5
8576echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6
697afb65 8577
b7026657
AC
8578echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5
8579echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6
8580if test "${ac_struct_stat_st_ctime+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
697afb65
HPN
8582else
8583 ac_struct_stat_st_ctime=no;
b7026657
AC
8584cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
697afb65
HPN
8590#ifdef HAVE_SYS_TYPES_H
8591#include <sys/types.h>
8592#endif
8593#ifdef HAVE_SYS_STAT_H
8594#include <sys/stat.h>
8595#endif
b7026657
AC
8596int
8597main ()
8598{
697afb65
HPN
8599
8600static struct stat ac_aggr;
8601if (ac_aggr.st_ctime)
8602return 0;
b7026657
AC
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext
8608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8609 (eval $ac_compile) 2>conftest.er1
8610 ac_status=$?
8611 grep -v '^ *+' conftest.er1 >conftest.err
8612 rm -f conftest.er1
8613 cat conftest.err >&5
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); } &&
33aa0cbb 8616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; } &&
8622 { ac_try='test -s conftest.$ac_objext'
8623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 (eval $ac_try) 2>&5
8625 ac_status=$?
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); }; }; then
697afb65
HPN
8628 ac_struct_stat_st_ctime=yes;
8629else
b7026657
AC
8630 echo "$as_me: failed program was:" >&5
8631sed 's/^/| /' conftest.$ac_ext >&5
8632
8633cat >conftest.$ac_ext <<_ACEOF
8634/* confdefs.h. */
8635_ACEOF
8636cat confdefs.h >>conftest.$ac_ext
8637cat >>conftest.$ac_ext <<_ACEOF
8638/* end confdefs.h. */
697afb65
HPN
8639#ifdef HAVE_SYS_TYPES_H
8640#include <sys/types.h>
8641#endif
8642#ifdef HAVE_SYS_STAT_H
8643#include <sys/stat.h>
8644#endif
b7026657
AC
8645int
8646main ()
8647{
697afb65
HPN
8648
8649static struct stat ac_aggr;
8650if (sizeof ac_aggr.st_ctime)
8651return 0;
b7026657
AC
8652 ;
8653 return 0;
8654}
8655_ACEOF
8656rm -f conftest.$ac_objext
8657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
33aa0cbb 8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
b7026657
AC
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; } &&
8671 { ac_try='test -s conftest.$ac_objext'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 (eval $ac_try) 2>&5
8674 ac_status=$?
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; }; then
697afb65
HPN
8677 ac_struct_stat_st_ctime=yes;
8678else
b7026657
AC
8679 echo "$as_me: failed program was:" >&5
8680sed 's/^/| /' conftest.$ac_ext >&5
8681
8682ac_struct_stat_st_ctime=no;
697afb65 8683fi
b7026657 8684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
697afb65 8685fi
b7026657
AC
8686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8687if test $ac_struct_stat_st_ctime = yes; then :;
8688cat >>confdefs.h <<_ACEOF
697afb65 8689#define HAVE_STRUCT_STAT_ST_CTIME 1
b7026657 8690_ACEOF
697afb65 8691
b7026657 8692else :;
697afb65
HPN
8693fi
8694fi
b7026657
AC
8695echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5
8696echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6
697afb65 8697
b7026657
AC
8698 ac_config_files="$ac_config_files Makefile"
8699 ac_config_commands="$ac_config_commands default"
8700cat >confcache <<\_ACEOF
c906108c
SS
8701# This file is a shell script that caches the results of configure
8702# tests run on this system so they can be shared between configure
b7026657
AC
8703# scripts and configure runs, see configure's option --config-cache.
8704# It is not useful on other systems. If it contains results you don't
8705# want to keep, you may remove or edit it.
c906108c 8706#
b7026657
AC
8707# config.status only pays attention to the cache file if you give it
8708# the --recheck option to rerun configure.
c906108c 8709#
b7026657
AC
8710# `ac_cv_env_foo' variables (set or unset) will be overridden when
8711# loading this file, other *unset* `ac_cv_foo' will be assigned the
8712# following values.
8713
8714_ACEOF
8715
c906108c
SS
8716# The following way of writing the cache mishandles newlines in values,
8717# but we know of no workaround that is simple, portable, and efficient.
8718# So, don't put newlines in cache variables' values.
8719# Ultrix sh set writes to stderr and can't be redirected directly,
8720# and sets the high bit in the cache file unless we assign to the vars.
b7026657
AC
8721{
8722 (set) 2>&1 |
8723 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8724 *ac_space=\ *)
8725 # `set' does not quote correctly, so add quotes (double-quote
8726 # substitution turns \\\\ into \\, and sed turns \\ into \).
8727 sed -n \
8728 "s/'/'\\\\''/g;
8729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8730 ;;
8731 *)
8732 # `set' quotes correctly as required by POSIX, so do not add quotes.
8733 sed -n \
8734 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8735 ;;
8736 esac;
8737} |
8738 sed '
8739 t clear
8740 : clear
8741 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8742 t end
8743 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8744 : end' >>confcache
8745if diff $cache_file confcache >/dev/null 2>&1; then :; else
c906108c 8746 if test -w $cache_file; then
b7026657
AC
8747 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8748 cat confcache >$cache_file
c906108c
SS
8749 else
8750 echo "not updating unwritable cache $cache_file"
8751 fi
8752fi
8753rm -f confcache
8754
c906108c
SS
8755test "x$prefix" = xNONE && prefix=$ac_default_prefix
8756# Let make expand exec_prefix.
8757test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8758
b7026657
AC
8759# VPATH may cause trouble with some makes, so we remove $(srcdir),
8760# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8761# trailing colons and then remove the whole line if VPATH becomes empty
8762# (actually we leave an empty line to preserve line numbers).
c906108c 8763if test "x$srcdir" = x.; then
b7026657
AC
8764 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8765s/:*\$(srcdir):*/:/;
8766s/:*\${srcdir}:*/:/;
8767s/:*@srcdir@:*/:/;
8768s/^\([^=]*=[ ]*\):*/\1/;
8769s/:*$//;
8770s/^[^=]*=[ ]*$//;
8771}'
c906108c
SS
8772fi
8773
c906108c
SS
8774DEFS=-DHAVE_CONFIG_H
8775
b7026657
AC
8776ac_libobjs=
8777ac_ltlibobjs=
8778for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8779 # 1. Remove the extension, and $U if already installed.
8780 ac_i=`echo "$ac_i" |
8781 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8782 # 2. Add them.
8783 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8784 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8785done
8786LIBOBJS=$ac_libobjs
c906108c 8787
b7026657
AC
8788LTLIBOBJS=$ac_ltlibobjs
8789
8790
8791
8792: ${CONFIG_STATUS=./config.status}
8793ac_clean_files_save=$ac_clean_files
8794ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8795{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8796echo "$as_me: creating $CONFIG_STATUS" >&6;}
8797cat >$CONFIG_STATUS <<_ACEOF
8798#! $SHELL
8799# Generated by $as_me.
c906108c 8800# Run this file to recreate the current configuration.
c906108c 8801# Compiler output produced by configure, useful for debugging
b7026657 8802# configure, is in config.log if it exists.
c906108c 8803
b7026657
AC
8804debug=false
8805ac_cs_recheck=false
8806ac_cs_silent=false
8807SHELL=\${CONFIG_SHELL-$SHELL}
8808_ACEOF
8809
8810cat >>$CONFIG_STATUS <<\_ACEOF
8811## --------------------- ##
8812## M4sh Initialization. ##
8813## --------------------- ##
8814
8815# Be Bourne compatible
8816if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8817 emulate sh
8818 NULLCMD=:
8819 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8820 # is contrary to our usage. Disable this feature.
8821 alias -g '${1+"$@"}'='"$@"'
8822elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8823 set -o posix
8824fi
8825DUALCASE=1; export DUALCASE # for MKS sh
8826
8827# Support unset when possible.
8828if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8829 as_unset=unset
8830else
8831 as_unset=false
8832fi
8833
8834
8835# Work around bugs in pre-3.0 UWIN ksh.
8836$as_unset ENV MAIL MAILPATH
8837PS1='$ '
8838PS2='> '
8839PS4='+ '
8840
8841# NLS nuisances.
8842for as_var in \
8843 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8844 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8845 LC_TELEPHONE LC_TIME
c906108c 8846do
b7026657
AC
8847 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8848 eval $as_var=C; export $as_var
8849 else
8850 $as_unset $as_var
8851 fi
c906108c
SS
8852done
8853
b7026657
AC
8854# Required to use basename.
8855if expr a : '\(a\)' >/dev/null 2>&1; then
8856 as_expr=expr
8857else
8858 as_expr=false
8859fi
c906108c 8860
b7026657
AC
8861if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8862 as_basename=basename
8863else
8864 as_basename=false
8865fi
c906108c 8866
c906108c 8867
b7026657
AC
8868# Name of the executable.
8869as_me=`$as_basename "$0" ||
8870$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8871 X"$0" : 'X\(//\)$' \| \
8872 X"$0" : 'X\(/\)$' \| \
8873 . : '\(.\)' 2>/dev/null ||
8874echo X/"$0" |
8875 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8876 /^X\/\(\/\/\)$/{ s//\1/; q; }
8877 /^X\/\(\/\).*/{ s//\1/; q; }
8878 s/.*/./; q'`
8879
8880
8881# PATH needs CR, and LINENO needs CR and PATH.
8882# Avoid depending upon Character Ranges.
8883as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8884as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8885as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8886as_cr_digits='0123456789'
8887as_cr_alnum=$as_cr_Letters$as_cr_digits
8888
8889# The user is always right.
8890if test "${PATH_SEPARATOR+set}" != set; then
8891 echo "#! /bin/sh" >conf$$.sh
8892 echo "exit 0" >>conf$$.sh
8893 chmod +x conf$$.sh
8894 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8895 PATH_SEPARATOR=';'
c906108c 8896 else
b7026657
AC
8897 PATH_SEPARATOR=:
8898 fi
8899 rm -f conf$$.sh
8900fi
8901
8902
8903 as_lineno_1=$LINENO
8904 as_lineno_2=$LINENO
8905 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8906 test "x$as_lineno_1" != "x$as_lineno_2" &&
8907 test "x$as_lineno_3" = "x$as_lineno_2" || {
8908 # Find who we are. Look in the path if we contain no path at all
8909 # relative or not.
8910 case $0 in
8911 *[\\/]* ) as_myself=$0 ;;
8912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8918done
8919
8920 ;;
8921 esac
8922 # We did not find ourselves, most probably we were run as `sh COMMAND'
8923 # in which case we are not to be found in the path.
8924 if test "x$as_myself" = x; then
8925 as_myself=$0
c906108c 8926 fi
b7026657
AC
8927 if test ! -f "$as_myself"; then
8928 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8929echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8930 { (exit 1); exit 1; }; }
8931 fi
8932 case $CONFIG_SHELL in
8933 '')
8934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8936do
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for as_base in sh bash ksh sh5; do
8940 case $as_dir in
8941 /*)
8942 if ("$as_dir/$as_base" -c '
8943 as_lineno_1=$LINENO
8944 as_lineno_2=$LINENO
8945 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8946 test "x$as_lineno_1" != "x$as_lineno_2" &&
8947 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8948 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8949 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8950 CONFIG_SHELL=$as_dir/$as_base
8951 export CONFIG_SHELL
8952 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8953 fi;;
8954 esac
8955 done
8956done
8957;;
8958 esac
8959
8960 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8961 # uniformly replaced by the line number. The first 'sed' inserts a
8962 # line-number line before each line; the second 'sed' does the real
8963 # work. The second script uses 'N' to pair each line-number line
8964 # with the numbered line, and appends trailing '-' during
8965 # substitution so that $LINENO is not a special case at line end.
8966 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8967 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8968 sed '=' <$as_myself |
8969 sed '
8970 N
8971 s,$,-,
8972 : loop
8973 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8974 t loop
8975 s,-$,,
8976 s,^['$as_cr_digits']*\n,,
8977 ' >$as_me.lineno &&
8978 chmod +x $as_me.lineno ||
8979 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8980echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8981 { (exit 1); exit 1; }; }
8982
8983 # Don't try to exec as it changes $[0], causing all sort of problems
8984 # (the dirname of $[0] is not the place where we might find the
8985 # original and so on. Autoconf is especially sensible to this).
8986 . ./$as_me.lineno
8987 # Exit status is that of the last command.
8988 exit
8989}
8990
8991
8992case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8993 *c*,-n*) ECHO_N= ECHO_C='
8994' ECHO_T=' ' ;;
8995 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8996 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8997esac
8998
8999if expr a : '\(a\)' >/dev/null 2>&1; then
9000 as_expr=expr
9001else
9002 as_expr=false
9003fi
9004
9005rm -f conf$$ conf$$.exe conf$$.file
9006echo >conf$$.file
9007if ln -s conf$$.file conf$$ 2>/dev/null; then
9008 # We could just check for DJGPP; but this test a) works b) is more generic
9009 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9010 if test -f conf$$.exe; then
9011 # Don't use ln at all; we don't have any links
9012 as_ln_s='cp -p'
c906108c 9013 else
b7026657 9014 as_ln_s='ln -s'
c906108c 9015 fi
b7026657
AC
9016elif ln conf$$.file conf$$ 2>/dev/null; then
9017 as_ln_s=ln
9018else
9019 as_ln_s='cp -p'
9020fi
9021rm -f conf$$ conf$$.exe conf$$.file
9022
9023if mkdir -p . 2>/dev/null; then
9024 as_mkdir_p=:
9025else
9026 test -d ./-p && rmdir ./-p
9027 as_mkdir_p=false
9028fi
9029
9030as_executable_p="test -f"
9031
9032# Sed expression to map a string onto a valid CPP name.
9033as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9034
9035# Sed expression to map a string onto a valid variable name.
9036as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9037
9038
9039# IFS
9040# We need space, tab and new line, in precisely that order.
9041as_nl='
9042'
9043IFS=" $as_nl"
9044
9045# CDPATH.
9046$as_unset CDPATH
9047
9048exec 6>&1
9049
9050# Open the log real soon, to keep \$[0] and so on meaningful, and to
9051# report actual input values of CONFIG_FILES etc. instead of their
9052# values after options handling. Logging --version etc. is OK.
9053exec 5>>config.log
9054{
9055 echo
9056 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9057## Running $as_me. ##
9058_ASBOX
9059} >&5
9060cat >&5 <<_CSEOF
9061
9062This file was extended by $as_me, which was
9063generated by GNU Autoconf 2.59. Invocation command line was
9064
9065 CONFIG_FILES = $CONFIG_FILES
9066 CONFIG_HEADERS = $CONFIG_HEADERS
9067 CONFIG_LINKS = $CONFIG_LINKS
9068 CONFIG_COMMANDS = $CONFIG_COMMANDS
9069 $ $0 $@
9070
9071_CSEOF
9072echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9073echo >&5
9074_ACEOF
9075
9076# Files that config.status was made for.
9077if test -n "$ac_config_files"; then
9078 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9079fi
9080
9081if test -n "$ac_config_headers"; then
9082 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9083fi
9084
9085if test -n "$ac_config_links"; then
9086 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9087fi
9088
9089if test -n "$ac_config_commands"; then
9090 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9091fi
9092
9093cat >>$CONFIG_STATUS <<\_ACEOF
9094
9095ac_cs_usage="\
9096\`$as_me' instantiates files from templates according to the
9097current configuration.
9098
9099Usage: $0 [OPTIONS] [FILE]...
9100
9101 -h, --help print this help, then exit
9102 -V, --version print version number, then exit
9103 -q, --quiet do not print progress messages
9104 -d, --debug don't remove temporary files
9105 --recheck update $as_me by reconfiguring in the same conditions
9106 --file=FILE[:TEMPLATE]
9107 instantiate the configuration file FILE
9108 --header=FILE[:TEMPLATE]
9109 instantiate the configuration header FILE
9110
9111Configuration files:
9112$config_files
9113
9114Configuration headers:
9115$config_headers
9116
9117Configuration commands:
9118$config_commands
9119
9120Report bugs to <bug-autoconf@gnu.org>."
9121_ACEOF
9122
9123cat >>$CONFIG_STATUS <<_ACEOF
9124ac_cs_version="\\
9125config.status
9126configured by $0, generated by GNU Autoconf 2.59,
9127 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9128
9129Copyright (C) 2003 Free Software Foundation, Inc.
9130This config.status script is free software; the Free Software Foundation
9131gives unlimited permission to copy, distribute and modify it."
9132srcdir=$srcdir
9133INSTALL="$INSTALL"
9134_ACEOF
9135
9136cat >>$CONFIG_STATUS <<\_ACEOF
9137# If no file are specified by the user, then we need to provide default
9138# value. By we need to know if files were specified by the user.
9139ac_need_defaults=:
9140while test $# != 0
9141do
9142 case $1 in
9143 --*=*)
9144 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9145 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9146 ac_shift=:
9147 ;;
9148 -*)
9149 ac_option=$1
9150 ac_optarg=$2
9151 ac_shift=shift
9152 ;;
9153 *) # This is not an option, so the user has probably given explicit
9154 # arguments.
9155 ac_option=$1
9156 ac_need_defaults=false;;
9157 esac
9158
9159 case $ac_option in
9160 # Handling of the options.
9161_ACEOF
9162cat >>$CONFIG_STATUS <<\_ACEOF
9163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9164 ac_cs_recheck=: ;;
9165 --version | --vers* | -V )
9166 echo "$ac_cs_version"; exit 0 ;;
9167 --he | --h)
9168 # Conflict between --help and --header
9169 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9170Try \`$0 --help' for more information." >&5
9171echo "$as_me: error: ambiguous option: $1
9172Try \`$0 --help' for more information." >&2;}
9173 { (exit 1); exit 1; }; };;
9174 --help | --hel | -h )
9175 echo "$ac_cs_usage"; exit 0 ;;
9176 --debug | --d* | -d )
9177 debug=: ;;
9178 --file | --fil | --fi | --f )
9179 $ac_shift
9180 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9181 ac_need_defaults=false;;
9182 --header | --heade | --head | --hea )
9183 $ac_shift
9184 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9185 ac_need_defaults=false;;
9186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9187 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9188 ac_cs_silent=: ;;
9189
9190 # This is an error.
9191 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9192Try \`$0 --help' for more information." >&5
9193echo "$as_me: error: unrecognized option: $1
9194Try \`$0 --help' for more information." >&2;}
9195 { (exit 1); exit 1; }; } ;;
9196
9197 *) ac_config_targets="$ac_config_targets $1" ;;
9198
9199 esac
9200 shift
c906108c 9201done
b7026657
AC
9202
9203ac_configure_extra_args=
9204
9205if $ac_cs_silent; then
9206 exec 6>/dev/null
9207 ac_configure_extra_args="$ac_configure_extra_args --silent"
9208fi
9209
9210_ACEOF
9211cat >>$CONFIG_STATUS <<_ACEOF
9212if \$ac_cs_recheck; then
9213 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9214 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
c906108c 9215fi
c906108c 9216
b7026657 9217_ACEOF
c906108c 9218
b7026657
AC
9219
9220
9221
9222
9223cat >>$CONFIG_STATUS <<\_ACEOF
9224for ac_config_target in $ac_config_targets
9225do
9226 case "$ac_config_target" in
9227 # Handling of arguments.
9228 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9229 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9230 "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;;
9231 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9232echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9233 { (exit 1); exit 1; }; };;
c906108c 9234 esac
b7026657 9235done
c906108c 9236
b7026657
AC
9237# If the user did not use the arguments to specify the items to instantiate,
9238# then the envvar interface is used. Set only those that are not.
9239# We use the long form for the default assignment because of an extremely
9240# bizarre bug on SunOS 4.1.3.
9241if $ac_need_defaults; then
9242 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9243 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9244 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9245fi
9246
9247# Have a temporary directory for convenience. Make it in the build tree
9248# simply because there is no reason to put it here, and in addition,
9249# creating and moving files from /tmp can sometimes cause problems.
9250# Create a temporary directory, and hook for its removal unless debugging.
9251$debug ||
9252{
9253 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9254 trap '{ (exit 1); exit 1; }' 1 2 13 15
9255}
c906108c 9256
b7026657
AC
9257# Create a (secure) tmp directory for tmp files.
9258
9259{
9260 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9261 test -n "$tmp" && test -d "$tmp"
9262} ||
9263{
9264 tmp=./confstat$$-$RANDOM
9265 (umask 077 && mkdir $tmp)
9266} ||
9267{
9268 echo "$me: cannot create a temporary directory in ." >&2
9269 { (exit 1); exit 1; }
9270}
9271
9272_ACEOF
9273
9274cat >>$CONFIG_STATUS <<_ACEOF
9275
9276#
9277# CONFIG_FILES section.
9278#
9279
9280# No need to generate the scripts if there are no CONFIG_FILES.
9281# This happens for instance when ./config.status config.h
9282if test -n "\$CONFIG_FILES"; then
9283 # Protect against being on the right side of a sed subst in config.status.
9284 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9285 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9286s,@sim_environment@,$sim_environment,;t t
9287s,@sim_alignment@,$sim_alignment,;t t
9288s,@sim_assert@,$sim_assert,;t t
9289s,@sim_bitsize@,$sim_bitsize,;t t
9290s,@sim_endian@,$sim_endian,;t t
9291s,@sim_hostendian@,$sim_hostendian,;t t
9292s,@sim_float@,$sim_float,;t t
9293s,@sim_scache@,$sim_scache,;t t
9294s,@sim_default_model@,$sim_default_model,;t t
9295s,@sim_hw_cflags@,$sim_hw_cflags,;t t
9296s,@sim_hw_objs@,$sim_hw_objs,;t t
9297s,@sim_hw@,$sim_hw,;t t
9298s,@sim_inline@,$sim_inline,;t t
9299s,@sim_packages@,$sim_packages,;t t
9300s,@sim_regparm@,$sim_regparm,;t t
9301s,@sim_reserved_bits@,$sim_reserved_bits,;t t
9302s,@sim_smp@,$sim_smp,;t t
9303s,@sim_stdcall@,$sim_stdcall,;t t
9304s,@sim_xor_endian@,$sim_xor_endian,;t t
9305s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9306s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
9307s,@SHELL@,$SHELL,;t t
9308s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9309s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9310s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9311s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9312s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9313s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9314s,@exec_prefix@,$exec_prefix,;t t
9315s,@prefix@,$prefix,;t t
9316s,@program_transform_name@,$program_transform_name,;t t
9317s,@bindir@,$bindir,;t t
9318s,@sbindir@,$sbindir,;t t
9319s,@libexecdir@,$libexecdir,;t t
9320s,@datadir@,$datadir,;t t
9321s,@sysconfdir@,$sysconfdir,;t t
9322s,@sharedstatedir@,$sharedstatedir,;t t
9323s,@localstatedir@,$localstatedir,;t t
9324s,@libdir@,$libdir,;t t
9325s,@includedir@,$includedir,;t t
9326s,@oldincludedir@,$oldincludedir,;t t
9327s,@infodir@,$infodir,;t t
9328s,@mandir@,$mandir,;t t
9329s,@build_alias@,$build_alias,;t t
9330s,@host_alias@,$host_alias,;t t
9331s,@target_alias@,$target_alias,;t t
9332s,@DEFS@,$DEFS,;t t
9333s,@ECHO_C@,$ECHO_C,;t t
9334s,@ECHO_N@,$ECHO_N,;t t
9335s,@ECHO_T@,$ECHO_T,;t t
9336s,@LIBS@,$LIBS,;t t
9337s,@build@,$build,;t t
9338s,@build_cpu@,$build_cpu,;t t
9339s,@build_vendor@,$build_vendor,;t t
9340s,@build_os@,$build_os,;t t
9341s,@host@,$host,;t t
9342s,@host_cpu@,$host_cpu,;t t
9343s,@host_vendor@,$host_vendor,;t t
9344s,@host_os@,$host_os,;t t
9345s,@target@,$target,;t t
9346s,@target_cpu@,$target_cpu,;t t
9347s,@target_vendor@,$target_vendor,;t t
9348s,@target_os@,$target_os,;t t
9349s,@CC@,$CC,;t t
9350s,@CFLAGS@,$CFLAGS,;t t
9351s,@LDFLAGS@,$LDFLAGS,;t t
9352s,@CPPFLAGS@,$CPPFLAGS,;t t
9353s,@ac_ct_CC@,$ac_ct_CC,;t t
9354s,@EXEEXT@,$EXEEXT,;t t
9355s,@OBJEXT@,$OBJEXT,;t t
9356s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9357s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9358s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9359s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9360s,@HDEFINES@,$HDEFINES,;t t
9361s,@AR@,$AR,;t t
9362s,@RANLIB@,$RANLIB,;t t
9363s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9364s,@SET_MAKE@,$SET_MAKE,;t t
9365s,@CPP@,$CPP,;t t
9366s,@EGREP@,$EGREP,;t t
9367s,@ALLOCA@,$ALLOCA,;t t
9368s,@USE_NLS@,$USE_NLS,;t t
9369s,@MSGFMT@,$MSGFMT,;t t
9370s,@GMSGFMT@,$GMSGFMT,;t t
9371s,@XGETTEXT@,$XGETTEXT,;t t
9372s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9373s,@CATALOGS@,$CATALOGS,;t t
9374s,@CATOBJEXT@,$CATOBJEXT,;t t
9375s,@DATADIRNAME@,$DATADIRNAME,;t t
9376s,@GMOFILES@,$GMOFILES,;t t
9377s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9378s,@INTLDEPS@,$INTLDEPS,;t t
9379s,@INTLLIBS@,$INTLLIBS,;t t
9380s,@INTLOBJS@,$INTLOBJS,;t t
9381s,@POFILES@,$POFILES,;t t
9382s,@POSUB@,$POSUB,;t t
9383s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9384s,@GT_NO@,$GT_NO,;t t
9385s,@GT_YES@,$GT_YES,;t t
9386s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9387s,@l@,$l,;t t
9388s,@MAINT@,$MAINT,;t t
9389s,@sim_bswap@,$sim_bswap,;t t
9390s,@sim_cflags@,$sim_cflags,;t t
9391s,@sim_debug@,$sim_debug,;t t
9392s,@sim_stdio@,$sim_stdio,;t t
9393s,@sim_trace@,$sim_trace,;t t
9394s,@sim_profile@,$sim_profile,;t t
9395s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t
9396s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t
9397s,@LIBOBJS@,$LIBOBJS,;t t
9398s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9399CEOF
9400
9401_ACEOF
9402
9403 cat >>$CONFIG_STATUS <<\_ACEOF
9404 # Split the substitutions into bite-sized pieces for seds with
9405 # small command number limits, like on Digital OSF/1 and HP-UX.
9406 ac_max_sed_lines=48
9407 ac_sed_frag=1 # Number of current file.
9408 ac_beg=1 # First line for current file.
9409 ac_end=$ac_max_sed_lines # Line after last line for current file.
9410 ac_more_lines=:
9411 ac_sed_cmds=
9412 while $ac_more_lines; do
9413 if test $ac_beg -gt 1; then
9414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9415 else
9416 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9417 fi
9418 if test ! -s $tmp/subs.frag; then
9419 ac_more_lines=false
9420 else
9421 # The purpose of the label and of the branching condition is to
9422 # speed up the sed processing (if there are no `@' at all, there
9423 # is no need to browse any of the substitutions).
9424 # These are the two extra sed commands mentioned above.
9425 (echo ':t
9426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9427 if test -z "$ac_sed_cmds"; then
9428 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9429 else
9430 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9431 fi
9432 ac_sed_frag=`expr $ac_sed_frag + 1`
9433 ac_beg=$ac_end
9434 ac_end=`expr $ac_end + $ac_max_sed_lines`
9435 fi
9436 done
9437 if test -z "$ac_sed_cmds"; then
9438 ac_sed_cmds=cat
c906108c 9439 fi
b7026657 9440fi # test -n "$CONFIG_FILES"
c906108c 9441
b7026657
AC
9442_ACEOF
9443cat >>$CONFIG_STATUS <<\_ACEOF
9444for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9446 case $ac_file in
9447 - | *:- | *:-:* ) # input from stdin
9448 cat >$tmp/stdin
9449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9453 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9454 esac
9455
b7026657
AC
9456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9459 X"$ac_file" : 'X\(//\)[^/]' \| \
9460 X"$ac_file" : 'X\(//\)$' \| \
9461 X"$ac_file" : 'X\(/\)' \| \
9462 . : '\(.\)' 2>/dev/null ||
9463echo X"$ac_file" |
9464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9466 /^X\(\/\/\)$/{ s//\1/; q; }
9467 /^X\(\/\).*/{ s//\1/; q; }
9468 s/.*/./; q'`
9469 { if $as_mkdir_p; then
9470 mkdir -p "$ac_dir"
9471 else
9472 as_dir="$ac_dir"
9473 as_dirs=
9474 while test ! -d "$as_dir"; do
9475 as_dirs="$as_dir $as_dirs"
9476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9478 X"$as_dir" : 'X\(//\)[^/]' \| \
9479 X"$as_dir" : 'X\(//\)$' \| \
9480 X"$as_dir" : 'X\(/\)' \| \
9481 . : '\(.\)' 2>/dev/null ||
9482echo X"$as_dir" |
9483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9485 /^X\(\/\/\)$/{ s//\1/; q; }
9486 /^X\(\/\).*/{ s//\1/; q; }
9487 s/.*/./; q'`
9488 done
9489 test ! -n "$as_dirs" || mkdir $as_dirs
9490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9491echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9492 { (exit 1); exit 1; }; }; }
9493
9494 ac_builddir=.
9495
9496if test "$ac_dir" != .; then
9497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9498 # A "../" for each directory in $ac_dir_suffix.
9499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9500else
9501 ac_dir_suffix= ac_top_builddir=
9502fi
c906108c 9503
b7026657
AC
9504case $srcdir in
9505 .) # No --srcdir option. We are building in place.
9506 ac_srcdir=.
9507 if test -z "$ac_top_builddir"; then
9508 ac_top_srcdir=.
9509 else
9510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9511 fi ;;
9512 [\\/]* | ?:[\\/]* ) # Absolute path.
9513 ac_srcdir=$srcdir$ac_dir_suffix;
9514 ac_top_srcdir=$srcdir ;;
9515 *) # Relative path.
9516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9518esac
9519
9520# Do not use `cd foo && pwd` to compute absolute paths, because
9521# the directories may not exist.
9522case `pwd` in
9523.) ac_abs_builddir="$ac_dir";;
9524*)
9525 case "$ac_dir" in
9526 .) ac_abs_builddir=`pwd`;;
9527 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9528 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9529 esac;;
9530esac
9531case $ac_abs_builddir in
9532.) ac_abs_top_builddir=${ac_top_builddir}.;;
9533*)
9534 case ${ac_top_builddir}. in
9535 .) ac_abs_top_builddir=$ac_abs_builddir;;
9536 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9537 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9538 esac;;
9539esac
9540case $ac_abs_builddir in
9541.) ac_abs_srcdir=$ac_srcdir;;
9542*)
9543 case $ac_srcdir in
9544 .) ac_abs_srcdir=$ac_abs_builddir;;
9545 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9546 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9547 esac;;
9548esac
9549case $ac_abs_builddir in
9550.) ac_abs_top_srcdir=$ac_top_srcdir;;
9551*)
9552 case $ac_top_srcdir in
9553 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9554 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9555 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9556 esac;;
9557esac
9558
9559
9560 case $INSTALL in
9561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9562 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c
SS
9563 esac
9564
b7026657
AC
9565 # Let's still pretend it is `configure' which instantiates (i.e., don't
9566 # use $as_me), people would be surprised to read:
9567 # /* config.h. Generated by config.status. */
9568 if test x"$ac_file" = x-; then
9569 configure_input=
9570 else
9571 configure_input="$ac_file. "
9572 fi
9573 configure_input=$configure_input"Generated from `echo $ac_file_in |
9574 sed 's,.*/,,'` by configure."
9575
9576 # First look for the input files in the build tree, otherwise in the
9577 # src tree.
9578 ac_file_inputs=`IFS=:
9579 for f in $ac_file_in; do
9580 case $f in
9581 -) echo $tmp/stdin ;;
9582 [\\/$]*)
9583 # Absolute (can't be DOS-style, as IFS=:)
9584 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9585echo "$as_me: error: cannot find input file: $f" >&2;}
9586 { (exit 1); exit 1; }; }
9587 echo "$f";;
9588 *) # Relative
9589 if test -f "$f"; then
9590 # Build tree
9591 echo "$f"
9592 elif test -f "$srcdir/$f"; then
9593 # Source tree
9594 echo "$srcdir/$f"
9595 else
9596 # /dev/null tree
9597 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9598echo "$as_me: error: cannot find input file: $f" >&2;}
9599 { (exit 1); exit 1; }; }
9600 fi;;
9601 esac
9602 done` || { (exit 1); exit 1; }
33aa0cbb
PB
9603
9604 if test x"$ac_file" != x-; then
9605 { echo "$as_me:$LINENO: creating $ac_file" >&5
9606echo "$as_me: creating $ac_file" >&6;}
9607 rm -f "$ac_file"
9608 fi
b7026657
AC
9609_ACEOF
9610cat >>$CONFIG_STATUS <<_ACEOF
9611 sed "$ac_vpsub
9612$extrasub
9613_ACEOF
9614cat >>$CONFIG_STATUS <<\_ACEOF
9615:t
9616/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9617s,@configure_input@,$configure_input,;t t
9618s,@srcdir@,$ac_srcdir,;t t
9619s,@abs_srcdir@,$ac_abs_srcdir,;t t
9620s,@top_srcdir@,$ac_top_srcdir,;t t
9621s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9622s,@builddir@,$ac_builddir,;t t
9623s,@abs_builddir@,$ac_abs_builddir,;t t
9624s,@top_builddir@,$ac_top_builddir,;t t
9625s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9626s,@INSTALL@,$ac_INSTALL,;t t
9627" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9628 rm -f $tmp/stdin
9629 if test x"$ac_file" != x-; then
9630 mv $tmp/out $ac_file
9631 else
9632 cat $tmp/out
9633 rm -f $tmp/out
9634 fi
9635
9636done
9637_ACEOF
9638cat >>$CONFIG_STATUS <<\_ACEOF
9639
9640#
9641# CONFIG_HEADER section.
9642#
c906108c
SS
9643
9644# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9645# NAME is the cpp macro being defined and VALUE is the value it is being given.
9646#
9647# ac_d sets the value in "#define NAME VALUE" lines.
b7026657
AC
9648ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9649ac_dB='[ ].*$,\1#\2'
9650ac_dC=' '
9651ac_dD=',;t'
9652# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9653ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9654ac_uB='$,\1#\2define\3'
c906108c 9655ac_uC=' '
b7026657
AC
9656ac_uD=',;t'
9657
9658for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
c906108c 9659 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
b7026657
AC
9660 case $ac_file in
9661 - | *:- | *:-:* ) # input from stdin
9662 cat >$tmp/stdin
9663 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9664 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9665 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9667 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
9668 esac
9669
b7026657
AC
9670 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9671echo "$as_me: creating $ac_file" >&6;}
9672
9673 # First look for the input files in the build tree, otherwise in the
9674 # src tree.
9675 ac_file_inputs=`IFS=:
9676 for f in $ac_file_in; do
9677 case $f in
9678 -) echo $tmp/stdin ;;
9679 [\\/$]*)
9680 # Absolute (can't be DOS-style, as IFS=:)
9681 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9682echo "$as_me: error: cannot find input file: $f" >&2;}
9683 { (exit 1); exit 1; }; }
9684 # Do quote $f, to prevent DOS paths from being IFS'd.
9685 echo "$f";;
9686 *) # Relative
9687 if test -f "$f"; then
9688 # Build tree
9689 echo "$f"
9690 elif test -f "$srcdir/$f"; then
9691 # Source tree
9692 echo "$srcdir/$f"
9693 else
9694 # /dev/null tree
9695 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9696echo "$as_me: error: cannot find input file: $f" >&2;}
9697 { (exit 1); exit 1; }; }
9698 fi;;
9699 esac
9700 done` || { (exit 1); exit 1; }
9701 # Remove the trailing spaces.
9702 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9703
9704_ACEOF
9705
9706# Transform confdefs.h into two sed scripts, `conftest.defines' and
9707# `conftest.undefs', that substitutes the proper values into
9708# config.h.in to produce config.h. The first handles `#define'
9709# templates, and the second `#undef' templates.
9710# And first: Protect against being on the right side of a sed subst in
9711# config.status. Protect against being in an unquoted here document
9712# in config.status.
9713rm -f conftest.defines conftest.undefs
9714# Using a here document instead of a string reduces the quoting nightmare.
9715# Putting comments in sed scripts is not portable.
9716#
9717# `end' is used to avoid that the second main sed command (meant for
9718# 0-ary CPP macros) applies to n-ary macro definitions.
9719# See the Autoconf documentation for `clear'.
9720cat >confdef2sed.sed <<\_ACEOF
9721s/[\\&,]/\\&/g
9722s,[\\$`],\\&,g
9723t clear
9724: clear
9725s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9726t end
9727s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9728: end
9729_ACEOF
9730# If some macros were called several times there might be several times
9731# the same #defines, which is useless. Nevertheless, we may not want to
9732# sort them, since we want the *last* AC-DEFINE to be honored.
9733uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9734sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9735rm -f confdef2sed.sed
c906108c
SS
9736
9737# This sed command replaces #undef with comments. This is necessary, for
9738# example, in the case of _POSIX_SOURCE, which is predefined and required
9739# on some systems where configure will not decide to define it.
b7026657
AC
9740cat >>conftest.undefs <<\_ACEOF
9741s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9742_ACEOF
9743
9744# Break up conftest.defines because some shells have a limit on the size
9745# of here documents, and old seds have small limits too (100 cmds).
9746echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9747echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9748echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9749echo ' :' >>$CONFIG_STATUS
9750rm -f conftest.tail
9751while grep . conftest.defines >/dev/null
9752do
9753 # Write a limited-size here document to $tmp/defines.sed.
9754 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9755 # Speed up: don't consider the non `#define' lines.
9756 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9757 # Work around the forget-to-reset-the-flag bug.
9758 echo 't clr' >>$CONFIG_STATUS
9759 echo ': clr' >>$CONFIG_STATUS
9760 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9761 echo 'CEOF
9762 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9763 rm -f $tmp/in
9764 mv $tmp/out $tmp/in
9765' >>$CONFIG_STATUS
9766 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9767 rm -f conftest.defines
9768 mv conftest.tail conftest.defines
9769done
9770rm -f conftest.defines
9771echo ' fi # grep' >>$CONFIG_STATUS
9772echo >>$CONFIG_STATUS
c906108c 9773
b7026657
AC
9774# Break up conftest.undefs because some shells have a limit on the size
9775# of here documents, and old seds have small limits too (100 cmds).
9776echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
c906108c 9777rm -f conftest.tail
b7026657 9778while grep . conftest.undefs >/dev/null
c906108c 9779do
b7026657
AC
9780 # Write a limited-size here document to $tmp/undefs.sed.
9781 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9782 # Speed up: don't consider the non `#undef'
9783 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9784 # Work around the forget-to-reset-the-flag bug.
9785 echo 't clr' >>$CONFIG_STATUS
9786 echo ': clr' >>$CONFIG_STATUS
9787 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
c906108c 9788 echo 'CEOF
b7026657
AC
9789 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9790 rm -f $tmp/in
9791 mv $tmp/out $tmp/in
9792' >>$CONFIG_STATUS
9793 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9794 rm -f conftest.undefs
9795 mv conftest.tail conftest.undefs
c906108c 9796done
b7026657
AC
9797rm -f conftest.undefs
9798
9799cat >>$CONFIG_STATUS <<\_ACEOF
9800 # Let's still pretend it is `configure' which instantiates (i.e., don't
9801 # use $as_me), people would be surprised to read:
9802 # /* config.h. Generated by config.status. */
9803 if test x"$ac_file" = x-; then
9804 echo "/* Generated by configure. */" >$tmp/config.h
9805 else
9806 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9807 fi
9808 cat $tmp/in >>$tmp/config.h
9809 rm -f $tmp/in
9810 if test x"$ac_file" != x-; then
9811 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9812 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9813echo "$as_me: $ac_file is unchanged" >&6;}
9814 else
9815 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9816$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9817 X"$ac_file" : 'X\(//\)[^/]' \| \
9818 X"$ac_file" : 'X\(//\)$' \| \
9819 X"$ac_file" : 'X\(/\)' \| \
9820 . : '\(.\)' 2>/dev/null ||
9821echo X"$ac_file" |
9822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9823 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9824 /^X\(\/\/\)$/{ s//\1/; q; }
9825 /^X\(\/\).*/{ s//\1/; q; }
9826 s/.*/./; q'`
9827 { if $as_mkdir_p; then
9828 mkdir -p "$ac_dir"
c906108c 9829 else
b7026657
AC
9830 as_dir="$ac_dir"
9831 as_dirs=
9832 while test ! -d "$as_dir"; do
9833 as_dirs="$as_dir $as_dirs"
9834 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9835$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9836 X"$as_dir" : 'X\(//\)[^/]' \| \
9837 X"$as_dir" : 'X\(//\)$' \| \
9838 X"$as_dir" : 'X\(/\)' \| \
9839 . : '\(.\)' 2>/dev/null ||
9840echo X"$as_dir" |
9841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9843 /^X\(\/\/\)$/{ s//\1/; q; }
9844 /^X\(\/\).*/{ s//\1/; q; }
9845 s/.*/./; q'`
9846 done
9847 test ! -n "$as_dirs" || mkdir $as_dirs
9848 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9849echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9850 { (exit 1); exit 1; }; }; }
9851
9852 rm -f $ac_file
9853 mv $tmp/config.h $ac_file
c906108c 9854 fi
b7026657
AC
9855 else
9856 cat $tmp/config.h
9857 rm -f $tmp/config.h
c906108c 9858 fi
b7026657
AC
9859done
9860_ACEOF
9861cat >>$CONFIG_STATUS <<\_ACEOF
9862
9863#
9864# CONFIG_COMMANDS section.
9865#
9866for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9867 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9868 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9869 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9870$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9871 X"$ac_dest" : 'X\(//\)[^/]' \| \
9872 X"$ac_dest" : 'X\(//\)$' \| \
9873 X"$ac_dest" : 'X\(/\)' \| \
9874 . : '\(.\)' 2>/dev/null ||
9875echo X"$ac_dest" |
9876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9878 /^X\(\/\/\)$/{ s//\1/; q; }
9879 /^X\(\/\).*/{ s//\1/; q; }
9880 s/.*/./; q'`
9881 { if $as_mkdir_p; then
9882 mkdir -p "$ac_dir"
9883 else
9884 as_dir="$ac_dir"
9885 as_dirs=
9886 while test ! -d "$as_dir"; do
9887 as_dirs="$as_dir $as_dirs"
9888 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9889$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9890 X"$as_dir" : 'X\(//\)[^/]' \| \
9891 X"$as_dir" : 'X\(//\)$' \| \
9892 X"$as_dir" : 'X\(/\)' \| \
9893 . : '\(.\)' 2>/dev/null ||
9894echo X"$as_dir" |
9895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9897 /^X\(\/\/\)$/{ s//\1/; q; }
9898 /^X\(\/\).*/{ s//\1/; q; }
9899 s/.*/./; q'`
9900 done
9901 test ! -n "$as_dirs" || mkdir $as_dirs
9902 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9903echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9904 { (exit 1); exit 1; }; }; }
9905
9906 ac_builddir=.
9907
9908if test "$ac_dir" != .; then
9909 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9910 # A "../" for each directory in $ac_dir_suffix.
9911 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9912else
9913 ac_dir_suffix= ac_top_builddir=
9914fi
9915
9916case $srcdir in
9917 .) # No --srcdir option. We are building in place.
9918 ac_srcdir=.
9919 if test -z "$ac_top_builddir"; then
9920 ac_top_srcdir=.
9921 else
9922 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9923 fi ;;
9924 [\\/]* | ?:[\\/]* ) # Absolute path.
9925 ac_srcdir=$srcdir$ac_dir_suffix;
9926 ac_top_srcdir=$srcdir ;;
9927 *) # Relative path.
9928 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9929 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9930esac
9931
9932# Do not use `cd foo && pwd` to compute absolute paths, because
9933# the directories may not exist.
9934case `pwd` in
9935.) ac_abs_builddir="$ac_dir";;
9936*)
9937 case "$ac_dir" in
9938 .) ac_abs_builddir=`pwd`;;
9939 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9940 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9941 esac;;
9942esac
9943case $ac_abs_builddir in
9944.) ac_abs_top_builddir=${ac_top_builddir}.;;
9945*)
9946 case ${ac_top_builddir}. in
9947 .) ac_abs_top_builddir=$ac_abs_builddir;;
9948 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9949 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9950 esac;;
9951esac
9952case $ac_abs_builddir in
9953.) ac_abs_srcdir=$ac_srcdir;;
9954*)
9955 case $ac_srcdir in
9956 .) ac_abs_srcdir=$ac_abs_builddir;;
9957 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9958 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9959 esac;;
9960esac
9961case $ac_abs_builddir in
9962.) ac_abs_top_srcdir=$ac_top_srcdir;;
9963*)
9964 case $ac_top_srcdir in
9965 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9966 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9967 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9968 esac;;
9969esac
9970
c906108c 9971
b7026657
AC
9972 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9973echo "$as_me: executing $ac_dest commands" >&6;}
9974 case $ac_dest in
9975 default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;;
9976 esac
9977done
9978_ACEOF
c906108c 9979
b7026657
AC
9980cat >>$CONFIG_STATUS <<\_ACEOF
9981
9982{ (exit 0); exit 0; }
9983_ACEOF
c906108c 9984chmod +x $CONFIG_STATUS
b7026657
AC
9985ac_clean_files=$ac_clean_files_save
9986
9987
9988# configure is writing to config.log, and then calls config.status.
9989# config.status does its own redirection, appending to config.log.
9990# Unfortunately, on DOS this fails, as config.log is still kept open
9991# by configure, so config.status won't be able to write to it; its
9992# output is simply discarded. So we exec the FD to /dev/null,
9993# effectively closing config.log, so it can be properly (re)opened and
9994# appended to by config.status. When coming back to configure, we
9995# need to make the FD available again.
9996if test "$no_create" != yes; then
9997 ac_cs_success=:
9998 ac_config_status_args=
9999 test "$silent" = yes &&
10000 ac_config_status_args="$ac_config_status_args --quiet"
10001 exec 5>/dev/null
10002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10003 exec 5>>config.log
10004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10005 # would make configure fail if this is the last instruction.
10006 $ac_cs_success || { (exit 1); exit 1; }
10007fi
c906108c 10008
This page took 0.885127 seconds and 4 git commands to generate.