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