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