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