daily update
[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";;
1e799e28
CD
5315 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5316 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
5317 *) SIM_SUBTARGET="";;
5318esac
5319
5320
5321
5322
5323#
5324# Select the byte order of the target
5325#
5326mips_endian=
5327default_endian=
5328case "${target}" in
5329 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7a292a7a 5330 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
c906108c
SS
5331 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5332 mips16*-*-*) default_endian=BIG_ENDIAN ;;
1e799e28
CD
5333 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5334 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
c906108c
SS
5335 mips*-*-*) default_endian=BIG_ENDIAN ;;
5336 *) default_endian=BIG_ENDIAN ;;
5337esac
5338
5339wire_endian="$mips_endian"
5340default_endian="$default_endian"
81ecdfbb
RW
5341# Check whether --enable-sim-endian was given.
5342if test "${enable_sim_endian+set}" = set; then :
5343 enableval=$enable_sim_endian; case "${enableval}" in
c906108c
SS
5344 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5345 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5346 yes) if test x"$wire_endian" != x; then
5347 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5348 else
5349 if test x"$default_endian" != x; then
5350 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5351 else
5352 echo "No hard-wired endian for target $target" 1>&6
5353 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5354 fi
5355 fi;;
5356 no) if test x"$default_endian" != x; then
5357 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5358 else
5359 if test x"$wire_endian" != x; then
5360 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5361 else
5362 echo "No default endian for target $target" 1>&6
5363 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5364 fi
5365 fi;;
81ecdfbb 5366 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
5367esac
5368if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5369 echo "Setting endian flags = $sim_endian" 6>&1
5370fi
5371else
5372 if test x"$default_endian" != x; then
5373 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5374else
5375 if test x"$wire_endian" != x; then
5376 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5377 else
5378 sim_endian=
5379 fi
5380fi
81ecdfbb
RW
5381fi
5382
c906108c
SS
5383
5384
5385
5386#
5387# Select the bitsize of the target
5388#
5389mips_addr_bitsize=
5390case "${target}" in
109ad085 5391 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
5392 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5393 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
5394 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5395 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
5396 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5397 *) mips_bitsize=64 ; mips_msb=63 ;;
5398esac
5399wire_word_bitsize="$mips_bitsize"
5400wire_word_msb="$mips_msb"
5401wire_address_bitsize="$mips_addr_bitsize"
5402wire_cell_bitsize=""
81ecdfbb
RW
5403# Check whether --enable-sim-bitsize was given.
5404if test "${enable_sim_bitsize+set}" = set; then :
5405 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
5406case "${enableval}" in
5407 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5408 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5409 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5410 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5411 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5412 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5413 else
5414 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5415 fi ;;
5416 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5417 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5418 else
5419 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5420 fi ;;
81ecdfbb 5421 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
5422esac
5423# address bitsize
5424tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5425case x"${tmp}" in
5426 x ) ;;
5427 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5428 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
81ecdfbb 5429 * ) as_fn_error "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
5430esac
5431# cell bitsize
5432tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5433case x"${tmp}" in
5434 x ) ;;
5435 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5436 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
81ecdfbb 5437 * ) as_fn_error "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
5438esac
5439if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5440 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5441fi
5442else
5443 sim_bitsize=""
5444if test x"$wire_word_bitsize" != x; then
5445 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5446fi
5447if test x"$wire_word_msb" != x; then
5448 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5449fi
5450if test x"$wire_address_bitsize" != x; then
5451 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5452fi
5453if test x"$wire_cell_bitsize" != x; then
5454 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5455fi
81ecdfbb
RW
5456fi
5457
c906108c
SS
5458
5459
5460
5461#
5462# Select the floating hardware support of the target
5463#
5464mips_fpu=HARDWARE_FLOATING_POINT
5465mips_fpu_bitsize=
5466case "${target}" in
4b5d35ee 5467 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 5468 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
5469 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5470 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
5471 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5472 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
5473 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5474 *) mips_fpu=HARD_FLOATING_POINT ;;
5475esac
5476
5477default_sim_float="$mips_fpu"
5478default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
5479# Check whether --enable-sim-float was given.
5480if test "${enable_sim_float+set}" = set; then :
5481 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
5482 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5483 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5484 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5485 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
81ecdfbb 5486 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
5487esac
5488if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5489 echo "Setting float flags = $sim_float" 6>&1
5490fi
5491else
b7026657 5492
c906108c
SS
5493sim_float=
5494if test x"${default_sim_float}" != x""; then
5495 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5496fi
5497if test x"${default_sim_float_bitsize}" != x""; then
5498 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5499fi
5500
81ecdfbb
RW
5501fi
5502
c906108c
SS
5503
5504
5505
5506#
5507# Select the level of SMP support
5508#
5509case "${target}" in
5510 *) mips_smp=0 ;;
5511esac
5512
5513default_sim_smp="$mips_smp"
81ecdfbb
RW
5514# Check whether --enable-sim-smp was given.
5515if test "${enable_sim_smp+set}" = set; then :
5516 enableval=$enable_sim_smp; case "${enableval}" in
c906108c
SS
5517 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5518 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5519 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5520esac
5521if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5522 echo "Setting smp flags = $sim_smp" 6>&1
5523fi
5524else
5525 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5526if test x"$silent" != x"yes"; then
5527 echo "Setting smp flags = $sim_smp" 6>&1
5528fi
81ecdfbb
RW
5529fi
5530
c906108c
SS
5531
5532
5533
5534#
5535# Select the IGEN architecture
5536#
5537sim_gen=IGEN
5538sim_igen_machine="-M mipsIV"
139181c8 5539sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
5540sim_igen_filter="32,64,f"
5541sim_m16_filter="16"
4c54fc26
CD
5542sim_mach_default="mips8000"
5543
c906108c
SS
5544case "${target}" in
5545 mips*tx39*) sim_gen=IGEN
5546 sim_igen_filter="32,f"
5547 sim_igen_machine="-M r3900"
5548 ;;
5549 mips64vr43*-*-*) sim_gen=IGEN
5550 sim_igen_machine="-M mipsIV"
4c54fc26 5551 sim_mach_default="mips8000"
c906108c
SS
5552 ;;
5553 mips64vr5*-*-*) sim_gen=IGEN
5554 sim_igen_machine="-M vr5000"
4c54fc26 5555 sim_mach_default="mips5000"
c906108c
SS
5556 ;;
5557 mips64vr41*) sim_gen=M16
5558 sim_igen_machine="-M vr4100"
5559 sim_m16_machine="-M vr4100"
5560 sim_igen_filter="32,64,f"
5561 sim_m16_filter="16"
4c54fc26 5562 sim_mach_default="mips4100"
c906108c 5563 ;;
4c54fc26
CD
5564 mips64vr-*-* | mips64vrel-*-*)
5565 sim_gen=MULTI
5566 sim_multi_configs="\
5567 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5568 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5569 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5570 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5571 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5572 sim_multi_default=mips5000
5573 ;;
109ad085 5574 mips*-sde-elf*) sim_gen=M16
8b082fb1 5575 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
109ad085
TS
5576 sim_m16_machine="-M mips16,mips16e,mips64r2"
5577 sim_igen_filter="32,64,f"
5578 sim_mach_default="mipsisa64r2"
5579 ;;
c906108c
SS
5580 mips64*-*-*) sim_igen_filter="32,64,f"
5581 sim_gen=IGEN
5582 ;;
5583 mips16*-*-*) sim_gen=M16
5584 sim_igen_filter="32,64,f"
5585 sim_m16_filter="16"
5586 ;;
d5fb0879
RS
5587 mipsisa32r2*-*-*) sim_gen=M16
5588 sim_igen_machine="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5589 sim_m16_machine="-M mips16,mips16e,mips32r2"
5590 sim_igen_filter="32,f"
5591 sim_mach_default="mipsisa32r2"
e70cb6cd 5592 ;;
d5fb0879
RS
5593 mipsisa32*-*-*) sim_gen=M16
5594 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
5595 sim_m16_machine="-M mips16,mips16e,mips32"
5596 sim_igen_filter="32,f"
5597 sim_mach_default="mipsisa32"
1e799e28 5598 ;;
d5fb0879
RS
5599 mipsisa64r2*-*-*) sim_gen=M16
5600 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
5601 sim_m16_machine="-M mips16,mips16e,mips64r2"
5602 sim_igen_filter="32,64,f"
5603 sim_mach_default="mipsisa64r2"
e70cb6cd 5604 ;;
7cbea089 5605 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 5606 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 5607 sim_igen_filter="32,64,f"
4c54fc26 5608 sim_mach_default="mips_sb1"
7cbea089 5609 ;;
d5fb0879
RS
5610 mipsisa64*-*-*) sim_gen=M16
5611 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
5612 sim_m16_machine="-M mips16,mips16e,mips64"
5613 sim_igen_filter="32,64,f"
5614 sim_mach_default="mipsisa64"
1e799e28 5615 ;;
109ad085 5616 mips*lsi*) sim_gen=M16
c906108c
SS
5617 sim_igen_machine="-M mipsIII,mips16"
5618 sim_m16_machine="-M mips16,mipsIII"
5619 sim_igen_filter="32,f"
5620 sim_m16_filter="16"
4c54fc26 5621 sim_mach_default="mips4000"
109ad085 5622 ;;
c906108c
SS
5623 mips*-*-*) sim_gen=IGEN
5624 sim_igen_filter="32,f"
5625 ;;
5626esac
4c54fc26
CD
5627
5628# The MULTI generator can combine several simulation engines into one.
5629# executable. A configuration which uses the MULTI should set two
5630# variables: ${sim_multi_configs} and ${sim_multi_default}.
5631#
5632# ${sim_multi_configs} is the list of engines to build. Each
5633# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5634# where:
5635#
5636# - NAME is a C-compatible prefix for the engine,
5637# - MACHINE is a -M argument,
5638# - FILTER is a -F argument, and
5639# - BFDMACHS is a comma-separated list of bfd machines that the
5640# simulator can run.
5641#
5642# Each entry will have a separate simulation engine whose prefix is
5643# m32<NAME>. If the machine list includes "mips16", there will also
5644# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5645# generated using the same machine list as the 32-bit version,
5646# but the filter will be "16" instead of FILTER.
5647#
5648# The simulator compares the bfd mach against BFDMACHS to decide
5649# which engine to use. Entries in BFDMACHS should be bfd_mach
5650# values with "bfd_mach_" removed. ${sim_multi_default} says
5651# which entry should be the default.
5652if test ${sim_gen} = MULTI; then
5653
5654 # Simple sanity check.
5655 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
81ecdfbb 5656 as_fn_error "Error in configure.in: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
5657 fi
5658
5659 # Start in a known state.
5660 rm -f multi-include.h multi-run.c
5661 sim_multi_flags=
5662 sim_multi_src=
5663 sim_multi_obj=multi-run.o
5664 sim_multi_igen_configs=
5665 sim_seen_default=no
5666
5667 cat << __EOF__ > multi-run.c
5668/* Main entry point for MULTI simulators.
2232061b 5669 Copyright (C) 2003, 2007, 2010, 2012 Free Software Foundation, Inc.
4c54fc26
CD
5670
5671 This program is free software; you can redistribute it and/or modify
5672 it under the terms of the GNU General Public License as published by
35ee6e1e 5673 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
5674 (at your option) any later version.
5675
5676 This program is distributed in the hope that it will be useful,
5677 but WITHOUT ANY WARRANTY; without even the implied warranty of
5678 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5679 GNU General Public License for more details.
5680
5681 You should have received a copy of the GNU General Public License
35ee6e1e 5682 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
5683
5684 --
5685
5686 This file was generated by sim/mips/configure. */
5687
5688#include "sim-main.h"
5689#include "multi-include.h"
5690
5691#define SD sd
5692#define CPU cpu
5693
5694void
5695sim_engine_run (SIM_DESC sd,
5696 int next_cpu_nr,
5697 int nr_cpus,
5698 int signal) /* ignore */
5699{
5700 int mach;
5701
5702 if (STATE_ARCHITECTURE (sd) == NULL)
5703 mach = bfd_mach_${sim_multi_default};
5704 else
5705 mach = STATE_ARCHITECTURE (SD)->mach;
5706
5707 switch (mach)
5708 {
5709__EOF__
5710
5711 for fc in ${sim_multi_configs}; do
5712
5713 # Split up the entry. ${c} contains the first three elements.
5714 # Note: outer sqaure brackets are m4 quotes.
5715 c=`echo ${fc} | sed 's/:[^:]*$//'`
5716 bfdmachs=`echo ${fc} | sed 's/.*://'`
5717 name=`echo ${c} | sed 's/:.*//'`
5718 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5719 filter=`echo ${c} | sed 's/.*://'`
5720
5721 # Build the following lists:
5722 #
5723 # sim_multi_flags: all -M and -F flags used by the simulator
5724 # sim_multi_src: all makefile-generated source files
5725 # sim_multi_obj: the objects for ${sim_multi_src}
5726 # sim_multi_igen_configs: igen configuration strings.
5727 #
5728 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5729 # or m16) followed by the NAME, MACHINE and FILTER part of
5730 # the ${sim_multi_configs} entry.
5731 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5732
5733 # Check whether mips16 handling is needed.
5734 case ${c} in
5735 *:*mips16*:*)
5736 # Run igen twice, once for normal mode and once for mips16.
5737 ws="m32 m16"
5738
5739 # The top-level function for the mips16 simulator is
5740 # in a file m16${name}_run.c, generated by the
5741 # tmp-run-multi Makefile rule.
5742 sim_multi_src="${sim_multi_src} m16${name}_run.c"
5743 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
5744 sim_multi_flags="${sim_multi_flags} -F 16"
5745 ;;
5746 *)
5747 ws=m32
5748 ;;
5749 esac
5750
5751 # Now add the list of igen-generated files to ${sim_multi_src}
5752 # and ${sim_multi_obj}.
5753 for w in ${ws}; do
5754 for base in engine icache idecode model semantics support; do
5755 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
5756 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
5757 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
5758 done
5759 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5760 done
5761
5762 # Add an include for the engine.h file. This file declares the
5763 # top-level foo_engine_run() function.
5764 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5765
5766 # Add case statements for this engine to sim_engine_run().
5767 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5768 echo " case bfd_mach_${mach}:" >> multi-run.c
5769 if test ${mach} = ${sim_multi_default}; then
5770 echo " default:" >> multi-run.c
5771 sim_seen_default=yes
5772 fi
5773 done
5774 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5775 >> multi-run.c
5776 echo " break;" >> multi-run.c
5777 done
5778
5779 # Check whether we added a 'default:' label.
5780 if test ${sim_seen_default} = no; then
81ecdfbb 5781 as_fn_error "Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
5782 fi
5783
5784 cat << __EOF__ >> multi-run.c
5785 }
5786}
5787
5788int
5789mips_mach_multi (SIM_DESC sd)
5790{
5791 if (STATE_ARCHITECTURE (sd) == NULL)
5792 return bfd_mach_${sim_multi_default};
5793
5794 switch (STATE_ARCHITECTURE (SD)->mach)
5795 {
5796__EOF__
5797
5798 # Add case statements for this engine to mips_mach_multi().
5799 for fc in ${sim_multi_configs}; do
5800
5801 # Split up the entry. ${c} contains the first three elements.
5802 # Note: outer sqaure brackets are m4 quotes.
5803 c=`echo ${fc} | sed 's/:[^:]*$//'`
5804 bfdmachs=`echo ${fc} | sed 's/.*://'`
5805
5806 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5807 echo " case bfd_mach_${mach}:" >> multi-run.c
5808 done
5809 done
5810
5811 cat << __EOF__ >> multi-run.c
5812 return (STATE_ARCHITECTURE (SD)->mach);
5813 default:
5814 return bfd_mach_${sim_multi_default};
5815 }
5816}
5817__EOF__
5818
5819 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5820else
5821 # For clean-extra
5822 sim_multi_src=doesnt-exist.c
5823
5824 if test x"${sim_mach_default}" = x""; then
81ecdfbb 5825 as_fn_error "Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
5826 fi
5827 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5828fi
c906108c
SS
5829sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5830sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5831
5832
5833
5834
5835
4c54fc26
CD
5836
5837
5838
5839
c906108c
SS
5840#
5841# Add simulated hardware devices
5842#
5843hw_enabled=no
5844case "${target}" in
5845 mips*tx39*)
5846 hw_enabled=yes
b7026657 5847 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
5848 mips_extra_objs="dv-sockser.o"
5849 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5850 ;;
5851 *)
b7026657 5852 mips_extra_objs=""
c906108c
SS
5853 ;;
5854esac
5855
5856if test x"$hw_enabled" = x"yes"; then
5857 sim_hw_p=yes
5858else
5859 sim_hw_p=no
5860fi
5861if test "$hw_devices"; then
6ffe910a 5862 hardware="$hw_devices"
c906108c 5863else
6ffe910a 5864 hardware="cfi core pal glue"
c906108c 5865fi
6ffe910a 5866hardware="$hardware $hw_extra_devices"
c906108c
SS
5867sim_hw_cflags="-DWITH_HW=1"
5868sim_hw="$hardware"
5869sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
81ecdfbb
RW
5870# Check whether --enable-sim-hardware was given.
5871if test "${enable_sim_hardware+set}" = set; then :
5872 enableval=$enable_sim_hardware;
c906108c
SS
5873case "${enableval}" in
5874 yes) sim_hw_p=yes;;
5875 no) sim_hw_p=no;;
5876 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5877 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5878 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5879esac
5880if test "$sim_hw_p" != yes; then
5881 sim_hw_objs=
5882 sim_hw_cflags="-DWITH_HW=0"
5883 sim_hw=
5884else
5885 sim_hw_cflags="-DWITH_HW=1"
5886 # remove duplicates
5887 sim_hw=""
5888 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
5889 for i in $hardware ; do
5890 case " $sim_hw " in
c906108c
SS
5891 *" $i "*) ;;
5892 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5893 esac
5894 done
5895fi
5896if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5897 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5898fi
5899else
b7026657 5900
c906108c
SS
5901if test "$sim_hw_p" != yes; then
5902 sim_hw_objs=
5903 sim_hw_cflags="-DWITH_HW=0"
5904 sim_hw=
5905fi
5906if test x"$silent" != x"yes"; then
5907 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5908fi
81ecdfbb
RW
5909fi
5910
4399a56b
MF
5911case " $hardware " in
5912 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
5913$as_echo_n "checking for log2 in -lm... " >&6; }
5914if test "${ac_cv_lib_m_log2+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 ac_check_lib_save_LIBS=$LIBS
5918LIBS="-lm $LIBS"
5919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920/* end confdefs.h. */
5921
5922/* Override any GCC internal prototype to avoid an error.
5923 Use char because int might match the return type of a GCC
5924 builtin and then its argument prototype would still apply. */
5925#ifdef __cplusplus
5926extern "C"
5927#endif
5928char log2 ();
5929int
5930main ()
5931{
5932return log2 ();
5933 ;
5934 return 0;
5935}
5936_ACEOF
5937if ac_fn_c_try_link "$LINENO"; then :
5938 ac_cv_lib_m_log2=yes
5939else
5940 ac_cv_lib_m_log2=no
5941fi
5942rm -f core conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
5944LIBS=$ac_check_lib_save_LIBS
5945fi
5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
5947$as_echo "$ac_cv_lib_m_log2" >&6; }
5948if test "x$ac_cv_lib_m_log2" = x""yes; then :
5949 cat >>confdefs.h <<_ACEOF
5950#define HAVE_LIBM 1
5951_ACEOF
5952
5953 LIBS="-lm $LIBS"
5954
5955fi
5956;;
5957esac
5958
c906108c
SS
5959
5960
5961
5962# Choose simulator engine
5963case "${target}" in
5964 *) mips_igen_engine="engine.o"
5965 ;;
5966esac
5967
5968
5969
81ecdfbb
RW
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5971$as_echo_n "checking for X... " >&6; }
b7026657 5972
c906108c 5973
81ecdfbb
RW
5974# Check whether --with-x was given.
5975if test "${with_x+set}" = set; then :
5976 withval=$with_x;
5977fi
c906108c
SS
5978
5979# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5980if test "x$with_x" = xno; then
5981 # The user explicitly disabled X.
5982 have_x=disabled
5983else
81ecdfbb
RW
5984 case $x_includes,$x_libraries in #(
5985 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5986 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
c906108c
SS
5988else
5989 # One or both of the vars are not set, and there is no cached value.
b7026657 5990ac_x_includes=no ac_x_libraries=no
81ecdfbb 5991rm -f -r conftest.dir
b7026657
AC
5992if mkdir conftest.dir; then
5993 cd conftest.dir
b7026657 5994 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
5995incroot:
5996 @echo incroot='${INCROOT}'
5997usrlibdir:
5998 @echo usrlibdir='${USRLIBDIR}'
5999libdir:
6000 @echo libdir='${LIBDIR}'
6001_ACEOF
6002 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c 6003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
6004 for ac_var in incroot usrlibdir libdir; do
6005 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6006 done
c906108c 6007 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
6008 for ac_extension in a so sl dylib la dll; do
6009 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6010 test -f "$ac_im_libdir/libX11.$ac_extension"; then
b7026657 6011 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
6012 fi
6013 done
6014 # Screen out bogus values from the imake configuration. They are
6015 # bogus both because they are the default anyway, and because
6016 # using them would break gcc on systems where it needs fixed includes.
b7026657 6017 case $ac_im_incroot in
81ecdfbb 6018 /usr/include) ac_x_includes= ;;
b7026657 6019 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 6020 esac
b7026657 6021 case $ac_im_usrlibdir in
81ecdfbb 6022 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
b7026657 6023 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
6024 esac
6025 fi
6026 cd ..
81ecdfbb 6027 rm -f -r conftest.dir
c906108c
SS
6028fi
6029
b7026657
AC
6030# Standard set of common directories for X headers.
6031# Check X11 before X11Rn because it is often a symlink to the current release.
6032ac_x_header_dirs='
6033/usr/X11/include
81ecdfbb 6034/usr/X11R7/include
b7026657
AC
6035/usr/X11R6/include
6036/usr/X11R5/include
6037/usr/X11R4/include
6038
6039/usr/include/X11
81ecdfbb 6040/usr/include/X11R7
b7026657
AC
6041/usr/include/X11R6
6042/usr/include/X11R5
6043/usr/include/X11R4
6044
6045/usr/local/X11/include
81ecdfbb 6046/usr/local/X11R7/include
b7026657
AC
6047/usr/local/X11R6/include
6048/usr/local/X11R5/include
6049/usr/local/X11R4/include
6050
6051/usr/local/include/X11
81ecdfbb 6052/usr/local/include/X11R7
b7026657
AC
6053/usr/local/include/X11R6
6054/usr/local/include/X11R5
6055/usr/local/include/X11R4
6056
6057/usr/X386/include
6058/usr/x386/include
6059/usr/XFree86/include/X11
6060
6061/usr/include
6062/usr/local/include
6063/usr/unsupported/include
6064/usr/athena/include
6065/usr/local/x11r5/include
6066/usr/lpp/Xamples/include
6067
6068/usr/openwin/include
6069/usr/openwin/share/include'
6070
6071if test "$ac_x_includes" = no; then
81ecdfbb 6072 # Guess where to find include files, by looking for Xlib.h.
c906108c 6073 # First, try using that file with no special directory specified.
81ecdfbb 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6075/* end confdefs.h. */
81ecdfbb 6076#include <X11/Xlib.h>
b7026657 6077_ACEOF
81ecdfbb 6078if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
6079 # We can compile using X headers with no special include directory.
6080ac_x_includes=
6081else
b7026657 6082 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 6083 if test -r "$ac_dir/X11/Xlib.h"; then
b7026657
AC
6084 ac_x_includes=$ac_dir
6085 break
6086 fi
6087done
c906108c 6088fi
b7026657
AC
6089rm -f conftest.err conftest.$ac_ext
6090fi # $ac_x_includes = no
c906108c 6091
b7026657 6092if test "$ac_x_libraries" = no; then
c906108c 6093 # Check for the libraries.
c906108c
SS
6094 # See if we find them without any special options.
6095 # Don't add to $LIBS permanently.
b7026657 6096 ac_save_LIBS=$LIBS
81ecdfbb
RW
6097 LIBS="-lX11 $LIBS"
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 6099/* end confdefs.h. */
81ecdfbb 6100#include <X11/Xlib.h>
b7026657
AC
6101int
6102main ()
6103{
81ecdfbb 6104XrmInitialize ()
b7026657
AC
6105 ;
6106 return 0;
6107}
6108_ACEOF
81ecdfbb 6109if ac_fn_c_try_link "$LINENO"; then :
b7026657 6110 LIBS=$ac_save_LIBS
c906108c
SS
6111# We can link X programs with no special library path.
6112ac_x_libraries=
6113else
81ecdfbb
RW
6114 LIBS=$ac_save_LIBS
6115for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
b7026657 6116do
81ecdfbb
RW
6117 # Don't even attempt the hair of trying to link an X program!
6118 for ac_extension in a so sl dylib la dll; do
6119 if test -r "$ac_dir/libX11.$ac_extension"; then
6120 ac_x_libraries=$ac_dir
6121 break 2
6122 fi
6123 done
6124done
b7026657 6125fi
81ecdfbb
RW
6126rm -f core conftest.err conftest.$ac_objext \
6127 conftest$ac_exeext conftest.$ac_ext
6128fi # $ac_x_libraries = no
b7026657 6129
81ecdfbb
RW
6130case $ac_x_includes,$ac_x_libraries in #(
6131 no,* | *,no | *\'*)
6132 # Didn't find X, or a directory has "'" in its name.
6133 ac_cv_have_x="have_x=no";; #(
6134 *)
6135 # Record where we found X for the cache.
6136 ac_cv_have_x="have_x=yes\
6137 ac_x_includes='$ac_x_includes'\
6138 ac_x_libraries='$ac_x_libraries'"
6139esac
b7026657 6140fi
81ecdfbb
RW
6141;; #(
6142 *) have_x=yes;;
6143 esac
6144 eval "$ac_cv_have_x"
6145fi # $with_x != no
b7026657 6146
81ecdfbb
RW
6147if test "$have_x" != yes; then
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6149$as_echo "$have_x" >&6; }
6150 no_x=yes
b7026657 6151else
81ecdfbb
RW
6152 # If each of the values was on the command line, it overrides each guess.
6153 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6154 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6155 # Update the cache value to reflect the command line values.
6156 ac_cv_have_x="have_x=yes\
6157 ac_x_includes='$x_includes'\
6158 ac_x_libraries='$x_libraries'"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6160$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
b7026657 6161fi
b7026657 6162
81ecdfbb
RW
6163mips_extra_libs=""
6164
6165
6166for ac_header in string.h strings.h stdlib.h stdlib.h
6167do :
6168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6170eval as_val=\$$as_ac_Header
6171 if test "x$as_val" = x""yes; then :
b7026657 6172 cat >>confdefs.h <<_ACEOF
81ecdfbb 6173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657
AC
6174_ACEOF
6175
6176fi
6177
6178done
6179
81ecdfbb
RW
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
6181$as_echo_n "checking for fabs in -lm... " >&6; }
6182if test "${ac_cv_lib_m_fabs+set}" = set; then :
6183 $as_echo_n "(cached) " >&6
b7026657
AC
6184else
6185 ac_check_lib_save_LIBS=$LIBS
6186LIBS="-lm $LIBS"
81ecdfbb 6187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
6188/* end confdefs.h. */
6189
81ecdfbb
RW
6190/* Override any GCC internal prototype to avoid an error.
6191 Use char because int might match the return type of a GCC
6192 builtin and then its argument prototype would still apply. */
b7026657
AC
6193#ifdef __cplusplus
6194extern "C"
6195#endif
b7026657
AC
6196char fabs ();
6197int
6198main ()
6199{
81ecdfbb 6200return fabs ();
b7026657
AC
6201 ;
6202 return 0;
6203}
6204_ACEOF
81ecdfbb 6205if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
6206 ac_cv_lib_m_fabs=yes
6207else
81ecdfbb 6208 ac_cv_lib_m_fabs=no
b7026657 6209fi
81ecdfbb
RW
6210rm -f core conftest.err conftest.$ac_objext \
6211 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
6212LIBS=$ac_check_lib_save_LIBS
6213fi
81ecdfbb
RW
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
6215$as_echo "$ac_cv_lib_m_fabs" >&6; }
6216if test "x$ac_cv_lib_m_fabs" = x""yes; then :
b7026657
AC
6217 cat >>confdefs.h <<_ACEOF
6218#define HAVE_LIBM 1
6219_ACEOF
6220
6221 LIBS="-lm $LIBS"
6222
6223fi
6224
b7026657 6225for ac_func in aint anint sqrt
81ecdfbb
RW
6226do :
6227 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6228ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6229eval as_val=\$$as_ac_var
6230 if test "x$as_val" = x""yes; then :
b7026657 6231 cat >>confdefs.h <<_ACEOF
81ecdfbb 6232#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657
AC
6233_ACEOF
6234
6235fi
6236done
6237
6238
6239
6240ac_sources="$sim_link_files"
6241ac_dests="$sim_link_links"
6242while test -n "$ac_sources"; do
6243 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
6244 set $ac_sources; ac_source=$1; shift; ac_sources=$*
6245 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
6246done
81ecdfbb 6247ac_config_links="$ac_config_links $ac_config_links_1"
b7026657
AC
6248
6249cgen_breaks=""
6250if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
6251cgen_breaks="break cgen_rtx_error";
6252fi
6253
81ecdfbb 6254ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 6255
81ecdfbb 6256ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 6257
81ecdfbb 6258ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 6259
81ecdfbb 6260ac_config_commands="$ac_config_commands Makefile"
38f48d72 6261
81ecdfbb 6262ac_config_commands="$ac_config_commands stamp-h"
38f48d72 6263
b7026657
AC
6264cat >confcache <<\_ACEOF
6265# This file is a shell script that caches the results of configure
6266# tests run on this system so they can be shared between configure
6267# scripts and configure runs, see configure's option --config-cache.
6268# It is not useful on other systems. If it contains results you don't
6269# want to keep, you may remove or edit it.
6270#
6271# config.status only pays attention to the cache file if you give it
6272# the --recheck option to rerun configure.
6273#
6274# `ac_cv_env_foo' variables (set or unset) will be overridden when
6275# loading this file, other *unset* `ac_cv_foo' will be assigned the
6276# following values.
6277
6278_ACEOF
6279
6280# The following way of writing the cache mishandles newlines in values,
6281# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 6282# So, we kill variables containing newlines.
b7026657
AC
6283# Ultrix sh set writes to stderr and can't be redirected directly,
6284# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
6285(
6286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6287 eval ac_val=\$$ac_var
6288 case $ac_val in #(
6289 *${as_nl}*)
6290 case $ac_var in #(
6291 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6292$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6293 esac
6294 case $ac_var in #(
6295 _ | IFS | as_nl) ;; #(
6296 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6297 *) { eval $ac_var=; unset $ac_var;} ;;
6298 esac ;;
6299 esac
6300 done
6301
b7026657 6302 (set) 2>&1 |
81ecdfbb
RW
6303 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6304 *${as_nl}ac_space=\ *)
6305 # `set' does not quote correctly, so add quotes: double-quote
6306 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
6307 sed -n \
6308 "s/'/'\\\\''/g;
6309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 6310 ;; #(
b7026657
AC
6311 *)
6312 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 6313 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 6314 ;;
81ecdfbb
RW
6315 esac |
6316 sort
6317) |
b7026657 6318 sed '
81ecdfbb 6319 /^ac_cv_env_/b end
b7026657 6320 t clear
81ecdfbb 6321 :clear
b7026657
AC
6322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6323 t end
81ecdfbb
RW
6324 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6325 :end' >>confcache
6326if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6327 if test -w "$cache_file"; then
6328 test "x$cache_file" != "x/dev/null" &&
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6330$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657
AC
6331 cat confcache >$cache_file
6332 else
81ecdfbb
RW
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6334$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
6335 fi
6336fi
6337rm -f confcache
6338
6339test "x$prefix" = xNONE && prefix=$ac_default_prefix
6340# Let make expand exec_prefix.
6341test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6342
b7026657
AC
6343DEFS=-DHAVE_CONFIG_H
6344
6345ac_libobjs=
6346ac_ltlibobjs=
6347for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6348 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
6349 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6350 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6351 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6352 # will be set to the directory where LIBOBJS objects are built.
6353 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6354 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
6355done
6356LIBOBJS=$ac_libobjs
6357
6358LTLIBOBJS=$ac_ltlibobjs
6359
6360
db2e4d67
MF
6361if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6362 as_fn_error "conditional \"GMAKE\" was never defined.
6363Usually this means the macro was only invoked conditionally." "$LINENO" 5
6364fi
b7026657 6365
81ecdfbb 6366
b7026657 6367: ${CONFIG_STATUS=./config.status}
81ecdfbb 6368ac_write_fail=0
b7026657
AC
6369ac_clean_files_save=$ac_clean_files
6370ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6372$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6373as_write_fail=0
6374cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
6375#! $SHELL
6376# Generated by $as_me.
6377# Run this file to recreate the current configuration.
6378# Compiler output produced by configure, useful for debugging
6379# configure, is in config.log if it exists.
c906108c 6380
b7026657
AC
6381debug=false
6382ac_cs_recheck=false
6383ac_cs_silent=false
b7026657 6384
81ecdfbb
RW
6385SHELL=\${CONFIG_SHELL-$SHELL}
6386export SHELL
6387_ASEOF
6388cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6389## -------------------- ##
6390## M4sh Initialization. ##
6391## -------------------- ##
6392
6393# Be more Bourne compatible
6394DUALCASE=1; export DUALCASE # for MKS sh
6395if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
6396 emulate sh
6397 NULLCMD=:
81ecdfbb 6398 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
6399 # is contrary to our usage. Disable this feature.
6400 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
6401 setopt NO_GLOB_SUBST
6402else
6403 case `(set -o) 2>/dev/null` in #(
6404 *posix*) :
6405 set -o posix ;; #(
6406 *) :
6407 ;;
6408esac
c906108c 6409fi
b7026657 6410
81ecdfbb
RW
6411
6412as_nl='
6413'
6414export as_nl
6415# Printing a long string crashes Solaris 7 /usr/bin/printf.
6416as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6417as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6418as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6419# Prefer a ksh shell builtin over an external printf program on Solaris,
6420# but without wasting forks for bash or zsh.
6421if test -z "$BASH_VERSION$ZSH_VERSION" \
6422 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6423 as_echo='print -r --'
6424 as_echo_n='print -rn --'
6425elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6426 as_echo='printf %s\n'
6427 as_echo_n='printf %s'
6428else
6429 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6430 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6431 as_echo_n='/usr/ucb/echo -n'
6432 else
6433 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6434 as_echo_n_body='eval
6435 arg=$1;
6436 case $arg in #(
6437 *"$as_nl"*)
6438 expr "X$arg" : "X\\(.*\\)$as_nl";
6439 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6440 esac;
6441 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6442 '
6443 export as_echo_n_body
6444 as_echo_n='sh -c $as_echo_n_body as_echo'
6445 fi
6446 export as_echo_body
6447 as_echo='sh -c $as_echo_body as_echo'
c906108c 6448fi
b7026657 6449
81ecdfbb
RW
6450# The user is always right.
6451if test "${PATH_SEPARATOR+set}" != set; then
6452 PATH_SEPARATOR=:
6453 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6454 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6455 PATH_SEPARATOR=';'
6456 }
6457fi
6458
6459
6460# IFS
6461# We need space, tab and new line, in precisely that order. Quoting is
6462# there to prevent editors from complaining about space-tab.
6463# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6464# splitting by setting IFS to empty value.)
6465IFS=" "" $as_nl"
6466
6467# Find who we are. Look in the path if we contain no directory separator.
6468case $0 in #((
6469 *[\\/]* ) as_myself=$0 ;;
6470 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471for as_dir in $PATH
6472do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6476 done
6477IFS=$as_save_IFS
b7026657 6478
81ecdfbb
RW
6479 ;;
6480esac
6481# We did not find ourselves, most probably we were run as `sh COMMAND'
6482# in which case we are not to be found in the path.
6483if test "x$as_myself" = x; then
6484 as_myself=$0
6485fi
6486if test ! -f "$as_myself"; then
6487 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6488 exit 1
6489fi
6490
6491# Unset variables that we do not need and which cause bugs (e.g. in
6492# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6493# suppresses any "Segmentation fault" message there. '((' could
6494# trigger a bug in pdksh 5.2.14.
6495for as_var in BASH_ENV ENV MAIL MAILPATH
6496do eval test x\${$as_var+set} = xset \
6497 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6498done
b7026657
AC
6499PS1='$ '
6500PS2='> '
6501PS4='+ '
6502
6503# NLS nuisances.
81ecdfbb
RW
6504LC_ALL=C
6505export LC_ALL
6506LANGUAGE=C
6507export LANGUAGE
6508
6509# CDPATH.
6510(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6511
6512
6513# as_fn_error ERROR [LINENO LOG_FD]
6514# ---------------------------------
6515# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6516# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6517# script with status $?, using 1 if that was 0.
6518as_fn_error ()
6519{
6520 as_status=$?; test $as_status -eq 0 && as_status=1
6521 if test "$3"; then
6522 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6523 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 6524 fi
81ecdfbb
RW
6525 $as_echo "$as_me: error: $1" >&2
6526 as_fn_exit $as_status
6527} # as_fn_error
6528
6529
6530# as_fn_set_status STATUS
6531# -----------------------
6532# Set $? to STATUS, without forking.
6533as_fn_set_status ()
6534{
6535 return $1
6536} # as_fn_set_status
6537
6538# as_fn_exit STATUS
6539# -----------------
6540# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6541as_fn_exit ()
6542{
6543 set +e
6544 as_fn_set_status $1
6545 exit $1
6546} # as_fn_exit
6547
6548# as_fn_unset VAR
6549# ---------------
6550# Portably unset VAR.
6551as_fn_unset ()
6552{
6553 { eval $1=; unset $1;}
6554}
6555as_unset=as_fn_unset
6556# as_fn_append VAR VALUE
6557# ----------------------
6558# Append the text in VALUE to the end of the definition contained in VAR. Take
6559# advantage of any shell optimizations that allow amortized linear growth over
6560# repeated appends, instead of the typical quadratic growth present in naive
6561# implementations.
6562if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6563 eval 'as_fn_append ()
6564 {
6565 eval $1+=\$2
6566 }'
6567else
6568 as_fn_append ()
6569 {
6570 eval $1=\$$1\$2
6571 }
6572fi # as_fn_append
c906108c 6573
81ecdfbb
RW
6574# as_fn_arith ARG...
6575# ------------------
6576# Perform arithmetic evaluation on the ARGs, and store the result in the
6577# global $as_val. Take advantage of shells that can avoid forks. The arguments
6578# must be portable across $(()) and expr.
6579if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6580 eval 'as_fn_arith ()
6581 {
6582 as_val=$(( $* ))
6583 }'
6584else
6585 as_fn_arith ()
6586 {
6587 as_val=`expr "$@" || test $? -eq 1`
6588 }
6589fi # as_fn_arith
6590
6591
6592if expr a : '\(a\)' >/dev/null 2>&1 &&
6593 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 6594 as_expr=expr
c906108c 6595else
b7026657 6596 as_expr=false
c906108c 6597fi
c906108c 6598
81ecdfbb 6599if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6600 as_basename=basename
6601else
6602 as_basename=false
c906108c 6603fi
c906108c 6604
81ecdfbb
RW
6605if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6606 as_dirname=dirname
6607else
6608 as_dirname=false
6609fi
c906108c 6610
81ecdfbb 6611as_me=`$as_basename -- "$0" ||
b7026657
AC
6612$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6613 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6615$as_echo X/"$0" |
6616 sed '/^.*\/\([^/][^/]*\)\/*$/{
6617 s//\1/
6618 q
6619 }
6620 /^X\/\(\/\/\)$/{
6621 s//\1/
6622 q
6623 }
6624 /^X\/\(\/\).*/{
6625 s//\1/
6626 q
6627 }
6628 s/.*/./; q'`
b7026657 6629
b7026657
AC
6630# Avoid depending upon Character Ranges.
6631as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6633as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6634as_cr_digits='0123456789'
6635as_cr_alnum=$as_cr_Letters$as_cr_digits
6636
81ecdfbb
RW
6637ECHO_C= ECHO_N= ECHO_T=
6638case `echo -n x` in #(((((
6639-n*)
6640 case `echo 'xy\c'` in
6641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6642 xy) ECHO_C='\c';;
6643 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6644 ECHO_T=' ';;
6645 esac;;
6646*)
6647 ECHO_N='-n';;
b7026657 6648esac
c906108c 6649
81ecdfbb
RW
6650rm -f conf$$ conf$$.exe conf$$.file
6651if test -d conf$$.dir; then
6652 rm -f conf$$.dir/conf$$.file
c906108c 6653else
81ecdfbb
RW
6654 rm -f conf$$.dir
6655 mkdir conf$$.dir 2>/dev/null
c906108c 6656fi
81ecdfbb
RW
6657if (echo >conf$$.file) 2>/dev/null; then
6658 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6659 as_ln_s='ln -s'
81ecdfbb
RW
6660 # ... but there are two gotchas:
6661 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6662 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6663 # In both cases, we have to default to `cp -p'.
6664 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6665 as_ln_s='cp -p'
6666 elif ln conf$$.file conf$$ 2>/dev/null; then
6667 as_ln_s=ln
6668 else
6669 as_ln_s='cp -p'
b7026657 6670 fi
b7026657
AC
6671else
6672 as_ln_s='cp -p'
c906108c 6673fi
81ecdfbb
RW
6674rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6675rmdir conf$$.dir 2>/dev/null
6676
6677
6678# as_fn_mkdir_p
6679# -------------
6680# Create "$as_dir" as a directory, including parents if necessary.
6681as_fn_mkdir_p ()
6682{
6683
6684 case $as_dir in #(
6685 -*) as_dir=./$as_dir;;
6686 esac
6687 test -d "$as_dir" || eval $as_mkdir_p || {
6688 as_dirs=
6689 while :; do
6690 case $as_dir in #(
6691 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6692 *) as_qdir=$as_dir;;
6693 esac
6694 as_dirs="'$as_qdir' $as_dirs"
6695 as_dir=`$as_dirname -- "$as_dir" ||
6696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6697 X"$as_dir" : 'X\(//\)[^/]' \| \
6698 X"$as_dir" : 'X\(//\)$' \| \
6699 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6700$as_echo X"$as_dir" |
6701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6702 s//\1/
6703 q
6704 }
6705 /^X\(\/\/\)[^/].*/{
6706 s//\1/
6707 q
6708 }
6709 /^X\(\/\/\)$/{
6710 s//\1/
6711 q
6712 }
6713 /^X\(\/\).*/{
6714 s//\1/
6715 q
6716 }
6717 s/.*/./; q'`
6718 test -d "$as_dir" && break
6719 done
6720 test -z "$as_dirs" || eval "mkdir $as_dirs"
6721 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6722
c906108c 6723
81ecdfbb 6724} # as_fn_mkdir_p
b7026657 6725if mkdir -p . 2>/dev/null; then
81ecdfbb 6726 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 6727else
b7026657
AC
6728 test -d ./-p && rmdir ./-p
6729 as_mkdir_p=false
c906108c 6730fi
c906108c 6731
81ecdfbb
RW
6732if test -x / >/dev/null 2>&1; then
6733 as_test_x='test -x'
6734else
6735 if ls -dL / >/dev/null 2>&1; then
6736 as_ls_L_option=L
6737 else
6738 as_ls_L_option=
6739 fi
6740 as_test_x='
6741 eval sh -c '\''
6742 if test -d "$1"; then
6743 test -d "$1/.";
6744 else
6745 case $1 in #(
6746 -*)set "./$1";;
6747 esac;
6748 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6749 ???[sx]*):;;*)false;;esac;fi
6750 '\'' sh
6751 '
6752fi
6753as_executable_p=$as_test_x
c906108c 6754
b7026657
AC
6755# Sed expression to map a string onto a valid CPP name.
6756as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 6757
b7026657
AC
6758# Sed expression to map a string onto a valid variable name.
6759as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 6760
b7026657 6761
b7026657 6762exec 6>&1
81ecdfbb
RW
6763## ----------------------------------- ##
6764## Main body of $CONFIG_STATUS script. ##
6765## ----------------------------------- ##
6766_ASEOF
6767test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6768
6769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6770# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6771# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6772# values after options handling.
6773ac_log="
b7026657 6774This file was extended by $as_me, which was
81ecdfbb 6775generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
6776
6777 CONFIG_FILES = $CONFIG_FILES
6778 CONFIG_HEADERS = $CONFIG_HEADERS
6779 CONFIG_LINKS = $CONFIG_LINKS
6780 CONFIG_COMMANDS = $CONFIG_COMMANDS
6781 $ $0 $@
6782
81ecdfbb
RW
6783on `(hostname || uname -n) 2>/dev/null | sed 1q`
6784"
6785
b7026657
AC
6786_ACEOF
6787
81ecdfbb
RW
6788case $ac_config_files in *"
6789"*) set x $ac_config_files; shift; ac_config_files=$*;;
6790esac
379832de 6791
81ecdfbb
RW
6792case $ac_config_headers in *"
6793"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6794esac
b7026657 6795
b7026657 6796
81ecdfbb
RW
6797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6798# Files that config.status was made for.
6799config_files="$ac_config_files"
6800config_headers="$ac_config_headers"
6801config_links="$ac_config_links"
6802config_commands="$ac_config_commands"
b7026657 6803
81ecdfbb 6804_ACEOF
b7026657 6805
81ecdfbb 6806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6807ac_cs_usage="\
81ecdfbb
RW
6808\`$as_me' instantiates files and other configuration actions
6809from templates according to the current configuration. Unless the files
6810and actions are specified as TAGs, all are instantiated by default.
b7026657 6811
81ecdfbb 6812Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6813
6814 -h, --help print this help, then exit
81ecdfbb
RW
6815 -V, --version print version number and configuration settings, then exit
6816 -q, --quiet, --silent
6817 do not print progress messages
b7026657
AC
6818 -d, --debug don't remove temporary files
6819 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6820 --file=FILE[:TEMPLATE]
6821 instantiate the configuration file FILE
6822 --header=FILE[:TEMPLATE]
6823 instantiate the configuration header FILE
b7026657
AC
6824
6825Configuration files:
6826$config_files
6827
6828Configuration headers:
6829$config_headers
6830
6831Configuration links:
6832$config_links
6833
6834Configuration commands:
6835$config_commands
6836
81ecdfbb 6837Report bugs to the package provider."
b7026657 6838
81ecdfbb
RW
6839_ACEOF
6840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
6841ac_cs_version="\\
6842config.status
81ecdfbb
RW
6843configured by $0, generated by GNU Autoconf 2.64,
6844 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 6845
81ecdfbb 6846Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
6847This config.status script is free software; the Free Software Foundation
6848gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6849
6850ac_pwd='$ac_pwd'
6851srcdir='$srcdir'
6852INSTALL='$INSTALL'
6853test -n "\$AWK" || AWK=awk
b7026657
AC
6854_ACEOF
6855
81ecdfbb
RW
6856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6857# The default lists apply if the user does not specify any file.
b7026657
AC
6858ac_need_defaults=:
6859while test $# != 0
6860do
6861 case $1 in
6862 --*=*)
81ecdfbb
RW
6863 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6864 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 6865 ac_shift=:
c906108c 6866 ;;
81ecdfbb 6867 *)
b7026657
AC
6868 ac_option=$1
6869 ac_optarg=$2
6870 ac_shift=shift
c906108c 6871 ;;
b7026657 6872 esac
c906108c 6873
b7026657
AC
6874 case $ac_option in
6875 # Handling of the options.
b7026657
AC
6876 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6877 ac_cs_recheck=: ;;
81ecdfbb
RW
6878 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6879 $as_echo "$ac_cs_version"; exit ;;
6880 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6881 debug=: ;;
6882 --file | --fil | --fi | --f )
6883 $ac_shift
81ecdfbb
RW
6884 case $ac_optarg in
6885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6886 esac
6887 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6888 ac_need_defaults=false;;
6889 --header | --heade | --head | --hea )
6890 $ac_shift
81ecdfbb
RW
6891 case $ac_optarg in
6892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6893 esac
6894 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6895 ac_need_defaults=false;;
81ecdfbb
RW
6896 --he | --h)
6897 # Conflict between --help and --header
6898 as_fn_error "ambiguous option: \`$1'
6899Try \`$0 --help' for more information.";;
6900 --help | --hel | -h )
6901 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6904 ac_cs_silent=: ;;
c906108c 6905
b7026657 6906 # This is an error.
81ecdfbb
RW
6907 -*) as_fn_error "unrecognized option: \`$1'
6908Try \`$0 --help' for more information." ;;
c906108c 6909
81ecdfbb
RW
6910 *) as_fn_append ac_config_targets " $1"
6911 ac_need_defaults=false ;;
b7026657
AC
6912
6913 esac
6914 shift
6915done
6916
6917ac_configure_extra_args=
6918
6919if $ac_cs_silent; then
6920 exec 6>/dev/null
6921 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
6922fi
6923
b7026657 6924_ACEOF
81ecdfbb 6925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6926if \$ac_cs_recheck; then
81ecdfbb
RW
6927 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6928 shift
6929 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6930 CONFIG_SHELL='$SHELL'
6931 export CONFIG_SHELL
6932 exec "\$@"
b7026657 6933fi
c906108c 6934
b7026657 6935_ACEOF
81ecdfbb
RW
6936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6937exec 5>>config.log
6938{
6939 echo
6940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6941## Running $as_me. ##
6942_ASBOX
6943 $as_echo "$ac_log"
6944} >&5
c906108c 6945
81ecdfbb
RW
6946_ACEOF
6947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
6948#
6949# INIT-COMMANDS
6950#
6951ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6952
81ecdfbb 6953_ACEOF
c906108c 6954
81ecdfbb 6955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 6956
81ecdfbb 6957# Handling of arguments.
b7026657 6958for ac_config_target in $ac_config_targets
c906108c 6959do
81ecdfbb
RW
6960 case $ac_config_target in
6961 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 6962 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
81ecdfbb
RW
6963 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6964 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6965 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6966 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6967 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6968 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6969
6970 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
6971 esac
6972done
6973
81ecdfbb 6974
b7026657
AC
6975# If the user did not use the arguments to specify the items to instantiate,
6976# then the envvar interface is used. Set only those that are not.
6977# We use the long form for the default assignment because of an extremely
6978# bizarre bug on SunOS 4.1.3.
6979if $ac_need_defaults; then
6980 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6981 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6982 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6983 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6984fi
6985
6986# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6987# simply because there is no reason against having it here, and in addition,
b7026657 6988# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6989# Hook for its removal unless debugging.
6990# Note that there is a small window in which the directory will not be cleaned:
6991# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
6992$debug ||
6993{
81ecdfbb
RW
6994 tmp=
6995 trap 'exit_status=$?
6996 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6997' 0
6998 trap 'as_fn_exit 1' 1 2 13 15
b7026657 6999}
b7026657 7000# Create a (secure) tmp directory for tmp files.
c906108c 7001
b7026657 7002{
81ecdfbb 7003 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
7004 test -n "$tmp" && test -d "$tmp"
7005} ||
7006{
81ecdfbb
RW
7007 tmp=./conf$$-$RANDOM
7008 (umask 077 && mkdir "$tmp")
7009} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
b7026657 7010
81ecdfbb
RW
7011# Set up the scripts for CONFIG_FILES section.
7012# No need to generate them if there are no CONFIG_FILES.
7013# This happens for instance with `./config.status config.h'.
7014if test -n "$CONFIG_FILES"; then
b7026657 7015
c906108c 7016
81ecdfbb
RW
7017ac_cr=`echo X | tr X '\015'`
7018# On cygwin, bash can eat \r inside `` if the user requested igncr.
7019# But we know of no other shell where ac_cr would be empty at this
7020# point, so we can use a bashism as a fallback.
7021if test "x$ac_cr" = x; then
7022 eval ac_cr=\$\'\\r\'
7023fi
7024ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7025if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7026 ac_cs_awk_cr='\r'
7027else
7028 ac_cs_awk_cr=$ac_cr
7029fi
b7026657 7030
81ecdfbb 7031echo 'BEGIN {' >"$tmp/subs1.awk" &&
b7026657
AC
7032_ACEOF
7033
c906108c 7034
81ecdfbb
RW
7035{
7036 echo "cat >conf$$subs.awk <<_ACEOF" &&
7037 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7038 echo "_ACEOF"
7039} >conf$$subs.sh ||
7040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7041ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7042ac_delim='%!_!# '
7043for ac_last_try in false false false false false :; do
7044 . ./conf$$subs.sh ||
7045 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7046
7047 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7048 if test $ac_delim_n = $ac_delim_num; then
7049 break
7050 elif $ac_last_try; then
7051 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 7052 else
81ecdfbb
RW
7053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7054 fi
7055done
7056rm -f conf$$subs.sh
7057
7058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7059cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7060_ACEOF
7061sed -n '
7062h
7063s/^/S["/; s/!.*/"]=/
7064p
7065g
7066s/^[^!]*!//
7067:repl
7068t repl
7069s/'"$ac_delim"'$//
7070t delim
7071:nl
7072h
7073s/\(.\{148\}\).*/\1/
7074t more1
7075s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7076p
7077n
7078b repl
7079:more1
7080s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7081p
7082g
7083s/.\{148\}//
7084t nl
7085:delim
7086h
7087s/\(.\{148\}\).*/\1/
7088t more2
7089s/["\\]/\\&/g; s/^/"/; s/$/"/
7090p
7091b
7092:more2
7093s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7094p
7095g
7096s/.\{148\}//
7097t delim
7098' <conf$$subs.awk | sed '
7099/^[^""]/{
7100 N
7101 s/\n//
7102}
7103' >>$CONFIG_STATUS || ac_write_fail=1
7104rm -f conf$$subs.awk
7105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7106_ACAWK
7107cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7108 for (key in S) S_is_set[key] = 1
7109 FS = "\a"
b7026657 7110
81ecdfbb
RW
7111}
7112{
7113 line = $ 0
7114 nfields = split(line, field, "@")
7115 substed = 0
7116 len = length(field[1])
7117 for (i = 2; i < nfields; i++) {
7118 key = field[i]
7119 keylen = length(key)
7120 if (S_is_set[key]) {
7121 value = S[key]
7122 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7123 len += length(value) + length(field[++i])
7124 substed = 1
7125 } else
7126 len += 1 + keylen
7127 }
7128
7129 print line
7130}
c906108c 7131
81ecdfbb
RW
7132_ACAWK
7133_ACEOF
7134cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7135if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7136 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 7137else
81ecdfbb
RW
7138 cat
7139fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7140 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7141_ACEOF
b7026657 7142
81ecdfbb
RW
7143# VPATH may cause trouble with some makes, so we remove $(srcdir),
7144# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7145# trailing colons and then remove the whole line if VPATH becomes empty
7146# (actually we leave an empty line to preserve line numbers).
7147if test "x$srcdir" = x.; then
7148 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7149s/:*\$(srcdir):*/:/
7150s/:*\${srcdir}:*/:/
7151s/:*@srcdir@:*/:/
7152s/^\([^=]*=[ ]*\):*/\1/
7153s/:*$//
7154s/^[^=]*=[ ]*$//
7155}'
7156fi
c906108c 7157
81ecdfbb
RW
7158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7159fi # test -n "$CONFIG_FILES"
c906108c 7160
81ecdfbb
RW
7161# Set up the scripts for CONFIG_HEADERS section.
7162# No need to generate them if there are no CONFIG_HEADERS.
7163# This happens for instance with `./config.status Makefile'.
7164if test -n "$CONFIG_HEADERS"; then
7165cat >"$tmp/defines.awk" <<\_ACAWK ||
7166BEGIN {
7167_ACEOF
b7026657 7168
81ecdfbb
RW
7169# Transform confdefs.h into an awk script `defines.awk', embedded as
7170# here-document in config.status, that substitutes the proper values into
7171# config.h.in to produce config.h.
c906108c 7172
81ecdfbb
RW
7173# Create a delimiter string that does not exist in confdefs.h, to ease
7174# handling of long lines.
7175ac_delim='%!_!# '
7176for ac_last_try in false false :; do
7177 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7178 if test -z "$ac_t"; then
7179 break
7180 elif $ac_last_try; then
7181 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 7182 else
81ecdfbb 7183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 7184 fi
b7026657 7185done
81ecdfbb
RW
7186
7187# For the awk script, D is an array of macro values keyed by name,
7188# likewise P contains macro parameters if any. Preserve backslash
7189# newline sequences.
7190
7191ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7192sed -n '
7193s/.\{148\}/&'"$ac_delim"'/g
7194t rset
7195:rset
7196s/^[ ]*#[ ]*define[ ][ ]*/ /
7197t def
7198d
7199:def
7200s/\\$//
7201t bsnl
7202s/["\\]/\\&/g
7203s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7204D["\1"]=" \3"/p
7205s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7206d
7207:bsnl
7208s/["\\]/\\&/g
7209s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7210D["\1"]=" \3\\\\\\n"\\/p
7211t cont
7212s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7213t cont
7214d
7215:cont
7216n
7217s/.\{148\}/&'"$ac_delim"'/g
7218t clear
7219:clear
7220s/\\$//
7221t bsnlc
7222s/["\\]/\\&/g; s/^/"/; s/$/"/p
7223d
7224:bsnlc
7225s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7226b cont
7227' <confdefs.h | sed '
7228s/'"$ac_delim"'/"\\\
7229"/g' >>$CONFIG_STATUS || ac_write_fail=1
7230
7231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7232 for (key in D) D_is_set[key] = 1
7233 FS = "\a"
7234}
7235/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7236 line = \$ 0
7237 split(line, arg, " ")
7238 if (arg[1] == "#") {
7239 defundef = arg[2]
7240 mac1 = arg[3]
7241 } else {
7242 defundef = substr(arg[1], 2)
7243 mac1 = arg[2]
7244 }
7245 split(mac1, mac2, "(") #)
7246 macro = mac2[1]
7247 prefix = substr(line, 1, index(line, defundef) - 1)
7248 if (D_is_set[macro]) {
7249 # Preserve the white space surrounding the "#".
7250 print prefix "define", macro P[macro] D[macro]
7251 next
7252 } else {
7253 # Replace #undef with comments. This is necessary, for example,
7254 # in the case of _POSIX_SOURCE, which is predefined and required
7255 # on some systems where configure will not decide to define it.
7256 if (defundef == "undef") {
7257 print "/*", prefix defundef, macro, "*/"
7258 next
7259 }
7260 }
7261}
7262{ print }
7263_ACAWK
b7026657 7264_ACEOF
81ecdfbb
RW
7265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7266 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7267fi # test -n "$CONFIG_HEADERS"
b7026657 7268
c906108c 7269
81ecdfbb
RW
7270eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
7271shift
7272for ac_tag
7273do
7274 case $ac_tag in
7275 :[FHLC]) ac_mode=$ac_tag; continue;;
7276 esac
7277 case $ac_mode$ac_tag in
7278 :[FHL]*:*);;
7279 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7280 :[FH]-) ac_tag=-:-;;
7281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 7282 esac
81ecdfbb
RW
7283 ac_save_IFS=$IFS
7284 IFS=:
7285 set x $ac_tag
7286 IFS=$ac_save_IFS
7287 shift
7288 ac_file=$1
7289 shift
c906108c 7290
81ecdfbb
RW
7291 case $ac_mode in
7292 :L) ac_source=$1;;
7293 :[FH])
7294 ac_file_inputs=
7295 for ac_f
7296 do
7297 case $ac_f in
7298 -) ac_f="$tmp/stdin";;
7299 *) # Look for the file first in the build tree, then in the source tree
7300 # (if the path is not absolute). The absolute path cannot be DOS-style,
7301 # because $ac_f cannot contain `:'.
7302 test -f "$ac_f" ||
7303 case $ac_f in
7304 [\\/$]*) false;;
7305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7306 esac ||
7307 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 7308 esac
81ecdfbb
RW
7309 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7310 as_fn_append ac_file_inputs " '$ac_f'"
7311 done
b7026657 7312
81ecdfbb
RW
7313 # Let's still pretend it is `configure' which instantiates (i.e., don't
7314 # use $as_me), people would be surprised to read:
7315 # /* config.h. Generated by config.status. */
7316 configure_input='Generated from '`
7317 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7318 `' by configure.'
7319 if test x"$ac_file" != x-; then
7320 configure_input="$ac_file. $configure_input"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7322$as_echo "$as_me: creating $ac_file" >&6;}
7323 fi
7324 # Neutralize special characters interpreted by sed in replacement strings.
7325 case $configure_input in #(
7326 *\&* | *\|* | *\\* )
7327 ac_sed_conf_input=`$as_echo "$configure_input" |
7328 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7329 *) ac_sed_conf_input=$configure_input;;
7330 esac
b7026657 7331
81ecdfbb
RW
7332 case $ac_tag in
7333 *:-:* | *:-) cat >"$tmp/stdin" \
7334 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7335 esac
7336 ;;
7337 esac
b7026657 7338
81ecdfbb 7339 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
7340$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7341 X"$ac_file" : 'X\(//\)[^/]' \| \
7342 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
7343 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7344$as_echo X"$ac_file" |
7345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7346 s//\1/
7347 q
7348 }
7349 /^X\(\/\/\)[^/].*/{
7350 s//\1/
7351 q
7352 }
7353 /^X\(\/\/\)$/{
7354 s//\1/
7355 q
7356 }
7357 /^X\(\/\).*/{
7358 s//\1/
7359 q
7360 }
7361 s/.*/./; q'`
7362 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
7363 ac_builddir=.
7364
81ecdfbb
RW
7365case "$ac_dir" in
7366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7367*)
7368 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7369 # A ".." for each directory in $ac_dir_suffix.
7370 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7371 case $ac_top_builddir_sub in
7372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7374 esac ;;
7375esac
7376ac_abs_top_builddir=$ac_pwd
7377ac_abs_builddir=$ac_pwd$ac_dir_suffix
7378# for backward compatibility:
7379ac_top_builddir=$ac_top_build_prefix
b7026657
AC
7380
7381case $srcdir in
81ecdfbb 7382 .) # We are building in place.
b7026657 7383 ac_srcdir=.
81ecdfbb
RW
7384 ac_top_srcdir=$ac_top_builddir_sub
7385 ac_abs_top_srcdir=$ac_pwd ;;
7386 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 7387 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
7388 ac_top_srcdir=$srcdir
7389 ac_abs_top_srcdir=$srcdir ;;
7390 *) # Relative name.
7391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7392 ac_top_srcdir=$ac_top_build_prefix$srcdir
7393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 7394esac
81ecdfbb 7395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 7396
c906108c 7397
81ecdfbb
RW
7398 case $ac_mode in
7399 :F)
7400 #
7401 # CONFIG_FILE
7402 #
b7026657 7403
81ecdfbb
RW
7404 case $INSTALL in
7405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7406 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 7407 esac
81ecdfbb 7408_ACEOF
c906108c 7409
81ecdfbb
RW
7410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7411# If the template does not know about datarootdir, expand it.
7412# FIXME: This hack should be removed a few years after 2.60.
7413ac_datarootdir_hack=; ac_datarootdir_seen=
7414ac_sed_dataroot='
7415/datarootdir/ {
7416 p
7417 q
7418}
7419/@datadir@/p
7420/@docdir@/p
7421/@infodir@/p
7422/@localedir@/p
7423/@mandir@/p'
7424case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7425*datarootdir*) ac_datarootdir_seen=yes;;
7426*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7428$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7429_ACEOF
7430cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7431 ac_datarootdir_hack='
7432 s&@datadir@&$datadir&g
7433 s&@docdir@&$docdir&g
7434 s&@infodir@&$infodir&g
7435 s&@localedir@&$localedir&g
7436 s&@mandir@&$mandir&g
7437 s&\\\${datarootdir}&$datarootdir&g' ;;
7438esac
b7026657 7439_ACEOF
b7026657 7440
81ecdfbb
RW
7441# Neutralize VPATH when `$srcdir' = `.'.
7442# Shell code in configure.ac might set extrasub.
7443# FIXME: do we really want to maintain this feature?
7444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7445ac_sed_extra="$ac_vpsub
7446$extrasub
7447_ACEOF
7448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7449:t
7450/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7451s|@configure_input@|$ac_sed_conf_input|;t t
7452s&@top_builddir@&$ac_top_builddir_sub&;t t
7453s&@top_build_prefix@&$ac_top_build_prefix&;t t
7454s&@srcdir@&$ac_srcdir&;t t
7455s&@abs_srcdir@&$ac_abs_srcdir&;t t
7456s&@top_srcdir@&$ac_top_srcdir&;t t
7457s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7458s&@builddir@&$ac_builddir&;t t
7459s&@abs_builddir@&$ac_abs_builddir&;t t
7460s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7461s&@INSTALL@&$ac_INSTALL&;t t
7462$ac_datarootdir_hack
7463"
7464eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7465 || as_fn_error "could not create $ac_file" "$LINENO" 5
7466
7467test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7468 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7469 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7471which seems to be undefined. Please make sure it is defined." >&5
7472$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7473which seems to be undefined. Please make sure it is defined." >&2;}
7474
7475 rm -f "$tmp/stdin"
7476 case $ac_file in
7477 -) cat "$tmp/out" && rm -f "$tmp/out";;
7478 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7479 esac \
7480 || as_fn_error "could not create $ac_file" "$LINENO" 5
7481 ;;
7482 :H)
7483 #
7484 # CONFIG_HEADER
7485 #
7486 if test x"$ac_file" != x-; then
7487 {
7488 $as_echo "/* $configure_input */" \
7489 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7490 } >"$tmp/config.h" \
7491 || as_fn_error "could not create $ac_file" "$LINENO" 5
7492 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7494$as_echo "$as_me: $ac_file is unchanged" >&6;}
7495 else
7496 rm -f "$ac_file"
7497 mv "$tmp/config.h" "$ac_file" \
7498 || as_fn_error "could not create $ac_file" "$LINENO" 5
7499 fi
b7026657 7500 else
81ecdfbb
RW
7501 $as_echo "/* $configure_input */" \
7502 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7503 || as_fn_error "could not create -" "$LINENO" 5
7504 fi
7505 ;;
7506 :L)
7507 #
7508 # CONFIG_LINK
7509 #
b7026657 7510
81ecdfbb
RW
7511 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
7512 :
7513 else
7514 # Prefer the file from the source tree if names are identical.
7515 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7516 ac_source=$srcdir/$ac_source
7517 fi
b7026657 7518
81ecdfbb
RW
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7520$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
c906108c 7521
81ecdfbb
RW
7522 if test ! -r "$ac_source"; then
7523 as_fn_error "$ac_source: file not found" "$LINENO" 5
7524 fi
7525 rm -f "$ac_file"
b7026657 7526
81ecdfbb
RW
7527 # Try a relative symlink, then a hard link, then a copy.
7528 case $srcdir in
7529 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7530 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7531 esac
7532 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7533 ln "$ac_source" "$ac_file" 2>/dev/null ||
7534 cp -p "$ac_source" "$ac_file" ||
7535 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7536 fi
7537 ;;
7538 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7539$as_echo "$as_me: executing $ac_file commands" >&6;}
7540 ;;
7541 esac
b7026657
AC
7542
7543
81ecdfbb 7544 case $ac_file$ac_mode in
db2e4d67 7545 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
81ecdfbb 7546 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
7547 rm -f Makesim1.tmp Makesim2.tmp Makefile
7548 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7549 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7550 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
7551 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7552 <Makefile.sim >Makefile
38f48d72 7553 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 7554 ;;
81ecdfbb
RW
7555 "stamp-h":C) echo > stamp-h ;;
7556
b7026657 7557 esac
81ecdfbb 7558done # for ac_tag
c906108c 7559
b7026657 7560
81ecdfbb 7561as_fn_exit 0
b7026657 7562_ACEOF
b7026657
AC
7563ac_clean_files=$ac_clean_files_save
7564
81ecdfbb
RW
7565test $ac_write_fail = 0 ||
7566 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7567
b7026657
AC
7568
7569# configure is writing to config.log, and then calls config.status.
7570# config.status does its own redirection, appending to config.log.
7571# Unfortunately, on DOS this fails, as config.log is still kept open
7572# by configure, so config.status won't be able to write to it; its
7573# output is simply discarded. So we exec the FD to /dev/null,
7574# effectively closing config.log, so it can be properly (re)opened and
7575# appended to by config.status. When coming back to configure, we
7576# need to make the FD available again.
7577if test "$no_create" != yes; then
7578 ac_cs_success=:
7579 ac_config_status_args=
7580 test "$silent" = yes &&
7581 ac_config_status_args="$ac_config_status_args --quiet"
7582 exec 5>/dev/null
7583 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7584 exec 5>>config.log
7585 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7586 # would make configure fail if this is the last instruction.
81ecdfbb
RW
7587 $ac_cs_success || as_fn_exit $?
7588fi
7589if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7591$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 7592fi
c906108c
SS
7593
7594
This page took 1.013121 seconds and 4 git commands to generate.