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