* common/aclocal.m4: Add include of ../../config/zlib.m4.
[deliverable/binutils-gdb.git] / sim / mips / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
b7026657 8#
b7026657
AC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c906108c 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b7026657 31fi
c906108c 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
b7026657 79fi
c906108c
SS
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
b7026657
AC
121PS1='$ '
122PS2='> '
123PS4='+ '
c906108c 124
b7026657 125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
b7026657 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
b7026657 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
b7026657 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
c906108c 372
81ecdfbb
RW
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
375 as_expr=expr
376else
377 as_expr=false
378fi
c906108c 379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
381 as_basename=basename
382else
383 as_basename=false
384fi
c906108c 385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c906108c 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
b7026657
AC
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c906108c 410
b7026657
AC
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
c906108c 417
c906108c 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
b7026657 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b7026657 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 436 t loop
81ecdfbb 437 s/-\n.*//
b7026657 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
b7026657
AC
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b7026657
AC
446 # Exit status is that of the last command.
447 exit
448}
c906108c 449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
b7026657 461esac
c906108c 462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b7026657 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b7026657 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
b7026657 483 fi
b7026657
AC
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c906108c 489
b7026657 490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
c906108c 496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c906108c 519
b7026657
AC
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 522
b7026657
AC
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c
SS
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
c906108c 528
b7026657
AC
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 533
c906108c 534#
b7026657 535# Initializations.
c906108c 536#
b7026657 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
b7026657 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
b7026657
AC
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
b7026657
AC
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
b7026657
AC
553
554ac_unique_file="Makefile.in"
555# Factoring default headers for most tests.
556ac_includes_default="\
557#include <stdio.h>
81ecdfbb 558#ifdef HAVE_SYS_TYPES_H
b7026657
AC
559# include <sys/types.h>
560#endif
81ecdfbb 561#ifdef HAVE_SYS_STAT_H
b7026657
AC
562# include <sys/stat.h>
563#endif
81ecdfbb 564#ifdef STDC_HEADERS
b7026657
AC
565# include <stdlib.h>
566# include <stddef.h>
567#else
81ecdfbb 568# ifdef HAVE_STDLIB_H
b7026657
AC
569# include <stdlib.h>
570# endif
571#endif
81ecdfbb
RW
572#ifdef HAVE_STRING_H
573# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
574# include <memory.h>
575# endif
576# include <string.h>
577#endif
81ecdfbb 578#ifdef HAVE_STRINGS_H
b7026657
AC
579# include <strings.h>
580#endif
81ecdfbb 581#ifdef HAVE_INTTYPES_H
b7026657 582# include <inttypes.h>
b7026657 583#endif
81ecdfbb
RW
584#ifdef HAVE_STDINT_H
585# include <stdint.h>
586#endif
587#ifdef HAVE_UNISTD_H
b7026657
AC
588# include <unistd.h>
589#endif"
c906108c 590
81ecdfbb
RW
591ac_subst_vars='LTLIBOBJS
592LIBOBJS
593cgen_breaks
594mips_extra_libs
595XMKMF
596mips_igen_engine
597mips_extra_objs
598sim_multi_obj
599sim_multi_src
600sim_multi_igen_configs
601sim_multi_flags
602sim_gen
603sim_m16_flags
604sim_igen_flags
605SIM_SUBTARGET
606REPORT_BUGS_TEXI
607REPORT_BUGS_TO
608PKGVERSION
609sim_profile
610sim_trace
611sim_stdio
612sim_debug
613sim_cflags
614sim_bswap
615MAINT
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
638OBJEXT
639EXEEXT
640ac_ct_CC
641CPPFLAGS
642LDFLAGS
643CFLAGS
644CC
645target_os
646target_vendor
647target_cpu
648target
649host_os
650host_vendor
651host_cpu
652host
653build_os
654build_vendor
655build_cpu
656build
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)
5912fadd 1396 --with-zlib include zlib support (auto/yes/no)
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
81ecdfbb 2190ac_config_headers="$ac_config_headers config.h:config.in"
35695fd6
AC
2191
2192
2193# This file contains common code used by all simulators.
2194#
2195# SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2196# directory. It is intended to be invoked before any target specific stuff.
2197# SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2198# It is intended to be invoked last.
2199#
2200# The simulator's configure.in should look like:
2201#
2202# dnl Process this file with autoconf to produce a configure script.
2203# sinclude(../common/aclocal.m4)
2204# AC_PREREQ(2.5)dnl
2205# AC_INIT(Makefile.in)
2206#
2207# SIM_AC_COMMON
2208#
2209# ... target specific stuff ...
2210#
2211# SIM_AC_OUTPUT
2212
d6416cdc
RW
2213# Include global overrides and fixes for Autoconf.
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
d6416cdc
RW
2241
2242
2243
2244
d6416cdc
RW
2245
2246
2247
2248
2249
2250
35695fd6
AC
2251
2252
2253
2254
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
5912fadd
JB
2293
2294
2295
2296
35695fd6
AC
2297
2298
2299
2300
2301
2302sim_inline="-DDEFAULT_INLINE=0"
2303
2304
2305
2306
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
20e95c23 2339# intl sister-directory configuration rules.
35695fd6 2340#
35695fd6 2341
20e95c23
DJ
2342# The idea behind this macro is that there's no need to repeat all the
2343# autoconf probes done by the intl directory - it's already done them
2344# for us. In fact, there's no need even to look at the cache for the
2345# answers. All we need to do is nab a few pieces of information.
2346# The intl directory is set up to make this easy, by generating a
2347# small file which can be sourced as a shell script; then we produce
2348# the necessary substitutions and definitions for this directory.
35695fd6
AC
2349
2350
6efef468
JM
2351
2352# Autoconf M4 include file defining utility macros for complex Canadian
2353# cross builds.
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363####
2364# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2365# or AC_INIT.
2366# These demand that AC_CANONICAL_SYSTEM be called beforehand.
2367
2368####
2369# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2370# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2371
2372
2373####
2374# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2375# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2376
2377
2378
2379# Backported from Autoconf 2.5x; can go away when and if
2380# we switch. Put the OS path separator in $PATH_SEPARATOR.
2381
2382
2383
2384
2385# ACX_HAVE_GCC_FOR_TARGET
2386# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2387
2388
2389# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2390# Searching for installed target binutils. We need to take extra care,
2391# else we may find the wrong assembler, linker, etc., and lose.
2392#
2393# First try --with-build-time-tools, if specified.
2394#
2395# For build != host, we ask the installed GCC for the name of the tool it
2396# uses, and accept it if it is an absolute path. This is because the
2397# only good choice for a compiler is the same GCC version that is being
2398# installed (or we couldn't make target libraries), and we assume that
2399# on the host system we'll have not only the same GCC version, but also
2400# the same binutils version.
2401#
2402# For build == host, search the same directories that the installed
2403# compiler will search. We used to do this for the assembler, linker,
2404# and nm only; for simplicity of configuration, however, we extend this
2405# criterion to tools (such as ar and ranlib) that are never invoked by
2406# the compiler, to avoid mismatches.
2407#
2408# Also note we have to check MD_EXEC_PREFIX before checking the user's path
2409# if build == target. This makes the most sense only when bootstrapping,
2410# but we also do so when build != host. In this case, we hope that the
2411# build and host systems will have similar contents of MD_EXEC_PREFIX.
2412#
2413# If we do not find a suitable binary, then try the user's path.
2414
2415
2416###
2417# AC_PROG_CPP_WERROR
2418# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2419# triggers warnings from the preprocessor. Will be in autoconf 2.58.
2420# For now, using this also overrides header checks to use only the
2421# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2422# bit harder from here).
2423# Eventually autoconf will default to checking headers with the compiler
2424# instead, and we'll have to do this differently.
2425
2426# AC_PROG_CPP_WERROR
2427
2428# Test for GNAT.
2429# We require the gnatbind program, and a compiler driver that
2430# understands Ada. We use the user's CC setting, already found,
2431# and possibly add $1 to the command-line parameters.
2432#
2433# Sets the shell variable have_gnat to yes or no as appropriate, and
2434# substitutes GNATBIND and GNATMAKE.
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
35695fd6 2455
b7026657 2456
35695fd6
AC
2457
2458
2459
2460# Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around
2461# it by inlining the macro's contents.
f0569246
AC
2462# This file contains common code used by all simulators.
2463#
2464# common.m4 invokes AC macros used by all simulators and by the common
2465# directory. It is intended to be included before any target specific
2466# stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate
2467# the Makefile. It is intended to be invoked last.
2468#
2469# The simulator's configure.in should look like:
2470#
2471# dnl Process this file with autoconf to produce a configure script.
2472# AC_PREREQ(2.5)dnl
2473# AC_INIT(Makefile.in)
35695fd6 2474# AC_CONFIG_HEADER(config.h:config.in)
f0569246 2475#
35695fd6 2476# sinclude(../common/aclocal.m4)
f0569246
AC
2477# sinclude(../common/common.m4)
2478#
2479# ... target specific stuff ...
2480
38f48d72 2481ac_aux_dir=
81ecdfbb
RW
2482for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2483 for ac_t in install-sh install.sh shtool; do
2484 if test -f "$ac_dir/$ac_t"; then
2485 ac_aux_dir=$ac_dir
2486 ac_install_sh="$ac_aux_dir/$ac_t -c"
2487 break 2
2488 fi
2489 done
38f48d72
AC
2490done
2491if test -z "$ac_aux_dir"; then
81ecdfbb 2492 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
38f48d72 2493fi
81ecdfbb
RW
2494
2495# These three variables are undocumented and unsupported,
2496# and are intended to be withdrawn in a future Autoconf release.
2497# They can cause serious problems if a builder's source tree is in a directory
2498# whose full name contains unusual characters.
2499ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2502
38f48d72 2503
b7026657 2504# Make sure we can run config.sub.
81ecdfbb
RW
2505$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2506 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2507
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2509$as_echo_n "checking build system type... " >&6; }
2510if test "${ac_cv_build+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512else
2513 ac_build_alias=$build_alias
2514test "x$ac_build_alias" = x &&
2515 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2516test "x$ac_build_alias" = x &&
2517 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2518ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2519 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2520
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2523$as_echo "$ac_cv_build" >&6; }
2524case $ac_cv_build in
2525*-*-*) ;;
2526*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2527esac
b7026657 2528build=$ac_cv_build
81ecdfbb
RW
2529ac_save_IFS=$IFS; IFS='-'
2530set x $ac_cv_build
2531shift
2532build_cpu=$1
2533build_vendor=$2
2534shift; shift
2535# Remember, the first character of IFS is used to create $*,
2536# except with old shells:
2537build_os=$*
2538IFS=$ac_save_IFS
2539case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
b7026657
AC
2540
2541
81ecdfbb
RW
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2543$as_echo_n "checking host system type... " >&6; }
2544if test "${ac_cv_host+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
b7026657 2546else
81ecdfbb
RW
2547 if test "x$host_alias" = x; then
2548 ac_cv_host=$ac_cv_build
2549else
2550 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2551 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2552fi
b7026657
AC
2553
2554fi
81ecdfbb
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2556$as_echo "$ac_cv_host" >&6; }
2557case $ac_cv_host in
2558*-*-*) ;;
2559*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2560esac
b7026657 2561host=$ac_cv_host
81ecdfbb
RW
2562ac_save_IFS=$IFS; IFS='-'
2563set x $ac_cv_host
2564shift
2565host_cpu=$1
2566host_vendor=$2
2567shift; shift
2568# Remember, the first character of IFS is used to create $*,
2569# except with old shells:
2570host_os=$*
2571IFS=$ac_save_IFS
2572case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
b7026657
AC
2573
2574
81ecdfbb
RW
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2576$as_echo_n "checking target system type... " >&6; }
2577if test "${ac_cv_target+set}" = set; then :
2578 $as_echo_n "(cached) " >&6
2579else
2580 if test "x$target_alias" = x; then
2581 ac_cv_target=$ac_cv_host
b7026657 2582else
81ecdfbb
RW
2583 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2584 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2585fi
f0569246
AC
2586
2587fi
81ecdfbb
RW
2588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2589$as_echo "$ac_cv_target" >&6; }
2590case $ac_cv_target in
2591*-*-*) ;;
2592*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2593esac
f0569246 2594target=$ac_cv_target
81ecdfbb
RW
2595ac_save_IFS=$IFS; IFS='-'
2596set x $ac_cv_target
2597shift
2598target_cpu=$1
2599target_vendor=$2
2600shift; shift
2601# Remember, the first character of IFS is used to create $*,
2602# except with old shells:
2603target_os=$*
2604IFS=$ac_save_IFS
2605case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
f0569246
AC
2606
2607
2608# The aliases save the names the user supplied, while $host etc.
2609# will get canonicalized.
2610test -n "$target_alias" &&
2611 test "$program_prefix$program_suffix$program_transform_name" = \
2612 NONENONEs,x,x, &&
2613 program_prefix=${target_alias}-
81ecdfbb 2614
f0569246 2615test "$program_prefix" != NONE &&
81ecdfbb 2616 program_transform_name="s&^&$program_prefix&;$program_transform_name"
f0569246
AC
2617# Use a double $ so make ignores it.
2618test "$program_suffix" != NONE &&
81ecdfbb
RW
2619 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2620# Double any \ or $.
f0569246 2621# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2622ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2623program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
f0569246
AC
2624
2625ac_ext=c
2626ac_cpp='$CPP $CPPFLAGS'
2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2629ac_compiler_gnu=$ac_cv_c_compiler_gnu
2630if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if test "${ac_cv_prog_CC+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
f0569246
AC
2637else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
b7026657 2640else
f0569246
AC
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 2648 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246
AC
2650 break 2
2651 fi
2652done
81ecdfbb
RW
2653 done
2654IFS=$as_save_IFS
f0569246 2655
b7026657 2656fi
b7026657 2657fi
f0569246
AC
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
81ecdfbb
RW
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661$as_echo "$CC" >&6; }
b7026657 2662else
81ecdfbb
RW
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
b7026657
AC
2665fi
2666
81ecdfbb 2667
f0569246
AC
2668fi
2669if test -z "$ac_cv_prog_CC"; then
2670 ac_ct_CC=$CC
2671 # Extract the first word of "gcc", so it can be a program name with args.
2672set dummy gcc; ac_word=$2
81ecdfbb
RW
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2676 $as_echo_n "(cached) " >&6
b7026657 2677else
f0569246
AC
2678 if test -n "$ac_ct_CC"; then
2679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 2688 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246
AC
2690 break 2
2691 fi
2692done
81ecdfbb
RW
2693 done
2694IFS=$as_save_IFS
b7026657 2695
f0569246
AC
2696fi
2697fi
2698ac_ct_CC=$ac_cv_prog_ac_ct_CC
2699if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2701$as_echo "$ac_ct_CC" >&6; }
b7026657 2702else
81ecdfbb
RW
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
f0569246 2705fi
b7026657 2706
81ecdfbb
RW
2707 if test "x$ac_ct_CC" = x; then
2708 CC=""
2709 else
2710 case $cross_compiling:$ac_tool_warned in
2711yes:)
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2714ac_tool_warned=yes ;;
2715esac
2716 CC=$ac_ct_CC
2717 fi
f0569246
AC
2718else
2719 CC="$ac_cv_prog_CC"
b7026657 2720fi
b7026657 2721
f0569246 2722if test -z "$CC"; then
81ecdfbb
RW
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f0569246 2725set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
2728if test "${ac_cv_prog_CC+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
b7026657 2730else
f0569246
AC
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 2741 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246
AC
2743 break 2
2744 fi
2745done
81ecdfbb
RW
2746 done
2747IFS=$as_save_IFS
b7026657
AC
2748
2749fi
b7026657 2750fi
f0569246
AC
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
81ecdfbb
RW
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
b7026657 2755else
81ecdfbb
RW
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
b7026657 2758fi
b7026657 2759
b7026657 2760
81ecdfbb 2761 fi
b7026657 2762fi
f0569246
AC
2763if test -z "$CC"; then
2764 # Extract the first word of "cc", so it can be a program name with args.
2765set dummy cc; ac_word=$2
81ecdfbb
RW
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
2768if test "${ac_cv_prog_CC+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
f0569246
AC
2770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
2774 ac_prog_rejected=no
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246
AC
2782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2783 ac_prog_rejected=yes
2784 continue
2785 fi
2786 ac_cv_prog_CC="cc"
81ecdfbb 2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246
AC
2788 break 2
2789 fi
2790done
81ecdfbb
RW
2791 done
2792IFS=$as_save_IFS
b7026657 2793
f0569246
AC
2794if test $ac_prog_rejected = yes; then
2795 # We found a bogon in the path, so make sure we never use it.
2796 set dummy $ac_cv_prog_CC
2797 shift
2798 if test $# != 0; then
2799 # We chose a different compiler from the bogus one.
2800 # However, it has the same basename, so the bogon will be chosen
2801 # first if we set CC to just the basename; use the full file name.
2802 shift
2803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2804 fi
b7026657 2805fi
f0569246
AC
2806fi
2807fi
2808CC=$ac_cv_prog_CC
2809if test -n "$CC"; then
81ecdfbb
RW
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811$as_echo "$CC" >&6; }
b7026657 2812else
81ecdfbb
RW
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814$as_echo "no" >&6; }
b7026657 2815fi
f0569246 2816
81ecdfbb 2817
f0569246
AC
2818fi
2819if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
81ecdfbb 2821 for ac_prog in cl.exe
f0569246
AC
2822 do
2823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2824set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826$as_echo_n "checking for $ac_word... " >&6; }
2827if test "${ac_cv_prog_CC+set}" = set; then :
2828 $as_echo_n "(cached) " >&6
f0569246
AC
2829else
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2832else
2833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834for as_dir in $PATH
b7026657 2835do
f0569246
AC
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 2840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246 2842 break 2
b7026657 2843 fi
f0569246 2844done
81ecdfbb
RW
2845 done
2846IFS=$as_save_IFS
f0569246 2847
b7026657 2848fi
f0569246
AC
2849fi
2850CC=$ac_cv_prog_CC
2851if test -n "$CC"; then
81ecdfbb
RW
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2853$as_echo "$CC" >&6; }
b7026657 2854else
81ecdfbb
RW
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856$as_echo "no" >&6; }
b7026657 2857fi
b7026657 2858
81ecdfbb 2859
f0569246
AC
2860 test -n "$CC" && break
2861 done
c906108c 2862fi
f0569246
AC
2863if test -z "$CC"; then
2864 ac_ct_CC=$CC
81ecdfbb 2865 for ac_prog in cl.exe
b7026657 2866do
f0569246
AC
2867 # Extract the first word of "$ac_prog", so it can be a program name with args.
2868set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
b7026657 2873else
f0569246
AC
2874 if test -n "$ac_ct_CC"; then
2875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 2884 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246
AC
2886 break 2
2887 fi
2888done
81ecdfbb
RW
2889 done
2890IFS=$as_save_IFS
b7026657
AC
2891
2892fi
f0569246
AC
2893fi
2894ac_ct_CC=$ac_cv_prog_ac_ct_CC
2895if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2897$as_echo "$ac_ct_CC" >&6; }
f0569246 2898else
81ecdfbb
RW
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
f0569246
AC
2901fi
2902
81ecdfbb 2903
f0569246 2904 test -n "$ac_ct_CC" && break
b7026657 2905done
b7026657 2906
81ecdfbb
RW
2907 if test "x$ac_ct_CC" = x; then
2908 CC=""
2909 else
2910 case $cross_compiling:$ac_tool_warned in
2911yes:)
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914ac_tool_warned=yes ;;
2915esac
2916 CC=$ac_ct_CC
2917 fi
b7026657
AC
2918fi
2919
f0569246 2920fi
b7026657 2921
f0569246 2922
81ecdfbb
RW
2923test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2924$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2925as_fn_error "no acceptable C compiler found in \$PATH
2926See \`config.log' for more details." "$LINENO" 5; }
f0569246
AC
2927
2928# Provide some information about the compiler.
81ecdfbb
RW
2929$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2930set X $ac_compile
2931ac_compiler=$2
2932for ac_option in --version -v -V -qversion; do
2933 { { ac_try="$ac_compiler $ac_option >&5"
2934case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937esac
2938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939$as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b7026657 2941 ac_status=$?
81ecdfbb
RW
2942 if test -s conftest.err; then
2943 sed '10a\
2944... rest of stderr output deleted ...
2945 10q' conftest.err >conftest.er1
2946 cat conftest.er1 >&5
2947 rm -f conftest.er1 conftest.err
2948 fi
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951done
f0569246 2952
81ecdfbb 2953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 2954/* end confdefs.h. */
f0569246 2955
b7026657
AC
2956int
2957main ()
2958{
f0569246 2959
b7026657
AC
2960 ;
2961 return 0;
2962}
2963_ACEOF
f0569246 2964ac_clean_files_save=$ac_clean_files
81ecdfbb 2965ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
f0569246
AC
2966# Try to create an executable without -o first, disregard a.out.
2967# It will help us diagnose broken compilers, and finding out an intuition
2968# of exeext.
81ecdfbb
RW
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2970$as_echo_n "checking for C compiler default output file name... " >&6; }
2971ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2972
2973# The possible output files:
2974ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2975
2976ac_rmfiles=
2977for ac_file in $ac_files
2978do
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2982 esac
2983done
2984rm -f $ac_rmfiles
2985
2986if { { ac_try="$ac_link_default"
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_link_default") 2>&5
b7026657 2994 ac_status=$?
81ecdfbb
RW
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
2997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2998# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2999# in a Makefile. We should not override ac_cv_exeext if it was cached,
3000# so that the user can short-circuit this test for compilers unknown to
3001# Autoconf.
3002for ac_file in $ac_files ''
f0569246
AC
3003do
3004 test -f "$ac_file" || continue
3005 case $ac_file in
81ecdfbb 3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
f0569246
AC
3007 ;;
3008 [ab].out )
3009 # We found the default executable, but exeext='' is most
3010 # certainly right.
3011 break;;
3012 *.* )
81ecdfbb
RW
3013 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3014 then :; else
3015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016 fi
3017 # We set ac_cv_exeext here because the later test for it is not
3018 # safe: cross compilers may not add the suffix if given an `-o'
3019 # argument, so we may need to know it at that point already.
3020 # Even if this section looks crufty: it has the advantage of
3021 # actually working.
f0569246
AC
3022 break;;
3023 * )
3024 break;;
3025 esac
3026done
81ecdfbb
RW
3027test "$ac_cv_exeext" = no && ac_cv_exeext=
3028
f0569246 3029else
81ecdfbb
RW
3030 ac_file=''
3031fi
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3033$as_echo "$ac_file" >&6; }
3034if test -z "$ac_file"; then :
3035 $as_echo "$as_me: failed program was:" >&5
f0569246
AC
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
81ecdfbb
RW
3038{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040{ as_fn_set_status 77
3041as_fn_error "C compiler cannot create executables
3042See \`config.log' for more details." "$LINENO" 5; }; }
f0569246 3043fi
f0569246 3044ac_exeext=$ac_cv_exeext
f0569246 3045
81ecdfbb 3046# Check that the compiler produces executables we can run. If not, either
f0569246 3047# the compiler is broken, or we cross compile.
81ecdfbb
RW
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3049$as_echo_n "checking whether the C compiler works... " >&6; }
f0569246
AC
3050# If not cross compiling, check that we can run a simple program.
3051if test "$cross_compiling" != yes; then
3052 if { ac_try='./$ac_file'
81ecdfbb
RW
3053 { { case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_try") 2>&5
b7026657 3060 ac_status=$?
81ecdfbb
RW
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; }; then
f0569246
AC
3063 cross_compiling=no
3064 else
3065 if test "$cross_compiling" = maybe; then
3066 cross_compiling=yes
3067 else
81ecdfbb
RW
3068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070as_fn_error "cannot run C compiled programs.
f0569246 3071If you meant to cross compile, use \`--host'.
81ecdfbb 3072See \`config.log' for more details." "$LINENO" 5; }
f0569246
AC
3073 fi
3074 fi
3075fi
81ecdfbb
RW
3076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3077$as_echo "yes" >&6; }
f0569246 3078
81ecdfbb 3079rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
f0569246 3080ac_clean_files=$ac_clean_files_save
81ecdfbb 3081# Check that the compiler produces executables we can run. If not, either
f0569246 3082# the compiler is broken, or we cross compile.
81ecdfbb
RW
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3084$as_echo_n "checking whether we are cross compiling... " >&6; }
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3086$as_echo "$cross_compiling" >&6; }
3087
3088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3089$as_echo_n "checking for suffix of executables... " >&6; }
3090if { { ac_try="$ac_link"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
3095eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096$as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_link") 2>&5
f0569246 3098 ac_status=$?
81ecdfbb
RW
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; then :
f0569246
AC
3101 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3102# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3103# work properly (i.e., refer to `conftest.exe'), while it won't with
3104# `rm'.
3105for ac_file in conftest.exe conftest conftest.*; do
3106 test -f "$ac_file" || continue
3107 case $ac_file in
81ecdfbb 3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
f0569246 3109 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
f0569246
AC
3110 break;;
3111 * ) break;;
3112 esac
3113done
3114else
81ecdfbb
RW
3115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3117as_fn_error "cannot compute suffix of executables: cannot compile and link
3118See \`config.log' for more details." "$LINENO" 5; }
f0569246 3119fi
f0569246 3120rm -f conftest$ac_cv_exeext
81ecdfbb
RW
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3122$as_echo "$ac_cv_exeext" >&6; }
f0569246
AC
3123
3124rm -f conftest.$ac_ext
3125EXEEXT=$ac_cv_exeext
3126ac_exeext=$EXEEXT
81ecdfbb
RW
3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3128$as_echo_n "checking for suffix of object files... " >&6; }
3129if test "${ac_cv_objext+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
f0569246 3131else
81ecdfbb 3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f0569246
AC
3133/* end confdefs.h. */
3134
3135int
3136main ()
3137{
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
3143rm -f conftest.o conftest.obj
81ecdfbb
RW
3144if { { ac_try="$ac_compile"
3145case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150$as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_compile") 2>&5
b7026657 3152 ac_status=$?
81ecdfbb
RW
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }; then :
3155 for ac_file in conftest.o conftest.obj conftest.*; do
3156 test -f "$ac_file" || continue;
f0569246 3157 case $ac_file in
81ecdfbb 3158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
f0569246
AC
3159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3160 break;;
3161 esac
3162done
b7026657 3163else
81ecdfbb 3164 $as_echo "$as_me: failed program was:" >&5
b7026657
AC
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
81ecdfbb
RW
3167{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169as_fn_error "cannot compute suffix of object files: cannot compile
3170See \`config.log' for more details." "$LINENO" 5; }
b7026657 3171fi
f0569246
AC
3172rm -f conftest.$ac_cv_objext conftest.$ac_ext
3173fi
81ecdfbb
RW
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3175$as_echo "$ac_cv_objext" >&6; }
f0569246
AC
3176OBJEXT=$ac_cv_objext
3177ac_objext=$OBJEXT
81ecdfbb
RW
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3179$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3180if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
f0569246 3182else
81ecdfbb 3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3184/* end confdefs.h. */
f0569246 3185
b7026657
AC
3186int
3187main ()
3188{
f0569246
AC
3189#ifndef __GNUC__
3190 choke me
3191#endif
3192
b7026657
AC
3193 ;
3194 return 0;
3195}
3196_ACEOF
81ecdfbb 3197if ac_fn_c_try_compile "$LINENO"; then :
f0569246
AC
3198 ac_compiler_gnu=yes
3199else
81ecdfbb 3200 ac_compiler_gnu=no
f0569246 3201fi
81ecdfbb 3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246 3203ac_cv_c_compiler_gnu=$ac_compiler_gnu
b7026657 3204
b7026657 3205fi
81ecdfbb
RW
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3207$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3208if test $ac_compiler_gnu = yes; then
3209 GCC=yes
3210else
3211 GCC=
3212fi
f0569246
AC
3213ac_test_CFLAGS=${CFLAGS+set}
3214ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3216$as_echo_n "checking whether $CC accepts -g... " >&6; }
3217if test "${ac_cv_prog_cc_g+set}" = set; then :
3218 $as_echo_n "(cached) " >&6
3219else
3220 ac_save_c_werror_flag=$ac_c_werror_flag
3221 ac_c_werror_flag=yes
3222 ac_cv_prog_cc_g=no
3223 CFLAGS="-g"
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3225/* end confdefs.h. */
f0569246
AC
3226
3227int
3228main ()
3229{
3230
3231 ;
3232 return 0;
3233}
b7026657 3234_ACEOF
81ecdfbb 3235if ac_fn_c_try_compile "$LINENO"; then :
f0569246 3236 ac_cv_prog_cc_g=yes
b7026657 3237else
81ecdfbb
RW
3238 CFLAGS=""
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h. */
3241
3242int
3243main ()
3244{
3245
3246 ;
3247 return 0;
3248}
3249_ACEOF
3250if ac_fn_c_try_compile "$LINENO"; then :
3251
3252else
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3254 CFLAGS="-g"
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256/* end confdefs.h. */
3257
3258int
3259main ()
3260{
b7026657 3261
81ecdfbb
RW
3262 ;
3263 return 0;
3264}
3265_ACEOF
3266if ac_fn_c_try_compile "$LINENO"; then :
3267 ac_cv_prog_cc_g=yes
3268fi
3269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 3270fi
81ecdfbb 3271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f0569246 3272fi
81ecdfbb
RW
3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_c_werror_flag=$ac_save_c_werror_flag
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3277$as_echo "$ac_cv_prog_cc_g" >&6; }
f0569246
AC
3278if test "$ac_test_CFLAGS" = set; then
3279 CFLAGS=$ac_save_CFLAGS
3280elif test $ac_cv_prog_cc_g = yes; then
3281 if test "$GCC" = yes; then
3282 CFLAGS="-g -O2"
3283 else
3284 CFLAGS="-g"
3285 fi
3286else
3287 if test "$GCC" = yes; then
3288 CFLAGS="-O2"
3289 else
3290 CFLAGS=
3291 fi
3292fi
81ecdfbb
RW
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3294$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3295if test "${ac_cv_prog_cc_c89+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
f0569246 3297else
81ecdfbb 3298 ac_cv_prog_cc_c89=no
f0569246 3299ac_save_CC=$CC
81ecdfbb 3300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3301/* end confdefs.h. */
f0569246
AC
3302#include <stdarg.h>
3303#include <stdio.h>
3304#include <sys/types.h>
3305#include <sys/stat.h>
3306/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3307struct buf { int x; };
3308FILE * (*rcsopen) (struct buf *, struct stat *, int);
3309static char *e (p, i)
3310 char **p;
3311 int i;
3312{
3313 return p[i];
3314}
3315static char *f (char * (*g) (char **, int), char **p, ...)
3316{
3317 char *s;
3318 va_list v;
3319 va_start (v,p);
3320 s = g (p, va_arg (v,int));
3321 va_end (v);
3322 return s;
3323}
3324
3325/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3326 function prototypes and stuff, but not '\xHH' hex character constants.
3327 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3328 as 'x'. The following induces an error, until -std is added to get
f0569246
AC
3329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3330 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3331 that's true only with -std. */
f0569246
AC
3332int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3333
81ecdfbb
RW
3334/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3335 inside strings and character constants. */
3336#define FOO(x) 'x'
3337int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3338
f0569246
AC
3339int test (int i, double x);
3340struct s1 {int (*f) (int a);};
3341struct s2 {int (*f) (double a);};
3342int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343int argc;
3344char **argv;
3345int
3346main ()
3347{
3348return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3349 ;
3350 return 0;
3351}
b7026657 3352_ACEOF
81ecdfbb
RW
3353for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
f0569246
AC
3355do
3356 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3357 if ac_fn_c_try_compile "$LINENO"; then :
3358 ac_cv_prog_cc_c89=$ac_arg
c906108c 3359fi
81ecdfbb
RW
3360rm -f core conftest.err conftest.$ac_objext
3361 test "x$ac_cv_prog_cc_c89" != "xno" && break
c906108c 3362done
81ecdfbb 3363rm -f conftest.$ac_ext
f0569246 3364CC=$ac_save_CC
c906108c 3365
f0569246 3366fi
81ecdfbb
RW
3367# AC_CACHE_VAL
3368case "x$ac_cv_prog_cc_c89" in
3369 x)
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3371$as_echo "none needed" >&6; } ;;
3372 xno)
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3374$as_echo "unsupported" >&6; } ;;
f0569246 3375 *)
81ecdfbb
RW
3376 CC="$CC $ac_cv_prog_cc_c89"
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3378$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
f0569246 3379esac
81ecdfbb 3380if test "x$ac_cv_prog_cc_c89" != xno; then :
f0569246
AC
3381
3382fi
b7026657 3383
f0569246
AC
3384ac_ext=c
3385ac_cpp='$CPP $CPPFLAGS'
3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389
3390# Find a good install program. We prefer a C program (faster),
3391# so one script is as good as another. But avoid the broken or
3392# incompatible versions:
3393# SysV /etc/install, /usr/sbin/install
3394# SunOS /usr/etc/install
3395# IRIX /sbin/install
3396# AIX /bin/install
3397# AmigaOS /C/install, which installs bootblocks on floppy discs
3398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3399# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3401# OS/2's system install, which has a completely different semantic
3402# ./install, which can be erroneously created by make from ./install.sh.
81ecdfbb
RW
3403# Reject install programs that cannot install multiple files.
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3405$as_echo_n "checking for a BSD-compatible install... " >&6; }
f0569246 3406if test -z "$INSTALL"; then
81ecdfbb
RW
3407if test "${ac_cv_path_install+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
f0569246
AC
3409else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411for as_dir in $PATH
3412do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3415 # Account for people who put trailing slashes in PATH elements.
3416case $as_dir/ in #((
3417 ./ | .// | /[cC]/* | \
f0569246 3418 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3419 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
f0569246
AC
3420 /usr/ucb/* ) ;;
3421 *)
3422 # OSF1 and SCO ODT 3.0 have their own names for install.
3423 # Don't use installbsd from OSF since it installs stuff as root
3424 # by default.
3425 for ac_prog in ginstall scoinst install; do
3426 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 3427 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
f0569246
AC
3428 if test $ac_prog = install &&
3429 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3430 # AIX install. It has an incompatible calling convention.
3431 :
3432 elif test $ac_prog = install &&
3433 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3434 # program-specific install script used by HP pwplus--don't use.
3435 :
3436 else
81ecdfbb
RW
3437 rm -rf conftest.one conftest.two conftest.dir
3438 echo one > conftest.one
3439 echo two > conftest.two
3440 mkdir conftest.dir
3441 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3442 test -s conftest.one && test -s conftest.two &&
3443 test -s conftest.dir/conftest.one &&
3444 test -s conftest.dir/conftest.two
3445 then
3446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3447 break 3
3448 fi
f0569246
AC
3449 fi
3450 fi
3451 done
3452 done
3453 ;;
3454esac
f0569246 3455
81ecdfbb
RW
3456 done
3457IFS=$as_save_IFS
3458
3459rm -rf conftest.one conftest.two conftest.dir
f0569246
AC
3460
3461fi
3462 if test "${ac_cv_path_install+set}" = set; then
3463 INSTALL=$ac_cv_path_install
3464 else
81ecdfbb
RW
3465 # As a last resort, use the slow shell script. Don't cache a
3466 # value for INSTALL within a source directory, because that will
f0569246 3467 # break other packages using the cache if that directory is
81ecdfbb 3468 # removed, or if the value is a relative name.
f0569246
AC
3469 INSTALL=$ac_install_sh
3470 fi
3471fi
81ecdfbb
RW
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3473$as_echo "$INSTALL" >&6; }
f0569246
AC
3474
3475# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3476# It thinks the first close brace ends the variable substitution.
3477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3478
3479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3480
3481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3482
c906108c 3483
f0569246
AC
3484# Put a plausible default for CC_FOR_BUILD in Makefile.
3485if test "x$cross_compiling" = "xno"; then
3486 CC_FOR_BUILD='$(CC)'
3487else
3488 CC_FOR_BUILD=gcc
c906108c 3489fi
c906108c 3490
c906108c 3491
c906108c 3492
f0569246
AC
3493
3494AR=${AR-ar}
3495
3496if test -n "$ac_tool_prefix"; then
3497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3498set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500$as_echo_n "checking for $ac_word... " >&6; }
3501if test "${ac_cv_prog_RANLIB+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
b7026657 3503else
f0569246
AC
3504 if test -n "$RANLIB"; then
3505 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
c906108c 3506else
f0569246
AC
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 3514 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246
AC
3516 break 2
3517 fi
3518done
81ecdfbb
RW
3519 done
3520IFS=$as_save_IFS
b7026657 3521
c906108c 3522fi
c906108c 3523fi
f0569246
AC
3524RANLIB=$ac_cv_prog_RANLIB
3525if test -n "$RANLIB"; then
81ecdfbb
RW
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3527$as_echo "$RANLIB" >&6; }
f0569246 3528else
81ecdfbb
RW
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530$as_echo "no" >&6; }
f0569246 3531fi
c906108c 3532
81ecdfbb 3533
f0569246
AC
3534fi
3535if test -z "$ac_cv_prog_RANLIB"; then
3536 ac_ct_RANLIB=$RANLIB
3537 # Extract the first word of "ranlib", so it can be a program name with args.
3538set dummy ranlib; ac_word=$2
81ecdfbb
RW
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540$as_echo_n "checking for $ac_word... " >&6; }
3541if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
f0569246
AC
3543else
3544 if test -n "$ac_ct_RANLIB"; then
3545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3546else
3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548for as_dir in $PATH
3549do
3550 IFS=$as_save_IFS
3551 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f0569246 3554 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f0569246 3556 break 2
c906108c 3557 fi
f0569246 3558done
81ecdfbb
RW
3559 done
3560IFS=$as_save_IFS
f0569246 3561
f0569246
AC
3562fi
3563fi
3564ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3565if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3567$as_echo "$ac_ct_RANLIB" >&6; }
f0569246 3568else
81ecdfbb
RW
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570$as_echo "no" >&6; }
f0569246 3571fi
c906108c 3572
81ecdfbb
RW
3573 if test "x$ac_ct_RANLIB" = x; then
3574 RANLIB=":"
3575 else
3576 case $cross_compiling:$ac_tool_warned in
3577yes:)
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3580ac_tool_warned=yes ;;
3581esac
3582 RANLIB=$ac_ct_RANLIB
3583 fi
f0569246
AC
3584else
3585 RANLIB="$ac_cv_prog_RANLIB"
3586fi
c906108c 3587
c906108c 3588
f0569246 3589ALL_LINGUAS=
2f0122dc
DJ
3590# If we haven't got the data from the intl directory,
3591# assume NLS is disabled.
3592USE_NLS=no
3593LIBINTL=
3594LIBINTL_DEP=
3595INCINTL=
3596XGETTEXT=
3597GMSGFMT=
3598POSUB=
e85e3205
RE
3599
3600if test -f ../../intl/config.intl; then
3601 . ../../intl/config.intl
2f0122dc 3602fi
81ecdfbb
RW
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3604$as_echo_n "checking whether NLS is requested... " >&6; }
2f0122dc 3605if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
2f0122dc 3608else
81ecdfbb
RW
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3610$as_echo "yes" >&6; }
2f0122dc 3611
81ecdfbb 3612$as_echo "#define ENABLE_NLS 1" >>confdefs.h
2f0122dc
DJ
3613
3614
81ecdfbb
RW
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
3616$as_echo_n "checking for catalogs to be installed... " >&6; }
2f0122dc
DJ
3617 # Look for .po and .gmo files in the source directory.
3618 CATALOGS=
3619 XLINGUAS=
3620 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3621 # If there aren't any .gmo files the shell will give us the
3622 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3623 # weeded out.
3624 case "$cat" in *\**)
3625 continue;;
3626 esac
3627 # The quadruple backslash is collapsed to a double backslash
3628 # by the backticks, then collapsed again by the double quotes,
3629 # leaving us with one backslash in the sed expression (right
3630 # before the dot that mustn't act as a wildcard).
3631 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3632 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3633 # The user is allowed to set LINGUAS to a list of languages to
3634 # install catalogs for. If it's empty that means "all of them."
3635 if test "x$LINGUAS" = x; then
3636 CATALOGS="$CATALOGS $cat"
3637 XLINGUAS="$XLINGUAS $lang"
3638 else
3639 case "$LINGUAS" in *$lang*)
3640 CATALOGS="$CATALOGS $cat"
3641 XLINGUAS="$XLINGUAS $lang"
3642 ;;
3643 esac
3644 fi
3645 done
3646 LINGUAS="$XLINGUAS"
81ecdfbb
RW
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
3648$as_echo "$LINGUAS" >&6; }
2f0122dc
DJ
3649
3650
3651 DATADIRNAME=share
3652
3653 INSTOBJEXT=.mo
3654
3655 GENCAT=gencat
3656
3657 CATOBJEXT=.gmo
3658
3659fi
35695fd6 3660
20e95c23
DJ
3661# Check for common headers.
3662# FIXME: Seems to me this can cause problems for i386-windows hosts.
3663# At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*.
35695fd6
AC
3664
3665ac_ext=c
3666ac_cpp='$CPP $CPPFLAGS'
3667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3671$as_echo_n "checking how to run the C preprocessor... " >&6; }
35695fd6
AC
3672# On Suns, sometimes $CPP names a directory.
3673if test -n "$CPP" && test -d "$CPP"; then
3674 CPP=
3675fi
3676if test -z "$CPP"; then
81ecdfbb
RW
3677 if test "${ac_cv_prog_CPP+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
35695fd6
AC
3679else
3680 # Double quotes because CPP needs to be expanded
3681 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3682 do
3683 ac_preproc_ok=false
3684for ac_c_preproc_warn_flag in '' yes
3685do
3686 # Use a header file that comes with gcc, so configuring glibc
3687 # with a fresh cross-compiler works.
3688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3689 # <limits.h> exists even on freestanding compilers.
3690 # On the NeXT, cc -E runs the code through the compiler's parser,
3691 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35695fd6
AC
3693/* end confdefs.h. */
3694#ifdef __STDC__
3695# include <limits.h>
3696#else
3697# include <assert.h>
3698#endif
3699 Syntax error
3700_ACEOF
81ecdfbb 3701if ac_fn_c_try_cpp "$LINENO"; then :
35695fd6 3702
81ecdfbb 3703else
35695fd6
AC
3704 # Broken: fails on valid input.
3705continue
3706fi
3707rm -f conftest.err conftest.$ac_ext
3708
81ecdfbb 3709 # OK, works on sane cases. Now check whether nonexistent headers
35695fd6 3710 # can be detected and how.
81ecdfbb 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35695fd6
AC
3712/* end confdefs.h. */
3713#include <ac_nonexistent.h>
3714_ACEOF
81ecdfbb 3715if ac_fn_c_try_cpp "$LINENO"; then :
f0569246
AC
3716 # Broken: success on invalid input.
3717continue
c906108c 3718else
f0569246
AC
3719 # Passes both tests.
3720ac_preproc_ok=:
3721break
c906108c 3722fi
f0569246
AC
3723rm -f conftest.err conftest.$ac_ext
3724
3725done
3726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727rm -f conftest.err conftest.$ac_ext
81ecdfbb 3728if $ac_preproc_ok; then :
f0569246 3729 break
c906108c 3730fi
c906108c 3731
f0569246
AC
3732 done
3733 ac_cv_prog_CPP=$CPP
3734
3735fi
3736 CPP=$ac_cv_prog_CPP
c906108c 3737else
f0569246
AC
3738 ac_cv_prog_CPP=$CPP
3739fi
81ecdfbb
RW
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3741$as_echo "$CPP" >&6; }
f0569246
AC
3742ac_preproc_ok=false
3743for ac_c_preproc_warn_flag in '' yes
3744do
3745 # Use a header file that comes with gcc, so configuring glibc
3746 # with a fresh cross-compiler works.
3747 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3748 # <limits.h> exists even on freestanding compilers.
3749 # On the NeXT, cc -E runs the code through the compiler's parser,
3750 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3752/* end confdefs.h. */
f0569246
AC
3753#ifdef __STDC__
3754# include <limits.h>
3755#else
3756# include <assert.h>
b7026657 3757#endif
f0569246 3758 Syntax error
b7026657 3759_ACEOF
81ecdfbb 3760if ac_fn_c_try_cpp "$LINENO"; then :
b7026657 3761
81ecdfbb 3762else
f0569246
AC
3763 # Broken: fails on valid input.
3764continue
b7026657 3765fi
f0569246
AC
3766rm -f conftest.err conftest.$ac_ext
3767
81ecdfbb 3768 # OK, works on sane cases. Now check whether nonexistent headers
f0569246 3769 # can be detected and how.
81ecdfbb 3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 3771/* end confdefs.h. */
f0569246 3772#include <ac_nonexistent.h>
b7026657 3773_ACEOF
81ecdfbb 3774if ac_fn_c_try_cpp "$LINENO"; then :
f0569246
AC
3775 # Broken: success on invalid input.
3776continue
c906108c 3777else
f0569246
AC
3778 # Passes both tests.
3779ac_preproc_ok=:
3780break
c906108c 3781fi
f0569246 3782rm -f conftest.err conftest.$ac_ext
c906108c 3783
f0569246
AC
3784done
3785# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3786rm -f conftest.err conftest.$ac_ext
81ecdfbb
RW
3787if $ac_preproc_ok; then :
3788
c906108c 3789else
81ecdfbb
RW
3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792as_fn_error "C preprocessor \"$CPP\" fails sanity check
3793See \`config.log' for more details." "$LINENO" 5; }
c906108c 3794fi
b7026657 3795
f0569246
AC
3796ac_ext=c
3797ac_cpp='$CPP $CPPFLAGS'
3798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801
3802
81ecdfbb
RW
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3804$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3805if test "${ac_cv_path_GREP+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3807else
3808 if test -z "$GREP"; then
3809 ac_path_GREP_found=false
3810 # Loop through the user's path and test for each of PROGNAME-LIST
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3813do
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_prog in grep ggrep; do
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3819 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3820# Check for GNU ac_path_GREP and select it if it is found.
3821 # Check for GNU $ac_path_GREP
3822case `"$ac_path_GREP" --version 2>&1` in
3823*GNU*)
3824 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3825*)
3826 ac_count=0
3827 $as_echo_n 0123456789 >"conftest.in"
3828 while :
3829 do
3830 cat "conftest.in" "conftest.in" >"conftest.tmp"
3831 mv "conftest.tmp" "conftest.in"
3832 cp "conftest.in" "conftest.nl"
3833 $as_echo 'GREP' >> "conftest.nl"
3834 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3835 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3836 as_fn_arith $ac_count + 1 && ac_count=$as_val
3837 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3838 # Best one so far, save it but keep looking for a better one
3839 ac_cv_path_GREP="$ac_path_GREP"
3840 ac_path_GREP_max=$ac_count
3841 fi
3842 # 10*(2^10) chars as input seems more than enough
3843 test $ac_count -gt 10 && break
3844 done
3845 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3846esac
3847
3848 $ac_path_GREP_found && break 3
3849 done
3850 done
3851 done
3852IFS=$as_save_IFS
3853 if test -z "$ac_cv_path_GREP"; then
3854 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3855 fi
3856else
3857 ac_cv_path_GREP=$GREP
3858fi
3859
3860fi
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3862$as_echo "$ac_cv_path_GREP" >&6; }
3863 GREP="$ac_cv_path_GREP"
3864
3865
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3867$as_echo_n "checking for egrep... " >&6; }
3868if test "${ac_cv_path_EGREP+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
f0569246 3870else
81ecdfbb
RW
3871 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3872 then ac_cv_path_EGREP="$GREP -E"
3873 else
3874 if test -z "$EGREP"; then
3875 ac_path_EGREP_found=false
3876 # Loop through the user's path and test for each of PROGNAME-LIST
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
3882 for ac_prog in egrep; do
3883 for ac_exec_ext in '' $ac_executable_extensions; do
3884 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3885 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3886# Check for GNU ac_path_EGREP and select it if it is found.
3887 # Check for GNU $ac_path_EGREP
3888case `"$ac_path_EGREP" --version 2>&1` in
3889*GNU*)
3890 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3891*)
3892 ac_count=0
3893 $as_echo_n 0123456789 >"conftest.in"
3894 while :
3895 do
3896 cat "conftest.in" "conftest.in" >"conftest.tmp"
3897 mv "conftest.tmp" "conftest.in"
3898 cp "conftest.in" "conftest.nl"
3899 $as_echo 'EGREP' >> "conftest.nl"
3900 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902 as_fn_arith $ac_count + 1 && ac_count=$as_val
3903 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3904 # Best one so far, save it but keep looking for a better one
3905 ac_cv_path_EGREP="$ac_path_EGREP"
3906 ac_path_EGREP_max=$ac_count
f0569246 3907 fi
81ecdfbb
RW
3908 # 10*(2^10) chars as input seems more than enough
3909 test $ac_count -gt 10 && break
3910 done
3911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912esac
3913
3914 $ac_path_EGREP_found && break 3
3915 done
3916 done
3917 done
3918IFS=$as_save_IFS
3919 if test -z "$ac_cv_path_EGREP"; then
3920 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3921 fi
3922else
3923 ac_cv_path_EGREP=$EGREP
f0569246 3924fi
81ecdfbb
RW
3925
3926 fi
3927fi
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3929$as_echo "$ac_cv_path_EGREP" >&6; }
3930 EGREP="$ac_cv_path_EGREP"
f0569246
AC
3931
3932
81ecdfbb
RW
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3934$as_echo_n "checking for ANSI C header files... " >&6; }
3935if test "${ac_cv_header_stdc+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
f0569246 3937else
81ecdfbb 3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f0569246
AC
3939/* end confdefs.h. */
3940#include <stdlib.h>
3941#include <stdarg.h>
3942#include <string.h>
3943#include <float.h>
c906108c 3944
b7026657
AC
3945int
3946main ()
3947{
f0569246 3948
b7026657
AC
3949 ;
3950 return 0;
3951}
3952_ACEOF
81ecdfbb 3953if ac_fn_c_try_compile "$LINENO"; then :
f0569246 3954 ac_cv_header_stdc=yes
b7026657 3955else
81ecdfbb 3956 ac_cv_header_stdc=no
b7026657 3957fi
81ecdfbb 3958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 3959
f0569246
AC
3960if test $ac_cv_header_stdc = yes; then
3961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f0569246
AC
3963/* end confdefs.h. */
3964#include <string.h>
c906108c 3965
f0569246
AC
3966_ACEOF
3967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3968 $EGREP "memchr" >/dev/null 2>&1; then :
3969
c906108c 3970else
f0569246 3971 ac_cv_header_stdc=no
c906108c 3972fi
f0569246 3973rm -f conftest*
b7026657 3974
c906108c
SS
3975fi
3976
f0569246
AC
3977if test $ac_cv_header_stdc = yes; then
3978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f0569246
AC
3980/* end confdefs.h. */
3981#include <stdlib.h>
3982
3983_ACEOF
3984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
3985 $EGREP "free" >/dev/null 2>&1; then :
3986
c906108c 3987else
f0569246 3988 ac_cv_header_stdc=no
c906108c 3989fi
f0569246
AC
3990rm -f conftest*
3991
c906108c
SS
3992fi
3993
f0569246
AC
3994if test $ac_cv_header_stdc = yes; then
3995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 3996 if test "$cross_compiling" = yes; then :
f0569246
AC
3997 :
3998else
81ecdfbb 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4000/* end confdefs.h. */
f0569246 4001#include <ctype.h>
81ecdfbb 4002#include <stdlib.h>
f0569246
AC
4003#if ((' ' & 0x0FF) == 0x020)
4004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4006#else
4007# define ISLOWER(c) \
4008 (('a' <= (c) && (c) <= 'i') \
4009 || ('j' <= (c) && (c) <= 'r') \
4010 || ('s' <= (c) && (c) <= 'z'))
4011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4012#endif
c906108c 4013
f0569246 4014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
b7026657
AC
4015int
4016main ()
4017{
f0569246
AC
4018 int i;
4019 for (i = 0; i < 256; i++)
4020 if (XOR (islower (i), ISLOWER (i))
4021 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
4022 return 2;
4023 return 0;
b7026657
AC
4024}
4025_ACEOF
81ecdfbb 4026if ac_fn_c_try_run "$LINENO"; then :
b7026657 4027
81ecdfbb
RW
4028else
4029 ac_cv_header_stdc=no
c906108c 4030fi
81ecdfbb
RW
4031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4032 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4033fi
81ecdfbb 4034
c906108c 4035fi
c906108c 4036fi
81ecdfbb
RW
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4038$as_echo "$ac_cv_header_stdc" >&6; }
f0569246 4039if test $ac_cv_header_stdc = yes; then
b7026657 4040
81ecdfbb 4041$as_echo "#define STDC_HEADERS 1" >>confdefs.h
c906108c 4042
c906108c
SS
4043fi
4044
f0569246 4045# On IRIX 5.3, sys/types and inttypes.h are conflicting.
81ecdfbb
RW
4046for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4047 inttypes.h stdint.h unistd.h
4048do :
4049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4051"
4052eval as_val=\$$as_ac_Header
4053 if test "x$as_val" = x""yes; then :
4054 cat >>confdefs.h <<_ACEOF
4055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4056_ACEOF
b7026657 4057
81ecdfbb 4058fi
b7026657 4059
81ecdfbb 4060done
b7026657
AC
4061
4062
81ecdfbb
RW
4063for ac_header in stdlib.h string.h strings.h unistd.h time.h
4064do :
4065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4066ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4067eval as_val=\$$as_ac_Header
4068 if test "x$as_val" = x""yes; then :
4069 cat >>confdefs.h <<_ACEOF
4070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4071_ACEOF
35695fd6
AC
4072
4073fi
4074
4075done
4076
b7026657 4077for ac_header in sys/time.h sys/resource.h
81ecdfbb
RW
4078do :
4079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4080ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4081eval as_val=\$$as_ac_Header
4082 if test "x$as_val" = x""yes; then :
b7026657 4083 cat >>confdefs.h <<_ACEOF
81ecdfbb 4084#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657
AC
4085_ACEOF
4086
4087fi
4088
c906108c
SS
4089done
4090
b7026657 4091for ac_header in fcntl.h fpu_control.h
81ecdfbb
RW
4092do :
4093 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4094ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4095eval as_val=\$$as_ac_Header
4096 if test "x$as_val" = x""yes; then :
b7026657 4097 cat >>confdefs.h <<_ACEOF
81ecdfbb 4098#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657
AC
4099_ACEOF
4100
c906108c 4101fi
b7026657 4102
c906108c
SS
4103done
4104
b7026657 4105for ac_header in dlfcn.h errno.h sys/stat.h
81ecdfbb
RW
4106do :
4107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4108ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4109eval as_val=\$$as_ac_Header
4110 if test "x$as_val" = x""yes; then :
b7026657 4111 cat >>confdefs.h <<_ACEOF
81ecdfbb 4112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657
AC
4113_ACEOF
4114
c906108c 4115fi
b7026657 4116
c906108c
SS
4117done
4118
4119for ac_func in getrusage time sigaction __setfpucw
81ecdfbb
RW
4120do :
4121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4122ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4123eval as_val=\$$as_ac_var
4124 if test "x$as_val" = x""yes; then :
b7026657 4125 cat >>confdefs.h <<_ACEOF
81ecdfbb 4126#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657 4127_ACEOF
c906108c 4128
c906108c
SS
4129fi
4130done
4131
4132
4133# Check for socket libraries
81ecdfbb
RW
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
4135$as_echo_n "checking for bind in -lsocket... " >&6; }
4136if test "${ac_cv_lib_socket_bind+set}" = set; then :
4137 $as_echo_n "(cached) " >&6
c906108c 4138else
b7026657 4139 ac_check_lib_save_LIBS=$LIBS
c906108c 4140LIBS="-lsocket $LIBS"
81ecdfbb 4141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4142/* end confdefs.h. */
4143
81ecdfbb
RW
4144/* Override any GCC internal prototype to avoid an error.
4145 Use char because int might match the return type of a GCC
4146 builtin and then its argument prototype would still apply. */
b7026657
AC
4147#ifdef __cplusplus
4148extern "C"
4149#endif
b7026657
AC
4150char bind ();
4151int
4152main ()
4153{
81ecdfbb 4154return bind ();
b7026657
AC
4155 ;
4156 return 0;
4157}
4158_ACEOF
81ecdfbb 4159if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
4160 ac_cv_lib_socket_bind=yes
4161else
81ecdfbb 4162 ac_cv_lib_socket_bind=no
b7026657 4163fi
81ecdfbb
RW
4164rm -f core conftest.err conftest.$ac_objext \
4165 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
4166LIBS=$ac_check_lib_save_LIBS
4167fi
81ecdfbb
RW
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
4169$as_echo "$ac_cv_lib_socket_bind" >&6; }
4170if test "x$ac_cv_lib_socket_bind" = x""yes; then :
b7026657
AC
4171 cat >>confdefs.h <<_ACEOF
4172#define HAVE_LIBSOCKET 1
4173_ACEOF
c906108c
SS
4174
4175 LIBS="-lsocket $LIBS"
4176
c906108c
SS
4177fi
4178
81ecdfbb
RW
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4180$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4181if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
c906108c 4183else
b7026657 4184 ac_check_lib_save_LIBS=$LIBS
c906108c 4185LIBS="-lnsl $LIBS"
81ecdfbb 4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
4187/* end confdefs.h. */
4188
81ecdfbb
RW
4189/* Override any GCC internal prototype to avoid an error.
4190 Use char because int might match the return type of a GCC
4191 builtin and then its argument prototype would still apply. */
b7026657
AC
4192#ifdef __cplusplus
4193extern "C"
4194#endif
b7026657
AC
4195char gethostbyname ();
4196int
4197main ()
4198{
81ecdfbb 4199return gethostbyname ();
b7026657
AC
4200 ;
4201 return 0;
4202}
4203_ACEOF
81ecdfbb 4204if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
4205 ac_cv_lib_nsl_gethostbyname=yes
4206else
81ecdfbb 4207 ac_cv_lib_nsl_gethostbyname=no
b7026657 4208fi
81ecdfbb
RW
4209rm -f core conftest.err conftest.$ac_objext \
4210 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
4211LIBS=$ac_check_lib_save_LIBS
4212fi
81ecdfbb
RW
4213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4214$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4215if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
4216 cat >>confdefs.h <<_ACEOF
4217#define HAVE_LIBNSL 1
4218_ACEOF
4219
4220 LIBS="-lnsl $LIBS"
b5bd9624 4221
b5bd9624 4222fi
b5bd9624 4223
81ecdfbb
RW
4224
4225# BFD conditionally uses zlib, so we must link it in if libbfd does, by
4226# using the same condition.
5912fadd
JB
4227
4228 # See if the user specified whether he wants zlib support or not.
4229
4230# Check whether --with-zlib was given.
4231if test "${with_zlib+set}" = set; then :
4232 withval=$with_zlib;
4233else
4234 with_zlib=auto
4235fi
4236
4237
4238 if test "$with_zlib" != "no"; then
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
81ecdfbb
RW
4240$as_echo_n "checking for library containing zlibVersion... " >&6; }
4241if test "${ac_cv_search_zlibVersion+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4243else
4244 ac_func_search_save_LIBS=$LIBS
4245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624 4246/* end confdefs.h. */
81ecdfbb
RW
4247
4248/* Override any GCC internal prototype to avoid an error.
4249 Use char because int might match the return type of a GCC
4250 builtin and then its argument prototype would still apply. */
4251#ifdef __cplusplus
4252extern "C"
4253#endif
4254char zlibVersion ();
4255int
4256main ()
4257{
4258return zlibVersion ();
4259 ;
4260 return 0;
4261}
b5bd9624 4262_ACEOF
81ecdfbb
RW
4263for ac_lib in '' z; do
4264 if test -z "$ac_lib"; then
4265 ac_res="none required"
b5bd9624 4266 else
81ecdfbb
RW
4267 ac_res=-l$ac_lib
4268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
b5bd9624 4269 fi
81ecdfbb
RW
4270 if ac_fn_c_try_link "$LINENO"; then :
4271 ac_cv_search_zlibVersion=$ac_res
b5bd9624 4272fi
81ecdfbb
RW
4273rm -f core conftest.err conftest.$ac_objext \
4274 conftest$ac_exeext
4275 if test "${ac_cv_search_zlibVersion+set}" = set; then :
4276 break
b5bd9624 4277fi
81ecdfbb
RW
4278done
4279if test "${ac_cv_search_zlibVersion+set}" = set; then :
b5bd9624 4280
b5bd9624 4281else
81ecdfbb 4282 ac_cv_search_zlibVersion=no
b5bd9624 4283fi
81ecdfbb
RW
4284rm conftest.$ac_ext
4285LIBS=$ac_func_search_save_LIBS
b5bd9624 4286fi
81ecdfbb
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
4288$as_echo "$ac_cv_search_zlibVersion" >&6; }
4289ac_res=$ac_cv_search_zlibVersion
4290if test "$ac_res" != no; then :
4291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4292 for ac_header in zlib.h
4293do :
4294 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4295if test "x$ac_cv_header_zlib_h" = x""yes; then :
b5bd9624 4296 cat >>confdefs.h <<_ACEOF
81ecdfbb 4297#define HAVE_ZLIB_H 1
b5bd9624
HPN
4298_ACEOF
4299
4300fi
4301
4302done
4303
4304fi
4305
5912fadd
JB
4306 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
4307 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
4308 fi
4309 fi
4310
b5bd9624 4311
c906108c
SS
4312. ${srcdir}/../../bfd/configure.host
4313
4314
4315
4316USE_MAINTAINER_MODE=no
81ecdfbb
RW
4317# Check whether --enable-maintainer-mode was given.
4318if test "${enable_maintainer_mode+set}" = set; then :
4319 enableval=$enable_maintainer_mode; case "${enableval}" in
c906108c
SS
4320 yes) MAINT="" USE_MAINTAINER_MODE=yes ;;
4321 no) MAINT="#" ;;
81ecdfbb 4322 *) as_fn_error "\"--enable-maintainer-mode does not take a value\"" "$LINENO" 5; MAINT="#" ;;
c906108c
SS
4323esac
4324if test x"$silent" != x"yes" && test x"$MAINT" = x""; then
4325 echo "Setting maintainer mode" 6>&1
4326fi
4327else
4328 MAINT="#"
81ecdfbb
RW
4329fi
4330
c906108c
SS
4331
4332
81ecdfbb
RW
4333# Check whether --enable-sim-bswap was given.
4334if test "${enable_sim_bswap+set}" = set; then :
4335 enableval=$enable_sim_bswap; case "${enableval}" in
c906108c
SS
4336 yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";;
4337 no) sim_bswap="-DWITH_BSWAP=0";;
81ecdfbb 4338 *) as_fn_error "\"--enable-sim-bswap does not take a value\"" "$LINENO" 5; sim_bswap="";;
c906108c
SS
4339esac
4340if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then
4341 echo "Setting bswap flags = $sim_bswap" 6>&1
4342fi
4343else
4344 sim_bswap=""
81ecdfbb
RW
4345fi
4346
c906108c
SS
4347
4348
81ecdfbb
RW
4349# Check whether --enable-sim-cflags was given.
4350if test "${enable_sim_cflags+set}" = set; then :
4351 enableval=$enable_sim_cflags; case "${enableval}" in
c906108c 4352 yes) sim_cflags="-O2 -fomit-frame-pointer";;
81ecdfbb 4353 trace) as_fn_error "\"Please use --enable-sim-debug instead.\"" "$LINENO" 5; sim_cflags="";;
c906108c
SS
4354 no) sim_cflags="";;
4355 *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4356esac
4357if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then
4358 echo "Setting sim cflags = $sim_cflags" 6>&1
4359fi
4360else
4361 sim_cflags=""
81ecdfbb
RW
4362fi
4363
c906108c
SS
4364
4365
81ecdfbb
RW
4366# Check whether --enable-sim-debug was given.
4367if test "${enable_sim_debug+set}" = set; then :
4368 enableval=$enable_sim_debug; case "${enableval}" in
c906108c
SS
4369 yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";;
4370 no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";;
4371 *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";;
4372esac
4373if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then
4374 echo "Setting sim debug = $sim_debug" 6>&1
4375fi
4376else
4377 sim_debug=""
81ecdfbb
RW
4378fi
4379
c906108c
SS
4380
4381
81ecdfbb
RW
4382# Check whether --enable-sim-stdio was given.
4383if test "${enable_sim_stdio+set}" = set; then :
4384 enableval=$enable_sim_stdio; case "${enableval}" in
c906108c
SS
4385 yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";;
4386 no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";;
81ecdfbb 4387 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-stdio\"" "$LINENO" 5; sim_stdio="";;
c906108c
SS
4388esac
4389if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then
4390 echo "Setting stdio flags = $sim_stdio" 6>&1
4391fi
4392else
b7026657 4393 sim_stdio=""
81ecdfbb
RW
4394fi
4395
c906108c
SS
4396
4397
81ecdfbb
RW
4398# Check whether --enable-sim-trace was given.
4399if test "${enable_sim_trace+set}" = set; then :
4400 enableval=$enable_sim_trace; case "${enableval}" in
c906108c
SS
4401 yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";;
4402 no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";;
4403 [-0-9]*)
4404 sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";;
4405 [a-z]*)
4406 sim_trace=""
4407 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4408 if test x"$sim_trace" = x; then
4409 sim_trace="-DWITH_TRACE='(TRACE_$x"
4410 else
4411 sim_trace="${sim_trace}|TRACE_$x"
4412 fi
4413 done
4414 sim_trace="$sim_trace)'" ;;
4415esac
4416if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then
4417 echo "Setting sim trace = $sim_trace" 6>&1
4418fi
4419else
4420 sim_trace=""
81ecdfbb
RW
4421fi
4422
c906108c
SS
4423
4424
81ecdfbb
RW
4425# Check whether --enable-sim-profile was given.
4426if test "${enable_sim_profile+set}" = set; then :
4427 enableval=$enable_sim_profile; case "${enableval}" in
c906108c
SS
4428 yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";;
4429 no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";;
4430 [-0-9]*)
4431 sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";;
4432 [a-z]*)
4433 sim_profile=""
4434 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4435 if test x"$sim_profile" = x; then
4436 sim_profile="-DWITH_PROFILE='(PROFILE_$x"
4437 else
4438 sim_profile="${sim_profile}|PROFILE_$x"
4439 fi
4440 done
4441 sim_profile="$sim_profile)'" ;;
4442esac
4443if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then
4444 echo "Setting sim profile = $sim_profile" 6>&1
4445fi
4446else
eb2d80b4 4447 sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1"
81ecdfbb
RW
4448fi
4449
c906108c
SS
4450
4451
6efef468 4452
81ecdfbb
RW
4453# Check whether --with-pkgversion was given.
4454if test "${with_pkgversion+set}" = set; then :
4455 withval=$with_pkgversion; case "$withval" in
4456 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6efef468
JM
4457 no) PKGVERSION= ;;
4458 *) PKGVERSION="($withval) " ;;
4459 esac
4460else
4461 PKGVERSION="(GDB) "
4462
81ecdfbb
RW
4463fi
4464
6efef468
JM
4465
4466
4467
4468
81ecdfbb
RW
4469# Check whether --with-bugurl was given.
4470if test "${with_bugurl+set}" = set; then :
4471 withval=$with_bugurl; case "$withval" in
4472 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
4473 no) BUGURL=
4474 ;;
4475 *) BUGURL="$withval"
4476 ;;
4477 esac
4478else
4479 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4480
81ecdfbb
RW
4481fi
4482
6efef468
JM
4483 case ${BUGURL} in
4484 "")
4485 REPORT_BUGS_TO=
4486 REPORT_BUGS_TEXI=
4487 ;;
4488 *)
4489 REPORT_BUGS_TO="<$BUGURL>"
4490 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4491 ;;
4492 esac;
4493
4494
4495
4496
4497cat >>confdefs.h <<_ACEOF
4498#define PKGVERSION "$PKGVERSION"
4499_ACEOF
4500
4501
4502cat >>confdefs.h <<_ACEOF
4503#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4504_ACEOF
4505
4506
81ecdfbb
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4508$as_echo_n "checking return type of signal handlers... " >&6; }
4509if test "${ac_cv_type_signal+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
c906108c 4511else
81ecdfbb 4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4513/* end confdefs.h. */
c906108c
SS
4514#include <sys/types.h>
4515#include <signal.h>
c906108c 4516
b7026657
AC
4517int
4518main ()
4519{
81ecdfbb 4520return *(signal (0, 0)) (0) == 1;
b7026657
AC
4521 ;
4522 return 0;
4523}
4524_ACEOF
81ecdfbb
RW
4525if ac_fn_c_try_compile "$LINENO"; then :
4526 ac_cv_type_signal=int
c906108c 4527else
81ecdfbb 4528 ac_cv_type_signal=void
c906108c 4529fi
81ecdfbb 4530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 4531fi
81ecdfbb
RW
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4533$as_echo "$ac_cv_type_signal" >&6; }
c906108c 4534
b7026657 4535cat >>confdefs.h <<_ACEOF
c906108c 4536#define RETSIGTYPE $ac_cv_type_signal
b7026657 4537_ACEOF
c906108c
SS
4538
4539
cd0fc7c3
SS
4540
4541
c906108c
SS
4542
4543sim_link_files=
4544sim_link_links=
4545
4546sim_link_links=tconfig.h
4547if test -f ${srcdir}/tconfig.in
4548then
4549 sim_link_files=tconfig.in
4550else
4551 sim_link_files=../common/tconfig.in
4552fi
4553
4554# targ-vals.def points to the libc macro description file.
4555case "${target}" in
4556*-*-*) TARG_VALS_DEF=../common/nltvals.def ;;
4557esac
4558sim_link_files="${sim_link_files} ${TARG_VALS_DEF}"
4559sim_link_links="${sim_link_links} targ-vals.def"
4560
c906108c
SS
4561
4562
4563default_sim_inline=""
81ecdfbb
RW
4564# Check whether --enable-sim-inline was given.
4565if test "${enable_sim_inline+set}" = set; then :
4566 enableval=$enable_sim_inline; sim_inline=""
c906108c
SS
4567case "$enableval" in
4568 no) sim_inline="-DDEFAULT_INLINE=0";;
4569 0) sim_inline="-DDEFAULT_INLINE=0";;
4570 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
4571 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
4572 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
4573 new_flag=""
4574 case "$x" in
4575 *_INLINE=*) new_flag="-D$x";;
4576 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
4577 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
4578 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
4579 esac
4580 if test x"$sim_inline" = x""; then
4581 sim_inline="$new_flag"
4582 else
4583 sim_inline="$sim_inline $new_flag"
4584 fi
4585 done;;
4586esac
4587if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
4588 echo "Setting inline flags = $sim_inline" 6>&1
4589fi
4590else
b7026657 4591
c906108c
SS
4592if test "x$cross_compiling" = "xno"; then
4593 if test x"$GCC" != "x" -a x"${default_sim_inline}" != "x" ; then
4594 sim_inline="${default_sim_inline}"
4595 if test x"$silent" != x"yes"; then
4596 echo "Setting inline flags = $sim_inline" 6>&1
4597 fi
4598 else
4599 sim_inline=""
4600 fi
4601else
4602 sim_inline="-DDEFAULT_INLINE=0"
4603fi
81ecdfbb
RW
4604fi
4605
c906108c
SS
4606wire_alignment="NONSTRICT_ALIGNMENT"
4607default_alignment=""
4608
81ecdfbb
RW
4609# Check whether --enable-sim-alignment was given.
4610if test "${enable_sim_alignment+set}" = set; then :
4611 enableval=$enable_sim_alignment; case "${enableval}" in
c906108c
SS
4612 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
4613 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
4614 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
4615 yes) if test x"$wire_alignment" != x; then
4616 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4617 else
4618 if test x"$default_alignment" != x; then
4619 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
4620 else
4621 echo "No hard-wired alignment for target $target" 1>&6
4622 sim_alignment="-DWITH_ALIGNMENT=0"
4623 fi
4624 fi;;
4625 no) if test x"$default_alignment" != x; then
4626 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4627 else
4628 if test x"$wire_alignment" != x; then
4629 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
4630 else
4631 echo "No default alignment for target $target" 1>&6
4632 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
4633 fi
4634 fi;;
81ecdfbb 4635 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
c906108c
SS
4636esac
4637if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
4638 echo "Setting alignment flags = $sim_alignment" 6>&1
4639fi
4640else
4641 if test x"$default_alignment" != x; then
4642 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
4643else
4644 if test x"$wire_alignment" != x; then
4645 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
4646 else
4647 sim_alignment=
4648 fi
4649fi
81ecdfbb
RW
4650fi
4651
c906108c 4652
81ecdfbb
RW
4653# Check whether --enable-sim-hostendian was given.
4654if test "${enable_sim_hostendian+set}" = set; then :
4655 enableval=$enable_sim_hostendian; case "${enableval}" in
c906108c
SS
4656 no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";;
4657 b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";;
4658 l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";;
81ecdfbb 4659 *) as_fn_error "\"Unknown value $enableval for --enable-sim-hostendian\"" "$LINENO" 5; sim_hostendian="";;
c906108c
SS
4660esac
4661if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then
4662 echo "Setting hostendian flags = $sim_hostendian" 6>&1
4663fi
4664else
b7026657 4665
c906108c 4666if test "x$cross_compiling" = "xno"; then
81ecdfbb
RW
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4668$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4669if test "${ac_cv_c_bigendian+set}" = set; then :
4670 $as_echo_n "(cached) " >&6
4671else
4672 ac_cv_c_bigendian=unknown
4673 # See if we're dealing with a universal compiler.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h. */
4676#ifndef __APPLE_CC__
4677 not a universal capable compiler
4678 #endif
4679 typedef int dummy;
4680
4681_ACEOF
4682if ac_fn_c_try_compile "$LINENO"; then :
4683
4684 # Check for potential -arch flags. It is not universal unless
4685 # there are at least two -arch flags with different values.
4686 ac_arch=
4687 ac_prev=
4688 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4689 if test -n "$ac_prev"; then
4690 case $ac_word in
4691 i?86 | x86_64 | ppc | ppc64)
4692 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4693 ac_arch=$ac_word
4694 else
4695 ac_cv_c_bigendian=universal
4696 break
4697 fi
4698 ;;
4699 esac
4700 ac_prev=
4701 elif test "x$ac_word" = "x-arch"; then
4702 ac_prev=arch
4703 fi
4704 done
4705fi
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 if test $ac_cv_c_bigendian = unknown; then
4708 # See if sys/param.h defines the BYTE_ORDER macro.
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4710/* end confdefs.h. */
c906108c 4711#include <sys/types.h>
81ecdfbb 4712 #include <sys/param.h>
c906108c 4713
b7026657
AC
4714int
4715main ()
4716{
81ecdfbb
RW
4717#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4718 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4719 && LITTLE_ENDIAN)
4720 bogus endian macros
4721 #endif
b7026657
AC
4722
4723 ;
4724 return 0;
4725}
4726_ACEOF
81ecdfbb 4727if ac_fn_c_try_compile "$LINENO"; then :
c906108c 4728 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4730/* end confdefs.h. */
c906108c 4731#include <sys/types.h>
81ecdfbb 4732 #include <sys/param.h>
c906108c 4733
b7026657
AC
4734int
4735main ()
4736{
c906108c 4737#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
4738 not big endian
4739 #endif
b7026657
AC
4740
4741 ;
4742 return 0;
4743}
4744_ACEOF
81ecdfbb 4745if ac_fn_c_try_compile "$LINENO"; then :
c906108c
SS
4746 ac_cv_c_bigendian=yes
4747else
81ecdfbb 4748 ac_cv_c_bigendian=no
c906108c 4749fi
81ecdfbb
RW
4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 fi
4754 if test $ac_cv_c_bigendian = unknown; then
4755 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h. */
4758#include <limits.h>
b7026657 4759
81ecdfbb
RW
4760int
4761main ()
4762{
4763#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4764 bogus endian macros
4765 #endif
4766
4767 ;
4768 return 0;
4769}
b7026657 4770_ACEOF
81ecdfbb
RW
4771if ac_fn_c_try_compile "$LINENO"; then :
4772 # It does; now see whether it defined to _BIG_ENDIAN or not.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4774/* end confdefs.h. */
81ecdfbb
RW
4775#include <limits.h>
4776
b7026657
AC
4777int
4778main ()
4779{
81ecdfbb
RW
4780#ifndef _BIG_ENDIAN
4781 not big endian
4782 #endif
4783
b7026657
AC
4784 ;
4785 return 0;
4786}
4787_ACEOF
81ecdfbb 4788if ac_fn_c_try_compile "$LINENO"; then :
b7026657 4789 ac_cv_c_bigendian=yes
81ecdfbb
RW
4790else
4791 ac_cv_c_bigendian=no
b7026657 4792fi
81ecdfbb 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7026657 4794fi
81ecdfbb
RW
4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 fi
4797 if test $ac_cv_c_bigendian = unknown; then
4798 # Compile a test program.
4799 if test "$cross_compiling" = yes; then :
4800 # Try to guess by grepping values from an object file.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803short int ascii_mm[] =
4804 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4805 short int ascii_ii[] =
4806 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4807 int use_ascii (int i) {
4808 return ascii_mm[i] + ascii_ii[i];
4809 }
4810 short int ebcdic_ii[] =
4811 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4812 short int ebcdic_mm[] =
4813 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4814 int use_ebcdic (int i) {
4815 return ebcdic_mm[i] + ebcdic_ii[i];
4816 }
4817 extern int foo;
b7026657 4818
81ecdfbb
RW
4819int
4820main ()
4821{
4822return use_ascii (foo) == use_ebcdic (foo);
4823 ;
4824 return 0;
4825}
b7026657 4826_ACEOF
81ecdfbb
RW
4827if ac_fn_c_try_compile "$LINENO"; then :
4828 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4829 ac_cv_c_bigendian=yes
4830 fi
4831 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4832 if test "$ac_cv_c_bigendian" = unknown; then
4833 ac_cv_c_bigendian=no
4834 else
4835 # finding both strings is unlikely to happen, but who knows?
4836 ac_cv_c_bigendian=unknown
4837 fi
4838 fi
4839fi
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841else
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4843/* end confdefs.h. */
81ecdfbb 4844$ac_includes_default
b7026657
AC
4845int
4846main ()
4847{
81ecdfbb
RW
4848
4849 /* Are we little or big endian? From Harbison&Steele. */
4850 union
4851 {
4852 long int l;
4853 char c[sizeof (long int)];
4854 } u;
4855 u.l = 1;
4856 return u.c[sizeof (long int) - 1] == 1;
4857
4858 ;
4859 return 0;
c906108c 4860}
b7026657 4861_ACEOF
81ecdfbb 4862if ac_fn_c_try_run "$LINENO"; then :
c906108c
SS
4863 ac_cv_c_bigendian=no
4864else
81ecdfbb 4865 ac_cv_c_bigendian=yes
c906108c 4866fi
81ecdfbb
RW
4867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4868 conftest.$ac_objext conftest.beam conftest.$ac_ext
c906108c 4869fi
81ecdfbb
RW
4870
4871 fi
c906108c 4872fi
81ecdfbb
RW
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4874$as_echo "$ac_cv_c_bigendian" >&6; }
4875 case $ac_cv_c_bigendian in #(
4876 yes)
4877 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4878;; #(
4879 no)
4880 ;; #(
4881 universal)
c906108c 4882
81ecdfbb
RW
4883$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4884
4885 ;; #(
4886 *)
4887 as_fn_error "unknown endianness
4888 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4889 esac
c906108c
SS
4890
4891 if test $ac_cv_c_bigendian = yes; then
4892 sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN"
4893 else
4894 sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN"
4895 fi
4896else
4897 sim_hostendian="-DWITH_HOST_BYTE_ORDER=0"
4898fi
81ecdfbb
RW
4899fi
4900
c906108c 4901
c8cca39f
AC
4902# NOTE: Don't add -Wall or -Wunused, they both include
4903# -Wunused-parameter which reports bogus warnings.
4904# NOTE: If you add to this list, remember to update
4905# gdb/doc/gdbint.texinfo.
4906build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
51216631
JB
4907-Wformat -Wparentheses -Wpointer-arith"
4908# GCC supports -Wuninitialized only with -O or -On, n != 0.
4909if test x${CFLAGS+set} = xset; then
4910 case "${CFLAGS}" in
4911 *"-O0"* ) ;;
4912 *"-O"* )
4913 build_warnings="${build_warnings} -Wuninitialized"
4914 ;;
4915 esac
4916else
4917 build_warnings="${build_warnings} -Wuninitialized"
4918fi
c8cca39f
AC
4919# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
4920# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
4921# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
4922# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
4923# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
4924# -Woverloaded-virtual -Winline -Werror"
81ecdfbb
RW
4925# Check whether --enable-build-warnings was given.
4926if test "${enable_build_warnings+set}" = set; then :
4927 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
4928 yes) ;;
4929 no) build_warnings="-w";;
4930 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4931 build_warnings="${build_warnings} ${t}";;
4932 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4933 build_warnings="${t} ${build_warnings}";;
4934 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4935esac
4936if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4937 echo "Setting compiler warning flags = $build_warnings" 6>&1
4938fi
81ecdfbb
RW
4939fi
4940# Check whether --enable-sim-build-warnings was given.
4941if test "${enable_sim_build_warnings+set}" = set; then :
4942 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
4943 yes) ;;
4944 no) build_warnings="-w";;
4945 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 4946 build_warnings="${build_warnings} ${t}";;
c906108c 4947 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
4948 build_warnings="${t} ${build_warnings}";;
4949 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
4950esac
4951if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
4952 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4953fi
81ecdfbb
RW
4954fi
4955WARN_CFLAGS=""
d4f3574e
SS
4956WERROR_CFLAGS=""
4957if test "x${build_warnings}" != x -a "x$GCC" = xyes
4958then
81ecdfbb
RW
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4960$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
4961 # Separate out the -Werror flag as some files just cannot be
4962 # compiled with it enabled.
4963 for w in ${build_warnings}; do
4964 case $w in
4965 -Werr*) WERROR_CFLAGS=-Werror ;;
4966 *) # Check that GCC accepts it
4967 saved_CFLAGS="$CFLAGS"
4968 CFLAGS="$CFLAGS $w"
81ecdfbb 4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 4970/* end confdefs.h. */
c8cca39f 4971
b7026657
AC
4972int
4973main ()
4974{
c8cca39f 4975
b7026657
AC
4976 ;
4977 return 0;
4978}
4979_ACEOF
81ecdfbb 4980if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 4981 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 4982fi
81ecdfbb 4983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
4984 CFLAGS="$saved_CFLAGS"
4985 esac
4986 done
81ecdfbb
RW
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
4988$as_echo "${WARN_CFLAGS}${WERROR_CFLAGS}" >&6; }
c906108c
SS
4989fi
4990
4991
e6c674b8 4992default_sim_reserved_bits="1"
81ecdfbb
RW
4993# Check whether --enable-sim-reserved-bits was given.
4994if test "${enable_sim_reserved_bits+set}" = set; then :
4995 enableval=$enable_sim_reserved_bits; case "${enableval}" in
e6c674b8
CD
4996 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
4997 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
81ecdfbb 4998 *) as_fn_error "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
e6c674b8
CD
4999esac
5000if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
5001 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
5002fi
5003else
5004 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
5005fi
5006
e6c674b8 5007
c906108c
SS
5008# DEPRECATED
5009#
5010# Instead of defining a `subtarget' macro, code should be checking
5011# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
5012# in question.
5013#
5014case "${target}" in
4c54fc26 5015 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 5016 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
109ad085 5017 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1e799e28
CD
5018 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
5019 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
5020 *) SIM_SUBTARGET="";;
5021esac
5022
5023
5024
5025
5026#
5027# Select the byte order of the target
5028#
5029mips_endian=
5030default_endian=
5031case "${target}" in
5032 mips64el*-*-*) mips_endian=LITTLE_ENDIAN ;;
7a292a7a 5033 mips64vr*el-*-*) default_endian=LITTLE_ENDIAN ;;
c906108c
SS
5034 mips64*-*-*) default_endian=BIG_ENDIAN ;;
5035 mips16*-*-*) default_endian=BIG_ENDIAN ;;
1e799e28
CD
5036 mipsisa32*-*-*) default_endian=BIG_ENDIAN ;;
5037 mipsisa64*-*-*) default_endian=BIG_ENDIAN ;;
c906108c
SS
5038 mips*-*-*) default_endian=BIG_ENDIAN ;;
5039 *) default_endian=BIG_ENDIAN ;;
5040esac
5041
5042wire_endian="$mips_endian"
5043default_endian="$default_endian"
81ecdfbb
RW
5044# Check whether --enable-sim-endian was given.
5045if test "${enable_sim_endian+set}" = set; then :
5046 enableval=$enable_sim_endian; case "${enableval}" in
c906108c
SS
5047 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";;
5048 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";;
5049 yes) if test x"$wire_endian" != x; then
5050 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5051 else
5052 if test x"$default_endian" != x; then
5053 sim_endian="-DWITH_TARGET_BYTE_ORDER=${default_endian}"
5054 else
5055 echo "No hard-wired endian for target $target" 1>&6
5056 sim_endian="-DWITH_TARGET_BYTE_ORDER=0"
5057 fi
5058 fi;;
5059 no) if test x"$default_endian" != x; then
5060 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5061 else
5062 if test x"$wire_endian" != x; then
5063 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${wire_endian}"
5064 else
5065 echo "No default endian for target $target" 1>&6
5066 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=0"
5067 fi
5068 fi;;
81ecdfbb 5069 *) as_fn_error "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
5070esac
5071if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
5072 echo "Setting endian flags = $sim_endian" 6>&1
5073fi
5074else
5075 if test x"$default_endian" != x; then
5076 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=${default_endian}"
5077else
5078 if test x"$wire_endian" != x; then
5079 sim_endian="-DWITH_TARGET_BYTE_ORDER=${wire_endian}"
5080 else
5081 sim_endian=
5082 fi
5083fi
81ecdfbb
RW
5084fi
5085
c906108c
SS
5086
5087
5088
5089#
5090# Select the bitsize of the target
5091#
5092mips_addr_bitsize=
5093case "${target}" in
109ad085 5094 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
5095 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
5096 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
5097 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5098 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
5099 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
5100 *) mips_bitsize=64 ; mips_msb=63 ;;
5101esac
5102wire_word_bitsize="$mips_bitsize"
5103wire_word_msb="$mips_msb"
5104wire_address_bitsize="$mips_addr_bitsize"
5105wire_cell_bitsize=""
81ecdfbb
RW
5106# Check whether --enable-sim-bitsize was given.
5107if test "${enable_sim_bitsize+set}" = set; then :
5108 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
5109case "${enableval}" in
5110 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
5111 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
5112 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5113 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
5114 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5115 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
5116 else
5117 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
5118 fi ;;
5119 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
5120 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
5121 else
5122 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
5123 fi ;;
81ecdfbb 5124 *) as_fn_error "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
5125esac
5126# address bitsize
5127tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
5128case x"${tmp}" in
5129 x ) ;;
5130 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
5131 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
81ecdfbb 5132 * ) as_fn_error "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
5133esac
5134# cell bitsize
5135tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
5136case x"${tmp}" in
5137 x ) ;;
5138 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
5139 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
81ecdfbb 5140 * ) as_fn_error "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
5141esac
5142if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
5143 echo "Setting bitsize flags = $sim_bitsize" 6>&1
5144fi
5145else
5146 sim_bitsize=""
5147if test x"$wire_word_bitsize" != x; then
5148 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
5149fi
5150if test x"$wire_word_msb" != x; then
5151 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
5152fi
5153if test x"$wire_address_bitsize" != x; then
5154 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
5155fi
5156if test x"$wire_cell_bitsize" != x; then
5157 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
5158fi
81ecdfbb
RW
5159fi
5160
c906108c
SS
5161
5162
5163
5164#
5165# Select the floating hardware support of the target
5166#
5167mips_fpu=HARDWARE_FLOATING_POINT
5168mips_fpu_bitsize=
5169case "${target}" in
4b5d35ee 5170 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 5171 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
5172 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
5173 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
5174 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
5175 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
5176 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
5177 *) mips_fpu=HARD_FLOATING_POINT ;;
5178esac
5179
5180default_sim_float="$mips_fpu"
5181default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
5182# Check whether --enable-sim-float was given.
5183if test "${enable_sim_float+set}" = set; then :
5184 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
5185 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
5186 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
5187 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
5188 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
81ecdfbb 5189 *) as_fn_error "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
5190esac
5191if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
5192 echo "Setting float flags = $sim_float" 6>&1
5193fi
5194else
b7026657 5195
c906108c
SS
5196sim_float=
5197if test x"${default_sim_float}" != x""; then
5198 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
5199fi
5200if test x"${default_sim_float_bitsize}" != x""; then
5201 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
5202fi
5203
81ecdfbb
RW
5204fi
5205
c906108c
SS
5206
5207
5208
5209#
5210# Select the level of SMP support
5211#
5212case "${target}" in
5213 *) mips_smp=0 ;;
5214esac
5215
5216default_sim_smp="$mips_smp"
81ecdfbb
RW
5217# Check whether --enable-sim-smp was given.
5218if test "${enable_sim_smp+set}" = set; then :
5219 enableval=$enable_sim_smp; case "${enableval}" in
c906108c
SS
5220 yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";;
5221 no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";;
5222 *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";;
5223esac
5224if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then
5225 echo "Setting smp flags = $sim_smp" 6>&1
5226fi
5227else
5228 sim_smp="-DWITH_SMP=${default_sim_smp}" ; sim_igen_smp="-N ${default_sim_smp}"
5229if test x"$silent" != x"yes"; then
5230 echo "Setting smp flags = $sim_smp" 6>&1
5231fi
81ecdfbb
RW
5232fi
5233
c906108c
SS
5234
5235
5236
5237#
5238# Select the IGEN architecture
5239#
5240sim_gen=IGEN
5241sim_igen_machine="-M mipsIV"
139181c8 5242sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
5243sim_igen_filter="32,64,f"
5244sim_m16_filter="16"
4c54fc26
CD
5245sim_mach_default="mips8000"
5246
c906108c
SS
5247case "${target}" in
5248 mips*tx39*) sim_gen=IGEN
5249 sim_igen_filter="32,f"
5250 sim_igen_machine="-M r3900"
5251 ;;
5252 mips64vr43*-*-*) sim_gen=IGEN
5253 sim_igen_machine="-M mipsIV"
4c54fc26 5254 sim_mach_default="mips8000"
c906108c
SS
5255 ;;
5256 mips64vr5*-*-*) sim_gen=IGEN
5257 sim_igen_machine="-M vr5000"
4c54fc26 5258 sim_mach_default="mips5000"
c906108c
SS
5259 ;;
5260 mips64vr41*) sim_gen=M16
5261 sim_igen_machine="-M vr4100"
5262 sim_m16_machine="-M vr4100"
5263 sim_igen_filter="32,64,f"
5264 sim_m16_filter="16"
4c54fc26 5265 sim_mach_default="mips4100"
c906108c 5266 ;;
4c54fc26
CD
5267 mips64vr-*-* | mips64vrel-*-*)
5268 sim_gen=MULTI
5269 sim_multi_configs="\
5270 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
5271 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
5272 vr5000:mipsIV:32,64,f:mips4300,mips5000\
5273 vr5400:mipsIV,vr5400:32,64,f:mips5400\
5274 vr5500:mipsIV,vr5500:32,64,f:mips5500"
5275 sim_multi_default=mips5000
5276 ;;
109ad085 5277 mips*-sde-elf*) sim_gen=M16
8b082fb1 5278 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
109ad085
TS
5279 sim_m16_machine="-M mips16,mips16e,mips64r2"
5280 sim_igen_filter="32,64,f"
5281 sim_mach_default="mipsisa64r2"
5282 ;;
c906108c
SS
5283 mips64*-*-*) sim_igen_filter="32,64,f"
5284 sim_gen=IGEN
5285 ;;
5286 mips16*-*-*) sim_gen=M16
5287 sim_igen_filter="32,64,f"
5288 sim_m16_filter="16"
5289 ;;
d5fb0879
RS
5290 mipsisa32r2*-*-*) sim_gen=M16
5291 sim_igen_machine="-M mips32r2,mips16,mips16e,mdmx,dsp,dsp2,smartmips"
5292 sim_m16_machine="-M mips16,mips16e,mips32r2"
5293 sim_igen_filter="32,f"
5294 sim_mach_default="mipsisa32r2"
e70cb6cd 5295 ;;
d5fb0879
RS
5296 mipsisa32*-*-*) sim_gen=M16
5297 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
5298 sim_m16_machine="-M mips16,mips16e,mips32"
5299 sim_igen_filter="32,f"
5300 sim_mach_default="mipsisa32"
1e799e28 5301 ;;
d5fb0879
RS
5302 mipsisa64r2*-*-*) sim_gen=M16
5303 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
5304 sim_m16_machine="-M mips16,mips16e,mips64r2"
5305 sim_igen_filter="32,64,f"
5306 sim_mach_default="mipsisa64r2"
e70cb6cd 5307 ;;
7cbea089 5308 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 5309 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 5310 sim_igen_filter="32,64,f"
4c54fc26 5311 sim_mach_default="mips_sb1"
7cbea089 5312 ;;
d5fb0879
RS
5313 mipsisa64*-*-*) sim_gen=M16
5314 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
5315 sim_m16_machine="-M mips16,mips16e,mips64"
5316 sim_igen_filter="32,64,f"
5317 sim_mach_default="mipsisa64"
1e799e28 5318 ;;
109ad085 5319 mips*lsi*) sim_gen=M16
c906108c
SS
5320 sim_igen_machine="-M mipsIII,mips16"
5321 sim_m16_machine="-M mips16,mipsIII"
5322 sim_igen_filter="32,f"
5323 sim_m16_filter="16"
4c54fc26 5324 sim_mach_default="mips4000"
109ad085 5325 ;;
c906108c
SS
5326 mips*-*-*) sim_gen=IGEN
5327 sim_igen_filter="32,f"
5328 ;;
5329esac
4c54fc26
CD
5330
5331# The MULTI generator can combine several simulation engines into one.
5332# executable. A configuration which uses the MULTI should set two
5333# variables: ${sim_multi_configs} and ${sim_multi_default}.
5334#
5335# ${sim_multi_configs} is the list of engines to build. Each
5336# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
5337# where:
5338#
5339# - NAME is a C-compatible prefix for the engine,
5340# - MACHINE is a -M argument,
5341# - FILTER is a -F argument, and
5342# - BFDMACHS is a comma-separated list of bfd machines that the
5343# simulator can run.
5344#
5345# Each entry will have a separate simulation engine whose prefix is
5346# m32<NAME>. If the machine list includes "mips16", there will also
5347# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
5348# generated using the same machine list as the 32-bit version,
5349# but the filter will be "16" instead of FILTER.
5350#
5351# The simulator compares the bfd mach against BFDMACHS to decide
5352# which engine to use. Entries in BFDMACHS should be bfd_mach
5353# values with "bfd_mach_" removed. ${sim_multi_default} says
5354# which entry should be the default.
5355if test ${sim_gen} = MULTI; then
5356
5357 # Simple sanity check.
5358 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
81ecdfbb 5359 as_fn_error "Error in configure.in: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
5360 fi
5361
5362 # Start in a known state.
5363 rm -f multi-include.h multi-run.c
5364 sim_multi_flags=
5365 sim_multi_src=
5366 sim_multi_obj=multi-run.o
5367 sim_multi_igen_configs=
5368 sim_seen_default=no
5369
5370 cat << __EOF__ > multi-run.c
5371/* Main entry point for MULTI simulators.
35ee6e1e 5372 Copyright (C) 2003, 2007 Free Software Foundation, Inc.
4c54fc26
CD
5373
5374 This program is free software; you can redistribute it and/or modify
5375 it under the terms of the GNU General Public License as published by
35ee6e1e 5376 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
5377 (at your option) any later version.
5378
5379 This program is distributed in the hope that it will be useful,
5380 but WITHOUT ANY WARRANTY; without even the implied warranty of
5381 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5382 GNU General Public License for more details.
5383
5384 You should have received a copy of the GNU General Public License
35ee6e1e 5385 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
5386
5387 --
5388
5389 This file was generated by sim/mips/configure. */
5390
5391#include "sim-main.h"
5392#include "multi-include.h"
5393
5394#define SD sd
5395#define CPU cpu
5396
5397void
5398sim_engine_run (SIM_DESC sd,
5399 int next_cpu_nr,
5400 int nr_cpus,
5401 int signal) /* ignore */
5402{
5403 int mach;
5404
5405 if (STATE_ARCHITECTURE (sd) == NULL)
5406 mach = bfd_mach_${sim_multi_default};
5407 else
5408 mach = STATE_ARCHITECTURE (SD)->mach;
5409
5410 switch (mach)
5411 {
5412__EOF__
5413
5414 for fc in ${sim_multi_configs}; do
5415
5416 # Split up the entry. ${c} contains the first three elements.
5417 # Note: outer sqaure brackets are m4 quotes.
5418 c=`echo ${fc} | sed 's/:[^:]*$//'`
5419 bfdmachs=`echo ${fc} | sed 's/.*://'`
5420 name=`echo ${c} | sed 's/:.*//'`
5421 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
5422 filter=`echo ${c} | sed 's/.*://'`
5423
5424 # Build the following lists:
5425 #
5426 # sim_multi_flags: all -M and -F flags used by the simulator
5427 # sim_multi_src: all makefile-generated source files
5428 # sim_multi_obj: the objects for ${sim_multi_src}
5429 # sim_multi_igen_configs: igen configuration strings.
5430 #
5431 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
5432 # or m16) followed by the NAME, MACHINE and FILTER part of
5433 # the ${sim_multi_configs} entry.
5434 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
5435
5436 # Check whether mips16 handling is needed.
5437 case ${c} in
5438 *:*mips16*:*)
5439 # Run igen twice, once for normal mode and once for mips16.
5440 ws="m32 m16"
5441
5442 # The top-level function for the mips16 simulator is
5443 # in a file m16${name}_run.c, generated by the
5444 # tmp-run-multi Makefile rule.
5445 sim_multi_src="${sim_multi_src} m16${name}_run.c"
5446 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
5447 sim_multi_flags="${sim_multi_flags} -F 16"
5448 ;;
5449 *)
5450 ws=m32
5451 ;;
5452 esac
5453
5454 # Now add the list of igen-generated files to ${sim_multi_src}
5455 # and ${sim_multi_obj}.
5456 for w in ${ws}; do
5457 for base in engine icache idecode model semantics support; do
5458 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
5459 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
5460 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
5461 done
5462 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
5463 done
5464
5465 # Add an include for the engine.h file. This file declares the
5466 # top-level foo_engine_run() function.
5467 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
5468
5469 # Add case statements for this engine to sim_engine_run().
5470 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5471 echo " case bfd_mach_${mach}:" >> multi-run.c
5472 if test ${mach} = ${sim_multi_default}; then
5473 echo " default:" >> multi-run.c
5474 sim_seen_default=yes
5475 fi
5476 done
5477 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
5478 >> multi-run.c
5479 echo " break;" >> multi-run.c
5480 done
5481
5482 # Check whether we added a 'default:' label.
5483 if test ${sim_seen_default} = no; then
81ecdfbb 5484 as_fn_error "Error in configure.in: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
5485 fi
5486
5487 cat << __EOF__ >> multi-run.c
5488 }
5489}
5490
5491int
5492mips_mach_multi (SIM_DESC sd)
5493{
5494 if (STATE_ARCHITECTURE (sd) == NULL)
5495 return bfd_mach_${sim_multi_default};
5496
5497 switch (STATE_ARCHITECTURE (SD)->mach)
5498 {
5499__EOF__
5500
5501 # Add case statements for this engine to mips_mach_multi().
5502 for fc in ${sim_multi_configs}; do
5503
5504 # Split up the entry. ${c} contains the first three elements.
5505 # Note: outer sqaure brackets are m4 quotes.
5506 c=`echo ${fc} | sed 's/:[^:]*$//'`
5507 bfdmachs=`echo ${fc} | sed 's/.*://'`
5508
5509 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
5510 echo " case bfd_mach_${mach}:" >> multi-run.c
5511 done
5512 done
5513
5514 cat << __EOF__ >> multi-run.c
5515 return (STATE_ARCHITECTURE (SD)->mach);
5516 default:
5517 return bfd_mach_${sim_multi_default};
5518 }
5519}
5520__EOF__
5521
5522 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
5523else
5524 # For clean-extra
5525 sim_multi_src=doesnt-exist.c
5526
5527 if test x"${sim_mach_default}" = x""; then
81ecdfbb 5528 as_fn_error "Error in configure.in: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
5529 fi
5530 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
5531fi
c906108c
SS
5532sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
5533sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
5534
5535
5536
5537
5538
4c54fc26
CD
5539
5540
5541
5542
c906108c
SS
5543#
5544# Add simulated hardware devices
5545#
5546hw_enabled=no
5547case "${target}" in
5548 mips*tx39*)
5549 hw_enabled=yes
b7026657 5550 hw_extra_devices="tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
5551 mips_extra_objs="dv-sockser.o"
5552 SIM_SUBTARGET="$SIM_SUBTARGET -DTARGET_TX3904=1"
5553 ;;
5554 *)
b7026657 5555 mips_extra_objs=""
c906108c
SS
5556 ;;
5557esac
5558
5559if test x"$hw_enabled" = x"yes"; then
5560 sim_hw_p=yes
5561else
5562 sim_hw_p=no
5563fi
5564if test "$hw_devices"; then
5565 hardware="core pal glue"
5566else
5567 hardware="core pal glue $hw_extra_devices"
5568fi
5569sim_hw_cflags="-DWITH_HW=1"
5570sim_hw="$hardware"
5571sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
81ecdfbb
RW
5572# Check whether --enable-sim-hardware was given.
5573if test "${enable_sim_hardware+set}" = set; then :
5574 enableval=$enable_sim_hardware;
c906108c
SS
5575case "${enableval}" in
5576 yes) sim_hw_p=yes;;
5577 no) sim_hw_p=no;;
5578 ,*) sim_hw_p=yes; hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
5579 *,) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
5580 *) sim_hw_p=yes; hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
5581esac
5582if test "$sim_hw_p" != yes; then
5583 sim_hw_objs=
5584 sim_hw_cflags="-DWITH_HW=0"
5585 sim_hw=
5586else
5587 sim_hw_cflags="-DWITH_HW=1"
5588 # remove duplicates
5589 sim_hw=""
5590 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
5591 for i in $hardware ; do
5592 case " $sim_hw " in
c906108c
SS
5593 *" $i "*) ;;
5594 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
5595 esac
5596 done
5597fi
5598if test x"$silent" != x"yes" && test "$sim_hw_p" = "yes"; then
5599 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5600fi
5601else
b7026657 5602
c906108c
SS
5603if test "$sim_hw_p" != yes; then
5604 sim_hw_objs=
5605 sim_hw_cflags="-DWITH_HW=0"
5606 sim_hw=
5607fi
5608if test x"$silent" != x"yes"; then
5609 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
5610fi
81ecdfbb
RW
5611fi
5612
c906108c
SS
5613
5614
5615
5616# Choose simulator engine
5617case "${target}" in
5618 *) mips_igen_engine="engine.o"
5619 ;;
5620esac
5621
5622
5623
81ecdfbb
RW
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5625$as_echo_n "checking for X... " >&6; }
b7026657 5626
c906108c 5627
81ecdfbb
RW
5628# Check whether --with-x was given.
5629if test "${with_x+set}" = set; then :
5630 withval=$with_x;
5631fi
c906108c
SS
5632
5633# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5634if test "x$with_x" = xno; then
5635 # The user explicitly disabled X.
5636 have_x=disabled
5637else
81ecdfbb
RW
5638 case $x_includes,$x_libraries in #(
5639 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5640 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5641 $as_echo_n "(cached) " >&6
c906108c
SS
5642else
5643 # One or both of the vars are not set, and there is no cached value.
b7026657 5644ac_x_includes=no ac_x_libraries=no
81ecdfbb 5645rm -f -r conftest.dir
b7026657
AC
5646if mkdir conftest.dir; then
5647 cd conftest.dir
b7026657 5648 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
5649incroot:
5650 @echo incroot='${INCROOT}'
5651usrlibdir:
5652 @echo usrlibdir='${USRLIBDIR}'
5653libdir:
5654 @echo libdir='${LIBDIR}'
5655_ACEOF
5656 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c 5657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
81ecdfbb
RW
5658 for ac_var in incroot usrlibdir libdir; do
5659 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5660 done
c906108c 5661 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
5662 for ac_extension in a so sl dylib la dll; do
5663 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5664 test -f "$ac_im_libdir/libX11.$ac_extension"; then
b7026657 5665 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
5666 fi
5667 done
5668 # Screen out bogus values from the imake configuration. They are
5669 # bogus both because they are the default anyway, and because
5670 # using them would break gcc on systems where it needs fixed includes.
b7026657 5671 case $ac_im_incroot in
81ecdfbb 5672 /usr/include) ac_x_includes= ;;
b7026657 5673 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 5674 esac
b7026657 5675 case $ac_im_usrlibdir in
81ecdfbb 5676 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
b7026657 5677 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
5678 esac
5679 fi
5680 cd ..
81ecdfbb 5681 rm -f -r conftest.dir
c906108c
SS
5682fi
5683
b7026657
AC
5684# Standard set of common directories for X headers.
5685# Check X11 before X11Rn because it is often a symlink to the current release.
5686ac_x_header_dirs='
5687/usr/X11/include
81ecdfbb 5688/usr/X11R7/include
b7026657
AC
5689/usr/X11R6/include
5690/usr/X11R5/include
5691/usr/X11R4/include
5692
5693/usr/include/X11
81ecdfbb 5694/usr/include/X11R7
b7026657
AC
5695/usr/include/X11R6
5696/usr/include/X11R5
5697/usr/include/X11R4
5698
5699/usr/local/X11/include
81ecdfbb 5700/usr/local/X11R7/include
b7026657
AC
5701/usr/local/X11R6/include
5702/usr/local/X11R5/include
5703/usr/local/X11R4/include
5704
5705/usr/local/include/X11
81ecdfbb 5706/usr/local/include/X11R7
b7026657
AC
5707/usr/local/include/X11R6
5708/usr/local/include/X11R5
5709/usr/local/include/X11R4
5710
5711/usr/X386/include
5712/usr/x386/include
5713/usr/XFree86/include/X11
5714
5715/usr/include
5716/usr/local/include
5717/usr/unsupported/include
5718/usr/athena/include
5719/usr/local/x11r5/include
5720/usr/lpp/Xamples/include
5721
5722/usr/openwin/include
5723/usr/openwin/share/include'
5724
5725if test "$ac_x_includes" = no; then
81ecdfbb 5726 # Guess where to find include files, by looking for Xlib.h.
c906108c 5727 # First, try using that file with no special directory specified.
81ecdfbb 5728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5729/* end confdefs.h. */
81ecdfbb 5730#include <X11/Xlib.h>
b7026657 5731_ACEOF
81ecdfbb 5732if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
5733 # We can compile using X headers with no special include directory.
5734ac_x_includes=
5735else
b7026657 5736 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 5737 if test -r "$ac_dir/X11/Xlib.h"; then
b7026657
AC
5738 ac_x_includes=$ac_dir
5739 break
5740 fi
5741done
c906108c 5742fi
b7026657
AC
5743rm -f conftest.err conftest.$ac_ext
5744fi # $ac_x_includes = no
c906108c 5745
b7026657 5746if test "$ac_x_libraries" = no; then
c906108c 5747 # Check for the libraries.
c906108c
SS
5748 # See if we find them without any special options.
5749 # Don't add to $LIBS permanently.
b7026657 5750 ac_save_LIBS=$LIBS
81ecdfbb
RW
5751 LIBS="-lX11 $LIBS"
5752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 5753/* end confdefs.h. */
81ecdfbb 5754#include <X11/Xlib.h>
b7026657
AC
5755int
5756main ()
5757{
81ecdfbb 5758XrmInitialize ()
b7026657
AC
5759 ;
5760 return 0;
5761}
5762_ACEOF
81ecdfbb 5763if ac_fn_c_try_link "$LINENO"; then :
b7026657 5764 LIBS=$ac_save_LIBS
c906108c
SS
5765# We can link X programs with no special library path.
5766ac_x_libraries=
5767else
81ecdfbb
RW
5768 LIBS=$ac_save_LIBS
5769for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
b7026657 5770do
81ecdfbb
RW
5771 # Don't even attempt the hair of trying to link an X program!
5772 for ac_extension in a so sl dylib la dll; do
5773 if test -r "$ac_dir/libX11.$ac_extension"; then
5774 ac_x_libraries=$ac_dir
5775 break 2
5776 fi
5777 done
5778done
b7026657 5779fi
81ecdfbb
RW
5780rm -f core conftest.err conftest.$ac_objext \
5781 conftest$ac_exeext conftest.$ac_ext
5782fi # $ac_x_libraries = no
b7026657 5783
81ecdfbb
RW
5784case $ac_x_includes,$ac_x_libraries in #(
5785 no,* | *,no | *\'*)
5786 # Didn't find X, or a directory has "'" in its name.
5787 ac_cv_have_x="have_x=no";; #(
5788 *)
5789 # Record where we found X for the cache.
5790 ac_cv_have_x="have_x=yes\
5791 ac_x_includes='$ac_x_includes'\
5792 ac_x_libraries='$ac_x_libraries'"
5793esac
b7026657 5794fi
81ecdfbb
RW
5795;; #(
5796 *) have_x=yes;;
5797 esac
5798 eval "$ac_cv_have_x"
5799fi # $with_x != no
b7026657 5800
81ecdfbb
RW
5801if test "$have_x" != yes; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5803$as_echo "$have_x" >&6; }
5804 no_x=yes
b7026657 5805else
81ecdfbb
RW
5806 # If each of the values was on the command line, it overrides each guess.
5807 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5808 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5809 # Update the cache value to reflect the command line values.
5810 ac_cv_have_x="have_x=yes\
5811 ac_x_includes='$x_includes'\
5812 ac_x_libraries='$x_libraries'"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5814$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
b7026657 5815fi
b7026657 5816
81ecdfbb
RW
5817mips_extra_libs=""
5818
5819
5820for ac_header in string.h strings.h stdlib.h stdlib.h
5821do :
5822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5823ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5824eval as_val=\$$as_ac_Header
5825 if test "x$as_val" = x""yes; then :
b7026657 5826 cat >>confdefs.h <<_ACEOF
81ecdfbb 5827#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b7026657
AC
5828_ACEOF
5829
5830fi
5831
5832done
5833
81ecdfbb
RW
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
5835$as_echo_n "checking for fabs in -lm... " >&6; }
5836if test "${ac_cv_lib_m_fabs+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
b7026657
AC
5838else
5839 ac_check_lib_save_LIBS=$LIBS
5840LIBS="-lm $LIBS"
81ecdfbb 5841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
5842/* end confdefs.h. */
5843
81ecdfbb
RW
5844/* Override any GCC internal prototype to avoid an error.
5845 Use char because int might match the return type of a GCC
5846 builtin and then its argument prototype would still apply. */
b7026657
AC
5847#ifdef __cplusplus
5848extern "C"
5849#endif
b7026657
AC
5850char fabs ();
5851int
5852main ()
5853{
81ecdfbb 5854return fabs ();
b7026657
AC
5855 ;
5856 return 0;
5857}
5858_ACEOF
81ecdfbb 5859if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
5860 ac_cv_lib_m_fabs=yes
5861else
81ecdfbb 5862 ac_cv_lib_m_fabs=no
b7026657 5863fi
81ecdfbb
RW
5864rm -f core conftest.err conftest.$ac_objext \
5865 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
5866LIBS=$ac_check_lib_save_LIBS
5867fi
81ecdfbb
RW
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
5869$as_echo "$ac_cv_lib_m_fabs" >&6; }
5870if test "x$ac_cv_lib_m_fabs" = x""yes; then :
b7026657
AC
5871 cat >>confdefs.h <<_ACEOF
5872#define HAVE_LIBM 1
5873_ACEOF
5874
5875 LIBS="-lm $LIBS"
5876
5877fi
5878
b7026657 5879for ac_func in aint anint sqrt
81ecdfbb
RW
5880do :
5881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5882ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5883eval as_val=\$$as_ac_var
5884 if test "x$as_val" = x""yes; then :
b7026657 5885 cat >>confdefs.h <<_ACEOF
81ecdfbb 5886#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b7026657
AC
5887_ACEOF
5888
5889fi
5890done
5891
5892
5893
5894ac_sources="$sim_link_files"
5895ac_dests="$sim_link_links"
5896while test -n "$ac_sources"; do
5897 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5898 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5899 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
5900done
81ecdfbb 5901ac_config_links="$ac_config_links $ac_config_links_1"
b7026657
AC
5902
5903cgen_breaks=""
5904if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
5905cgen_breaks="break cgen_rtx_error";
5906fi
5907
81ecdfbb 5908ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 5909
81ecdfbb 5910ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 5911
81ecdfbb 5912ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 5913
81ecdfbb 5914ac_config_commands="$ac_config_commands Makefile"
38f48d72 5915
81ecdfbb 5916ac_config_commands="$ac_config_commands stamp-h"
38f48d72 5917
b7026657
AC
5918cat >confcache <<\_ACEOF
5919# This file is a shell script that caches the results of configure
5920# tests run on this system so they can be shared between configure
5921# scripts and configure runs, see configure's option --config-cache.
5922# It is not useful on other systems. If it contains results you don't
5923# want to keep, you may remove or edit it.
5924#
5925# config.status only pays attention to the cache file if you give it
5926# the --recheck option to rerun configure.
5927#
5928# `ac_cv_env_foo' variables (set or unset) will be overridden when
5929# loading this file, other *unset* `ac_cv_foo' will be assigned the
5930# following values.
5931
5932_ACEOF
5933
5934# The following way of writing the cache mishandles newlines in values,
5935# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 5936# So, we kill variables containing newlines.
b7026657
AC
5937# Ultrix sh set writes to stderr and can't be redirected directly,
5938# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
5939(
5940 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5941 eval ac_val=\$$ac_var
5942 case $ac_val in #(
5943 *${as_nl}*)
5944 case $ac_var in #(
5945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5946$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5947 esac
5948 case $ac_var in #(
5949 _ | IFS | as_nl) ;; #(
5950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5951 *) { eval $ac_var=; unset $ac_var;} ;;
5952 esac ;;
5953 esac
5954 done
5955
b7026657 5956 (set) 2>&1 |
81ecdfbb
RW
5957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5958 *${as_nl}ac_space=\ *)
5959 # `set' does not quote correctly, so add quotes: double-quote
5960 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
5961 sed -n \
5962 "s/'/'\\\\''/g;
5963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 5964 ;; #(
b7026657
AC
5965 *)
5966 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 5967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 5968 ;;
81ecdfbb
RW
5969 esac |
5970 sort
5971) |
b7026657 5972 sed '
81ecdfbb 5973 /^ac_cv_env_/b end
b7026657 5974 t clear
81ecdfbb 5975 :clear
b7026657
AC
5976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5977 t end
81ecdfbb
RW
5978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5979 :end' >>confcache
5980if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5981 if test -w "$cache_file"; then
5982 test "x$cache_file" != "x/dev/null" &&
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5984$as_echo "$as_me: updating cache $cache_file" >&6;}
b7026657
AC
5985 cat confcache >$cache_file
5986 else
81ecdfbb
RW
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5988$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
5989 fi
5990fi
5991rm -f confcache
5992
5993test "x$prefix" = xNONE && prefix=$ac_default_prefix
5994# Let make expand exec_prefix.
5995test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5996
b7026657
AC
5997DEFS=-DHAVE_CONFIG_H
5998
5999ac_libobjs=
6000ac_ltlibobjs=
6001for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6002 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
6003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6004 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6006 # will be set to the directory where LIBOBJS objects are built.
6007 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6008 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
6009done
6010LIBOBJS=$ac_libobjs
6011
6012LTLIBOBJS=$ac_ltlibobjs
6013
6014
6015
81ecdfbb 6016
b7026657 6017: ${CONFIG_STATUS=./config.status}
81ecdfbb 6018ac_write_fail=0
b7026657
AC
6019ac_clean_files_save=$ac_clean_files
6020ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6022$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6023as_write_fail=0
6024cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
6025#! $SHELL
6026# Generated by $as_me.
6027# Run this file to recreate the current configuration.
6028# Compiler output produced by configure, useful for debugging
6029# configure, is in config.log if it exists.
c906108c 6030
b7026657
AC
6031debug=false
6032ac_cs_recheck=false
6033ac_cs_silent=false
b7026657 6034
81ecdfbb
RW
6035SHELL=\${CONFIG_SHELL-$SHELL}
6036export SHELL
6037_ASEOF
6038cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6039## -------------------- ##
6040## M4sh Initialization. ##
6041## -------------------- ##
6042
6043# Be more Bourne compatible
6044DUALCASE=1; export DUALCASE # for MKS sh
6045if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
6046 emulate sh
6047 NULLCMD=:
81ecdfbb 6048 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
6049 # is contrary to our usage. Disable this feature.
6050 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
6051 setopt NO_GLOB_SUBST
6052else
6053 case `(set -o) 2>/dev/null` in #(
6054 *posix*) :
6055 set -o posix ;; #(
6056 *) :
6057 ;;
6058esac
c906108c 6059fi
b7026657 6060
81ecdfbb
RW
6061
6062as_nl='
6063'
6064export as_nl
6065# Printing a long string crashes Solaris 7 /usr/bin/printf.
6066as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6067as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6068as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6069# Prefer a ksh shell builtin over an external printf program on Solaris,
6070# but without wasting forks for bash or zsh.
6071if test -z "$BASH_VERSION$ZSH_VERSION" \
6072 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6073 as_echo='print -r --'
6074 as_echo_n='print -rn --'
6075elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6076 as_echo='printf %s\n'
6077 as_echo_n='printf %s'
6078else
6079 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6080 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6081 as_echo_n='/usr/ucb/echo -n'
6082 else
6083 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6084 as_echo_n_body='eval
6085 arg=$1;
6086 case $arg in #(
6087 *"$as_nl"*)
6088 expr "X$arg" : "X\\(.*\\)$as_nl";
6089 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6090 esac;
6091 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6092 '
6093 export as_echo_n_body
6094 as_echo_n='sh -c $as_echo_n_body as_echo'
6095 fi
6096 export as_echo_body
6097 as_echo='sh -c $as_echo_body as_echo'
c906108c 6098fi
b7026657 6099
81ecdfbb
RW
6100# The user is always right.
6101if test "${PATH_SEPARATOR+set}" != set; then
6102 PATH_SEPARATOR=:
6103 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6104 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6105 PATH_SEPARATOR=';'
6106 }
6107fi
6108
6109
6110# IFS
6111# We need space, tab and new line, in precisely that order. Quoting is
6112# there to prevent editors from complaining about space-tab.
6113# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6114# splitting by setting IFS to empty value.)
6115IFS=" "" $as_nl"
6116
6117# Find who we are. Look in the path if we contain no directory separator.
6118case $0 in #((
6119 *[\\/]* ) as_myself=$0 ;;
6120 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121for as_dir in $PATH
6122do
6123 IFS=$as_save_IFS
6124 test -z "$as_dir" && as_dir=.
6125 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6126 done
6127IFS=$as_save_IFS
b7026657 6128
81ecdfbb
RW
6129 ;;
6130esac
6131# We did not find ourselves, most probably we were run as `sh COMMAND'
6132# in which case we are not to be found in the path.
6133if test "x$as_myself" = x; then
6134 as_myself=$0
6135fi
6136if test ! -f "$as_myself"; then
6137 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6138 exit 1
6139fi
6140
6141# Unset variables that we do not need and which cause bugs (e.g. in
6142# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6143# suppresses any "Segmentation fault" message there. '((' could
6144# trigger a bug in pdksh 5.2.14.
6145for as_var in BASH_ENV ENV MAIL MAILPATH
6146do eval test x\${$as_var+set} = xset \
6147 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6148done
b7026657
AC
6149PS1='$ '
6150PS2='> '
6151PS4='+ '
6152
6153# NLS nuisances.
81ecdfbb
RW
6154LC_ALL=C
6155export LC_ALL
6156LANGUAGE=C
6157export LANGUAGE
6158
6159# CDPATH.
6160(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6161
6162
6163# as_fn_error ERROR [LINENO LOG_FD]
6164# ---------------------------------
6165# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6166# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6167# script with status $?, using 1 if that was 0.
6168as_fn_error ()
6169{
6170 as_status=$?; test $as_status -eq 0 && as_status=1
6171 if test "$3"; then
6172 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6173 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b7026657 6174 fi
81ecdfbb
RW
6175 $as_echo "$as_me: error: $1" >&2
6176 as_fn_exit $as_status
6177} # as_fn_error
6178
6179
6180# as_fn_set_status STATUS
6181# -----------------------
6182# Set $? to STATUS, without forking.
6183as_fn_set_status ()
6184{
6185 return $1
6186} # as_fn_set_status
6187
6188# as_fn_exit STATUS
6189# -----------------
6190# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6191as_fn_exit ()
6192{
6193 set +e
6194 as_fn_set_status $1
6195 exit $1
6196} # as_fn_exit
6197
6198# as_fn_unset VAR
6199# ---------------
6200# Portably unset VAR.
6201as_fn_unset ()
6202{
6203 { eval $1=; unset $1;}
6204}
6205as_unset=as_fn_unset
6206# as_fn_append VAR VALUE
6207# ----------------------
6208# Append the text in VALUE to the end of the definition contained in VAR. Take
6209# advantage of any shell optimizations that allow amortized linear growth over
6210# repeated appends, instead of the typical quadratic growth present in naive
6211# implementations.
6212if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6213 eval 'as_fn_append ()
6214 {
6215 eval $1+=\$2
6216 }'
6217else
6218 as_fn_append ()
6219 {
6220 eval $1=\$$1\$2
6221 }
6222fi # as_fn_append
c906108c 6223
81ecdfbb
RW
6224# as_fn_arith ARG...
6225# ------------------
6226# Perform arithmetic evaluation on the ARGs, and store the result in the
6227# global $as_val. Take advantage of shells that can avoid forks. The arguments
6228# must be portable across $(()) and expr.
6229if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6230 eval 'as_fn_arith ()
6231 {
6232 as_val=$(( $* ))
6233 }'
6234else
6235 as_fn_arith ()
6236 {
6237 as_val=`expr "$@" || test $? -eq 1`
6238 }
6239fi # as_fn_arith
6240
6241
6242if expr a : '\(a\)' >/dev/null 2>&1 &&
6243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 6244 as_expr=expr
c906108c 6245else
b7026657 6246 as_expr=false
c906108c 6247fi
c906108c 6248
81ecdfbb 6249if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
6250 as_basename=basename
6251else
6252 as_basename=false
c906108c 6253fi
c906108c 6254
81ecdfbb
RW
6255if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6256 as_dirname=dirname
6257else
6258 as_dirname=false
6259fi
c906108c 6260
81ecdfbb 6261as_me=`$as_basename -- "$0" ||
b7026657
AC
6262$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6263 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
6264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6265$as_echo X/"$0" |
6266 sed '/^.*\/\([^/][^/]*\)\/*$/{
6267 s//\1/
6268 q
6269 }
6270 /^X\/\(\/\/\)$/{
6271 s//\1/
6272 q
6273 }
6274 /^X\/\(\/\).*/{
6275 s//\1/
6276 q
6277 }
6278 s/.*/./; q'`
b7026657 6279
b7026657
AC
6280# Avoid depending upon Character Ranges.
6281as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6282as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6283as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6284as_cr_digits='0123456789'
6285as_cr_alnum=$as_cr_Letters$as_cr_digits
6286
81ecdfbb
RW
6287ECHO_C= ECHO_N= ECHO_T=
6288case `echo -n x` in #(((((
6289-n*)
6290 case `echo 'xy\c'` in
6291 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6292 xy) ECHO_C='\c';;
6293 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6294 ECHO_T=' ';;
6295 esac;;
6296*)
6297 ECHO_N='-n';;
b7026657 6298esac
c906108c 6299
81ecdfbb
RW
6300rm -f conf$$ conf$$.exe conf$$.file
6301if test -d conf$$.dir; then
6302 rm -f conf$$.dir/conf$$.file
c906108c 6303else
81ecdfbb
RW
6304 rm -f conf$$.dir
6305 mkdir conf$$.dir 2>/dev/null
c906108c 6306fi
81ecdfbb
RW
6307if (echo >conf$$.file) 2>/dev/null; then
6308 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 6309 as_ln_s='ln -s'
81ecdfbb
RW
6310 # ... but there are two gotchas:
6311 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6312 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6313 # In both cases, we have to default to `cp -p'.
6314 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6315 as_ln_s='cp -p'
6316 elif ln conf$$.file conf$$ 2>/dev/null; then
6317 as_ln_s=ln
6318 else
6319 as_ln_s='cp -p'
b7026657 6320 fi
b7026657
AC
6321else
6322 as_ln_s='cp -p'
c906108c 6323fi
81ecdfbb
RW
6324rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6325rmdir conf$$.dir 2>/dev/null
6326
6327
6328# as_fn_mkdir_p
6329# -------------
6330# Create "$as_dir" as a directory, including parents if necessary.
6331as_fn_mkdir_p ()
6332{
6333
6334 case $as_dir in #(
6335 -*) as_dir=./$as_dir;;
6336 esac
6337 test -d "$as_dir" || eval $as_mkdir_p || {
6338 as_dirs=
6339 while :; do
6340 case $as_dir in #(
6341 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6342 *) as_qdir=$as_dir;;
6343 esac
6344 as_dirs="'$as_qdir' $as_dirs"
6345 as_dir=`$as_dirname -- "$as_dir" ||
6346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6347 X"$as_dir" : 'X\(//\)[^/]' \| \
6348 X"$as_dir" : 'X\(//\)$' \| \
6349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6350$as_echo X"$as_dir" |
6351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6352 s//\1/
6353 q
6354 }
6355 /^X\(\/\/\)[^/].*/{
6356 s//\1/
6357 q
6358 }
6359 /^X\(\/\/\)$/{
6360 s//\1/
6361 q
6362 }
6363 /^X\(\/\).*/{
6364 s//\1/
6365 q
6366 }
6367 s/.*/./; q'`
6368 test -d "$as_dir" && break
6369 done
6370 test -z "$as_dirs" || eval "mkdir $as_dirs"
6371 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6372
c906108c 6373
81ecdfbb 6374} # as_fn_mkdir_p
b7026657 6375if mkdir -p . 2>/dev/null; then
81ecdfbb 6376 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 6377else
b7026657
AC
6378 test -d ./-p && rmdir ./-p
6379 as_mkdir_p=false
c906108c 6380fi
c906108c 6381
81ecdfbb
RW
6382if test -x / >/dev/null 2>&1; then
6383 as_test_x='test -x'
6384else
6385 if ls -dL / >/dev/null 2>&1; then
6386 as_ls_L_option=L
6387 else
6388 as_ls_L_option=
6389 fi
6390 as_test_x='
6391 eval sh -c '\''
6392 if test -d "$1"; then
6393 test -d "$1/.";
6394 else
6395 case $1 in #(
6396 -*)set "./$1";;
6397 esac;
6398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6399 ???[sx]*):;;*)false;;esac;fi
6400 '\'' sh
6401 '
6402fi
6403as_executable_p=$as_test_x
c906108c 6404
b7026657
AC
6405# Sed expression to map a string onto a valid CPP name.
6406as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 6407
b7026657
AC
6408# Sed expression to map a string onto a valid variable name.
6409as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 6410
b7026657 6411
b7026657 6412exec 6>&1
81ecdfbb
RW
6413## ----------------------------------- ##
6414## Main body of $CONFIG_STATUS script. ##
6415## ----------------------------------- ##
6416_ASEOF
6417test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6418
6419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6420# Save the log message, to keep $0 and so on meaningful, and to
b7026657 6421# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
6422# values after options handling.
6423ac_log="
b7026657 6424This file was extended by $as_me, which was
81ecdfbb 6425generated by GNU Autoconf 2.64. Invocation command line was
b7026657
AC
6426
6427 CONFIG_FILES = $CONFIG_FILES
6428 CONFIG_HEADERS = $CONFIG_HEADERS
6429 CONFIG_LINKS = $CONFIG_LINKS
6430 CONFIG_COMMANDS = $CONFIG_COMMANDS
6431 $ $0 $@
6432
81ecdfbb
RW
6433on `(hostname || uname -n) 2>/dev/null | sed 1q`
6434"
6435
b7026657
AC
6436_ACEOF
6437
81ecdfbb
RW
6438case $ac_config_files in *"
6439"*) set x $ac_config_files; shift; ac_config_files=$*;;
6440esac
379832de 6441
81ecdfbb
RW
6442case $ac_config_headers in *"
6443"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6444esac
b7026657 6445
b7026657 6446
81ecdfbb
RW
6447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6448# Files that config.status was made for.
6449config_files="$ac_config_files"
6450config_headers="$ac_config_headers"
6451config_links="$ac_config_links"
6452config_commands="$ac_config_commands"
b7026657 6453
81ecdfbb 6454_ACEOF
b7026657 6455
81ecdfbb 6456cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 6457ac_cs_usage="\
81ecdfbb
RW
6458\`$as_me' instantiates files and other configuration actions
6459from templates according to the current configuration. Unless the files
6460and actions are specified as TAGs, all are instantiated by default.
b7026657 6461
81ecdfbb 6462Usage: $0 [OPTION]... [TAG]...
b7026657
AC
6463
6464 -h, --help print this help, then exit
81ecdfbb
RW
6465 -V, --version print version number and configuration settings, then exit
6466 -q, --quiet, --silent
6467 do not print progress messages
b7026657
AC
6468 -d, --debug don't remove temporary files
6469 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
6470 --file=FILE[:TEMPLATE]
6471 instantiate the configuration file FILE
6472 --header=FILE[:TEMPLATE]
6473 instantiate the configuration header FILE
b7026657
AC
6474
6475Configuration files:
6476$config_files
6477
6478Configuration headers:
6479$config_headers
6480
6481Configuration links:
6482$config_links
6483
6484Configuration commands:
6485$config_commands
6486
81ecdfbb 6487Report bugs to the package provider."
b7026657 6488
81ecdfbb
RW
6489_ACEOF
6490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657
AC
6491ac_cs_version="\\
6492config.status
81ecdfbb
RW
6493configured by $0, generated by GNU Autoconf 2.64,
6494 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b7026657 6495
81ecdfbb 6496Copyright (C) 2009 Free Software Foundation, Inc.
b7026657
AC
6497This config.status script is free software; the Free Software Foundation
6498gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
6499
6500ac_pwd='$ac_pwd'
6501srcdir='$srcdir'
6502INSTALL='$INSTALL'
6503test -n "\$AWK" || AWK=awk
b7026657
AC
6504_ACEOF
6505
81ecdfbb
RW
6506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6507# The default lists apply if the user does not specify any file.
b7026657
AC
6508ac_need_defaults=:
6509while test $# != 0
6510do
6511 case $1 in
6512 --*=*)
81ecdfbb
RW
6513 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6514 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 6515 ac_shift=:
c906108c 6516 ;;
81ecdfbb 6517 *)
b7026657
AC
6518 ac_option=$1
6519 ac_optarg=$2
6520 ac_shift=shift
c906108c 6521 ;;
b7026657 6522 esac
c906108c 6523
b7026657
AC
6524 case $ac_option in
6525 # Handling of the options.
b7026657
AC
6526 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6527 ac_cs_recheck=: ;;
81ecdfbb
RW
6528 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6529 $as_echo "$ac_cs_version"; exit ;;
6530 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
6531 debug=: ;;
6532 --file | --fil | --fi | --f )
6533 $ac_shift
81ecdfbb
RW
6534 case $ac_optarg in
6535 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6536 esac
6537 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
6538 ac_need_defaults=false;;
6539 --header | --heade | --head | --hea )
6540 $ac_shift
81ecdfbb
RW
6541 case $ac_optarg in
6542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6543 esac
6544 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 6545 ac_need_defaults=false;;
81ecdfbb
RW
6546 --he | --h)
6547 # Conflict between --help and --header
6548 as_fn_error "ambiguous option: \`$1'
6549Try \`$0 --help' for more information.";;
6550 --help | --hel | -h )
6551 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
6552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6554 ac_cs_silent=: ;;
c906108c 6555
b7026657 6556 # This is an error.
81ecdfbb
RW
6557 -*) as_fn_error "unrecognized option: \`$1'
6558Try \`$0 --help' for more information." ;;
c906108c 6559
81ecdfbb
RW
6560 *) as_fn_append ac_config_targets " $1"
6561 ac_need_defaults=false ;;
b7026657
AC
6562
6563 esac
6564 shift
6565done
6566
6567ac_configure_extra_args=
6568
6569if $ac_cs_silent; then
6570 exec 6>/dev/null
6571 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
6572fi
6573
b7026657 6574_ACEOF
81ecdfbb 6575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 6576if \$ac_cs_recheck; then
81ecdfbb
RW
6577 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6578 shift
6579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6580 CONFIG_SHELL='$SHELL'
6581 export CONFIG_SHELL
6582 exec "\$@"
b7026657 6583fi
c906108c 6584
b7026657 6585_ACEOF
81ecdfbb
RW
6586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6587exec 5>>config.log
6588{
6589 echo
6590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6591## Running $as_me. ##
6592_ASBOX
6593 $as_echo "$ac_log"
6594} >&5
c906108c 6595
81ecdfbb
RW
6596_ACEOF
6597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6598_ACEOF
c906108c 6599
81ecdfbb 6600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 6601
81ecdfbb 6602# Handling of arguments.
b7026657 6603for ac_config_target in $ac_config_targets
c906108c 6604do
81ecdfbb
RW
6605 case $ac_config_target in
6606 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6607 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
6608 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
6609 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
6610 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
6611 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
6612 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
6613
6614 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
6615 esac
6616done
6617
81ecdfbb 6618
b7026657
AC
6619# If the user did not use the arguments to specify the items to instantiate,
6620# then the envvar interface is used. Set only those that are not.
6621# We use the long form for the default assignment because of an extremely
6622# bizarre bug on SunOS 4.1.3.
6623if $ac_need_defaults; then
6624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6626 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
6627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6628fi
6629
6630# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 6631# simply because there is no reason against having it here, and in addition,
b7026657 6632# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
6633# Hook for its removal unless debugging.
6634# Note that there is a small window in which the directory will not be cleaned:
6635# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
6636$debug ||
6637{
81ecdfbb
RW
6638 tmp=
6639 trap 'exit_status=$?
6640 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6641' 0
6642 trap 'as_fn_exit 1' 1 2 13 15
b7026657 6643}
b7026657 6644# Create a (secure) tmp directory for tmp files.
c906108c 6645
b7026657 6646{
81ecdfbb 6647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b7026657
AC
6648 test -n "$tmp" && test -d "$tmp"
6649} ||
6650{
81ecdfbb
RW
6651 tmp=./conf$$-$RANDOM
6652 (umask 077 && mkdir "$tmp")
6653} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
b7026657 6654
81ecdfbb
RW
6655# Set up the scripts for CONFIG_FILES section.
6656# No need to generate them if there are no CONFIG_FILES.
6657# This happens for instance with `./config.status config.h'.
6658if test -n "$CONFIG_FILES"; then
b7026657 6659
c906108c 6660
81ecdfbb
RW
6661ac_cr=`echo X | tr X '\015'`
6662# On cygwin, bash can eat \r inside `` if the user requested igncr.
6663# But we know of no other shell where ac_cr would be empty at this
6664# point, so we can use a bashism as a fallback.
6665if test "x$ac_cr" = x; then
6666 eval ac_cr=\$\'\\r\'
6667fi
6668ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6669if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6670 ac_cs_awk_cr='\r'
6671else
6672 ac_cs_awk_cr=$ac_cr
6673fi
b7026657 6674
81ecdfbb 6675echo 'BEGIN {' >"$tmp/subs1.awk" &&
b7026657
AC
6676_ACEOF
6677
c906108c 6678
81ecdfbb
RW
6679{
6680 echo "cat >conf$$subs.awk <<_ACEOF" &&
6681 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6682 echo "_ACEOF"
6683} >conf$$subs.sh ||
6684 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6685ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6686ac_delim='%!_!# '
6687for ac_last_try in false false false false false :; do
6688 . ./conf$$subs.sh ||
6689 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6690
6691 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6692 if test $ac_delim_n = $ac_delim_num; then
6693 break
6694 elif $ac_last_try; then
6695 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 6696 else
81ecdfbb
RW
6697 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6698 fi
6699done
6700rm -f conf$$subs.sh
6701
6702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6703cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6704_ACEOF
6705sed -n '
6706h
6707s/^/S["/; s/!.*/"]=/
6708p
6709g
6710s/^[^!]*!//
6711:repl
6712t repl
6713s/'"$ac_delim"'$//
6714t delim
6715:nl
6716h
6717s/\(.\{148\}\).*/\1/
6718t more1
6719s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6720p
6721n
6722b repl
6723:more1
6724s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6725p
6726g
6727s/.\{148\}//
6728t nl
6729:delim
6730h
6731s/\(.\{148\}\).*/\1/
6732t more2
6733s/["\\]/\\&/g; s/^/"/; s/$/"/
6734p
6735b
6736:more2
6737s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6738p
6739g
6740s/.\{148\}//
6741t delim
6742' <conf$$subs.awk | sed '
6743/^[^""]/{
6744 N
6745 s/\n//
6746}
6747' >>$CONFIG_STATUS || ac_write_fail=1
6748rm -f conf$$subs.awk
6749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6750_ACAWK
6751cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6752 for (key in S) S_is_set[key] = 1
6753 FS = "\a"
b7026657 6754
81ecdfbb
RW
6755}
6756{
6757 line = $ 0
6758 nfields = split(line, field, "@")
6759 substed = 0
6760 len = length(field[1])
6761 for (i = 2; i < nfields; i++) {
6762 key = field[i]
6763 keylen = length(key)
6764 if (S_is_set[key]) {
6765 value = S[key]
6766 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6767 len += length(value) + length(field[++i])
6768 substed = 1
6769 } else
6770 len += 1 + keylen
6771 }
6772
6773 print line
6774}
c906108c 6775
81ecdfbb
RW
6776_ACAWK
6777_ACEOF
6778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6779if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6780 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 6781else
81ecdfbb
RW
6782 cat
6783fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6784 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6785_ACEOF
b7026657 6786
81ecdfbb
RW
6787# VPATH may cause trouble with some makes, so we remove $(srcdir),
6788# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6789# trailing colons and then remove the whole line if VPATH becomes empty
6790# (actually we leave an empty line to preserve line numbers).
6791if test "x$srcdir" = x.; then
6792 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6793s/:*\$(srcdir):*/:/
6794s/:*\${srcdir}:*/:/
6795s/:*@srcdir@:*/:/
6796s/^\([^=]*=[ ]*\):*/\1/
6797s/:*$//
6798s/^[^=]*=[ ]*$//
6799}'
6800fi
c906108c 6801
81ecdfbb
RW
6802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6803fi # test -n "$CONFIG_FILES"
c906108c 6804
81ecdfbb
RW
6805# Set up the scripts for CONFIG_HEADERS section.
6806# No need to generate them if there are no CONFIG_HEADERS.
6807# This happens for instance with `./config.status Makefile'.
6808if test -n "$CONFIG_HEADERS"; then
6809cat >"$tmp/defines.awk" <<\_ACAWK ||
6810BEGIN {
6811_ACEOF
b7026657 6812
81ecdfbb
RW
6813# Transform confdefs.h into an awk script `defines.awk', embedded as
6814# here-document in config.status, that substitutes the proper values into
6815# config.h.in to produce config.h.
c906108c 6816
81ecdfbb
RW
6817# Create a delimiter string that does not exist in confdefs.h, to ease
6818# handling of long lines.
6819ac_delim='%!_!# '
6820for ac_last_try in false false :; do
6821 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6822 if test -z "$ac_t"; then
6823 break
6824 elif $ac_last_try; then
6825 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 6826 else
81ecdfbb 6827 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 6828 fi
b7026657 6829done
81ecdfbb
RW
6830
6831# For the awk script, D is an array of macro values keyed by name,
6832# likewise P contains macro parameters if any. Preserve backslash
6833# newline sequences.
6834
6835ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6836sed -n '
6837s/.\{148\}/&'"$ac_delim"'/g
6838t rset
6839:rset
6840s/^[ ]*#[ ]*define[ ][ ]*/ /
6841t def
6842d
6843:def
6844s/\\$//
6845t bsnl
6846s/["\\]/\\&/g
6847s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6848D["\1"]=" \3"/p
6849s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6850d
6851:bsnl
6852s/["\\]/\\&/g
6853s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6854D["\1"]=" \3\\\\\\n"\\/p
6855t cont
6856s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6857t cont
6858d
6859:cont
6860n
6861s/.\{148\}/&'"$ac_delim"'/g
6862t clear
6863:clear
6864s/\\$//
6865t bsnlc
6866s/["\\]/\\&/g; s/^/"/; s/$/"/p
6867d
6868:bsnlc
6869s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6870b cont
6871' <confdefs.h | sed '
6872s/'"$ac_delim"'/"\\\
6873"/g' >>$CONFIG_STATUS || ac_write_fail=1
6874
6875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6876 for (key in D) D_is_set[key] = 1
6877 FS = "\a"
6878}
6879/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6880 line = \$ 0
6881 split(line, arg, " ")
6882 if (arg[1] == "#") {
6883 defundef = arg[2]
6884 mac1 = arg[3]
6885 } else {
6886 defundef = substr(arg[1], 2)
6887 mac1 = arg[2]
6888 }
6889 split(mac1, mac2, "(") #)
6890 macro = mac2[1]
6891 prefix = substr(line, 1, index(line, defundef) - 1)
6892 if (D_is_set[macro]) {
6893 # Preserve the white space surrounding the "#".
6894 print prefix "define", macro P[macro] D[macro]
6895 next
6896 } else {
6897 # Replace #undef with comments. This is necessary, for example,
6898 # in the case of _POSIX_SOURCE, which is predefined and required
6899 # on some systems where configure will not decide to define it.
6900 if (defundef == "undef") {
6901 print "/*", prefix defundef, macro, "*/"
6902 next
6903 }
6904 }
6905}
6906{ print }
6907_ACAWK
b7026657 6908_ACEOF
81ecdfbb
RW
6909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6910 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6911fi # test -n "$CONFIG_HEADERS"
b7026657 6912
c906108c 6913
81ecdfbb
RW
6914eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
6915shift
6916for ac_tag
6917do
6918 case $ac_tag in
6919 :[FHLC]) ac_mode=$ac_tag; continue;;
6920 esac
6921 case $ac_mode$ac_tag in
6922 :[FHL]*:*);;
6923 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6924 :[FH]-) ac_tag=-:-;;
6925 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 6926 esac
81ecdfbb
RW
6927 ac_save_IFS=$IFS
6928 IFS=:
6929 set x $ac_tag
6930 IFS=$ac_save_IFS
6931 shift
6932 ac_file=$1
6933 shift
c906108c 6934
81ecdfbb
RW
6935 case $ac_mode in
6936 :L) ac_source=$1;;
6937 :[FH])
6938 ac_file_inputs=
6939 for ac_f
6940 do
6941 case $ac_f in
6942 -) ac_f="$tmp/stdin";;
6943 *) # Look for the file first in the build tree, then in the source tree
6944 # (if the path is not absolute). The absolute path cannot be DOS-style,
6945 # because $ac_f cannot contain `:'.
6946 test -f "$ac_f" ||
6947 case $ac_f in
6948 [\\/$]*) false;;
6949 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6950 esac ||
6951 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 6952 esac
81ecdfbb
RW
6953 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6954 as_fn_append ac_file_inputs " '$ac_f'"
6955 done
b7026657 6956
81ecdfbb
RW
6957 # Let's still pretend it is `configure' which instantiates (i.e., don't
6958 # use $as_me), people would be surprised to read:
6959 # /* config.h. Generated by config.status. */
6960 configure_input='Generated from '`
6961 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6962 `' by configure.'
6963 if test x"$ac_file" != x-; then
6964 configure_input="$ac_file. $configure_input"
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6966$as_echo "$as_me: creating $ac_file" >&6;}
6967 fi
6968 # Neutralize special characters interpreted by sed in replacement strings.
6969 case $configure_input in #(
6970 *\&* | *\|* | *\\* )
6971 ac_sed_conf_input=`$as_echo "$configure_input" |
6972 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6973 *) ac_sed_conf_input=$configure_input;;
6974 esac
b7026657 6975
81ecdfbb
RW
6976 case $ac_tag in
6977 *:-:* | *:-) cat >"$tmp/stdin" \
6978 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6979 esac
6980 ;;
6981 esac
b7026657 6982
81ecdfbb 6983 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
6984$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6985 X"$ac_file" : 'X\(//\)[^/]' \| \
6986 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
6987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6988$as_echo X"$ac_file" |
6989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6990 s//\1/
6991 q
6992 }
6993 /^X\(\/\/\)[^/].*/{
6994 s//\1/
6995 q
6996 }
6997 /^X\(\/\/\)$/{
6998 s//\1/
6999 q
7000 }
7001 /^X\(\/\).*/{
7002 s//\1/
7003 q
7004 }
7005 s/.*/./; q'`
7006 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
7007 ac_builddir=.
7008
81ecdfbb
RW
7009case "$ac_dir" in
7010.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7011*)
7012 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7013 # A ".." for each directory in $ac_dir_suffix.
7014 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7015 case $ac_top_builddir_sub in
7016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7018 esac ;;
7019esac
7020ac_abs_top_builddir=$ac_pwd
7021ac_abs_builddir=$ac_pwd$ac_dir_suffix
7022# for backward compatibility:
7023ac_top_builddir=$ac_top_build_prefix
b7026657
AC
7024
7025case $srcdir in
81ecdfbb 7026 .) # We are building in place.
b7026657 7027 ac_srcdir=.
81ecdfbb
RW
7028 ac_top_srcdir=$ac_top_builddir_sub
7029 ac_abs_top_srcdir=$ac_pwd ;;
7030 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 7031 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
7032 ac_top_srcdir=$srcdir
7033 ac_abs_top_srcdir=$srcdir ;;
7034 *) # Relative name.
7035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7036 ac_top_srcdir=$ac_top_build_prefix$srcdir
7037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 7038esac
81ecdfbb 7039ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 7040
c906108c 7041
81ecdfbb
RW
7042 case $ac_mode in
7043 :F)
7044 #
7045 # CONFIG_FILE
7046 #
b7026657 7047
81ecdfbb
RW
7048 case $INSTALL in
7049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 7051 esac
81ecdfbb 7052_ACEOF
c906108c 7053
81ecdfbb
RW
7054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7055# If the template does not know about datarootdir, expand it.
7056# FIXME: This hack should be removed a few years after 2.60.
7057ac_datarootdir_hack=; ac_datarootdir_seen=
7058ac_sed_dataroot='
7059/datarootdir/ {
7060 p
7061 q
7062}
7063/@datadir@/p
7064/@docdir@/p
7065/@infodir@/p
7066/@localedir@/p
7067/@mandir@/p'
7068case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7069*datarootdir*) ac_datarootdir_seen=yes;;
7070*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7072$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7073_ACEOF
7074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7075 ac_datarootdir_hack='
7076 s&@datadir@&$datadir&g
7077 s&@docdir@&$docdir&g
7078 s&@infodir@&$infodir&g
7079 s&@localedir@&$localedir&g
7080 s&@mandir@&$mandir&g
7081 s&\\\${datarootdir}&$datarootdir&g' ;;
7082esac
b7026657 7083_ACEOF
b7026657 7084
81ecdfbb
RW
7085# Neutralize VPATH when `$srcdir' = `.'.
7086# Shell code in configure.ac might set extrasub.
7087# FIXME: do we really want to maintain this feature?
7088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7089ac_sed_extra="$ac_vpsub
7090$extrasub
7091_ACEOF
7092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7093:t
7094/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7095s|@configure_input@|$ac_sed_conf_input|;t t
7096s&@top_builddir@&$ac_top_builddir_sub&;t t
7097s&@top_build_prefix@&$ac_top_build_prefix&;t t
7098s&@srcdir@&$ac_srcdir&;t t
7099s&@abs_srcdir@&$ac_abs_srcdir&;t t
7100s&@top_srcdir@&$ac_top_srcdir&;t t
7101s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7102s&@builddir@&$ac_builddir&;t t
7103s&@abs_builddir@&$ac_abs_builddir&;t t
7104s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7105s&@INSTALL@&$ac_INSTALL&;t t
7106$ac_datarootdir_hack
7107"
7108eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7109 || as_fn_error "could not create $ac_file" "$LINENO" 5
7110
7111test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7112 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7115which seems to be undefined. Please make sure it is defined." >&5
7116$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7117which seems to be undefined. Please make sure it is defined." >&2;}
7118
7119 rm -f "$tmp/stdin"
7120 case $ac_file in
7121 -) cat "$tmp/out" && rm -f "$tmp/out";;
7122 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7123 esac \
7124 || as_fn_error "could not create $ac_file" "$LINENO" 5
7125 ;;
7126 :H)
7127 #
7128 # CONFIG_HEADER
7129 #
7130 if test x"$ac_file" != x-; then
7131 {
7132 $as_echo "/* $configure_input */" \
7133 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7134 } >"$tmp/config.h" \
7135 || as_fn_error "could not create $ac_file" "$LINENO" 5
7136 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7138$as_echo "$as_me: $ac_file is unchanged" >&6;}
7139 else
7140 rm -f "$ac_file"
7141 mv "$tmp/config.h" "$ac_file" \
7142 || as_fn_error "could not create $ac_file" "$LINENO" 5
7143 fi
b7026657 7144 else
81ecdfbb
RW
7145 $as_echo "/* $configure_input */" \
7146 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7147 || as_fn_error "could not create -" "$LINENO" 5
7148 fi
7149 ;;
7150 :L)
7151 #
7152 # CONFIG_LINK
7153 #
b7026657 7154
81ecdfbb
RW
7155 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
7156 :
7157 else
7158 # Prefer the file from the source tree if names are identical.
7159 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
7160 ac_source=$srcdir/$ac_source
7161 fi
b7026657 7162
81ecdfbb
RW
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
7164$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
c906108c 7165
81ecdfbb
RW
7166 if test ! -r "$ac_source"; then
7167 as_fn_error "$ac_source: file not found" "$LINENO" 5
7168 fi
7169 rm -f "$ac_file"
b7026657 7170
81ecdfbb
RW
7171 # Try a relative symlink, then a hard link, then a copy.
7172 case $srcdir in
7173 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
7174 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
7175 esac
7176 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
7177 ln "$ac_source" "$ac_file" 2>/dev/null ||
7178 cp -p "$ac_source" "$ac_file" ||
7179 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
7180 fi
7181 ;;
7182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7183$as_echo "$as_me: executing $ac_file commands" >&6;}
7184 ;;
7185 esac
b7026657
AC
7186
7187
81ecdfbb
RW
7188 case $ac_file$ac_mode in
7189 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
7190 rm -f Makesim1.tmp Makesim2.tmp Makefile
7191 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
7192 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
7193 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
7194 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
7195 <Makefile.sim >Makefile
38f48d72 7196 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 7197 ;;
81ecdfbb
RW
7198 "stamp-h":C) echo > stamp-h ;;
7199
b7026657 7200 esac
81ecdfbb 7201done # for ac_tag
c906108c 7202
b7026657 7203
81ecdfbb 7204as_fn_exit 0
b7026657 7205_ACEOF
b7026657
AC
7206ac_clean_files=$ac_clean_files_save
7207
81ecdfbb
RW
7208test $ac_write_fail = 0 ||
7209 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7210
b7026657
AC
7211
7212# configure is writing to config.log, and then calls config.status.
7213# config.status does its own redirection, appending to config.log.
7214# Unfortunately, on DOS this fails, as config.log is still kept open
7215# by configure, so config.status won't be able to write to it; its
7216# output is simply discarded. So we exec the FD to /dev/null,
7217# effectively closing config.log, so it can be properly (re)opened and
7218# appended to by config.status. When coming back to configure, we
7219# need to make the FD available again.
7220if test "$no_create" != yes; then
7221 ac_cs_success=:
7222 ac_config_status_args=
7223 test "$silent" = yes &&
7224 ac_config_status_args="$ac_config_status_args --quiet"
7225 exec 5>/dev/null
7226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7227 exec 5>>config.log
7228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7229 # would make configure fail if this is the last instruction.
81ecdfbb
RW
7230 $ac_cs_success || as_fn_exit $?
7231fi
7232if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7234$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 7235fi
c906108c
SS
7236
7237
This page took 0.879468 seconds and 4 git commands to generate.