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