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