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